Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplification with modern MeshLab version #15

Closed
hummat opened this issue Sep 1, 2021 · 2 comments
Closed

Simplification with modern MeshLab version #15

hummat opened this issue Sep 1, 2021 · 2 comments

Comments

@hummat
Copy link

hummat commented Sep 1, 2021

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>
@canoneod
Copy link

Using this along with pymeshlab worked for me!

@davidstutz
Copy link
Owner

Thanks for sharing, will highlight that in the README!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants