Explode Node

john's Avatar

john

07 Mar, 2019 05:21 AM

UPDATE: I made a small improvement to the Explode node. See next comment...

The Explode node takes a path and breaks it into its constituent line segments and bezier curves. The node includes a "closed" checkbox. Set to closed for most complex shapes (like text paths), set to open for paths like quad curves or open arcs that you want to leave open.

Explode requires my make_curve custom node (included). For text you will want to break each letter into individual contours before exploding; this requires the Frederik's custom contours node (also included).

Zipped demo and screenshot attached. The demo shows the word "Explode" exploded with each individual line or curve slightly rotated to show where the breaks are. You can instead attach basic shapes (quad curve, polygon, ellipse, arc) to see what they are made of and what happens when you check or uncheck the closed option. I also include a simple table that shows the type of each fragment (line or curve) along with its length.

I have also attached a movie of a text path shattering into zillions of glass shards. So that's one thing you can do with the explode node. You could also use it to highlight or modify the individual serifs on a serif font. But its real purpose is to facilitate various geometric manipulations by breaking complex paths into simple components to do things like finding the intersection points between a path and a line. I will be releasing an intersect node soon that does just that.

I believe there are many other possible uses. Please explode things and share the wreckage with us!

John

  1. Support Staff 1 Posted by john on 23 Mar, 2019 09:00 PM

    john's Avatar

    Attached is a zipped NodeBox network containing an improved version of the explode node.

    Instead of forcing you to declare whether the incoming path is open or closed, I removed that port and added a new node, is_closed, inside the explode node. Explode now automatically senses whether the path is open or closed and acts accordingly.

    You may also want to retrieve the is_closed node and use it in other projects. It's handy and does not require a custom node.

    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

  • explode_screenshot.png 337 KB
  • glass_kaboom.mp4 1.33 MB
  • explode.zip 5.57 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

10 Sep, 2019 01:43 PM
03 Sep, 2019 01:35 AM
24 Aug, 2019 03:14 AM
08 Aug, 2019 04:13 AM
02 Aug, 2019 09:27 PM

 

18 Jul, 2019 10:05 AM
12 Jul, 2019 10:39 PM
08 Jul, 2019 12:47 AM
06 Jul, 2019 02:12 AM
29 Jun, 2019 10:13 PM
29 Jun, 2019 10:17 AM