In this example, we will create the culvert finite element model from the surface meshes in the 3dm file DExample3.3dm.
1. Use the DRead command to read the above 3dm file, select all surfaces and solids, then use the DMesh command to generate meshes and move the meshes apart.

2. Select the meshes and use the DDiagnose command. The following issues can be seen: 1. Conflicting faces represented by red lines; 2. Unclosed faces represented by purple lines. Then use the DRepair command to fix the errors and run DDiagnose again to verify the result. As shown below, all issues have been resolved.

3. Use the DRemesh command to perform high-quality remeshing, then use the DSeparate command to split the meshes and DColorize to color them.

4. Set mesh groups (the mesh model up to this point is DExample3-After.3dm), then use the Build command to create the finite element model (related model files: DExample3.inp, DExample3.mac, DExample3.fpn, and DExample3.f3grid).






















