discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] "Filling" 2D/3D Objects

RP
Ronaldo Persiano
Sun, Aug 27, 2017 9:46 AM

In general, we can decompose the outer boundary polygon in convex sets,
like is done by minkowski, and union the convex hull of each part.

Em 27 de ago de 2017 07:39, arnholm@arnholm.org escreveu:

On 2017-08-26 22:21, David Eccles (gringer) wrote:

hull() will do this for shapes with a convex external face / edge.

Yes, but it will fail for the case of a concave 2D shape, e.g. the
"A"-shape as mentioned in the first post. Hull only considers the vertex
coordinates, not the topology of the shape.

Carsten Arnholm


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

In general, we can decompose the outer boundary polygon in convex sets, like is done by minkowski, and union the convex hull of each part. Em 27 de ago de 2017 07:39, <arnholm@arnholm.org> escreveu: On 2017-08-26 22:21, David Eccles (gringer) wrote: > hull() will do this for shapes with a convex external face / edge. > Yes, but it will fail for the case of a concave 2D shape, e.g. the "A"-shape as mentioned in the first post. Hull only considers the vertex coordinates, not the topology of the shape. Carsten Arnholm _______________________________________________ OpenSCAD mailing list Discuss@lists.openscad.org http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
A
arnholm@arnholm.org
Sun, Aug 27, 2017 10:00 AM

On 2017-08-27 11:46, Ronaldo Persiano wrote:

In general, we can decompose the outer boundary polygon in convex
sets, like is done by minkowski, and union the convex hull of each
part.

You can do that, and thus re-create the input :-)

Carsten Arnholm

On 2017-08-27 11:46, Ronaldo Persiano wrote: > In general, we can decompose the outer boundary polygon in convex > sets, like is done by minkowski, and union the convex hull of each > part. You can do that, and thus re-create the input :-) Carsten Arnholm