EggCurve¶
-
class
EggCurve
¶ Bases:
EggPrimitive
A parametric curve of some kind. See
EggNurbsCurve
.Inheritance diagram
-
enum
CurveType
¶ -
enumerator
CT_none
= 0¶
-
enumerator
CT_xyz
= 1¶
-
enumerator
CT_hpr
= 2¶
-
enumerator
CT_t
= 3¶
-
enumerator
-
static TypeHandle
get_class_type
(void)¶
-
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.
-
enum