klayout icon indicating copy to clipboard operation
klayout copied to clipboard

2.5 D view export as image and blender file

Open tisoso opened this issue 2 years ago • 3 comments

It would be great if there was an option to export the views from the 2.5D viewer.

  1. As image file (png, or jpg)
  2. Blender file for further editing in Blender (could also be an stl. or some other 3d file)

tisoso avatar Mar 16 '22 14:03 tisoso

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.

tisoso avatar Mar 16 '22 14:03 tisoso

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.

klayoutmatthias avatar Mar 16 '22 21:03 klayoutmatthias

You can try using trimesh

https://gdsfactory.github.io/gdsfactory/notebooks/03_layers.html#3D-rendering

joamatab avatar Mar 17 '22 04:03 joamatab