CAD Battle #2 - March 2026 (4 Dimensional Modeling Competition)
Now that's a provocative title, huh?
If you've followed my recent posting of featurescripts and my general posting around the forums, you'll know that Onshape's simultaneous sheet metal engine is one of my favorite things about the software and that it drives most of the projects and products I put out in one way or another. The ability to see the folded and unfolded states at the same time is so much more intuitive than other sheet metal systems in other software I've used. You might then assume that sheet metal fabrication itself is also my jam - and while partly true, that's not the full story. The thing that actually interests me about sheet metal fabrication is that you can take a model in a complex folded configuration, flatten it out into a different state to prep it for manufacturing, and fold it all back up in reality to match the original model and get highly complex parts via some forming operation that would be difficult or impossible in other manufacturing methods. There are other manufacturing processes that this also describes, here are a few examples:
Laser Cut Tube Bending
Kerf Bending Plywood
ACM Origami
Foldable 3d Prints
I tried to find a video link but couldn't find one that demonstrated the use case well enough.
These are all manufacturing methods which deliver extra complexity in the final product and make it easy to fill out a larger 3d volume with fewer steps in fabrication, less material needed, and one single part performing the job of many. But there's something else common among them all: modeling for any of these things is hard. Or at the very least, tedious. So you're substituting fabrication labor for modeling labor. That can be okay if you've got a product that manufactures at high volumes but I'm all about the 1 of 1 unique parts, and I like solutions that can scale that way. The other commonality among them is that the flattened or unrolled states of these flexible parts are 3 dimensional themselves, and cannot be represented with pure 2d linework alone. Even the example of the ACM has 90 degree bevels cut into the sheet which, while possible to represent as a .DXF, would abstract away the true geometry of the parts and result in inaccurate renders or worse, potentially allow for you to send out bends past that 90 degree angle that won't fit correctly when machined. Onshape has plenty of solutions for getting a 2d unwrap of geometry, but comparatively few solutions for a 3 dimensional deform. I'm looking to explore that landscape with this competition.
🚩The Goal
This 4D modeling challenge is an open ended hunt for procedural workflows that can allow you to create complexity in your non-sheet-metal parts without introducing it to the modeling stage, and simultaneously without compromise for the render. Show me your best foldables and flex on the other competitors.
🚫 Ban List
None this time. All features are fair game, but there are likely many you should steer away from. There's a Flex feature in the wild that might seem like an attractive proposition for this competition but it's probably a trap for more complex builds.
🏆 Criteria for the Winner
This competition has no explicit target model. Instead we are looking for:
- Folded and Unfolded States of Geometry: The obvious. This competition is about showing off parts which are intended to be produced to fit a final product state but need to be unrolled or flattened for manufacturing. I suppose you can also show intermediate stages of manufacturing model for bonus points, but only the 2 are necessary.
- Geometric Parity Between States: The geometry of the unfolded state must have corresponding geometry in the folded state. Something like @NeilCooke's new Unfold Frame feature, while an excellent tool would not pass this criteria because the final folded state of the frames post-manufacturing should show the bend geometry. Presume you need to create a render of the final parts, and missing geometry would be inaccurate to the final product. (We won't actually be doing renders but that's an example of why this would be necessary)
- Complexity of Geometry: The unfolded manufacturing state of your parts must be more complex than a simple 2d sheet. Surface Flatten and sheet metal workflows are impressive but this competition is specifically an exploration of parts that must be exported in 3 dimensions, or at least 2.5.
- Practicality of Modeling Practice: There are lots of ways you could painstakingly achieve manufacturing models by pure sketch horsepower and drafting diligence but this is a workflow exhibition
and blatant featurescript baitof a competition so these kinds of solutions will be rated less highly than ones that use other solutions to achieve their geometry. - Document Creation Date: This being an exposition type competition without a target model to reference, you could theoretically submit any existing document as an entry. To level the playing field your submission must be created after March 1st this year. You can use existing workflows but you gotta start from the same starting line as everyone else. This includes any Derive shenanigans.
Submissions will be open for the month of March and then the first week of April we'll take a forum poll of submissions for whichever submission impresses us the most. The best one will once again get mailed a Shapey.
Hall of Fame:
Winners of previous CAD Battles:
- Winner of CAD Battle #1 - January 2026 - @EvanReese
Comments
-
This one will definitely produce some interesting models! Thanks for putting this together.
0 -
My hope is that leaving the target open ended gets more imaginative submissions than sticking strictly to the script of modeling exactly the same bracket as everyone else, but we'll see how it goes. I did choose a deliberately more difficult modeling challenge this time though so there might be fewer attempts due to that.
Unless the Onshape devs were to launch solid deformation tools in the next couple of weeks which would A: be hilarious and B: immediately trivialize half of the things you see in the above list.
0 -
I am very interested in this style of workflow working in the tire realm. So far I have a fairly good workflow to create a true to life tire, but being able to provide a flat pattern is much trickier. Ideally I could create a flat or straight section of the tire and roll it into a tire shape, or create the tire shape and unroll it. I sadly don't have anything to share for the competition, but solid deformation tools would be incredible!
0 -
@RhettRobinson unrolling a tire pattern to a flat is a perfect example for this design challenge. Another example I forgot to give in the description above was doing textured 3d prints with detail and depth that print flat on the bed of the printer and get heat formed to shape. Modeling the flat is easy, representing the deformed solid takes some doing.
Not a ton of traffic yet for the first week of the competition, but that's partly expected due to the subject matter of this month being a more difficult challenge than the last CAD Battle. I suppose I'll share my work in progress without revealing the methods. I'm going to be attempting to tackle some tube bending joints for laser cutting since my Instagram feed is absolutely poisoned with reels of these right now:3 -
Would a paper airplane, but better than shown, apply??? Asking for a friend.:)
6 -
Hmmm. @bryan_lagrange, are you peeking at my homework? I'm working on an adaptation of Origami Simulator for Onshape
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
6 -
@bryan_lagrange a purely sheet metal features workflow would fall short of criteria 3 of the competition because it lacks complexity in the 3rd dimension when flattened, but could be a good starting point for some other kind of foldable. I did get in trouble at work one time for spending time making a paper airplane using Solidworks' sheet metal tools but it got used for the paper airplane launcher product renders and the design team thanked me for saving them the effort in their other software.
@S1mon same applies to this example although once you've got an origami simulator constructed it's not a huge leap to turn it into an ACM unfolder engine by applying extrudes with draft. (Crazy work already by the way, can't wait to see how it turns out)
0 -
I'm not using sheetmetal. It's all solver simulation stuff. The interesting thing is that it can flatten things that start in 3D that you can't flatten with sheet metal or the flatten analysis tool. It's not something I would use for production since the solver introduces a lot of error over time. It's more of a fun toy so far. Unlike the Origami Simulator that inspired it, FS doesn't get to use the GPU, so it's much much slower.
I'll think more about rule #3, and if there's a way to make this go beyond. I do have a thicken option built in, so having it do that with draft per face is not out of the question. Anything that's not a triangular face to begin with gets faceted to do the simulation - with slight dihedrals sometimes - so it would be tricky to get it to pretend to be the ACM thing for non-triangular faces.I'm still planning to get this running better for my own amusement anyway…
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
0 -
Oh I could tell it was a custom feature, I just meant to point out the criteria. It makes me wish there were a parallel processing capable studio available in Onshape to be able to do cool GPU accelerated stuff like this outside of the normal featurescript build order so I can do my true shape nesting algorithms or more complex meshy things
1 -
God I wish I had time to go through the URBS textbook I've got. Gotta work and make a living 1st
0 -
For the purposes of this competition you can actually get along quite well without it. My current tube bending thing is reliant on derived geometry and clever construction of arcs and transforms and surfacing math never enters the equation.
0 -
I know it just feels like more of a sub optimal work around sometimes.
0 -
This week had me working on an unrelated frame feature but I'll be putting in the weekend work to have more stuff to show before the end of the month deadline. I'm hoping to see a few more people make an attempt at some flexy parts workflows before time is up but this is a much more challenging problem set. Are there more people out there lurking in the forums who have something they've been working on quietly that want to share?
0 -
Hand up from me! I’ve been working on something… I’ll wrap up the last detail of the implementation that broke due to upstream changes and I’ll share where I’m at.
0 -
Theoretically if @NeilCooke unleashes his wire route flattening feature this month it would also qualify as a submission but I'm not sure if he's browsing this thread or close to completion on it.
1 -
-
This task definitely requires more time input, unless one is working at a suitable design anyway. I'm currently on something completely different, so I'd have to make up something especially for the battle - for which I unfortunately just don't seem to have the time this time. :0/ Good luck!
0 -
@S1mon @Derek_Van_Allen_BD This is exactly what I am looking for regarding ACM. Is there any way I can be notified when this is released? I would really like to try it. Thanks
0 -
What would be some examples of this?
"Onshape has plenty of solutions for getting a 2d unwrap of geometry…"
0 -
@elijahpekaar What I have sorta kinda works for simple "rigid-cyclic" folds. In other words, this "square twist" shape folds exactly (but with no k-factor adjustments). It wouldn't be that hard to have it extrude a thickened object which has the V-grooves on the back side in both folded and flat configurations.
However, it really can't handle complex objects with a lot of folds. If you want to DM me about any real projects you're trying to model, I might be able to tell you if there's a chance this could be at all useful.
A lot of the more complex folds need to fall back to "flexible" mode, where all the edges and angles are approximations using an iterative solver.
e.g. This "bird base" model is a "flexible" solve. Depending on what one was trying to do, an approximation could be fine for visualization, but if you're trying to use a folded up ACM thing as part of an assembly with tight tolerances, this would not work.
It can do this simple slit model exactly:But this "pop up" book style one gets weird quickly:
Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn
0 -
Great, thank you. Messaged
0 -
In native terms, the surface flatten analysis tool and sheet metal models will get you a 2d unwrap of 3d geometry out of the box. In Featurescript terms the opWrap function is also an unwrap function that can take cylinder or cone geometry and unfold it to flat if you put the effort into integrating it into a script.
This competition is deliberately not about the pure 2d cases because there are already workflows in place for that. I'm looking for things you'd use Solidworks' Flex feature or the Rhino Flow tools to do, or similarly nontrivial foldy things.
1 -
Makes sense, when I export with the DXF setting on flatten analysis, I lose the bend/cut lines. Is that how it always works?
0 -
It's the last week of the competition before the deadline, and though there's been less traffic this time around compared to previous competitions due to the more difficult scope of the task I'm confident we'll see some cool things come out of it. Theoretically still enough time for a someone to come up with an idea and full sprint from start to finish if they haven't yet chimed in about an entry so far in this thread.
The next challenge after this will definitely be a step down in difficulty, but I do think there's novelty in doing harder ones from time to time. Would people want a longer schedule for those kinds of challenges? Or should these be more lightweight by design to encourage more broad participation?
0 -
Finally it’s wrapped up to be able to submit! The last bits were definitely a little bit of an uphill battle. Apparently opWrap function doesn’t do solids as I planned form the start, only sheets. The more you learn! The foldable 3D prints example got me excited enough to go for it, and your blatant FeatureScript bait worked on me - so here you go!
This is coded by me without always a perfectly clear view of how to solve the next hurdle. So I’m sure there’s loads of efficiencies to be had. And it would definitely benefit from a refactoring. A lot of downstream information is re-queried where needed, and there’s likely much better data structures that would work from the start to the end. It’s the beta version. I’ll add description, icon, pdf etc. to be able to publish it next week.
These are the known pitfalls:
- Attribute-destructive edits will break it, I’m not sure if it’s possible to safe-guard to. Warning would be nice.
- The folding cause loads of literal edge cases in handling of corner truncation, I’ve had a look at some.
- Unfold is a little brute force and probably not super stable.
- Partial edge is not working.
- It currently doesn’t handle multiple folded constructions in the same part studio.
- Too large nominal thickness will break it, it’s related to some corner cutting with qClosestTo I think.
- It assumes all faces are in the same plane, and would likely break if not. There’s no check for it.
- Unwrap produce weird shapes of the living hinges in some areas from the opLoft, it’s not a deal breaker but not the most pretty.
- It should probably tell if the user has added features that interfere with the build plate after unfold, as it’s designed to target printing on FFF.
Enough with the caveats, let’s fold into what it does.
This is a two-set feature, one that folds the 4D structure from sketch faces - 4D fold model. With whatever settings make sens for you and your printer. And another that takes that folded structure and unfolds it - Finish 4D fold. Suppress/unsuppress the Finish 4D fold with a configuration and you can render both states.
In between these two features, the user can add whatever edits one desire to the parts of the folded structure. To some degree… It’s reliant on attributes, and that a fair bit of the living hinges are retained as the queries are likely not incredibly stable.
Last but not least, I’d love to share the edit permissions to anyone that would be willing to contribute to this feature. Let’s collaborate and not keep filling Onshape with copies of copies of FeatureScripts. Now, here's some more examples.
8 -
WITH final print pics as well. This is exactly the kind of thing I was hoping to see with this prompt. Good work man.
0 -
The stuff I am seeing here is blowing my mind! 🤯
0 -
This is really impressive. I think I could actually use this to draw some ACM work.
Here is a video of me trying it:I would personally be routing this on a CNC router, using this to create a dxf file would be ideal. I would, however, need a centerline to choose for the V groove. There are a lot of ideas I have for this feature
1
Categories
- All Categories
- 10.2K Community Support
- 4.6K General
- 194 Account and subscriptions
- 353 Data management
- 1.6K Product Feedback
- 215 New in Onshape
- 14 Onshape Labs
- 75 CAM Studio
- 35 PCB Studio
- 107 Simulation
- 209 Onshape Mobile
- 315 App Store & Partners Apps
- 8.2K Using Onshape
- 1.8K Drawings
- 2.3K FeatureScript
- 324 Learning Center
- 253 Education Community



























