![Hugues Delorme's picture Hugues Delorme's picture](https://dev.opencascade.org/sites/default/files/styles/user/public/pictures/picture-54079-1620122348.jpg?itok=DBjBUJvt)
Fri, 10/02/2020 - 16:11
Forums:
Hello,
I'm having troubles with AIS_Trihedron + zoom persistence. I don't understand clearly how to make it work.
I display an AIS_Trihedron located at some gp_Ax2 placement, this is working fine.
Now to make that 3d object size "independent" from view zooming :
aisTrihedron->SetTransformPersistence(
new Graphic3d_TransformPers(Graphic3d_TMF_ZoomPers, anchorPoint));
What point should I give as the "anchor point" ?
I've tried to tweak also with AIS_Trihedron::SetLocalTransformation() but always getting something wrong.
Please can someone help here ?
Fri, 10/23/2020 - 11:53
The anchor point should be the position of the AIS_Trihedron, which is gp_Ax2::Location() you defined before.
Fri, 10/23/2020 - 12:52
Hello Matthias,
Thanks for answering, actually I solved that issue some days ago like this :