From 3057677a5522ef8c3c9ee50ef5f07ec473864723 Mon Sep 17 00:00:00 2001 From: LauraReimoser Date: Fri, 17 Mar 2023 16:24:39 +0000 Subject: [PATCH] Changed extrude_triangulation, such that surface that is being extruded on is not part of the final extruded 3D mesh --- trimesh/creation.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/trimesh/creation.py b/trimesh/creation.py index 5fe11fe6c..1abdc4dfe 100644 --- a/trimesh/creation.py +++ b/trimesh/creation.py @@ -386,11 +386,9 @@ def extrude_triangulation(vertices, # a sequence of zero- indexed faces, which will then be appended # with offsets to create the final mesh - faces_seq = [faces[:, ::-1], - faces.copy(), + faces_seq = [faces.copy(), vertical_faces] - vertices_seq = [vertices_3D, - vertices_3D.copy() + [0.0, 0, height], + vertices_seq = [vertices_3D.copy() + [0.0, 0, height], vertical] # append sequences into flat nicely indexed arrays