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".

Reply via email to