glVertex
5.5.2
|
3D bezier path consisting of multiple bezier curves More...
#include <glvertex_bezier.h>
Inherits vector< lgl_BezierCurve3D >.
Public Member Functions | |
unsigned int | addPoint (vec3 p, bool align=true) |
add a point to the 3D bezier path More... | |
void | straighten () |
disable alignment for the last added point | |
void | close () |
close the 3D bezier path by reduplicating the first point | |
bool | closed () const |
is the 3D bezier path a closed path? | |
vec3 | start () |
start point | |
vec3 | end () |
end point | |
vec3 | evaluate (double w) const |
evaluate the 3D bezier path | |
vec3 | gradient (double w, int mode=0, double d=0.001) const |
evaluate the gradient of the 3D bezier path | |
double | length (int steps=100) const |
compute length of path | |
void | align (unsigned int index, vec2 direction, double factor=(sqrt(2.0) -1) *4/3) |
auto-align two consecutive control points of the 3D bezier path | |
void | alignLeft (vec3 direction, double factor=(sqrt(2.0) -1) *4/3) |
auto-align the left-most control point of the 3D bezier path | |
void | alignRight (vec3 direction, double factor=(sqrt(2.0) -1) *4/3) |
auto-align the right-most control point of the 3D bezier path | |
void | alignCurves (double factor=(sqrt(2.0) -1) *4/3) |
auto-align the curves of the 3D bezier path | |
void | translate (vec3 v) |
translate path | |
void | rotate (quat q) |
rotate path | |
void | scale (vec3 s) |
scale path | |
void | rotate (double angle, vec3 axis) |
rotate path | |
3D bezier path consisting of multiple bezier curves
|
inline |
add a point to the 3D bezier path