Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-09-11 13:55:08 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-09-11 13:55:08 +0400
commita821eb7f3c1d8278328d5abb8e15ce98f00eb6e1 (patch)
treeaf4790fc75b3c19f957202dc031e4e8f37367198 /xs/xsp/TriangleMesh.xsp
parent11e18f681d701e82089a0a811e8663cd8f7ccc1b (diff)
More work to avoid working with vertices outside XS
Diffstat (limited to 'xs/xsp/TriangleMesh.xsp')
-rw-r--r--xs/xsp/TriangleMesh.xsp12
1 files changed, 12 insertions, 0 deletions
diff --git a/xs/xsp/TriangleMesh.xsp b/xs/xsp/TriangleMesh.xsp
index df0b827b5..b05c9b0f8 100644
--- a/xs/xsp/TriangleMesh.xsp
+++ b/xs/xsp/TriangleMesh.xsp
@@ -126,6 +126,18 @@ TriangleMesh::slice(z)
OUTPUT:
RETVAL
+std::vector<double>
+TriangleMesh::bb3()
+ CODE:
+ RETVAL.push_back(THIS->stl.stats.min.x);
+ RETVAL.push_back(THIS->stl.stats.min.y);
+ RETVAL.push_back(THIS->stl.stats.max.x);
+ RETVAL.push_back(THIS->stl.stats.max.y);
+ RETVAL.push_back(THIS->stl.stats.min.z);
+ RETVAL.push_back(THIS->stl.stats.max.z);
+ OUTPUT:
+ RETVAL
+
%}
};