Fixed a 64bit compatiblity in admesh, fixed a typo in TriangleMesh::swap()

This commit is contained in:
bubnikv committed 2016-11-15 17:22:00 +01:00
1 parent 7f1704b2ac
commit e6d802a5ff
2 files changed
+11 -7

No files matched your search

+2 -6
View File
@@ -58,12 +58,8 @@ TriangleMesh& TriangleMesh::operator= (TriangleMesh other)
void
TriangleMesh::swap(TriangleMesh &other)
{
std::swap(this->stl, other.stl);
std::swap(this->repaired, other.repaired);
std::swap(this->stl.facet_start, other.stl.facet_start);
std::swap(this->stl.neighbors_start, other.stl.neighbors_start);
std::swap(this->stl.v_indices, other.stl.v_indices);
std::swap(this->stl.v_shared, other.stl.v_shared);
std::swap(this->stl, other.stl);
std::swap(this->repaired, other.repaired);
}
TriangleMesh::~TriangleMesh() {