void AddSFRotation(float rotation[4]) { switch (GetCurrentNodeType()) { case VRML_NODETYPE_EXTRUSION_ORIENTATION: { ExtrusionNode *ex = (ExtrusionNode *)GetCurrentNodeObject(); ex->addOrientation(rotation); } break; case VRML_NODETYPE_INTERPOLATOR_KEYVALUE: switch (GetPrevNodeType()) { case VRML_NODETYPE_ORIENTATIONINTERPOLATOR: { OrientationInterpolatorNode *oriInterp = (OrientationInterpolatorNode *)GetCurrentNodeObject(); oriInterp->addKeyValue(rotation); } break; } } }
void CyberX3D::AddSFRotation(float rotation[4]) { switch (ParserGetCurrentNodeType()) { case VRML97_EXTRUSION_ORIENTATION: { ExtrusionNode *ex = (ExtrusionNode *)ParserGetCurrentNode(); ex->addOrientation(rotation); } break; case VRML97_INTERPOLATOR_KEYVALUE: switch (ParserGetParentNodeType()) { case VRML97_ORIENTATIONINTERPOLATOR: { OrientationInterpolatorNode *oriInterp = (OrientationInterpolatorNode *)ParserGetCurrentNode(); oriInterp->addKeyValue(rotation); } break; } } }