![]() |
|
#2
|
|||
|
|||
|
I think I have come up with a solution that I'll share here:
In addition to the window vector above, I am taking the point that the mouse pointer intersects with and the center of the bounding box, and making a vector using those two points. With that vector, I can figure out the angle between the window vector. Code:
winVec = viz.MainWindow.screenToWorld([0,5,0.5]).dir objAngle = [bbCenter[i] - objPoint[i] for i in range(len(objPoint))] viewAngle = Vector.cross(Vector.norm(objAngle), Vector.norm(winVec))
__________________
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble picking text3d objects | Salvar | Vizard | 4 | 12-01-2010 04:07 PM |
| static or dynamic objects | shahramy | Vizard | 2 | 11-10-2010 01:32 AM |
| Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 04:09 AM |
| Lightwave objects rotation problem | hosier | Vizard | 6 | 02-13-2009 01:04 PM |
| Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 12:01 PM |