mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Made cube and cylinder static functions of the package, not some specific TriangleMesh object.
This commit is contained in:
@@ -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
|
||||
|
||||
%}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user