# `GSPath makeCornerFirstNodeIndex:endNodeIndex:`

*Instance Method*

Replaces a node range with a sharp corner fitted to the neighboring segments.

## Declaration

```swift
func makeCornerFirstNodeIndex(_ firstNodeIdx: Int, endNodeIndex endNodeIdx: Int)
```

```objc
- (void) makeCornerFirstNodeIndex:(NSInteger) firstNodeIdx endNodeIndex:(NSInteger) endNodeIdx;
```

```python
makeCornerFirstNodeIndex_endNodeIndex_(firstNodeIdx: int, endNodeIdx: int)
```

## See Also

### Convenience

- [`GSPath positionAtIndex:`](/Core/GlyphsCore/GSPath/positionAtIndex:) — Position for a node index.
- [`GSPath openCornerAtNode:offset:`](/Core/GlyphsCore/GSPath/openCornerAtNode:offset:) — Opens an on-curve corner by the offset distance.
- [`GSPath removeOffcurveWithStartIdx:endIdx:`](/Core/GlyphsCore/GSPath/removeOffcurveWithStartIdx:endIdx:) — Removes an off-curve node range from a quadratic segment.

