Functions
PolyBasis Namespace Reference

refer to CAGD by Sederburg for mathematical definitions More...

Functions

double Bernstein1D (int indx, int degree, double t)
 1D Bernstein basis functions More...
 
double DerivBernstein1D (int indx, int degree, double t)
 Bernstein basis derivatives in 1D, w.r.t. the t coordinates.
 
double Lagrange1D (int indx, int degree, double t)
 1D Lagrange basis functions. note: this function assumes equally spaced param coords
 
double BernsteinTri (int indx1, int indx2, int degree, double l1, double l2)
 2D Bernstein basis of degree n over a triangle More...
 
double DerivBernsteinTri (int indx1, int indx2, int degree, double u, double v, int dir)
 Bernstein polynomial derivatives. More...
 

Detailed Description

refer to CAGD by Sederburg for mathematical definitions

Function Documentation

double PolyBasis::Bernstein1D ( int  i,
int  n,
double  t 
)

1D Bernstein basis functions

bernstein1D, left -> right: t = 0 -> 1 input: i – index; n – degree; t – coordinate

Here is the call graph for this function:

Here is the caller graph for this function:

double PolyBasis::BernsteinTri ( int  indx1,
int  indx2,
int  degree,
double  u,
double  v 
)

2D Bernstein basis of degree n over a triangle

Bernstein polynomials of degree n over a triangle u, v, w coordinates are identical to the barycentric coordinates

Here is the call graph for this function:

Here is the caller graph for this function:

double PolyBasis::DerivBernsteinTri ( int  indx1,
int  indx2,
int  degree,
double  u,
double  v,
int  dir 
)

Bernstein polynomial derivatives.

Bernstein basis derivatives on a triangle, w.r.t. the barycentric coordinates.

Here is the call graph for this function:

Here is the caller graph for this function: