Blender  V3.3
Public Member Functions | Protected Member Functions | List of all members
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 54 of file FitCurve.h.

Constructor & Destructor Documentation

◆ ~FitCurveWrapper()

Freestyle::FitCurveWrapper::~FitCurveWrapper ( )

Definition at line 451 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 456 of file FitCurve.cpp.

References curve.

◆ FitCubic()

void Freestyle::FitCurveWrapper::FitCubic ( Vector2 d,
int  first,
int  last,
Vector2  tHat1,
Vector2  tHat2,
double  error 
)
protected

◆ 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 463 of file FitCurve.cpp.

References data, error(), size(), and v.

Referenced by Freestyle::BezierCurve::BezierCurve().

◆ 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: