A Prs3d_TextAspect Question

Hello everyone,

I have the following code,and it works fine.butthe aTextAspect->SetAngle(PI/2); doesn't look like work. the Angle of the text doesn't change. can anyone provide help if you know what is going on?

many thanks!

Handle(Prs3d_Presentation) aPresentation= new Prs3d_Presentation(myAISContext->CurrentViewer()->Viewer());
Handle() aTextAspect= new Prs3d_TextAspect();
aTextAspect->SetFont(Graphic3d_NOF_ASCII_COMPLEX);
aTextAspect->SetHeight(12);
aTextAspect->SetColor(Quantity_NOC_GREEN);
aTextAspect->SetAngle(PI/2);
Prs3d_Text::Draw(aPresentation,aTextAspect,aTCoText, p);
aPresentation->Display();

Denis TEISSANDIER's picture

I have the same problem.
I have already posted a message on the forum on this subject two years ago. This problem was detected on OCC31.

I have noticed this problem occured on Linux (Mandrake 8.2) and Solaris (Solaris 2.6).

DT

Francois Lauzon's picture

If you have at look at the source code, you will see that at the lower level, the text angle is not implemented. The function call_togl_text build a vector for the text direction up_vect, and then later a call to call_func_set_anno_char_up_vec (up_vect); is made, but this function is unimplemented.

Francois.

Arno Hofmann's picture

Hello Howard,

how did you solve it? I have the same problem, the SetAngle method does not work.
Do you have a workaround?

Would be great to get an answer from you.

Kind regards

Arno