Can objects be grouped together operated on as a group?

Mark Pennington shared this question 11 months ago
Answered

I would like to perform operations several objects as a group. For example, how would I rotate 4 polygons about a point with a single Rotate command?

Sincere thanks...helping my grandkids!

Mark in Michigan

Comments (8)

photo
1

You can group polygons p1, p2, p3 as l1 = {p1, p2, p3} and then Rotate l1.

But: this operation works on the list and doesn't rotate the original polygons, however you can hide them. Another issue is that you can't perform actions on individual elements of a list. You have to perform them on the original objects. But if you just want to rotate, working with a list is fine.

photo
1

tal y como lo describes no es posible

photo
1

I illustrated my first comment in a file. You can create a list l1 of 4 polygons and rotate it around a point A following a slider alpha with the command Rotate(l1, α, A). But as you see the list is rotated, not the original polygons. So you have to hide them afterwards and there's no one that sees they are not the originals. Now there's a great BUT! This list ant the rotated one doesn't bear all GG possibilities of the original polygons. So you cannot perform actions like defining points on a certain side of a particular polygon. So all depend what you want to do with it. If it's just rotating, than it's ok, if you want to use the rotated polygons in further constructions, forget about the option of grouping them.

photo
1

Thank you, ccambre...

Your reply answered my question and the example was very helpful. All the best!

photo
1

I want to use some (26!) shapes (which I have constructed, each with four hexagons and twelve triangles) over and over again as building blocks (for space-packing). So I would like to be able to copy them efficiently and then translate them designated positions. (I will not need to rotate them.)

I suppose if I create 26 lists, l1...l26, I can copy them and then translate them as need be. I will let you all know how it works out.

photo
1

I think 26! is surely stack overflow and the PC will crash

the maximum numbers of objects in a list I created is 8000 more or less

photo
1

I should be more careful how I use punctuation marks around here! I would come in way below 8000.

mathmagic, can you help me with copying and moving grouped objects in 3D?

photo
photo
1

you can translate a list with translate(object,vector) like another some objets

© 2021 International GeoGebra Institute