|> I am having a problem using the Text2 class in Inventor (which I think
|> is a great toolkit, by the way).
|> It seems that I can always pick the text, no matter what its position.
|> However, the text's bounding box is of a fixed size, often in a
|> weird orientation, and doesn't always "enclose" the text. So clicking
|> on the same point that selected the text doesn't always select a
|> manipulator that is attached to it, especially if the text is far away.
|> Also, if the text is really close, it is hard to deselect it.
|> So does Text2 override SoPickAction? Does it have it's own bounding
|> box which corresponds more closely to the appearance of the text?
|> If so, is there any way I can get access to it? Or is it just too
|> late on a Friday and I am missing something obvious.
If you are using SoPickAction directly to do the picking, you have to
be careful to pass the correct window size to the constructor. Since
2D text is screen based, its 3D bounding box depends on the window
size. Picking relies on the SoGetBoundingBoxAction's results when
intersecting the text's bounding box.
If you are not using an SoPickAction directly (or if you are passing
in the window size correctly), I can't really tell what the problem
is. Could you follow up (or send e-mail) with more details?
|> Helen Salter University Computing Services
|> 604-822-5736 6356 Agricultural Road
|> Fax: 604-822-5116 Vancouver B.C. Canada V6T 1Z2
"A horse walked into a bar, and the bartender said, "Why the long face?,"
and the horse kicked him to death. True story." - Allan Havey