WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 05-13-2009, 10:43 AM
lilio lilio is offline
Join Date: May 2009
Posts: 11
viz.vertex coordinates


I want to create a vertex at the mouseclick position, but I don't know how to do it.

If I create two vertex points:
line = viz.endlayer()
And afterthat I click with my mouse at these points and look at my output window:
print viz.mouse.getPosition()
Then I had to recognize, that there are absolutly different values.

The vertex are at [0,0,10] and [1,1,10] and my mouseposition shows [0.6,0.3] and [0.5,0.2]!

Are the vertex coordinates world coordinates? Or what means 0,0,10? And what are the mouseposition coordinates?

What's the reason for this difference. I want to create vertex at the mouseclick position.

Can anybody help me - please.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting object position in screen coordinates v-Salik Vizard 1 10-19-2007 03:41 PM
getPosition coordinates AlyssaK Vizard 4 01-18-2007 04:19 PM
Locating the Coordinates of Vertices for on the fly objects shivanangel Vizard 4 10-30-2006 08:28 PM
Translate HEAD_POS to absolute coordinates? vrhelp2004 Vizard 1 05-18-2004 04:53 PM

All times are GMT -7. The time now is 03:51 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC