Stretching a DCS

New Message Reply Date view Thread view Subject view Author view

Dorrie Hall (dorrie++at++beamish.mit.edu)
Thu, 11 Jan 1996 17:18:14 -0500


>I need to do a non-uniform scale on an object. The pfDCSScale will only
>scale uniformly, and I cannot create a stretch matrix with pfMakeScaleMat and
>pass it to pfDCSMat because pfDCSMat will only take matrices with uniform
>scale.
        It seems like you should be able to create any arbitrary
   4X4 matrix and apply it to to a DCS. Here is an example of scaling
   with different values for x,y + z.

         pfMakeRotMat(rot_matrix,z_rotation,0,0,1.0f);
         pfMakeScaleMat(scale_matrix, xfactor, yfactor, zfactor);
        pfPostMultMat(scale_matrix,rot_matrix);
        pfSetMatRowVec3(scale_matrix,3,translationvector);
        pfDCSMat(DCS,scale_matrix);


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:52:15 PDT

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