Find coordinates of facet vertices

Hello again !

I asking for help for something I struggled hard with.

The question is quite simple : how to get the 9 coordinates of a facet ?
A quick PG : https://playground.babylonjs.com/#1RZ1LE#1

I just found a playground where the indexes of the vertices are regrouped, but I still don’t know what to do with this.

Just this, so far : https://playground.babylonjs.com/#1RZ1LE#2

Hey there, here’s an example to get the 3 points of the clicked facet. I condensed it into a for loop since it’s the same process for each of them. Essentially it’s a two step process: first get the index from the indices array, then get the position from the positions array. :slight_smile:

1 Like

MANY MANY THANKS :pray: @Blake

This unties so many problems I had, you can’t even imagine !

Thanks again !

2 Likes