# Choice of location

**URL:** <https://discourse.threejs.org/t/choice-of-location/24299>\
**Category:** Questions\
**Tags:** transform\
**Created:** [March 11, 2021, 10:35pm UTC](https://discourse.threejs.org/t/choice-of-location/24299 "2021-03-11T22:35:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeriemCHABBOUH](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/meriemchabbouh/32/16939_2.png) [@MeriemCHABBOUH](https://discourse.threejs.org/u/MeriemCHABBOUH)\
**Post date:** [March 11, 2021, 10:35pm UTC](https://discourse.threejs.org/t/choice-of-location/24299/1 "2021-03-11T22:35:42Z")

</div>

Hey guys!! i want to add for example a cube to a scene that contain a plane geometry, when the cube is added to the scene, **automaticly** a part or parts of the plane became colored (it’s a sign that the cube can be placed in this colored zone according to his dimensions).  
I can use the raycaster but i don’t know how. any help plz!

---

<div class="post-metadata">

**Author:** ![wilson0x4d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/wilson0x4d/32/16979_2.png) [@wilson0x4d](https://discourse.threejs.org/u/wilson0x4d)\
**Post date:** [March 11, 2021, 11:12pm UTC](https://discourse.threejs.org/t/choice-of-location/24299/2 "2021-03-11T23:12:00Z")

</div>

I suspect the code for the [voxel painter](https://threejs.org/examples/#webgl_interactive_voxelpainter) example could be re-adapted to fit your scenario, or, it may give you some ideas on how to structure your scene to make what you want to do a little easier.
