pandamesh.GmshMesher.generate#
- GmshMesher.generate(finalize: bool = False) Tuple[ndarray, ndarray] [source]#
Generate a mesh of triangles or quadrangles.
- Parameters:
finalize (bool, default False) – Automatically finalize after generating.
- Returns:
vertices (np.ndarray of floats with shape
(n_vertex, 2)
)faces (np.ndarray of integers with shape
(n_face, nmax_per_face)
) –nmax_per_face
is 3 for exclusively triangles and 4 if quadrangles are included. A fill value of -1 is used as a last entry for triangles in that case.