Skip to content

puncturedfem.mesh_builder

Build a planar mesh from a list of vertices and edges.

This function is a template for the mesh builder functions in the meshlib submodules. It is used to build a planar mesh from a list of vertices and edges. The vertices and edges are obtained from the get_verts and get_edges functions, respectively.

Parameters:

Name Type Description Default
get_verts Callable

Function that returns a list of Vertices.

required
get_edges Callable

Function that returns a list of edges.

required
verbose bool, optional

Whether to print information about the mesh, by default True.

True
**kwargs Any

Additional keyword arguments to pass to get_verts and get_edges.

{}

Returns:

Type Description
PlanarMesh

Planar mesh object with specified Vertices and edges.

Notes

  • This function is likely to be replaced by a file i/o system in future versions.