[OpenSCAD] degenerate polyhedron faces ok?

nop head nop.head at gmail.com
Tue Nov 19 04:20:06 EST 2019


I think CGAL will throw an exception if you do a union with a unit cube();

On Tue, 19 Nov 2019 at 01:27, Doug Moen <doug at moens.org> wrote:

> Degenerate faces like this should generally be avoided. The face has zero
> area, and the normal vector is [0,0,0]. That's considered defective, and
> some programs will not allow you to import such a mesh. Other programs
> won't have a problem.
>
> On Mon, Nov 18, 2019, at 8:24 PM, adrianv wrote:
> > Is it legal to give a polyhedron faces that have zero area, e.g. a face
> like
> > [ [0,0,0],[0,0,0], [0,0,1],[0,0,1]]?  Or a degenerate "triangle" like
> > [[0,0,0],[0,0,0],[0,0,1]]?   What about a completely degenerate faces
> where
> > all vertices are equal?
> >
> > In trying to implement a certain degenerate case in my code I have used
> some
> > degenerate faces and it appears to work.  (I can render, and add multiple
> > polyhedra to the model.)   But I wonder if there might be hidden
> problems.
> >
> >
> >
> >
> > --
> > Sent from: http://forum.openscad.org/
> >
> > _______________________________________________
> > OpenSCAD mailing list
> > Discuss at lists.openscad.org
> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
> >
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20191119/526a86ce/attachment.html>


More information about the Discuss mailing list