Hi Artur,

When you are *retrieving* the IndexedGeometryArray from the
GeometryInfo, are you specifying the flag "USE_COORD_INDEX_ONLY"
as a parameter to geomInfo.getIndexedGeometryArray( flag..) ?
IIRC, it also takes other flags such as NIO, ByRef, etc.

If you're already aware of it, then please ignore.

What I did find though was that if you specified the COORD_INDEX_ONLY
flag while retrieving the IndexedGeometryArray, it takes a much
longer processing time than if you didn't. This is surprising since
the geometry would have already been converted to indexed triangles.

Don't know.....someone else probably does

Regards

Raj



>On Wed, 10 Apr 2002 20:38:17 +0200, Artur Biesiadowski <[EMAIL PROTECTED]> wrote:

>Is this possible to force GeometryInfo to output IndexedGeometryArray
>with USE_COORDINATE_INDEX_ONLY set ? I can use it to give only single
>array of indices to GeometryInfo, they are processed correctly, but on
>creation of IndexedGeometryArray this state seems to be lost.
>
>It seems that
>
>if (prim == POLYGON_ARRAY) {
>          if (tr == null) tr = new Triangulator();
>          tr.triangulate(this);
>       } else changeBackToOldPrim();
>
>always changes format to normal index. ChangeBackToOldPrim calls
>convertToIndexedTriangles() which in turns calls indexify() which means
>indexify(false) - and usecoordonly bit is cleared. IMHO
>indexify(coordOnly) should be called in convertToIndexedTriangles() to
>not loose state.
>
>Next problem is that compact does not compact identical
>vertex/normal/tex/color sets. Currently I do it by hand before passing
>data to GeometryInfo, but I suppose that most people are not aware of
>this problem. I also do not understand why USE_INDEX_COORD_ONLY
>geometries do not have to be compacted - it is perfectly legal for them
>to have unused entries also - if they were specified with coord_only
>from every start (as opposed to converted to this format later). I
>suppose that calling indexify(false) and then indexify(true) should have
>same effect, but this should be documented.
>
>
>Artur
>
> ==========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to