# Marquee selection

**URL:** <https://forum.babylonjs.com/t/marquee-selection/16453>\
**Category:** Questions\
**Tags:** tutorial\
**Created:** [December 9, 2020, 5:52am UTC](https://forum.babylonjs.com/t/marquee-selection/16453 "2020-12-09T05:52:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nekochanoide](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nekochanoide/32/12431_2.png) [@nekochanoide](https://forum.babylonjs.com/u/nekochanoide)\
**Post date:** [December 9, 2020, 5:52am UTC](https://forum.babylonjs.com/t/marquee-selection/16453/1 "2020-12-09T05:52:07Z")

</div>

Hey guys 👋.  
I need to implement marquee selection (box selection, rectangle selection).  
Deltakosh’s idea I found:

> [@Is marquee select possible?](https://forum.babylonjs.com/t/is-marquee-select-possible/4593/2):
>
> Yeah I would do something like drawing the rectangle with GUI or HTML then take all meshes, project their bounding box and test intersection between projected rectangle and selection rectangle

Idea looks goot to me, but instead of boundingboxes, I want to project edges of meshes and check if any edge is being inside rectangle selection.  
My problem is that I am not familiar with projection at all 🙁.  
Right now I am reading about this and will apprectiate any tips.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [December 9, 2020, 10:45am UTC](https://forum.babylonjs.com/t/marquee-selection/16453/2 "2020-12-09T10:45:59Z")

</div>

You can use the `Vector.Project / ProjectToRef` method to project a 3D vertex to screen space:

> **[Vector3 | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/babylon.vector3#project)**
>
> Class used to store (x,y,z) vector representationA Vector3 is the main object used in 3D geometryIt can represent etiher the coordinat \[API\]
