![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Public Member Functions | |
BSpline () | |
BSpline (bool t) | |
void | UpdateMatrix3 () |
void | SetCPoint (int n, Vector3 p) |
void | GetCPoint (int n, out Vector3 p) |
void | ShiftBSplineCPoints () |
void | CopyCPoints (int n_source, int n_dest) |
void | Feval (float t, out Vector3 p) |
void | Feval2 (float t, out Vector3 p) |
void | Deval (float t, out Vector3 d) |
Private Member Functions | |
int | Factorial (int n) |
int | BinomialCoef (int i, int n) |
float | BersteinPol (int i, int n, float u) |
float | DBersteinPol (int i, int n, float u) |
void | InitParameters (bool t) |
void | BSplinePointI (int t) |
void | BSplinePoint (float t) |
void | BSplineTangent (float t) |
void | BSplineTangentI (int t) |
void | EvalPoint (float t) |
void | EvalTangent (float t) |
float | FevalX (float t) |
float | FevalY (float t) |
float | FevalZ (float t) |
float | DevalX (float t) |
float | DevalY (float t) |
float | DevalZ (float t) |
Private Attributes | |
float[][] | bSplineCPoints |
bool | lookup |
float[][] | m3 |
float[] | TVector |
float[] | DTVector |
float[] | pt |
float[] | tg |
Static Private Attributes | |
static int | MAX_BEZIER_ORDER = 10 |
static float[][] | BSplineMatrix |
static int[][] | BinomialCoefTable |
static float[][] | TVectorTable |
static float[][] | DTVectorTable |
Definition at line 4 of file BSpline.cs.
BSpline.BSpline | ( | ) |
Definition at line 131 of file BSpline.cs.
References InitParameters().
BSpline.BSpline | ( | bool | t | ) |
Definition at line 135 of file BSpline.cs.
References InitParameters().
|
private |
Definition at line 95 of file BSpline.cs.
References BinomialCoef().
|
private |
Definition at line 87 of file BSpline.cs.
References Factorial().
Referenced by BersteinPol(), and DBersteinPol().
|
private |
Definition at line 203 of file BSpline.cs.
Referenced by EvalPoint().
|
private |
Definition at line 187 of file BSpline.cs.
Referenced by EvalPoint().
|
private |
Definition at line 220 of file BSpline.cs.
Referenced by EvalTangent().
|
private |
Definition at line 241 of file BSpline.cs.
Referenced by EvalTangent().
void BSpline.CopyCPoints | ( | int | n_source, |
int | n_dest | ||
) |
Definition at line 181 of file BSpline.cs.
Referenced by Ribbons.ConstructControlPoints().
|
private |
Definition at line 100 of file BSpline.cs.
References BinomialCoef().
void BSpline.Deval | ( | float | t, |
out Vector3 | d | ||
) |
Definition at line 286 of file BSpline.cs.
References EvalTangent().
Referenced by Ribbons.GenerateArrowRibbon(), and Ribbons.GenerateFlatRibbon().
|
private |
Definition at line 308 of file BSpline.cs.
References EvalTangent().
|
private |
Definition at line 313 of file BSpline.cs.
References EvalTangent().
|
private |
Definition at line 318 of file BSpline.cs.
References EvalTangent().
|
private |
Definition at line 257 of file BSpline.cs.
References BSplinePoint(), and BSplinePointI().
Referenced by Feval(), Feval2(), FevalX(), FevalY(), and FevalZ().
|
private |
Definition at line 264 of file BSpline.cs.
References BSplineTangent(), and BSplineTangentI().
Referenced by Deval(), DevalX(), DevalY(), and DevalZ().
|
private |
Definition at line 79 of file BSpline.cs.
Referenced by BinomialCoef().
void BSpline.Feval | ( | float | t, |
out Vector3 | p | ||
) |
Definition at line 271 of file BSpline.cs.
References EvalPoint().
Referenced by Ribbons.GenerateArrowRibbon(), Ribbons.GenerateFlatRibbon(), and Ribbons.GenerateSpline().
void BSpline.Feval2 | ( | float | t, |
out Vector3 | p | ||
) |
Definition at line 278 of file BSpline.cs.
References EvalPoint().
|
private |
Definition at line 293 of file BSpline.cs.
References EvalPoint().
|
private |
Definition at line 298 of file BSpline.cs.
References EvalPoint().
|
private |
Definition at line 303 of file BSpline.cs.
References EvalPoint().
void BSpline.GetCPoint | ( | int | n, |
out Vector3 | p | ||
) |
Definition at line 162 of file BSpline.cs.
Referenced by Ribbons.AddControlPoints(), and Ribbons.ConstructControlPoints().
|
private |
Definition at line 115 of file BSpline.cs.
Referenced by BSpline().
void BSpline.SetCPoint | ( | int | n, |
Vector3 | p | ||
) |
Definition at line 154 of file BSpline.cs.
References UpdateMatrix3().
Referenced by Ribbons.AddControlPoints(), and Ribbons.ConstructControlPoints().
void BSpline.ShiftBSplineCPoints | ( | ) |
Definition at line 170 of file BSpline.cs.
References UpdateMatrix3().
Referenced by Ribbons.ShiftControlPoints().
void BSpline.UpdateMatrix3 | ( | ) |
Definition at line 140 of file BSpline.cs.
Referenced by Ribbons.ConstructControlPoints(), SetCPoint(), and ShiftBSplineCPoints().
|
staticprivate |
Definition at line 29 of file BSpline.cs.
|
private |
Definition at line 8 of file BSpline.cs.
|
staticprivate |
Definition at line 20 of file BSpline.cs.
|
private |
Definition at line 15 of file BSpline.cs.
|
staticprivate |
Definition at line 64 of file BSpline.cs.
|
private |
Definition at line 11 of file BSpline.cs.
|
private |
Definition at line 14 of file BSpline.cs.
|
staticprivate |
Definition at line 5 of file BSpline.cs.
|
private |
Definition at line 18 of file BSpline.cs.
|
private |
Definition at line 18 of file BSpline.cs.
|
private |
Definition at line 15 of file BSpline.cs.
|
staticprivate |
Definition at line 44 of file BSpline.cs.