how to transform window point to wcs point
how to transform window point to wcs point
hi,
i get a window (screen) point from a cview:

nlbuttonup function (with 3d viewpoint ) and i need the 3d wcs point (or the 2d projection point) corresponding to the received screen point.
i try with
void cdwgview:

nlbuttonup(uint nflags, cpoint point)
{
odgepoint3d wcspt((double) (point.x),(double) (point.y),0.0);
wcspt.transformby((pview->screenmatrix() * pview->projectionmatrix()).inverse());
wcspt.transformby(odabstractviewpeptr(pview)->eyetoworld(pview));
but it seems to be false
please help me
thanks
thanks,
laurent
the procedure you quoted works ok in our sample.
(the only addition - z coordinate is zeroed once more after tranforming from screen to eye plane. it rarely matters though)
vladimir
thanks for your answer, wladimir,
but the result point has unexplained values regarding to my dwg drawing...
so i probably forget something..
thanks,
laurent