Using methodology similar to the MATLAB model, the leg was modeled with variable dimensions in 2-D using Grasshopper.

2-D model of leg in Rhino. Note the y-axis running through the center of the leg.

 

Utilizing the y-axis symmetry of the leg just as in the MATLAB model, x=0 was taken at the center of the leg, he right vertices were input, and then the left vertices were simply the right vertices with negated x-values. For simplicity, and because this is a 2-D model, z=0 for all vertices. The MetaHopper plugin was used to constraint the bounds of y10 and y8 so that y10 was always between y12=0 and y8, and y8 was always between y9 and y7= max height. Once the vertices were found, they were connected with lines to form the edges of the leg.

Grasshopper script for image generated in Rhino 5.

Components used:

  • Get Connected Objects, Construct Domain, Set Slider Properties - Define bounds of sliders
  • Number Slider - Input to Construct Point for variable coordinates
  • Number - Input to Construct Point for fixed coordinates
  • Construct Point - Define vertices of leg
  • Multiplication - Multiply x-values of right vertices by -1 to get left vertices due to y-axis symmetry
  • Line - Connect the vertices to form the edges of the leg
  • No labels