mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 15:07:28 +05:00
bos #36783 [EDF] Use BRepTopAdaptor_FClass2d classifier for edges with tighter tolerance.
This commit is contained in:
parent
ea6c739385
commit
cc2c7dfdc0
@ -203,6 +203,10 @@ bool StdMeshers_Import_1D2D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape &
|
|||||||
// BRepClass_FaceClassifier is most time consuming, so minimize its usage
|
// BRepClass_FaceClassifier is most time consuming, so minimize its usage
|
||||||
const double clsfTol = 1e2 * BRep_Tool::MaxTolerance( geomFace, TopAbs_VERTEX );
|
const double clsfTol = 1e2 * BRep_Tool::MaxTolerance( geomFace, TopAbs_VERTEX );
|
||||||
BRepTopAdaptor_FClass2d classifier( geomFace, clsfTol ); //Brimless_FaceClassifier classifier;
|
BRepTopAdaptor_FClass2d classifier( geomFace, clsfTol ); //Brimless_FaceClassifier classifier;
|
||||||
|
|
||||||
|
const double clsfTolEdge = BRep_Tool::MaxTolerance( geomFace, TopAbs_EDGE );
|
||||||
|
BRepTopAdaptor_FClass2d classifierEdge( geomFace, clsfTolEdge ); //Define specific classifier for edges based on TopAbs_EDGE. Solve issue bos #36783
|
||||||
|
|
||||||
Bnd_B2d bndBox2d;
|
Bnd_B2d bndBox2d;
|
||||||
Bnd_Box bndBox3d;
|
Bnd_Box bndBox3d;
|
||||||
{
|
{
|
||||||
@ -425,7 +429,7 @@ bool StdMeshers_Import_1D2D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape &
|
|||||||
{
|
{
|
||||||
if ( nodeState[i] != TopAbs_UNKNOWN ) continue;
|
if ( nodeState[i] != TopAbs_UNKNOWN ) continue;
|
||||||
gp_XY uv = helper.GetNodeUV( geomFace, newNodes[i] );
|
gp_XY uv = helper.GetNodeUV( geomFace, newNodes[i] );
|
||||||
nodeState[i] = classifier.Perform( uv ); //geomFace, uv, clsfTol );
|
nodeState[i] = classifierEdge.Perform( uv ); //geomFace, uv, clsfTolEdge );
|
||||||
//nodeState[i] = classifier.State();
|
//nodeState[i] = classifier.State();
|
||||||
isIn = ( nodeState[i] == TopAbs_IN );
|
isIn = ( nodeState[i] == TopAbs_IN );
|
||||||
}
|
}
|
||||||
@ -447,8 +451,8 @@ bool StdMeshers_Import_1D2D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape &
|
|||||||
Standard_Real U,V;
|
Standard_Real U,V;
|
||||||
proj.LowerDistanceParameters(U,V);
|
proj.LowerDistanceParameters(U,V);
|
||||||
gp_XY uv( U,V );
|
gp_XY uv( U,V );
|
||||||
//classifier.Perform( geomFace, uv, clsfTol );
|
//classifier.Perform( geomFace, uv, clsfTolEdge );
|
||||||
TopAbs_State state = classifier.Perform( uv );
|
TopAbs_State state = classifierEdge.Perform( uv );
|
||||||
if ( state != TopAbs_IN )
|
if ( state != TopAbs_IN )
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user