Getting Started#
What do you want to do?#
There are a lot of different things you can do with MyMesh, depending on what you’re trying to do, there are different places to start.
What do you want to create a mesh from?
Functions, specifically implicit functions, can be turned into meshes using the
implicit
module.
A few pre-defined implicit functions are available in
implicit
, such as sphere()
, torus()
, and triply periodic
minimal surfaces like gyroid()
.
See the user guide on Implicit Meshing for further
explanation of what implicit functions are and how to pre-defined them, and the implicit mesh generation tools
available in the implicit
module:
VoxelMesh()
, SurfaceMesh()
, TetMesh()
.
Both 2D and 3D images can be converted
into meshes using the image
module.
Point clouds can be triangulated/tetrahedralized with the
delaunay
module. The convex hull and alpha shapes
(concave hulls) can be by identified with
mymesh.delaunay.ConvexHull()
/mymesh.delaunay.AlphaShape()
.
Oriented points (those with normal vectors associated with them)
can be reconstructed into an implicit function using
mymesh.implicit.SurfaceReconstruction()
.
If you’re starting from scratch, a number of options are
available. You can start with predefined shapes in the
primitives
module, including spheres, boxes, cylinders.
From there, you can use
explicit mesh boolean operations to make
more complex shapes from simple shapes.
You can also use sweep construction methods like
mymesh.primitives.Revolve()
and
mymesh.primitives.Extrude()
to build up meshes from
1D to 2D and 2D to 3D.