> Date:         Thu, 27 Feb 2003 09:14:34 +0700
> From: Andrew Davison <[EMAIL PROTECTED]>
> > Use setCoordRefDouble or setCoordRefFloat instead.
>
> In response to:
> > > I want to update my geometry using coordinates stored in a Point3f[]
> > > array. But in the GeometryArray docs, it says that setCoordRef3f()
> > > and getCoordRef3f() are deprecated. To be precise, it says:
> > > ...
>
> In fact, I've done that, but I'd like to use some structuring on
> my data instead of a big array of numbers.

Structure is nice, but it involves copying.  You can't send Point3f arrays to
the graphics hardware -- ideally it wants float arrays nicely interleaved with
positions, colors, normals, and textures.  The whole point of by-reference
semantics for GeometryArray is to avoid copying, so those methods were
deprecated to reduce some of the complexity of the by-reference API and its
implementation.

-- Mark Hood

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