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

Change the color of points

Imen Imen's picture
Forums: 

Hi,

I want to display a colored cylinder(points cloud) section by section. I used AIS_PointCloud to show the clound

Handle(Graphic3d_Structure) theStructure = Handle(Graphic3d_Structure)::DownCast(aPresentation);

Handle(Graphic3d_Group) theGroup= new Graphic3d_Group(theStructure);

double pcount = vertlist.size();
Handle_Graphic3d_ArrayOfPoints thepointcloud2= new Graphic3d_ArrayOfPoints(pcount);

int index =0;

index =0;
for(int i=0 ; i {
index++;
thepointcloud2->AddVertex(vertlist.at(i));
//thepointcloud2->SetVertexColor(vertindx,colorlist.at(i));
}

theGroup->AddPrimitiveArray(thepointcloud2);

Now I want to change the color of each section (circle), How can i specify the color of each point

Thanks

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.