error: it is an undeclared variable, but...I've declared!
I have the main procedure called shoppingMall ().
In this procedure I've defined the position of the boxes in world coordinates and after I call another procedure called getDistanceToClosestUV($xBase, $yBase, $zBase) that takes into account the coordenates of my boxes.
In getDistanceToClosestUV() procedure I've translated the coordenates of a nurbs surface in world coordinates as well and after I calculate the minimum distance from the coordinates of the nurbs surface to the coordinates of the boxes.
I have that $ac = getDistanceToClosestUV() and this procedure is returning me a variable that is the minimum distance
return $deltaY;
I have to use the $ac to play with some rules, and the program is telling me that $ac is an undeclared variable, when I'm calling other procedures that are depending on this variable.
I don't understand why!!
I'll send you the 2 main procedures: shoppingMall() and getDistanceToClosestUV() and I hope someone can help me,...
Thank you!