I tried to use MouseSelectNotify to locate the mouse pointer location in x,y,z and the unit looks confused to me. Would someone here please explain the unit of these values of x,y,z
#CODE|Mouse Coordinates To Drawing Sheet Coordinates
Thank you, Amen
Your help is appreciated !
What is the best way to locate a point in model view (x,y,z) using mouse event?
MouseSelectNotify seems to be a good one (x,y,z coordinates); however, the user has to select something to get a point.
while the MouseMove only provides x and y
What I really want is any point (x,y,z) in model view
Don't you get a zee value when you apply the model view's transform when the move moves? MouseMove will only give you the coordinates of the mouse in the window space.
it's what I said
X, Y because they are screen coordinates. Try X, Y, 0 and see if you get a correct Z value.
IF you set z = 0, how to get the correct z value?
Because you are going to apply a transform to that point. I having tried that by the way.
How the heck would you get a z value from a mouse move? The cursor only moves in 2 dimensions. You can get a Z from selection because there's something there in the model to provide depth. What would you expect the Z value to be when the cursor is just moving around the window?
I'm wrong about the transform. It doesn't work.
Thanks for confirming this
How the heck would you get a z value from a mouse move?
what part of the thread I said I'd get a "z value from a mouse move"? I was just confused about the reply from Amen
You have an infinite number of Z coordinates under any given x,y location. Depending on what you are actually trying to accomplish, you may want to look at ModelDoc2::RayIntersections and ModelDoc2::GetRayIntersectionsPoints.
Thanks, Jim. I'll look into it
Retrieving data ...