[OpenSCAD] User Poll: What do you want to see from OpenSCAD development?

David Eccles (gringer) bioinformatics at gringene.org
Tue Nov 12 05:27:23 EST 2019

#3 [Addition of new features]

I'd like to see a function that returns the points that would be encoded in
a rendered version of its children. For 2D objects, this would return a
[2Dpoints, paths] result; for 3D objects a [3Dpoints, faces] result, as used
in the polygon & polyhedron functions respectively.

Assuming this function were called "points", then
"polygon(points(2Dconstruction))" should produce an identical result to
"render(2Dconstruction)", and likewise "polyhedron(points(3Dconstruction))"
should produce an identical result to render(3Dconstruction).

Such a function would substantially simplify the code required for extruding
an arbitrarily complex 2D object along a path, implementing a 3D offset /
inset, and probably a lot of other things.

Sent from: http://forum.openscad.org/

More information about the Discuss mailing list