MeshLabXML icon indicating copy to clipboard operation
MeshLabXML copied to clipboard

Poisson disc sampling in 3D mesh

Open surajitsaikia27 opened this issue 6 years ago • 1 comments

Hi all, I am trying to using Poisson disc sampling in a 3D mesh (a file in .off format) My goal is to do Poisson disc sampling and save the file again in .off format. Can you help me how can I do that? import meshlabxml as mlx import os

meshlabserver_path = 'C:\Program Files\VCG\MeshLab' os.environ['PATH'] = meshlabserver_path + os.pathsep + os.environ['PATH']

out = mlx.FilterScript(file_out='avent.off', ml_version='2016.12')

mlx.sampling.poisson_disk('input.off', sample_num=10000)

out.run_script()

surajitsaikia27 avatar Feb 15 '19 16:02 surajitsaikia27

Hi, Were you able to resolve this issue? I'm trying to do the exact same thing. I think run_script() executes these commands and opens the output in meshlab as opposed to saving them into another file.

kaushik333 avatar Jul 01 '20 15:07 kaushik333