discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

"Filling" 2D/3D Objects

D
DonGar
Sat, Aug 26, 2017 1:41 AM

I've been fiddling with extruding and intersecting 2D shapes.

This has left me really wanting a way to fill any gaps in the the interior
of an arbitrary 2D shape.

For example, I'd want an "O" to just become an oval defined by the font, and
an "A" to retain to opening across the bottom half unmodified, but be solid
in the top half.

Is there any reasonable way to do this?

--
View this message in context: http://forum.openscad.org/Filling-2D-3D-Objects-tp22126.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I've been fiddling with extruding and intersecting 2D shapes. This has left me really wanting a way to fill any gaps in the the interior of an arbitrary 2D shape. For example, I'd want an "O" to just become an oval defined by the font, and an "A" to retain to opening across the bottom half unmodified, but be solid in the top half. Is there any reasonable way to do this? -- View this message in context: http://forum.openscad.org/Filling-2D-3D-Objects-tp22126.html Sent from the OpenSCAD mailing list archive at Nabble.com.
DM
doug moen
Sat, Aug 26, 2017 1:53 AM

There's an old feature request for a "voids()" operator that would let you
do this.
https://github.com/openscad/openscad/issues/1590

But to do this in the present language? I don't see a way.

On 25 August 2017 at 21:41, DonGar dgarrett@acm.org wrote:

I've been fiddling with extruding and intersecting 2D shapes.

This has left me really wanting a way to fill any gaps in the the interior
of an arbitrary 2D shape.

For example, I'd want an "O" to just become an oval defined by the font,
and
an "A" to retain to opening across the bottom half unmodified, but be solid
in the top half.

Is there any reasonable way to do this?

--
View this message in context: http://forum.openscad.org/
Filling-2D-3D-Objects-tp22126.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


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

There's an old feature request for a "voids()" operator that would let you do this. https://github.com/openscad/openscad/issues/1590 But to do this in the present language? I don't see a way. On 25 August 2017 at 21:41, DonGar <dgarrett@acm.org> wrote: > I've been fiddling with extruding and intersecting 2D shapes. > > This has left me really wanting a way to fill any gaps in the the interior > of an arbitrary 2D shape. > > For example, I'd want an "O" to just become an oval defined by the font, > and > an "A" to retain to opening across the bottom half unmodified, but be solid > in the top half. > > Is there any reasonable way to do this? > > > > -- > View this message in context: http://forum.openscad.org/ > Filling-2D-3D-Objects-tp22126.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
DE
David Eccles (gringer)
Sat, Aug 26, 2017 8:21 PM

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

--
View this message in context: http://forum.openscad.org/Filling-2D-3D-Objects-tp22126p22128.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

hull() will do this for shapes with a convex external face / edge. -- View this message in context: http://forum.openscad.org/Filling-2D-3D-Objects-tp22126p22128.html Sent from the OpenSCAD mailing list archive at Nabble.com.
A
arnholm@arnholm.org
Sun, Aug 27, 2017 6:38 AM

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

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