klayout
klayout copied to clipboard
2.5 D view export as image and blender file
It would be great if there was an option to export the views from the 2.5D viewer.
- As image file (png, or jpg)
- Blender file for further editing in Blender (could also be an stl. or some other 3d file)
I know there is an option via gds3xtrude, however on windows it is not really working and just a pain. It would be much more convinient to do this via Klayout directly.
The 2.5d view is not called "two and a half d" for no reason. It's not a 3d model. Visualization is different from creating an STL solid for example. The OpenGL rendering pipeline does not care about internal faces and the z buffer will provide face clipping. Generating a 3d solid is something different and more challenging, specifically as most consumer tools of 3d solids are very picky.
You can try using trimesh
https://gdsfactory.github.io/gdsfactory/notebooks/03_layers.html#3D-rendering