3DLIRIOUS / MeshLabXML

Create and run MeshLab XML scripts with Python
GNU Lesser General Public License v2.1
202 stars 43 forks source link

Poisson disc sampling in 3D mesh #14

Open surajitsaikia27 opened 5 years ago

surajitsaikia27 commented 5 years ago

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()

kaushik333 commented 4 years ago

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.