我已经开始使用 openinventor。我在查看器中有一个 socube。我想检查一下 socube 是否在镜头前。因此,当我将立方体移动到远离相机视图的某个地方时,值应该是错误的。
SoSeparator root = new SoSeparator();
SoMaterial Material = new SoMaterial();
Material.diffuseColor.SetValue(1.0f, 0.0f, 0.0f); // Red
root.AddChild(Material);
root.AddChild(new SoCone());
viewer = new SoWinExaminerViewer(this);
viewer.SetTitle("Example 1.1 .NET");
viewer.SetSceneGraph(root);
viewer.ViewAll();
现在我想添加一个行为,比如如果我将锥体从相机移开,它会返回 false