SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
vrender::Polygone Class Reference

#include <Primitive.h>

Inheritance diagram for vrender::Polygone:

Protected Attributes

AxisAlignedBox_xyz _bbox
 
std::vector< Feedback3DColor_vertices
 
double anglefactor
 
double _c
 
NVector3 _normal
 
- Protected Attributes inherited from vrender::Primitive
int _vibility
 

Public Member Functions

 Polygone (const std::vector< Feedback3DColor > &)
 
virtual ~Polygone ()
 
virtual const Feedback3DColorsommet3DColor (size_t) const
 
virtual const Vector3vertex (size_t) const
 
virtual size_t nbVertices () const
 
virtual AxisAlignedBox_xyz bbox () const
 
double equation (const Vector3 &p) const
 
const NVector3normal () const
 
double c () const
 
FLOAT FlatFactor () const
 
- Public Member Functions inherited from vrender::Primitive
virtual ~Primitive ()
 

Protected Member Functions

virtual void initNormal ()
 
void CheckInfoForPositionOperators ()
 

Attribute details

◆ _bbox

AxisAlignedBox_xyz vrender::Polygone::_bbox
protected

◆ _c

double vrender::Polygone::_c
protected

◆ _normal

NVector3 vrender::Polygone::_normal
protected

◆ _vertices

std::vector<Feedback3DColor> vrender::Polygone::_vertices
protected

◆ anglefactor

double vrender::Polygone::anglefactor
protected

Constructor details

◆ Polygone()

Polygone::Polygone ( const std::vector< Feedback3DColor > &  )

◆ ~Polygone()

virtual vrender::Polygone::~Polygone ( )
inlinevirtual

Function details

◆ bbox()

AxisAlignedBox_xyz Polygone::bbox ( ) const
virtual

Implements vrender::Primitive.

◆ c()

double vrender::Polygone::c ( ) const
inline

◆ CheckInfoForPositionOperators()

void vrender::Polygone::CheckInfoForPositionOperators ( )
protected

◆ equation()

double Polygone::equation ( const Vector3 p) const

◆ FlatFactor()

FLOAT vrender::Polygone::FlatFactor ( ) const
inline

◆ initNormal()

void Polygone::initNormal ( )
protectedvirtual

◆ nbVertices()

virtual size_t vrender::Polygone::nbVertices ( ) const
inlinevirtual

Implements vrender::Primitive.

◆ normal()

const NVector3& vrender::Polygone::normal ( ) const
inline

◆ sommet3DColor()

const Feedback3DColor & Polygone::sommet3DColor ( size_t  i) const
virtual

Implements vrender::Primitive.

◆ vertex()

const Vector3 & Polygone::vertex ( size_t  i) const
virtual

Implements vrender::Primitive.