Chainmail Simulation

I’m trying to make a flexible chainmail pattern in Grasshopper. I’m still a beginner and can’t quite get it to work. How to make a definition like this?
Any help would be highly appreciated. Thanks for your support!

Back in July 2022 I found a semi-solution for 3D printing a chainmail example. It uses rectangles instead of circles, and it’s clear to me that it’s not possible to print a chainmail with circles unless you have a resin printer. This is the result I came up with:

and here is a lengthy description which is worth reading:

https://cults3d.com/en/3d-model/game/chainmail-birk

The GH file itself is quite simple - it arranges multiple copies of a single link (“Original Link” in the GH file) in the proper way. That link is formed by connecting 8 rectangular solids into a single Closed Brep.

To make the link you need 2 Y pieces, 2 X pieces, and 4 Z pieces. Note that there are only 3 different types: long Y, medium X, and short Z. For some reason I don’t remember I made the link in the GH file a pre-defined object, but you can easily make the 3 parts by extruding a small square. Doing this would actually increase the flexibility of the GH file quite a bit.

As I noted in my 2022 description, chainmail is much more complex than it seems. So be prepared to print the result twice. You will likely want to pick up the first print to see how everything fits together. When you do this you will mis-align the individual links, and it is very difficult to get them back in the correct arrangement. That’s what the 2nd print is for. (I just can’t resist adding this: “You have been warned.”)

Have fun.

chain mail.gh (21.1 KB)

Thanks so much for the reply! Just to clarify, I’m not really looking for chainmail modeling, but rather the physics simulation of its movement and collisions, just like the one in the video.I’ve attached the definition I’m currently working on. The geometry isn’t exactly the same as in the video, but the end goal is to achieve that same type of movement and behavior.

Chainmail Classic.gh (43.1 KB)


No idea how @Petras_Vestartas made this run so smoothly.

With Kangaroo I would fake the solid collisions between rings and use the collider goal with line segments. I’d run the solver with the multipipe component disabled. I’m not sure how much the ignore a / b input helps and it would be nice to get @DanielPiker to look at this.

chainmail_mrtn.gh (20.7 KB)

I do not have code no more. But today just ask Claude to write C++ wrapper for rhino bullet physics. Bullet physics is pretty optimized and used for robot simulation all over the world:GitHub - bulletphysics/bullet3: Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc. · GitHub

Thank you Petras for your insight. I will look into the approach you indicated and keep working to learn and improve everything. This is a crucial part of my PhD research. Thank you for your time!

Thanks for your help. Your script will help me a lot.

Advance apologies if this strays too off-topic, but since you are interested not in how to produce it, but how it moves, it reminded me of some experiments I did assisting my kinetic-artist friend, Ned Kahn, and posted on this forum. Though made of polycarbonate (Kaynemaile), I think its geometry is the same / close to the script @LuLAB_studio posted. I was helping Ned both with the motion control control for his prototype and also simulating it via GH/K2. Since all internal rings link with four of its neighbors, I didn’t try to model the links themselves, but just used a mesh. Though far from proof, the simulations I was able to produce looked very similar to what I was seeing with the real thing. Depending on what you hope to do, @DanielPiker 's Kangaroo examples of fabric and wind may be of value to you, as well as multiple “draping” posts on the forum.

Thank you so much, Bruce, for your help! Since I’m planning to build a real physical model and will be working with a lot of different geometries (not just the ones in the initial script), I’ll actually use classic chainmail to validate the drape protocol first. After that, I want to move on to a linkage fabric chainmail to see how the gaps and the geometry interact basically, the tighter the links, the better. Anyway, any help or new angles I can try are awesome, and I’ll definitely incorporate your insights into my work. Thanks again!