pfdu

New Message Reply Date view Thread view Subject view Author view

Michael Boccara (boccara++at++MIT.EDU)
Mon, 01 Jun 1998 15:53:50 -0700


Hi,

I want to use collision detection algorithms and mass properties computation on
models loaded in Performer. The libs I'm about to use, I_COLLIDE and others,
take as an input a very simple 3D description file containing :
- 1 list of vertices
- 1 list of faces, defined by connections between the above vertices

>From a given pfNode (issued from pfdLoadFile) and all the underlying geosets, I
want to compute this simple set of information (vertices + faces), to be able to
pass the file to the I_COLLIDE routines. As a bonus I would like to remove all
the redundancies of vertices.

I guess that libpfdu can help me to achieve this, but I don't really know how to
use it.
Could any of you tell my the functions, structures and man pages I should check
to quickly find what I want ? A code example would be very appreciated...

The routine I'd like to write would look like this :

struct TFace
{
  int nverts; //let's say 3
  int vertIndices[nverts];
};

void
extractVerticesAndFaces(pfNode* input, pfVec3* verts, int& nverts,
                        TFace* faces, int& nfaces)
{
  an army of pfdu functions...
}

Thanks for your help.

Mike

PS: by the way I am (still) using Performer 2.1

-- 
Michael Boccara     Massachussets Institute of Technology
Visiting Scientist  Research Laboratory of Electronics
boccara++at++mit.edu     Virtual Environment Technologies for Training
 1-617-253 0005     50 Vassar Street - #36.219 - Cambridge, MA 02139
=======================================================================
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:57:30 PDT

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