Paul Pantera wrote:
> There was something in your original post that puzzled me:
[snip]
> Why not use the NormalGenerator on custom geometry?
A speed and convenience issue. I really don't like the way
NormalGenerator and GeometryInfo work when having to build a lot of
models very quickly. In the j3d.org codebase, I'm trying to offer a
low-cost solution to the same problem and to strip the library to be as
minimal as possible on the usage of the Sun util's code. The one place
where I cannot avoid it is the Loader interface, but the rest I can and
do live without.
Also, with a lot of the geometry types that I'm building, it's faster to
calculate the normals in-place than to throw it out to a "3rd party"
library. I've got complex geometry types like SuperToroids and
SuperElipsoids there that are doing a lot of math in place. With a lot
of pre-calculated results on hand, it gets a heap faster generation
time. Rough guess (I haven't profiled this yet) is 50% faster that
building points and passing it to the triangulator and normal generator.
--
Justin Couch http://www.vlc.com.au/~justin/
Freelance Java Consultant http://www.yumetech.com/
Author, Java 3D FAQ Maintainer http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
- Greg Bear, Slant
-------------------------------------------------------------------
===========================================================================
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".