Polyline.is_closed
- Polyline.is_closed()[source]
Determine if the polyline is closed.
- Returns
bool – True if the polyline is closed, False otherwise.
Examples
>>> polyline = Polyline([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [1.0, 1.0, 0.0], [0.0, 1.0, 0.0]]) >>> polyline.is_closed() False >>> polyline.points.append(polyline.points[0]) >>> polyline.is_closed() True