# `GSPath applySolutions:toNodes:grid:`

*Type Method*

Applies converted quadratic segments to existing nodes.

## Declaration

```swift
class func applySolutions(_ segments: [GSPathSegment], to nodes: [GSNode], grid: GSGridSettings) -> Bool
```

```objc
+ (BOOL) applySolutions:(NSArray<GSPathSegment *> *) segments toNodes:(NSArray<GSNode *> *) nodes grid:(GSGridSettings) grid;
```

```python
applySolutions_toNodes_grid_(segments: list[GSPathSegment], nodes: list[GSNode], grid: GSGridSettings) -> bool
```

## Return Value

Whether the converted segments were applied.

## Discussion

The segments and nodes must describe the same path segments in the same order.

## See Also

### Curve Conversion

- [`GSPathCurveError`](/Core/GlyphsCore/GSPathCurveError) — The default tolerance for converting cubic curve segments to quadratic curve segments.
- [`GSPath convertToCubic`](/Core/GlyphsCore/GSPath/convertToCubic) — Converts the path to cubic curve segments.
- [`GSPath convertToTrueTypeError`](/Core/GlyphsCore/GSPath/convertToTrueTypeError) — The tolerance used when converting the path to quadratic curve segments.
- [`GSPath convertToQuadratic`](/Core/GlyphsCore/GSPath/convertToQuadratic) — Converts the path to quadratic curve segments.
- [`GSPath convertToQuadraticWithError:`](/Core/GlyphsCore/GSPath/convertToQuadraticWithError:) — Converts the path to quadratic curve segments.
- [`GSPath convertToBezier`](/Core/GlyphsCore/GSPath/convertToBezier) — Converts special curve node types to Bezier curve segments.
- [`GSPath convertToHobby`](/Core/GlyphsCore/GSPath/convertToHobby) — Converts the path to Hobby curve segments.

