OpenJSCAD.org icon indicating copy to clipboard operation
OpenJSCAD.org copied to clipboard

2D Scene

Open kamildul opened this issue 1 year ago • 3 comments

Hello, i have a problem. I don't now how i can switch 3d scene to 2d scene, it is posible? If yes how i can do it? I have online/web version without node.js - only apache + web browser. Thanks!

kamildul avatar May 09 '23 12:05 kamildul

@kamildul welcome!

the website (and renderer) show 2D shapes laying on the Z plane, flat.

what version of JSCAD are you using?

z3dev avatar May 09 '23 12:05 z3dev

Hello z3dev, i'm use Version JSCAD V2.6.4. I want to get the 2d mesh effect without 3d planes and display imported dxf on it

kamildul avatar May 09 '23 12:05 kamildul

@kamildul there are probably several options.

first, you could use JSCAD to import DXF, and then export to SVG. Any browser can display the SVG, which can be imbedded into HTML as well.

second, you could use this library to convert DXF to SVG. it's probably the best DXF library available. https://github.com/skymakerolof/dxf

z3dev avatar May 09 '23 23:05 z3dev