Explorar el Código

changed includes, activated core functions

Dave Schuyler hace 25 años
padre
commit
4b5315ffb2
Se han modificado 1 ficheros con 1 adiciones y 11 borrados
  1. 1 11
      panda/src/parametrics/hermiteCurve.cxx

+ 1 - 11
panda/src/parametrics/hermiteCurve.cxx

@@ -16,18 +16,12 @@
 // Includes
 // Includes
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#include "pandabase.h"
 #include "hermiteCurve.h"
 #include "hermiteCurve.h"
 #include "config_parametrics.h"
 #include "config_parametrics.h"
 #include "luse.h"
 #include "luse.h"
 
 
-////#include <initReg.h>
 #include <math.h>
 #include <math.h>
-////#include <alloca.h>
-////#include <Performer/pf/pfBuffer.h>
-////#include <DConfig.h>
-////#include <perfalloc.h>
-////#include <pfb_util.h>
-using namespace std;
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 // Statics
 // Statics
@@ -898,7 +892,6 @@ wrap_hpr(const LVector3f &hpr1, LVector3f &hpr2) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void HermiteCurve::
 void HermiteCurve::
 invalidate_cv(int n, bool redo_all) {
 invalidate_cv(int n, bool redo_all) {
-#if 0 //[////todo:skyler
   double t1 = 0.0, t2 = get_max_t();
   double t1 = 0.0, t2 = get_max_t();
   if (n>0 && _points[n-1]._type!=HC_CUT) {
   if (n>0 && _points[n-1]._type!=HC_CUT) {
     const HermiteCurveCV &p1 = _points[n-1];
     const HermiteCurveCV &p1 = _points[n-1];
@@ -933,7 +926,6 @@ invalidate_cv(int n, bool redo_all) {
       invalidate(t1, t2);
       invalidate(t1, t2);
     }
     }
   }
   }
-#endif //]
 }
 }
 
 
 
 
@@ -969,7 +961,6 @@ find_cv(double t) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void HermiteCurve::
 void HermiteCurve::
 recompute_basis() {
 recompute_basis() {
-#if 0 //[////todo:skyler
   int n;
   int n;
   for (n = 0; n<_segs.size(); n++) {
   for (n = 0; n<_segs.size(); n++) {
     if (_points[n]._type==HC_CUT) {
     if (_points[n]._type==HC_CUT) {
@@ -985,6 +976,5 @@ recompute_basis() {
       get_curveseg(n)->hermite_basis(p1, p2, get_tlength(n));
       get_curveseg(n)->hermite_basis(p1, p2, get_tlength(n));
     }
     }
   }
   }
-#endif //]
 }
 }