Forum archiveIssue archiveVisualization and 3D Viewer

Archived discussion

AIS_PointCloud How to change scale of points

Visualization and 3D ViewerTue, 01/16/2024 - 11:232 replies

Browse this forum
QuestionAuthor

Hello,

When i use an AIS_PointCloud with his points and his PointAspect() with a variable scale

Standard_Real pointSize {10.0};
Prs3d_PointAspect* pt = new Prs3d_PointAspect(Aspect_TypeOfMarker::Aspect_TOM_POINT, c, pointSize);
pAisCloud->Attributes()->SetPointAspect(aspect); // pAisCloud is my AIS_PointCloud

But this doesn't work, the pointSize (or scale) never changed, it seems to be 1 in the viewer.
However My aspect is well taken, in debug i get the right scale when i recover it.

Maybe someone have a solution to change the scale of those points.

PS : It work when i use a AIS_Shape instead of a AIS_PointCloud.

Regards,

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

It might sound awkward, but AIS_PointCloud applies shading aspect instead of point aspect.

Handle(AIS_PointCloud) aPntSet = ...;
aPntSet->SetupOwnShadingAspect();
aPntSet->Attributes()->ShadingAspect()->Aspect()->SetMarkerScale (5.0f);
02Author

It work well.

Thanks,