# Constraint Points

**URL:** <https://discourse.threejs.org/t/constraint-points/34223>\
**Category:** Questions\
**Tags:** controls\
**Created:** [January 28, 2022, 7:42am UTC](https://discourse.threejs.org/t/constraint-points/34223 "2022-01-28T07:42:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_Eichin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/florian_eichin/32/20375_2.png) [@Florian\_Eichin](https://discourse.threejs.org/u/Florian_Eichin)\
**Post date:** [January 28, 2022, 7:42am UTC](https://discourse.threejs.org/t/constraint-points/34223/1 "2022-01-28T07:42:56Z")

</div>

Hi three js community,  
I want to create kind of a cropping tool on a plane. Like this one more or less

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/8/6/8607ba0d383b35862073434587bf35b9b2f8ae07.png)  
by dragging (3) I can only move the height  
by dragging (4) I can move height and width

For the controllers I created meshes.  
How can I constraint all the points so that for instance if I drag down (4) also (3) and the top-right-corner move down?

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [January 28, 2022, 8:01am UTC](https://discourse.threejs.org/t/constraint-points/34223/2 "2022-01-28T08:01:31Z")

</div>

Hi!  
Something close about cropping is this topic: [Capture part of scene selected with mouse - #7 by prisoner849](https://discourse.threejs.org/t/capture-part-of-scene-selected-with-mouse/33413/7)  
I didn’t get the idea of using meshes as controllers, when you can do it with js and html elements 🤔

---

<div class="post-metadata">

**Author:** ![Florian\_Eichin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/florian_eichin/32/20375_2.png) [@Florian\_Eichin](https://discourse.threejs.org/u/Florian_Eichin)\
**Post date:** [January 28, 2022, 8:11am UTC](https://discourse.threejs.org/t/constraint-points/34223/3 "2022-01-28T08:11:25Z")

</div>

The idea is, that we want to still have the camera movement and rotation of the camera and so on. this could all be done with plain js/html but then we would have to map the camera movement and so on to the js/html elements, which we thought is the more tough and error prune task
