tpaviot / pythonocc-core

Python package for 3D geometry CAD/BIM/CAM
GNU Lesser General Public License v3.0
1.31k stars 372 forks source link

How to Dispaly point cloud like Heatmap ? #990

Open aetzy opened 3 years ago

aetzy commented 3 years ago

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 commented 3 years ago

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

tpaviot commented 3 years ago

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

aetzy commented 3 years ago

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!