Blender V5.0
Freestyle::Geometry::Polygon3r Class Reference

#include <Polygon.h>

Inherits Freestyle::Geometry::Polygon< Vec3r >.

Public Member Functions

 Polygon3r ()
 Polygon3r (const vector< Vec3r > &vertices, const Vec3r &normal)
 Polygon3r (const Polygon3r &poly)
virtual ~Polygon3r ()
void setNormal (const Vec3r &normal)
Vec3r getNormal () const
bool rayIntersect (const Vec3r &orig, const Vec3r &dir, real &t, real &u, real &v, real epsilon=M_EPSILON) const
Public Member Functions inherited from Freestyle::Geometry::Polygon< Vec3r >
 Polygon ()
virtual ~Polygon ()
const vector< Vec3r > & getVertices () const
void getBBox (Vec3r &min, Vec3r &max) const
Vec3r getBBoxCenter ()
Vec3r getCenter ()
uint getId () const
void setVertices (const vector< Vec3r > &vertices)
void setId (uint id)
void computeBBox ()

Additional Inherited Members

Public Attributes inherited from Freestyle::Geometry::Polygon< Vec3r >
void * userdata
void * userdata2
Protected Attributes inherited from Freestyle::Geometry::Polygon< Vec3r >
vector< Vec3r_vertices
Vec3r _min
Vec3r _max
uint _id

Detailed Description

Definition at line 162 of file Polygon.h.

Constructor & Destructor Documentation

◆ Polygon3r() [1/3]

Freestyle::Geometry::Polygon3r::Polygon3r ( )
inline

Definition at line 164 of file Polygon.h.

References Freestyle::Geometry::Polygon< Vec3r >::Polygon().

Referenced by Polygon3r().

◆ Polygon3r() [2/3]

Freestyle::Geometry::Polygon3r::Polygon3r ( const vector< Vec3r > & vertices,
const Vec3r & normal )
inline

Definition at line 166 of file Polygon.h.

References Freestyle::Geometry::Polygon< Vec3r >::Polygon(), and setNormal().

◆ Polygon3r() [3/3]

Freestyle::Geometry::Polygon3r::Polygon3r ( const Polygon3r & poly)
inline

Definition at line 171 of file Polygon.h.

References Freestyle::Geometry::Polygon< Vec3r >::Polygon(), and Polygon3r().

◆ ~Polygon3r()

virtual Freestyle::Geometry::Polygon3r::~Polygon3r ( )
inlinevirtual

Definition at line 173 of file Polygon.h.

Member Function Documentation

◆ getNormal()

Vec3r Freestyle::Geometry::Polygon3r::getNormal ( ) const
inline

◆ rayIntersect()

bool Freestyle::Geometry::Polygon3r::rayIntersect ( const Vec3r & orig,
const Vec3r & dir,
real & t,
real & u,
real & v,
real epsilon = M_EPSILON ) const
inline

◆ setNormal()

void Freestyle::Geometry::Polygon3r::setNormal ( const Vec3r & normal)
inline

Definition at line 175 of file Polygon.h.

Referenced by Polygon3r().


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