Parametric Mug

by Tuğrul Yazar | June 30, 2023 14:31

Let’s have some fun with the parametric stuff! You may remember that we created many vases and glass alternatives that we could bake with a single Revolution (RevSrf) component in previous exercises. Since we were referencing the profile curve drawn in Rhino, it was also possible to create a one-component glass algorithm with some Rhino knowledge. Now, we will try to develop a parametric mug. In the application you see here, we carried out the drawing of the profile curve by Grasshopper[1]. For this, we used Graph Mapper[2] (Graph) component.

Parametric Tea Glass

parametric mug

We draw the node points of the profile curve by the Interpolate (IntCrv) component. We extracted these from the Graph Mapper (Graph) components. So that the transitions between the coordinates of the points remain more consistent. We also added the axis of rotation by drawing a straight line. Thus, this application can work on its own without any Rhino curves.

Parametric Mug

parametric mug

So, what should we do if we want to add a handle that adapts to the shape of the glass? The definition below is an experiment related to this. In order to attach the handle, we designated two points with Evaluate Curve (Eval) on the profile curve. We used the Revolution (RevSrf) and an arc passing through these points, and variable thicknesses with the Variable Pipe (VPipe) we have just learned.

We have two data lists with different thicknesses and curve parameters to apply. It is also possible for us to make them more interactive. For example, add another Graph Mapper (Graph) instead of editing them manually. In order to improve this code, we can try smooth transitions of the surfaces at the junction of the handle and the glass. In the current version, Grasshopper, unfortunately, does not have Rhino’s Blendsrf command. Thus we do not yet have components that take on functions such as smooth transitions between surfaces. If you are obsessed with this, the Sweep2 (Swp2) component means hours and a few parametric cups of parametric coffee in your parametric mug are waiting for you.

Here are the Grasshopper definitions for these basic exercises:

[3]
parametric mug[4]
2023_06_30-parametric-coffeeDownload[5]
2023_06_30-parametric-teaDownload[6]
Endnotes:
  1. Grasshopper: https://www.grasshopper3d.com/
  2. Graph Mapper: https://www.designcoding.net/tag/graph-mapper/
  3. [Image]: https://www.designcoding.net/decoder/wp-content/uploads/2023/06/2023_06_30-parametric-tea-def.jpg
  4. [Image]: https://www.designcoding.net/decoder/wp-content/uploads/2023/06/2023_06_30-parametric-coffee-def.jpg
  5. Download: https://www.designcoding.net/decoder/wp-content/uploads/2023/06/2023_06_30-parametric-coffee.gh
  6. Download: https://www.designcoding.net/decoder/wp-content/uploads/2023/06/2023_06_30-parametric-tea.gh

Source URL: https://www.designcoding.net/parametric-mug/