API Reference#
This page provides an auto-generated summary of pandamesh’s API.
Preprocessing#
|
Utilities to clean-up geometries before meshing. |
|
Resolve polygon overlaps and intersections. |
Merge polygons with the same value for indexer (the same value if |
|
|
Remove line segments that are outside or that are near polygon segments. |
Ensure intersections between lines are present. |
|
Convert lines into points. |
|
|
Snap points together that are within tolerance of each other. |
|
Remove points that are outside of a polygon or near line or polygon segments. |
Return the processed geometries as a |
|
|
Find all unresolved intersections between polygon boundaries, linestring, and linearring edges. |
|
Detect vertices in polygon perimeters (exteriors and interiors) that are very close to each other. |
Triangle#
|
Wrapper for the python bindings to Triangle. |
Generate a mesh of triangles. |
|
Generate a mesh and return it as a geopandas GeoDataFrame. |
|
Generate a mesh and return it as an xugrid Ugrid2d. |
|
Minimum allowed angle for any triangle in the mesh. |
|
use this switch if you want all triangles in the mesh to be Delaunay, and not just constrained Delaunay; or if you want to ensure that all Voronoi vertices lie within the triangulation. |
|
Suppresses exact arithmetic. |
|
Specifies the maximum number of added Steiner points |
|
Sets the Delaunay algorithm. |
|
Check the consistency of the final mesh. |
Triangle Enumerators#
|
The type of Delaunay algorithm for Triangle. |
Gmsh#
|
Wrapper for the python bindings to Gmsh. |
|
Generate a mesh of triangles or quadrangles. |
|
Generate a mesh and return it as a geopandas GeoDataFrame. |
|
Generate a mesh and return it as an xugrid Ugrid2d. |
Can be set to one of |
|
Apply recombination algorithm to all surfaces, ignoring per-surface spec. |
|
Forces the mesh size to be extended from the boundary, or not, per surface. |
|
Compute mesh element sizes from values given at geometry points. |
|
Automatically compute mesh element sizes from curvature, using the value as the target number of elements per 2 * Pi radians. |
|
Controls how cell size fields are combined when they are found at the same location. |
|
All meshes can be subdivided to generate fully quadrangular cells. |
|
Controls level of information printed. |
|
Add a matheval distance field to the mesher. |
|
Add a distance field to the mesher. |
|
|
Add an equidistant structured field specifying cell sizes for mesh generation. |
Add an equidistant structured field as an xarray DataArray specifying cell sizes for mesh generation. |
|
Read-only access to fields. |
|
|
Write a gmsh .msh file |
Finalize Gmsh. |
|
|
Gmsh Enumerators#
|
Controls how cell size fields are combined in Gmsh when they are found at the same location. |
|
Gmsh level of information printed. |
|
Wrapper for the python bindings to Gmsh. |
|
Gmsh meshing algorithm. |
|
Controls how Gmsh recombines triangles to form quads. |