|
Blender V4.3
|
#include <FitCurve.h>
Public Member Functions | |
| ~FitCurveWrapper () | |
| void | FitCurve (std::vector< Vec2d > &data, std::vector< Vec2d > &oCurve, double error) |
Protected Member Functions | |
| void | FitCurve (Vector2 *d, int nPts, double error) |
| void | DrawBezierCurve (int n, Vector2 *curve) |
| void | FitCubic (Vector2 *d, int first, int last, Vector2 tHat1, Vector2 tHat2, double error) |
Definition at line 56 of file FitCurve.h.
| Freestyle::FitCurveWrapper::~FitCurveWrapper | ( | ) |
Definition at line 455 of file FitCurve.cpp.
Draws a Bezier curve segment n degree of curve (=3) curve bezier segments control points
Definition at line 460 of file FitCurve.cpp.
Referenced by FitCubic().
|
protected |
Definition at line 495 of file FitCurve.cpp.
References Freestyle::ChordLengthParameterize(), Freestyle::ComputeCenterTangent(), Freestyle::ComputeMaxError(), DrawBezierCurve(), error(), FitCubic(), free(), Freestyle::GenerateBezier(), Freestyle::Reparameterize(), Freestyle::V2Add(), Freestyle::V2DistanceBetween2Points(), Freestyle::V2Negate(), and Freestyle::V2Scale().
Referenced by FitCubic(), and FitCurve().
| void Freestyle::FitCurveWrapper::FitCurve | ( | std::vector< Vec2d > & | data, |
| std::vector< Vec2d > & | oCurve, | ||
| double | error ) |
Fits a set of 2D data points to a set of Bezier Curve segments data Input data points oCurve Control points of the sets of bezier curve segments. Each segment is made of 4 points (polynomial degree of curve = 3) error max error tolerance between resulting curve and input data
Definition at line 467 of file FitCurve.cpp.
References error(), FitCurve(), size(), and v.
Referenced by Freestyle::BezierCurve::BezierCurve(), and FitCurve().
Definition at line 486 of file FitCurve.cpp.
References Freestyle::ComputeLeftTangent(), Freestyle::ComputeRightTangent(), error(), and FitCubic().