Blender V4.3
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 ()
 
 Polygon (const vector< Vec3r > &vertices)
 
 Polygon (const Polygon< Vec3r > &poly)
 
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 166 of file Polygon.h.

Constructor & Destructor Documentation

◆ Polygon3r() [1/3]

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

Definition at line 168 of file Polygon.h.

◆ Polygon3r() [2/3]

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

Definition at line 170 of file Polygon.h.

References setNormal().

◆ Polygon3r() [3/3]

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

Definition at line 175 of file Polygon.h.

◆ ~Polygon3r()

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

Definition at line 177 of file Polygon.h.

Member Function Documentation

◆ getNormal()

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

Definition at line 184 of file Polygon.h.

Referenced by Freestyle::computeVisibility(), and Freestyle::findOccludee().

◆ rayIntersect()

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

Check whether the Polygon intersects with the ray or not

Definition at line 190 of file Polygon.h.

References Freestyle::Geometry::Polygon< Vec3r >::_vertices, Freestyle::GeomUtils::intersectRayTriangle(), and v.

Referenced by Freestyle::computeVisibility(), and Freestyle::findOccludee().

◆ setNormal()

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

Definition at line 179 of file Polygon.h.

Referenced by Polygon3r().


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