#ifndef __CPM__ALGORITHMS__QUADEDGE__DECIMATIONFILTER__HXX__ #define __CPM__ALGORITHMS__QUADEDGE__DECIMATIONFILTER__HXX__ // ------------------------------------------------------------------------- template< class I, class O, class C > cpm::Algorithms::QuadEdge::DecimationFilter< I, O, C >:: DecimationFilter( ) : Superclass( ) { this->m_Iteration = 0; } // ------------------------------------------------------------------------- template< class I, class O, class C > cpm::Algorithms::QuadEdge::DecimationFilter< I, O, C >:: ~DecimationFilter( ) { } // ------------------------------------------------------------------------- template< class I, class O, class C > void cpm::Algorithms::QuadEdge::DecimationFilter< I, O, C >:: GenerateData( ) { // TODO: this->CopyInputMeshToOutputMesh( ); this->Initialize( ); this->FillPriorityQueue( ); this->m_Iteration = 0; bool stop = false; do { this->Extract( ); stop = this->ProcessWithTopologicalGuarantee( ); ++this->m_Iteration; } while( !( this->IsCriterionSatisfied( ) ) && !stop ); /* TODO if( stop ) this->GetOutput( )->SqueezePointsIds( ); */ } // ------------------------------------------------------------------------- template< class I, class O, class C > void cpm::Algorithms::QuadEdge::DecimationFilter< I, O, C >:: Initialize( ) { } #endif // __CPM__ALGORITHMS__QUADEDGE__DECIMATIONFILTER__HXX__ // eof - $RCSfile$