# `GSPath setClosePath:`

*Instance Method*

Opens or closes the path and adjusts its endpoint nodes.

## Declaration

```swift
func setClose(_ closed: Bool)
```

```objc
- (void) setClosePath:(BOOL) closed;
```

```python
setClosePath_(closed: bool)
```

## See Also

### Closed/Open

- [`GSPath.closed`](/Core/GlyphsCore/GSPath/closed) — Whether the final node connects to the first node.
- [`GSPath setClosePath:fixStartNode:`](/Core/GlyphsCore/GSPath/setClosePath:fixStartNode:) — Opens or closes the path and adjusts its endpoint nodes.

