Re: Intersections

New Message Reply Date view Thread view Subject view Author view

Scott McMillan (scott++at++ht.com)
Tue, 12 Aug 1997 10:19:02 -0400 (EDT)


Forwarded message from Angus Dorbie -----
> On Aug 11, 4:22pm, Nicolas Gauvin wrote:
> > Subject: Re: Intersections
> > On Aug 11, 12:44pm, John Sunderland wrote:
> > > Subject: Intersections
> > >
> > > HitNum = ModelsParentDCSNode->isect(&Isegset, Result);
> > > pfNotify(PFNFY_NOTICE, PFNFY_PRINT, "Got %d hits from Isectors",
> > > HitNum);
> > > }
> > >
> > > The problem I am having is that the isect call always returns 0 (i.e. in
> > > the above code HitNum = 0 ). Has anyone got any ideas as to what I am
> > > doing wrong? Your help will be much appreciated.
> >
> > I encountered the same problem not long ago. I believe it might be a bug
> > in Performer when we request a pfNode::isect on a segset containing
> > more than one segment (your case).
> >
> > For a quick fix, try replacing your single isect call with multiple isect
> > calls with a segset containing a single segment at a time. It worked for
> > me.
> > I'll try to write a small test case of this problem for the Performer team.
> >
>
> If this is the problem then it's already fixed in the 2.2 beta.
>
> I have used multiple segs isectors without problems in 2.2.
>
> Cheers,Angus.

I was successful in using multiple segs way back in 2.0 (no patches) but I
was allocating an array of 32 pfHit** even when I only had 4 or 5 segs.
Don't know if this has anything to do with my success, though.

Just my $0.02,
scott

-- 
  Scott McMillan  |    HT Medical, Inc.   | Developing medical VE's
   scott++at++ht.com   |   http://www.ht.com   | surgical simulations
 Ph: 301-984-3706 |6001 Montrose Rd., #902| and surgery simulation
Fax: 301-984-2104 |  Rockville, MD 20852  | creation tools.
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

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:55:43 PDT

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