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.
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
Post a Comment