Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Deform (New Custom Feature!) 🆕

MichaelPascoeMichaelPascoe Member Posts: 2,850 PRO
edited 12:59AM in FeatureScript

.

CadsharpSpin.gif  CADSharp & logo-128.png RENDERCAD have sponsored a new custom feature:

.

Deform (Pascoe).png Deform
It deforms a parts and surfaces via profile sections or lattice grids along a path. Useful when you need to bend, twist, and scale parts after they have already been modeled.

Note: It is still a work in progress but I think its good enough for first release.
https://cad.onshape.com/documents/303775db976a02780499bec3/w/80a914faf16b9cdbd2f23…

Special thanks to:

Deform Example 3.gif Deform 1.gif Screenshot 2026-05-01 013922.png

RENDERCAD
rendercad.ai - Photorealistic product rendering.

â–šâ–žâ–šâ–žâ–šâ–žâ–šâ–žâ–š
________________________________________________________________________

Comments

  • Derek_Van_Allen_BDDerek_Van_Allen_BD Member Posts: 942 PRO

    Could it be? My 4 dimensional dreams realized at last? And I didn't have to write the whole thing myself? It's beautiful.

  • MDesignMDesign Member Posts: 1,383 PRO
  • MichaelPascoeMichaelPascoe Member Posts: 2,850 PRO

    @Derek_Van_Allen_BD There is still work to do. if you want a challenge, see if you can get it to work on the test studios.


    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    â–šâ–žâ–šâ–žâ–šâ–žâ–šâ–žâ–š
    ________________________________________________________________________
  • EvanReeseEvanReese Member, Mentor Posts: 2,922 PRO

    @MichaelPascoe what a madman! This is ridiculously cool to see. I'm going to need a tutorial on the UI. So many levers to flip and knobs to twiddle.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • Derek_Van_Allen_BDDerek_Van_Allen_BD Member Posts: 942 PRO

    I'll definitely poke around and see how it runs compared to the FFD concept that I did that lacked the surface stitching.

  • MichaelPascoeMichaelPascoe Member Posts: 2,850 PRO

    @EvanReese alright, yeah, needs a quick demo / tutorial. I'll try to whip one up later.

    @Derek_Van_Allen_BD It seems to do ok with main body protrusions but has difficulty with small protrusions and pockets or large pockets.
    Almost got the acanthus leaf test studio to work and then it digressed again and looks like it does now.
    Either way, this is at least a starting point (or a black hole) and the closest thing I've seen so far to a full deformation feature.


    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    â–šâ–žâ–šâ–žâ–šâ–žâ–šâ–žâ–š
    ________________________________________________________________________
  • S1monS1mon Member Posts: 4,199 PRO

    This is both absolutely amazing and somewhat frustrating at the same time. I wish whatever underlying magic wouldn't make the surfaces so heavy and wouldn't do crazy things at the ends. This example is only using a simple single span degree 3 curve as the target, but the result is way more complex, and the ends are even heavier and more wobbly.

    I would also love to see a demo video. There are a zillion options.

    image.png

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

  • Derek_Van_Allen_BDDerek_Van_Allen_BD Member Posts: 942 PRO

    If it's the same magic as the tween surfaces magic, what's happening is the surfaces are being elevated and having knots inserted to match the deformation domains which is a necessary step to guarantee the resulting surfaces respecting locality of the driving geometry.

    Also if it's the *exact* same tween surfaces magic, I messed up some of the knot insertion logic and probably the points aren't being perfectly inserted in the intended regions. I can't actually look at the source until next week when I'm back in office after my trip to go play with some marbles.

  • MichaelPascoeMichaelPascoe Member Posts: 2,850 PRO
    edited 12:47AM

    Ok, here is a demo video.
    Also cleaned the feature up a bit so the user interface is more intuitive.
    (The clean up was after the video unfortunately, but its the same functionality just less overwhelming now.)

    @S1mon this is first draft so expect some rough curvature. Will try to improve.


    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    â–šâ–žâ–šâ–žâ–šâ–žâ–šâ–žâ–š
    ________________________________________________________________________
  • MichaelPascoeMichaelPascoe Member Posts: 2,850 PRO

    In case anyone wants to contribute to this feature, here are the areas it is lacking:

    • Concave faces and pockets
    • Small island protrusions on a side wall
    • Curvature heavy faces

    I recommend tossing it into codex gpt 5.5 or claude 4.7 and grabbing a coffee. 😎


    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    â–šâ–žâ–šâ–žâ–šâ–žâ–šâ–žâ–š
    ________________________________________________________________________
  • Konst_ShKonst_Sh Member Posts: 155 PRO

    So regarding hight curvature region sampling I might have some aproach used in curve transform features - vary point sampling density based on accumulated curvature function. For curve it would look like first take a number of evenly spaced curve parameters and corresponding curvatures, create a somehow a function that interpolates from accumulated sum of curvatures up to specific parameter to that parameter. That function has a property that given evenly spaced range of points on curvature axis it will map them into into unevenly spaced curve parameter points with the more dense regions where the curvature is higher. For the 2d case of face sampling this will likely require 2d interpolation dependency

  • wille_jwille_j Member Posts: 55 ✭✭✭

    wow, this is really impressive 🤩 well done!

  • tunahan_döner405tunahan_döner405 Member Posts: 7 ✭

    Thank you for the video, it was really helpful.

    Seeing how it works in practice made things much clearer, especially in understanding the overall workflow. I appreciate the effort you put into it!

    0502(1).gif giphy.gif
  • MichaelPascoeMichaelPascoe Member Posts: 2,850 PRO

    

    will probable add some of your features @Konst_Sh to the example repo for it and have it optimise. I should have done that from the start but this was supposed to only be a proof of concept; then;it actually worked lol.


    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    â–šâ–žâ–šâ–žâ–šâ–žâ–šâ–žâ–š
    ________________________________________________________________________
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.