Thu, 12/30/2021 - 14:02
Forums:
Hello Guys,
I decided to use AIS_PointCloud to draw set of points.
My code is below:
BRepMesh_IncrementalMesh(shape, 0.1);
std::vector<gp_Pnt> vecPoints;
GA_COMMON::CollectPoints(shape, vecPoints);
Handle(Graphic3d_ArrayOfPoints) thePoints = new Graphic3d_ArrayOfPoints(vecPoints.size(), true, false);
for (const auto& p : vecPoints)
{
thePoints->AddVertex(p, color);
}
Handle(AIS_PointCloud) hAisShape = new AIS_PointCloud();
hAisShape->SetPoints(thePoints);
m_hContext->Display(hAisShape, Standard_True);
But I do not see any point on my screen.
Could you help me ?
With respects, Eugene.
Thu, 12/30/2021 - 14:39
It shows in mode DM_BndBox, but nothing in mode DM_Points.
Thu, 12/30/2021 - 15:23
Which "color" do you set here / on which background for you show cloud?
Fri, 12/31/2021 - 17:48
Hello Kirill,
It is dark green on blue.
But I think I solved the issue. I tested it on a simple models where is not so a lot of points in triangulation.
Mostly flat faces.
Thanks.
With respects, Eugene.