// ShapeNodeJava3D
shape3d.setUserData(this);
// scale the shape to have a reasonable size
// and translate it to the origin
Bounds bounds = transformGroup.getBounds();
if (bounds instanceof BoundingSphere) {
Point3d center = new Point3d();
((BoundingSphere)bounds).getCenter(center);
Transform3D tr = new Transform3D();
tr.setScale(10.0/((BoundingSphere)bounds).getRadius());