Panda3D
Public Member Functions | Public Attributes | List of all members
SubdivSegment Class Reference

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
 

Detailed Description

Represents a single hypothetical subdivided segment, under consideration by the IsoPlacer.

Definition at line 25 of file subdivSegment.h.

Member Function Documentation

◆ cut()

void SubdivSegment::cut ( )

Applies _num_cuts cuts to the segment.

Definition at line 41 of file subdivSegment.cxx.

References get_score().

◆ get_need()

double SubdivSegment::get_need ( ) const
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<().

◆ get_score()

double SubdivSegment::get_score ( ) const
inline

Returns the net score of the segment.

Definition at line 29 of file subdivSegment.I.

Referenced by cut(), and get_need().

◆ operator<()

bool SubdivSegment::operator< ( const SubdivSegment other) const
inline

Sorts the segments in descending order of need.

Definition at line 46 of file subdivSegment.I.

References get_need().


The documentation for this class was generated from the following files: