|
|
Hello,
I have an old MegaPov 1.21 code :
93 : #macro lineEquation (rIndex, lIndex, pA, pB)
94 : #local det = pA.x-pB.x;
95 : #if(det=0)
96 : // #error
97 : #local sidesLines[rIndex][lIndex] = <0,0,1>;
98 : #else
99 : #local det_a = pA.z-pB.z;
100 : #local det_b = (pA.x*pB.z)-(pA.z*pB.x);
101 : #declare sidesLines[rIndex][lIndex] = <det_a/det,det_b/det, 0>;
102 : #end
103 : #end
Parse with PovRay 3.7 i get this error :
Line 99 : Bad operands for period operator.
For me, line #94 and #99 are similar, and no error for line 94.
I would also like to specify that the parameters of the macro are :
scalar, scalar, point, point.
Going Crazy!
--
Kurtz le pirate
Compagnie de la Banquise
Post a reply to this message
|
|