5 wichtige Nodes und wie sie in C++ initialisiert werden



SoSeparator

SoSeparator *root = new SoSeparator;


SoCube und SoSphere

SoCube *mycube = new SoCube;
mycube->width = 1.5;
mycube->height = 2.7;
mycube->depth = 2.1;

SoSphere *mysphere = new SoSphere;
mysphere->radius = 0.9;


SoMaterial

SoMaterial *myblue = new SoMaterial;
myblue->diffuseColor.setValue(0.0, 0.05, 0.9);


SoTransform

SoTransform *mytrans = new SoTransform;
mytrans->translation.setValue(1.2, 0, 2.8);

mytrans->rotation.setValue(SbVec3f(0 1 0), 1.57);