kaolin icon indicating copy to clipboard operation
kaolin copied to clipboard

Add function to save mesh image

Open kosuke55 opened this issue 5 years ago • 0 comments

Thanks for the great work.

The image of the mesh can be saved by this PR. A black image may be saved when visible=False due to the issue of trimesh. So I set visible=True and the viewer will start up only for a moment. https://github.com/NVIDIAGameWorks/kaolin/compare/master...kosuke55:save_mesh_image?expand=1#diff-5144965960dbb6e79069588bcace5337R106

import kaolin as kal

mesh = kal.rep.TriangleMesh.from_obj('model.obj')
mesh.save_image('sphere')

sphere.png sphere

kosuke55 avatar Jul 08 '20 23:07 kosuke55