Menu

Saving memory in ViewableFE class in viewer3d

Developers
2007-10-13
2013-04-01
  • Nobody/Anonymous

    Hi folks,

    while looking through the release notes of java3d for storing geometry in a memory efficient way, i've found a usefull method:
    The site http://jcp.org/aboutJava/communityprocess/maintenance/jsr926/ChangeLog-1_5.html#By_Ref_Indices points to the methods
        public void setCoordIndicesRef(int coordIndices[])
        public int[] getCoordIndicesRef()
    in the IndexedGeometryArray class.
    Those methods are introduced in Java3D 1.5.0 and improve the setCoordIndices method by avoiding the creation of a memory consuming copy of the indices array.
    This may save some memory in the ViewableFE class of the viewer3d package (and maybe on other classes too).

    Regards,
    Jens

     

Log in to post a comment.

MongoDB Logo MongoDB