Hello Michael,
thank you for the Information. I tried to use the pts-array instead of a new one, but the Loop "for ( var n = 0; n < (pts.length-2); ++n )" seems not to be processed. If I replace the expression pts.length with a fixed value I got an error-message in the line
"cp=csp(pts[n].x,pts[n].y,pts[n].z,pts[n+1].x,pts[n+1].y,pts[n+1].z,pts[n+2].x,pts[n+2].y,pts[n+2].z);" that the object "pts[n+1]" does not exist. It seems that the array is empty??? Any ideas!
Thank you very much!
Karsten
|