Skip to content

Commit

Permalink
+ fix bad choose of limit
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 10, 2015
1 parent 56b15fb commit 9ea9980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/App/FemMesh.cpp
Expand Up @@ -411,7 +411,7 @@ std::set<long> FemMesh::getNodesByFace(const TopoDS_Face &face) const
Bnd_Box box;
BRepBndLib::Add(face, box);
// limit where the mesh node belongs to the face:
double limit = box.SquareExtent()/10000.0;
double limit = BRep_Tool::Tolerance(face);
box.Enlarge(limit);

// get the current transform of the FemMesh
Expand Down Expand Up @@ -449,7 +449,7 @@ std::set<long> FemMesh::getNodesByEdge(const TopoDS_Edge &edge) const
Bnd_Box box;
BRepBndLib::Add(edge, box);
// limit where the mesh node belongs to the edge:
double limit = box.SquareExtent()/10000.0;
double limit = BRep_Tool::Tolerance(edge);
box.Enlarge(limit);

// get the current transform of the FemMesh
Expand Down

0 comments on commit 9ea9980

Please sign in to comment.