Instance Method
cleanUpGrid(_:)cleanUpGrid:cleanUpGrid_
Removes redundant nodes and rounds node positions to a grid.
Declaration
func cleanUpGrid(_ grid: GSGridSettings)Declaration
- (void) cleanUpGrid:(GSGridSettings) grid;Declaration
cleanUpGrid_(grid: GSGridSettings)Discussion
Cleanup removes nodes that do not affect the path shape within the cleanup tolerance. Node positions are rounded when the grid is meaningful. It also closes an open path when its endpoints are nearly coincident.
See Also
Cleanup
Removes redundant nodes and rounds node positions to the layer grid.
Node indices that cleanup would keep.
Removes adjacent on-curve nodes at the same position.
See Also
Cleanup
Removes redundant nodes and rounds node positions to the layer grid.
Adds the node indices that cleanup would keep.
Removes adjacent on-curve nodes at the same position.