In the current openSCAD there are limitations on certain 2D shapes that might
be considered to be similar.
Specifically these in-built primitives return 2D shapes:
circle(), square(), polygon()
and projection(cut) allows you to create a 2D shape.
However they are not all equal.
IMHO it woudl be nice if (IWBNI) these 2D shapes could all be equal for the
purposes of further manipulation.
E.g. In my handle maker http://www.thingiverse.com/thing:923244 I have
lists of coords for the profiles (extracted from Inkscape).
The user selects a profile and a polygon(profile) is created.
This can then be rotate_extruded to form the basic shape. Which is working
just fine.
However I can't easily choose between a series of coords or a circle(), or
the result of a projection() onto a plane. Nor can I stack
rotates,translates neatly for those shapes that need further rotation into a
specific plane for the rotate_extrude() operation.
To take this one step further. I can't do a loft, which would take a number
of cross-sectional profiles arranged in (say) X and skin between them using
a profile defined in (say) Y.
(There is work done to create this with dedicated code (e.g. solids
http://www.thingiverse.com/thing:8907 , followpath
http://www.thingiverse.com/thing:64679 ) but its a basic (IMHO) operation
for a 3D surface program and so I think it should be more of a first class
object in the system.)
Also I cannot easily take an object and apply a taper(say) transform over it
from one end to the other. Taper being an expample of a generally useful exp
scale operation. But the point is to apply any shape changing transform onto
an existing shape.
If 2D shapes could somehow be kept as lists or entities of some kind until
needed to be turned in 3D objects then I think several more kinds of objects
would be easier to make in OpenSCAD(2)...
Likewise if there was a way to modify the shape of an object over one, or
more, of its dimensions using another shape(or calculation) then that would
also seem to be useful.
--
View this message in context: http://forum.openscad.org/Proposal-2d-shapes-tp13224.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Before OpenSCAD evolves to a stage that can handle all you mentioned, your
best bet is probably using polyhedron. In fact, I believe you are in the
same stage that I encountered before. It's time when I started focusing on
polyhedron.
$ Runsun Pan, PhD
$ -- OpenScad_DocTest ( Thingiverse ), faces , Offliner
$ -- hash parameter model: here , here
$ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly
--
View this message in context: http://forum.openscad.org/Proposal-2d-shapes-tp13224p13233.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I see some work here too on sweeps and lofts.
https://github.com/openscad/openscad/wiki/OEP1:-Generalized-extrusion-module
--
View this message in context: http://forum.openscad.org/Proposal-2d-shapes-tp13224p13252.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Actually everything ius discussed on that thread...
and sample code for sweep and loft (and skin maybe) are included.
The discussion is from 2012 up to mid 2014.
Great stuff !!
--
View this message in context: http://forum.openscad.org/Proposal-2d-shapes-tp13224p13253.html
Sent from the OpenSCAD mailing list archive at Nabble.com.