NurbsCurveInterface

from panda3d.core import NurbsCurveInterface
class NurbsCurveInterface

Bases:

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
getCv(n: int) LVecBase4
getCvPoint(n: int) LVecBase3

Returns the position of the indicated CV.

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()
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)
writeCv(out: ostream, n: int)