cnr-isti-vclab / PyMeshLab

The open source mesh processing python library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistent remesh using meshing_isotropic_explicit_remeshing

mozarda opened this issue · comments

I'm doing some work on 3D classification with stl files. The input data consists of too small vertices number and also high vertices number. So, I was doing a remesh using this filter.

Somehow, the result of remesh is not consistent. It is always between two values.
My code is as below:

def mesh_process(file):
    ms = ml.MeshSet()
    ms.load_new_mesh(file)
    m = ms.current_mesh()
    ms.meshing_isotropic_explicit_remeshing(iterations=5, 
                                            targetlen=ml.Percentage(10), 
                                            featuredeg=5)
    v_num = m.vertex_number()
    print(f'number of vertices={v_num}')

mesh_process(file)

Using the same file, the result of v_num is always either A or B. For example, 200 and 205.
Is it normal that remeshing should give a different output?
Is there any way to make it consistent? like, defining a seed.