pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

How to Dispaly point cloud like Heatmap ?

Open aetzy opened this issue 4 years ago • 3 comments

I want to use Opencascade to dispaly point cloud with color ( picture 1) like a Heatmap (picture 2,Geomagic Control Display) . However,I found that setting the presentation attributes->point aspect property is not useful . Reference:[https://github.com/tpaviot/pythonocc-core/issues/744] The point cloud size is about 350,000 points.if I use BRep spheres centered at each point, it's very very slow. This has bothring me for days ,Thanks please.

图片

图片

aetzy avatar Apr 13 '21 01:04 aetzy

@tpaviot is there any method that can display point cloud like this? Thank You !

aetzy avatar Apr 13 '21 02:04 aetzy

I think there is, but I don't know how to do it.

tpaviot avatar Apr 13 '21 16:04 tpaviot

I think there is, but I don't know how to do it.

Thank you for your time! At the beginning,I want to Set the presentation attributes to make the points in cloud seems "Bigger".Code like this two lines: aPointCloud->Attributes()->PointAspect()->SetScale(10);
myAISContext->DefaultDrawer()->PointAspect()->SetScale(10) but they didnot work. If you have any ideas, please let me know.Or can you tell me if there are any similar examples?

Thanks a lot!

aetzy avatar Apr 15 '21 03:04 aetzy