Public Member Functions | Public Attributes | List of all members
lvr2::BoundingRectangle< CoordType > Struct Template Reference

A representation of a bounding rectangle. More...

#include <BoundingRectangle.hpp>

Public Member Functions

 BoundingRectangle (BaseVector< CoordType > supportVector, BaseVector< CoordType > vec1, BaseVector< CoordType > vec2, Normal< CoordType > normal, CoordType minDistA, CoordType maxDistA, CoordType minDistB, CoordType maxDistB)
 Constructor. More...
 

Public Attributes

CoordType m_maxDistA
 Distance of the end border from the support vector in the first direction (if negative: reverse direction) More...
 
CoordType m_maxDistB
 Distance of the end border from the support vector in the second direction (if negative: reverse direction) More...
 
CoordType m_minDistA
 Distance of the beginning border from the support vector in the first direction (if negative: reverse direction) More...
 
CoordType m_minDistB
 
Normal< CoordType > m_normal
 The normal of the rectangle. More...
 
BaseVector< CoordType > m_supportVector
 A 3D point, that is the support vector of the rectangle. More...
 
BaseVector< CoordType > m_vec1
 The first direction vector. More...
 
BaseVector< CoordType > m_vec2
 The second direction vector (that should be orthogonal to the first direction) More...
 

Detailed Description

template<typename CoordType>
struct lvr2::BoundingRectangle< CoordType >

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
│                                                │    ¦
└────────────────────────────────────────────────┘    ┴

Definition at line 77 of file BoundingRectangle.hpp.

Constructor & Destructor Documentation

◆ BoundingRectangle()

template<typename CoordType>
lvr2::BoundingRectangle< CoordType >::BoundingRectangle ( BaseVector< CoordType >  supportVector,
BaseVector< CoordType >  vec1,
BaseVector< CoordType >  vec2,
Normal< CoordType >  normal,
CoordType  minDistA,
CoordType  maxDistA,
CoordType  minDistB,
CoordType  maxDistB 
)
inline

Constructor.

Definition at line 100 of file BoundingRectangle.hpp.

Member Data Documentation

◆ m_maxDistA

template<typename CoordType>
CoordType lvr2::BoundingRectangle< CoordType >::m_maxDistA

Distance of the end border from the support vector in the first direction (if negative: reverse direction)

Definition at line 90 of file BoundingRectangle.hpp.

◆ m_maxDistB

template<typename CoordType>
CoordType lvr2::BoundingRectangle< CoordType >::m_maxDistB

Distance of the end border from the support vector in the second direction (if negative: reverse direction)

Definition at line 95 of file BoundingRectangle.hpp.

◆ m_minDistA

template<typename CoordType>
CoordType lvr2::BoundingRectangle< CoordType >::m_minDistA

Distance of the beginning border from the support vector in the first direction (if negative: reverse direction)

Definition at line 88 of file BoundingRectangle.hpp.

◆ m_minDistB

template<typename CoordType>
CoordType lvr2::BoundingRectangle< CoordType >::m_minDistB

Distance of the beginning border from the support vector in the second direction (if negative: reverse direction)

Definition at line 93 of file BoundingRectangle.hpp.

◆ m_normal

template<typename CoordType>
Normal<CoordType> lvr2::BoundingRectangle< CoordType >::m_normal

The normal of the rectangle.

Definition at line 86 of file BoundingRectangle.hpp.

◆ m_supportVector

template<typename CoordType>
BaseVector<CoordType> lvr2::BoundingRectangle< CoordType >::m_supportVector

A 3D point, that is the support vector of the rectangle.

Definition at line 80 of file BoundingRectangle.hpp.

◆ m_vec1

template<typename CoordType>
BaseVector<CoordType> lvr2::BoundingRectangle< CoordType >::m_vec1

The first direction vector.

Definition at line 82 of file BoundingRectangle.hpp.

◆ m_vec2

template<typename CoordType>
BaseVector<CoordType> lvr2::BoundingRectangle< CoordType >::m_vec2

The second direction vector (that should be orthogonal to the first direction)

Definition at line 84 of file BoundingRectangle.hpp.


The documentation for this struct was generated from the following file:


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:11