# Setting required triangles

**URL:** <https://forum.mmgtools.org/t/setting-required-triangles/845>\
**Category:** User Help\
**Created:** [January 12, 2025, 9:43pm UTC](https://forum.mmgtools.org/t/setting-required-triangles/845 "2025-01-12T21:43:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbettega](https://forum.mmgtools.org/letter_avatar_proxy/v4/letter/g/ee59a6/32.png) [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Post date:** [January 12, 2025, 9:43pm UTC](https://forum.mmgtools.org/t/setting-required-triangles/845/1 "2025-01-12T21:43:13Z")

</div>

Hello forum  
Let suppose one wants tò set a triangle {V1, V2,V3} as “required”, for example using the API function.  
Does the order of vertices count? If {V1,V2,V3} works, does {V1,V3,V2} work?  
Than you  
Giovanni

---

<div class="post-metadata">

**Author:** ![cprigent](https://forum.mmgtools.org/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cprigent](https://forum.mmgtools.org/u/cprigent)\
**Post date:** [February 11, 2025, 4:05pm UTC](https://forum.mmgtools.org/t/setting-required-triangles/845/2 "2025-02-11T16:05:53Z")

</div>

Dear Giovanni,

Using the API function `MMG3D_Set_triangle(mesh, v0, v1, v2, ref, pos)`, you can set the triangle as you wish. It is not important to respect the orientation of the triangle at this point since MMG will take care of the consistency during mesh analysis. Then, you can call `MMG3D_Set_requiredTriangles(mesh, pos)` to label triangle number `pos` as required.

Corentin
