From 9ea9980b2c23175a2cd2e0a8feff9fff3abf223c Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 11 Apr 2015 01:06:03 +0200 Subject: [PATCH] + fix bad choose of limit --- src/Mod/Fem/App/FemMesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/App/FemMesh.cpp b/src/Mod/Fem/App/FemMesh.cpp index 18e9c577d3..391333486e 100755 --- a/src/Mod/Fem/App/FemMesh.cpp +++ b/src/Mod/Fem/App/FemMesh.cpp @@ -411,7 +411,7 @@ std::set 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 @@ -449,7 +449,7 @@ std::set 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