discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

difference() using SVG path has no effect.

PS
Peter-Frank Spierenburg
Sun, Apr 5, 2020 7:56 PM

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

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 Outlook<http://aka.ms/weboutlook>
TP
Torsten Paul
Sun, Apr 5, 2020 8:01 PM

Did you linear_extrude() that 2D SVG into 3D?

ciao,
Torsten.

Did you linear_extrude() that 2D SVG into 3D? ciao, Torsten.
PS
Peter-Frank Spierenburg
Sun, Apr 5, 2020 8:17 PM

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

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 Outlook<http://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
TP
Torsten Paul
Sun, Apr 5, 2020 8:21 PM

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.

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.
PS
Peter-Frank Spierenburg
Sun, Apr 5, 2020 8:35 PM

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.

Yes, I read that page. I don't understand how it applies. Perhaps you could elaborate? Peter-Frank Spierenburg Sent from Outlook<http://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
TP
Torsten Paul
Sun, Apr 5, 2020 8:40 PM

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.

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.
PS
Peter-Frank Spierenburg
Sun, Apr 5, 2020 9:00 PM

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

Does that mean that OpenSCAD is just incapable of doing the thing that I am trying to do? Peter-Frank Spierenburg Sent from Outlook<http://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
TP
Torsten Paul
Sun, Apr 5, 2020 9:07 PM

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 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.
WF
William F. Adams
Mon, Apr 6, 2020 5:37 PM

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

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