Public Member Functions | Private Attributes
Sundance::MeshTransformation Class Reference
Inheritance diagram for Sundance::MeshTransformation:
Playa::Handle< MeshTransformationBase >

List of all members.

Public Member Functions

 MeshTransformation ()
 MeshTransformation (Playa::Handleable< MeshTransformationBase > *rawPtr)
 MeshTransformation (const RCP< MeshTransformationBase > &smartPtr)
Mesh apply (const Mesh &inputMesh) const
const bool & serializeLocal () const
bool & serializeLocal ()

Private Attributes

bool serializeLocal_

Detailed Description

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.

Example:

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 71 of file SundanceMeshTransformation.hpp.


Constructor & Destructor Documentation

Construct an empty mesh filter object

Definition at line 52 of file SundanceMeshTransformation.cpp.

Construct from a raw pointer to a mesh filter subtype

Definition at line 56 of file SundanceMeshTransformation.cpp.

Construct from a smart pointer to a mesh filter subtype

Definition at line 61 of file SundanceMeshTransformation.cpp.


Member Function Documentation

Mesh MeshTransformation::apply ( const Mesh inputMesh) const

apply the filter to create a new mesh

Definition at line 65 of file SundanceMeshTransformation.cpp.

References Playa::Handle< MeshTransformationBase >::ptr().

const bool& Sundance::MeshTransformation::serializeLocal ( ) const [inline]

Definition at line 86 of file SundanceMeshTransformation.hpp.

References serializeLocal_.

Definition at line 88 of file SundanceMeshTransformation.hpp.

References serializeLocal_.


Member Data Documentation

Definition at line 90 of file SundanceMeshTransformation.hpp.

Referenced by serializeLocal().

Site Contact