mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
3.01k stars 582 forks source link

Can we increase the quality of the Mesh from point clouds #1809

Open Pavankunchala opened 1 year ago

Pavankunchala commented 1 year ago

I am generating a few point clouds using Point-e and I want to improve the quality of it

Can I use Trimesh to do so that the output meshquality will be better

Kiord commented 1 year ago

What is the output of Point-e ? a Mesh ? a Pointcloud ?

If the output is a pointcloud, then you might look for meshing algorithms (I don't think Trimesh implements pointcloud to mesh methods, except convex hulls). Open3D seems to do the job, see https://towardsdatascience.com/5-step-guide-to-generate-3d-meshes-from-point-clouds-with-python-36bad397d8ba

If the output is a mesh, what do you mean by "quality" ? Trimesh as several modules for mesh modification :

Another option is to design a template mesh (it has to describe only one category of objects e.g. glasses), then manually find correspondences between your template mesh and the output of Point-e (mesh or point cloud). Then, use non rigid registration with trimesh.registration.nricp_sumner or trimesh.registration.nricp_amberg. See examples/nricp.py for more information.