MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NurbsUtils.h File Reference
#include <vector>
#include <algorithm>
#include "Math/Vector.h"

Go to the source code of this file.

Classes

class  NurbsUtils::array2< T >
 A simple class for representing 2D runtime arrays. More...
 

Namespaces

 NurbsUtils
 

Functions

bool NurbsUtils::isKnotVectorMonotonic (const std::vector< double > &knots)
 
bool NurbsUtils::close (double a, double b, double eps)
 
int NurbsUtils::findSpan (int degree, const std::vector< double > &knots, double u)
 Find the span of the given parameter in the knot vector. More...
 
double NurbsUtils::bsplineOneBasis (int i, int deg, const std::vector< double > &U, double u)
 Compute a single B-spline basis function. More...
 
void NurbsUtils::bsplineBasis (int deg, int span, const std::vector< double > &knots, double u, std::vector< double > &N)
 Compute all non-zero B-spline basis functions. More...
 
void NurbsUtils::bsplineDerBasis (int deg, int span, const std::vector< double > &knots, double u, int nDers, std::vector< std::vector< double >> &ders)
 Compute all non-zero derivatives of B-spline basis functions. More...