Goal:
- Enough with the spline curve points given automatically calculate it on and leaving curves of symmetric vectors.
- Nice arch to the point of the curve
- The given points, the curve
The following function implements this. Not perfect but a good approximation. If you improve it please send a patch:)) A similar example of calling a function:
var spline: Spline3D smoothspline = ([[0,0,0] [2,2,0] [3,1,0] [6,4,0]], 2, 2, 4, true);
S0 = 2: 1 vector points in the direction of the 0th point and the second point gives the direction. Size is the distance between D0.
Draw = 0 can not be drawn. A value of 1 indicates the points only, 2 if the vector is indicated.
Fixend = true if the last point is the vector of the local coordinate system of the 0th
An example can be found in parameters (random dots, 2, 3, 7, true)
Examples with Spline:
http://hgplsoft.com/test/2
http://hgplsoft.com/test/3
http://hgplsoft.com/test/4
http://hgplsoft.com/test/5/
Source:
Nincsenek megjegyzések:
Megjegyzés küldése