MeshTransformation is the user-level interface for mesh filters, i.e., objects that take an input mesh and produce a new mesh. More...
Public Member Functions | |
| MeshTransformation () | |
| Construct an empty mesh filter object. | |
| MeshTransformation (Sundance::Handleable< MeshTransformationBase > *rawPtr) | |
| Construct from a raw pointer to a mesh filter subtype. | |
| MeshTransformation (const RCP< MeshTransformationBase > &smartPtr) | |
| Construct from a smart pointer to a mesh filter subtype. | |
| Mesh | apply (const Mesh &inputMesh) const |
| apply the filter to create a new mesh | |
| const bool & | serializeLocal () const |
| bool & | serializeLocal () |
Private Attributes | |
| bool | serializeLocal_ |
MeshTransformation is the user-level interface for mesh filters, i.e., objects that take an input mesh and produce a new mesh.
Examples of filter operations are refinement, load balancing, and extrusion from 2D to 3D.
extrude a 2D mesh into 2D
// create a 2D mesh MeshType meshType = new BasicSimplicialMeshType(); MeshSource mesher = new PartitionedRectangleMesher(0.0, 1.0, 10, 1, 0.0, 1.0, 10, 1, meshType); Mesh mesh2D = mesher.getMesh(); // create a filter for extruding 2 levels between z=0.0 and z=0.2 MeshTransformation extruder = new ExtrusionMeshTransformation(0.0, 0.2, 2); // perform the extrusion Mesh mesh3D = extruder.apply(mesh2D);
Definition at line 60 of file SundanceMeshTransformation.hpp.
| MeshTransformation::MeshTransformation | ( | ) |
Construct an empty mesh filter object.
Definition at line 11 of file SundanceMeshTransformation.cpp.
| MeshTransformation::MeshTransformation | ( | Sundance::Handleable< MeshTransformationBase > * | rawPtr | ) |
Construct from a raw pointer to a mesh filter subtype.
Definition at line 15 of file SundanceMeshTransformation.cpp.
| MeshTransformation::MeshTransformation | ( | const RCP< MeshTransformationBase > & | smartPtr | ) |
Construct from a smart pointer to a mesh filter subtype.
Definition at line 20 of file SundanceMeshTransformation.cpp.
apply the filter to create a new mesh
Definition at line 24 of file SundanceMeshTransformation.cpp.
References Sundance::Handle< MeshTransformationBase >::ptr().
| bool& Sundance::MeshTransformation::serializeLocal | ( | ) | [inline] |
Definition at line 77 of file SundanceMeshTransformation.hpp.
References serializeLocal_.
| const bool& Sundance::MeshTransformation::serializeLocal | ( | ) | const [inline] |
Definition at line 75 of file SundanceMeshTransformation.hpp.
References serializeLocal_.
bool Sundance::MeshTransformation::serializeLocal_ [private] |
Definition at line 79 of file SundanceMeshTransformation.hpp.
Referenced by serializeLocal().