Re: Intersection testing

New Message Reply Date view Thread view Subject view Author view

From: Angus Dorbie (dorbie++at++sgi.com)
Date: 02/14/2001 12:06:47


Looks like I was wrong the hit array is for multiple segments (as you
suggest).

Looks like you'd need to use callback to get access to all the segments.

Cheers,ANgus.

Boris Mansencal wrote:
>
> Angus Dorbie wrote:
> >
> > Boris Mansencal wrote:
> > >
> > > Hi,
> > >
> > > I would like to get all the geometries intersected by a segment.
> > > It is not possible with pfNode::isect(pfSegSet *segSet, pfHit **hits[],
> > > isn't it ?
> > >
> >
> > It is possible.
> >
> > > So, why do we need to give a pfHit **[] and not only a pfHit *[] if we
> > > get only
> > > one intersection point by segment ?
> >
> > Because it's possible :-)
> >
>
> So, as isect returns n the number of intersections, I will have n pfHit*
> from hits[0], right ?
> Is it still working with several segments ? How do I know the number of
> intersections for a given segment ?
>
> Thanks again.
>
> Boris.
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
For Performer+OpenGL tutorials http://www.dorbie.com/

"In the middle of difficulty lies opportunity." --Albert Einstein


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Feb 14 2001 - 12:07:20 PST

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