Garbage reclaiming and solving method in Java3D

Three-dimensional scene constructed by Java3D takes up a lot of memory,which may lead to the memory overflow.It is necessary to reclaim the Java3D garbage after modifying the scene.However,the garbage reclaiming mechanism can not directly act on the Java3D object.Thus,two effective methods for garbage reclaiming of Java3D object were designed.The garbage reclaiming of Java3D object for whole scene and single branch is realized respectively.The experiments show that this method can release the memory possessed by Java3D object in time and avoid the memory overflow.The method solves the inadequate garbage reclaiming problem of Java object.