Concave or Not

acron shared this question 2 years ago
Answered

This is an attempt to use an If-statement to determine whether a figure is concave or not (convex).


I can place E and F inside or on a quadrilateral. I do not want it on a side, however.


I would like to write an if where If (j is inside q1, "Convex","Concave")


Possibly, no such command is available.


https://www.geogebra.org/m/hbuwhefa


Comments (7)

photo
1

I assume you're looking for something is similar to the attachment (see the red commands). The principle is to check all angles.

It is possible to create a User-Tool (Input: <polygon> / output: Text (at the Centroid) and/or Boolean )

photo
1

Near what you ask and only for quadliteral.

I think it's possible to expand this method to any polygon.

photo
1

for any polygon

photo
photo
1

Rami’s file solves your question 🙂 I just wanted to mention IsinRegion command, that might be useful. https://wiki.geogebra.org/e...

photo
1

And two possibilities more

photo
1

test this method

Files: foro.ggb
photo
1

I found one solution more.

But no feedback from your side until now so I think your question is obsolete and I delete this thread from my watching list.

Quote: "Possibly, no such command is available.". Answer No: you can use IntersectPath()

© 2022 International GeoGebra Institute