For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

use AIS_PointCloud display

cao zhenzhen's picture


  I want to display a colored cylinder(points cloud) section by section. I used AIS_PointCloud to show the clound,but cann't show, who tell me or share code to me ,thanks.

Handle_AIS_ InteractiveContext m_ AISContext;
Handle(Graphic3d_ArrayOfPoints) aPoints = new Graphic3d_ArrayOfPoints (2000, Standard_True);
aPoints->AddVertex(gp_Pnt(-40.0, -40.0, 0), Quantity_Color(Quantity_NOC_BLUE1));
aPoints->AddVertex(gp_Pnt(40.0, 40.0, 0), Quantity_Color(Quantity_NOC_BLUE2));
Handle(AIS_PointCloud) aPntCloud = new AIS_PointCloud();

Manon Jubert's picture


A solution to your problem could be :

a_occPc = new AIS_PointCloud();

Handle_Graphic3d_ArrayOfPoints arrayPoint = new Graphic3d_ArrayOfPoints(mycloudSource->size(), true, false);

for (Standard_Integer ii = 1; ii <= nbVertices; ++ii)


   gp_Pnt point(mycloud->points.[ii].x, mycloud->points[ii].y, mycloud->points[ii].z);

   Standard_Real r = ...;

   Standard_Real g = ...;

   Standard_Real b = ...;

   Quantity_Color aColor;

   aColor.SetValues(r, g, b, Quantity_TOC_RGB);

   arrayPoint->AddVertex(point, aColor);




Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.