Ported more things to XS

This commit is contained in:
Alessandro Ranellucci 2014-09-21 10:51:36 +02:00
parent 5a96bad8c2
commit 73b3c06361
18 changed files with 383 additions and 297 deletions

View file

@ -17,8 +17,8 @@
void repair();
void WriteOBJFile(char* output_file);
void scale(float factor);
void scale_xyz(std::vector<double> versor)
%code{% THIS->scale(versor); %};
void scale_xyz(Pointf3* versor)
%code{% THIS->scale(*versor); %};
void translate(float x, float y, float z);
void rotate_x(float angle);
void rotate_y(float angle);
@ -44,8 +44,7 @@
THIS->bounding_box(&bb);
RETVAL = new Pointf3(bb.center());
%};
int facets_count()
%code{% RETVAL = THIS->stl.stats.number_of_facets; %};
int facets_count();
void reset_repair_stats();
%{