18#ifndef itkSimplexMeshToTriangleMeshFilter_h
19#define itkSimplexMeshToTriangleMeshFilter_h
42template <
typename TInputMesh,
typename TOutputMesh>
113 using PointIdIterator =
typename SimplexPolygonType::PointIdIterator;
122 this->m_Mesh->GetPoint(*it, &p);
123 center += p.GetVectorFromOrigin();
131 m_CenterMap->InsertElement(cellId, center);
152 CellInterfaceVisitorImplementation<InputPixelType, InputCellTraitsType, SimplexPolygonType, SimplexCellVisitor>;
184#ifndef ITK_MANUAL_INSTANTIATION
185# include "itkSimplexMeshToTriangleMeshFilter.hxx"
Convenience class for generating meshes.
A template class used to implement a visitor object.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
A wrapper of the STL "map" container.
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
Represents a polygon in a Mesh.
unsigned int GetNumberOfPoints() const override
PointIdIterator PointIdsEnd() override
PointIdIterator PointIdsBegin() override
InputMeshConstPointer m_Mesh
void Visit(CellIdentifier cellId, SimplexPolygonType *poly)
visits all polygon cells and compute the cell centers
virtual ~SimplexCellVisitor()=default
PointMapPointer m_CenterMap
void SetMesh(const InputMeshType *mesh)
PointMapPointer GetCenterMap()
This filter converts a 2-simplex mesh into a triangle mesh.
typename InputMeshType::PixelType InputPixelType
typename InputMeshType::NeighborListType::iterator InputNeighborsIterator
typename InputPointsContainer::Pointer InputPointsContainerPointer
typename InputMeshType::NeighborListType InputNeighbors
typename InputPointsContainer::Iterator InputPointsContainerIterator
~SimplexMeshToTriangleMeshFilter() override=default
typename InputMeshType::CellType SimplexCellType
typename PointMapType::Pointer PointMapPointer
typename CellMultiVisitorType::Pointer CellMultiVisitorPointer
typename InputMeshType::PointIdentifier PointIdentifier
typename SimplexCellType::MultiVisitor CellMultiVisitorType
typename InputMeshType::ConstPointer InputMeshConstPointer
CellIdentifier FindCellId(CellIdentifier id1, CellIdentifier id2, CellIdentifier id3)
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputMeshType::MeshTraits::CellTraits InputCellTraitsType
typename SimplexVisitorInterfaceType::Pointer SimplexVisitorInterfacePointer
typename InputMeshType::PointsContainer InputPointsContainer
SimplexMeshToTriangleMeshFilter()=default
void GenerateData() override
typename InputMeshType::PointType InputPointType
typename InputMeshType::CellIdentifier CellIdentifier
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::PointType PointType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....