MCPcopy Create free account
hub / github.com/TEA-Lab/TwoByTwo / triangulate_mesh_with_pyblender

Function triangulate_mesh_with_pyblender

data_util/preprocess_obj_blender.py:33–36  ·  view source on GitHub ↗
(instance_dir)

Source from the content-addressed store, hash-verified

31# activate when need to triangulate the meshes
32
33def triangulate_mesh_with_pyblender(instance_dir):
34 blender_script_path = os.path.join(current_dir, 'blender_triangulate.py')
35 subprocess.run(['blender', '--factory-startup', '--background', '--python', blender_script_path, '--', os.path.join(current_dir, instance_dir, 'partA.obj'), os.path.join(current_dir, instance_dir, 'partA_tri.obj')])
36 subprocess.run(['blender','--factory-startup', '--background', '--python', blender_script_path, '--', os.path.join(current_dir, instance_dir, 'partB.obj'), os.path.join(current_dir, instance_dir, 'partB_tri.obj')])
37
38
39

Callers 1

combine_meshesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected