On Fri, 5 Dec 2003 10:35:38 +0100, Michael Pfeiffer <[EMAIL PROTECTED]> wrote:
It looks like there is a inconsistency within your vertices-array self.verts (e.g. a triangle which consists only of three points).
Sorry, I meant a triangle which consists only of TWO points, not three ;-)
Yet how can GeometryArray load the same data. I set the triangle myself so I am pretty sure that they are multiples of three.
But by the way, why don't you use a Cylinder for this kind of "rounded stick"?
Ends match nicely
On Fri, 5 Dec 2003 02:19:39 -0700, Chris Fenton <[EMAIL PROTECTED]> wrote:
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".
-- http://java3d.virtualworlds.de http://www.3dchat.org - Welcome to the unreal world!
=========================================================================== 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".
-- http://java3d.virtualworlds.de http://www.3dchat.org - Welcome to the unreal world!
=========================================================================== 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".