Hi
I think I've discoverd this bug in java3d picking utils
(PickIntersection.java)
I would assume this is possible correct implementation of this method:
public GeometryArray getGeometryArray() {
if (geom == null) {
GeometryArray[] ga = pickResult.getGeometryArrays();
geom = ga[geomIndex];
}
if (geom instanceof IndexedGeometryArray) {
iGeom = (IndexedGeometryArray)geom;
}
int vertexFormat = geom.getVertexFormat();
hasColors = (0 != (vertexFormat &
(GeometryArray.COLOR_3 | GeometryArray.COLOR_4)));
hasNormals = (0 != (vertexFormat & GeometryArray.NORMALS));
hasTexCoords = (0 != (vertexFormat &
(GeometryArray.TEXTURE_COORDINATE_2 |
GeometryArray.TEXTURE_COORDINATE_3)));
return geom;
}
With the original implementation there is probably no way to get hasNormal and
other variables set to correct value.
What I would like to know is - how to replace this class without
replacing whole j3dutils.jar - is there a way for such thing ???
(I don't want to pass whole jar file with my application, and I really
need getPointNormal method working - so maybe somehow use just
PickInteresection path ??)
bye
Please could there be just updated .jar file on you web site downloadable
together with files for Sun & Windows
Also could we expect sources for j3dcore.jar in future - it would
definitely help a lot...
--
There are three types of people in the world:
those who can count, and those who can't.
Zdenek Kabelac http://i.am/kabi/ [EMAIL PROTECTED] {debian.org; fi.muni.cz}
===========================================================================
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".