Skip to content
Snippets Groups Projects
Commit 22845594 authored by Heng Liu's avatar Heng Liu
Browse files

fix bug of accidentally delete properties while calling mesh.clear()

parent a2f1cd38
Branches
No related tags found
1 merge request!2fix bug of accidentally delete properties while calling mesh.clear()
......@@ -105,7 +105,7 @@ public:
{
HEXEX_DEBUG_ONLY(std::cout << "converting mesh to hex mesh" << std::endl;)
hexMesh.clear();
hexMesh.clear(false);
calculateDifferencesInDartTypes();
......@@ -142,7 +142,7 @@ public:
{
auto tovec = toVec<typename TetMeshT::PointT>;
tetMesh.clear();
tetMesh.clear(false);
auto parametrization = tetMesh.template request_cell_property<VertexMapProp<Vec3d>>("Parametrization");
tetMesh.set_persistent(parametrization);
......
......@@ -37,7 +37,7 @@ void convertToHexExTetrahedralMesh(const TetMeshT& _mesh, TetrahedralMesh& _tetM
};
// add vertices
_tetMesh.clear();
_tetMesh.clear(false);
for (auto v_it = _mesh.vertices_begin(); v_it != _mesh.vertices_end(); ++v_it)
_tetMesh.add_vertex(toVec3d(_mesh.vertex(*v_it)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment