Style Of Points

Hello I was wondering how to display shapes like points style like in the atachment?

Kirill Gavrilov's picture

It seems that the actual question is missing in the post...

Semih Ufuk Güler's picture

Sorry I updated the question.

Kirill Gavrilov's picture

Points look like simple points on screenshot, which corresponds to Aspect_TOM_POINT marker style set to Graphic3d_AspectMarker3d::SetMarkerType() / Prs3d_PointAspect::SetTypeOfMarker() and marker size set to 1 pixel Graphic3d_AspectMarker3d::SetMarkerScale() / Prs3d_PointAspect::SetScale().

Semih Ufuk Güler's picture

Could you give an example code this is really hard for me.

Kirill Gavrilov's picture

What have you tried so far? Are you using AIS_PointCloud presentation for displaying a point set, or something else?

Semih Ufuk Güler's picture

Handle_Prs3d_PointAspect myaspect = new Prs3d_PointAspect(Aspect_TOM_POINT, Quantity_NOC_ALICEBLUE, 1.0);
myContext->DefaultDrawer()->SetPointAspect(myaspect);
myView->MustBeResized();
myView->Redraw();

This is what I done so far but it doesnt effect anything shape is still displaying like a wireframe.
I dont have an set of points I have a bunch of shapes, Do I have to extract or generate points from them is there anything default for that ?
I know Freecad Easily switch between shaded wireframe, points etc.

Kirill Gavrilov's picture

Your code changes defaults properties, which can be overridden by specific presentation.
What are you actually displaying?

Semih Ufuk Güler's picture

Some AIS Shapes. Reade from step file