I'm having problems setting the height of text in my 3D viewer. Here is the code:
gp_Pnt aPnt, OrigineDimZT(0,0,0);
Handle(Prs3d_Presentation) aPresentation= new Prs3d_Presentation(m_pAISContext->CurrentViewer()->Viewer(),Standard_True);
Handle(Prs3d_TextAspect) aTextAspect= new Prs3d_TextAspect();
I tried many different values in SetHeight method, but the text height is unchanged in the viewer. It really bothers me because it makes OC text functionality almost unusable.
In addition, the same behavior is seen when I use Visual3d_Layer to display text as an overlay in the viewer. The size of text can't be changed.
Is there any other way to display 2D and 3D text in 3D viewer?