Basis.h
1 /******************************************************************************
2 
3  (c) 2004-2014 Scientific Computation Research Center,
4  Rensselaer Polytechnic Institute. All rights reserved.
5 
6  The LICENSE-SCOREC file included with this distribution describes the terms
7  of the SCOREC Non-Commercial License this program is distributed under.
8 
9 *******************************************************************************/
10 // parametric basis functions
11 
12 #ifndef CRVMESH_BASIS_H
13 #define CRVMESH_BASIS_H
14 
15 namespace PolyBasis {
16 
17  /* -- ADD EVALUATION FUNCTIONS HERE -- */
18 
21  double Bernstein1D(int indx, int degree, double t);
22 
25  double Lagrange1D(int indx, int degree, double t);
26 
29  double BernsteinTri(int indx1, int indx2, int degree, double l1, double l2);
30 
31  /* -- ADD DERIVATIVES EVALUATION HERE -- */
32 
35  double DerivBernstein1D(int indx, int degree, double t);
36 
39  double DerivBernsteinTri(int indx1, int indx2, int degree, double l1, double l2, int dir);
40 };
41 
42 #endif//CRVMESH_BASIS_H
double Bernstein1D(int i, int n, double t)
1D Bernstein basis functions
Definition: Basis.cc:30
refer to CAGD by Sederburg for mathematical definitions
Definition: Basis.cc:26
double DerivBernsteinTri(int indx1, int indx2, int degree, double u, double v, int dir)
Bernstein polynomial derivatives.
Definition: Basis.cc:123
double DerivBernstein1D(int indx, int degree, double u)
Bernstein basis derivatives in 1D, w.r.t. the t coordinates.
Definition: Basis.cc:51
double Lagrange1D(int indx, int degree, double u)
1D Lagrange basis functions. note: this function assumes equally spaced param coords ...
Definition: Basis.cc:60
double BernsteinTri(int indx1, int indx2, int degree, double u, double v)
2D Bernstein basis of degree n over a triangle
Definition: Basis.cc:98