Displaying AIS_Dimensions

Hi,
I have no idea at all about using the AIS_Dimensions and displaying it. Whatever I have tried is in vain. Somebody please help.

N. Sharjith

fhchina's picture

Hi, Sharjith,

It is very simple to setup the parameter for derived class of AIS_Dimensions, e.g. AIS_LengthDimension, the new a AIS_LengthDimension, then using AIS_InteractiveContext::Display it.

But the customed ability of AIS_Dimensions provided by OCC is far from the requirement of a profesional dimension scheme.

Just as Stephane pinpoints, One must derive from it and implement one's own Compute/ComputeSelection virtual method.

fhchina

Sharjith Naramparambath's picture

Hi,
I tried doing it with the radius dimension but nothing was displayed on the screen.
Some code sample will help me more.
Thanks

N.Sharjith