Panda3D
Public Member Functions | Public Attributes
SubdivSegment Class Reference

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

#include "subdivSegment.h"

List of all members.

Public Member Functions

 SubdivSegment (const double *cint, int f, int t)
void cut ()
 Applies _num_cuts cuts to the segment.
double get_need () const
 Returns a score that indicates how badly the segment needs to be further subdivided.
double get_score () const
 Returns the net score of the segment.
bool operator< (const SubdivSegment &other) const
 Sorts the segments in descending order of need.

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 27 of file subdivSegment.h.


Member Function Documentation

Applies _num_cuts cuts to the segment.

Definition at line 46 of file subdivSegment.cxx.

References get_score().

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 47 of file subdivSegment.I.

References get_score().

Referenced by operator<().

double SubdivSegment::get_score ( ) const [inline]

Returns the net score of the segment.

Definition at line 35 of file subdivSegment.I.

Referenced by cut(), and get_need().

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

Sorts the segments in descending order of need.

Definition at line 57 of file subdivSegment.I.

References get_need().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations