c# - Draw Circle Inside a Polygon -


i need algorithm that, given array of points representing polygon (which rectangle-ish shape, nonregular polygon), , given point click location within polygon, fit circle touching 3 sides of polygon closest clicked location, maximizing overall coverage of circle without leaving boundary

it's easy touching 2 sides (find centroid, find shortest distance edge, etc) - touching 3 sides challenge. see attached hand drawing.

enter image description here

i need answer soon..thanks!

problem related medial axis. points centers of circles touching 3 or more sides branching points of medial axis. enough make medial axis, find branching points , given click position find closest one.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -