[ruby doc] View.corner (bar?)
-
Hi !
In the doc, (view.corner index) returns a point3D. In reality it returns a point in pixels.
Any solution to convert it in a 3D point ???Thank you !
-
Not offhand, but I did update the docs at http://groups.google.com/group/SketchUp-Plugins-Dev/web/
EDIT: Perhaps using a pick helper?
-
Hi,
I suggest you take the 2D point in pixels and use view.pixel_to_model to get the point in 3D where the corner of the viewport is, according to the current viewpoint.
(Not tested myself, just a though).
Salut Matt,EDIT: forget it, use pickray instead:
"The pickray method is used to retrieve a ray passing through a given screen position in the viewing direction."
-
Ok, thank you !
It's so hard to play with screen dimension in SU... But I headed for solution !Thank you all !
Advertisement