Volume Cartographer 2.27.0
ITKMesh.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <itkMesh.h>
6#include <itkPointsLocator.h>
7#include <itkTriangleCell.h>
8
9namespace volcart
10{
11
15using ITKPixel = itk::Vector<double, 3>;
16
19 itk::DefaultStaticMeshTraits<ITKPixel, 3, 3, double, double, ITKPixel>;
20
22using ITKMesh = itk::Mesh<ITKPixel, 3, ITKMeshTraits>;
23
25using ITKPoint = ITKMesh::PointType;
26
28using ITKCell = ITKMesh::CellType;
29
31using ITKTriangle = itk::TriangleCell<ITKCell>;
32
34using ITKPointsContainer = ITKMesh::PointsContainer;
35
37using ITKPointsLocator = itk::PointsLocator<ITKPointsContainer>;
38
40using ITKPointIterator = ITKPointsContainer::ConstIterator;
41
43using ITKCellIterator = ITKMesh::CellsContainer::Iterator;
44
46using ITKPointInCellIterator = ITKCell::PointIdIterator;
66 const ITKMesh::Pointer& input,
67 const ITKMesh::Pointer& output,
68 bool copyVertices = true,
69 bool copyFaces = true);
70
79 const ITKMesh::Pointer& input,
80 bool copyVertices = true,
81 bool copyFaces = true) -> ITKMesh::Pointer;
82} // namespace volcart
void DeepCopy(const ITKMesh::Pointer &input, const ITKMesh::Pointer &output, bool copyVertices=true, bool copyFaces=true)
Create exact copy of ITKMesh.
Volume Cartographer library
ITKMesh::CellsContainer::Iterator ITKCellIterator
Definition: ITKMesh.hpp:43
ITKMesh::PointType ITKPoint
Definition: ITKMesh.hpp:25
ITKMesh::PointsContainer ITKPointsContainer
Definition: ITKMesh.hpp:34
itk::DefaultStaticMeshTraits< ITKPixel, 3, 3, double, double, ITKPixel > ITKMeshTraits
Definition: ITKMesh.hpp:19
itk::Mesh< ITKPixel, 3, ITKMeshTraits > ITKMesh
Definition: ITKMesh.hpp:22
ITKMesh::CellType ITKCell
Definition: ITKMesh.hpp:28
itk::PointsLocator< ITKPointsContainer > ITKPointsLocator
Definition: ITKMesh.hpp:37
ITKCell::PointIdIterator ITKPointInCellIterator
Definition: ITKMesh.hpp:46
ITKPointsContainer::ConstIterator ITKPointIterator
Definition: ITKMesh.hpp:40
itk::Vector< double, 3 > ITKPixel
Definition: ITKMesh.hpp:15
itk::TriangleCell< ITKCell > ITKTriangle
Definition: ITKMesh.hpp:31