Triangular mesh¶
- class freshkiss3d.TriangularMesh¶
Freshkiss3D two-dimensional triangular mesh.
- Parameters
TG (
geomalgo.Triangulation2D
) – Triangulation containing: Vertices x-coordinate, Vertices y-coordinate and Array of shape (triangle_numbers, 3), giving the 3 vertices of each triangle.boundary_labels (array, int32, 2D) – Array of shape (boundary_edge_numbers, 3), giving for each boundary edges: - its first vertice, - its second vertice, - its label, to apply boundary conditions.
- triangulation¶
Triangulation containing: Vertices x-coordinate, Vertices y-coordinate and Array of shape (triangle_numbers, 3), giving the 3 vertices of each triangle.
- Type
geomalgo.Triangulation2D
- vertices¶
Vertices collection.
- Type
freshkiss3d.mesh.Vertices
- triangles¶
Triangles collection.
- Type
freshkiss3d.mesh.Triangles
- intern_edges¶
- Type
geomalgo.InternEdges
- boundary_edges¶
- Type
geomalgo.BoundaryEdges
- static from_msh_file()¶
Build a
fk.TriangularMesh
from a.msh
file.- Parameters
filepath (char) – link to .msh file
- refine_by_splitting()¶
Refine mesh by splitting each triangle in 4
Examples using freshkiss3d.TriangularMesh
¶
Generate meshes from .geo files with Gmsh
Construct a Mesh from a .msh file
Refine a TriangularMesh by splitting
Post-processing with Matplotlib
Examples using freshkiss3d.TriangularMesh.from_msh_file
¶
Generate meshes from .geo files with Gmsh
Construct a Mesh from a .msh file
Refine a TriangularMesh by splitting
Post-processing with Matplotlib
- freshkiss3d.read_msh()¶
Read mesh file. Compatible format: .msh/.msh (GMSH)/.mesh (MEDIT)
- Parameters
file_in (string) – Mesh file name (with format extension)
Examples using freshkiss3d.read_msh
¶
Convert mesh file to .msh format
Construct a Mesh from a .msh file