diff --git a/xs/xsp/TriangleMesh.xsp b/xs/xsp/TriangleMesh.xsp index edfb4a198..be2239c05 100644 --- a/xs/xsp/TriangleMesh.xsp +++ b/xs/xsp/TriangleMesh.xsp @@ -180,6 +180,8 @@ SV* TriangleMesh::slice(z) std::vector z CODE: + THIS->require_shared_vertices(); // TriangleMeshSlicer needs this + // convert doubles to floats std::vector z_f = cast(z);