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
- If you didn't save the results of the previous lecture, load
the pre-made
file organic-pipes.3dm into Rhino.
- In Grasshopper, create a Mesh parameter and set it to the
organic pipes mesh.
- Create a Sets > List > Dispatch component and feed the
Mesh parameter into it.
- Create a Toggle component and feed it into the Dispatch's P input.
- Connect the A output to Dispatch to a Move component.
- 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.
- 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.
- Create a Kangaroo 2 > Mesh > Stripper component and run
the output of the Move into it.
- Run the output of Mesh Stripper into a Dispatch component.
- Create two Mesh Colours components and run the A and B outputs of Dispatch into them.
- Create a Color Swatch component for each Mesh Colours component
and set one to blue and the other to white.
- Feed the outputs of the two Mesh Colours components into the M+
input of Weaverbird > Extract > Weaverbird's Mesh Join and
Weld.
- Flip the toggle and observe the results.
- Bake the result and look at it in Render mode.
Checkerboard Coloring
- 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.
- Create a Kangaroo 2 > Mesh > Checkerboard component, feed
the moved mesh into it, and feed its output into the P input of
Dispatch.
- Bake the result and look at it in Render mode.
Warp and Weft Coloring
- Create a program similar to the first one.
- Run the moved mesh into a Kangaroo 2 > Mesh > Warp/Weft component.
- Feed the A output of Warp/Weft into a Curve component.
- Feed the Curve Component into a Pipe component and set the pipe
radius to 0.05.
- Flatten the output of the Pipe component and feed it into a
Mesh parameter.
- Run the moved mesh into one Mesh Colours component and the
meshed pipes into the other Mesh Colours component.
- Optional: set the E parameter of the Pipe component to cap the
pipes. This makes things much slower.
- Bake the result and examine it in Render view.
|