User Guide#
Package Overview#
MyMesh has a collection of algorithms for generation, manipulation, and analysis of 2D and 3D meshes. These capabilities are organized into the following submodules:
Boolean operations for meshes |
|
Tools for extracting isosurfaces from images or implicit functions |
|
Mesh conversion tools |
|
Tools for calculating curvature |
|
Delaunay triangulation and related methods |
|
Image-based meshing tools |
|
Implicit function meshing tools |
|
Mesh quality improvement |
|
Octree data structure and related methods. |
|
Mesh generation for pre-defined shapes |
|
Element quality measurements |
|
Ray casting and intersection tests |
|
Various mesh utilities |
|
Mesh visualization and plotting |
Importing MyMesh#
There are several ways MyMesh can be imported and used.
import mymesh
S = mymesh.primitives.Sphere([0,0,0], 1)
Alternatively, submodules can be imported directly as
from mymesh import primitives
S = primitives.Sphere([0,0,0], 1)
Or to import all submodules (and the mesh
class), they can be imported
as using *
, but this should be done carefully to avoid conflicts with
other variables or modules that might have the same names.
from mymesh import *
S = primitives.Sphere([0,0,0], 1)