PDA

View Full Version : angle broken in lw9.6?



Svenart
07-30-2009, 02:16 PM
Hello,

Im trying to use the angle command in lscript, but it seems that the results are not right. Am I doing it wrong, or is the angle command broken in lw9.6?

I opened modeler, created 2 points and startet this script:

@version 2.6
@warnings
@script modeler
@name angle

main
{

editbegin();
pnt1 = pointinfo(points[1]);
pnt2 = pointinfo(points[2]);
editend();
info(angle(pnt1,pnt2,Y),"degrees");

}


somtimes the result seems ok but often the result makes no sense to me...

btw.. it seems that the angle tool in modeler also is broken? It nearly always gives me 0 degree as result..

dpont
07-30-2009, 03:17 PM
With <0,0,-1> and <1,0,0> points,
result here is 90 degrees in LW 9.6,
angle measured with default zero center.

Denis.