How do I standardize the orientation of several PLY models in MeshLab?

孤街醉人 提交于 2021-01-29 07:15:38

问题


I have a bunch of .ply models of human faces. I want to open them one at a time in MeshLab, but each time in the same orientation. How do I reorient the planes in MeshLab so they better align with the faces? In other words, I want to view each face in a standardized orientation, such as the Frankfort Horizontal Plane parallel to the ground, so that when I go to filters --> normals, curvatures, and orientation, --> transform: rotate and I rotate the faces about a fixed axis and center of rotation, each face is fixed so that the Frankfort Horizontal Plane is parallel to the ground.


回答1:


Your best option is to create a mlx script with the rotation you want to apply to all meshes.

  1. Open your favorite head model in meshlab and manually apply the 'transform: rotate' filter that align the model in the desired orientation.
  2. Click on menu 'filters' , 'current script' and save the script to a file named Frankfort.mlx
  3. Exit from meshlab
  4. For each ply file in your repository execute the command 'meshlabser -i file.ply -o newfile.ply -s Frankfort.mlx'. You can use one bash script, powershell script or bat file for that.


来源:https://stackoverflow.com/questions/63351240/how-do-i-standardize-the-orientation-of-several-ply-models-in-meshlab

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!