discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Inkscape to OpenSCAD converter needs attention

HJ
Hugo Jackson
Tue, Oct 29, 2019 2:05 AM

Inkscape is soon to release version 1.0 and as I understand it existing extensions will not work without some modifications. I applied the instructions of the very brief upgrade instructions that are currently available for the upcoming new version to their current beta release and found no joy.

For Mac users this is problematic in that the current Inkscape Mac compatible version (0.92) won’t work on Catalina, and so if you move to Catalina you just won’t be able to use the Inkscape to OpenSCAD converter at all.

I’m hoping there’s some kind generous soul out who knows python who might turn their attention to what I hope is a relatively straightforward refactoring so that this Inkscape extension will work with the new 1.0 version of Inkscape.

I don’t use it a lot, but it’s super handy when I need it.

Here’s the thingiverse link to the most useful current version of this extension….

https://www.thingiverse.com/thing:1065500

Inkscape is soon to release version 1.0 and as I understand it existing extensions will not work without some modifications. I applied the instructions of the very brief upgrade instructions that are currently available for the upcoming new version to their current beta release and found no joy. For Mac users this is problematic in that the current Inkscape Mac compatible version (0.92) won’t work on Catalina, and so if you move to Catalina you just won’t be able to use the Inkscape to OpenSCAD converter at all. I’m hoping there’s some kind generous soul out who knows python who might turn their attention to what I hope is a relatively straightforward refactoring so that this Inkscape extension will work with the new 1.0 version of Inkscape. I don’t use it a lot, but it’s super handy when I need it. Here’s the thingiverse link to the most useful current version of this extension…. https://www.thingiverse.com/thing:1065500
TP
Torsten Paul
Tue, Oct 29, 2019 2:16 AM

Does it have any special features that are not working
with the SVG import?

ciao,
Torsten.

Does it have any special features that are not working with the SVG import? ciao, Torsten.
HJ
Hugo Jackson
Tue, Oct 29, 2019 2:20 AM

As it stands, it just doesn’t install on the Inkscape beta… and doesn’t even show up in menu.

Here are the guidelines I followed in trying to install it on the latest beta…

http://wiki.inkscape.org/wiki/index.php/Updating_your_Extension_for_1.0

On Oct 28, 2019, at 7:16 PM, Torsten Paul Torsten.Paul@gmx.de wrote:

Does it have any special features that are not working
with the SVG import?

ciao,
Torsten.


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

As it stands, it just doesn’t install on the Inkscape beta… and doesn’t even show up in menu. Here are the guidelines I followed in trying to install it on the latest beta… http://wiki.inkscape.org/wiki/index.php/Updating_your_Extension_for_1.0 > On Oct 28, 2019, at 7:16 PM, Torsten Paul <Torsten.Paul@gmx.de> wrote: > > Does it have any special features that are not working > with the SVG import? > > ciao, > Torsten. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
TP
Torsten Paul
Tue, Oct 29, 2019 2:47 PM

What my question meant was: What are the features of that
plugin that can't be substituted by exporting as SVG and
importing the SVG file directly into OpenSCAD via import()?

ciao,
Torsten.

What my question meant was: What are the features of that plugin that can't be substituted by exporting as SVG and importing the SVG file directly into OpenSCAD via import()? ciao, Torsten.
NH
nop head
Tue, Oct 29, 2019 3:14 PM

The plugin generates a vertex list, so you can get at the points. If you
import an SVG presumably you lose the dimensions, etc, just like STL.

Somewhere there is an STL to polyhedron converter to avoid STL import as
well.

On Tue, 29 Oct 2019 at 14:48, Torsten Paul Torsten.Paul@gmx.de wrote:

What my question meant was: What are the features of that
plugin that can't be substituted by exporting as SVG and
importing the SVG file directly into OpenSCAD via import()?

ciao,
Torsten.


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

The plugin generates a vertex list, so you can get at the points. If you import an SVG presumably you lose the dimensions, etc, just like STL. Somewhere there is an STL to polyhedron converter to avoid STL import as well. On Tue, 29 Oct 2019 at 14:48, Torsten Paul <Torsten.Paul@gmx.de> wrote: > What my question meant was: What are the features of that > plugin that can't be substituted by exporting as SVG and > importing the SVG file directly into OpenSCAD via import()? > > ciao, > Torsten. > > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
TP
Torsten Paul
Tue, Oct 29, 2019 3:31 PM

On 29.10.19 16:14, nop head wrote:

The plugin generates a vertex list, so you can get at
the points. If you import an SVG presumably you lose
the dimensions, etc, just like STL.

That should be possible, the most interesting question
is probably how to present that information.

ciao,
Torsten.

On 29.10.19 16:14, nop head wrote: > The plugin generates a vertex list, so you can get at > the points. If you import an SVG presumably you lose > the dimensions, etc, just like STL. That should be possible, the most interesting question is probably how to present that information. ciao, Torsten.
NH
nop head
Tue, Oct 29, 2019 3:49 PM

Add an import_vertices operation that returns polygon or polyhedron format
data depending if it is 2D or 3D.

On Tue, 29 Oct 2019 at 15:31, Torsten Paul Torsten.Paul@gmx.de wrote:

On 29.10.19 16:14, nop head wrote:

The plugin generates a vertex list, so you can get at
the points. If you import an SVG presumably you lose
the dimensions, etc, just like STL.

That should be possible, the most interesting question
is probably how to present that information.

ciao,
Torsten.


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

Add an import_vertices operation that returns polygon or polyhedron format data depending if it is 2D or 3D. On Tue, 29 Oct 2019 at 15:31, Torsten Paul <Torsten.Paul@gmx.de> wrote: > On 29.10.19 16:14, nop head wrote: > > The plugin generates a vertex list, so you can get at > > the points. If you import an SVG presumably you lose > > the dimensions, etc, just like STL. > > That should be possible, the most interesting question > is probably how to present that information. > > ciao, > Torsten. > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
TP
Torsten Paul
Tue, Oct 29, 2019 4:04 PM

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.

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.
NH
nop head
Tue, Oct 29, 2019 4:17 PM

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[0], svg[1]) or polyhedron(svg[0], svg[1])

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@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@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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[0], svg[1]) or polyhedron(svg[0], svg[1]) 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@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@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
RP
Ronaldo Persiano
Tue, Oct 29, 2019 5:02 PM

This was already proposed a long time ago by Parkinbot and forgotten who
knows why.

A terça, 29/10/2019, 16:18, nop head nop.head@gmail.com escreveu:

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[0], svg[1]) or polyhedron(svg[0], svg[1])

Why would that not cover all bases? You can do anything you want with the
lists.

This was already proposed a long time ago by Parkinbot and forgotten who knows why. A terça, 29/10/2019, 16:18, nop head <nop.head@gmail.com> escreveu: > 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[0], svg[1]) or polyhedron(svg[0], svg[1]) > > Why would that not cover all bases? You can do anything you want with the > lists. > > >