I modified it using the following code and it didn’t work,
view.GetNavigationCubeControl().GetSegmentKey().GetMaterialMappingControl().SetFaceColor(cubeColor)
Hello @Rui.Zhang03 ,
To change the face colors/style of the nav cube, you’ll want to define a material palette and then apply that material pallette using the following function:
myView.GetNavigationCubeControl().SetMaterialPalette(“my_material”);
For a full code example for how to do this please see this documentation: View Hierarchy — HOOPS Visualize HPS 2023 SP2 U2 Documentation
You’ll also find a code sample for changing the text on the faces of the cube.
Hope this helps.
– Rob
1 Like