Nice :)
Could you elaborate a bit on what purposes you see for such an SVG file?
I can imagine it being interesting to extend the "export to PNG" function in
OpenSCAD to allow exporting to SVG. We have all the info available, so it
shouldn't be too hard. The challenge is to cover the most important
use-cases in terms of shading and projection.
-Marius
PS! You're not subscribed to the mailing list, so your message is only
visible on the online forum. Perhaps you fell off in the process of moving
to the new list.
--
View this message in context: http://forum.openscad.org/STL-to-SVG-conversion-tp10540p10547.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I'm looking to build a CNC Router.
While it is early days, SVG comes up frequently as the filetype to feed the
router.
I'd like to use OpenSCAD to design for the CNC, so SVG as an export format
may be good.
(I say may, as I said, early days in my research - any pointers welcome)
Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/STL-to-SVG-conversion-tp10540p10552.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
On 12/15/2014 11:43 PM, MichaelAtOz wrote:
I'd like to use OpenSCAD to design for the CNC, so SVG as an export format
may be good.
(I say may, as I said, early days in my research - any pointers welcome)
Exporting 2D models as SVG is already implemented in the dev-snapshots.
That 3D model export as SVG does look nice, maybe a scalable display on a
web page could also use that.
ciao,
Torsten.
Slic3r can take in an STL and export it as SVG layers.
On Monday, December 15, 2014 at 2:58 PM, Torsten Paul wrote:
On 12/15/2014 11:43 PM, MichaelAtOz wrote:
I'd like to use OpenSCAD to design for the CNC, so SVG as an export format
may be good.
(I say may, as I said, early days in my research - any pointers welcome)
Exporting 2D models as SVG is already implemented in the dev-snapshots.
That 3D model export as SVG does look nice, maybe a scalable display on a
web page could also use that.
ciao,
Torsten.
OpenSCAD mailing list
Discuss@lists.openscad.org (mailto:Discuss@lists.openscad.org)
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
kintel wrote
Could you elaborate a bit on what purposes you see for such an SVG file?
For me, the biggest issue is that "export to PNG" isn't high enough quality.
There's no anti-aliasing, and the image seems to be dependent on the
graphics card to render properly -- I get different images on my home and
work computer. If I want to simulate anti-aliasing, I can do the graphics
card-like thing and make the image 4x the original size, then resize back to
the original, but that get's very fiddly (especially when you can only
change the rendered image size by resizing the window).
It's also not particularly friendly for use with other vector graphics
images, or for other vector-ish manipulations. If I want the edges of each
surface to be black or grey, I can't do that (very easy to do in Inkscape
with SVG files). If I want to weave a 3D image around a cartoon, that's also
difficult to do accurately without an SVG rendering. Vector files are also
useful for embedding in PDF files for accurate display at both print and
screen resolutions (e.g. for images in a manual).
As a clarification, this isn't layer slicing -- that I can do somewhat
easily via other methods. This is rendering the 3D model as an SVG file.
--
View this message in context: http://forum.openscad.org/STL-to-SVG-conversion-tp10540p10557.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
MichaelAtOz wrote
I'm looking to build a CNC Router.
While it is early days, SVG comes up frequently as the filetype to feed
the router.
I'd like to use OpenSCAD to design for the CNC, so SVG as an export format
may be good.
(I say may, as I said, early days in my research - any pointers welcome)
Michael, I'm also on a quest to make a CNC machine, and want to use this as
the base design: https://www.youtube.com/watch?v=Tkm5cUOVtSo
I'm both designing the machine in OpenSCAD, and later hoping to use OpenSCAD
for making all the parts I'm going to mill. However, I'm a bit discouraged
after some of the comments in this thread
(http://forum.openscad.org/Using-OpenSCAD-for-CNC-milled-aluminum-jobs-td9977.html)
where it is stated that OpenSCAD isn't suitable for making parts for CNC
milling.
--
View this message in context: http://forum.openscad.org/STL-to-SVG-conversion-tp10540p10558.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
For me, the biggest issue is that "export to PNG" isn't high enough quality.
There's no anti-aliasing, and the image seems to be dependent on the
graphics card to render properly -- I get different images on my home and
work computer.
Yes, I think it's using an offscreen OpenGL buffer and renders there
(in the commandline case). In GUI it's essentially just a screenshot.
Maybe it's possible to have a switch for antialiasing. For the GUI
the code is there but disabled with a comment that it's producing
render artefacts.
I think there's at least two ways how to add improved image export.
Adding something similar to your script, I guess that could use
the render color schemes to provide a basic level of customization.
Adding an export for existing raytracers like povray or yafaray.
That's discussed from time to time too as it would be a nice way to
generate high quality images. Unfortunately it might be limited to
single model color until OpenSCAD learns to handle color/materials
in the final rendering too. Maybe for some models the CSG could be
done in the raytracer.
Ahh, so much interesting stuff, so little time :-).
ciao,
Torsten.
Yes, I think it's using an offscreen OpenGL buffer and renders there
(in the commandline case). In GUI it's essentially just a screenshot.
Maybe it's possible to have a switch for antialiasing. For the GUI
the code is there but disabled with a comment that it's producing
render artefacts.
Ah, right. There's a command-line interface for exporting to images, with
custom width/height. Thanks for [implicitly] mentioning that. That helps a
lot.
--
View this message in context: http://forum.openscad.org/STL-to-SVG-conversion-tp10540p10561.html
Sent from the OpenSCAD mailing list archive at Nabble.com.