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
Forums: 

HI,

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

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();
aPntCloud->SetPoints(aPoints);
m_AISContext->Display(aPntCloud);