I am still struggling with OpenCascade. Today I have got a question regarding the regeneration of a Dimension.
Imagine the following:
I have got a TopoDS Shape and a related AIS_Shape.
Then I generate an AIS_LengthDimension from one face to another one. Everything is displayed correctly. So far so good ...
Now I apply a translation to the TopoDS_Shape and I call AIS_Shape.Set(TopoDS_Shape) and AIS_Shape->Redisplay(). The shape is now displayed at its new position.
But how do I reposition the Dimension ?
I had a look at the sources and everything I see is, that the Compute methods do the computation, but the documentation says, that the user shall not call this methods directly. How can I do this ?