Curved mesh with QuadraticBezier and Ribbon

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

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

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

1 Like