from panda3d.egg import EggCurve
class EggCurve


Bases: EggPrimitive

A parametric curve of some kind. See EggNurbsCurve.

Inheritance diagram

Inheritance diagram of EggCurve

enum CurveType
enumerator CT_none = 0
enumerator CT_xyz = 1
enumerator CT_hpr = 2
enumerator CT_t = 3
assign(copy: EggCurve) EggCurve
static getClassType() panda3d.core.TypeHandle
getCurveType() CurveType

Returns the indicated type of the curve.

getSubdiv() int

Returns the requested number of subdivisions, or 0 if no particular subdivisions have been requested.

setCurveType(type: CurveType)

Sets the type of the curve. This is primarily used as a hint to any code that may need to deal with this curve.

setSubdiv(subdiv: int)

Sets the number of subdivisions that will be requested across the curve. (This doesn’t necessary guarantee that this number of subdivisions will be made; it’s just a hint to any curve renderer or quick tesselator.) Set the number to 0 to disable the hint.

static stringCurveType(string: str) CurveType

Returns the CurveType value associated with the given string representation, or CT_invalid if the string does not match any known CurveType value.