Removing paths to make ready for plotter

t_alexander_s's Avatar

t_alexander_s

23 Jul, 2024 03:19 PM

Hi.

First of all... thank you for an awesome tool. Coding is not my strong suit, so this visual node based tool is amazing, however I am still challenged by it. How would I go about removing all geometry outside the rectangle in the attached image?

Thank you.

  1. 1 Posted by lastvector on 23 Jul, 2024 04:16 PM

    lastvector's Avatar

    Hi Thomas

    This will be possible with the Compound Node
    take look at my Node Tree which is attached

    As far as i know there are also a Mask Node from Johns
    Node Library he is the Forum Admin.

    Search for "Cartan Node Library 3.3" in the Forum
    the Library have many useful custom Nodes
    all made by John

    have a nice day
    gottfried

  2. Support Staff 2 Posted by john on 23 Jul, 2024 04:46 PM

    john's Avatar

    Thomas,

    It turns out that removing all the geometry outside of a boundary can sometimes be a surprisingly hard problem.

    In this case, as Gottfried said, a compound node will do the trick. You need to set the compound node's Function parameter to Intersection. You also need to colorize it afterwards to remove the fill.

    OR you can use a Clip node from my Cartan Node Library - see attached screenshot and demo. Clip will work with almost any geometry and will preserve the original coloring.

    Happy Nodeboxing!

    John

  3. 3 Posted by t_alexander_s on 24 Jul, 2024 05:29 AM

    t_alexander_s's Avatar

    Hi Gottfried and John.

    Thank you for the responses. I had already tried the compound node but couldn't get it to work as I expected it would. With your help I now know it was because I didn't use the colorize node after the compound node.

    Thank you once again.

  4. 4 Posted by lastvector on 24 Jul, 2024 07:04 AM

    lastvector's Avatar

    Thomas

    your welcome

    relatively new to Nodebox too
    i also like the visual programming approach
    via nodes in Nodebox

    gottfried

  5. t_alexander_s closed this discussion on 24 Jul, 2024 09:50 AM.

Comments are currently closed for this discussion. You can start a new one.

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

26 Jan, 2025 02:09 AM
24 Jan, 2025 07:50 AM
22 Jan, 2025 11:42 PM
21 Jan, 2025 09:43 AM
21 Jan, 2025 09:41 AM

 

21 Jan, 2025 09:36 AM
21 Jan, 2025 02:00 AM
16 Jan, 2025 08:30 PM
15 Jan, 2025 06:37 AM
04 Jan, 2025 04:09 AM
03 Jan, 2025 05:32 PM