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

This commit is contained in:
bubnikv 2016-11-15 17:22:00 +01:00
parent 7f1704b2ac
commit e6d802a5ff
2 changed files with 11 additions and 7 deletions

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() {