Yes I did, I read the file using TopoDS_Shape 
<https://dealii.org/developer/doxygen/deal.II/classTensor.html> bow_surface 
<https://dealii.org/developer/doxygen/deal.II/classTensor.html> = 
OpenCASCADE::read_SLT 
<https://dealii.org/developer/doxygen/deal.II/namespaceOpenCASCADE.html#affe07b496f4edf844d5f4e8d7a540295>
 
( *cad_file_name* 
<https://dealii.org/developer/doxygen/deal.II/classTensor.html> ); 

and I read the file usingOpenCASCADE::extract_compound_shapes 
<https://dealii.org/developer/doxygen/deal.II/namespaceOpenCASCADE.html#a1e49f50433c835c841eed35f40862560>
 
(Bowed Surfaces 
<https://dealii.org/developer/doxygen/deal.II/classTensor.html>, Compounds 
<https://dealii.org/developer/doxygen/deal.II/classTensor.html>, Composite 
Solids <https://dealii.org/developer/doxygen/deal.II/classTensor.html>, 
Solids <https://dealii.org/developer/doxygen/deal.II/classTensor.html>, 
Shells <https://dealii.org/developer/doxygen/deal.II/classTensor.html>, 
Lines <https://dealii.org/developer/doxygen/deal.II/classTensor.html> ) was 
extracted, and then the coarse mesh was imported, but the refinement was 
not refined by looking for the stl file.(I followed the steps in step-54 to 
the letter).

On Sunday, November 3, 2024 at 5:42:02 AM UTC+8 Wolfgang Bangerth wrote:

> 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: bang...@colostate.edu
> 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 dealii+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/dealii/d3c58f6b-665f-458b-8339-0fd157b4cd75n%40googlegroups.com.

Reply via email to