Skip to content
Snippets Groups Projects
Commit d6a63345 authored by Thomas Toulorge's avatar Thomas Toulorge
Browse files

Changed detail in old HO mesh optimizer

parent 31133421
Branches
Tags
No related merge requests found
...@@ -238,9 +238,10 @@ static bool testElInDist(const SPoint3 p, double limDist, MElement *el) ...@@ -238,9 +238,10 @@ static bool testElInDist(const SPoint3 p, double limDist, MElement *el)
if (el->getDim() == 2) { // 2D? if (el->getDim() == 2) { // 2D?
for (int iEd = 0; iEd < el->getNumEdges(); iEd++) { // Loop over edges of element for (int iEd = 0; iEd < el->getNumEdges(); iEd++) { // Loop over edges of element
MEdge ed = el->getEdge(iEd); std::vector<MVertex*> edgeVert;
const SPoint3 A = ed.getVertex(0)->point(); el->getEdgeVertices(iEd, edgeVert);
const SPoint3 B = ed.getVertex(1)->point(); const SPoint3 A = edgeVert[0]->point();
const SPoint3 B = edgeVert[1]->point();
if (testSegSphereIntersect(A, B, p, limDistSq)) { if (testSegSphereIntersect(A, B, p, limDistSq)) {
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment