Represents a single hypothetical subdivided segment, under consideration by the IsoPlacer. More...
#include "subdivSegment.h"
Public Member Functions | |
SubdivSegment (const double *cint, int f, int t) | |
void | cut () |
Applies _num_cuts cuts to the segment. More... | |
double | get_need () const |
Returns a score that indicates how badly the segment needs to be further subdivided. More... | |
double | get_score () const |
Returns the net score of the segment. More... | |
bool | operator< (const SubdivSegment &other) const |
Sorts the segments in descending order of need. More... | |
Public Attributes | |
const double * | _cint |
vector_int | _cuts |
int | _f |
int | _num_cuts |
int | _t |
Represents a single hypothetical subdivided segment, under consideration by the IsoPlacer.
Definition at line 25 of file subdivSegment.h.
void SubdivSegment::cut | ( | ) |
Applies _num_cuts cuts to the segment.
Definition at line 41 of file subdivSegment.cxx.
References get_score().
|
inline |
Returns a score that indicates how badly the segment needs to be further subdivided.
The greater the number, the greater the need.
Definition at line 38 of file subdivSegment.I.
References get_score().
Referenced by operator<().
|
inline |
Returns the net score of the segment.
Definition at line 29 of file subdivSegment.I.
Referenced by cut(), and get_need().
|
inline |
Sorts the segments in descending order of need.
Definition at line 46 of file subdivSegment.I.
References get_need().