@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
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?
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.