discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Import

LB
L Boyd
Fri, Nov 6, 2015 4:17 PM

OpenSCAD can now export STL, OFF, AMF, DXF, SVG, CSG and PNG (image).

How many of these can it import?
Can it tell, from the file contents, which it is?

--
View this message in context: http://forum.openscad.org/Import-tp14281.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

OpenSCAD can now export STL, OFF, AMF, DXF, SVG, CSG and PNG (image). How many of these can it import? Can it tell, from the file contents, which it is? -- View this message in context: http://forum.openscad.org/Import-tp14281.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Fri, Nov 6, 2015 4:49 PM

On Nov 6, 2015, at 11:17 AM, L Boyd lboyd@frontiernet.net wrote:

OpenSCAD can now export STL, OFF, AMF, DXF, SVG, CSG and PNG (image).

STL, OFF and DXF are imported using import().
CSG can be imported using include<>
PNG can be imported using surface()
We have open pull requests for SVG and AMF, which require a bit more work/testing.

We require a valid file suffix to determine type, but that’s possible to improve.

-Marius

> On Nov 6, 2015, at 11:17 AM, L Boyd <lboyd@frontiernet.net> wrote: > > OpenSCAD can now export STL, OFF, AMF, DXF, SVG, CSG and PNG (image). > STL, OFF and DXF are imported using import(). CSG can be imported using include<> PNG can be imported using surface() We have open pull requests for SVG and AMF, which require a bit more work/testing. We require a valid file suffix to determine type, but that’s possible to improve. -Marius
LB
L Boyd
Fri, Nov 6, 2015 7:06 PM

Thanks, I will update the manual to reflect the current status

--
View this message in context: http://forum.openscad.org/Import-tp14281p14288.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Thanks, I will update the manual to reflect the current status -- View this message in context: http://forum.openscad.org/Import-tp14281p14288.html Sent from the OpenSCAD mailing list archive at Nabble.com.
LB
L Boyd
Fri, Nov 6, 2015 7:18 PM

By the way is the syntax for surface() the same as import()?
i.e.
import("example012.stl", convexity=3);
surface("example012.png", convexity=3);

--
View this message in context: http://forum.openscad.org/Import-tp14281p14289.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

By the way is the syntax for surface() the same as import()? i.e. import("example012.stl", convexity=3); surface("example012.png", convexity=3); -- View this message in context: http://forum.openscad.org/Import-tp14281p14289.html Sent from the OpenSCAD mailing list archive at Nabble.com.
LB
L Boyd
Fri, Nov 6, 2015 7:48 PM

Ignore last question. I found surface() in the manual

--
View this message in context: http://forum.openscad.org/Import-tp14281p14291.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Ignore last question. I found surface() in the manual -- View this message in context: http://forum.openscad.org/Import-tp14281p14291.html Sent from the OpenSCAD mailing list archive at Nabble.com.