# Deform, bending a mesh

**URL:** <https://forum.babylonjs.com/t/deform-bending-a-mesh/7958>\
**Category:** Questions\
**Created:** [January 10, 2020, 11:23am UTC](https://forum.babylonjs.com/t/deform-bending-a-mesh/7958 "2020-01-10T11:23:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amboryus](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/amboryus/32/6346_2.png) [@Amboryus](https://forum.babylonjs.com/u/Amboryus)\
**Post date:** [January 10, 2020, 11:23am UTC](https://forum.babylonjs.com/t/deform-bending-a-mesh/7958/1 "2020-01-10T11:23:03Z")

</div>

Hello,  
how it is possible to bend / deform a given mesh at defined edges on it?

Here is a example mesh with bending edges and their bending zones.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/6/63dc5148f618a51820072c2852b6711f1eaaa54b.png)

So i understand, it maybe possible with skeletons and bones.  
Or is it possible to generate a bending simulation with a physic system?

What i want is to bend at the marked edges with a given angle.

Hope you are have any ideas.

---

<div class="post-metadata">

**Author:** ![Amboryus](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/amboryus/32/6346_2.png) [@Amboryus](https://forum.babylonjs.com/u/Amboryus)\
**Post date:** [January 10, 2020, 11:58am UTC](https://forum.babylonjs.com/t/deform-bending-a-mesh/7958/4 "2020-01-10T11:58:23Z")

</div>

Thanks for your quick answer.

You handle with two separate meshes. In my case i have only one mesh.  
Other Question:  
Is it possible to split one mesh at the given bendinglines in a set of meshes?

I found a possible solution to split a mesh i a set of meshes:  
PG: [https://www.babylonjs-playground.com/#B2DP5I#7](https://www.babylonjs-playground.com/#B2DP5I#7)

I think i givve that a try together with your paper folding solution.

---

<div class="post-metadata">

**Author:** ![Michael\_Prosser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/michael_prosser/32/6062_2.png) [@Michael\_Prosser](https://forum.babylonjs.com/u/Michael_Prosser)\
**Post date:** [January 10, 2020, 10:54pm UTC](https://forum.babylonjs.com/t/deform-bending-a-mesh/7958/6 "2020-01-10T22:54:40Z")

</div>

You can use a morphTarget [Use Morph targets - Babylon.js Documentation](https://doc.babylonjs.com/how_to/how_to_use_morphtargets)  
Would just require the end result mesh be created. One thing to remember - A morph target must be built from a mesh with the **EXACT** same number of vertices as the original mesh.
