mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
use IMeshTools in SetLocalMeshSize
This commit is contained in:
parent
a65e61c95e
commit
4ff7a2261b
@ -666,7 +666,23 @@ namespace netgen
|
|||||||
if (triangulation.IsNull())
|
if (triangulation.IsNull())
|
||||||
{
|
{
|
||||||
BRepTools::Clean (geom.shape);
|
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);
|
triangulation = BRep_Tool::Triangulation (face, loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user