@natalia,
this works very nice :cool:
Handle(Graphic3d_ArrayOfPolylines) prims = new Graphic3d_ArrayOfPolylines(nbVertices,0,nbVertices,1,0);
for (Standard_Integer pointsIt = 1; pointsIt <= nbVertices; ++pointsIt)
if(something....)
{...
Sorry Natalia,
it's the same ( one ) Line with two different colors.
Like the first nnn segments blue, then following some nnn segments green, then nnn back to blue and so on.
One Line with different color depending on condition during time of getting the Point.
Sorry for the misunderstanding.
Hallo Natalia
Thanks a lot for this. Finally I got it to work with QtCreator with Linux Debian10.
Now. : I create the line from live-points that come from an actual cnc-position.
There are two situation: high and low speed; changing at any given time.
I like to display this in two different...
@natalia
My setup: Linux Debian 10; OCCT 7.6; Qt 5.15.2; QtCtreator 5.0.3
The picture: That is the working head of a cnc or could be 3D-Printhead.
Now I poll every 20msec for the actual position and get a point in 3d-space.
Then making an edge from the previous to the actual point. ( two...