Hello everyone,
I want to Display million of points at the same time.
How to display so many points?
Thank you in advance!
Marco Nawijn Wed, 11/25/2009 - 18:02
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)?
Wed, 11/25/2009 - 18:02
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,
Marco
Wed, 11/25/2009 - 18:30
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,
Dennis
Thu, 11/26/2009 - 12:15
hi huangye,
you can also inherit from AIS_InteractiveObject. Look at
http://www.opencascade.org/org/forum/thread_1125/
to get an idea.
Pawel