From: Chris Scharver (scharver++at++evl.uic.edu)
Date: 04/03/2001 11:33:10
Hello,
I am working on cloning a pfGeoSet (right now it's simply the
Inventor SGI logo file). I have obtained all the vertices for the
set and assigned them to the PFGS_COORD3 attribute. I increment
lengths to visually build the geometry. Initial geoset number of
primitives is one, and the initial length is 1. Here's the pseudocode:
primitive_count = 1
current_length = 1
for each step while primitive_count < source_primitive_count
if current_length <= source_lengths[primitive_count-1]
cloned_length[primitive_count-1] = current_length
cloned_ geoset->setPrimLengths( cloned_lengths )
increment current_length
else
increment primitive_count
cloned_ geoset->setNumPrims( primitive_count )
current_length = 1
This is within the main loop, so I can't do all this before Performer
starts to draw. I print out the geoset lengths array and primitive
count, and the values are correct. All vertices are correct as well,
but nothing is displayed. Binding is PFGS_NONE, and there are no
normals. However, the program hangs at pfSync() after reading
through 4 primitives. On different SGI machines it will read through
a different number of primitives. Another Impact will read through 9
primitives and always hang there even with the same file. There are
113 primitives, but all 1848 vertices are already placed in the
geoset. I can't trace through the debugger since the problem appears
to be somewhere in pfSync(). Any ideas?
Thanks,
Chris
-- __________________________________________________________________________ Chris Scharver Computer Science Graduate Student Electronic Visualization Laboratory EVL Phone: 312-996-3002 The University of Illinois at Chicago EVL FAX: 312-413-7585 1998-1999 UIC Men's Swimming and Diving http://www.evl.uic.edu/scharver/
This archive was generated by hypermail 2b29 : Tue Apr 03 2001 - 11:32:13 PDT