mesh.Mesh.generate_triangle_mesh#
- Mesh.generate_triangle_mesh()#
Generate a triangular surface mesh inside a closed line2 mesh.
The current mesh must be a closed, unbranched
line2loop. The input mesh defines the boundary of the resulting triangle mesh, and will determine the mesh element size.Returns#
- Mesh
Triangle surface mesh (tri3) filling the area inside this mesh.
See Also#
Examples#
Boundary preservation:
>>> cir = shapes.circle(div=8) >>> tri = cir.generate_triangle_mesh() >>> tri.eltype.lname 'tri3' >>> print(tri.border_mesh().n_elems()) 8