DiscussionsIssue archiveOther usage issues

Archived discussion

How to display point cloud

Other usage issuesWed, 11/25/2009 - 11:353 replies

Browse this forum
QuestionAuthor

Hello everyone,
I want to Display million of points at the same time.
How to display so many points?
Thank you in advance!

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

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

02Commenter-2

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

03Commenter-3

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