
Wed, 11/19/2008 - 19:06
Forums:
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
Thu, 11/20/2008 - 10:26
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).
Thu, 11/20/2008 - 12:09
Thanks using TopoDS_Compound worked fine