public class SplineBasis
extends java.lang.Object
Constructor and Description |
---|
SplineBasis(int degree,
double... knotVector) |
SplineBasis(SplineBasis s) |
Modifier and Type | Method and Description |
---|---|
double |
clamp(double u) |
double[] |
computeBasisFunction(double x) |
double[] |
computeBasisFunctionGradient(double x) |
double[] |
computeBasisFunctionHessian(double x) |
static double |
computeGrevilleAbscissae(int controlPointIndex,
int p,
double... knots) |
static double[] |
generateKnotVectorUniform(int p,
int n,
boolean open) |
static double[] |
generateKnotVectorUniformClose(int p,
int n_cp) |
static double[] |
generateKnotVectorUniformOpen(int p,
int n_cp) |
static SplineBasis |
generateSplineBasisUniformOpen(int p,
int n_cp) |
int |
getDegree() |
int |
getKnotVectorSize() |
int |
getNumberBasis() |
int |
getNumberNonZeroBasisPerKnotSpan() |
int |
getNumberZeroKnotSpanInRange(double u) |
int |
getNumberZeroKnotSpanInRange(int ku) |
static void |
main(java.lang.String[] args) |
double |
normalize(double u) |
double |
unnormalize(double u) |
public SplineBasis(int degree, double... knotVector)
public SplineBasis(SplineBasis s)
public static double computeGrevilleAbscissae(int controlPointIndex, int p, double... knots)
public static SplineBasis generateSplineBasisUniformOpen(int p, int n_cp)
public static double[] generateKnotVectorUniformOpen(int p, int n_cp)
public static double[] generateKnotVectorUniformClose(int p, int n_cp)
public static double[] generateKnotVectorUniform(int p, int n, boolean open)
public double[] computeBasisFunction(double x)
public double[] computeBasisFunctionGradient(double x)
public double[] computeBasisFunctionHessian(double x)
public int getDegree()
public int getKnotVectorSize()
public double unnormalize(double u)
public double normalize(double u)
public int getNumberNonZeroBasisPerKnotSpan()
public int getNumberBasis()
public int getNumberZeroKnotSpanInRange(int ku)
public int getNumberZeroKnotSpanInRange(double u)
public double clamp(double u)
public static void main(java.lang.String[] args)