discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

FreeCAD to openSCAD export time

BL
Bryan Lee
Sat, Apr 9, 2022 3:40 AM

Does anyone have experience on how long it should take FreeCAD to export to
OpenSCAD?

It's been running for 5 hours, but this is a very complicated model...

(The STL I have is broken with intersecting meshes, and I've spent 8 hours
trying to fix it, but the designer also provides a STEP file.)

Does anyone have experience on how long it should take FreeCAD to export to OpenSCAD? It's been running for 5 hours, but this is a very complicated model... (The STL I have is broken with intersecting meshes, and I've spent 8 hours trying to fix it, but the designer also provides a STEP file.)
I
info@hjcreations.nl
Sun, Apr 10, 2022 7:30 AM

Hi Brian,

Why not first convert a simple / smal one to got your on idea?

Because hard to say without any further info, cpu, memory etc.

Success!

Harm

Bryan Lee schreef op 2022-04-09 05:40:

Does anyone have experience on how long it should take FreeCAD to
export to
OpenSCAD?

It's been running for 5 hours, but this is a very complicated model...

(The STL I have is broken with intersecting meshes, and I've spent 8
hours
trying to fix it, but the designer also provides a STEP file.)


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Hi Brian, Why not first convert a simple / smal one to got your on idea? Because hard to say without any further info, cpu, memory etc. Success! Harm Bryan Lee schreef op 2022-04-09 05:40: > Does anyone have experience on how long it should take FreeCAD to > export to > OpenSCAD? > > It's been running for 5 hours, but this is a very complicated model... > > > (The STL I have is broken with intersecting meshes, and I've spent 8 > hours > trying to fix it, but the designer also provides a STEP file.) > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
BL
Bryan Lee
Sun, Apr 10, 2022 12:57 PM

Thannks Harm!

That's a good idea.  I've considered it.  That does mean I'll have to learn
FreeCAD.  (I've already put So much time into tying to do this conversion.)

FreeCAD is using
1.655 GB RAM
using 100% of one CPU core: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz

Also, I started the export at 7pm Friday, it's currently 9am Sunday, so
FreeCAD has been trying to export to OpenSCAD for 38 hours.  I guess I
should kill the program at some point.  Nothing has been written to the
.scad file, so that's probably a bad sign...

Thus info@hjcreations.nl hast written on Sun, Apr 10, 2022 at 09:30:02AM +0200, and, according to prophecy, it shall come to pass that:

Hi Brian,

Why not first convert a simple / smal one to got your on idea?

Because hard to say without any further info, cpu, memory etc.

Success!

Harm

Bryan Lee schreef op 2022-04-09 05:40:

Does anyone have experience on how long it should take FreeCAD to export
to
OpenSCAD?

It's been running for 5 hours, but this is a very complicated model...

(The STL I have is broken with intersecting meshes, and I've spent 8
hours
trying to fix it, but the designer also provides a STEP file.)


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thannks Harm! That's a good idea. I've considered it. That does mean I'll have to learn FreeCAD. (I've already put So much time into tying to do this conversion.) FreeCAD is using 1.655 GB RAM using 100% of one CPU core: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz Also, I started the export at 7pm Friday, it's currently 9am Sunday, so FreeCAD has been trying to export to OpenSCAD for 38 hours. I guess I should kill the program at some point. Nothing has been written to the .scad file, so that's probably a bad sign... Thus info@hjcreations.nl hast written on Sun, Apr 10, 2022 at 09:30:02AM +0200, and, according to prophecy, it shall come to pass that: > Hi Brian, > > Why not first convert a simple / smal one to got your on idea? > > Because hard to say without any further info, cpu, memory etc. > > Success! > > Harm > > Bryan Lee schreef op 2022-04-09 05:40: > > Does anyone have experience on how long it should take FreeCAD to export > > to > > OpenSCAD? > > > > It's been running for 5 hours, but this is a very complicated model... > > > > > > (The STL I have is broken with intersecting meshes, and I've spent 8 > > hours > > trying to fix it, but the designer also provides a STEP file.) > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
BL
Bryan Lee
Sun, Apr 10, 2022 11:03 PM

Killed the process after 47 hours with no output.  :-(

Thus Bryan Lee hast written on Sun, Apr 10, 2022 at 08:57:26AM -0400, and, according to prophecy, it shall come to pass that:

Thannks Harm!

That's a good idea.  I've considered it.  That does mean I'll have to learn
FreeCAD.  (I've already put So much time into tying to do this conversion.)

FreeCAD is using
1.655 GB RAM
using 100% of one CPU core: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz

Also, I started the export at 7pm Friday, it's currently 9am Sunday, so
FreeCAD has been trying to export to OpenSCAD for 38 hours.  I guess I
should kill the program at some point.  Nothing has been written to the
.scad file, so that's probably a bad sign...

Thus info@hjcreations.nl hast written on Sun, Apr 10, 2022 at 09:30:02AM +0200, and, according to prophecy, it shall come to pass that:

Hi Brian,

Why not first convert a simple / smal one to got your on idea?

Because hard to say without any further info, cpu, memory etc.

Success!

Harm

Bryan Lee schreef op 2022-04-09 05:40:

Does anyone have experience on how long it should take FreeCAD to export
to
OpenSCAD?

It's been running for 5 hours, but this is a very complicated model...

(The STL I have is broken with intersecting meshes, and I've spent 8
hours
trying to fix it, but the designer also provides a STEP file.)


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Killed the process after 47 hours with no output. :-( Thus Bryan Lee hast written on Sun, Apr 10, 2022 at 08:57:26AM -0400, and, according to prophecy, it shall come to pass that: > Thannks Harm! > > > That's a good idea. I've considered it. That does mean I'll have to learn > FreeCAD. (I've already put So much time into tying to do this conversion.) > > > FreeCAD is using > 1.655 GB RAM > using 100% of one CPU core: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz > > Also, I started the export at 7pm Friday, it's currently 9am Sunday, so > FreeCAD has been trying to export to OpenSCAD for 38 hours. I guess I > should kill the program at some point. Nothing has been written to the > .scad file, so that's probably a bad sign... > > > > Thus info@hjcreations.nl hast written on Sun, Apr 10, 2022 at 09:30:02AM +0200, and, according to prophecy, it shall come to pass that: > > Hi Brian, > > > > Why not first convert a simple / smal one to got your on idea? > > > > Because hard to say without any further info, cpu, memory etc. > > > > Success! > > > > Harm > > > > Bryan Lee schreef op 2022-04-09 05:40: > > > Does anyone have experience on how long it should take FreeCAD to export > > > to > > > OpenSCAD? > > > > > > It's been running for 5 hours, but this is a very complicated model... > > > > > > > > > (The STL I have is broken with intersecting meshes, and I've spent 8 > > > hours > > > trying to fix it, but the designer also provides a STEP file.) > > > _______________________________________________ > > > OpenSCAD mailing list > > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
FH
Father Horton
Sun, Apr 10, 2022 11:11 PM

With this and other similar questions recently: is the import to OpenSCAD
necessary? I’d probably design what needs to be designed in OpenSCAD and
then use Meshmixer to merge with the other part.

On Sun, Apr 10, 2022 at 6:04 PM Bryan Lee leebc11@acm.org wrote:

Killed the process after 47 hours with no output.  :-(

Thus Bryan Lee hast written on Sun, Apr 10, 2022 at 08:57:26AM -0400, and,
according to prophecy, it shall come to pass that:

Thannks Harm!

That's a good idea.  I've considered it.  That does mean I'll have to

learn

FreeCAD.  (I've already put So much time into tying to do this

conversion.)

FreeCAD is using
1.655 GB RAM
using 100% of one CPU core: Intel(R) Core(TM) i7-6500U CPU @

2.50GHz

Also, I started the export at 7pm Friday, it's currently 9am Sunday, so
FreeCAD has been trying to export to OpenSCAD for 38 hours.  I guess I
should kill the program at some point.  Nothing has been written to the
.scad file, so that's probably a bad sign...

Thus info@hjcreations.nl hast written on Sun, Apr 10, 2022 at

09:30:02AM +0200, and, according to prophecy, it shall come to pass that:

Hi Brian,

Why not first convert a simple / smal one to got your on idea?

Because hard to say without any further info, cpu, memory etc.

Success!

Harm

Bryan Lee schreef op 2022-04-09 05:40:

Does anyone have experience on how long it should take FreeCAD to

export

to
OpenSCAD?

It's been running for 5 hours, but this is a very complicated

model...

(The STL I have is broken with intersecting meshes, and I've spent 8
hours
trying to fix it, but the designer also provides a STEP file.)


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

With this and other similar questions recently: is the import to OpenSCAD necessary? I’d probably design what needs to be designed in OpenSCAD and then use Meshmixer to merge with the other part. On Sun, Apr 10, 2022 at 6:04 PM Bryan Lee <leebc11@acm.org> wrote: > Killed the process after 47 hours with no output. :-( > > Thus Bryan Lee hast written on Sun, Apr 10, 2022 at 08:57:26AM -0400, and, > according to prophecy, it shall come to pass that: > > Thannks Harm! > > > > > > That's a good idea. I've considered it. That does mean I'll have to > learn > > FreeCAD. (I've already put So much time into tying to do this > conversion.) > > > > > > FreeCAD is using > > 1.655 GB RAM > > using 100% of one CPU core: Intel(R) Core(TM) i7-6500U CPU @ > 2.50GHz > > > > Also, I started the export at 7pm Friday, it's currently 9am Sunday, so > > FreeCAD has been trying to export to OpenSCAD for 38 hours. I guess I > > should kill the program at some point. Nothing has been written to the > > .scad file, so that's probably a bad sign... > > > > > > > > Thus info@hjcreations.nl hast written on Sun, Apr 10, 2022 at > 09:30:02AM +0200, and, according to prophecy, it shall come to pass that: > > > Hi Brian, > > > > > > Why not first convert a simple / smal one to got your on idea? > > > > > > Because hard to say without any further info, cpu, memory etc. > > > > > > Success! > > > > > > Harm > > > > > > Bryan Lee schreef op 2022-04-09 05:40: > > > > Does anyone have experience on how long it should take FreeCAD to > export > > > > to > > > > OpenSCAD? > > > > > > > > It's been running for 5 hours, but this is a very complicated > model... > > > > > > > > > > > > (The STL I have is broken with intersecting meshes, and I've spent 8 > > > > hours > > > > trying to fix it, but the designer also provides a STEP file.) > > > > _______________________________________________ > > > > OpenSCAD mailing list > > > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > > > OpenSCAD mailing list > > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
NH
nop head
Sun, Apr 10, 2022 11:14 PM

I can't see why it would take significant time to convert from one CAD
format to another. It doesn't seem like it is necessary to render any
geometry, when OpenSCAD only needs text.  Seems like a bug that causes an
infinite loop.

On Mon, 11 Apr 2022 at 00:12, Father Horton fatherhorton@gmail.com wrote:

With this and other similar questions recently: is the import to OpenSCAD
necessary? I’d probably design what needs to be designed in OpenSCAD and
then use Meshmixer to merge with the other part.

On Sun, Apr 10, 2022 at 6:04 PM Bryan Lee leebc11@acm.org wrote:

Killed the process after 47 hours with no output.  :-(

Thus Bryan Lee hast written on Sun, Apr 10, 2022 at 08:57:26AM -0400,
and, according to prophecy, it shall come to pass that:

Thannks Harm!

That's a good idea.  I've considered it.  That does mean I'll have to

learn

FreeCAD.  (I've already put So much time into tying to do this

conversion.)

FreeCAD is using
1.655 GB RAM
using 100% of one CPU core: Intel(R) Core(TM) i7-6500U CPU @

2.50GHz

Also, I started the export at 7pm Friday, it's currently 9am Sunday, so
FreeCAD has been trying to export to OpenSCAD for 38 hours.  I guess I
should kill the program at some point.  Nothing has been written to the
.scad file, so that's probably a bad sign...

Thus info@hjcreations.nl hast written on Sun, Apr 10, 2022 at

09:30:02AM +0200, and, according to prophecy, it shall come to pass that:

Hi Brian,

Why not first convert a simple / smal one to got your on idea?

Because hard to say without any further info, cpu, memory etc.

Success!

Harm

Bryan Lee schreef op 2022-04-09 05:40:

Does anyone have experience on how long it should take FreeCAD to

export

to
OpenSCAD?

It's been running for 5 hours, but this is a very complicated

model...

(The STL I have is broken with intersecting meshes, and I've spent 8
hours
trying to fix it, but the designer also provides a STEP file.)


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I can't see why it would take significant time to convert from one CAD format to another. It doesn't seem like it is necessary to render any geometry, when OpenSCAD only needs text. Seems like a bug that causes an infinite loop. On Mon, 11 Apr 2022 at 00:12, Father Horton <fatherhorton@gmail.com> wrote: > With this and other similar questions recently: is the import to OpenSCAD > necessary? I’d probably design what needs to be designed in OpenSCAD and > then use Meshmixer to merge with the other part. > > On Sun, Apr 10, 2022 at 6:04 PM Bryan Lee <leebc11@acm.org> wrote: > >> Killed the process after 47 hours with no output. :-( >> >> Thus Bryan Lee hast written on Sun, Apr 10, 2022 at 08:57:26AM -0400, >> and, according to prophecy, it shall come to pass that: >> > Thannks Harm! >> > >> > >> > That's a good idea. I've considered it. That does mean I'll have to >> learn >> > FreeCAD. (I've already put So much time into tying to do this >> conversion.) >> > >> > >> > FreeCAD is using >> > 1.655 GB RAM >> > using 100% of one CPU core: Intel(R) Core(TM) i7-6500U CPU @ >> 2.50GHz >> > >> > Also, I started the export at 7pm Friday, it's currently 9am Sunday, so >> > FreeCAD has been trying to export to OpenSCAD for 38 hours. I guess I >> > should kill the program at some point. Nothing has been written to the >> > .scad file, so that's probably a bad sign... >> > >> > >> > >> > Thus info@hjcreations.nl hast written on Sun, Apr 10, 2022 at >> 09:30:02AM +0200, and, according to prophecy, it shall come to pass that: >> > > Hi Brian, >> > > >> > > Why not first convert a simple / smal one to got your on idea? >> > > >> > > Because hard to say without any further info, cpu, memory etc. >> > > >> > > Success! >> > > >> > > Harm >> > > >> > > Bryan Lee schreef op 2022-04-09 05:40: >> > > > Does anyone have experience on how long it should take FreeCAD to >> export >> > > > to >> > > > OpenSCAD? >> > > > >> > > > It's been running for 5 hours, but this is a very complicated >> model... >> > > > >> > > > >> > > > (The STL I have is broken with intersecting meshes, and I've spent 8 >> > > > hours >> > > > trying to fix it, but the designer also provides a STEP file.) >> > > > _______________________________________________ >> > > > OpenSCAD mailing list >> > > > To unsubscribe send an email to discuss-leave@lists.openscad.org >> > > _______________________________________________ >> > > OpenSCAD mailing list >> > > To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ >> > OpenSCAD mailing list >> > To unsubscribe send an email to discuss-leave@lists.openscad.org >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
J
jon
Sun, Apr 10, 2022 11:26 PM

"export to OpenSCAD" makes me think that some arbitrary CAD design has
to be decomposed into OpenSCAD source code.  That sounds stunningly
challenging.  Perhaps I am misunderstanding the original posting

On 4/10/2022 7:14 PM, nop head wrote:

I can't see why it would take significant time to convert from one CAD
format to another. It doesn't seem like it is necessary to render any
geometry, when OpenSCAD only needs text.  Seems like a bug that causes
an infinite loop.

<snip>

Bryan Lee schreef op 2022-04-09 05:40:

Does anyone have experience on how long it should take

     FreeCAD to export

to OpenSCAD?

"export to OpenSCAD" makes me think that some arbitrary CAD design has to be decomposed into OpenSCAD source code.  That sounds stunningly challenging.  Perhaps I am misunderstanding the original posting On 4/10/2022 7:14 PM, nop head wrote: > I can't see why it would take significant time to convert from one CAD > format to another. It doesn't seem like it is necessary to render any > geometry, when OpenSCAD only needs text.  Seems like a bug that causes > an infinite loop. > > <snip> > > > > > > Bryan Lee schreef op 2022-04-09 05:40: > > > > Does anyone have experience on how long it should take > FreeCAD to export > > > > to OpenSCAD? >
RW
Rogier Wolff
Mon, Apr 11, 2022 7:27 AM

On Sun, Apr 10, 2022 at 07:26:28PM -0400, jon wrote:

"export to OpenSCAD" makes me think that some arbitrary CAD design has to be
decomposed into OpenSCAD source code.  That sounds stunningly challenging. 
Perhaps I am misunderstanding the original posting

If you can export-to-stl, you can also export-to-openscad in the same
way.

An STL is essentially a list-of-vertices and then a list-of-triangles
where each triangle is three references to a vertex from the list.

You can do that in openscad exactly like that.

points = [[0,0,0],[0,0,1], [0,1,0],[0,1,1],
[1,0,0],[1,0,1], [1,1,0],[1,1,1]];
triangles = [[0,1,2],[1,2,3],  [0,1,4], [1,4,5],
[0,2,4],[2,4,6],  [7,6,5], [6,5,4],
[7,6,3],[6,3,2], [7,5,3], [5,3,1];
polyhedron (points=points, faces=triangles, convexity=5);

Roger. 

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.

On Sun, Apr 10, 2022 at 07:26:28PM -0400, jon wrote: > "export to OpenSCAD" makes me think that some arbitrary CAD design has to be > decomposed into OpenSCAD source code.  That sounds stunningly challenging.  > Perhaps I am misunderstanding the original posting If you can export-to-stl, you can also export-to-openscad in the same way. An STL is essentially a list-of-vertices and then a list-of-triangles where each triangle is three references to a vertex from the list. You can do that in openscad exactly like that. points = [[0,0,0],[0,0,1], [0,1,0],[0,1,1], [1,0,0],[1,0,1], [1,1,0],[1,1,1]]; triangles = [[0,1,2],[1,2,3], [0,1,4], [1,4,5], [0,2,4],[2,4,6], [7,6,5], [6,5,4], [7,6,3],[6,3,2], [7,5,3], [5,3,1]; polyhedron (points=points, faces=triangles, convexity=5); Roger. -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** f equals m times a. When your f is steady, and your m is going down your a is going up. -- Chris Hadfield about flying up the space shuttle.
SP
Sanjeev Prabhakar
Mon, Apr 11, 2022 7:45 AM

It seems extremely difficult to me.
How would you decide the ordering or sequence of arbitrary points.

On Mon, 11 Apr 2022, 12:58 Rogier Wolff, R.E.Wolff@bitwizard.nl wrote:

On Sun, Apr 10, 2022 at 07:26:28PM -0400, jon wrote:

"export to OpenSCAD" makes me think that some arbitrary CAD design has

to be

decomposed into OpenSCAD source code.  That sounds stunningly

challenging.

Perhaps I am misunderstanding the original posting

If you can export-to-stl, you can also export-to-openscad in the same
way.

An STL is essentially a list-of-vertices and then a list-of-triangles
where each triangle is three references to a vertex from the list.

You can do that in openscad exactly like that.

points = [[0,0,0],[0,0,1], [0,1,0],[0,1,1],
[1,0,0],[1,0,1], [1,1,0],[1,1,1]];
triangles = [[0,1,2],[1,2,3],  [0,1,4], [1,4,5],
[0,2,4],[2,4,6],  [7,6,5], [6,5,4],
[7,6,3],[6,3,2], [7,5,3], [5,3,1];
polyhedron (points=points, faces=triangles, convexity=5);

     Roger.

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110
**
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

It seems extremely difficult to me. How would you decide the ordering or sequence of arbitrary points. On Mon, 11 Apr 2022, 12:58 Rogier Wolff, <R.E.Wolff@bitwizard.nl> wrote: > On Sun, Apr 10, 2022 at 07:26:28PM -0400, jon wrote: > > "export to OpenSCAD" makes me think that some arbitrary CAD design has > to be > > decomposed into OpenSCAD source code. That sounds stunningly > challenging. > > Perhaps I am misunderstanding the original posting > > If you can export-to-stl, you can also export-to-openscad in the same > way. > > An STL is essentially a list-of-vertices and then a list-of-triangles > where each triangle is three references to a vertex from the list. > > You can do that in openscad exactly like that. > > points = [[0,0,0],[0,0,1], [0,1,0],[0,1,1], > [1,0,0],[1,0,1], [1,1,0],[1,1,1]]; > triangles = [[0,1,2],[1,2,3], [0,1,4], [1,4,5], > [0,2,4],[2,4,6], [7,6,5], [6,5,4], > [7,6,3],[6,3,2], [7,5,3], [5,3,1]; > polyhedron (points=points, faces=triangles, convexity=5); > > Roger. > > -- > ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 > ** > ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** > f equals m times a. When your f is steady, and your m is going down > your a is going up. -- Chris Hadfield about flying up the space shuttle. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
NH
nop head
Mon, Apr 11, 2022 12:15 PM

CAD designs are not arbitrary points on meshes. They are some
representation of primitives and operations on them, just as OpenSCAD is.
So it can't be too hard to convert one internal representation, which is
generally a tree, to OpenSCAD, which is a textual representation of a tree.
The only issues are when there are missing primitives or missing operations
in OpenSCAD compared to FreeCAD. For example if you can make fillets easily
in FreeCAD then it would get tricky to represent them in OpenSCAD. But I
can't see it being computationally expensive until the geometry actually
needs to be rendered in OpenSCAD.

On Mon, 11 Apr 2022 at 08:46, Sanjeev Prabhakar sprabhakar2006@gmail.com
wrote:

It seems extremely difficult to me.
How would you decide the ordering or sequence of arbitrary points.

On Mon, 11 Apr 2022, 12:58 Rogier Wolff, R.E.Wolff@bitwizard.nl wrote:

On Sun, Apr 10, 2022 at 07:26:28PM -0400, jon wrote:

"export to OpenSCAD" makes me think that some arbitrary CAD design has

to be

decomposed into OpenSCAD source code.  That sounds stunningly

challenging.

Perhaps I am misunderstanding the original posting

If you can export-to-stl, you can also export-to-openscad in the same
way.

An STL is essentially a list-of-vertices and then a list-of-triangles
where each triangle is three references to a vertex from the list.

You can do that in openscad exactly like that.

points = [[0,0,0],[0,0,1], [0,1,0],[0,1,1],
[1,0,0],[1,0,1], [1,1,0],[1,1,1]];
triangles = [[0,1,2],[1,2,3],  [0,1,4], [1,4,5],
[0,2,4],[2,4,6],  [7,6,5], [6,5,4],
[7,6,3],[6,3,2], [7,5,3], [5,3,1];
polyhedron (points=points, faces=triangles, convexity=5);

     Roger.

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110
**
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233
**
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

CAD designs are not arbitrary points on meshes. They are some representation of primitives and operations on them, just as OpenSCAD is. So it can't be too hard to convert one internal representation, which is generally a tree, to OpenSCAD, which is a textual representation of a tree. The only issues are when there are missing primitives or missing operations in OpenSCAD compared to FreeCAD. For example if you can make fillets easily in FreeCAD then it would get tricky to represent them in OpenSCAD. But I can't see it being computationally expensive until the geometry actually needs to be rendered in OpenSCAD. On Mon, 11 Apr 2022 at 08:46, Sanjeev Prabhakar <sprabhakar2006@gmail.com> wrote: > It seems extremely difficult to me. > How would you decide the ordering or sequence of arbitrary points. > > > > On Mon, 11 Apr 2022, 12:58 Rogier Wolff, <R.E.Wolff@bitwizard.nl> wrote: > >> On Sun, Apr 10, 2022 at 07:26:28PM -0400, jon wrote: >> > "export to OpenSCAD" makes me think that some arbitrary CAD design has >> to be >> > decomposed into OpenSCAD source code. That sounds stunningly >> challenging. >> > Perhaps I am misunderstanding the original posting >> >> If you can export-to-stl, you can also export-to-openscad in the same >> way. >> >> An STL is essentially a list-of-vertices and then a list-of-triangles >> where each triangle is three references to a vertex from the list. >> >> You can do that in openscad exactly like that. >> >> points = [[0,0,0],[0,0,1], [0,1,0],[0,1,1], >> [1,0,0],[1,0,1], [1,1,0],[1,1,1]]; >> triangles = [[0,1,2],[1,2,3], [0,1,4], [1,4,5], >> [0,2,4],[2,4,6], [7,6,5], [6,5,4], >> [7,6,3],[6,3,2], [7,5,3], [5,3,1]; >> polyhedron (points=points, faces=triangles, convexity=5); >> >> Roger. >> >> -- >> ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 >> ** >> ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 >> ** >> f equals m times a. When your f is steady, and your m is going down >> your a is going up. -- Chris Hadfield about flying up the space shuttle. >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >