Blender  V3.3
Public Member Functions | List of all members
Freestyle::Geometry::Polygon3r Class Reference

#include <Polygon.h>

Inheritance diagram for Freestyle::Geometry::Polygon3r:
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 ()
 
unsigned getId () const
 
void setVertices (const vector< Vec3r > &vertices)
 
void setId (unsigned id)
 
void computeBBox ()
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::Geometry::Polygon< Vec3r >
voiduserdata
 
voiduserdata2
 
- Protected Attributes inherited from Freestyle::Geometry::Polygon< Vec3r >
vector< Vec3r_vertices
 
Vec3r _min
 
Vec3r _max
 
unsigned _id
 

Detailed Description

Definition at line 165 of file Polygon.h.

Constructor & Destructor Documentation

◆ Polygon3r() [1/3]

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

Definition at line 167 of file Polygon.h.

◆ Polygon3r() [2/3]

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

Definition at line 171 of file Polygon.h.

References normal.

◆ Polygon3r() [3/3]

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

Definition at line 176 of file Polygon.h.

◆ ~Polygon3r()

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

Definition at line 180 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 184 of file Polygon.h.

References normal.


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