Blender V4.3
Freestyle::FitCurveWrapper Class Reference

#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)
 

Detailed Description

Definition at line 56 of file FitCurve.h.

Constructor & Destructor Documentation

◆ ~FitCurveWrapper()

Freestyle::FitCurveWrapper::~FitCurveWrapper ( )

Definition at line 455 of file FitCurve.cpp.

Member Function Documentation

◆ DrawBezierCurve()

void Freestyle::FitCurveWrapper::DrawBezierCurve ( int n,
Vector2 * curve )
protected

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().

◆ FitCubic()

◆ FitCurve() [1/2]

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().

◆ FitCurve() [2/2]

void Freestyle::FitCurveWrapper::FitCurve ( Vector2 * d,
int nPts,
double error )
protected

The documentation for this class was generated from the following files: