ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTriangleMeshToSimplexMeshFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkTriangleMeshToSimplexMeshFilter_h
19#define itkTriangleMeshToSimplexMeshFilter_h
20
21#include "itkMapContainer.h"
22#include "itkSimplexMesh.h"
23#include "itkMeshToMeshFilter.h"
24#include "itkVectorContainer.h"
25
26#include "itkPolygonCell.h"
27namespace itk
28{
44template <typename TInputMesh, typename TOutputMesh>
45class ITK_TEMPLATE_EXPORT TriangleMeshToSimplexMeshFilter : public MeshToMeshFilter<TInputMesh, TOutputMesh>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(TriangleMeshToSimplexMeshFilter);
49
52
55
59
61 itkNewMacro(Self);
62
64 itkOverrideGetNameOfClassMacro(TriangleMeshToSimplexMeshFilter);
65
66 using InputMeshType = TInputMesh;
67 using InputMeshPointer = typename TInputMesh::Pointer;
68 using InputPointType = typename TInputMesh::PointType;
69
70 using InputBoundaryAssignmentsContainerPointer = typename TInputMesh::BoundaryAssignmentsContainerPointer;
71
72 using InputPointsContainer = typename TInputMesh::PointsContainer;
73 using InputPointsContainerPointer = typename InputPointsContainer::Pointer;
74 using InputPointsContainerIterator = typename InputPointsContainer::Iterator;
75 using InputPointsContainerConstIterator = typename InputPointsContainer::ConstIterator;
76
77 using OutputMeshPointer = typename TOutputMesh::Pointer;
78 using OutputPointType = typename TOutputMesh::PointType;
79 using OutputPixelType = typename TOutputMesh::PixelType;
80 using OutputPointsContainer = typename TOutputMesh::PointsContainer;
81 using OutputPointsContainerPointer = typename OutputPointsContainer::Pointer;
82 using OutputPointsContainerIterator = typename TOutputMesh::PointsContainer::Iterator;
83
84 using InputBoundnaryAssignmentIdentifier = typename TInputMesh::BoundaryAssignmentIdentifier;
85
86 using InputCellType = typename TInputMesh::CellType;
87 using InputCellAutoPointer = typename InputCellType::CellAutoPointer;
88 using CellAutoPointer = typename TInputMesh::CellAutoPointer;
93
94 using CellIdentifier = typename TOutputMesh::CellIdentifier;
95 using PointIdentifier = typename TOutputMesh::PointIdentifier;
96 using CellFeatureIdentifier = typename TOutputMesh::CellFeatureIdentifier;
97
98 using EdgeIdentifierType = std::pair<CellIdentifier, CellIdentifier>;
99 using IndexSetType = std::set<CellIdentifier>;
100
103
107
110
111 using OutputCellType = typename TOutputMesh::CellType;
112 using OutputCellAutoPointer = typename TOutputMesh::CellAutoPointer;
115
116protected:
119
120 void
121 PrintSelf(std::ostream & os, Indent indent) const override;
122
126 void
127 GenerateData() override;
128
132 void
134
138 void
140
146 void
147 CreateEdgeForTrianglePair(CellIdentifier pointIndex, CellIdentifier boundaryId, TOutputMesh * outputMesh);
148
153 void
155
159 void
161
165 void
167 CellFeatureIdentifier featureId,
168 PointIdentifier startPointId,
169 PointIdentifier endPointId,
170 const InputMeshType * input);
171
172
178
183
191
196
201
206
211
216
221
226
231
236};
237} // namespace itk
238
239#ifndef ITK_MANUAL_INSTANTIATION
240# include "itkTriangleMeshToSimplexMeshFilter.hxx"
241#endif
242
243#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
Represents a line segment for a Mesh.
Definition itkLineCell.h:41
A wrapper of the STL "map" container.
Represents a polygon in a Mesh.
Implements transparent reference counting.
EdgeNeighborListType::Pointer m_EdgeNeighborList
stores the two neighboring cells (faces) of an edge
typename TInputMesh::CellAutoPointer CellAutoPointer
MeshToMeshFilter< TInputMesh, TOutputMesh > Superclass
typename TInputMesh::BoundaryAssignmentIdentifier InputBoundnaryAssignmentIdentifier
InputPointType ComputeFaceCenter(CellIdentifier faceId, const InputMeshType *inputMesh)
typename TOutputMesh::PointsContainer::Iterator OutputPointsContainerIterator
typename InputPointsContainer::Iterator InputPointsContainerIterator
typename InputCellType::CellAutoPointer InputCellAutoPointer
void CreateNewEdge(CellIdentifier currentCellId, CellFeatureIdentifier featureId, PointIdentifier startPointId, PointIdentifier endPointId, const InputMeshType *input)
add edge cells to the input mesh
typename InputPointsContainer::ConstIterator InputPointsContainerConstIterator
typename InputPointsContainer::Pointer InputPointsContainerPointer
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputPointsContainer::Pointer OutputPointsContainerPointer
EdgeMapPointer m_Edges
stores all edges of the input mesh.
typename TOutputMesh::PointIdentifier PointIdentifier
itk::MapContainer< PointIdentifier, IndexSetType > VertexNeighborListType
itk::MapContainer< EdgeIdentifierType, CellIdentifier > EdgeMapType
itk::MapContainer< EdgeIdentifierType, CellIdentifier > LineCellIndexType
std::pair< CellIdentifier, CellIdentifier > EdgeIdentifierType
typename TOutputMesh::CellFeatureIdentifier CellFeatureIdentifier
VertexNeighborListType::Pointer m_VertexNeighborList
stores all edges starting from a vertex
typename TInputMesh::PointsContainer InputPointsContainer
typename TInputMesh::BoundaryAssignmentsContainerPointer InputBoundaryAssignmentsContainerPointer
typename TOutputMesh::CellIdentifier CellIdentifier
void CreateEdgeForTrianglePair(CellIdentifier pointIndex, CellIdentifier boundaryId, TOutputMesh *outputMesh)
typename TOutputMesh::CellAutoPointer OutputCellAutoPointer
itk::VectorContainer< CellIdentifier, CellIdentifier > IdVectorType
typename TOutputMesh::PointsContainer OutputPointsContainer
itk::MapContainer< CellIdentifier, EdgeIdentifierType > EdgeNeighborListType
IndexSetType * m_FaceSet
stores all faces (triangles) of the input mesh
Represents a single vertex for a Mesh.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer