# How to split vertex

**URL:** <https://forum.babylonjs.com/t/how-to-split-vertex/38594>\
**Category:** Questions\
**Tags:** mesh, meshes, vertex\
**Created:** [February 28, 2023, 6:27am UTC](https://forum.babylonjs.com/t/how-to-split-vertex/38594 "2023-02-28T06:27:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sayan](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sayan](https://forum.babylonjs.com/u/sayan)\
**Post date:** [February 28, 2023, 6:27am UTC](https://forum.babylonjs.com/t/how-to-split-vertex/38594/1 "2023-02-28T06:27:34Z")

</div>

Hello,  
How to split an elevated mesh vertex using a non elevated vertex data. Basically I need to split a mesh bounding area which is inside a path vertex.  
Thanks

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [February 28, 2023, 12:56pm UTC](https://forum.babylonjs.com/t/how-to-split-vertex/38594/2 "2023-02-28T12:56:40Z")

</div>

Hello,

You want to split a mesh in two: vertices that are inside an area and vertices that are outside? Like this?  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/0/40afdad37dd81bf76b831164e41b83c028dbd4bd.png)

---

<div class="post-metadata">

**Author:** ![sayan](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@sayan](https://forum.babylonjs.com/u/sayan)\
**Post date:** [February 28, 2023, 1:44pm UTC](https://forum.babylonjs.com/t/how-to-split-vertex/38594/3 "2023-02-28T13:44:54Z")

</div>

Yes exactly.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [March 30, 2023, 12:16pm UTC](https://forum.babylonjs.com/t/how-to-split-vertex/38594/4 "2023-03-30T12:16:20Z")

</div>

Hello, apologies for not answering earlier. But the easiest way would be to iterate over the mesh’s edges, as one edge could have a vertex inside the area and one outside it, so you’d have to split the edge in two. There are a few data structures that help iterate over edges, like the Half-Edge structure: [Half-Edge Data Structures (jerryyin.info)](https://jerryyin.info/geometry-processing-algorithms/half-edge/)
