PAL13615 (meshing of a "5 edges quadrangle")

fix faces orientation in ComputeQuadPref()
This commit is contained in:
eap 2007-04-18 10:40:06 +00:00
parent a96791a608
commit d0fa5c0e05

View File

@ -896,13 +896,14 @@ bool StdMeshers_Quadrangle_2D::ComputeQuadPref (SMESH_Mesh & aMesh,
const TopoDS_Face& F = TopoDS::Face(aShape);
Handle(Geom_Surface) S = BRep_Tool::Surface(F);
const TopoDS_Wire& W = BRepTools::OuterWire(F);
bool WisF = false;
if(W.Orientation()==TopAbs_FORWARD)
WisF = true;
bool WisF = true;
// if(W.Orientation()==TopAbs_FORWARD)
// WisF = true;
//if(WisF) cout<<"W is FORWARD"<<endl;
//else cout<<"W is REVERSED"<<endl;
bool FisF = (F.Orientation()==TopAbs_FORWARD);
if(!FisF) WisF = !WisF;
// bool FisF = (F.Orientation()==TopAbs_FORWARD);
// if(!FisF) WisF = !WisF;
// WisF = FisF;
int i,j,geomFaceID = meshDS->ShapeToIndex( F );
int nb = quad->side[0]->NbPoints();