Developer Documentation
OpenMesh::NormalConeT< Vector > Class Template Reference

#include <OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Core/Geometry/NormalConeT.hh>

Public Types

typedef vector_traits< Vector >::value_type Scalar
 
typedef Vector Vec3
 

Public Member Functions

 NormalConeT ()
 default constructor (not initialized) More...
 
 NormalConeT (const Vec3 &_center_normal, Scalar _angle=0.0)
 Initialize cone with center (unit vector) and angle (radius in radians) More...
 
Scalar max_angle (const Vec3 &) const
 return max. distance (radians) unit vector to cone (distant side) More...
 
Scalar max_angle (const NormalConeT &) const
 return max. distance (radians) cone to cone (distant sides) More...
 
void merge (const NormalConeT &)
 merge _cone; this instance will then enclose both former cones More...
 
const Vec3center_normal () const
 returns center normal More...
 
Scalar angle () const
 returns size of cone (radius in radians) More...
 

Private Attributes

Vec3 center_normal_
 
Scalar angle_
 

Detailed Description

template<typename Vector>
class OpenMesh::NormalConeT< Vector >

/class NormalCone NormalCone.hh <OpenMesh/Core/Geometry/NormalConeT.hh>

NormalCone that can be merged with other normal cones. Provides the center normal and the opening angle.

Definition at line 77 of file NormalConeT.hh.

Member Typedef Documentation

◆ Scalar

template<typename Vector >
typedef vector_traits<Vector>::value_type OpenMesh::NormalConeT< Vector >::Scalar

Definition at line 82 of file NormalConeT.hh.

◆ Vec3

template<typename Vector >
typedef Vector OpenMesh::NormalConeT< Vector >::Vec3

Definition at line 83 of file NormalConeT.hh.

Constructor & Destructor Documentation

◆ NormalConeT() [1/2]

template<typename Vector >
OpenMesh::NormalConeT< Vector >::NormalConeT ( )
inline

default constructor (not initialized)

Definition at line 87 of file NormalConeT.hh.

◆ NormalConeT() [2/2]

template<typename Vector >
OpenMesh::NormalConeT< Vector >::NormalConeT ( const Vec3 _center_normal,
Scalar  _angle = 0.0 
)
explicit

Initialize cone with center (unit vector) and angle (radius in radians)

Definition at line 74 of file NormalConeT_impl.hh.

Member Function Documentation

◆ angle()

template<typename Vector >
Scalar OpenMesh::NormalConeT< Vector >::angle ( ) const
inline

returns size of cone (radius in radians)

Definition at line 105 of file NormalConeT.hh.

◆ center_normal()

template<typename Vector >
const Vec3 & OpenMesh::NormalConeT< Vector >::center_normal ( ) const
inline

returns center normal

Definition at line 102 of file NormalConeT.hh.

◆ max_angle() [1/2]

template<typename Vector >
NormalConeT< Vector >::Scalar OpenMesh::NormalConeT< Vector >::max_angle ( const NormalConeT< Vector > &  _cone) const

return max. distance (radians) cone to cone (distant sides)

Definition at line 100 of file NormalConeT_impl.hh.

◆ max_angle() [2/2]

template<typename Vector >
NormalConeT< Vector >::Scalar OpenMesh::NormalConeT< Vector >::max_angle ( const Vec3 _norm) const

return max. distance (radians) unit vector to cone (distant side)

Definition at line 86 of file NormalConeT_impl.hh.

◆ merge()

template<typename Vector >
void OpenMesh::NormalConeT< Vector >::merge ( const NormalConeT< Vector > &  _cone)

merge _cone; this instance will then enclose both former cones

Definition at line 117 of file NormalConeT_impl.hh.

Member Data Documentation

◆ angle_

template<typename Vector >
Scalar OpenMesh::NormalConeT< Vector >::angle_
private

Definition at line 110 of file NormalConeT.hh.

◆ center_normal_

template<typename Vector >
Vec3 OpenMesh::NormalConeT< Vector >::center_normal_
private

Definition at line 109 of file NormalConeT.hh.


The documentation for this class was generated from the following files: