Hello,
If your only interest is in displaying points, I am not sure if opencascade is the right tool for the right job. Did you consider using Paraview (www.paraview.org)?
Regards,
Commenter-1
Archived discussion
Hello everyone,
I want to Display million of points at the same time.
How to display so many points?
Thank you in advance!
Discussion
Posts are displayed in their archived order.
Hello,
If your only interest is in displaying points, I am not sure if opencascade is the right tool for the right job. Did you consider using Paraview (www.paraview.org)?
Regards,
Commenter-1
If you have a million gp_Pnt Points you can try the following:
Build vertices and add them to a compound.
// CODE ---------------
TopoDS_Compound vertexCompound;
BRep_Builder compoundBuilder;
compoundBuilder.MakeCompound(vertexCompound);
for(int i=1; i<=pntHSeq->Length(); i++)
compoundBuilder.Add(vertexCompound, BRepBuilderAPI_MakeVertex().Vertex());
// END ----------------------
Now, you should be able to display the vertexCompound in your View.
Good luck.
Let us know if it worked.
Cheers,
Commenter-2
hi Author,
you can also inherit from AIS_InteractiveObject. Look at
http://www.opencascade.org/org/forum/thread_1125/
to get an idea.
Commenter-3