Skip to content
Snippets Groups Projects
Commit 47bca121 authored by Tristan Carrier Baudouin's avatar Tristan Carrier Baudouin
Browse files

automatic tests for lloyds and rtree

parent b4e161ed
No related branches found
No related tags found
No related merge requests found
...@@ -367,18 +367,21 @@ bool reparamMeshVertexOnFace(MVertex *v, const GFace *gf, SPoint2 &param, ...@@ -367,18 +367,21 @@ bool reparamMeshVertexOnFace(MVertex *v, const GFace *gf, SPoint2 &param,
bool onSurface) bool onSurface)
{ {
//To use Lloyds algorithm with compound faces,
//comment the first paragraph and decomment the second one
if (gf->geomType() == GEntity::CompoundSurface ){ if (gf->geomType() == GEntity::CompoundSurface ){
GFaceCompound *gfc = (GFaceCompound*) gf; GFaceCompound *gfc = (GFaceCompound*) gf;
param = gfc->parFromVertex(v); param = gfc->parFromVertex(v);
return true; return true;
} }
// if (gf->geomType() == GEntity::CompoundSurface && /*if (gf->geomType() == GEntity::CompoundSurface &&
// v->onWhat()->dim() < 2){ v->onWhat()->dim() < 2){
// GFaceCompound *gfc = (GFaceCompound*) gf; GFaceCompound *gfc = (GFaceCompound*) gf;
// param = gfc->getCoordinates(const_cast<MVertex*>(v)); param = gfc->getCoordinates(const_cast<MVertex*>(v));
// return true; return true;
// } }*/
if(v->onWhat()->geomType() == GEntity::DiscreteCurve || if(v->onWhat()->geomType() == GEntity::DiscreteCurve ||
v->onWhat()->geomType() == GEntity::BoundaryLayerCurve){ v->onWhat()->geomType() == GEntity::BoundaryLayerCurve){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment