
Tue, 09/27/2022 - 22:27
Forums:
I have recently upgraded from OCC 7.4.0 to 7.6.0. In the upgrade I have noticed that the text (X, Y, Z) on the Trihedron is missing. I have tried using the "simple" TriedronDisplay function as well as manually defining a V3d_Trihedron. The code I am using is below.
Is this a bug? Or is there some function I am not seeing in the documentation which I need to show the text.
Thanks in advance!
Attempt 1
myView->TriedronDisplay(Aspect_TOTP_LEFT_LOWER, Quantity_NOC_BLACK, 0.15, V3d_ZBUFFER);
Attempt 2
Handle(V3d_Trihedron) tri = myView->Trihedron();
tri->SetLabels("X", "Y", "Z");
tri->SetLabelsColor(Quantity_NOC_BLACK);
tri->SetScale(0.15);
tri->SetPosition(Aspect_TOTP_LEFT_LOWER);
tri->Display(myView);
Wed, 09/28/2022 - 11:13
If you don't see text labels in the viewer, then it is unable to load fonts on your system or OCCT has been built without font rendering capabilities (FreeType library dependency disabled). Make sure you've checked error messages coming from OCCT messenger (Message::DefaultMessenger()) which are redirected to std::cout by default.
Fri, 09/30/2022 - 17:15
Thank you! I checked my CMake setup and did not have USE_FREETYPE selected.