PLaSK User Manual

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.

See: https://www.cs.cmu.edu/~quake/triangle.html

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 geomery?
max_area Maximum element area constraint
min_angle Minimum angle in each element triangle

Descriptions

Method Details

TriangleGenerator.__call__(object)
TriangleGenerator.__call__(geometry)

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(object)
TriangleGenerator.generate(geometry)

Generate mesh for given geometry object omitting the cache.

Parameters:
  • geometry – Geometry to generate mesh at.
  • object – Geometry object to generate mesh at.

Attribute Details

TriangleGenerator.full

Include whole bounding box of the geomery?

TriangleGenerator.max_area

Maximum element area constraint

TriangleGenerator.min_angle

Minimum angle in each element triangle