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
static TypeHandle get_class_type(void)
CurveType get_curve_type(void) const

Returns the indicated type of the curve.

int get_subdiv(void) const

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

void set_curve_type(EggCurve::CurveType type)

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

void set_subdiv(int subdiv)

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 CurveType string_curve_type(std::string const &string)

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