MirrorConfiguration Struct Reference
#include <brush.h>
The structure contains information about mirroring of the operation.
Definition at line 100 of file brush.h.
Returns if the mirror is on an axis or tangent.
Sets the mirroring planes.
Returns the mirror plane normals.
Definition at line 110 of file brush.h.
110 {
return m_aMirrorPlaneNormals; };
Returns the mirror plane positions.
Definition at line 112 of file brush.h.
112 {
return m_aMirrorPlanePositions; };
bool IsMirrorLocal |
( |
void |
| ) |
const |
|
inline |
Returns if the mirroring is local.
Definition at line 114 of file brush.h.
114 {
return m_bMirrorLocal; };
Returns the number of mirroring planes.
Definition at line 116 of file brush.h.
116 {
return m_iMirrorPlanes; };
Matrix TransformationMatrix |
( |
const SurfacePoint * |
pSourceLocation, |
|
|
bool |
bNormalizeLocalFrame = false |
|
) |
| const |
Returns a matrix which transforms positions w.r.t the current mirror mode.
Movement along two sides are scaled by the unnormalized local frames for tangent mirror mode if bNormalizeLocalFrame is false. The effect is as if the mirrored point is moving in object space.
- Parameters
-
[in] | pSourceLocation | Location of a point on the surface which should be used as a reference. This point is usually |
| bNormalizeLocalFrame | close to the point which should be transformed. This parameter can be NULL, but in some cases (like for tangent space mirroring) the result will only be correct if this parameter is specified. [in] Controls if the local frames used for the tangent mirror mode is normalized |
Transforms a vector using the current mirror parameters in object space.
For tangent mirror mode, the result will be scaled by the unnormalized local frame on the mirror side.
- Parameters
-
[in] | cSource | Vector in object space which should be transformed |
[in] | fW | Fourth dimension of the vector. This is usually 0 when tranforming directions (to skip translations), and 1 otherwise |
[in] | pSourceLocation | Location of a point on the surface which should be used as a reference. This point is usually close to the point which should be transformed. This parameter can be NULL, but in some cases (like for tangent space mirroring) the result will only be correct if this parameter is specified. |
Definition at line 137 of file brush.h.
bool operator==(const MirrorConfiguration &) const
Serializes the configuration to the given stream.
The documentation for this struct was generated from the following file: