For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

2D Text in a 3D window

Anonymous's picture
Forums: 

Hi,
This is in continuation with my eariler question about displaying 2D text.
My OCC application has both 2D and 3D window.I want to display some text in the 3D window.Currentley, it is displayed only in 2D window and not in 3D. Is there a way to display a 2D text in the 3D window? I am using the ISession2D_Text class used in one of the samples.

Reagrds

Francois Lauzon's picture

Hello Amod,
yes you can, but you will have to build your own 3d text class, AIS_Text3D for example. That is what we did here. It is quite simple, just look at other AIS class to see how to do it, and use method like Prs3d_Text::Draw to draw the presentation.

Good Luck,
Francois.