odgematrix3d::converttolocal() unimplemented?
odgematrix3d::converttolocal() unimplemented?
i got link errors when trying to use the function odgematrix3d::converttolocal(). has this been implemented?
i am using dd libs version 1.14.02 for vc8.
this function has yet to be implemented.
untill next release/update you can insert into your code:
code:
odgematrix2d odgematrix3d::converttolocal(odgevector3d& vnormal, double& delevation) const
{
odgevector3d voldnormal = vnormal;
vnormal.transformby(*this).normalize();
odgematrix3d mocsxform3d(odgematrix3d::worldtoplane(vnormal) * (*this) *
odgematrix3d:

lanetoworld(voldnormal));
odgepoint3d ptelev(0., 0., delevation);
ptelev.transformby(mocsxform3d);
delevation = ptelev.z;
odgematrix2d mres;
mres[0][0] = mocsxform3d[0][0];
mres[0][1] = mocsxform3d[0][1];
mres[0][2] = ptelev.x;
mres[1][0] = mocsxform3d[1][0];
mres[1][1] = mocsxform3d[1][1];
mres[1][2] = ptelev.y;
return mres;
}
sergey slezkin