Area Node and Find Radius

john's Avatar

john

08 Apr, 2017 10:14 AM

Here is a handy little subnetwork node: Area.

Just hook it to any polygon and it will return the area of that polygon using the elegant shoelace formula. Works even with very complex shapes. If your shape has multiple contours (like the letter A) you will have to slice it to separate the inner and outer shapes then subtract the inner area from the outer area.

As an added bonus I include another subnetwork node: Find Radius. Regular polygons in NodeBox are defined by their radius, but it would often be preferable to define them by their side length instead. Set the side length and the number of sides in the Find Radius node and it will return the radius required for a NodeBox Polygon node.

Attached is a demo network with shows the perimeters and areas for six different shapes. 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

  • Area_Screenshot.png 472 KB
  • Area_Node.zip 2.18 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 Jul, 2022 02:31 AM
30 Jun, 2022 09:46 PM
30 Jun, 2022 07:01 PM
16 Jun, 2022 05:30 AM
06 Jun, 2022 01:07 PM

 

02 Jun, 2022 11:58 PM
30 May, 2022 03:37 PM
30 May, 2022 07:48 AM
24 May, 2022 06:27 PM
20 May, 2022 04:12 PM
05 May, 2022 02:25 AM