More Control on AIS_AngleDimension?

Hi, everybody:

I found that AIS_AngleDimension can only draw one style anlge dimension(in plane), it always draws an arc outside the area from start AIS_Line to end AIS_Line, no matter howthe gp_Pnt parameter is. Although I think this is very simple to add control on the actual position, i.e. inside or outside the angle area for OCC developer, surprisingly there is no such option. Any suggestion will be highly appreciated.

Stephane Routelous's picture

Do it yourself !
Just copy the AIS_AngleDimension.cxx .hxx Handle_AIS_AngleDimenssion.hxx, rename the files and the class inside, and change the code in the Compute...Angle methods.


fhchina's picture

stand in silent tribute for the poor OCC!

jelle's picture

I fully share your surprise. It renders the class useless.

Forum supervisor's picture

Dear fhchina,
By default AngleDimension Interactive Object is movable.
You may simply move it using "drag and drop" technique at the preferred position.

jelle's picture

Could you elaborate a little more? In my viewer I cannot just grab the Angle dim an associated it to another shape.
However, the most urgent issue is how to specify inner or outer angle.



Forum supervisor's picture

Dear jelle,
Constructor of AIS_AndgleDimension may use automatic position or a given position (Pnt from gp).
Try to use this option. For details you can overlook AIS_AngleDimension and DsgPrs_AnglePresentation classes.

Arjan Schouten's picture

Dear Forum supervisor,

Could you be a little more specific, what does one have to do to accomplish moving of dimensions?

- use the overload that takes a Pnt from gp
- OnMouseMove use SetPosition from AIS_Relation ????



Forum supervisor's picture

Dear Arjan,
I just gave you a hint.
Please do not expect us to provide on this Forum the level of technical consulting
comparable to our professional support - clearly we don't want to harm our own business :-).
If the issue is critical for you I would suggested you to make request for the dedicated
customer support -
Or ask training or e-learning courses -