Convex vs Concave Shape Classifier
Run the Convex vs Concave Shape Classifier MicroSim Fullscreen
Edit in the p5.js Editor
About This MicroSim
Some polygons are safe to hand straight to fb.poly() with fill turned on, and
some will surprise you. The difference is whether any vertex dents inward toward
the middle of the shape. This MicroSim shows you eight polygons one at a time and
asks you to commit to an answer before it reveals anything. After each guess the
dented vertices light up in coral, so you can examine exactly which corner made
the shape concave and differentiate that pattern from a shape where every corner
turns the same way.
How to Use
- Look at the polygon on the simulated screen and decide whether any corner bends back toward the inside.
- Click Convex or Concave to lock in your answer. You get one guess per shape.
- Read the feedback panel. Blue dots mark ordinary vertices, and coral dots mark vertices that dent inward.
- Click Show Explanation for the reason, plus a gold dashed line joining a dented vertex to its two neighbors.
- Click Next Shape to move on. Your running score appears at the top of the feedback panel.
- After the eighth shape the button becomes Start Over, which resets the score and runs the set again.
Iframe Embed Code
You can add this MicroSim to any web page by adding this to your HTML:
1 2 3 4 | |
Lesson Plan
Grade Level
9-12 (High School)
Duration
10-15 minutes
Prerequisites
- Know that a polygon is a closed shape made of straight edges joined at vertices.
- Understand that
fb.poly()draws a shape from an ordered list of points. - Be able to read a shape's outline as a path that visits each vertex in order.
- Know the words vertex, edge, and interior.
Activities
- Exploration (5 min): Classify all eight shapes without using Show Explanation. Write down the two shapes you found hardest to judge.
- Guided Practice (5 min): Start over, and this time open Show Explanation for every concave shape. Describe in one sentence what the gold dashed line tells you about a dented vertex.
- Assessment (5 min): Sketch one convex and one concave polygon of your own, then circle the vertex that would light up coral in your concave shape.
Assessment
- The student defines a concave polygon as one with at least one vertex that dents inward.
- The student correctly classifies at least seven of the eight shapes.
- The student identifies the dented vertex in the L-shape and in the arrow.
- The student explains why a five-point star has five dented vertices, not one.
References
- Convex polygon (Wikipedia) - the formal definition this MicroSim tests you against.
- Concave polygon (Wikipedia) - including the reflex-angle rule that makes a vertex dent inward.
- MicroPython
framebufmodule - thepoly()method that draws polygons from a point array. - Polygon (Wikipedia) - vertices, edges, and the vocabulary used throughout this chapter.