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