MeVisLab Toolbox Reference
WEMCutOp.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #pragma once
14 
16 
17 #include "WEMPartialFaceCut.h"
18 #include "WEMFaceCut.h"
19 #include "WEMCut.h"
20 
21 ML_START_NAMESPACE
22 
24 
26 namespace WEMCutOp
27 {
30  Vector3 reference,
31  WEMVector<WEMFaceCut> *faceCuts,
32  int edgeIndex);
33 
36  WEMVector<WEMFaceCut> *faceCuts);
37 
40  int faceIndex);
41 
45  WEMVector<WEMFaceCut> **faceCutTable,
46  WEMVector<WEMCut> *cuts=nullptr);
47 }
48 
50 
51 ML_END_NAMESPACE
#define MLWEM_EXPORT
Definition: MLWEMSystem.h:18
Helper class for performing a cutting on a face.
Definition: WEMFaceCut.h:31
Dynamic templated vector.
Definition: WEMVector.h:28
MLWEM_EXPORT bool mergePartialFaceCuts(WEMVector< WEMPartialFaceCut > *partialFaceCuts, WEMVector< WEMFaceCut > *faceCuts)
Merges the partial face cuts into one or more face cuts.
MLWEM_EXPORT int getClosestCut(Vector3 position, Vector3 reference, WEMVector< WEMFaceCut > *faceCuts, int edgeIndex)
Returns the closest cut to the given position between position and reference on the given edgeIndex.
MLWEM_EXPORT void mergeFaceCuts(WEMVector< WEMFace > *intersecting, WEMVector< WEMFaceCut > **faceCutTable, WEMVector< WEMCut > *cuts=nullptr)
Merges the face cuts into one or more cuts.
MLWEM_EXPORT WEMFaceCut * findFaceCut(WEMVector< WEMFaceCut > *faceCuts, int faceIndex)
Returns the face cut which continues the given face index.