owl-project / NVISII

Apache License 2.0
319 stars 27 forks source link

Export modified OBJ files #157

Open caixiaoniweimar opened 1 year ago

caixiaoniweimar commented 1 year ago

Hi, thanks for the amazing work!

I used NVISII to first import a OBJ file as a scene, and then added another object(mesh as well) to the existing scene, and then I can save the generated scene as PNG images, I am wondering whether is it possible to save the modified scene as a new OBJ file? Thank you in advance!

Regards, Cai

TontonTremblay commented 1 year ago

@natevm worked on a .blend extension to export scenes I think. But I think it was never released. For now I would say you would have to write that exported yourself sadly.

caixiaoniweimar commented 1 year ago

@TontonTremblay Thanks for your hints!

I am currently trying to use Trimesh to export the OBJ. After adding the mesh to the scene, I need to transform the mesh as I did in nvisii. Do you happen to know the corresponding method of nvisii.transform.set_position() in trimesh? To my best knowledge, it's not the same as the method of trimesh.transformations.apply_translate(point)

I am wondering if I used the method nvisii.transform.set_position(), how can I get the transformation matrix for this specific step? Please correct me if I misunderstood.

Thanks!

Best Regards, Cai