Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 1.42 KB

api.mesh_data.rst

File metadata and controls

64 lines (48 loc) · 1.42 KB

nanomesh

Mesh data

A large part of Nanomesh deals with with generating and manipulating 2D and 3D meshes. To store the data, Nanomesh uses MeshContainer, which is a somewhat low-level, generic container for mesh data. It can store different types of cells and associated data. It is used to read/write data via meshio.

To deal with mesh data more directly, use a Mesh. Instantiating Mesh will create the appropriate subtype, LineMesh, TriangleMesh or TetraMesh. These contain dedicated methods for working with a specific type of mesh and plotting them.

In addition, each can be extracted from MeshContainer.

Classes

nanomesh.MeshContainer nanomesh.Mesh nanomesh.LineMesh nanomesh.TriangleMesh nanomesh.TetraMesh

Reference

MeshContainer

Mesh

LineMesh

TriangleMesh

TetraMesh