# Curved mesh with QuadraticBezier and Ribbon

**URL:** <https://forum.babylonjs.com/t/curved-mesh-with-quadraticbezier-and-ribbon/11698>\
**Category:** Questions\
**Created:** [June 14, 2020, 7:14pm UTC](https://forum.babylonjs.com/t/curved-mesh-with-quadraticbezier-and-ribbon/11698 "2020-06-14T19:14:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TechDreamer2](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@TechDreamer2](https://forum.babylonjs.com/u/TechDreamer2)\
**Post date:** [June 14, 2020, 7:14pm UTC](https://forum.babylonjs.com/t/curved-mesh-with-quadraticbezier-and-ribbon/11698/1 "2020-06-14T19:14:28Z")

</div>

Hello,  
I’d like to render a curved ribbon from the paths defined by two QuadraticBezier. In this example ([https://playground.babylonjs.com/#LTII1Y#1](https://playground.babylonjs.com/#LTII1Y#1)) I get an error when creating the quadratic bezier:

“Cannot read property ‘length’ of undefined”

Interestingly if I comment out the ribbon code and just render the quadratic bezier curve I get the rendering working without error.

What do I miss?

Thx, P

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [June 14, 2020, 7:29pm UTC](https://forum.babylonjs.com/t/curved-mesh-with-quadraticbezier-and-ribbon/11698/2 "2020-06-14T19:29:23Z")

</div>

When you are creating mesh you are using Mesh method with MeshBuilder parameters. Use BABYLON.MeshBuilder.CreateRibbon(

---

<div class="post-metadata">

**Author:** ![TechDreamer2](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@TechDreamer2](https://forum.babylonjs.com/u/TechDreamer2)\
**Post date:** [June 14, 2020, 7:39pm UTC](https://forum.babylonjs.com/t/curved-mesh-with-quadraticbezier-and-ribbon/11698/3 "2020-06-14T19:39:05Z")

</div>

Thank you. I fixed it in [https://playground.babylonjs.com/#LTII1Y#3](https://playground.babylonjs.com/#LTII1Y#3) for future reference
