Blender V2.61 - r43446
Public Member Functions | Protected Attributes

BOP_Face Class Reference

#include <BOP_Face.h>

Inheritance diagram for BOP_Face:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BOP_Face (MT_Plane3 plane, BOP_Index originalFace)
virtual ~BOP_Face ()
MT_Plane3 getPlane () const
void setPlane (const MT_Plane3 plane)
BOP_TAG getTAG () const
void setTAG (const BOP_TAG t)
BOP_Index getOriginalFace () const
void setOriginalFace (const BOP_Index originalFace)
BOP_Index getVertex (unsigned int i) const
void setVertex (const BOP_Index idx, const BOP_Index i)
unsigned int getSplit () const
void setSplit (const unsigned int i)
void invert ()
void setBBox (const MT_Point3 &p1, const MT_Point3 &p2, const MT_Point3 &p3)
BOP_BBoxgetBBox ()
void freeBBox ()
unsigned int size () const
virtual bool getEdgeIndex (BOP_Index v1, BOP_Index v2, unsigned int &e)=0
virtual void replaceVertexIndex (BOP_Index oldIndex, BOP_Index newIndex)=0
virtual bool containsVertex (BOP_Index v)=0

Protected Attributes

BOP_Index m_indexs [4]
unsigned int m_size
unsigned int m_split
BOP_BBoxm_bbox

Detailed Description

Definition at line 49 of file BOP_Face.h.


Constructor & Destructor Documentation

BOP_Face::BOP_Face ( MT_Plane3  plane,
BOP_Index  originalFace 
)

Constructs a new face.

Parameters:
planeface plane
originalFaceindex of the original face

Definition at line 44 of file BOP_Face.cpp.

References m_bbox, m_split, NULL, and UNCLASSIFIED.

virtual BOP_Face::~BOP_Face ( ) [inline, virtual]

Definition at line 64 of file BOP_Face.h.

References m_bbox.


Member Function Documentation

virtual bool BOP_Face::containsVertex ( BOP_Index  v) [pure virtual]

Implemented in BOP_Face3, and BOP_Face4.

void BOP_Face::freeBBox ( ) [inline]
BOP_BBox* BOP_Face::getBBox ( ) [inline]

Definition at line 79 of file BOP_Face.h.

References m_bbox.

Referenced by BOP_Face2Face().

virtual bool BOP_Face::getEdgeIndex ( BOP_Index  v1,
BOP_Index  v2,
unsigned int &  e 
) [pure virtual]

Implemented in BOP_Face3, and BOP_Face4.

Referenced by triangulate().

BOP_Index BOP_Face::getOriginalFace ( ) const [inline]
MT_Plane3 BOP_Face::getPlane ( ) const [inline]
unsigned int BOP_Face::getSplit ( ) const [inline]
BOP_TAG BOP_Face::getTAG ( ) const [inline]
BOP_Index BOP_Face::getVertex ( unsigned int  i) const [inline]
void BOP_Face::invert ( )

Inverts this face.

Definition at line 56 of file BOP_Face.cpp.

References getPlane(), MT_Plane3::Invert(), and m_indexs.

virtual void BOP_Face::replaceVertexIndex ( BOP_Index  oldIndex,
BOP_Index  newIndex 
) [pure virtual]

Implemented in BOP_Face3, and BOP_Face4.

void BOP_Face::setBBox ( const MT_Point3 p1,
const MT_Point3 p2,
const MT_Point3 p3 
) [inline]

Definition at line 77 of file BOP_Face.h.

References m_bbox.

Referenced by BOP_Face2Face().

void BOP_Face::setOriginalFace ( const BOP_Index  originalFace) [inline]

Definition at line 70 of file BOP_Face.h.

void BOP_Face::setPlane ( const MT_Plane3  plane) [inline]

Definition at line 66 of file BOP_Face.h.

void BOP_Face::setSplit ( const unsigned int  i) [inline]
void BOP_Face::setTAG ( const BOP_TAG  t) [inline]
void BOP_Face::setVertex ( const BOP_Index  idx,
const BOP_Index  i 
) [inline]

Definition at line 72 of file BOP_Face.h.

References i, and m_indexs.

unsigned int BOP_Face::size ( ) const [inline]

Definition at line 82 of file BOP_Face.h.

References m_size.

Referenced by BOP_Mesh::addFace(), deleteFace(), and BOP_Mesh::getEdge().


Member Data Documentation

BOP_BBox* BOP_Face::m_bbox [protected]

Definition at line 60 of file BOP_Face.h.

Referenced by BOP_Face(), freeBBox(), getBBox(), setBBox(), and ~BOP_Face().

BOP_Index BOP_Face::m_indexs[4] [protected]
unsigned int BOP_Face::m_size [protected]

Definition at line 58 of file BOP_Face.h.

Referenced by BOP_Face3::BOP_Face3(), BOP_Face4::BOP_Face4(), and size().

unsigned int BOP_Face::m_split [protected]

Definition at line 59 of file BOP_Face.h.

Referenced by BOP_Face(), getSplit(), and setSplit().


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