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

append_cv(v: LVecBase3) int
append_cv(v: LVecBase4) int
append_cv(x: float, y: float, z: float) int
static get_class_type() TypeHandle
get_cv(n: int) LVecBase4
get_cv_point(n: int) LVecBase3

Returns the position of the indicated CV.

get_cv_weight(n: int) float

Returns the weight of the indicated CV.

get_cvs() list
get_knot(n: int) float
get_knots() list
get_num_cvs() int
get_num_knots() int
get_order() int
insert_cv(t: float) bool
remove_all_cvs()
remove_cv(n: int) bool
set_cv(n: int, v: LVecBase4) bool
set_cv_point(n: int, v: LVecBase3) bool

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

set_cv_point(n: int, x: float, y: float, z: float) bool

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

set_cv_weight(n: int, w: float) bool

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

set_knot(n: int, t: float) bool
set_order(order: int)
write_cv(out: ostream, n: int)