panda3d.core.NurbsCurveInterface

class NurbsCurveInterface

This abstract class defines the interface only for a Nurbs-style curve, with knots and coordinates in homogeneous space.

The NurbsCurve class inherits both from this and from ParametricCurve.

Inheritance diagram

Inheritance diagram of NurbsCurveInterface

appendCv(v: LVecBase3) → int
appendCv(v: LVecBase4) → int
appendCv(x: float, y: float, z: float) → int
static getClassType() → TypeHandle
Return type

TypeHandle

getCv(n: int) → LVecBase4
Return type

LVecBase4

getCvPoint(n: int) → LVecBase3

Returns the position of the indicated CV.

Return type

LVecBase3

getCvWeight(n: int) → float

Returns the weight of the indicated CV.

getCvs() → list
getKnot(n: int) → float
getKnots() → list
getNumCvs() → int
getNumKnots() → int
getOrder() → int
insertCv(t: float) → bool
removeAllCvs() → None
removeCv(n: int) → bool
setCv(n: int, v: LVecBase4) → bool
setCvPoint(n: int, v: LVecBase3) → bool

Repositions the indicated CV. Returns true if successful, false otherwise.

setCvPoint(n: int, x: float, y: float, z: float) → bool

Repositions the indicated CV. Returns true if successful, false otherwise.

setCvWeight(n: int, w: float) → bool

Sets the weight of the indicated CV without affecting its position in 3-d space.

setKnot(n: int, t: float) → bool
setOrder(order: int) → None
writeCv(out: ostream, n: int) → None