Directional scaling for AIS_Shape

Dear users and developers,

I am trying to resize shapes in only one direction. Up till now I've used gp_GTrsf on TopoDS_Shape to obtain this goal succesfully (e.g. for scaling in the x-direction I use a matrix gp_Mat(scalingFactor,0,0,0,1,0,0,0,1) together with gp_GTrsf).

I've switched to transformations in the AIS context, so transforming the AIS_Shape rather than the TopoDS_Shape, which works fine for gp_Trsf-transformations. However, I can't seem to find gp_GTrsf for AIS_Shape.

My question, is it possible to use gp_GTrsf on AIS_Shapes, or if not, can you scale in only one direction using gp_Trsf? You can use matrixes with gp_Trsf using gp_Trsf::SetValues which works fine for rotations but still scales uniformly when entering a scalingsmatrix like the example I gave earlier.

Thanks in advance, Thieme

Kirill Gavrilov's picture

So far, there is no such interface available in AIS.