From ae69078d6222da616f6a0da643f6559fe4c3bb5e Mon Sep 17 00:00:00 2001 From: Bruno Fargnoli Date: Wed, 17 Dec 2025 16:25:18 +0100 Subject: [PATCH] Fixed mesh simplification --- requirements.txt | 1 + trellis2/representations/mesh/base.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a1831cd --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +meshlib diff --git a/trellis2/representations/mesh/base.py b/trellis2/representations/mesh/base.py index c0c217b..93fe12a 100644 --- a/trellis2/representations/mesh/base.py +++ b/trellis2/representations/mesh/base.py @@ -103,7 +103,7 @@ class Mesh: settings.packMesh = True print('Generating Meshlib Mesh ...') - mesh = mrmeshnumpy.meshFromFacesVerts(faces, vertices) + mesh = mrmeshnumpy.meshFromFacesVerts(self.faces, self.vertices) print('Packing Optimally ...') mesh.packOptimally() print('Decimating ...')