23 messages in com.googlegroups.sketchuprubyRe: 2D drafting ruby
FromSent OnAttachments
brichins06 Jun 2007 10:15 
TB06 Jun 2007 13:37 
brichins06 Jun 2007 14:34 
brichins06 Jun 2007 14:51 
TB06 Jun 2007 15:16 
TB06 Jun 2007 15:18 
RickW06 Jun 2007 16:58 
brichins07 Jun 2007 08:20 
brichins07 Jun 2007 08:20 
brichins07 Jun 2007 08:20 
brichins07 Jun 2007 08:21 
brichins07 Jun 2007 08:41 
brichins07 Jun 2007 09:05 
TB07 Jun 2007 13:56 
brichins07 Jun 2007 15:17 
brichins08 Jun 2007 09:00 
TB08 Jun 2007 09:20 
TB08 Jun 2007 09:22 
brichins08 Jun 2007 09:33 
brichins08 Jun 2007 10:30 
TB08 Jun 2007 10:51 
brichins08 Jun 2007 11:02 
TB08 Jun 2007 11:31 
Subject:Re: 2D drafting ruby
From:TB (mr.t@gmail.com)
Date:06/08/2007 09:20:01 AM
List:com.googlegroups.sketchupruby

On Jun 7, 5:18 pm, brichins <bria@gmail.com> wrote:

But which plane, at what distance from the camera?

Hey, this is your baby! You tell me! I would suspect that if you want to constrain drawing to a given plane, you would want to know what the plane is. Therefore, one technique you could use would be to pick a face (which always has at a minimum 3 points) to choose your plane. Otherwise, the user needs to tell you (through a series of mouse picks) where to form the virtual drawing plane.

Also, constraining drawing to 2D does not dictate that the camera vector be perpendicular to the plane.

As far as a distance... you have to pick that. Or, let the user pick it with a single left click, and you can use the camera's direction to derive your plane from that user-picked point (in which case the camera would be perpendicular to the plane).

I'll look at your code.

Todd