Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
To my knowledge, and having referred to your knowledgebase and class library, there is no obvious way of getting the vertices of a UIElement3D object. I am in real need of doing this, so that I can calculate the relative zoom factor. Even better for me if there is any way of getting the zoom scale factor when drawing a UIElement3D on screen

Getting the zoom factor is crucial for me, I need to interpret the display ratio of 3D objects to their actual movements (robotics).
Posted
Updated 1-Apr-13 5:45am
v2
Comments
Sergey Alexandrovich Kryukov 1-Apr-13 13:20pm    
Why? the graphics is well abstracted from pixels. Your question may mean that you want to overlay some pixel-based graphics onto 3D. If so why? What's the goal of it?
—SA
Andreas Papagiannakis 2-Apr-13 2:35am    
I have (1) a 3D model of a robotic arm and (2) a target object. The real dimensions of the target object are known. I need to translate the movement of the 3D model arm to real movement of the robotic arm. This is why I need either the zoom ratio or the Point3D of each of the vertices of the target object, to calculate the zoom ratio myself. Knowing the zoom ratio then it will be easy for me to translate the movements in the 3D world to movements in real world.

In other words, If I can get in a way one Point3D of each UIElement3D my problem can be solved.
Sergey Alexandrovich Kryukov 5-Apr-13 0:32am    
You are translating model to robotic motion, not graphics to robotic motion. In model, there is no zoom, Point3D, pixel locations, etc. Your source is data model, your two target is robot commands and rendered graphics. If you are doing it on some other way, you are doing it wrong.

By the way, to reply, use reply on top left, otherwise I won't get notification on your post.
—SA

1 solution

This is what you have to do: Robotic Motion <--> Geometry Model --> On-screen Presentation.
You need to exclude this: On-screen Presentation --> (anything).

This will eliminate your rather artificial problem.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900