Panda3D
Functions | Variables
egg_parametrics.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "egg_parametrics.h"
#include "config_egg2pg.h"

Go to the source code of this file.

Functions

 for (int ui=0;ui< num_u_vertices;ui++)
 
 for (pi=egg_curve->begin();pi !=egg_curve->end();++pi)
 
 if (num_u_knots !=nurbs->get_num_u_knots())
 
 if (num_v_knots !=nurbs->get_num_v_knots())
 
 if (num_knots !=nurbs->get_num_knots())
 
 PT (NurbsSurfaceEvaluator) make_nurbs_surface(EggNurbsSurface *egg_surface
 Returns a new NurbsSurfaceEvaluator that's filled in with the values from the given EggSurface (and transformed by the indicated matrix), or NULL if the object is invalid. More...
 
 PT (NurbsCurveEvaluator) make_nurbs_curve(EggNurbsCurve *egg_curve
 Returns a new NurbsCurveEvaluator that's filled in with the values from the given EggCurve (and transformed by the indicated matrix), or NULL if the object is invalid. More...
 
nurbs reset (num_u_vertices, num_v_vertices)
 
nurbs reset (egg_curve->size())
 
nurbs set_order (egg_curve->get_order())
 
nurbs set_u_order (egg_surface->get_u_order())
 
nurbs set_v_order (egg_surface->get_v_order())
 

Variables

int i
 
const LMatrix4d & mat
 
int num_knots = egg_curve->get_num_knots()
 
int num_u_knots = egg_surface->get_num_u_knots()
 
int num_u_vertices = egg_surface->get_num_u_cvs()
 
int num_v_knots = egg_surface->get_num_v_knots()
 
int num_v_vertices = egg_surface->get_num_v_cvs()
 
return nurbs
 
EggPrimitive::const_iterator pi
 
int vi = 0
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2003-10-13

Definition in file egg_parametrics.cxx.

Function Documentation

◆ PT() [1/2]

Returns a new NurbsSurfaceEvaluator that's filled in with the values from the given EggSurface (and transformed by the indicated matrix), or NULL if the object is invalid.

If there is vertex color, it will be applied to values 0 - 3 of the extended vertex values.

◆ PT() [2/2]

Returns a new NurbsCurveEvaluator that's filled in with the values from the given EggCurve (and transformed by the indicated matrix), or NULL if the object is invalid.

If there is vertex color, it will be applied to values 0 - 3 of the extended vertex values.

Variable Documentation

◆ mat

EXPCL_PANDA_EGG2PG const LMatrix4d & mat
Initial value:
{
if (egg_surface->get_u_order() < 1 || egg_surface->get_u_order() > 4) {
egg2pg_cat.error()
<< "Invalid NURBSSurface U order for " << egg_surface->get_name() << ": "
<< egg_surface->get_u_order() << "\n";
return nullptr;
}
if (egg_surface->get_v_order() < 1 || egg_surface->get_v_order() > 4) {
egg2pg_cat.error()
<< "Invalid NURBSSurface V order for " << egg_surface->get_name() << ": "
<< egg_surface->get_v_order() << "\n";
return nullptr;
}
This class is an abstraction for evaluating NURBS surfaces.
PT(NurbsSurfaceEvaluator) make_nurbs_surface(EggNurbsSurface *egg_surface
Returns a new NurbsSurfaceEvaluator that's filled in with the values from the given EggSurface (and t...

Definition at line 24 of file egg_parametrics.cxx.