-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Hi community and Alessandro
I'm trying to update meshlab from 2023.12 to 2025.7 and i have an the call to meshing_decimation_quadric_edge_collapse?
It does not exist anymore or maybe has been renamed?
Here is the piece of code:
ms = ml.MeshSet()
ms.add_mesh(ml.Mesh(mesh.vertices, mesh.faces))
ms.compute_scalar_by_discrete_curvature_per_vertex()
m = ms.current_mesh()
curvature_values = m.vertex_scalar_array()
quality_weights = np.ones_like(curvature_values)
quality_weights[curvature_values < 0] = boundary_preservation_factor
m.vertex_scalar_array()[:] = quality_weights
target_faces = max(
10, int(candidate_target_count * (len(mesh.faces) / len(mesh.vertices)))
)
ms.meshing_decimation_quadric_edge_collapse(
targetfacenum=target_faces,
qualityweight=True,
preserveboundary=True,
boundaryweight=1.5,
)
And here the error at runtime
ms.meshing_decimation_quadric_edge_collapse(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'pymeshlab.pmeshlab.MeshSet' object has no attribute 'meshing_decimation_quadric_edge_collapse'
Metadata
Metadata
Assignees
Labels
No labels