# Adding walls from mouse clicks

**URL:** <https://discourse.threejs.org/t/adding-walls-from-mouse-clicks/15892>\
**Category:** Questions\
**Tags:** extrude-geometry\
**Created:** [June 4, 2020, 2:58pm UTC](https://discourse.threejs.org/t/adding-walls-from-mouse-clicks/15892 "2020-06-04T14:58:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [June 4, 2020, 3:26pm UTC](https://discourse.threejs.org/t/adding-walls-from-mouse-clicks/15892/2 "2020-06-04T15:26:10Z")

</div>

> [@mirko.simanic](#):
>
> Is there a way to grant different colors to different ‘sides’ (up, down, etc).

It is only possible apply two different materials to `ExtrudeGeometry`. One for the side faces, the other one for the caps.

> **[three.js dev template - module - JSFiddle - Code Playground](https://jsfiddle.net/m2bphoxa/)**
>
> Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.

If this setup is not sufficient for you, you have to modify `ExtrudeGeometry` so it defines `BufferGeometry.groups` data differently.

---

_[View the full topic](https://discourse.threejs.org/t/adding-walls-from-mouse-clicks/15892)._
