More Kangaroo 2

Note: this exercise requires the Mesh Flip and Mesh Explode components from the MeshEdit plugin for Grasshopper. Get it from here, unzip it, and copy the 170625 folder into your components folder.

    Coloring a Mesh in Strips

  1. If you didn't save the results of the previous lecture, load the pre-made file organic-pipes.3dm into Rhino.
  2. In Grasshopper, create a Mesh parameter and set it to the organic pipes mesh.
  3. Create a Sets > List > Dispatch component and feed the Mesh parameter into it.
  4. Create a Toggle component and feed it into the Dispatch's P input.
  5. Connect the A output to Dispatch to a Move component.
  6. Right click on the Move component's Transform input and do Set One Vector. Set a vector to move the mesh copy out of the way of the Rhino object.
  7. Connect the B output of Dispatch to a Mesh Flip component, and run its output as an additional input into the G parameter of the Move.
  8. Create a Kangaroo 2 > Mesh > Stripper component and run the output of the Move into it.
  9. Run the output of Mesh Stripper into a Dispatch component.
  10. Create two Mesh Colours components and run the A and B outputs of Dispatch into them.
  11. Create a Color Swatch component for each Mesh Colours component and set one to blue and the other to white.
  12. Feed the outputs of the two Mesh Colours components into the M+ input of Weaverbird > Extract > Weaverbird's Mesh Join and Weld.
  13. Flip the toggle and observe the results.
  14. Bake the result and look at it in Render mode.

    Checkerboard Coloring

  15. Create a similar program as above, but run the moved mesh through a Mesh > Analysis > Mesh Explode component and feed the faces into the Dispatch component.
  16. Create a Kangaroo 2 > Mesh > Checkerboard component, feed the moved mesh into it, and feed its output into the P input of Dispatch.
  17. Bake the result and look at it in Render mode.

    Warp and Weft Coloring

  18. Create a program similar to the first one.
  19. Run the moved mesh into a Kangaroo 2 > Mesh > Warp/Weft component.
  20. Feed the A output of Warp/Weft into a Curve component.
  21. Feed the Curve Component into a Pipe component and set the pipe radius to 0.05.
  22. Flatten the output of the Pipe component and feed it into a Mesh parameter.
  23. Run the moved mesh into one Mesh Colours component and the meshed pipes into the other Mesh Colours component.
  24. Optional: set the E parameter of the Pipe component to cap the pipes. This makes things much slower.
  25. Bake the result and examine it in Render view.

Dave Touretzky