Curved mesh with QuadraticBezier and Ribbon

I’d like to render a curved ribbon from the paths defined by two QuadraticBezier. In this example ( 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 for future reference

1 Like