From: Juan Manuel Cappi (jcappi++at++sol.info.unlp.edu.ar)
Date: 04/14/2004 13:22:02
Hi,
a couple of months ago I started to use the Performer framework and
today I ran into something I don't understand and I guessed you could
help me. The code I'm using is:
pfBox box;
pfSphere sph;
pfBox *boxes[1];
pfVec3 pnt;
pnt[0]=-2;
pnt[1]=-2;
pnt[2]=-2;
pfBoxExtendByPt(&box,pnt);
pnt[0]=2;
pnt[1]=2;
pnt[2]=2;
pfBoxExtendByPt(&box,pnt);
boxes[0]=&box;
pfSphereAroundBoxes(&sph, (const pfBox **)&boxes, 1);
printf("%i\n" , pfSphereContainsBox(&sph,&box));
The thing is that the printf output is the number 3, but, as I
understand from the man pages, the result should be 7 (i.e., the box
is contained entirely inside the sphere). Am i wrong? Any help would
be appreciated.
Regards,
Juan
This archive was generated by hypermail 2b29 : Wed Apr 14 2004 - 13:15:08 PDT