Poly_labels Node

john's Avatar

john

05 Nov, 2023 10:16 PM

Poly_labels takes any closed polygon and draws it with interior angles labeled in blue and side lengths labeled in red.

If you give it other shapes (simple lines, open paths, self-crossing paths, curves, contours, text paths, etc.) it will do its best, but it's really intended for closed polygons. It tries to size the side labels to fit the overall scale of the shape (based on the shortest side), but you can adjust the size up or down (with 100 representing "normal" size).

Poly_labels is handy when you are working with a shape you've imported or created through some process and you need to understand its angles and/or side lengths in order to mold it or add on additional shapes. It's also great for quickly producing diagrams. If you can't remember the interior angles of a regular octagon, just place a polygon node, set Sides to 8, and attach a poly_labels node.

If you are using the polygon node and need to increase the radius until you reach a certain size length, just attach a poly_labels node, render it, and watch the side labels as you increase the radius. (For exact radius values you could also use my find_radius node.)

For professional diagrams you can use poly_labels as a starting point, then look inside it to adjust fonts, colors, etc. until you reach a state of perfection. It's great for teaching geometry, working with Islamic mosaics, and a thousand other things. And it's just fun!

Poly_labels will be included in the next release of my Cartan Node Library. Enjoy!

John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • poly_labels_screenshot.png 397 KB
  • poly_label_demo.ndbx.zip 37.4 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

01 Oct, 2024 07:59 AM
30 Sep, 2024 11:37 PM
30 Sep, 2024 11:11 AM
30 Sep, 2024 02:37 AM
28 Sep, 2024 10:33 AM

 

26 Sep, 2024 06:41 AM
24 Sep, 2024 12:32 AM
24 Sep, 2024 12:27 AM
13 Sep, 2024 12:07 AM
12 Sep, 2024 11:54 PM
07 Sep, 2024 05:16 AM