Introduction
At Nature Architects, we use Rhinoceros + Grasshopper (hereinafter Rhino/GH) in various aspects, including shape generation, analysis, and optimization. Rhino is a 3D CAD widely used in the fields of product design and architecture, and GH is a visual programming environment that runs on top of it. By combining it with a wealth of plugins, we can generate complex shapes algorithmically.
On the other hand, having grown up using parametric CAD software for mechanical design (Creo, SolidWorks, Fusion 360, etc.) since my student days, I sometimes found it cumbersome to design ordinary mechanical parts using Rhino/GH.Related articleHowever, this is not so much a drawback of GH as it is the flip side of GH's strength: its clear data flow.
This article will explain the source of this complexity by examining the differences in nature between GH and parametric CAD. Then, as a solution, it will introduce "Paramecium," a GH plugin that treats FreeCAD (a type of parametric CAD) as a "function," and finally, it will present a design example of a smartphone case with an origami stand.
Part design in parametric CAD
In parametric CAD software for mechanical design, such as Creo, SolidWorks, and Fusion 360, conditions (geometric constraints) are given to the sketch, such as "these two lines are parallel," "this point lies on this circle," and "this dimension is 10 mm," and the shape is determined to satisfy these conditions.Related article). To specify the object to which constraints are applied, or the area to which processing such as fillets is to be applied, click on the edge or face on the screen to specify the reference.
Figure 1 shows the steps for designing a component (USB cable holder) that hooks onto the edge of a desk. First, a model is created with provisional dimensions, and then the dimensions are finalized. Since it is rare for all dimensions to be determined before starting the design, it is important to be able to easily create a definition (parametric model) that allows the shape to follow the intended shape even if the dimensions are changed later, and how flexibly that definition can be modified. In the example in the figure, the slit is constrained to the edge of the hole so that the slit continues to function as a slit even if the dimensions of the hole or rectangular prism are changed (step 3 in the figure). Also, in step 5, the dimension definition is changed midway through because it was desired to specify the hole position by wall thickness rather than by the center.
While similar models can be created in GH, you have to consider how to identify the shape you want to reference within the data flow each time you perform operations such as "drawing a rectangle so that a vertex lies on the edge of a hole" or "inserting a fillet into a certain edge." Furthermore, changing the dimension definition location without altering the shape, as shown in step 5 of Figure 1, becomes even more complicated in GH.
As explained above, the reason I found it time-consuming was that GH lacks "geometric constraints" and a "UI that allows you to select and reference shapes on the screen." While it's possible to do the detailed design in a different CAD program, there are many situations where you want to turn shapes created using GH's algorithms and plugin assets into concrete objects within the same environment.
Grasshopper properties and geometric constraints
One reason why geometric constraints did not develop in GH might be that the data processing approach in GH and the concept of geometric constraints do not mesh well. GH's data processing has the following characteristics:
- Data flows in one direction, from upstream to downstream.
- A component takes input and returns output.
- Some processes do not overwrite the input data, but rather output new data.
- If you give the same input to the same component, you will get the same output.
These properties are very similar to the concepts of functional programming [1]. Grasshopper's component and wire representation can be seen as a visual representation of these concepts.
On the other hand, geometric constraints used in parametric CAD are slightly different. As seen in the previous chapter, multiple constraint conditions are given, and the solver finds a shape that satisfies them simultaneously. Here, simply 入力 → 処理 → 出力 Instead of calculating values in a one-way direction, multiple elements are interconnected. This kind of bidirectional dependency is not inherently compatible with Grasshopper's one-way data flow, which propagates values from upstream to downstream (Figure 2).
Is there a way to handle such processing on GH? One example is the physics simulation plugin Kangaroo[2] and the origami design plugin Crane[3]. These plugins take multiple constraints and initial states as input to a solver and perform iterative calculations within it to find shapes that satisfy the conditions, thus contributing to the richness of the GH environment.
However, it is not practical to use Kangaroo or Crane to design parts like the USB cable holder in the previous chapter. There are two reasons for this. First, the UI requires you to identify each point or line you want to constrain on GH one by one, which is too time-consuming. Second, there are differences in the properties of the solvers. Parametric CAD geometric constraint solvers try to find a solution that satisfies all constraints exactly, and if the constraints are contradictory (over-constrained), they return an error without providing a solution. On the other hand, Kangaroo and Crane converge to a reasonable solution that takes into account the weights of the constraints even if they cannot satisfy all constraints [4][5], so they are not suitable for designing parts that require precise dimensions. This is likely a result of selecting solvers with properties suited to their original uses, such as shape search and origami simulation.
Create a function called Parametric CAD.
I thought, "Why not change our approach slightly and make parametric CAD itself a component of GH, instead of defining geometric constraints and reference relationships on GH?" So, I created a plugin that allows FreeCAD to be used as a component of GH. It's called Paramecium.CLICK HEREAvailable from
FreeCAD is a free parametric CAD software that has been under development for over 20 years[6], and has become considerably more user-friendly since version 1.0 was released in 2024[7]. We selected it as our partner for this collaboration because of its future potential and the fact that it is free and easy to use.
Here's a brief introduction to Paramecium's features. Double-clicking a FreeCadPart component opens the FreeCAD GUI, where you can use FreeCAD functions such as defining shapes with geometric constraints in sketches and adding fillets by clicking "Reference" in the GUI. Shapes and values entered from GH can be referenced in the FreeCAD tree. Also, if the input is changed, the model is recalculated and the results are output to GH (Video 1).
The following is a somewhat detailed explanation, but there are some points we focused on regarding the behavior in GH. We wanted the processes defined in FreeCAD (saved in the FCStd file) to behave as pure functions from GH's perspective. Here, we treat the FCStd file as a "function definition," and for the shapes and parameters input from GH, we ensure that the same input returns the same output. The mechanism involves launching FreeCAD in a separate process each time the input changes, passing the input shape and variables via file, recalculating, and returning the results to GH (Figure 3).
In fact, when changing parameters such as dimensions on a typical parametric CAD UI, the result may not always be a pure function as described above. For example, when changing a dimension value on a sketch, the geometric constraint solver converges to the solution closest to the previous state. Therefore, if a constraint is applied that allows for multiple solutions, the resulting solution will depend on the previous state (Figure 4, top).
In the plugin I developed, simply changing the input to a component does not change the definition of the process.The .FCStd file is not overwritten, and from GH's perspective, it remains a pure function (Figure 4, bottom). The processing changes only when you double-click the component and explicitly specify it.This only applies if the .FCStd file is modified. Since the same shape is always obtained if the input is the same, the evaluation results will not change depending on the order in which the parameters are explored when performing optimization on GH.
Design example: Smartphone case with origami stand
As an example, let's design a smartphone case with a stand that folds flat when not in use using an origami mechanism. Traditionally, the modeling of the smartphone body and case would be done in parametric CAD, and the design of the origami part would be done in Crane on GH, requiring repeated switching between software. This back-and-forth would have to be repeated every time there was trial and error with dimensions, the stand angle, or a change in smartphone model.
Figure 5 shows the design process using Paramecium. First, the parameters for the base rectangular prism and the angle at which the smartphone will be held are defined in GH, and the target outline of the stand is created in the FreeCAD GUI based on these inputs. Parametric CAD excels at determining the shape so that the desired area (the angle at which the smartphone will be held) has the target dimensions. Next, an origami structure that can be unfolded relative to the target outline of the stand is designed in Crane, and the details of the smartphone body are modeled in parallel. Finally, the case is modeled in detail using these as inputs. Because everything is connected in GH, parameter changes require minimal effort.
I designed a smartphone case, had it 3D printed, and use it every day for convenience (Figure 6).
Conclusion
This article summarized the characteristics of Grasshopper and parametric CAD, and introduced "Paramecium," a plugin that allows you to use FreeCAD from within Grasshopper.
While we often think we're designing freely, we're frequently constrained by shapes that are easily expressed with the tools at hand. Designs created in Grasshopper tend to have a Grasshopper-like shape, and those created in parametric CAD tend to have a parametric CAD-like shape. We should strive to create good designs by freely combining tools in the right places.
References
[1] Breaking the blanks. “Grasshopper and Functional Programming”. 2012/03/18. https://breakingtheblanks.blogspot.com/2012/03/grasshopper-and-functional-programming.html(Accessed 2026/09/27).
[2] Daniel Piker. “Kangaroo Physics”. Food4Rhino. https://www.food4rhino.com/en/app/kangaroo-physics(Accessed 2026/09/27).
[3] Kai Suto, Kotaro Tanimichi, Kanata Warisaya. “Crane”. Food4Rhino. https://www.food4rhino.com/en/app/crane(Accessed 2026/09/27).
[4] Daniel Piker. “How does Kangaroo solver work?”. Rhino Forums. 2019/11/14. https://discourse.mcneel.com/t/how-does-kangaroo-solver-work/92075(Accessed 2026/09/27).
[5] Kai Suto, Yuta Noma, Kotaro Tanimichi, Koya Narumi, Tomohiro Tachi. “Crane: An Integrated Computational Design Platform for Functional, Foldable, and Fabricable Origami Products”. ACM Transactions on Computer-Human Interaction. 30(4). 2023. https://doi.org/10.1145/3576856
[6] Wikipedia. “FreeCAD”. https://en.wikipedia.org/wiki/FreeCAD(Accessed 2026/09/27).
[7] FreeCAD News. “FreeCAD Version 1.0 Released”. 2024/11/19. https://blog.freecad.org/2024/11/19/freecad-version-1-0-released/(Accessed 2026/09/27).
Introduction
At Nature Architects, we use Rhinoceros + Grasshopper (Rhino/GH below) for many tasks, including shape generation, analysis, and optimization. Rhino is a 3D CAD application widely used in product design and architecture, and GH is a visual programming environment that runs on top of it. Combined with its rich ecosystem of plugins, it lets you generate complex shapes algorithmically.
That said, I grew up with parametric CAD for mechanical design (Creo, SolidWorks, Fusion 360, etc.) from my student days, and there have been times when designing ordinary mechanical parts in Rhino/GH felt like a lot of work (related article). But this is less a flaw of GH than the flip side of one of its strengths: a clear flow of data.
In this article, I sort out where that extra effort comes from by comparing the nature of GH and parametric CAD. As a solution, I then introduce "Paramecium", a GH plugin that treats FreeCAD, one of the parametric CADs, as a "function". Finally, I show a design example: a smartphone case with an origami stand.
Part Design in Parametric CAD
In parametric CAD for mechanical design such as Creo, SolidWorks, and Fusion 360, you give a sketch conditions (geometric constraints) like "this line is parallel to that line", "this point lies on this circle", or "this dimension is 10 mm", and the shape is determined so as to satisfy them (related article). To specify what a constraint applies to, or where to add a feature such as a fillet, you click edges and faces on the screen to reference them.
Figure 1 shows the steps for designing a part that hooks a USB cable onto the edge of a desk (a USB cable holder). I first model it with provisional dimensions and finalize the dimensions at the end. Since it is rare for every dimension to be settled before design begins, what matters is how easily you can build a definition (a parametric model) whose shape follows as intended when dimensions change later, and how flexibly you can modify that definition afterward. In this example, the slit is constrained to the edge of the hole hole so that it keeps working as a slit even if the dimensions of the hole or the rectangular block change (step 3 in the figure). In step 5, I found it more natural to specify the hole position by the wall thickness than by its center, so I changed where the dimension is defined partway through.
You can build a similar model in GH, but every operation, such as "draw a rectangle whose vertex lies on the edge of the hole" or "add a fillet to a particular edge", requires you to work out how to identify the geometry you want to reference within the data flow. And when you want to move where a dimension is defined without changing the shape, as in step 5 of Figure 1, it becomes even more cumbersome in GH.
So the reason it felt like so much work is that GH has neither "geometric constraints" nor a "UI for selecting and referencing shapes on the screen". You could do only the detailed design in another CAD, but there are many situations where you want to finish a form created with GH's algorithmic shape definitions and plugin ecosystem into a concrete object in the same environment.
The Nature of Grasshopper and Geometric Constraints
One reason geometric constraints did not develop in GH may be that GH's way of processing data does not fit well with the idea behind geometric constraints. GH's data processing has the following characteristics:
- Data flows in one direction, from upstream to downstream
- A component receives inputs and returns outputs
- A process does not rewrite its input data but outputs new data
- Giving the same inputs to the same component always yields the same outputs
These properties closely resemble the ideas of functional programming [1]. The components and wires of Grasshopper can be seen as a visual expression of those ideas.
Geometric constraints in parametric CAD, on the other hand, are somewhat different in character. You give multiple constraint conditions like those in the previous section, and a solver finds a shape that satisfies them all at once. Here, values are not simply computed in one direction as input → process → output; multiple elements are related to one another. Such bidirectional dependencies do not fit well, as they are, with Grasshopper's one-way data flow that propagates values from upstream to downstream (Figure 2).
Is there no way to handle this kind of processing in GH? One example is the physics plugin Kangaroo [2] and the origami design plugin Crane [3]. They take multiple constraints and an initial state together as input to a solver, and find a shape that satisfies the conditions through iterative computation inside it. They are part of what makes the GH environment so rich.
However, it is not realistic to use Kangaroo or Crane to design a part like the USB cable holder in the previous section, for two reasons. The first is the UI: you would have to identify each point or line you want to constrain within GH, which takes far too much effort. The second is the difference in solver behavior. The geometric constraint solver of parametric CAD tries to find a solution that satisfies every constraint exactly, and when the constraints contradict each other (over-constrained), it returns an error instead of a solution. Kangaroo and Crane, on the other hand, converge to a reasonable solution that takes the weights of the constraints into account even when not all of them can be satisfied [4][5], so they are not suited to part design that requires exact dimensions. This is probably the result of choosing solvers whose properties match their intended uses, such as form finding and origami simulation.
Building Parametric CAD as a Function
Changing my approach a little, I thought: instead of defining geometric constraints and reference relationships in GH, why not make parametric CAD itself a component of GH? The result is a plugin that lets you use FreeCAD as a GH component. It is called Paramecium, and it is available here.
FreeCAD is free parametric CAD software that has been under development for more than 20 years [6], and it has become considerably easier to use since version 1.0 was released in 2024 [7]. I chose it as the partner for this integration because of its potential for future development and because it is free and easy to try.
Here is a quick tour of Paramecium's features. When you double-click the FreeCadPart component, the FreeCAD GUI launches, and you can use FreeCAD's features there: define a shape with a sketch that has geometric constraints, add a fillet by clicking references in the GUI, and so on. Shapes and numbers input from GH can be referenced in FreeCAD's tree. When an input changes, the model is recomputed and the result is output to GH (Video 1).
Here is a slightly more detailed point, but there is something I was particular about regarding behavior on the GH side: the process defined in FreeCAD (saved in a *.FCStd file) should behave as a pure function from GH's point of view. Here the FCStd file is regarded as the "definition of a function", and for the same input shapes and parameters coming from GH, it returns the same output. In terms of mechanism, every time an input changes, FreeCAD is launched as a separate process, the input shapes and variables are passed via files, and the recomputed result is returned to GH (Figure 3).
In fact, when you change a parameter such as a dimension in the UI of ordinary parametric CAD, it does not always behave as a pure function like the one above. For example, when you change a dimension value in a sketch, the geometric constraint solver converges to whichever solution is closest to the previous state. So if the constraints admit multiple solutions, the solution you get depends on the previous state (Figure 4, top).
With the plugin I developed, changing an input to the component does not change the process definition (the *.FCStd file is not overwritten), so it remains a pure function from GH's point of view (Figure 4, bottom). The process changes only when you double-click the component and explicitly modify the *.FCStd file. Because the same input always yields the same shape, even when optimizing in GH, the evaluation results do not change depending on the order in which parameters are explored.
Design Example: A Smartphone Case with an Origami Stand
As an example, let's design a smartphone case with an origami-mechanism stand that folds flat when not in use. Conventionally, you would model the phone and the case in parametric CAD and design the origami part with Crane in GH, going back and forth between the software many times. Every time you iterate on dimensions, or change the stand angle or the phone model, you would have to redo this back-and-forth.
Figure 5 shows the design flow using Paramecium. First, I define parameters in GH for the base rectangular block and the angle at which the phone stands, and based on these inputs I create the target outline of the stand in the FreeCAD GUI. Shaping it so that the place that matters (the angle at which the phone stands) comes out at the intended dimension is what parametric CAD does best. Next, I design a deployable origami structure for that target outline with Crane, and in parallel model the details of the phone itself. Finally, I use these as inputs to model the case in detail. Since everything is connected within GH, changing a parameter takes minimal effort.
I 3D-printed the designed case, and I use it conveniently every day (Figure 6).
Conclusion
In this article, I sorted out the nature of Grasshopper and parametric CAD, and introduced "Paramecium", a plugin that lets you use FreeCAD from within Grasshopper.
We like to think we design freely, but we are often constrained by shapes that are easy to express in the tool in front of us. What is designed in Grasshopper tends to look like Grasshopper, and what is designed in parametric CAD tends to look like parametric CAD. I hope to keep combining tools freely, using the right one for each job, to make good designs.
References
[1] Breaking the blanks. "Grasshopper and Functional Programming". 2012/03/18. https://breakingtheblanks.blogspot.com/2012/03/grasshopper-and-functional-programming.html(Accessed 2026/09/27)
[2] Daniel Piker. "Kangaroo Physics". Food4Rhino. https://www.food4rhino.com/en/app/kangaroo-physics(Accessed 2026/09/27)
[3] Kai Suto, Kotaro Tanimichi, Kanata Warisaya. "Crane". Food4Rhino. https://www.food4rhino.com/en/app/crane(Accessed 2026/09/27)
[4] Daniel Piker. "How does Kangaroo solver work?". Rhino Forums. 2019/11/14. https://discourse.mcneel.com/t/how-does-kangaroo-solver-work/92075(Accessed 2026/09/27)
[5] Kai Suto, Yuta Noma, Kotaro Tanimichi, Koya Narumi, Tomohiro Tachi. "Crane: An Integrated Computational Design Platform for Functional, Foldable, and Fabricable Origami Products". ACM Transactions on Computer-Human Interaction. 30(4). 2023. https://doi.org/10.1145/3576856
[6] Wikipedia. "FreeCAD". https://en.wikipedia.org/wiki/FreeCAD(Accessed 2026/09/27)
[7] FreeCAD News. "FreeCAD Version 1.0 Released". 2024/11/19. https://blog.freecad.org/2024/11/19/freecad-version-1-0-released/(Accessed 2026/09/27)

