# Collision detection between shape geometry(using array of points) and plane geometry

**URL:** <https://discourse.threejs.org/t/collision-detection-between-shape-geometry-using-array-of-points-and-plane-geometry/9610>\
**Category:** Questions\
**Tags:** collision-detection\
**Created:** [September 12, 2019, 5:26pm UTC](https://discourse.threejs.org/t/collision-detection-between-shape-geometry-using-array-of-points-and-plane-geometry/9610 "2019-09-12T17:26:27Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [September 16, 2019, 7:29am UTC](https://discourse.threejs.org/t/collision-detection-between-shape-geometry-using-array-of-points-and-plane-geometry/9610/12 "2019-09-16T07:29:39Z")

</div>

@milind_anantwar  
Hi!  
Take a look at this post and its codepen example: [Check points is inside a polygon - doesn't work correct - #2 by prisoner849](https://discourse.threejs.org/t/check-points-is-inside-a-polygon-doesnt-work-correct/7291/2)  
It is for checking, if the center of a bin is inside of the polygon.

Read this topic: [[SOLVED] How to find intersection between two Rays?](https://discourse.threejs.org/t/solved-how-to-find-intersection-between-two-rays/6464)  
It’s about intersection of line segments (just line segments, methematical ones 🙂, not `THREE.LineSegments()`)  
You can use it for checking, if any line segment of bin rectangle instersects with any line segment of the polygon.

---

_[View the full topic](https://discourse.threejs.org/t/collision-detection-between-shape-geometry-using-array-of-points-and-plane-geometry/9610)._
