I have some code that generates a 'rounded stick' like object I use for
creating molecular stick models. The GeometryInfo class interests me and
looks like it could save me a lot of work. That is if I could get it to
work.

Case 1:

def createNormals(self):
 gi = GeometryInfo(GeometryInfo.TRIANGLE_ARRAY| LineArray.COLOR_3)
 gi.setCoordinates(self.verts)
 nm = NormalGenerator()
 nm.generateNormals(gi)
 si = Stripifier()
 si.stripify(gi)
 return gi.getGeometryArray(1,0,0)

Result:

java.lang.IllegalArgumentException: StripCounts inconsistent with primitive
at com.sun.j3d.utils.geometry.GeometryInfo.checkForBadData


Yet it works if I create a GeometryArray.TRIANGLE_ARRAY with the same data
it works.

Huh ?


Thanks for any help?

Chris

===========================================================================
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