# How to make clipping plane with react three fiber?

**URL:** <https://discourse.threejs.org/t/how-to-make-clipping-plane-with-react-three-fiber/37291>\
**Category:** Questions\
**Tags:** clipping-planes, materials, geometry\
**Created:** [April 21, 2022, 3:39am UTC](https://discourse.threejs.org/t/how-to-make-clipping-plane-with-react-three-fiber/37291 "2022-04-21T03:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanjil\_Hossain](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/tanjil_hossain/32/25460_2.png) [@Tanjil\_Hossain](https://discourse.threejs.org/u/Tanjil_Hossain)\
**Post date:** [April 21, 2022, 3:39am UTC](https://discourse.threejs.org/t/how-to-make-clipping-plane-with-react-three-fiber/37291/1 "2022-04-21T03:39:55Z")

</div>

I want to make a clipping plane in react three fiber. I want this building to be cut a specific part from the top in condition and reset again on condition. How I can do this? I’m using react three fiber.  
 ![Screenshot (6)](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/8/8/88fa2b358f845f2731963929e353ed07df81de19.png)

I found [example here](https://threejs.org/examples/?q=clip#webgl_clipping) but don’t know how would I do in r3f?

---

<div class="post-metadata">

**Author:** ![jorge](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jorge/32/9575_2.png) [@jorge](https://discourse.threejs.org/u/jorge)\
**Post date:** [December 20, 2022, 9:24pm UTC](https://discourse.threejs.org/t/how-to-make-clipping-plane-with-react-three-fiber/37291/2 "2022-12-20T21:24:48Z")

</div>

did you find something?  
this might help

> **[R3F - Clipping Example - CodeSandbox](https://codesandbox.io/s/r3f-clipping-example-8feekk)**
>
> R3F - Clipping Example by CodyJasonBennett using @react-three/drei, @react-three/fiber, react, react-dom, react-scripts, three

now I am looking on how to add caps to the clipped meshes
