facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.74k stars 1.31k forks source link

How to save mesh as tetrahedron in pytorch3d? #1844

Closed yejr0229 closed 2 months ago

yejr0229 commented 2 months ago

I use the QuadriFlow(https://github.com/hjwdzh/QuadriFlow?tab=readme-ov-file#quadriflow-a-scalable-and-robust-method-for-quadrangulation) to transfer a triangle mesh to tetrahedron with quad_idx. Before I ues save_obj() to save triangle mesh: image Now how can I pass the 'quad_idx' parameters to this function and save a quad mesh?

bottler commented 2 months ago

PyTorch3D's meshes are only triangular meshes. You might be able to adapt code from that file, but what you want to do is not supported.