use IMeshTools in SetLocalMeshSize

This commit is contained in:
Joachim Schoeberl 2024-02-21 21:42:34 +01:00
parent a65e61c95e
commit 4ff7a2261b

View File

@ -666,7 +666,23 @@ namespace netgen
if (triangulation.IsNull())
{
BRepTools::Clean (geom.shape);
BRepMesh_IncrementalMesh (geom.shape, 0.01, true);
// BRepMesh_IncrementalMesh (geom.shape, 0.01, true);
// https://dev.opencascade.org/doc/overview/html/occt_user_guides__mesh.html
IMeshTools_Parameters aMeshParams;
aMeshParams.Deflection = 0.01;
aMeshParams.Angle = 0.5;
aMeshParams.Relative = Standard_False;
aMeshParams.InParallel = Standard_True;
aMeshParams.MinSize = Precision::Confusion();
aMeshParams.InternalVerticesMode = Standard_True;
aMeshParams.ControlSurfaceDeflection = Standard_True;
BRepMesh_IncrementalMesh aMesher (geom.shape, aMeshParams);
const Standard_Integer aStatus = aMesher.GetStatusFlags();
if (aStatus != 0)
cout << "BRepMesh_IncrementalMesh.status = " << aStatus << endl;
triangulation = BRep_Tool::Triangulation (face, loc);
}