[OpenSCAD] Inkscape to OpenSCAD converter needs attention
peetersmarkg at gmail.com
Mon Nov 18 06:13:44 EST 2019
I use the converter a lot and find that V6 (
https://www.thingiverse.com/thing:25036 ) is much more useful to me. I
often want to edit the outputted openscad files to split out the shapes for
multi-material printing. V6 makes walls using a difference of individual
polygons. V7 makes a single polygon where the inside and outside points are
all together and the wall order command creates the hollowness. V7 with the
“force line” command uses a loop to hull consecutive cylinders at the
I doubt I can help with programming but the output and methodology of V6
creates more useful openscad files.
On Fri, Nov 15, 2019 at 11:33 PM Hans L <thehans at gmail.com> wrote:
> Since an imported file could have multiple geometries, I would suggest
> more like a vector of two element vectors. Which is what I did for my
> FunctionOpenSCAD library:
> The library allows many variations for convenience. But to have a
> single standard for such an import I would go with always returning a
> "poly vector" described towards the bottom.
> Another crazy idea specific to SVG, or maybe other markup-based
> formats, would be to allow an optional CSS-selector parameter to
> import specific elements. svg = import("file.svg", selector="#id");
> On Tue, Oct 29, 2019 at 11:18 AM nop head <nop.head at gmail.com> wrote:
> > It can just be a two element vector which are the arguments for polygon
> or polyhedron. I.e. the points list and edge list.
> > so
> > polygon(svg, svg) or polyhedron(svg, svg)
> > Why would that not cover all bases? You can do anything you want with
> the lists.
> > On Tue, 29 Oct 2019 at 16:05, Torsten Paul <Torsten.Paul at gmx.de> wrote:
> >> On 29.10.19 16:49, nop head wrote:
> >> > Add an import_vertices operation that returns polygon or
> >> > polyhedron format data depending if it is 2D or 3D.
> >> That's not needed, we can just use
> >> svg = import("file.svg");
> >> The details of how to access the data is critical as it's
> >> going to be an API which is almost impossible to change
> >> once it's out.
> >> But I guess that's going a bit off-topic for this thread.
> >> ciao,
> >> Torsten.
> >> _______________________________________________
> >> 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
> OpenSCAD mailing list
> Discuss at lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss