Panda3D
 All Classes Functions Variables Enumerations
isoPlacer.h
1 // Filename: isoPlacer.h
2 // Created by: drose (13Oct03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef ISOPLACER_H
16 #define ISOPLACER_H
17 
18 #include "pandatoolbase.h"
19 #include "pvector.h"
20 #include "vector_double.h"
21 
22 class NurbsSurfaceResult;
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : IsoPlacer
26 // Description : Contains the logic used to place isoparams where
27 // they'll do the most good on a surface.
28 ////////////////////////////////////////////////////////////////////
29 class IsoPlacer {
30 public:
31  INLINE IsoPlacer();
32 
33  void get_scores(int subdiv, int across, double ratio,
34  NurbsSurfaceResult *surf, bool s);
35  void place(int count, pvector<double> &iso_points);
36 
37  INLINE double get_total_score() const;
38 
39  vector_double _cscore, _sscore, _cint;
40  int _maxi;
41 };
42 
43 #include "isoPlacer.I"
44 
45 #endif
46 
Contains the logic used to place isoparams where they&#39;ll do the most good on a surface.
Definition: isoPlacer.h:29
The result of a NurbsSurfaceEvaluator.