panda3d.core.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__(name: str) → None
setSurface(surface: NurbsSurfaceEvaluator) → None

Sets the particular surface represented by the SheetNode.

getSurface() → NurbsSurfaceEvaluator

Returns the surface represented by the SheetNode.

Return type

NurbsSurfaceEvaluator

setUseVertexColor(flag: bool) → None

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.setExtendedVertex() to set these values.

getUseVertexColor() → bool

Returns the “use vertex color” flag. See setUseVertexColor().

setNumUSubdiv(num_u_subdiv: int) → None

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.

getNumUSubdiv() → int

Returns the number of subdivisions per cubic segment to draw in the U direction. See setNumUSubdiv().

setNumVSubdiv(num_v_subdiv: int) → None

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.

getNumVSubdiv() → int

Returns the number of subdivisions per cubic segment to draw in the V direction. See setNumVSubdiv().

resetBound(rel_to: NodePath) → None

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.

static getClassType() → TypeHandle
Return type

TypeHandle