18 #ifndef itkSimplexMeshToTriangleMeshFilter_h
19 #define itkSimplexMeshToTriangleMeshFilter_h
42 template<
typename TInputMesh,
typename TOutputMesh >
103 m_CenterMap = PointMapType::New();
116 using PointIdIterator =
typename SimplexPolygonType::PointIdIterator;
127 this->m_Mesh->GetPoint(*it, &p);
128 center += p.GetVectorFromOrigin();
136 m_CenterMap->InsertElement(cellId, center);
169 void PrintSelf(std::ostream & os,
Indent indent)
const override;
171 void GenerateData()
override;
176 void CreateTriangles();
186 #ifndef ITK_MANUAL_INSTANTIATION
187 #include "itkSimplexMeshToTriangleMeshFilter.hxx"
190 #endif //__SimplexMeshToTriangleMeshFilter_h
Light weight base class for most itk classes.
PointMapPointer m_Centers
A template class used to implement a visitor object.
typename InputMeshType::PointType InputPointType
typename PointMapType::Pointer PointMapPointer
A wrapper of the STL "map" container.
Convenience class for generating meshes.
typename InputPointsContainer::Pointer InputPointsContainerPointer
typename InputMeshType::PointsContainer InputPointsContainer
PointIdIterator PointIdsBegin() override
typename InputMeshType::CellType SimplexCellType
MeshToMeshFilter is the base class for all process objects that output mesh data, and require mesh da...
typename InputMeshType::PixelType InputPixelType
typename SimplexVisitorInterfaceType::Pointer SimplexVisitorInterfacePointer
typename InputPointsContainer::Iterator InputPointsContainerIterator
typename InputMeshType::NeighborListType::iterator InputNeighborsIterator
void SetMesh(const InputMeshType *mesh)
visits all polygon cells and compute the cell centers
typename InputMeshType::ConstPointer InputMeshConstPointer
typename SimplexCellType::MultiVisitor CellMultiVisitorType
PointMapPointer m_CenterMap
visits all polygon cells and compute the cell centers
InputMeshConstPointer m_Mesh
visits all polygon cells and compute the cell centers
Represents a polygon in a Mesh.
This filter converts a 2-simplex mesh into a triangle mesh.
typename InputMeshType::MeshTraits::CellTraits InputCellTraitsType
typename InputMeshType::NeighborListType InputNeighbors
typename InputMeshType::CellIdentifier CellIdentifier
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
PointMapPointer GetCenterMap()
visits all polygon cells and compute the cell centers
unsigned int GetNumberOfPoints() const override
typename InputMeshType::PointIdentifier PointIdentifier
PointIdIterator PointIdsEnd() override
void Visit(CellIdentifier cellId, SimplexPolygonType *poly)
visits all polygon cells and compute the cell centers
typename CellMultiVisitorType::Pointer CellMultiVisitorPointer