Re:Euler angle conventions ???

New Message Reply Date view Thread view Subject view Author view

Takeshi Hashimoto (hasimoto++at++bach.iml.mkhar.sharp.co.jp)
Tue, 16 Nov 1993 11:10:13 +0900


I want subclass of pfDCS which uses x,y,z rotation,to use
datas of Polhemus or other CAD (like Softimage).

I made pfDCSRot2. It seems to work correctly.
But GL command is called directly in this function,
it may make trouble.

Please tell me the best way.

void pfDCSRot2(pfDCS *dcs,float argx,float argy,float argz)
{
  pfMatrix m;

  pfMakeIdentMat(m);
  pushmatrix();
  loadmatrix(m);
  pfGetDCSMatrix(dcs,m);
  translate(m[3][0],m[3][1],m[3][2]);
  rot(argz,'z');
  rot(argy,'y');
  rot(argx,'x');
  scale(pfLengthVec3(m[0]),pfLengthVec3(m[1]),pfLengthVec3(m[2]));
  getmatrix(m);
  popmatrix();
  pfDCSMatrix(dcs,m);
}

---
 //\\
 (O O)
  \o/	hasimoto++at++iml.mkhar.sharp.co.jp
  WOW

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:50:06 PDT

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