CurveFitter
from panda3d.core import CurveFitter
- class CurveFitter
Bases:
DTOOL_SUPER_BASE
Inheritance diagram
- __init__(*args, **kwargs)
- addHpr()
C++ Interface: add_hpr(const CurveFitter self, float t, const LVecBase3f hpr)
- /**
Adds a single sample hpr.
*/
- addXyz()
C++ Interface: add_xyz(const CurveFitter self, float t, const LVecBase3f xyz)
- /**
Adds a single sample xyz.
*/
- addXyzHpr()
C++ Interface: add_xyz_hpr(const CurveFitter self, float t, const LVecBase3f xyz, const LVecBase3f hpr)
- /**
Adds a single sample xyz & hpr simultaneously.
*/
- add_hpr()
C++ Interface: add_hpr(const CurveFitter self, float t, const LVecBase3f hpr)
- /**
Adds a single sample hpr.
*/
- add_xyz()
C++ Interface: add_xyz(const CurveFitter self, float t, const LVecBase3f xyz)
- /**
Adds a single sample xyz.
*/
- add_xyz_hpr()
C++ Interface: add_xyz_hpr(const CurveFitter self, float t, const LVecBase3f xyz, const LVecBase3f hpr)
- /**
Adds a single sample xyz & hpr simultaneously.
*/
- computeTangents()
C++ Interface: compute_tangents(const CurveFitter self, float scale)
- /**
Once a set of points has been built, and prior to calling MakeHermite() or
MakeNurbs(), ComputeTangents() must be called to set up the tangents
correctly (unless the tangents were defined as the points were added).
*/
- compute_tangents()
C++ Interface: compute_tangents(const CurveFitter self, float scale)
- /**
Once a set of points has been built, and prior to calling MakeHermite() or
MakeNurbs(), ComputeTangents() must be called to set up the tangents
correctly (unless the tangents were defined as the points were added).
*/
- desample()
C++ Interface: desample(const CurveFitter self, float factor)
- /**
Removes sample points in order to reduce the complexity of a sampled curve.
Keeps one out of every factor samples. Also keeps the first and the last
samples.
*/
- getClassType()
C++ Interface: get_class_type()
- getNumSamples()
C++ Interface: get_num_samples(CurveFitter self)
- /**
Returns the number of sample points that have been added.
*/
- getSampleHpr()
C++ Interface: get_sample_hpr(CurveFitter self, int n)
- /**
Returns the orientation of the nth sample added.
*/
- getSampleT()
C++ Interface: get_sample_t(CurveFitter self, int n)
- /**
Returns the parametric value of the nth sample added.
*/
- getSampleTangent()
C++ Interface: get_sample_tangent(CurveFitter self, int n)
- /**
Returns the tangent associated with the nth sample added. This is only
meaningful if compute_tangents() has already been called.
*/
- getSampleXyz()
C++ Interface: get_sample_xyz(CurveFitter self, int n)
- /**
Returns the point in space of the nth sample added.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_num_samples()
C++ Interface: get_num_samples(CurveFitter self)
- /**
Returns the number of sample points that have been added.
*/
- get_sample_hpr()
C++ Interface: get_sample_hpr(CurveFitter self, int n)
- /**
Returns the orientation of the nth sample added.
*/
- get_sample_t()
C++ Interface: get_sample_t(CurveFitter self, int n)
- /**
Returns the parametric value of the nth sample added.
*/
- get_sample_tangent()
C++ Interface: get_sample_tangent(CurveFitter self, int n)
- /**
Returns the tangent associated with the nth sample added. This is only
meaningful if compute_tangents() has already been called.
*/
- get_sample_xyz()
C++ Interface: get_sample_xyz(CurveFitter self, int n)
- /**
Returns the point in space of the nth sample added.
*/
- makeHermite()
C++ Interface: make_hermite(CurveFitter self)
- /**
Converts the current set of data points into a Hermite curve.
*/
- makeNurbs()
C++ Interface: make_nurbs(CurveFitter self)
- /**
Converts the current set of data points into a NURBS curve. This gives a
smoother curve than produced by MakeHermite().
*/
- make_hermite()
C++ Interface: make_hermite(CurveFitter self)
- /**
Converts the current set of data points into a Hermite curve.
*/
- make_nurbs()
C++ Interface: make_nurbs(CurveFitter self)
- /**
Converts the current set of data points into a NURBS curve. This gives a
smoother curve than produced by MakeHermite().
*/
- removeSamples()
C++ Interface: remove_samples(const CurveFitter self, int begin, int end)
- /**
Eliminates all samples from index begin, up to but not including index end,
from the database.
*/
- remove_samples()
C++ Interface: remove_samples(const CurveFitter self, int begin, int end)
- /**
Eliminates all samples from index begin, up to but not including index end,
from the database.
*/
- reset()
C++ Interface: reset(const CurveFitter self)
- /**
Removes all the data points previously added to the CurveFitter, and
initializes it for a new curve.
*/
- sample()
C++ Interface: sample(const CurveFitter self, ParametricCurveCollection curves, int count)
- /**
Generates a series of data points by sampling the given curve (or xyz/hpr
curves) the indicated number of times. The sampling is made evenly in
parametric time, and then the timewarps, if any, are applied.
*/
- sortPoints()
C++ Interface: sort_points(const CurveFitter self)
- /**
Sorts all the data points in order by parametric time, in case they were
added in an incorrect order.
*/
- sort_points()
C++ Interface: sort_points(const CurveFitter self)
- /**
Sorts all the data points in order by parametric time, in case they were
added in an incorrect order.
*/
- wrapHpr()
C++ Interface: wrap_hpr(const CurveFitter self)
- /**
Resets each HPR data point so that the maximum delta between any two
consecutive points is 180 degrees, which should prevent incorrect HPR
wrapping.
*/