OMToolkit
1.0
The polygonal mesh processing tool.
|
#include <OMTransformationSolver.h>
Public Member Functions | |
OMTransformationSolver (ScalarT matrixLength, ScalarT resolution, VectorT normal, VectorT direction, VectorT origin) | |
VectorT | transformTo2D (VectorT point) |
VectorT | transformToMesh (VectorT point) |
VectorT | transformTo2DLinear (VectorT vector) |
VectorT | transformToMeshLinear (VectorT vector) |
VectorT | getMaxBounds () |
ScalarT | getPixelSize () |
Static Public Member Functions | |
static ScalarT | vectorSignedAngle (VectorT &vec1, VectorT &vec2, VectorT reference) |
static ScalarT | vectorAngle (VectorT &vec1, VectorT &vec2) |
Protected Types | |
typedef Vector | VectorT |
typedef Vector::value_type | ScalarT |
typedef Matrix< ScalarT, 3, 1, 2, 3, 1 > | VectorEigen |
Protected Attributes | |
Transform< ScalarT, 3 > | m_2DToModel |
Transform< ScalarT, 3 > | m_modelTo2D |
ScalarT | m_matrixLength |
ScalarT | m_resolution |
ScalarT | m_pixelSize |
Class computig transformation between mesh and raster which is positioned on a vertex and is tangent to surface
vectorT | Type of vectors used in this class |
|
protected |
Scalar component of a vector
|
protected |
Vector type in eigen library
|
protected |
Vector type
OMTransformationSolver::OMTransformationSolver | ( | ScalarT | matrixLength, |
ScalarT | resolution, | ||
VectorT | normal, | ||
VectorT | direction, | ||
VectorT | origin | ||
) |
Constructor - computes desired transformation Produces transformation matrix, which projects mesh coordinates intu tangent raster coordinates Center vertex will be projected to a center of a matrix
matrixLength | Raster length - square raster edge length (real in mesh space) |
resolution | Number of raster pixels (matrix dimensions) - matrix is squared |
normal | Normal on spacified vertex (futire Z direction) |
direction | Direction of future X direction (for example maximum curvature direction) |
origin | Coordinates of a vertex |
|
inline |
Function returns maximum coordinate of a associed matrix
|
inline |
Function returns pixel width (in a mesh space)
|
inline |
Transforms a mesh point (OpenMesh VecXX) to a raster
point | Point to be transformed |
|
inline |
Transforms a mesh vector (OpenMesh VecXX) to a raster
point | Vector to be transformed |
|
inline |
Transforms a raster point (OpenMesh VecXX) to a mesh space
point | Point to be transformed |
|
inline |
Transforms a raster vector (OpenMesh VecXX) to a mesh space
point | Vector to be transformed |
|
inlinestatic |
Function returns an unsigned angle (0..Pi)
vec1 | First vector |
vec2 | Second vector |
|
inlinestatic |
Function returns a signed angle (0..Pi) with use of a reference vector
vec1 | First vector |
vec2 | Second vector Reference vector (i.e. normal vector etc..) |
|
protected |
Transformation matrix from raster coordinates into mesh coordinates
|
protected |
Raster edge length in mesh space
|
protected |
Transformation matrix from mesh coordinates into raster coordinates
|
protected |
Pixel width in a mesh space
|
protected |
Raster resolution - number of pixels on an edge