Public Member Functions | |
void | get (CVector &a, CVector &b, CVector &c, CVector &d) |
void | set (const CVector &a, const CVector &b, const CVector &c, const CVector &d) |
void | subdivide (CBezierCurve &left, CBezierCurve &right, float t) |
Data Fields | |
CVector | P0 |
CVector | P1 |
CVector | P2 |
CVector | P3 |
|
Definition at line 130 of file bezier_patch.h. References P0, P1, P2, and P3. Referenced by NL3D::CBezierPatch::subdivideS(), and NL3D::CBezierPatch::subdivideT().
|
|
Definition at line 126 of file bezier_patch.h. References P0, P1, P2, and P3. Referenced by NL3D::CBezierPatch::subdivideS(), and NL3D::CBezierPatch::subdivideT().
|
|
Definition at line 371 of file bezier_patch.cpp. References P0, P1, P2, P3, and t. Referenced by NL3D::CBezierPatch::subdivideS(), and NL3D::CBezierPatch::subdivideT().
00372 { 00373 float t1= 1-t; 00374 00375 // Subdivide the 2 curves. 00376 left.P0= P0; 00377 right.P3= P3; 00378 00379 left.P1= t1*P0 + t*P1; 00380 right.P2= t1*P2 + t*P3; 00381 CVector middle12= t1*P1 + t*P2; 00382 00383 left.P2= t1*left.P1 + t*middle12; 00384 right.P1= t1*middle12 + t*right.P2; 00385 00386 left.P3= right.P0= t1*left.P2 + t*right.P1; 00387 } |
|
Definition at line 124 of file bezier_patch.h. Referenced by get(), set(), and subdivide(). |
|
Definition at line 124 of file bezier_patch.h. Referenced by get(), set(), and subdivide(). |
|
Definition at line 124 of file bezier_patch.h. Referenced by get(), set(), and subdivide(). |
|
Definition at line 124 of file bezier_patch.h. Referenced by get(), set(), and subdivide(). |