I want to retrieve the coordinates of a point from AIS_Context so I write these lines
picked = myAISContext->SelectedInteractive();
Handle(AIS_Point) aPoint= Handle(AIS_Point)::DownCast(aShape);
gp_Pnt P = BRep_Tool::Pnt(aVertex);
TRACE("X= %f;Y= %f;Z=%f \n",point.X(),point.Y(),point.Z());
but it doesn't work. The pointer Apoint is always null
Then I want to display these coordinates in myAISContext.
is there anyone who has an idea how I can do that.