For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

How to return points from AIS Selection

dave bramall's picture

I have written some code which queries a the TopoDS_Shape in the local AIS context. Using the BREp_GProps class methods I can ask for the linear, surface and volume properties for edges, faces and comp/solids. However, my question is how to return the point when a Vertex is selected in the local context?

I would be grateful if anyone can let me know how to do this.


David Bramall

Stephane Routelous's picture


you can have the TopoDS_Vertex with the same way as the other shapes. After that , use :

TopoDS_Vertex theVertex = myAISContext->SelectedShape();

gp_Pnt thePoint = BRep_Tool::Pnt(theVertex);


Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.