ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkSimplexMeshGeometry.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkSimplexMeshGeometry_h
19 #define itkSimplexMeshGeometry_h
20 
21 
22 #include "itkIntTypes.h"
23 #include "itkPoint.h"
24 #include "itkCovariantVector.h"
25 #include <set>
26 #include "ITKMeshExport.h"
27 
28 namespace itk
29 {
44 class ITKMesh_EXPORT SimplexMeshGeometry
45 {
46 public:
47 
53  using NeighborSetType = std::set< IdentifierType >;
54 
56 
58 
59  void CopyFrom( const SimplexMeshGeometry & input );
60 
61  void CopyNeigborSet( const NeighborSetType * nset );
62 
67  /* stores the indices of the three direct neighbors */
69 
70  /* stores the coordinates of the three direct neighbors */
72 
73  /* stores the mean curvature of the mesh in the point */
74  double meanCurvature;
75 
76  /* coordinates of the corresponding point */
78 
79  /* coordinates of the corresponding point in previous iteration */
81 
86 
91 
92  /* normal vector of corresponding point */
94 
99 
104 
109 
114 
115  /* stores circum circle radius */
116  double circleRadius;
117 
118  /* stores circum circle center */
120 
121  /* stores circum sphere radius */
122  double sphereRadius;
123 
124  /* stores circum sphere center */
125  // PointType sphereCenter;
126 
127  /* stores distance to foot point */
128  double distance;
129 
130  /* stores angle */
131  double phi;
132 
133  /* stores the neighbor set */
135 
136  /* stores multiplier for interactive deformable model filter */
137  double multiplier;
138 
140 
145  void ComputeGeometry();
146 
147 protected:
148 }; // end of class SimplexMeshGeometry
149 } //end of namespace itk
150 
151 #endif
std::set< IdentifierType > NeighborSetType
SizeValueType IdentifierType
Definition: itkIntTypes.h:87
handle geometric properties for vertices of a simplx mesh