 
  Wed, 01/29/2025 - 19:26
Hello,
I am generating meshes for some bspline extrusions in OpenCASCADE 7.7.2. The resulting triangulation includes additional nodes added internal to the faces that do not obey the linear/angular deflection as I expect.
The attached screenshots demonstrate the issue clearly. In 'expected.png', you can see in the CAD Assistant stats panel that the highlighted face is a bspline extrusion and you see that there are no nodes added internally to the faces. In 'actual.png', you see significantly more noise in the triangulation.
The code I am using to generate the mesh follows.
    BRepTools::Clean(m_main_shape, true);
    Prs3d_Drawer a_drawer;
    BRepMesh_IncrementalMesh glbMeshAlgo;
    glbMeshAlgo.ChangeParameters().Deflection =
        Prs3d::GetDeflection(bbox, a_drawer.DeviationCoefficient(), a_drawer.MaximalChordialDeviation());
    glbMeshAlgo.ChangeParameters().Angle = a_drawer.DeviationAngle();
    glbMeshAlgo.ChangeParameters().InParallel = true;
    glbMeshAlgo.SetShape(m_main_shape);
    glbMeshAlgo.Perform();
I have tried the exact same settings that can be logged from CAD Assistant for the meshing algorithm with no improvement.
Any suggestions on how I can generate a mesh that doesn't over-sample these faces?
Thanks! -Erin
 
        