mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
PAL13615 (meshing of a "5 edges quadrangle")
fix faces orientation in ComputeQuadPref()
This commit is contained in:
parent
a96791a608
commit
d0fa5c0e05
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user