Blender V4.3
Freestyle::Geometry::Polygon< Point > Class Template Reference

#include <Polygon.h>

Public Member Functions

 Polygon ()
 
 Polygon (const vector< Point > &vertices)
 
 Polygon (const Polygon< Point > &poly)
 
virtual ~Polygon ()
 
const vector< Point > & getVertices () const
 
void getBBox (Point &min, Point &max) const
 
Point getBBoxCenter ()
 
Point getCenter ()
 
uint getId () const
 
void setVertices (const vector< Point > &vertices)
 
void setId (uint id)
 
void computeBBox ()
 

Public Attributes

void * userdata
 
void * userdata2
 

Protected Attributes

vector< Point > _vertices
 
Point _min
 
Point _max
 
uint _id
 

Detailed Description

template<class Point>
class Freestyle::Geometry::Polygon< Point >

Definition at line 27 of file Polygon.h.

Constructor & Destructor Documentation

◆ Polygon() [1/3]

◆ Polygon() [2/3]

◆ Polygon() [3/3]

◆ ~Polygon()

template<class Point >
virtual Freestyle::Geometry::Polygon< Point >::~Polygon ( )
inlinevirtual

Definition at line 62 of file Polygon.h.

Member Function Documentation

◆ computeBBox()

◆ getBBox()

template<class Point >
void Freestyle::Geometry::Polygon< Point >::getBBox ( Point & min,
Point & max ) const
inline

◆ getBBoxCenter()

template<class Point >
Point Freestyle::Geometry::Polygon< Point >::getBBoxCenter ( )
inline

◆ getCenter()

template<class Point >
Point Freestyle::Geometry::Polygon< Point >::getCenter ( )
inline

Definition at line 86 of file Polygon.h.

References Freestyle::Geometry::Polygon< Point >::_vertices, and result.

◆ getId()

template<class Point >
uint Freestyle::Geometry::Polygon< Point >::getId ( ) const
inline

◆ getVertices()

◆ setId()

template<class Point >
void Freestyle::Geometry::Polygon< Point >::setId ( uint id)
inline

◆ setVertices()

template<class Point >
void Freestyle::Geometry::Polygon< Point >::setVertices ( const vector< Point > & vertices)
inline

Member Data Documentation

◆ _id

◆ _max

◆ _min

◆ _vertices

◆ userdata

◆ userdata2


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