How are these nodes applied to the geometry.

New Message Reply Date view Thread view Subject view Author view

Brian Furtaw (brian++at++sgi.com)
Tue, 22 Oct 1996 17:57:50 -0400


A branch of my scene database looks like this,

pfGroup
/ | \
|
  pfSCS
|
|
  pfDCS
|
|
  pfGeode

how are the SCS and DCS applied to the geometry? I am trying to recreate this
myself using a couple pfMatrix to attach something to the pfGeode. I do this

    pfMatrix cableMat, tMat, ptMat;

            DCS[3]->getMat(tMat);
            // scale from inches to feet
            SCS[3]->getMat(cableMat);
            cableMat.preMult(tMat);
            ptMat.makeTrans(cableSpace[PF_X], cableSpace[PF_Y],
                                                cableSpace[PF_Z]);
            cableMat.preMult(ptMat);
            cablecoords[cab].fullXformPt(cablecoords[cab], cableMat);

The ptMat was added to move the attachment point to somewhere other then the
pfGeode's origin.

Thanks,

Brian

-- 
o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o

Brian Furtaw (brian++at++sgi.com) VisSim/Graphics Technical Consultant Office: (301) 572-3293 12200-G Plum Orchard Drive Silver Spring, Maryland 20904 Fax: (301) 872-3293 ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:47 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.