QDGset_no_shapenet / qdgset /utils /import_utils.py
fhsup's picture
Upload 11 files
674e95d verified
raw
history blame contribute delete
350 Bytes
import open3d as o3d
def load_mesh_from_path(path):
mesh = o3d.io.read_triangle_mesh(path)
return mesh
def load_mesh_from_vertices_and_triangles(vertices, triangles):
mesh = o3d.geometry.TriangleMesh()
mesh.vertices = o3d.utility.Vector3dVector(vertices)
mesh.triangles = o3d.utility.Vector3iVector(triangles)
return mesh