Re: Intersections with lines and points under Performer?

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Fri, 27 Oct 1995 16:00:53 -0400


On Oct 27, 9:20am, Michael Jones wrote:
> Subject: Re: Intersections with lines and points under Performer?
>
> It's not in Performer 2.0, and is not scheduled for 3.0 but we
> could look at that. I have a question about the feature. Such
> intersections require the construction of a volume (cylinder or
> cone, parallelpiped or frustum) about the intersection ray that
> database objects are then classified against. The cylinder and
> cone (for ortho and perspective, resp.) style provides an "is
> there a point within an n-pixel circle" type of picking result,
> while the squarish volume gives picking within an NxN screen
> aligned square. Is one of these shapes more appropriate to your
> application than the other?
>

Maybe I should have been more specific. I was thinking about picking a point
or a line with the mouse using the pfChanPick function only. Not in the more
general sense of intersecting from anywhere in the database. Isn't that as
simple as converting the vertices present in the viewing frustum to screen
coordinates using the current viewing transformation and checking if the
resulting 2D coordinates fit within a tolerance rectangle or radius of the
mouse positions?

-- 
      ___/      |        ___/	Nicolas Gauvin		e-mail: nicolas++at++cae.ca
     /        / |       /	Software Developper 	voice: +1 514 341 2000
    /        /  |      __/	CAE Electronics Ltd.		extension 2275
   /        /   |     /		8585 Cote De Liesse	fax:   +1 514 340 5496
  /        ____ |    /		P.O. Box 1800
_____/   _/    _|  _____/	Saint-Laurent, Quebec, Canada, H4L-4X4

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:59 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.