How to represent a polygon with hole(s)?

前端 未结 6 1873
野趣味
野趣味 2021-01-02 10:17

It\'s usually popular to work with polygons with their vertices sorted CW or CCW in vectors(2*1 or 1*2 matrices). However, how to state polygons with holes in vectors?

6条回答
  •  天命终不由人
    2021-01-02 11:14

    A polygon, plus a list of polygonal holes. Just be sure the various polygons don't intersect.

    What do you plan to do with this thing?

提交回复
热议问题