MeVisLab Toolbox Reference
ml::WEMFaceOp Namespace Reference

Helper namespace for performing operations on a face. More...

Functions

MLWEM_EXPORT bool cutFace (WEMFace *face, WEMVector< WEMFaceCut > *faceCuts, WEMPatch *wemPatch, WEMVector< WEMIndexedFace > *cutFaces, bool traversedTrue, WEMNode **nodeTable, WEMVector< WEMNode > **edgeTable1, int *hitEdgeTable1, WEMVector< WEMNode > **edgeTable2, int *hitEdgeTable2, unsigned int intersectingFlag)
 Applies the given cuts to the given face (boolOp version).
 
MLWEM_EXPORT bool cutFace (WEMFace *face, WEMVector< WEMFaceCut > *faceCuts, WEMPatch *wemPatch, WEMVector< WEMIndexedFace > *cutFaces, bool traversedTrue, WEMNode **nodeTable, WEMVector< WEMNode > **edgeTable, int *hitEdgeTable, unsigned int intersectingFlag)
 Applies the given cuts to the given face (selectRegion version).
 
MLWEM_EXPORT void smoothFaceNormals (WEMPatch *wemPatch, unsigned int numSmoothingPasses, ProgressField *progressFld=nullptr)
 Smooths all face normals.
 
MLWEM_EXPORT bool intersectFaces (WEMFace *face1, WEMVector< WEMPartialFaceCut > *partialCuts1, WEMFace *face2, WEMVector< WEMPartialFaceCut > *partialCuts2)
 Intersects the two given faces and outputs the partial cuts to the given lists.
 
void _addFaceCut (WEMFace *face, WEMFaceCut *faceCut, WEMIndexedFace *nFace, WEMPatch *wemPatch, bool reverse, WEMVector< WEMNode > **edgeTable1, int *hitEdgeTable1, WEMVector< WEMNode > **edgeTable2, int *hitEdgeTable2)
 Adds the given face cut to nFace (boolOp version).
 
void _addFaceCut (WEMFace *face, WEMFaceCut *faceCut, WEMIndexedFace *nFace, WEMPatch *wemPatch, bool reverse, WEMVector< WEMNode > **edgeTable, int *hitEdgeTable)
 Adds the given face cut to nFace (selectRegion version).
 
void _addStab (WEMFace *face, WEMFaceCut *faceCut, WEMIndexedFace *nFace, WEMPatch *wemPatch, WEMVector< WEMNode > **edgeTable2, int *hitEdgeTable2)
 Adds the given face cut (stab) to nFace (boolOp version).
 
void _addStab (WEMFace *face, WEMFaceCut *faceCut, WEMIndexedFace *nFace, WEMPatch *wemPatch)
 Adds the given face cut (stab) to nFace (selectRegion version).
 
void _addPartialStab (WEMFace *face, WEMFaceCut *faceCut, int start, int end, WEMIndexedFace *nFace, WEMPatch *wemPatch, WEMVector< WEMNode > **edgeTable2, int *hitEdgeTable2)
 Adds the given face cut (stab) to nFace, partially between given indices (boolOp version).
 
void _addPartialStab (WEMFace *face, WEMFaceCut *faceCut, int start, int end, WEMIndexedFace *nFace, WEMPatch *wemPatch)
 Adds the given face cut (stab) to nFace, partially between given indices (selectRegion version).
 

Detailed Description

Helper namespace for performing operations on a face.

Function Documentation

◆ _addFaceCut() [1/2]

void ml::WEMFaceOp::_addFaceCut ( WEMFace * face,
WEMFaceCut * faceCut,
WEMIndexedFace * nFace,
WEMPatch * wemPatch,
bool reverse,
WEMVector< WEMNode > ** edgeTable,
int * hitEdgeTable )

Adds the given face cut to nFace (selectRegion version).

References _addFaceCut().

◆ _addFaceCut() [2/2]

void ml::WEMFaceOp::_addFaceCut ( WEMFace * face,
WEMFaceCut * faceCut,
WEMIndexedFace * nFace,
WEMPatch * wemPatch,
bool reverse,
WEMVector< WEMNode > ** edgeTable1,
int * hitEdgeTable1,
WEMVector< WEMNode > ** edgeTable2,
int * hitEdgeTable2 )

Adds the given face cut to nFace (boolOp version).

References _addFaceCut().

Referenced by _addFaceCut(), and _addFaceCut().

◆ _addPartialStab() [1/2]

void ml::WEMFaceOp::_addPartialStab ( WEMFace * face,
WEMFaceCut * faceCut,
int start,
int end,
WEMIndexedFace * nFace,
WEMPatch * wemPatch )

Adds the given face cut (stab) to nFace, partially between given indices (selectRegion version).

References _addPartialStab().

◆ _addPartialStab() [2/2]

void ml::WEMFaceOp::_addPartialStab ( WEMFace * face,
WEMFaceCut * faceCut,
int start,
int end,
WEMIndexedFace * nFace,
WEMPatch * wemPatch,
WEMVector< WEMNode > ** edgeTable2,
int * hitEdgeTable2 )

Adds the given face cut (stab) to nFace, partially between given indices (boolOp version).

References _addPartialStab().

Referenced by _addPartialStab(), and _addPartialStab().

◆ _addStab() [1/2]

void ml::WEMFaceOp::_addStab ( WEMFace * face,
WEMFaceCut * faceCut,
WEMIndexedFace * nFace,
WEMPatch * wemPatch )

Adds the given face cut (stab) to nFace (selectRegion version).

References _addStab().

◆ _addStab() [2/2]

void ml::WEMFaceOp::_addStab ( WEMFace * face,
WEMFaceCut * faceCut,
WEMIndexedFace * nFace,
WEMPatch * wemPatch,
WEMVector< WEMNode > ** edgeTable2,
int * hitEdgeTable2 )

Adds the given face cut (stab) to nFace (boolOp version).

References _addStab().

Referenced by _addStab(), and _addStab().

◆ cutFace() [1/2]

MLWEM_EXPORT bool ml::WEMFaceOp::cutFace ( WEMFace * face,
WEMVector< WEMFaceCut > * faceCuts,
WEMPatch * wemPatch,
WEMVector< WEMIndexedFace > * cutFaces,
bool traversedTrue,
WEMNode ** nodeTable,
WEMVector< WEMNode > ** edgeTable,
int * hitEdgeTable,
unsigned int intersectingFlag )

Applies the given cuts to the given face (selectRegion version).

Returns whether the operation was successful.

References cutFace().

◆ cutFace() [2/2]

MLWEM_EXPORT bool ml::WEMFaceOp::cutFace ( WEMFace * face,
WEMVector< WEMFaceCut > * faceCuts,
WEMPatch * wemPatch,
WEMVector< WEMIndexedFace > * cutFaces,
bool traversedTrue,
WEMNode ** nodeTable,
WEMVector< WEMNode > ** edgeTable1,
int * hitEdgeTable1,
WEMVector< WEMNode > ** edgeTable2,
int * hitEdgeTable2,
unsigned int intersectingFlag )

Applies the given cuts to the given face (boolOp version).

Returns whether the operation was successful.

References cutFace().

Referenced by cutFace(), and cutFace().

◆ intersectFaces()

MLWEM_EXPORT bool ml::WEMFaceOp::intersectFaces ( WEMFace * face1,
WEMVector< WEMPartialFaceCut > * partialCuts1,
WEMFace * face2,
WEMVector< WEMPartialFaceCut > * partialCuts2 )

Intersects the two given faces and outputs the partial cuts to the given lists.

References intersectFaces().

Referenced by intersectFaces().

◆ smoothFaceNormals()

MLWEM_EXPORT void ml::WEMFaceOp::smoothFaceNormals ( WEMPatch * wemPatch,
unsigned int numSmoothingPasses,
ProgressField * progressFld = nullptr )

Smooths all face normals.

References smoothFaceNormals().

Referenced by smoothFaceNormals().