Restrict drawing to Polygon area Sample This sample shows how to restirct the drawing of shapes to such that they must fit inside a specified polygon area. While drawing poly shapes, a preview line will still appear when the mouse is outside of the polygon area, however these will be removed as you draw and complete the shape.