ImplicitCAD icon indicating copy to clipboard operation
ImplicitCAD copied to clipboard

Support `import` of SVG/STL

Open kyletreece opened this issue 2 years ago • 4 comments

Hi there!

I got the error in the title of this issue when trying to run extopenscad for an scad script that includes a call to the import function, specifically to import in an SVG file. Seems like the openscad import function is not supported in implicitCAD. Is this true, or is there some other way to bring in SVG files?

Thanks in advance for your help!

kyletreece avatar Sep 09 '23 06:09 kyletreece

Hi!

Seems like the openscad import function is not supported in implicitCAD. Is this true, or is there some other way to bring in SVG files?

Yes this is true. We currently don't have support for importing SVG/STL.

Reminds me of the previous attempt to make text rendering working by @isovector at https://github.com/isovector/cad-models/blob/master/src/Text.hs so maybe if you convert SVG into polygon this could work although there might a better way that would avoid direct sampling and instead treated SVG as a first class citizen that would only be sampled during rendering.

sorki avatar Oct 22 '23 12:10 sorki

Ok got it, thank you for the reply!

kyletreece avatar Oct 22 '23 15:10 kyletreece

I've altered the title a bit and gonna keep this open as a reminder for us. Also labeled as Good first issue.

sorki avatar Oct 27 '23 08:10 sorki