Units of Prs3d_TextAspect::SetHeight() function

Hi everybody,

does anyone know which kind of unit the parameter aHeight of the function Prs3d_TextAspect::SetHeight() takes. I wasn't able to find the answer to this question within the help or *.cdl files.

Thanks for your help,

Sven

Sven Jungnickel's picture

I finally found the solution by myself.

Somwhere really deep in the OCC Library... (to be more specific in the Graphic3d_Group.cdl file)

In principle the text displayed with Prs3d_Text::Draw method is written in the plane of projection. The height attribute therefore specifies the height of the text in normalized projection coordinates.

Hope this will help someone in the future.

Arno Hofmann's picture

Hello Sven,

"The height attribute therefore specifies the height of the text in normalized projection coordinates."
What does that exactly mean?

Do you have an code example? I want to draw a text with a height of 10mm. How I have to do the calculation therefore?

Kind regards

Arno

Arno Hofmann's picture

Hi all,

could anybody else give a solution for my question about the text height unit?

Kind regards

Arno