# `GSPath convertToQuadraticWithError:`

*Instance Method*

Converts the path to quadratic curve segments.

## Declaration

```swift
func convertToQuadratic() throws
```

```objc
- (BOOL) convertToQuadraticWithError:(NSError **) error;
```

```python
convertToQuadraticWithError_() -> tuple[bool, NSError]
```

## Parameters

- `error` — On output, a pointer to an error object that describes why the method failed, or `nil` if no error occurred. If you are not interested in the error information, pass `nil` for this parameter.

## Return Value

`YES` if the method succeeded, otherwise `NO`.

## Discussion

The conversion uses [`GSPath convertToTrueTypeError`](/Core/GlyphsCore/GSPath/convertToTrueTypeError) as its curve tolerance.

## 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 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.
- [`GSPath applySolutions:toNodes:grid:`](/Core/GlyphsCore/GSPath/applySolutions:toNodes:grid:) — Applies converted quadratic segments to existing nodes.

