Forum archiveIssue archiveOther usage issues

Archived discussion

Another stranger question

Other usage issuesThu, 04/07/2005 - 12:081 reply

Browse this forum
QuestionAuthor

We need to display texts, but we are not using OCAF. Quite an obvious solution would be to descend from TopoDS_TShape and TopoDS_Shape. Than it would be very easy to store it in our datastruct, and draw it in our way.

The question is that, is it a very unusual solution? And how would OCC's alorithms react to this "alien" class ? Has anyone tried it before?

Thanks.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

If you need to display text in an OCC viewer, you could simply create your own AIS_InteractiveObject (AIS_Text3D for example). We did that by redefining the Compute method and using the Prs3d_Text::Draw method.

Good luck,
Commenter-1.