Order of vertices

Hi,

When creating a custom mesh, do we need to maintain any specific order when defining the vertices data?

Lets say, I want to build a triangle. I have three points > p1,p2, p3
In my vertex data, I can define these points in any order. That is in 3! (three factorial) ways like (p1, p2, p3) or (p2, p3, p1) … etc.

In the below example I just changed the order but the output is different.

https://www.babylonjs-playground.com/#VKBJN#220

Can you please clarify?

Thanks in advance.

Found answer at Create Custom Meshes - Babylon.js Documentation
Thank you Babylon team for the clean documentation

1 Like

You can’t imagine how glad I am to read that!!!

2 Likes