Back to top

    ReQL command: polygon_sub

    Command syntax

    polygon1.polygon_sub(polygon2) → polygon


    Use polygon2 to “punch out” a hole in polygon1. polygon2 must be completely contained within polygon1 and must have no holes itself (it must not be the output of polygon_sub itself).

    Example: Define a polygon with a hole punched in it.

    outer_polygon = r.polygon(
    inner_polygon = r.polygon(

    Get more help

    Couldn't find what you were looking for?