public class CreateFractalShapeFunctions
{
public static Geometry kochSnowflake(Geometry g, int n)
{
KochSnowflakeBuilder builder = new KochSnowflakeBuilder(FunctionsUtil.getFactoryOrDefault(g));
builder.setExtent(FunctionsUtil.getEnvelopeOrDefault(g));
builder.setNumPoints(n);
return builder.getGeometry();
}