Package micycle.pgs.commons
Class ChaikinCut
java.lang.Object
micycle.pgs.commons.ChaikinCut
Chaikin’s corner-cutting algorithm, which is used to perform polygon
smoothing. The algorithm involves repeatedly generating a new curve by
cutting corners off the original (based on some fixed ratio).
- Author:
- Manohar Vanga
-
Method Summary
Modifier and TypeMethodDescriptionstatic processing.core.PShape
chaikin
(processing.core.PShape shape, float ratio, int iterations)
-
Method Details
-
chaikin
public static processing.core.PShape chaikin(processing.core.PShape shape, float ratio, int iterations)
-