jeromerobert/jCAE — pull request #4 by spirritus (2011-10-30 18:46:00+00:00)
Title: Splines for occJava

as the topic suggest, i did some work to support splines with occjava
for interpolation:
points is a double array wiht the coordinates [p1x,p1y,p1z,p2x,p2y,p2z,...]

tangents can be loaded
tangents is a double array with directions [v1x,v1y,v1z,v2x,v2y,v2z,...]
there has to be a tangent for each point, even if the tangent is not to be used
the tangent length does not matter because the set value method is used the following way:
SetValue(i,gp_Vec(gp_Dir(jarr[j],jarr[j+1],jarr[j+2])))
which makes all vectors unit vectors

tangentFlags is a double array, wether to use the tangent or not [0,1,...]
0 don't use tangent
1 use tangent
array size must be numberofpoints/3

i hope you consider this pull request worthy :-)