Panda3D
Loading...
Searching...
No Matches
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_knots !=nurbs->get_num_knots())
 
 if (num_u_knots !=nurbs->get_num_u_knots())
 
 if (num_v_knots !=nurbs->get_num_v_knots())
 
 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.
 
 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.
 
nurbs reset (egg_curve->size())
 
nurbs reset (num_u_vertices, num_v_vertices)
 
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

◆ for() [1/2]

for ( )

Definition at line 47 of file egg_parametrics.cxx.

◆ for() [2/2]

for ( pi = egg_curve->begin(); pi != egg_curve->end(); ++pi)

Definition at line 108 of file egg_parametrics.cxx.

◆ if() [1/3]

if ( num_knots ! = nurbs->get_num_knots())

Definition at line 117 of file egg_parametrics.cxx.

◆ if() [2/3]

if ( num_u_knots ! = nurbs->get_num_u_knots())

Definition at line 59 of file egg_parametrics.cxx.

◆ if() [3/3]

if ( num_v_knots ! = nurbs->get_num_v_knots())

Definition at line 68 of file egg_parametrics.cxx.

◆ PT() [1/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.

References EggAttributes::get_color(), EggNurbsCurve::get_knot, EggNurbsCurve::get_num_knots, EggNurbsCurve::get_order, and EggVertex::get_pos4().

◆ PT() [2/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.

References EggAttributes::get_color(), EggNurbsSurface::get_num_u_cvs(), EggNurbsSurface::get_num_u_knots, EggNurbsSurface::get_num_v_cvs(), EggNurbsSurface::get_num_v_knots, EggVertex::get_pos4(), EggNurbsSurface::get_u_knot, EggNurbsSurface::get_u_order(), EggNurbsSurface::get_v_knot, EggNurbsSurface::get_v_order(), EggPrimitive::get_vertex, and EggNurbsSurface::get_vertex_index().

Variable Documentation

◆ i

int i

Definition at line 76 of file egg_parametrics.cxx.

◆ 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.

Definition at line 24 of file egg_parametrics.cxx.

◆ num_knots

int num_knots = egg_curve->get_num_knots()

Definition at line 116 of file egg_parametrics.cxx.

◆ num_u_knots

int num_u_knots = egg_surface->get_num_u_knots()

Definition at line 58 of file egg_parametrics.cxx.

◆ num_u_vertices

int num_u_vertices = egg_surface->get_num_u_cvs()

Definition at line 44 of file egg_parametrics.cxx.

◆ num_v_knots

int num_v_knots = egg_surface->get_num_v_knots()

Definition at line 67 of file egg_parametrics.cxx.

◆ num_v_vertices

int num_v_vertices = egg_surface->get_num_v_cvs()

Definition at line 45 of file egg_parametrics.cxx.

◆ nurbs

return nurbs

Definition at line 84 of file egg_parametrics.cxx.

◆ pi

EggPrimitive::const_iterator pi

Definition at line 106 of file egg_parametrics.cxx.

◆ vi

int vi = 0

Definition at line 107 of file egg_parametrics.cxx.