Re: Intersection

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose.asd.sgi.com)
Mon, 29 Apr 1996 20:50:12 -0700


+>---- On Feb 17, 11:25am, Ulrich J Lechner wrote:
> Subject: Intersection
->From guest++at++holodeck.asd.sgi.com Sat Feb 17 12:52:50 1996
->
->Hi Performers!
->
->I would like to intersect my scene (on PFTRAV_IS_GEODE or PFTRAV_IS_GSET level)
->with a simple cylinder or a box. What is the standard way to do this?
->I tried to use a pfSegSet without any lines, a bounding cylinder and
->a discriminator function (see pguide 186)
->Result: My disc function is never called. I guess it is because of a missing
->line segment. Did I do something wrong or is there another way to
->test any object against a node. Do I have to use pfSphereContainsSphere
->to test against every bounding volume for every node?

We only do segment intersections and we call the discriminator function
if there are actual active segments with length > 0.
However, you could do an initial test of your own in the a
pre-isect callback on the node that should get called for
all nodes traversed, even with an empty segment set.

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

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:52:49 PDT

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