问题
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.
- Open your favorite head model in meshlab and manually apply the 'transform: rotate' filter that align the model in the desired orientation.
- Click on menu 'filters' , 'current script' and save the script to a file named Frankfort.mlx
- Exit from meshlab
- 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