MeshKit
1.0
|
A utility class for transforming copied meshes. More...
#include <meshkit/Transform.hpp>
Public Member Functions | |
virtual void | transform (iMesh *mesh, const std::vector< iMesh::EntityHandle > &src, std::vector< iMesh::EntityHandle > &dest) const |
Transform the selected vertices. | |
virtual Transform * | clone () const |
Clone this transform object. | |
Protected Member Functions | |
BasicTransform () |
A utility class for transforming copied 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(Vector<3> &coords) const { ... } };
Definition at line 64 of file TransformBase.hpp.
BasicTransform | ( | ) | [inline, protected] |
Definition at line 102 of file TransformBase.hpp.
virtual void transform | ( | iMesh * | mesh, |
const std::vector< iMesh::EntityHandle > & | src, | ||
std::vector< iMesh::EntityHandle > & | dest | ||
) | const [inline, virtual] |
Transform the selected vertices.
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 72 of file TransformBase.hpp.