SheetNode

from panda3d.core import SheetNode
class SheetNode

Bases: PandaNode

This class draws a visible representation of the NURBS surface stored in its NurbsSurfaceEvaluator. It automatically recomputes the surface every frame.

This is not related to NurbsSurface, CubicSurfaceseg or any of the ParametricSurface-derived objects in this module. It is a completely parallel implementation of NURBS surfaces, and will probably eventually replace the whole ParametricSurface class hierarchy.

Inheritance diagram

Inheritance diagram of SheetNode

__init__(*args, **kwargs)
getClassType()

C++ Interface: get_class_type()

getNumUSubdiv()

C++ Interface: get_num_u_subdiv(SheetNode self)

/**
  • Returns the number of subdivisions per cubic segment to draw in the U

  • direction. See set_num_u_subdiv().

*/

getNumVSubdiv()

C++ Interface: get_num_v_subdiv(SheetNode self)

/**
  • Returns the number of subdivisions per cubic segment to draw in the V

  • direction. See set_num_v_subdiv().

*/

getSurface()

C++ Interface: get_surface(SheetNode self)

/**
  • Returns the surface represented by the SheetNode.

*/

getUseVertexColor()

C++ Interface: get_use_vertex_color(SheetNode self)

/**
  • Returns the “use vertex color” flag. See set_use_vertex_color().

*/

get_class_type()

C++ Interface: get_class_type()

get_num_u_subdiv()

C++ Interface: get_num_u_subdiv(SheetNode self)

/**
  • Returns the number of subdivisions per cubic segment to draw in the U

  • direction. See set_num_u_subdiv().

*/

get_num_v_subdiv()

C++ Interface: get_num_v_subdiv(SheetNode self)

/**
  • Returns the number of subdivisions per cubic segment to draw in the V

  • direction. See set_num_v_subdiv().

*/

get_surface()

C++ Interface: get_surface(SheetNode self)

/**
  • Returns the surface represented by the SheetNode.

*/

get_use_vertex_color()

C++ Interface: get_use_vertex_color(SheetNode self)

/**
  • Returns the “use vertex color” flag. See set_use_vertex_color().

*/

resetBound()

C++ Interface: reset_bound(const SheetNode self, const NodePath rel_to)

/**
  • Recomputes the bounding volume. This is normally called automatically, but

  • it must occasionally be called explicitly when the surface has changed

  • properties outside of this node’s knowledge.

*/

reset_bound()

C++ Interface: reset_bound(const SheetNode self, const NodePath rel_to)

/**
  • Recomputes the bounding volume. This is normally called automatically, but

  • it must occasionally be called explicitly when the surface has changed

  • properties outside of this node’s knowledge.

*/

setNumUSubdiv()

C++ Interface: set_num_u_subdiv(const SheetNode self, int num_u_subdiv)

/**
  • Specifies the number of subdivisions per cubic segment (that is, per unique

  • knot value) to draw in a fixed uniform tesselation of the surface in the U

  • direction.

*/

setNumVSubdiv()

C++ Interface: set_num_v_subdiv(const SheetNode self, int num_v_subdiv)

/**
  • Specifies the number of subdivisions per cubic segment (that is, per unique

  • knot value) to draw in a fixed uniform tesselation of the surface in the V

  • direction.

*/

setSurface()

C++ Interface: set_surface(const SheetNode self, NurbsSurfaceEvaluator surface)

/**
  • Sets the particular surface represented by the SheetNode.

*/

setUseVertexColor()

C++ Interface: set_use_vertex_color(const SheetNode self, bool flag)

/**
  • Sets the “use vertex color” flag. When this is true, the R, G, B, A vertex

  • color is assumed to be stored as the dimensions 0, 1, 2, 3, respectively,

  • of the extended vertex values. Use

  • NurbsCurveEvaluator::set_extended_vertex() to set these values.

*/

set_num_u_subdiv()

C++ Interface: set_num_u_subdiv(const SheetNode self, int num_u_subdiv)

/**
  • Specifies the number of subdivisions per cubic segment (that is, per unique

  • knot value) to draw in a fixed uniform tesselation of the surface in the U

  • direction.

*/

set_num_v_subdiv()

C++ Interface: set_num_v_subdiv(const SheetNode self, int num_v_subdiv)

/**
  • Specifies the number of subdivisions per cubic segment (that is, per unique

  • knot value) to draw in a fixed uniform tesselation of the surface in the V

  • direction.

*/

set_surface()

C++ Interface: set_surface(const SheetNode self, NurbsSurfaceEvaluator surface)

/**
  • Sets the particular surface represented by the SheetNode.

*/

set_use_vertex_color()

C++ Interface: set_use_vertex_color(const SheetNode self, bool flag)

/**
  • Sets the “use vertex color” flag. When this is true, the R, G, B, A vertex

  • color is assumed to be stored as the dimensions 0, 1, 2, 3, respectively,

  • of the extended vertex values. Use

  • NurbsCurveEvaluator::set_extended_vertex() to set these values.

*/