discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Voronoi a solid model

NA
Nathan Apter
Tue, Apr 26, 2016 12:03 AM

How would one go about creating something like this in openscad?
http://www.voronator.com/. It takes any solid model and voronois it.

How would one go about creating something like this in openscad? http://www.voronator.com/. It takes any solid model and voronois it.
NH
nop head
Tue, Apr 26, 2016 7:32 AM

I don't think you can. You would need to start with a numerical model, not
an STL file as you can only generate geometry in OpenScad, not query it.

On 26 April 2016 at 01:03, Nathan Apter napter@gmail.com wrote:

How would one go about creating something like this in openscad?
http://www.voronator.com/. It takes any solid model and voronois it.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I don't think you can. You would need to start with a numerical model, not an STL file as you can only generate geometry in OpenScad, not query it. On 26 April 2016 at 01:03, Nathan Apter <napter@gmail.com> wrote: > How would one go about creating something like this in openscad? > http://www.voronator.com/. It takes any solid model and voronois it. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >
MS
Mark Schafer
Tue, Apr 26, 2016 11:17 AM

There is a workflow - using the manifold lab tools - in Wings3D.
but as Nophead says - not possible in current openSCAD.

There is a workflow - using the manifold lab tools - in Wings3D. but as Nophead says - not possible in current openSCAD.
W
wolf
Tue, Apr 26, 2016 8:42 PM

I disagree - it ought to be possible to do it in OpenSCAD, but it would be a
major effort.
The first step would be to get hold of the vertices and faces of the shape
you want to voronoi. The .stl file contains the information, you would have
to write the translator into a list intelligeble by OpenSCAD. Once you have
that list. you can recreate your shape using polyhedron().
Since you now have the list of all vectors and faces, you can use Lloyd's
algorithm (see https://en.wikipedia.org/wiki/Lloyd%27s_algorithm) to create
new faces and voronoi to your heart's content.
It's a major effort, but - I would think - worth the time spent, as it
allows the creation of porous objects, which is the area where 3D printing
really excels in. Explore the website of http://uformia.com to see what is
possible.
Visualise what it would mean for aircraft enthusiasts if they could print a
wing or fuselage with a solid surface and a foam-like interior? How much
rigidity would that add to their design, at how much weight? Ribs and struts
are such poor replacements for an integral design . . .

wolf

--
View this message in context: http://forum.openscad.org/Voronoi-a-solid-model-tp17193p17198.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I disagree - it ought to be possible to do it in OpenSCAD, but it would be a major effort. The first step would be to get hold of the vertices and faces of the shape you want to voronoi. The .stl file contains the information, you would have to write the translator into a list intelligeble by OpenSCAD. Once you have that list. you can recreate your shape using polyhedron(). Since you now have the list of all vectors and faces, you can use Lloyd's algorithm (see https://en.wikipedia.org/wiki/Lloyd%27s_algorithm) to create new faces and voronoi to your heart's content. It's a major effort, but - I would think - worth the time spent, as it allows the creation of porous objects, which is the area where 3D printing really excels in. Explore the website of http://uformia.com to see what is possible. Visualise what it would mean for aircraft enthusiasts if they could print a wing or fuselage with a solid surface and a foam-like interior? How much rigidity would that add to their design, at how much weight? Ribs and struts are such poor replacements for an integral design . . . wolf -- View this message in context: http://forum.openscad.org/Voronoi-a-solid-model-tp17193p17198.html Sent from the OpenSCAD mailing list archive at Nabble.com.