From 47bca1216f9381d1c07d8367bc99128a9b9299b2 Mon Sep 17 00:00:00 2001 From: Tristan Carrier Baudouin <tristan.carrier@uclouvain.be> Date: Thu, 5 Apr 2012 08:57:07 +0000 Subject: [PATCH] automatic tests for lloyds and rtree --- Geo/MVertex.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Geo/MVertex.cpp b/Geo/MVertex.cpp index 1b61055ccc..79858217fb 100644 --- a/Geo/MVertex.cpp +++ b/Geo/MVertex.cpp @@ -367,18 +367,21 @@ bool reparamMeshVertexOnFace(MVertex *v, const GFace *gf, SPoint2 ¶m, bool onSurface) { + //To use Lloyds algorithm with compound faces, + //comment the first paragraph and decomment the second one + if (gf->geomType() == GEntity::CompoundSurface ){ GFaceCompound *gfc = (GFaceCompound*) gf; param = gfc->parFromVertex(v); return true; } - // if (gf->geomType() == GEntity::CompoundSurface && - // v->onWhat()->dim() < 2){ - // GFaceCompound *gfc = (GFaceCompound*) gf; - // param = gfc->getCoordinates(const_cast<MVertex*>(v)); - // return true; - // } + /*if (gf->geomType() == GEntity::CompoundSurface && + v->onWhat()->dim() < 2){ + GFaceCompound *gfc = (GFaceCompound*) gf; + param = gfc->getCoordinates(const_cast<MVertex*>(v)); + return true; + }*/ if(v->onWhat()->geomType() == GEntity::DiscreteCurve || v->onWhat()->geomType() == GEntity::BoundaryLayerCurve){ -- GitLab