mirror of https://github.com/vitalif/Slic3r
Finish porting TriangleMesh->translate
parent
04d5d1bb9b
commit
597e9e6c14
|
@ -26,10 +26,14 @@
|
||||||
void
|
void
|
||||||
stl_invalidate_shared_vertices(stl_file *stl)
|
stl_invalidate_shared_vertices(stl_file *stl)
|
||||||
{
|
{
|
||||||
if (stl->v_indices != NULL)
|
if (stl->v_indices != NULL) {
|
||||||
free(stl->v_indices);
|
free(stl->v_indices);
|
||||||
if (stl->v_shared != NULL)
|
stl->v_indices = NULL;
|
||||||
|
}
|
||||||
|
if (stl->v_shared != NULL) {
|
||||||
free(stl->v_shared);
|
free(stl->v_shared);
|
||||||
|
stl->v_shared = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -37,7 +37,7 @@ TriangleMesh::stats()
|
||||||
SV*
|
SV*
|
||||||
TriangleMesh::vertices()
|
TriangleMesh::vertices()
|
||||||
CODE:
|
CODE:
|
||||||
if (THIS->stl.stats.shared_vertices == 0)
|
if (THIS->stl.v_shared == NULL)
|
||||||
stl_generate_shared_vertices(&(THIS->stl));
|
stl_generate_shared_vertices(&(THIS->stl));
|
||||||
|
|
||||||
// vertices
|
// vertices
|
||||||
|
@ -59,7 +59,7 @@ TriangleMesh::vertices()
|
||||||
SV*
|
SV*
|
||||||
TriangleMesh::facets()
|
TriangleMesh::facets()
|
||||||
CODE:
|
CODE:
|
||||||
if (THIS->stl.stats.shared_vertices == 0)
|
if (THIS->stl.v_shared == NULL)
|
||||||
stl_generate_shared_vertices(&(THIS->stl));
|
stl_generate_shared_vertices(&(THIS->stl));
|
||||||
|
|
||||||
// facets
|
// facets
|
||||||
|
|
Loading…
Reference in New Issue