diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-09-11 13:55:08 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-09-11 13:55:08 +0400 |
commit | a821eb7f3c1d8278328d5abb8e15ce98f00eb6e1 (patch) | |
tree | af4790fc75b3c19f957202dc031e4e8f37367198 /xs/xsp/TriangleMesh.xsp | |
parent | 11e18f681d701e82089a0a811e8663cd8f7ccc1b (diff) |
More work to avoid working with vertices outside XS
Diffstat (limited to 'xs/xsp/TriangleMesh.xsp')
-rw-r--r-- | xs/xsp/TriangleMesh.xsp | 12 |
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 + %} }; |