# `GSComponent bezierPath`

*Instance Method*

The transformed closed paths of the component layer and its nested components.

## Declaration

```swift
func bezierPath() -> NSBezierPath?
```

```objc
- (NSBezierPath *) bezierPath;
```

[See also `bezierPath` in the Python API](https://docu.glyphsapp.com/#GSComponent.bezierPath)

```python
pyobjc_instanceMethods.bezierPath() -> NSBezierPath
```

## Discussion

The result includes a placeholder for an unresolved, recursive, or empty base glyph.

Returns `nil` when the component has no base-glyph name.

## See Also

### Representations

- [`GSComponent bezierPathIgnorePlaceholder:`](/Core/GlyphsCore/GSComponent/bezierPathIgnorePlaceholder:) — The transformed closed paths of the component layer and its nested components.
- [`GSComponent bezierPathIgnorePlaceholder:seen:hasPaths:`](/Core/GlyphsCore/GSComponent/bezierPathIgnorePlaceholder:seen:hasPaths:) — Collects the transformed closed paths while traversing a component hierarchy.
- [`GSComponent openBezierPath`](/Core/GlyphsCore/GSComponent/openBezierPath) — The transformed open paths of the component layer and its nested components.
- [`GSComponent openBezierPath:`](/Core/GlyphsCore/GSComponent/openBezierPath:) — Collects the transformed open paths while traversing a component hierarchy.

