I'm using VC++ with OCC. I'm developing a function into XXXView::OnMouseMove() event.
I have a shape displayed and my intention is that when I mouse over the shape and hilight it,then a point is displayed.
And when unhilight the shape by mouse out, then erase the point.
I'm doing this:
gp_Pnt G =XXX;
TopoDS_Vertex vtx = BRepBuilderAPI_MakeVertex(G);
Handle(AIS_Shape) Vtx = new AIS_Shape(vtx);
The displaying of the point is ok, but in the erasing it doesn't do anything.
Could someone help me, please?
Thanks a lot.