From 609e54082ed2c566a351885852e736718eec26fe Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Tue, 10 Aug 2004 16:33:58 +0000 Subject: [PATCH] changes private members (_Imark(), pos, priority) to derive and override is IsFeasible , Init and constructor functions, that can be used to define different kind of collapse (ex: to do not collapses on specified vertices) --- vcg/complex/local_optimization/tri_edge_collapse.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vcg/complex/local_optimization/tri_edge_collapse.h b/vcg/complex/local_optimization/tri_edge_collapse.h index 12452e2c..c8f9a8dc 100644 --- a/vcg/complex/local_optimization/tri_edge_collapse.h +++ b/vcg/complex/local_optimization/tri_edge_collapse.h @@ -72,12 +72,14 @@ public: typedef vcg::face::Pos PosType; typedef typename LocalOptimization::HeapElem HeapElem; -private: + +protected: + ///the pos of collapse + PosType pos; ///mark for up_dating static int& _Imark(){ static int im=0; return im;} - ///the pos of collapse - PosType pos; + /// priority in the heap ScalarType _priority;