CAD Battle #2 - March 2026 (4 Dimensional Modeling Competition)

Derek_Van_Allen_BD
Derek_Van_Allen_BD Member Posts: 1,171 PRO
edited March 2 in General

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:

  1. 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.
  2. 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)
  3. 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.
  4. 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 bait of a competition so these kinds of solutions will be rated less highly than ones that use other solutions to achieve their geometry.
  5. 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: 

«13

Comments

  • EvanReese
    EvanReese Member, Mentor Posts: 3,110 PRO

    This one will definitely produce some interesting models! Thanks for putting this together.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    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.

  • RhettRobinson
    RhettRobinson Member Posts: 250 ✭✭✭✭

    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!

  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    @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:

    TubeBendingGif.gif
  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    @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)

  • S1mon
    S1mon Member Posts: 4,648 PRO

    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

  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    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

  • S1mon
    S1mon Member Posts: 4,648 PRO

    A good, fast solver engine for FeatureScript would be really nice. It's not like there isn't WebGL and WebGPU… Onshape, pretty please?

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • christopher_dziuba
    christopher_dziuba Member Posts: 125 ✭✭✭
    edited March 16

    God I wish I had time to go through the URBS textbook I've got. Gotta work and make a living 1st

  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    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.

  • christopher_dziuba
    christopher_dziuba Member Posts: 125 ✭✭✭

    I know it just feels like more of a sub optimal work around sometimes.

  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    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?

  • wille_j
    wille_j Member Posts: 160 ✭✭✭

    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.

  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    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.

  • bryan_lagrange
    bryan_lagrange Member, User Group Leader Posts: 1,054 ✭✭✭✭✭

    The third Shapey is in process.

    SHAPEY.jpg
    Bryan Lagrange
    Twitter: @BryanLAGdesign

  • S1mon
    S1mon Member Posts: 4,648 PRO

    I'm definitely submitting my origami fold feature. I just need to figure out how to tweak it to fit the rules.

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • martin_kopplow
    martin_kopplow Member Posts: 1,646 PRO

    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!

  • elijahpekaar
    elijahpekaar Member Posts: 57 PRO

    @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

  • elijahpekaar
    elijahpekaar Member Posts: 57 PRO

    What would be some examples of this?

    "Onshape has plenty of solutions for getting a 2d unwrap of geometry…"

  • S1mon
    S1mon Member Posts: 4,648 PRO

    @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.

    image.png

    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.

    image.png


    It can do this simple slit model exactly:

    image.png

    But this "pop up" book style one gets weird quickly:

    image.png

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO
    edited March 23

    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.

  • elijahpekaar
    elijahpekaar Member Posts: 57 PRO

    Makes sense, when I export with the DXF setting on flatten analysis, I lose the bend/cut lines. Is that how it always works?

  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    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?

  • Derek_Van_Allen_BD
    Derek_Van_Allen_BD Member Posts: 1,171 PRO

    WITH final print pics as well. This is exactly the kind of thing I was hoping to see with this prompt. Good work man.

  • RhettRobinson
    RhettRobinson Member Posts: 250 ✭✭✭✭

    The stuff I am seeing here is blowing my mind! 🤯

  • elijahpekaar
    elijahpekaar Member Posts: 57 PRO

    This is really impressive. I think I could actually use this to draw some ACM work.
    Here is a video of me trying it:

    chrome_C8ebZnQJPr.gif

    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