I test some decimation / simplification tools to reduce triangles number of many OBJ files who represent a 3D model programmatically.
I have a problem with the function "Simplification: Quadric Edge Collapse Decimation (with texture) in MeshLab.
When I run the function I get the message : Filter failure message
I found a workaround with the IDE, I apply the function Filters / Texture / Converts PerVertex UV into PerWedge UV and then apply the simplification filter... But in the MeshLabXML api i can't find the filter to convert UV texture coordinates...
Anyone have had the problem? And resolved it?
You have two alternatives to do that:
First takes two steps:
meshlabserver -i inputMesh.obj -o tmpMesh.obj -m wt
meshlabserver -i tmpMesh.obj -o outputMesh.obj -m wt -s myScript.mlx
The second alternative is do everything in just a step, by calling the filter
Convert PerVertex UV into PerWedge UV
in your mlx script before of callingSimplification: Quadric Edge ...
. Also, I suggest to callRemove Unreferenced Vertices
just by sanity.Try saving this script to a file named
textureSimplify.mlx
Edit the line
<Param value="3000" name="TargetFaceNum"
to change the value 3000 to your desired number of faces, and then execute the script using the command: