Skip to content

Commit

Permalink
Merge pull request #12 from swtyree/pr_meshlab_converter_fix
Browse files Browse the repository at this point in the history
Meshlab arguments
  • Loading branch information
ylabbe authored Feb 15, 2023
2 parents 625d08d + aa7e06a commit f526e29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cosypose/libmesh/meshlab_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ def run_meshlab_script(in_path, out_path, script, cd_dir=None, has_textures=True
cd_dir = '.'
command = [f'cd {cd_dir} &&', 'LC_ALL=C',
'meshlabserver', '-i', in_path.as_posix(), '-o', out_path.as_posix(),
'-s', script_path.as_posix(), '-om', 'vn']
'-m', 'vn']
if has_textures:
command += ['wt', 'vt']
print(command)
command += ['-s', script_path.as_posix()]
print(' '.join(command) + '\n')
os.system(' '.join(command))
script_path.unlink()
return
Expand Down

0 comments on commit f526e29

Please sign in to comment.