EggCurve

from panda3d.egg import EggCurve
class EggCurve

Bases:

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 get_class_type() panda3d.core.TypeHandle
get_curve_type() CurveType

Returns the indicated type of the curve.

get_subdiv() int

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

set_curve_type(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.

set_subdiv(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 string_curve_type(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.