Add two more repair actions and add volume to stats

This commit is contained in:
Alessandro Ranellucci 2013-07-13 19:00:38 +02:00
parent b709acf10f
commit 00683195c8
3 changed files with 9 additions and 1 deletions

View file

@ -21,6 +21,7 @@ TriangleMesh::stats()
HV* hv = newHV();
(void)hv_stores( hv, "number_of_facets", newSViv(THIS->stl.stats.number_of_facets) );
(void)hv_stores( hv, "number_of_parts", newSViv(THIS->stl.stats.number_of_parts) );
(void)hv_stores( hv, "volume", newSVnv(THIS->stl.stats.volume) );
(void)hv_stores( hv, "degenerate_facets", newSViv(THIS->stl.stats.degenerate_facets) );
(void)hv_stores( hv, "edges_fixed", newSViv(THIS->stl.stats.edges_fixed) );
(void)hv_stores( hv, "facets_removed", newSViv(THIS->stl.stats.facets_removed) );