FEM: Make FEM compatible with SMESH7

This commit is contained in:
Jean-Marie Verdun
2016-05-14 14:27:42 +02:00
committed by wmayer
parent 088f1e4719
commit f7c77a446a
9 changed files with 107 additions and 38 deletions

View File

@@ -362,8 +362,6 @@ Mesh::MeshObject* Mesher::createMesh() const
}
// clean up
delete meshgen;
TopoDS_Shape aNull;
mesh->ShapeToMesh(aNull);
mesh->Clear();
@@ -371,6 +369,8 @@ Mesh::MeshObject* Mesher::createMesh() const
for (std::list<SMESH_Hypothesis*>::iterator it = hypoth.begin(); it != hypoth.end(); ++it)
delete *it;
delete meshgen;
MeshCore::MeshKernel kernel;
kernel.Adopt(verts, faces, true);