diff options
author | Joseph Lenox <lenox.joseph@gmail.com> | 2016-11-28 11:46:43 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-02-21 18:11:52 +0300 |
commit | 716dc2e65079f8d0465a4831dbaa747f74e53bbf (patch) | |
tree | 9c4ca40705c76e4f09cb31fa07399d6d0b028abc /xs | |
parent | 26b6e4c6194f7abcd793b968c7e634a4d8d9e0cb (diff) |
Made cube and cylinder static functions of the package, not some specific TriangleMesh object.
Diffstat (limited to 'xs')
-rw-r--r-- | xs/xsp/TriangleMesh.xsp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/xs/xsp/TriangleMesh.xsp b/xs/xsp/TriangleMesh.xsp index 32425d6d4..7f2e71bcb 100644 --- a/xs/xsp/TriangleMesh.xsp +++ b/xs/xsp/TriangleMesh.xsp @@ -37,10 +37,7 @@ %code{% RETVAL = THIS->bounding_box().center(); %}; int facets_count(); void reset_repair_stats(); - Clone<TriangleMesh> cube(double x, double y, double z) - %code{% RETVAL = make_cube(x, y, z); %}; - Clone<TriangleMesh> cylinder(double r, double h) - %code{% RETVAL = make_cylinder(r, h); %}; + %{ void @@ -228,6 +225,21 @@ TriangleMesh::bb3() OUTPUT: RETVAL + +Clone<TriangleMesh> +cube(double x, double y, double z) + CODE: + RETVAL = make_cube(x,y,z); + OUTPUT: + RETVAL + +Clone<TriangleMesh> +cylinder(double r, double h) + CODE: + RETVAL = make_cylinder(r, h); + OUTPUT: + RETVAL + %} }; |