difference() using SVG path has no effect.

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

difference() using SVG path has no effect.

Peter-Frank Spierenburg
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


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: difference() using SVG path has no effect.

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

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: difference() using SVG path has no effect.

Peter-Frank Spierenburg
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


From: Discuss <[hidden email]> on behalf of Torsten Paul <[hidden email]>
Sent: April 5, 2020 2:01 PM
To: [hidden email] <[hidden email]>
Subject: Re: [OpenSCAD] difference() using SVG path has no effect.
 
Did you linear_extrude() that 2D SVG into 3D?

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: difference() using SVG path has no effect.

tp3
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: difference() using SVG path has no effect.

Peter-Frank Spierenburg
Yes, I read that page. I don't understand how it applies. Perhaps you could elaborate?

Peter-Frank Spierenburg

Sent from Outlook


From: Discuss <[hidden email]> on behalf of Torsten Paul <[hidden email]>
Sent: April 5, 2020 2:21 PM
To: [hidden email] <[hidden email]>
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: difference() using SVG path has no effect.

tp3
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: difference() using SVG path has no effect.

Peter-Frank Spierenburg
Does that mean that OpenSCAD is just incapable of doing the thing that I am trying to do?

Peter-Frank Spierenburg

Sent from Outlook


From: Discuss <[hidden email]> on behalf of Torsten Paul <[hidden email]>
Sent: April 5, 2020 2:40 PM
To: [hidden email] <[hidden email]>
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: difference() using SVG path has no effect.

tp3
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.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: difference() using SVG path has no effect.

OpenSCAD mailing list-2
In reply to this post by tp3
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


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org