# Facet Data Issue

**URL:** <https://forum.babylonjs.com/t/facet-data-issue/20093>\
**Category:** Questions\
**Created:** [April 17, 2021, 7:08pm UTC](https://forum.babylonjs.com/t/facet-data-issue/20093 "2021-04-17T19:08:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@adam](https://forum.babylonjs.com/u/adam)\
**Post date:** [April 17, 2021, 8:15pm UTC](https://forum.babylonjs.com/t/facet-data-issue/20093/3 "2021-04-17T20:15:21Z")

</div>

Looks like this iangilman had a similar issue.

> [@How to find nearest point on a mesh (for navigation constraint)?](https://forum.babylonjs.com/t/how-to-find-nearest-point-on-a-mesh-for-navigation-constraint/15472/5):
>
> getClosestFacetAtLocalCoordinates seems promising, but the facets aren’t granular enough to use by themselves. Is there a way to get their corner vertices so I can find the exact location within the facet?

How can I get the 3 vertices of a facet?

edit:

I found this in computeNormals which looks promising:

```
        v1x = indices[index * 3] * 3;
        v1y = v1x + 1;
        v1z = v1x + 2;

        v2x = indices[index * 3 + 1] * 3;
        v2y = v2x + 1;
        v2z = v2x + 2;

        v3x = indices[index * 3 + 2] * 3;
        v3y = v3x + 1;
        v3z = v3x + 2;

```

---

_[View the full topic](https://forum.babylonjs.com/t/facet-data-issue/20093)._
