geom.poly.close

Syntax

e = geom.poly.close(g,p)

Close a polygon. An edge is created between the first node of the first edge and the last node of the last edge. If an edge already exists between the nodes, then the preexisting edge will be used by the polygon and returned.

Note

An error occurs if the polygon is already closed.

Returns:

e - edge pointer

Arguments:

g - geometry set pointer

p - polygon pointer