How to render points on screen faster

Hi I just need to display some 3d points on screen temporarily and then clear them when needed. Currently I am using AIS_ListOfInteractive and AIS_ListIteratorOfListOfInteractive to display points.. But this way it takes 2-3 seconds to display 50 points and my question is, is there a faster way to do this?
Thanks

Paul Jimenez's picture

You may want to add all those points to a TopoDS_Compound first, then display it using an AIS_Shape with selection mode set to Vertices.

Another thing to have in mind is to only update the view when you're done adding all InteractiveObjects (check parameters of method AIS_InteractiveContext::Display).

Maili's picture

Thanks using TopoDS_Compound worked fine