davidstutz / mesh-fusion

Python tool for obtaining watertight meshes using TSDF fusion.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplification with modern MeshLab version

hummat opened this issue · comments

The 3_simplify.py script doesn't run with modern MeshLab versions. The reason is a change in the filter definition. The name is now Simplification: Quadric Edge Collapse Decimation and there is an additional parameter PlanarWeight with default value 0.001. Here is the complete simplification.mlx with those changes:

<!DOCTYPE FilterScript>
<FilterScript>
 <filter name="Simplification: Quadric Edge Collapse Decimation">
  <Param type="RichInt" value="5000" name="TargetFaceNum"/>
  <Param type="RichFloat" value="0" name="TargetPerc"/>
  <Param type="RichFloat" value="0.5" name="QualityThr"/>
  <Param type="RichBool" value="false" name="PreserveBoundary"/>
  <Param type="RichFloat" value="1" name="BoundaryWeight"/>
  <Param type="RichBool" value="true" name="PreserveNormal"/>
  <Param type="RichBool" value="false" name="PreserveTopology"/>
  <Param type="RichBool" value="true" name="OptimalPlacement"/>
  <Param type="RichBool" value="true" name="PlanarQuadric"/>
  <Param type="RichFloat" value="0.001" name="PlanarWeight"/>
  <Param type="RichBool" value="false" name="QualityWeight"/>
  <Param type="RichBool" value="true" name="AutoClean"/>
  <Param type="RichBool" value="false" name="Selected"/>
 </filter>
</FilterScript>

Using this along with pymeshlab worked for me!

Thanks for sharing, will highlight that in the README!