18 #ifndef __itkQuadricDecimationQuadEdgeMeshFilter_h
19 #define __itkQuadricDecimationQuadEdgeMeshFilter_h
31 template<
typename TInput,
typename TOutput,
typename TCriterion >
81 typedef std::map< OutputPointIdentifier, QuadricElementType >
102 id[0] = iEdge->GetOrigin();
103 id[1] = iEdge->GetDestination();
104 id[2] = iEdge->GetOnext()->GetDestination();
108 for (
int i = 0; i < 3; i++ )
110 p[i] = outputMesh->GetPoint(
id[i]);
131 mid.SetToMidPoint(org, dest);
160 #ifndef ITK_MANUAL_INSTANTIATION
161 #include "itkQuadricDecimationQuadEdgeMeshFilter.hxx"
MeasureType MeasureEdge(OutputQEType *iEdge)
Compute the measure value for iEdge.
Superclass::QueueMapType QueueMapType
OperatorType::Pointer OperatorPointer
TODO explicit specification for VDimension=3!!!
Superclass::OperatorType OperatorType
Light weight base class for most itk classes.
QuadEdgeMeshEulerOperatorJoinVertexFunction< OutputMeshType, OutputQEType > OperatorType
void QuadricAtOrigin(OutputQEType *iEdge, QuadricElementType &oQ, OutputMeshType *outputMesh)
Compute the quadric error at the origin of the edge.
OutputMeshType::PointsContainerIterator OutputPointsContainerIterator
static const unsigned int OutputPointDimension
OutputPointType Relocate(OutputQEType *iEdge)
Compute the optimal position for a given edge iEdge.
Superclass::PriorityQueuePointer PriorityQueuePointer
OutputMeshType::EdgeCellType OutputEdgeCellType
CriterionType::MeasureType MeasureType
std::map< OutputPointIdentifier, QuadricElementType > QuadricElementMapType
OutputMeshType::PointType OutputPointType
CriterionType::MeasureType MeasureType
void operator=(const Self &)
OutputMeshType::QEType OutputQEType
OutputMeshType::PointIdentifier OutputPointIdentifier
OutputMeshType::PointIdentifier OutputPointIdentifier
virtual void DeletePoint(const OutputPointIdentifier &iIdToBeDeleted, const OutputPointIdentifier &iRemaining)
Delete point.
QuadricElementMapType m_Quadric
virtual ~QuadricDecimationQuadEdgeMeshFilter()
Destructor.
PriorityQueueType::Pointer PriorityQueuePointer
SmartPointer< Self > Pointer
QuadricDecimationQuadEdgeMeshFilter()
Constructor.
OutputPointType::CoordRepType OutputCoordType
OutputMeshType * m_OutputMesh
OutputMeshType::Pointer OutputMeshPointer
OutputMeshType::PointsContainerPointer OutputPointsContainerPointer
OutputMeshType::QEType OutputQEType
PointType ComputeOptimalLocation(const PointType &iP)
OutputMeshType::PointType OutputPointType
std::map< OutputQEType *, PriorityQueueItemType * > QueueMapType
CoordType ComputeError(const PointType &iP) const
TODO this method should be really optimized!!!
Superclass::PriorityType PriorityType
OutputMeshType::CellsContainerIterator OutputCellsContainerIterator
Superclass::PriorityQueueType PriorityQueueType
QuadricElementMapType::iterator QuadricElementMapIterator
EdgeDecimationQuadEdgeMeshFilter< TInput, TOutput, TCriterion > Superclass
virtual void Initialize()
Compute Quadric error for all edges.
QueueMapType::iterator QueueMapIterator
Superclass::OperatorPointer OperatorPointer
Superclass::PriorityQueueItemType PriorityQueueItemType
CriterionType::PriorityQueueWrapperType PriorityQueueItemType
PriorityQueueContainer< PriorityQueueItemType *, ElementWrapperPointerInterface< PriorityQueueItemType * >, PriorityType > PriorityQueueType
SmartPointer< const Self > ConstPointer
QuadEdgeMeshDecimationQuadricElementHelper< OutputPointType > QuadricElementType
void AddTriangle(const PointType &iP1, const PointType &iP2, const PointType &iP3, const CoordType &iWeight=static_cast< CoordType >(1.))
QuadricDecimationQuadEdgeMeshFilter Self
CriterionType::PriorityType PriorityType
Superclass::QueueMapIterator QueueMapIterator
InputMeshType::Pointer InputMeshPointer