#MenuTitle: Microbe
# -*- coding: utf-8 -*-
__doc__="""
Microbe
"""

import GlyphsApp
from NaNGFGraphikshared import *
from NaNGFAngularizzle import *
from NaNFilter import NaNFilter
from NaNGlyphsEnvironment import glyphsEnvironment as G
from NaNCommonFilters import moonrocks

class Microbe(NaNFilter):
    params = {
        "S": {"offset": 15, "iterations": 25000,  "maxsize":  40},
        "M": {"offset": 0,  "iterations": 70000,  "maxsize": 75},
        "L": {"offset": 0,  "iterations": 100000, "maxsize": 100},
    }

    def processLayer(self, thislayer, params):
        G.remove_overlap(thislayer)
        offsetpaths = self.saveOffsetPaths(
            thislayer, params["offset"], params["offset"], removeOverlap=False
        )
        outlinedata = setGlyphCoords(ConvertPathsToSkeleton(offsetpaths, 30))
        microbepaths = moonrocks(thislayer, outlinedata, params["iterations"], shapetype="blob", maxgap = 1, maxsize=params["maxsize"])
        ClearPaths(thislayer)
        if microbepaths:
            AddAllPathsToLayer(microbepaths, thislayer)
        self.CleanOutlines(thislayer, remSmallPaths=True, remSmallSegments=True, remStrayPoints=True, remOpenPaths=True, keepshape=False)

Microbe()

95b603bfbddfe0b160043ac254d533842c187343
<mask token>


class Microbe(NaNFilter):
    <mask token>
    <mask token>


<mask token>

<mask token>


class Microbe(NaNFilter):
    params = {'S': {'offset': 15, 'iterations': 25000, 'maxsize': 40}, 'M':
        {'offset': 0, 'iterations': 70000, 'maxsize': 75}, 'L': {'offset': 
        0, 'iterations': 100000, 'maxsize': 100}}

    def processLayer(self, thislayer, params):
        G.remove_overlap(thislayer)
        offsetpaths = self.saveOffsetPaths(thislayer, params['offset'],
            params['offset'], removeOverlap=False)
        outlinedata = setGlyphCoords(ConvertPathsToSkeleton(offsetpaths, 30))
        microbepaths = moonrocks(thislayer, outlinedata, params[
            'iterations'], shapetype='blob', maxgap=1, maxsize=params[
            'maxsize'])
        ClearPaths(thislayer)
        if microbepaths:
            AddAllPathsToLayer(microbepaths, thislayer)
        self.CleanOutlines(thislayer, remSmallPaths=True, remSmallSegments=
            True, remStrayPoints=True, remOpenPaths=True, keepshape=False)


<mask token>

__doc__ = '\nMicrobe\n'
<mask token>


class Microbe(NaNFilter):
    params = {'S': {'offset': 15, 'iterations': 25000, 'maxsize': 40}, 'M':
        {'offset': 0, 'iterations': 70000, 'maxsize': 75}, 'L': {'offset': 
        0, 'iterations': 100000, 'maxsize': 100}}

    def processLayer(self, thislayer, params):
        G.remove_overlap(thislayer)
        offsetpaths = self.saveOffsetPaths(thislayer, params['offset'],
            params['offset'], removeOverlap=False)
        outlinedata = setGlyphCoords(ConvertPathsToSkeleton(offsetpaths, 30))
        microbepaths = moonrocks(thislayer, outlinedata, params[
            'iterations'], shapetype='blob', maxgap=1, maxsize=params[
            'maxsize'])
        ClearPaths(thislayer)
        if microbepaths:
            AddAllPathsToLayer(microbepaths, thislayer)
        self.CleanOutlines(thislayer, remSmallPaths=True, remSmallSegments=
            True, remStrayPoints=True, remOpenPaths=True, keepshape=False)


Microbe()

__doc__ = '\nMicrobe\n'
import GlyphsApp
from NaNGFGraphikshared import *
from NaNGFAngularizzle import *
from NaNFilter import NaNFilter
from NaNGlyphsEnvironment import glyphsEnvironment as G
from NaNCommonFilters import moonrocks


class Microbe(NaNFilter):
    params = {'S': {'offset': 15, 'iterations': 25000, 'maxsize': 40}, 'M':
        {'offset': 0, 'iterations': 70000, 'maxsize': 75}, 'L': {'offset': 
        0, 'iterations': 100000, 'maxsize': 100}}

    def processLayer(self, thislayer, params):
        G.remove_overlap(thislayer)
        offsetpaths = self.saveOffsetPaths(thislayer, params['offset'],
            params['offset'], removeOverlap=False)
        outlinedata = setGlyphCoords(ConvertPathsToSkeleton(offsetpaths, 30))
        microbepaths = moonrocks(thislayer, outlinedata, params[
            'iterations'], shapetype='blob', maxgap=1, maxsize=params[
            'maxsize'])
        ClearPaths(thislayer)
        if microbepaths:
            AddAllPathsToLayer(microbepaths, thislayer)
        self.CleanOutlines(thislayer, remSmallPaths=True, remSmallSegments=
            True, remStrayPoints=True, remOpenPaths=True, keepshape=False)


Microbe()

#MenuTitle: Microbe
# -*- coding: utf-8 -*-
__doc__="""
Microbe
"""

import GlyphsApp
from NaNGFGraphikshared import *
from NaNGFAngularizzle import *
from NaNFilter import NaNFilter
from NaNGlyphsEnvironment import glyphsEnvironment as G
from NaNCommonFilters import moonrocks

class Microbe(NaNFilter):
    params = {
        "S": {"offset": 15, "iterations": 25000,  "maxsize":  40},
        "M": {"offset": 0,  "iterations": 70000,  "maxsize": 75},
        "L": {"offset": 0,  "iterations": 100000, "maxsize": 100},
    }

    def processLayer(self, thislayer, params):
        G.remove_overlap(thislayer)
        offsetpaths = self.saveOffsetPaths(
            thislayer, params["offset"], params["offset"], removeOverlap=False
        )
        outlinedata = setGlyphCoords(ConvertPathsToSkeleton(offsetpaths, 30))
        microbepaths = moonrocks(thislayer, outlinedata, params["iterations"], shapetype="blob", maxgap = 1, maxsize=params["maxsize"])
        ClearPaths(thislayer)
        if microbepaths:
            AddAllPathsToLayer(microbepaths, thislayer)
        self.CleanOutlines(thislayer, remSmallPaths=True, remSmallSegments=True, remStrayPoints=True, remOpenPaths=True, keepshape=False)

Microbe()
