Skip to content
Snippets Groups Projects
Commit a8f73076 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

reset MElement::tolerance to the correct value

parent 6ab4d46a
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,6 @@ MElementOctree::MElementOctree(GModel *m) : _gm(m)
MElementOctree::MElementOctree(std::vector<MElement*> &v)
{
_gm = 0;
SBoundingBox3d bb;
for (unsigned int i = 0; i < v.size(); i++){
for(int j = 0; j < v[i]->getNumVertices(); j++){
......@@ -118,7 +117,7 @@ MElement *MElementOctree::find(double x, double y, double z, int dim)
MElement *e = (MElement*)Octree_Search(P, _octree);
if (!e){
double initialTol = 1.e-6;
double initialTol = MElement::getTolerance();
double tol = initialTol;
while (tol < .1){
tol *= 10;
......@@ -151,4 +150,3 @@ MElement *MElementOctree::find(double x, double y, double z, int dim)
}
return NULL;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment