Panda3D
|
00001 // Filename: subdivSegment.h 00002 // Created by: drose (14Oct03) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef SUBDIVSEGMENT_H 00016 #define SUBDIVSEGMENT_H 00017 00018 #include "pandatoolbase.h" 00019 #include "pvector.h" 00020 #include "vector_int.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : SubdivSegment 00024 // Description : Represents a single hypothetical subdivided segment, 00025 // under consideration by the IsoPlacer. 00026 //////////////////////////////////////////////////////////////////// 00027 class SubdivSegment { 00028 public: 00029 INLINE SubdivSegment(const double *cint, int f, int t); 00030 00031 INLINE double get_score() const; 00032 INLINE double get_need() const; 00033 INLINE bool operator < (const SubdivSegment &other) const; 00034 00035 void cut(); 00036 00037 const double *_cint; 00038 int _f, _t; 00039 int _num_cuts; 00040 vector_int _cuts; 00041 }; 00042 00043 #include "subdivSegment.I" 00044 00045 #endif 00046