Template Struct BoundingRectangle
Defined in File BoundingRectangle.hpp
Struct Documentation
-
template<typename CoordType>
struct BoundingRectangle A representation of a bounding rectangle.
A data class for representing a bounding rectangle that is used for texturizing. Each bounding rectangle is composed of a support vector and a normal that define the rectangles position in 3d space, as well as two vectors that describe the 2d coordinate system for the rectangle. Min dist A and B describe the min distance from the support vector in the 2d coordinate system. The same applies for max dist A and B.
vec1 ─────────────────> minDistA |----------------| maxDistA |-------------------------------| ┌────────────────────────────────────────────────┐ ┬ │ │ ¦ │ │ ¦ │ │ │ ¦ minDistB │ │ │ ¦ │ vec2 │ supportVector │ ¦ │ │ × │ ┴ ┬ │ │ │ ¦ V │ │ ¦ maxDistB │ │ ¦ └────────────────────────────────────────────────┘ ┴Public Functions
-
inline BoundingRectangle(BaseVector<CoordType> supportVector, BaseVector<CoordType> vec1, BaseVector<CoordType> vec2, Normal<CoordType> normal, CoordType minDistA, CoordType maxDistA, CoordType minDistB, CoordType maxDistB)
Constructor.
-
BaseVector<CoordType> center() const
Public Members
-
BaseVector<CoordType> m_supportVector
A 3D point, that is the support vector of the rectangle.
-
BaseVector<CoordType> m_vec1
The first direction vector.
-
BaseVector<CoordType> m_vec2
The second direction vector (that should be orthogonal to the first direction)
-
CoordType m_minDistA
Distance of the beginning border from the support vector in the first direction (if negative: reverse direction)
-
CoordType m_maxDistA
Distance of the end border from the support vector in the first direction (if negative: reverse direction)
-
inline BoundingRectangle(BaseVector<CoordType> supportVector, BaseVector<CoordType> vec1, BaseVector<CoordType> vec2, Normal<CoordType> normal, CoordType minDistA, CoordType maxDistA, CoordType minDistB, CoordType maxDistB)