TriangleGenerator Class¶
-
class
plask.mesh.TriangleGenerator¶ Generator which creates triangular mesh by Triangle library authored by Jonathan Richard Shewchuk.
Triangle generates exact Delaunay triangulations, constrained Delaunay triangulations,conforming Delaunay triangulations, Voronoi diagrams, and high-quality triangular meshes. The latter can be generated with no small or large angles,and are thus suitable for finite element analysis.
Methods¶
__call__(…) |
Generate mesh for given geometry object or load it from the cache. |
clear_cache() |
Clear cache of generated meshes |
generate(…) |
Generate mesh for given geometry object omitting the cache. |
Attributes¶
full |
Include whole bounding box of the geometry? |
max_area |
Maximum element area constraint |
min_angle |
Minimum angle in each element triangle |
Descriptions¶
Method Details¶
-
TriangleGenerator.__call__(geometry)¶ -
TriangleGenerator.__call__(object) Generate mesh for given geometry object or load it from the cache.
Parameters: - geometry – Geometry to generate mesh at.
- object – Geometry object to generate mesh at.
-
TriangleGenerator.clear_cache()¶ Clear cache of generated meshes
-
TriangleGenerator.generate(geometry)¶ -
TriangleGenerator.generate(object) Generate mesh for given geometry object omitting the cache.
Parameters: - geometry – Geometry to generate mesh at.
- object – Geometry object to generate mesh at.