No. Sean
> -----Original Message----- > From: Zak Nixon [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 1:48 PM > To: [EMAIL PROTECTED] > Subject: Re: [JAVA3D] Changing a by-ref coordinate array > > > Does the unused coordinate positions in the array have to be > filled with > obsolete coordinates if they are outside of the bounds of the > setStripVertexCounts(...)? > > Zak > ----- Original Message ----- > From: "Sean Sylvis" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 23, 2003 1:02 PM > Subject: Re: [JAVA3D] Changing a by-ref coordinate array > > > First of all, make sure you have set all of the necessary > capabilities. > > I don't think you can resize the total, allowable vertex > count of the strip > array. But, if you make the initial geometry array large > enough (i.e. set to > a known maximum) at construction, you can then use > setStripVertexCounts to > set the current valid strip counts. > > Sean > > > -----Original Message----- > > From: Brad Christiansen [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, January 22, 2003 10:20 PM > > To: [EMAIL PROTECTED] > > Subject: [JAVA3D] Changing a by-ref coordinate array > > > > > > Hi, > > > > I am creating a line using a LineStripArray in by-ref mode. > > If the number of points(*3) in the line exceed the size of my > > coordinate array then i need to set a new coordinate array > > with a new (larger) size. When I am doing this the vertex count is > > not increasing. > > > > Basicaly the problem I am having is this: > > Calling lineArray.setCoordRefFloat(coordinates) is not > > changnig the vertex count when a different sized array is set. The > > following code: > > > > System.out.println("Before changing ref coord array vertex > > count is: " + lineArray.getVertexCount()); > > coordinates = new float[54]; > > lineArray.setCoordRefFloat(coordinates); > > System.out.println("After changing ref coord array vertex > > count is: " + lineArray.getVertexCount()); > > > > generates the following output: > > > > Before changing ref coord array vertex count is: 6 > > After changing ref coord array vertex count is: 6 > > > > Then when I call: lineArray.setStripVertexCounts(new int[] > > {54/3}) I get the following exception: > > > > ava.lang.IllegalArgumentException: GeometryStripArray: > > initial vertex index + valid vertex count > vertex count > > .... > > .. > > > > I can find no method of getting the LineStripArray to relaise > > it now has a much bigger coordinate array. Is this possible? If > > not, is there anyway to achieve what I want without either > > hard coding the max number of points in my line or throwing away the > > old LineStrip and creating a new one when I need to grow my array? > > > > Cheers, > > > > Brad > > > > > > -------------------------------------------------------------- > > -------------- > > This Email may contain confidential and/or privileged > > information and is > > intended solely for the addressee(s) named. If you have > received this > > information in error, or are advised that you have been > > posted this Email by > > accident, please notify the sender by return Email, do not > > redistribute it, > > delete the Email and keep no copies. > > -------------------------------------------------------------- > > -------------- > > > > ============================================================== > > ============= > > 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". > > ============================================================== > ============= > 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".
