Blender V2.61 - r43446
Public Member Functions

BOP_Face3 Class Reference

#include <BOP_Face.h>

Inheritance diagram for BOP_Face3:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BOP_Face3 (BOP_Index i, BOP_Index j, BOP_Index k, MT_Plane3 p, BOP_Index originalFace)
bool getEdgeIndex (BOP_Index v1, BOP_Index v2, unsigned int &e)
void replaceVertexIndex (BOP_Index oldIndex, BOP_Index newIndex)
bool containsVertex (BOP_Index v)
bool getNeighbours (BOP_Index v, BOP_Index &prev, BOP_Index &next)
bool getPreviousVertex (BOP_Index v, BOP_Index &w)
bool getNextVertex (BOP_Index v, BOP_Index &w)

Detailed Description

Definition at line 93 of file BOP_Face.h.


Constructor & Destructor Documentation

BOP_Face3::BOP_Face3 ( BOP_Index  v1,
BOP_Index  v2,
BOP_Index  v3,
MT_Plane3  plane,
BOP_Index  originalFace 
)

Constructs a new triangle face.

Parameters:
v1vertex index
v2vertex index
v3vertex index
planeface plane
originalFaceindex of the original face

Definition at line 76 of file BOP_Face.cpp.

References BOP_Face::m_indexs, and BOP_Face::m_size.


Member Function Documentation

bool BOP_Face3::containsVertex ( BOP_Index  v) [virtual]

Returns if this face contains the specified vertex index.

Parameters:
vvertex index
Returns:
true if this face contains the specified vertex index, false otherwise

Implements BOP_Face.

Definition at line 134 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

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

Returns the relative edge index (1,2,3) for the specified vertex indexs.

Parameters:
v1vertex index
v2vertex index
erelative edge index (1,2,3)
Returns:
true if (v1,v2) is an edge of this face, false otherwise

Implements BOP_Face.

Definition at line 91 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

bool BOP_Face3::getNeighbours ( BOP_Index  v,
BOP_Index prev,
BOP_Index next 
)

Returns the neighbours of the specified vertex index.

Parameters:
vvertex index
prevprevious vertex index
nextnext vertex index
Returns:
true if this face contains the vertex index v, false otherwise

Definition at line 146 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

Referenced by clean_nonmanifold().

bool BOP_Face3::getNextVertex ( BOP_Index  v,
BOP_Index w 
)

Returns the next neighbour of the specified vertex index.

Parameters:
vvertex index
wvertex index
Returns:
true if this face contains the specified vertex index, false otherwise

Definition at line 187 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

bool BOP_Face3::getPreviousVertex ( BOP_Index  v,
BOP_Index w 
)

Returns the previous neighbour of the specified vertex index.

Parameters:
vvertex index
wprevious vertex index
Returns:
true if this face contains the specified vertex index, false otherwise

Definition at line 171 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

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

Replaces a face vertex index.

Parameters:
oldIndexold vertex index
newIndexnew vertex index

Implements BOP_Face.

Definition at line 202 of file BOP_Face.cpp.

References BROKEN, BOP_Face::m_indexs, and BOP_Face::setTAG().


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