resampleIcon function
Full input pipeline: icon → cubics → sampled subpaths with their topology (the plan needs to know which subpaths are closed loops).
Implementation
List<Sampled> resampleIcon(MorphIconData input, [int n = 64]) => iconToCubics(
input,
).map((path) => Sampled(resamplePath(path, n), path.closed)).toList();