Incomplete work to store TriangleMesh objects in Model objects instead of extracting vertices and facets

This commit is contained in:
Alessandro Ranellucci 2013-09-11 09:49:28 +02:00
parent 78ee6e5d6d
commit 11e18f681d
8 changed files with 45 additions and 100 deletions

View file

@ -50,6 +50,18 @@ TriangleMesh::ReadSTLFile(char* input_file) {
stl_open(&stl, input_file);
}
void
TriangleMesh::write_ascii(char* output_file)
{
stl_write_ascii(&this->stl, output_file, "");
}
void
TriangleMesh::write_binary(char* output_file)
{
stl_write_binary(&this->stl, output_file, "");
}
void TriangleMesh::ReadFromPerl(SV* vertices, SV* facets)
{
stl_initialize(&stl);