just my 2 cents: 1) reducing the the number of triangles per sphere 2) reduce number of TransformGroups by precalculating the real world positions of the vertices (if positions stay fixed) -> put them all in one Geometry object. 3) reuse the Geometry objects
Probably you cant't use the Sphere class of the utils package to make use of these suggestions. 4) use -Xmx option of the java VM to increase memory which will be used 5) put more memory into the machine regards Paul "Durga.Banda" schrieb: > Hi All, > > We are working on a tool to display macro-molecular structure. It sometimes > involve drawing thousands of sphere(for a ball & stick model). Because we > need to create those many TransformGroup and Sphere objects. It gives us a > OutOfMemory error. > > Is there any alternative way to create such a model? > > Any help or pointers will be highly appreciated > > Regards, > Ravi > > =========================================================================== > 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".
