public static Rectangle3D getBoundingBox(double[] initialMatrix, SceneGraphComponent sgc) { BoundingBoxTraversal bt = new BoundingBoxTraversal(); if (initialMatrix != null) bt.setInitialMatrix(initialMatrix); bt.traverse(sgc); return bt.getBoundingBox(); }
BoundingBoxTraversal subContext() { if (reclaimableSubcontext != null) { reclaimableSubcontext.initializeFromParentContext(this); return reclaimableSubcontext; } else return reclaimableSubcontext = new BoundingBoxTraversal(this); }