Panda3D
egg_parametrics.h
1 // Filename: egg_parametrics.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 EGG_PARAMETRICS_H
16 #define EGG_PARAMETRICS_H
17 
18 #include "pandabase.h"
19 
20 #include "eggNurbsSurface.h"
21 #include "eggNurbsCurve.h"
22 #include "nurbsSurfaceEvaluator.h"
23 #include "nurbsCurveEvaluator.h"
24 
25 BEGIN_PUBLISH
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: make_nurbs_surface
29 // Description: Returns a new NurbsSurfaceEvaluator that's filled in
30 // with the values from the given EggSurface (and
31 // transformed by the indicated matrix), or NULL if the
32 // object is invalid. If there is vertex color, it will
33 // be applied to values 0 - 3 of the extended vertex
34 // values.
35 ////////////////////////////////////////////////////////////////////
36 EXPCL_PANDAEGG PT(NurbsSurfaceEvaluator)
37 make_nurbs_surface(EggNurbsSurface *egg_surface, const LMatrix4d &mat);
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: make_nurbs_curve
41 // Description: Returns a new NurbsCurveEvaluator that's filled in
42 // with the values from the given EggCurve (and
43 // transformed by the indicated matrix), or NULL if the
44 // object is invalid. If there is vertex color, it will
45 // be applied to values 0 - 3 of the extended vertex
46 // values.
47 ////////////////////////////////////////////////////////////////////
48 EXPCL_PANDAEGG PT(NurbsCurveEvaluator)
49 make_nurbs_curve(EggNurbsCurve *egg_curve, const LMatrix4d &mat);
50 
51 END_PUBLISH
52 
53 #endif
This is a 4-by-4 transform matrix.
Definition: lmatrix.h:4716
This class is an abstraction for evaluating NURBS curves.
This class is an abstraction for evaluating NURBS surfaces.
A parametric NURBS curve.
Definition: eggNurbsCurve.h:28
A parametric NURBS surface.