18 #ifndef itkSimplexMeshToTriangleMeshFilter_h 19 #define itkSimplexMeshToTriangleMeshFilter_h 42 template<
typename TInputMesh,
typename TOutputMesh >
112 void Visit(CellIdentifier cellId, SimplexPolygonType *poly)
114 typedef typename SimplexPolygonType::PointIdIterator PointIdIterator;
116 InputPointType center;
125 this->
m_Mesh->GetPoint(*it, &p);
126 center += p.GetVectorFromOrigin();
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
InputMeshType::ConstPointer InputMeshConstPointer
PointMapPointer m_Centers
InputMeshType::CellIdentifier CellIdentifier
A template class used to implement a visitor object.
SimplexMeshToTriangleMeshFilter(const Self &)
SmartPointer< Self > Pointer
A wrapper of the STL "map" container.
Convenience class for generating meshes.
CellIdentifier FindCellId(CellIdentifier id1, CellIdentifier id2, CellIdentifier id3)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
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
virtual ~SimplexMeshToTriangleMeshFilter()
void PrintSelf(std::ostream &os, Indent indent) const override
InputMeshType::MeshTraits::CellTraits InputCellTraitsType
itk::AutomaticTopologyMeshSource< TOutputMesh > AutoMeshSourceType
SmartPointer< const Self > ConstPointer
InputPointsContainer::Iterator InputPointsContainerIterator
virtual ~SimplexCellVisitor()
InputMeshType::PointType InputPointType
SimplexMeshToTriangleMeshFilter()
virtual unsigned int GetNumberOfPoints(void) const override
void SetMesh(const InputMeshType *mesh)
visits all polygon cells and compute the cell centers
MeshToMeshFilter< TInputMesh, TOutputMesh > Superclass
SimplexCellType::MultiVisitor CellMultiVisitorType
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
virtual void GenerateData() override
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
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