Module splashsurf_lib::mesh
source · Expand description
Basic mesh types used by the library and implementation of VTK export
This modules provides four basic types of meshes embedded in three dimensional spaces used by the library:
TriMesh3d
: triangle surface mesh in 3D spaceMixedTriQuadMesh3d
: surface mesh in 3D space with triangle and/or quadrilateral cellsPointCloud3d
: points without connectivity in 3D spaceHexMesh3d
: mesh with volumetric hexahedral cells
Furthermore, it provides the MeshWithData
type that can be used to attach additional
attributes to vertices (e.g. normals) or cells (e.g. areas/aspect ratios) of the mesh.
If the vtk_extras
feature is enabled, this module also provides traits to convert these
meshes to vtkio
data types for serialization to VTK
files. For example:
IntoVtkUnstructuredGridPiece
to convert basic meshes and meshes with attached attributes to theIntoVtkDataSet
for all meshes implementingIntoVtkUnstructuredGridPiece
to directly save a mesh as a VTK file
Re-exports
pub use crate::mesh::vtk_helper::IntoVtkDataSet;
vtk_extras
pub use crate::mesh::vtk_helper::IntoVtkUnstructuredGridPiece;
vtk_extras
Modules
- vtk_helper
vtk_extras
Trait implementations to convert meshes into types supported byvtkio
Structs
- Cell type for
HexMesh3d
- A hexahedral (volumetric) mesh in 3D
- A named attribute with data that can be attached to the vertices or cells of a mesh
- Wrapper type for meshes with attached point or cell data
- A surface mesh in 3D containing cells representing either triangles or quadrilaterals
- Cell type for
PointCloud3d
- A point cloud in 3D
- A triangle (surface) mesh in 3D
- Cell type for
TriMesh3d
Enums
- Data of an
MeshAttribute
that can be attached to the vertices or cells of a mesh - Cell type for
MixedTriQuadMesh3d
Traits
- Basic interface for mesh cells consisting of a collection of vertex indices
- Basic functionality that is provided by all meshes of the library
- Utility functions for triangles meshes
Functions
- Computes the angle at vertex
b
of the given triangle - Computes the unsigned area of the given triangle
- Computes the aspect ratio of the given triangle
- Computes the minimum and maximum angle in the given triangle
- Computes the face normal of the given triangle