# `GSComponent decomposedPathsRemovingOverlap:`

*Instance Method*

Detached paths produced by flattening the transformed component contents.

## Declaration

```swift
func decomposedPathsRemovingOverlap(_ removeOverlap: Bool) -> [GSPath]
```

```objc
- (NSArray<GSPath *> *) decomposedPathsRemovingOverlap:(BOOL) removeOverlap;
```

```python
decomposedPathsRemovingOverlap_(removeOverlap: bool) -> list[GSPath]
```

## Parameters

- `removeOverlap` — Whether to remove overlaps from the flattened paths.

## Discussion

Nested components and shape effects are flattened without modifying the component or its containing layer.

## See Also

### Decomposition

- [`GSComponent decompose`](/Core/GlyphsCore/GSComponent/decompose) — Replaces the component in its containing layer with transformed copies of the base-glyph layer contents.

