CurveFitter¶
-
class CurveFitter¶
Inheritance diagram
digraph inheritance4bab6ba3cf { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "CurveFitter" [URL="acron.core.CurveFitter.html#acron.core.CurveFitter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "CurveFitter" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }- CurveFitter.__init__()¶
- CurveFitter.add_hpr()¶
Adds a single sample hpr.
- CurveFitter.add_xyz()¶
Adds a single sample xyz.
- CurveFitter.add_xyz_hpr()¶
Adds a single sample xyz & hpr simultaneously.
- CurveFitter.compute_tangents()¶
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).
- CurveFitter.desample()¶
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.
- static CurveFitter.get_class_type()¶
- CurveFitter.get_num_samples()¶
Returns the number of sample points that have been added.
- CurveFitter.get_sample_hpr()¶
Returns the orientation of the nth sample added.
- CurveFitter.get_sample_t()¶
Returns the parametric value of the nth sample added.
- CurveFitter.get_sample_tangent()¶
Returns the tangent associated with the nth sample added. This is only meaningful if
compute_tangents()has already been called.
- CurveFitter.get_sample_xyz()¶
Returns the point in space of the nth sample added.
- CurveFitter.make_hermite()¶
Converts the current set of data points into a Hermite curve.
- CurveFitter.make_nurbs()¶
Converts the current set of data points into a NURBS curve. This gives a smoother curve than produced by MakeHermite().
- CurveFitter.output()¶
- CurveFitter.remove_samples()¶
Eliminates all samples from index begin, up to but not including index end, from the database.
- CurveFitter.reset()¶
Removes all the data points previously added to the
CurveFitter, and initializes it for a new curve.
- CurveFitter.sample()¶
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.
- CurveFitter.sort_points()¶
Sorts all the data points in order by parametric time, in case they were added in an incorrect order.
- CurveFitter.wrap_hpr()¶
Resets each HPR data point so that the maximum delta between any two consecutive points is 180 degrees, which should prevent incorrect HPR wrapping.
- CurveFitter.write()¶