|
MeshKit
1.0
|
A utility class for transforming extruded meshes. More...
#include <meshkit/Transform.hpp>

Public Member Functions | |
| virtual void | transform (int step, iMesh *mesh, const std::vector< iMesh::EntityHandle > &src, std::vector< iMesh::EntityHandle > &dest) const |
| Transform the selected vertices. | |
| virtual int | steps () const |
| The number of steps in this extrusion. | |
| virtual Transform * | clone () const |
| Clone this transform object. | |
Protected Member Functions | |
| BasicTransform (int steps) | |
Protected Attributes | |
| int | steps_ |
A utility class for transforming extruded meshes.
This class template simplifies the creation of new transformation functions. To use this, create a new class and inherit from this one, passing the new class name as the template parameter (the curiously- recurring template pattern).
Example: class Example : public BasicTransform<Example> { friend class BasicTransform<Example>; public: Example() { ... } protected: void transform_one(int step, Vector<3> &coords) const { ... } };
Definition at line 162 of file TransformBase.hpp.
| BasicTransform | ( | int | steps | ) | [inline, protected] |
Definition at line 202 of file TransformBase.hpp.
Clone this transform object.
Implements Transform.
Definition at line 197 of file TransformBase.hpp.
| virtual int steps | ( | ) | const [inline, virtual] |
The number of steps in this extrusion.
Implements Transform.
Definition at line 190 of file TransformBase.hpp.
| virtual void transform | ( | int | step, |
| iMesh * | mesh, | ||
| const std::vector< iMesh::EntityHandle > & | src, | ||
| std::vector< iMesh::EntityHandle > & | dest | ||
| ) | const [inline, virtual] |
Transform the selected vertices.
| step | the step number for the extrusion, with 0 being the already-existing mesh data |
| mesh | the iMesh implementation holding the vertices |
| src | an array of the source vertices |
| dest | an array of the destination vertices |
Implements Transform.
Definition at line 172 of file TransformBase.hpp.
int steps_ [protected] |
Definition at line 205 of file TransformBase.hpp.