# `GSPath requiredNodeIndices(grid:)`

*Instance Method*

Node indices that cleanup would keep.

## Declaration

```swift
func requiredNodeIndices(grid: GSGridSettings) -> IndexSet
```

## See Also

### Cleanup

- [`GSPath cleanUp`](/Core/GlyphsCore/GSPath/cleanUp) — Removes redundant nodes and rounds node positions to the layer grid.
- [`GSPath cleanUpGrid:`](/Core/GlyphsCore/GSPath/cleanUpGrid:) — Removes redundant nodes and rounds node positions to a grid.
- [`GSPath removeDuplicateNodes`](/Core/GlyphsCore/GSPath/removeDuplicateNodes) — Removes adjacent on-curve nodes at the same position.

