Mon, 01/31/2022 - 01:37
Forums: 
Hello all,
how to get the shape of a child of a AIS_Shape?
Thanks!
m_aisDisplay->addChild(...);
PrsMgr_ListOfPresentableObjects children = m_aisDisplay->Children();
for(const Handle(PrsMgr_PresentableObject)& value : children) {
{
            AIS_Shape s = static_cast<Handle(AIS_Shape)>(value); // doesn't work. how to cast?
            TopLoc_Location processPosition = value->TransformationGeom();
            TopoDS_Shape processShape = value->Shape().Moved(processPosition); //no Shape() here
...
        
Mon, 01/31/2022 - 08:38
Handle(AIS_Shape) s = Handle(AIS_Shape)::DownCast (value);