[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 !
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement