Layers in GeoGebra

When you create objects that overlap in Graphics window, then the newest will be on top. In this article I will show how to change the order of the objects. Revathy, my Fulbright sister asked me to translate this article from Finnish. So I had to do it.  

Create two triangles and change the colors by selecting them and using the Style bar at the top of the Graphics window. The red triangle t1 is created first and the green t2 triangle second.

Here we see that the sides of the red triangle are on top of the green triangle, so there is something wrong in the logic. Is it a bug or feature, I don’t know?

I will use the Layers setting to change the order. Click the red triangle with the right button of the mouse and select Object properties…. In Object properties window click the right arrow to the right and select Advanced. All objects are on layer 0 by default. There are 10 possible layers numbered 0, 1, …, 9.

Change the Layer setting to 1 for the triangle t1. Now the red triangle is on top of the green triangle. Actually the sides are still in 0 Layer, so change the layer value for the red sides also.

When working with layers there is a handy shortcut to select all the objects on a layer Ctrl-L. Create a pentagon and set it to layer 1. 

Select the pentagram by clicking it and then use shortcut Ctrl – L (Cmd – L on a Mac). Now the triangle and the pentagram are selected, so you can move and change the colors if you like.

The Layer help page on GeoGebra wiki is at. https://wiki.geogebra.org/en/Layers

Advertisement

How many points, segments, triangles and quadrilaterals?

A couple of weeks ago I saw a simple problem in Facebook or Twitter. It was about how many triangles there are were in a picture. I started solving the problem with pen and pencil.

I think the original problem looked like this. The question was how many triangles you see in the picture.

I tried to think different methods how to solve the problem and of course how to generalize it. Finally, I decided to draw it with GeoGebra, so I could play with the problem more easily.

Now that I have played with the problem some time, I understood that you should also count how many intersection points, segments and quadrilaterals there are in the picture when you add more lines to it. And what about pentagons, hexagons, … when we add more horizontal lines?

To generalize it more I made a GeoGebra app with a slider n to add horizontal lines.. 

So, the question is. How many intersection points there are when the slider value is n in my app?

How many triangles and quadrilaterals?

What is easier for you, to make a simple function or recursive rule.

What about pentagons, heptagons…? You also have to decide if you allow the segments to be on the same line.

Is AHIJ a quadrilateral in this problem?

GeoGebra

For people who like to play with GeoGebra, I will show how I produced the app with using list and zip commans and some vector maths. The app does not solve the problem, but maybe it helps you how get the function or the recursive formulas for the problem.

First I created three points A, B and C and a slider n with integer values..

Then I created the point lists to segment AB, AC and BC with commands:

l1 = Sequence(A + nn Vector(A, B) / n, nn, 1, n – 1)

l2 = Sequence(A + nn Vector(A, C) / n, nn, 1, n – 1)

l3 = Sequence(B + nn Vector(B, C) / (n + 1), nn, 1, n)

With Zip command it is easy to join the points

Zip(Segment(AA, BB), AA, l1, BB, l2)

Zip(Segment(A, CC), CC, l3)

You can find the final app in GeoGebra Materials at https://www.geogebra.org/m/kn2vcesj

IGCI 2021 talk on Using GeoGebra for Statistic

I am really honored to be invited to this conference. It is always very inspirational to work with teachers from different countries. I think we teachers around the world are very same kind of people. We love our subject, we love the kids, students and we want to help them to get a better life.

Conference website

Youtube video from the conference. My part starts about 56 min before the end.

Google Slides

Player data pdf from FIFA

World cup player ggb-file

Mikko’s probability simulations GeoGebra Book