Interlocking Structures Revisited

interlocking structures revisited

I studied the interlocking joint details in Grasshopper here and here. This time, the interlocking structures were revisited with a cleaner code and an in-depth explanation. I believe that this is a very good educational exercise for learning the potential of the native Grasshopper components.

The Preparations

The Region Difference (RDiff) component is used to create the interlocking detail of a surface that is contoured with bi-directional spacing. In the first part of the code, after contouring our surface in two different directions (X and Y), we turn the curves into surfaces by Extrude (Extr). The vector components are used as the inputs of the Contour component. When you want to use different surfaces in this component, you can use, for example, Y and Z vectors instead of X and Y vectors depending on the direction of the reference surface.

Finding the Intersections

In the second part of the Interlocking Structures Revisited code, our aim is to find the points where the contour surfaces we have just produced intersect each other and to draw closed rectangular shapes facing those points in the right direction. These rectangles will then be subtracted from the contour lines with Region Difference (RDiff). We need to find the planes on which to draw our rectangles. The Rectangle component expects a plane and dimensions in the X and Y directions. We should place two of these rectangles for each intersection of the contour surfaces. One should be at the bottom and the other at the top. So that they are parallel to the contour surfaces. So that when we subtract these from the two contour surfaces, gaps can fit into each other perfectly.

Now, let’s find these intersection points. We intersect the contour surfaces we obtained with the help of Curve I Curve (CCX). We connect our contours in two directions to the A and B inputs of the Curve I Curve (CCX). The two Extrude (Extr) operations create our contour surfaces in separate branches. When we connect them to A and B as they are, they will not produce all the intersections we want. Therefore, the B input of the Curve I Curve (CCX) component is put into the Flatten operation (downward arrow shape). So we match each element in A with all the elements in B.

Drawing the Interlocking Structures Details

We must convert the points into planes facing the right direction. If you want to examine the data structure, you can connect a List Item (Item) to the P output of the Curve I Curve (CCX). Index 0 gives the points in the top row, and index 1 gives the points in the lower row. Our contour directions were the predefined X and Y directions. It is possible to control these directions parametrically, but it is easier to keep the directions constant and rotate the surface itself if possible and necessary. We will define our planes using our two contour directions and the axis, pointing upwards in the Z direction. In this case, the planes we need are Plane XZ (XZ) and Plane YZ (YZ). The Plane Origin (Pl Origin) component changes the origin of a plane.

When we enter more than one point in this component, we copy the plane. The intersection points we just obtained were in the form of data branches with indexes 0 and 1. Input B of the Plane Origin (Pl Origin) component takes the plane to be copied by changing its origin. First, we connect the XZ plane to this input. Thus, we copy planes in the XZ direction to the top points of the intersections. Then, by pressing shift from the keyboard, we connect the YZ plane to the B input of Plane Origin (Pl Origin). This will copy the YZ plane to the lower intersection points at index 1 of the points. You can observe all these developments by turning the components on and off.

Drawing the Rectangles

Now we must draw rectangles at the midpoints of these planes. Play with the components that determine the dimensions of the rectangles and examine which one works for what. Since we will perform boolean subtraction using rectangles, they must be slightly larger than the contours. As the contours of our surface become sharper, this excess will need to be even greater in order to be able to cut the contours nicely. Since the locations and directions of the rectangles are correct, we leave you to play with their sizes and continue with the third section.

Two-dimensional Boolean Operations

In the last part of the Interlocking Structures Revisited, we are using the Region Difference (RDiff) component. The rectangles we just created are extracted from the contour surfaces. Again, we require some data trickery to get the right rectangle out of the right contour. If you remember, as a result of the initial Extrude (Extr) operation, our contours formed separate branches. We convert the results of these two Extrudes (Extr) by connecting a Curve (Crv). The Region Difference (RDiff) component takes closed curves from which to extract something from input A, and shapes to output to input B.

In short, we will connect our contours to input A and rectangles to input B. It may also be possible to do this using a single Region Difference (RDiff). But for clarity, we will use two components for our two separate contour directions. If we examine, the rectangles facing XZ at index 0, and the rectangles below facing YZ at index 1. First of all, we separate the items with index i (0) and i+1 (1) with the List Item (Item) component.

Finishing the Interlocking Structures Revisited

If we try to make Region Difference (RDiff) with our contour sheets as it is, only one operation is done. From this, we understand that we must do the subtraction to match more than one rectangle versus one contour. When we examine the data structure of the 0 index rectangles, we can see that although they form a separate branch, their addresses progress in the form of {0;1}, {0;2}, {0;3} … {1;1}. This data structure was the product of Curve I Curve (CCX) in section number two when we intersect the contours.

The data structure we need is not to obtain each rectangle separately but to obtain the rectangles in the same order in the form of an aggregate data list. The Shift Paths (PShift) component that we use at this stage takes the data tree and gathers its elements in one level higher branch. Now, these data lists contain the rectangles in each row, and as a result of the Region Difference (RDiff) operation, all our subtraction in one direction is complete.

The Flip Matrix

So why did we put a Flip Matrix (Flip) for the second subtraction? In our first subtraction, the direction of our contour curves was the same as the direction of rectangles. To observe this, connect a Tree Branch (Branch) to a Construct Path (Path) component and make I 4 or 5. If you connect Shift Paths (PShift) to the T input of the Tree Branch (Branch) component, you will see that all the rectangles in the 5th path are already on the same plane as the subtracted contour curve.

Now if you connect the other (bottom) Tree Branch (Branch) to the same T entry this time, you will see that the bottom rectangles come in the same order. Although this may not seem like a problem, most of the rectangles with this data structure miss our second contour curves. These are actually facing exactly ninety degrees to the first. The Flip Matrix (Flip) component comes to our rescue. It flips the rows and columns of the data structure of our rectangles in opposite directions. If you connect the data from the Flip Matrix (Flip) this time to the T input of the Tree Branch (Branch), you will see that you lined up the rectangles parallel to the contour curve.

You can re-build the definition by looking at the image above and the explanation. However, if you liked this content and want to download the Grasshopper file; would you consider being my Patreon? Here is the link to my Patreon page including the working Grasshopper file for the Interlocking Structures Revisited.



Grasshopper | Interlocking Structures || contouring | digital fabrication | interlocking | surface
Print this post
April 10, 2023
Views: 1536


« Voronoi Puzzle
Koch Snowflake Fractal »



       
       
  • Search

  • Categories

    • Education
      • Basic Design
      • Design Geometry
      • Design Mathematics
      • Digital Fabrication
      • Parametric Modeling
      • Tutorials
    • Philosophy
      • Phenomenology
      • Philosophy of Language
    • Practice
      • 3D Models
      • Projects
      • Publications
      • Workshops
    • Research
      • 3D Printing
      • Building Facade
      • Calculus
      • Climate Analysis
      • Compass Constructions
      • Computational Geometry
      • Curves
      • Decorative Arts
      • Digital Fabrication
      • Evolutionary Solvers
      • Folding Structures
      • Fractals
      • Graph Theory
      • Interlocking Structures
      • Islamic Patterns
      • Linear Algebra
      • Minimal Surfaces
      • Muqarnas
      • Non-Euclidean Geometry
      • Paneling
      • Parametric Curves
      • Parametric Objects
      • Parametric Surfaces
      • Pattern Deformations
      • Patterns
      • Pavilions
      • Polyhedra
      • Rammed Earth Structures
      • Robotic Fabrication
      • Shape Grammars
      • Simulation
      • Space Syntax
      • Surface Constructions
      • Tessellations
      • Tools
      • Vector Fields
      • Virtual Reality
    • Tools and Languages
      • 3DS Max
      • 3DS Max Script
      • Grasshopper
      • Photoshop
      • Physical Prototyping
      • Revit
      • Rhino
      • Rhino Macro
      • Rhino Python
      • Rhino Script
      • Unity
  • Monthly Archive

    • May 2025 (2)
    • April 2025 (5)
    • December 2024 (40)
    • August 2024 (5)
    • July 2024 (6)
    • April 2024 (4)
    • March 2024 (10)
    • February 2024 (10)
    • January 2024 (8)
    • December 2023 (10)
    • August 2023 (3)
    • July 2023 (3)
    • June 2023 (7)
    • May 2023 (8)
    • April 2023 (7)
    • March 2023 (2)
    • February 2023 (2)
    • January 2023 (3)
    • December 2022 (6)
    • November 2022 (7)
    • January 2022 (1)
    • December 2021 (1)
    • October 2021 (3)
    • September 2021 (4)
    • August 2021 (4)
    • May 2019 (2)
    • April 2019 (1)
    • March 2019 (5)
    • January 2019 (2)
    • December 2018 (1)
    • November 2018 (4)
    • October 2018 (9)
    • July 2018 (1)
    • June 2018 (4)
    • May 2018 (1)
    • April 2018 (4)
    • February 2018 (2)
    • January 2018 (7)
    • August 2017 (9)
    • July 2017 (6)
    • October 2016 (1)
    • May 2015 (5)
    • April 2015 (8)
    • March 2015 (12)
    • February 2015 (4)
    • January 2015 (11)
    • November 2014 (1)
    • August 2014 (1)
    • June 2014 (2)
    • May 2014 (12)
    • April 2014 (5)
    • March 2014 (3)
    • February 2014 (6)
    • January 2014 (4)
    • December 2013 (5)
    • November 2013 (11)
    • October 2013 (2)
    • September 2013 (9)
    • August 2013 (4)
    • July 2013 (2)
    • June 2013 (14)
    • May 2013 (4)
    • April 2013 (10)
    • March 2013 (11)
    • February 2013 (11)
    • January 2013 (10)
    • December 2012 (10)
    • November 2012 (6)
    • October 2012 (13)
    • September 2012 (2)
    • August 2012 (5)
    • July 2012 (14)
    • June 2012 (6)
    • May 2012 (17)
    • April 2012 (15)
    • March 2012 (9)
    • February 2012 (16)
    • January 2012 (18)
    • December 2011 (20)
    • November 2011 (2)
  • Keywords

      3d printing . accuracy . add-on development . aluminium mesh . aluminium wire . anemone . angle . animate form . animation . apartment . aperiodic . approximation . archimedean . archimedean solid . archimedean spiral . architecture . arduino . area . array . ascii . attractor . award . b-spline . baklava . baldaquin . bambu . basic design . basis spline . basketball . Beginner . bend . bezier . bim . bitmap . blob . boolean . brick . bspline . buckminster fuller . buckminsterfuller . buckyball . building regulations . cage-edit . cairopentagonal . calatrava . calculus . canopy . cardboard . card design . cartesian house . casting . catalan solid . cellular . ceramic . cesaro . chamfer . chaos . chopsticks . circle . circle packing . closed . clusters . cnc cutting . color . column . compass . complex number . component . computation . computational design . computational geometry . computerization . concepts . constructivism . contouring . control points . convex hull . cost analysis . crane . crossover . cube . cura . curvature . curve . cycloid . dataflow . dataflow diagram . dataflow management . data list . data recorder . data tree . deboor . decasteljau . deformation . delaunay . deleuze . derivative . descartes . design competition . design contest . designcontest . design education . design exercises . design studio . diagram . digital design . digital fabrication . digital studio . dijkstra . display . divide . dodecahedron . dome . dot product . doyle . doyle spiral . dragon curve . dual . dwg . dymaxion . dynamic . dürer . edge bundling . education . egg-crate . ellipsoid . elongated . emergency . emergent . enneahedron . enneper surface . entrance . epicycles . equation . escher . euclid . euclidean construction . evolution door . excavated dodecahedron . excel . exhibition . fabrication . fabrik . facade . fermat . fibonacci . field . field lines . firefly . flange . flaps . flocking . flow . folding . font . force field . fourier . fractal . function . function curves . galapagos . game engine . gaudi . gaussian curvature . generative components . genetic algorithms . geodesic . geometry . gestalt . girih . goldberg . golden ratio . gosper . graph . graphic design . graph mapper . Grasshopper . grasshopper python . grid . growth . guitar . gyroid . hatch . helix . hendecahedron . herringbone . herschelsenneahedron . hexagon . hilbert . holomorphic . hoopsnake . hose . hotwire cutter . hypar . hyperbolic . hyperbolic space . hyperboloid . ice-ray . icosahedron . icosidodecahedron . image . image sampler . imagesampler . image sampling . interior design . interlocking . inverse kinematics . iqlight . islamic pattern . isovist . istanbul . iteration . ivy . julia . julia set . kagome . kangaroo . kinetic . kirigami . koch . kuka . kündekari . l-systems . ladybug . lamp . lanterns . laser . laser cutting . lattice . layout . leap motion . le corbusier . lecorbusier . leveling . lissajous . lissajous curve . lituus . lokma . loop . lowpoly . macro . mandelbrot . mantı . map . material . mathematics . maxscript . mecon . mesh . metaball . metamorphosis . mihrimahsultan . minimal surface . minimum spanning tree . mirror . miura ori . modeling . modulardesign . moebius . molding . monkey saddle . morph . motion . mug . muqarnas . musicxml . möbius . natural stone . nature . nesting . nexus . ngrid . noise . non-euclidean . normal . normalization . nurbs . nuts and bolts . object classes . occlusion . octahedron . ontology . opennest . origami . packing . paradigm shift . parametric . parametric design . parametric modeling . parametric object . parametric roof . parametric surface . parametric wall . parquet deformation . patch . pattern . pavilion . pedagogy . pendentive . penrose . pentagon . perception . performance . perlin . perlin noise . permaculture . philosophy . photoshop . phyllotaxis . pipe . planar . plane . planter . plaster . platonic solid . point . polygon . polyhedra . polyline . porous . poster . potplus . precast concrete . precision . printing . processing . projection . prototile . prototiling . prototypes . puzzle . pvc hose . pvc pipe . pyramid . python . qshaper . rammed earth . random . raytrace . record history . region . reptile . responsive . reverse vector . reversing vector . revit . revit family . rhino . rhinonest . rhinopython . rhinoscript . rhombicosidodecahedron . rhombus . riemann . risingchair . rivet . robot . robotic arm . robotic fabrication . roof . rubber band . rule-based design . ruled surface . rumi . savoye . science . section . seljuk muqarnas . semi regular . shape grammars . shapeshifting . shortestpath . sierpinski . signal . sinan . sine . sketch . skin . slope . snowflake . snub . snubsquare . socolar . sofa . software development . solar position . solid . sound . space-filling . spacechase . spacefilling . space syntax . spatial allocation . spec . sphenoidhendecahedron . sphere . spiral . spline . square . star . stellated . stellated icosahedron . stellation . string . stripe . structure . student works . subdivision . subsurface . surface . surface paneling . survey . sweep . symbiosis . süleymaniye . table . taenia . tangent . tattoo . technology . tensegrity . terrain . tessellation . tetrahedron . tetrakaidecahedron . text . textile . the primitive hut . tiling . timer . toolbar . tool calibration . topography . topology . transformation . tree . triangle . triangulation . truchet . truncated cuboctahedron . truncatedicosahedron . truncated icosidodecahedron . truncated octahedron . truncated tetrahedron . truss . tube . twisted tower . unit vector . unity . unroll . variation . vasari . vb.net . vbnet . vector . vector addition . vectorfield . vector magnitude . vector multiplication . vector normalization . vectors . vector subtraction . villasavoye . virtual reality . visualization . visual programming . void . voronoi . waffle . waterbomb . water cube . wave . weaire-phelan . webcam . william huff . wind . window . wood . wood stick . wood sticks . Workshop . zumthor

               
copyright 2024 designcoding.net | about designcoding | privacy policy | sitemap | end-user license agreement