Ported TriangleMesh->size
This commit is contained in:
parent
9d50616c7d
commit
9402898c58
5 changed files with 32 additions and 3 deletions
|
@ -79,6 +79,18 @@ TriangleMesh::facets()
|
|||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
SV*
|
||||
TriangleMesh::size()
|
||||
CODE:
|
||||
AV* size = newAV();
|
||||
av_extend(size, 2);
|
||||
av_store(size, 0, newSVnv(THIS->stl.stats.size.x));
|
||||
av_store(size, 1, newSVnv(THIS->stl.stats.size.y));
|
||||
av_store(size, 2, newSVnv(THIS->stl.stats.size.z));
|
||||
RETVAL = newRV_noinc((SV*)size);
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
%}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue