CPAlgoPolyArea.cxx
Go to the documentation of this file.
1 #include "CPAlgoPolyArea.h"
2 
3 namespace cmtool {
4 
5  //----------------------------------------------------------
7  //----------------------------------------------------------
8  {
9  _area_cut = 0;
10  }
11 
12  //------------------------------------------------------------------------------
13  float CPAlgoPolyArea::Priority(const ::cluster::ClusterParamsAlg &cluster)
14  //------------------------------------------------------------------------------
15  {
16 
17  auto area = cluster.GetParams().PolyObject.Area();
18 
19  return ( area < _area_cut ? -1 : area);
20  }
21 
22 }
Class def header for a class CPAlgoPolyArea.
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Cluster finding and building.
CPAlgoPolyArea()
Default constructor.