addFallenLeaf(treeLeaf.getTreeLeaf3D());
}
}
private void addTree(Tree tree) {
Tree3D tree3D = tree.getTree3D();
Point3d treeOriginPoint = tree3D.getState().getTranslationVector().toPointValue();
Transform3D translation = TransformerHelper.getTranslationTransform3D(new Vector3d(treeOriginPoint));
TransformGroup transformGroup = new TransformGroup(translation);
BranchGroup treeBranchGroup = new BranchGroup();
treeBranchGroup.addChild(transformGroup);
transformGroup.addChild(tree3D.getBranchGroup());
addElement3D(treeBranchGroup);
}