Blender V2.61 - r43446
Public Member Functions

BOP_Face4 Class Reference

#include <BOP_Face.h>

Inheritance diagram for BOP_Face4:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BOP_Face4 (BOP_Index i, BOP_Index j, BOP_Index k, BOP_Index l, 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, BOP_Index &opp)
bool getPreviousVertex (BOP_Index v, BOP_Index &w)
bool getNextVertex (BOP_Index v, BOP_Index &w)
bool getOppositeVertex (BOP_Index v, BOP_Index &w)

Detailed Description

Definition at line 106 of file BOP_Face.h.


Constructor & Destructor Documentation

BOP_Face4::BOP_Face4 ( BOP_Index  v1,
BOP_Index  v2,
BOP_Index  v3,
BOP_Index  v4,
MT_Plane3  plane,
BOP_Index  originalFace 
)

Constructs a new quad face.

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

Definition at line 230 of file BOP_Face.cpp.

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


Member Function Documentation

bool BOP_Face4::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 247 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

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

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

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

Implements BOP_Face.

Definition at line 363 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

bool BOP_Face4::getNeighbours ( BOP_Index  v,
BOP_Index prev,
BOP_Index next,
BOP_Index opp 
)

Returns the neighbours of the specified vertex index.

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

Definition at line 260 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

Referenced by clean_nonmanifold().

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

Returns the next neighbour of the specified vertex index.

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

Definition at line 310 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

bool BOP_Face4::getOppositeVertex ( BOP_Index  v,
BOP_Index w 
)

Returns the opposite neighbour of the specified vertex index.

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

Definition at line 327 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

bool BOP_Face4::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 293 of file BOP_Face.cpp.

References BOP_Face::m_indexs.

void BOP_Face4::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 348 of file BOP_Face.cpp.

References BOP_Face::m_indexs.


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