On 11/1/24 21:18, 王艺康 wrote:

I have an stl file describing a complex model, I extracted some points of this complex model and drew a coarse mesh with gmsh, then ran step-54, but the mesh refinement does not follow the surface of the stl file. The refinement is only inside the coarse mesh.

Yes, if you only read the gmsh output, you have lost information about the underlying geometry (which was originally provided by the STL file). You need to use a manifold to the triangulation that uses the STL file as the underlying geometry. Most of what the TriangulationOnCAD::read_domain() function of step-54 does is setting up a manifold with the help of OpenCASCADE. You have to do the same, where you need to get a CAD geometry from the STL file.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/


--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dealii/4633f022-bbdd-4138-bb90-897397ab0220%40colostate.edu.

Reply via email to