Deleting vertices of a polygon that is dynamically added with RigidPolygon() command
Hm... where to start? ;-)
So, in short: a have a polygon (named "plocica") which I dynamically duplicate using RigidPolygon() command. Here's a GeoGebra code (On Click):
index=index+1; --> a number for tracking the number of dynamically added tiles
ploca=RigidPolygon(plocica, 3, 0);
SetColor( ploca, 1, 0, 0);
SetLineThickness( ploca, 2);
SetFilling( ploca, 0.75);
When you make a copy this way, a new polygon is added to construction, four polygon vertices and four polygon sides as well. If I delete a polygon, the sides are automatically deleted, but this is not the case with the vertices. Since I don't know the names that will GeoGebra automatically give to the new vertices...
I've tried to reach them with the Vertex() command. But now I have 8 point for each new added polygon!!! :‑( See pic in attachment.
Basically, I don't have a clue at the moment how to reach the new added polygon's vertices names to be able to delete them afterwards.
Thanks in advance