Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to save mesh image #288

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Jul 8, 2020

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

Signed-off-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant