dnf install Inventor-devel InventorXt-devel Inventor-data Inventor-examples Inventor-demos zkopirovat /usr/lib64/Inventor/examples adresar example/Mentor/CXX make ./02.1.HelloCone #include #include #include #include SoMaterial *myMaterial = new SoMaterial; myMaterial->diffuseColor.setValue(1.0, 0.0, 0.0); root->addChild(myMaterial); // This transformation is modified to rotate the cone SoRotationXYZ *myRotXYZ = new SoRotationXYZ; myRotXYZ->axis = SoRotationXYZ::Z; myRotXYZ->angle = 3.14 / 4; root->addChild(myRotXYZ); root->addChild(new SoCone); SoMaterial *myMaterial2 = new SoMaterial; myMaterial2->diffuseColor.setValue(0.0, 0.0, 1.0); root->addChild(myMaterial2); root->addChild(new SoTrackballManip); SoCube * c = new SoCube; c->height = 0.2; root->addChild(c); SoElapsedTime *myCounter = new SoElapsedTime; myRotXYZ->angle.connectFrom(&myCounter->timeOut); make 02.4.Examiner && ./02.4.Examiner