MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
WEMPartialFaceCut.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
18
20
24
26
29{
30public:
37 int exitEdge);
40
42 inline int getType() const
43 {
44 return _type;
45 }
48 {
49 return _entryPosition;
50 }
52 inline Vector3 getExitPosition() const
53 {
54 return _exitPosition;
55 }
57 inline int getEntryEdge() const
58 {
59 return _entryEdge;
60 }
62 inline int getExitEdge() const
63 {
64 return _exitEdge;
65 }
67 inline int getCuttingFace() const
68 {
69 return _cuttingFace;
70 }
72 inline bool isDegenerate() const
73 {
74 return ((_degenerateEntryEdge != -1) || (_degenerateExitEdge != -1));
75 }
77 inline int getDegenerateEntryEdge() const
78 {
79 return _degenerateEntryEdge;
80 }
82 inline int getDegenerateExitEdge() const
83 {
84 return _degenerateExitEdge;
85 }
94
95private:
97 int _type;
99 Vector3 _entryPosition;
101 Vector3 _exitPosition;
103 int _entryEdge;
105 int _exitEdge;
107 int _degenerateEntryEdge;
109 int _degenerateExitEdge;
111 int _cuttingFace;
112
114 int _getDegenerateIndex(WEMFace* face, Vector3 position);
115};
116
118
#define MLWEM_EXPORT
Definition MLWEMSystem.h:18
Defines the mesh component: face.
Definition WEMFace.h:30
Class for managing partial face cuts.
Vector3 getEntryPosition() const
Returns the entry position.
int getType() const
Returns the type.
void setRemoteEntry(Vector3 entryPosition, int entryEdge, WEMFace *face)
Sets the entry and checks whether it is degenerate. Remote: edge entry numbers are used.
WEMPartialFaceCut(int type, int cuttingFace)
Create new partial face cut with given parameters.
int getCuttingFace() const
Returns the entry face.
int getExitEdge() const
Returns the exit edge.
int getEntryEdge() const
Returns the entry edge.
void setLocalEntry(Vector3 entryPosition, int entryEdge, WEMFace *face)
Sets the entry and checks whether it is degenerate. Local: local indices are used.
WEMPartialFaceCut(int type, int cuttingFace, Vector3 entryPosition, int entryEdge, Vector3 exitPosition, int exitEdge)
Create new partial face cut with given parameters.
void setRemoteExit(Vector3 exitPosition, int exitEdge, WEMFace *face)
Sets the exit and checks whether it is degenerate. Remote: edge entry numbers are used.
Vector3 getExitPosition() const
Returns the exit position.
void setLocalExit(Vector3 exitPosition, int exitEdge, WEMFace *face)
Sets the exit and checks whether it is degenerate. Local: local indices are used.
bool isDegenerate() const
Returns whether this partial face cut is degenerated.
int getDegenerateExitEdge() const
Returns the degenerate exit edge.
int getDegenerateEntryEdge() const
Returns the degenerate entry edge.
WEMPartialFaceCut()
Standard constructor.
~WEMPartialFaceCut()
Standard destructor.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
const int WEMPARTIALFACECUT_CLOSED
Local definition: closed cut.
const int WEMPARTIALFACECUT_HALF_OPEN
Local definition: half open cut.
const int WEMPARTIALFACECUT_OPEN
Local definition: open cut.