From: Benedikt Kessler (bjk++at++munich.sgi.com)
Date: 11/04/2002 00:57:21
Hi!
I tried with my own tesselation function and (first) it did not change
anything (still 24 triangles using 72 vertices). Then I removed the
reference to the normals and voila: 5 strips with 34 vertices (18 5 4 4
and 3 vertices are the strip length). I've attachedthe modified pfa
file.
It looks like your normals prevent the building of the strips (I didn't
check any further).
Bye! Benedikt
Sakis Gaitatzes wrote:
>
> pfHello
>
> I load a pfb file with object = pfdLoadFile () and I use
> pfdExtractGraphTriangles (object, gset, PR_QUERY_TRI_COORD |
> PR_QUERY_TRI_TEXTURE | PR_QUERY_TRI_COLOR | PR_QUERY_TRI_NORMAL);
> to get a pfGeoSet that consists of PFGS_TRIS.
> Then I use pfdMeshGSet (gset) expecting that I would get back a pfGeoSet that
> consists of PFGS_TRISTRIPS.
> But I get back the same gset (PFGS_TRIS) and I am wondering why.
> Even when I extract only COORD | NORMAL from object, pfdMeshGSet does not do
> what I think it should do.
> Are there any rules in the use of pfdMeshGSet?
> I have read the source in pfdTMesher.c but the code is not very well documented
> and I could not understand the whole thing.
>
> Any help would be greatly appreciated.
> Is there another way to convert PFGS_TRIS to PFGS_TRISTRIPS?
>
> I am attaching a pfb that contains the gset that I cannot stripify.
>
> PS. I have also tried with indexed gsets and non-indexed gsets with no success.
-- +---------------------------------+----------------------------------+ |Benedikt J. Kessler | Silicon Graphics GmbH | |Professional Services | Am Hochacker 3 - Technopark | |SGI | 85630 Grasbrunn-Neukeferloh, FRG | | --- __o ,__o | | | ------_ \<,_ _-\_<, | Phone: (+49) 89 46108-366 or -0 | |----- (*)/ (*) (*)/'(*) | Fax: (+49) 89 46107-366 | +---------------------------------+----------------------------------+ |E-Mail: bjk++at++sgi.com Web (private): http://reality.exsgi.org/bjk | | Web: http://www.sgi.de | +--------------------------------------------------------------------+
0xdb0ace00 18 # header #---------------------- Length Lists 4 1 #---------------------- Length List 0 5 0 -1 18 5 4 4 3 #---------------------- Vertex Lists 5 1 #---------------------- Vertex List 0 34 0 -1 0.707 2.41324e-06 0.707 0 -1 3.41336e-06 1 0 0 0 -0.707002 -0.706998 0.707 -2.41324e-06 -0.707 0 -3.41336e-06 -1 0 0.706998 -0.707002 -0.707 -2.41324e-06 -0.707 -1 0 0 0 -1 3.41336e-06 0 -0.706998 0.707002 0.707 2.41324e-06 0.707 0 3.41336e-06 1 0 0.707002 0.706998 -0.707 2.41324e-06 0.707 0 1 -3.41336e-06 -1 0 0 0 0.706998 -0.707002 0.707 -2.41324e-06 -0.707 0 1 -3.41336e-06 1 0 0 0 0.707002 0.706998 0.707 2.41324e-06 0.707 0 -1 3.41336e-06 -0.707 -2.41324e-06 -0.707 0 -0.707002 -0.706998 0 -3.41336e-06 -1 0 3.41336e-06 1 -0.707 2.41324e-06 0.707 0 -0.706998 0.707002 -1 0 0 0 0.706998 -0.707002 0 1 -3.41336e-06 0.707 -2.41324e-06 -0.707 #---------------------- GeoStates 3 1 #---------------------- GeoState 0 -1 -1 #---------------------- GeoSets 10 1 #---------------------- GeoSet 0 1 5 0 2 0 -1 1 -1 -1 1 -1 -1 1 -1 -1 1 1 1 0 -1 0 0 -1 0xffffffff -1 2 -1 -1 -1 1 1 1 -1 -1 -1 0 0 0 0 -1 #---------------------- Nodes 12 1 #---------------------- Node 0 2 # Geode 1 0 # gsets 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 # user data 2 0 0 0 1.73205 NULL
This archive was generated by hypermail 2b29 : Mon Nov 04 2002 - 00:57:31 PST