Panda3D

egg_parametrics.h

00001 // Filename: egg_parametrics.h
00002 // Created by:  drose (13Oct03)
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 EGG_PARAMETRICS_H
00016 #define EGG_PARAMETRICS_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "eggNurbsSurface.h"
00021 #include "eggNurbsCurve.h"
00022 #include "nurbsSurfaceEvaluator.h"
00023 #include "nurbsCurveEvaluator.h"
00024 
00025 BEGIN_PUBLISH
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: make_nurbs_surface
00029 //  Description: Returns a new NurbsSurfaceEvaluator that's filled in
00030 //               with the values from the given EggSurface (and
00031 //               transformed by the indicated matrix), or NULL if the
00032 //               object is invalid.  If there is vertex color, it will
00033 //               be applied to values 0 - 3 of the extended vertex
00034 //               values.
00035 ////////////////////////////////////////////////////////////////////
00036 EXPCL_PANDAEGG PT(NurbsSurfaceEvaluator)
00037 make_nurbs_surface(EggNurbsSurface *egg_surface, const LMatrix4d &mat);
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: make_nurbs_curve
00041 //  Description: Returns a new NurbsCurveEvaluator that's filled in
00042 //               with the values from the given EggCurve (and
00043 //               transformed by the indicated matrix), or NULL if the
00044 //               object is invalid.  If there is vertex color, it will
00045 //               be applied to values 0 - 3 of the extended vertex
00046 //               values.
00047 ////////////////////////////////////////////////////////////////////
00048 EXPCL_PANDAEGG PT(NurbsCurveEvaluator)
00049 make_nurbs_curve(EggNurbsCurve *egg_curve, const LMatrix4d &mat);
00050 
00051 END_PUBLISH
00052 
00053 #endif
 All Classes Functions Variables Enumerations