Chehayeb, Nassouh (nchehayeb++at++ceit.es)
Tue, 15 Apr 1997 19:33:58 +0200
this is an example code tha I use to get the node isect matrix In
the ISECT process.
/*_________________________________
|
|
| vrPoolIsect::preIsectFunc() |
|_________________________________|
*/
int vrPoolIsect::preIsectFunc(pfTraverser *trav, void *data)
{
pfMatrix mat;
vrPoolIsect *isect = (vrPoolIsect *)data;
if (!isect) return PFTRAV_CONT;
trav->getMat(mat);
isect->xformSegSet();
printf("%f %f %f\n", mat[0][0], mat[0][1], mat[0][2]);
printf("%f %f %f\n", mat[1][0], mat[1][1], mat[1][2]);
printf("%f %f %f\n", mat[2][0], mat[2][1], mat[2][2]);
printf("%f %f %f\n", mat[3][0], mat[3][1], mat[3][2]);
return PFTRAV_CONT;
}
The node used to set the traverser CB is a pfDCS with a changing matrix,
The result of printing is an Ident matrix instead of the dcs matrix at
ISECT time.
Am I making a mistake or its a Performer bug?
Nassouh Adel Chehayeb
C.E.I.T.
(Centro de Estudios e Investigaciones Tecnicas de Guipuzkoa)
Applied Mechanics Department
Paseo de Manuel Lardizabal - 15
20009. San Sebastian (SPAIN)
e-mail: nchehayeb++at++ceit.es
Phone: ++34-43-21.28.00
Fax : ++34-43-21.30.76
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:04 PDT