# panda3d.egg.EggCurve¶

class EggCurve

Bases: EggPrimitive

A parametric curve of some kind. See EggNurbsCurve.

Inheritance diagram

assign(copy: EggCurve) → EggCurve
Return type

EggCurve

setSubdiv(subdiv: int) → None

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.

getSubdiv() → int

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

setCurveType(type: CurveType) → None

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

getCurveType() → CurveType

Returns the indicated type of the curve.

Return type

CurveType

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.

Return type

CurveType

static getClassType() → TypeHandle
Return type

TypeHandle

enum CurveType
enumerator CT_none = 0
enumerator CT_xyz = 1
enumerator CT_hpr = 2
enumerator CT_t = 3