# Lasso tool for 3D mesh

**URL:** <https://discourse.threejs.org/t/lasso-tool-for-3d-mesh/10027>\
**Category:** Questions\
**Tags:** geometry\
**Created:** [October 3, 2019, 8:15pm UTC](https://discourse.threejs.org/t/lasso-tool-for-3d-mesh/10027 "2019-10-03T20:15:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EliasHasle](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/eliashasle/32/3010_2.png) [@EliasHasle](https://discourse.threejs.org/u/EliasHasle)\
**Post date:** [October 3, 2019, 9:01pm UTC](https://discourse.threejs.org/t/lasso-tool-for-3d-mesh/10027/2 "2019-10-03T21:01:34Z")

</div>

Related: [Finding shortest path on mesh](https://discourse.threejs.org/t/finding-shortest-path-on-mesh/9395)

Once you have the loop, you will need to separate the mesh in two sets of triangles (assuming the mesh is connected, with no separate “islands”), using the loop as a border. I think I would do this by “flood-filling” the graph (actually, depth-first or breadth-frist does not matter) that you need for the path searches.

When you have two sets, separating them may have to be done by making two new geometries.

---

_[View the full topic](https://discourse.threejs.org/t/lasso-tool-for-3d-mesh/10027)._
