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().
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.
Tue, 05/11/2021 - 14:02
It seems that the actual question is missing in the post...
Mon, 05/17/2021 - 16:12
Sorry I updated the question.
Mon, 05/17/2021 - 21:32
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().
Tue, 05/18/2021 - 11:02
Could you give an example code this is really hard for me.
Tue, 05/18/2021 - 11:14
What have you tried so far? Are you using AIS_PointCloud presentation for displaying a point set, or something else?
Tue, 05/18/2021 - 12:10
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.
Tue, 05/18/2021 - 13:16
Your code changes defaults properties, which can be overridden by specific presentation.
What are you actually displaying?
Tue, 05/18/2021 - 13:31
Some AIS Shapes. Reade from step file