Abstract:The algorithm is designed for recognizing the polygons when given surface described by points and lines. The surface loads such as wind or snow loads can be applied on them accurately by the algcrithm when the spatial structures are given.Two examples are presented for demonstration.