Python Forum
Tkinter - The Reuleaux Triangle
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter - The Reuleaux Triangle
#1
Hello everyone,

I need help drawing a Reuleaux Triangle using 3 create_arc method. Unfortunately, it is not a perfect circle, meaning the midpoint will be longer than a regular radius on a circle.

The Reuleaux triangle looks like this:

[Image: 1024px-ReuleauxTriangle.svg.png]

Using 3 create_arc commands, how would I create this in Tkinter Python?

Thanks! Heart
Reply
#2
Actually it is a perfect circle. Three perfect circles centered at the three vertices. Remember when using the create_arc() function you specify a bounding rectangle and the center of the rectangle is the center of your arc. Since all your arcs are circular and centered on a vertex, that should give you the bounding rectangle for each arc. That leaves setting the start and extent angles.

I know the drawing is supposed to be drawn using three arcs (how do you get the chord?), but I drew a triangle first to help get my bearings. Then I drew a circle centered over a vertex and sized to touch the other two vertices. Then I played around with start and extent until I understood how they work. After that it was easy to do the other two arcs and then remove the triangle.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to write a recursion syntax for Sierpinski triangle using numpy? Bolzano 2 3,880 Apr-03-2021, 06:11 AM
Last Post: SheeppOSU
  Print user input into triangle djtjhokie 1 2,385 Nov-07-2020, 07:01 PM
Last Post: buran
  Python - networkx - Triangle inequality - Graph Nick_A 0 2,104 Sep-11-2020, 04:29 PM
Last Post: Nick_A
  Triangle function program m8jorp8yne 2 8,889 Dec-13-2019, 05:24 PM
Last Post: Clunk_Head
  Print triangle using while loop tuxandrew 3 4,942 Dec-05-2019, 07:17 PM
Last Post: micseydel
  Intersection of a triangle and a circle Gira 3 3,621 May-19-2019, 06:04 PM
Last Post: heiner55
  Draw isosceles triangle fen1c5 4 12,910 Jul-07-2018, 10:20 AM
Last Post: fen1c5
  Pascal's triangle nvakada 5 4,622 May-01-2018, 02:44 AM
Last Post: Skaperen
  Object oriented area of a triangle xterakojede 2 8,946 Apr-20-2018, 01:42 PM
Last Post: xterakojede
  Turtle drawing Right Triangle Zatoichi 3 5,730 Feb-26-2018, 12:24 AM
Last Post: Zatoichi

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020