I have an SVG path with a defined stroke width. I'd like to apply that path as a difference to my model. When I use union() the path appears as a raised line, but when I use difference, I don't get the expected trough.
What am I missing?
Peter-Frank Spierenburg
Sent from Outlookhttp://aka.ms/weboutlook
Did you linear_extrude() that 2D SVG into 3D?
ciao,
Torsten.
Yes I did, no effect. To me, it looks like OpenSCAD is ignoring the stroke-width property of the path.
Peter-Frank Spierenburg
Sent from Outlookhttp://aka.ms/weboutlook
From: Discuss discuss-bounces@lists.openscad.org on behalf of Torsten Paul Torsten.Paul@gmx.de
Sent: April 5, 2020 2:01 PM
To: discuss@lists.openscad.org discuss@lists.openscad.org
Subject: Re: [OpenSCAD] difference() using SVG path has no effect.
Did you linear_extrude() that 2D SVG into 3D?
ciao,
Torsten.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
On 05.04.20 22:17, Peter-Frank Spierenburg wrote:
Yes I did, no effect. To me, it looks like OpenSCAD is
ignoring the stroke-width property of the path.
It depends:
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/SVG_Import
ciao,
Torsten.
Yes, I read that page. I don't understand how it applies. Perhaps you could elaborate?
Peter-Frank Spierenburg
Sent from Outlookhttp://aka.ms/weboutlook
From: Discuss discuss-bounces@lists.openscad.org on behalf of Torsten Paul Torsten.Paul@gmx.de
Sent: April 5, 2020 2:21 PM
To: discuss@lists.openscad.org discuss@lists.openscad.org
Subject: Re: [OpenSCAD] difference() using SVG path has no effect.
On 05.04.20 22:17, Peter-Frank Spierenburg wrote:
Yes I did, no effect. To me, it looks like OpenSCAD is
ignoring the stroke-width property of the path.
It depends:
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/SVG_Import
ciao,
Torsten.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
If you have a close look at the image there, it shows the
input (from Inkscape) on the left side and the result in
OpenSCAD on the right side.
For closed shapes, like circles, the stroke is totally
ignored, for open polygons, the stroke-width should result
in a closed polygon following the outline of the stroke
in Inkscape.
IIRC the stroke-width might have been added after the
release 2019.05 so it might work only in the development
snapshots.
ciao,
Torsten.
Does that mean that OpenSCAD is just incapable of doing the thing that I am trying to do?
Peter-Frank Spierenburg
Sent from Outlookhttp://aka.ms/weboutlook
From: Discuss discuss-bounces@lists.openscad.org on behalf of Torsten Paul Torsten.Paul@gmx.de
Sent: April 5, 2020 2:40 PM
To: discuss@lists.openscad.org discuss@lists.openscad.org
Subject: Re: [OpenSCAD] difference() using SVG path has no effect.
If you have a close look at the image there, it shows the
input (from Inkscape) on the left side and the result in
OpenSCAD on the right side.
For closed shapes, like circles, the stroke is totally
ignored, for open polygons, the stroke-width should result
in a closed polygon following the outline of the stroke
in Inkscape.
IIRC the stroke-width might have been added after the
release 2019.05 so it might work only in the development
snapshots.
ciao,
Torsten.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
On 05.04.20 23:00, Peter-Frank Spierenburg wrote:
Does that mean that OpenSCAD is just incapable of doing
the thing that I am trying to do?
That's really impossible to tell, you have not shared any
details (or even better code) so far.
I'm pretty sure the result is possible to achieve, it
might need slight changes in the SVG (like not relying
on stroke-with in some cases).
But, SVG is not a CAD format, so there's always going to
be some mismatch with what you can draw in Inkscape and
what OpenSCAD can handle.
ciao,
Torsten.
On 05.04.20 22:17, Peter-Frank Spierenburg wrote:
Yes I did, no effect. To me, it looks like OpenSCAD is
ignoring the stroke-width property of the path.
Note that there is a preference for Inkscape which allows it to show path dimensions without the default adding in of the stroke width --- this option sets Inkscape to work as graphic design (and CAD apps before) have traditionally worked.
William