KeyOrientation::KeyOrientation(ArCW& arCW, ArRef<C3DOF> c3dof) : Object3D(arCW), _c3dof(c3dof) { attachTo(_c3dof); // ArRef<Material3D> mat = new_Material3D(); ArRef<Material3D> mat = Material3D::NEW(); mat->setDiffuseColor(0.0, 0.2, 0.8); // _sphere = new_Sphere3D(); _sphere = Sphere3D::NEW(); _sphere->setRadius(0.2); _sphere->writeMaterial(mat); // ArRef<Shape3D> sh = new_Shape3D(); ArRef<Shape3D> sh = Shape3D::NEW(); sh->addRootPart(_sphere); setShape(sh); }