diff --git a/nodes.py b/nodes.py index f8d76a1..ce24b91 100644 --- a/nodes.py +++ b/nodes.py @@ -1967,10 +1967,14 @@ class Trellis2MeshRefiner: faces = mesh.faces.cuda() # Build BVH for the current mesh to guide remeshing - print(f"Building BVH for current mesh...") - bvh = CuMesh.cuBVH(vertices, faces) - bvh.vertices = vertices - bvh.faces = faces + if generate_texture_slat: + print("Building BVH for current mesh...") + bvh = CuMesh.cuBVH(vertices, faces) + bvh.vertices = vertices + bvh.faces = faces + else: + print('Not building BVH, only used for texturing') + bvh = None return (mesh, bvh,) diff --git a/requirements.txt b/requirements.txt index b5d3e01..f8b16e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ requests pymeshlab opencv-python scipy -open3d \ No newline at end of file +open3d +plotly \ No newline at end of file