Re: [info-performer] Traversing database

Date view Thread view Subject view Author view

From: Allan Schaffer (allan++at++sgi.com)
Date: 04/15/2004 07:51:23


Hi Rajesh,

Mr. Rajesh R wrote:
> How to traverse a pfb Database tree and get various informations such as
> coordinates, texture etc. In my db model, I have textured house, I want
> get the textured information in a Texture pointer. Further I want to
> delete the texture and add a new texture.

Have a look at "man pfuTraverser"; and the functions like pfuTravPrintNodes
in /usr/share/Performer/src/lib/libpfutil/trav.c.

In fact pfuTravPrintNodes (and its callback, cbPrintNodeInfo) print the
colors, normals, & texture data so you should be able to easily modify this
for your needs.

-- 
Allan Schaffer                                            allan++at++sgi.com
Engr. Manager, Core Rendering                            1-650-933-2160
Silicon Graphics                                     http://www.sgi.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Apr 15 2004 - 07:51:33 PDT