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