OOF.Microstructure.Create_From_ImageFile(filename='statemapredbluesmall.png', microstructure_name='statemapredbluesmall.png', height=automatic, width=automatic)
OOF.Windows.Graphics.New()
OOF.PixelGroup.New(name='pixelgroup', microstructure='statemapredbluesmall.png')
OOF.PixelGroup.New(name='pixelgroup<2>', microstructure='statemapredbluesmall.png')
OOF.PixelGroup.New(name='pixelgroup<3>', microstructure='statemapredbluesmall.png')
OOF.Graphics_1.Toolbox.Pixel_Select.Color(source='statemapredbluesmall.png:statemapredbluesmall.png', range=DeltaRGB(delta_red=0.153846,delta_green=0.169231,delta_blue=0.169231), points=[Point(118.2,108.457)], shift=0, ctrl=0)
OOF.PixelGroup.AddSelection(microstructure='statemapredbluesmall.png', group='pixelgroup')
OOF.Graphics_1.Toolbox.Pixel_Select.Color(source='statemapredbluesmall.png:statemapredbluesmall.png', range=DeltaRGB(delta_red=0.153846,delta_green=0.169231,delta_blue=0.169231), points=[Point(-16.6286,192.214)], shift=0, ctrl=0)
OOF.Graphics_1.Toolbox.Pixel_Select.Color(source='statemapredbluesmall.png:statemapredbluesmall.png', range=DeltaRGB(delta_red=0.153846,delta_green=0.169231,delta_blue=0.169231), points=[Point(37.5071,174.85)], shift=0, ctrl=0)
OOF.PixelGroup.AddSelection(microstructure='statemapredbluesmall.png', group='pixelgroup<2>')
OOF.Graphics_1.Toolbox.Pixel_Select.Color(source='statemapredbluesmall.png:statemapredbluesmall.png', range=DeltaRGB(delta_red=0.153846,delta_green=0.169231,delta_blue=0.169231), points=[Point(63.0429,48.1929)], shift=0, ctrl=0)
OOF.PixelGroup.AddSelection(microstructure='statemapredbluesmall.png', group='pixelgroup<3>')
OOF.Graphics_1.Toolbox.Pixel_Select.Color(source='statemapredbluesmall.png:statemapredbluesmall.png', range=DeltaRGB(delta_red=0.153846,delta_green=0.169231,delta_blue=0.169231), points=[Point(-15.6071,194.257)], shift=0, ctrl=0)
OOF.Graphics_1.Toolbox.Pixel_Select.Clear(source='statemapredbluesmall.png:statemapredbluesmall.png')
OOF.Skeleton.New(name='skeleton', microstructure='statemapredbluesmall.png', x_elements=5, y_elements=4, skeleton_geometry=QuadSkeleton())
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=Refine(targets=CheckHomogeneity(threshold=1),criterion=Unconditionally(),degree=Trisection(rule_set='conservative'),alpha=0.29999999999999999))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=Refine(targets=CheckHomogeneity(threshold=0.83076899999999998),criterion=Unconditionally(),degree=Trisection(rule_set='conservative'),alpha=0.29999999999999999))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=SnapNodes(targets=SnapAll(),criterion=AverageEnergy(alpha=1)))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=Rationalize(targets=AllElements(),criterion=AverageEnergy(alpha=0.854626),method=SpecificRationalization(rationalizers=[RemoveShortSide(ratio=5.0), QuadSplit(angle=150), RemoveBadTriangle(acute_angle=15,obtuse_angle=150)])))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=SplitQuads(targets=AllElements(),criterion=AverageEnergy(alpha=0.769231),split_how=GeographicQ2T()))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=Rationalize(targets=AllElements(),criterion=AverageEnergy(alpha=0.854626),method=SpecificRationalization(rationalizers=[RemoveShortSide(ratio=5.0), QuadSplit(angle=150), RemoveBadTriangle(acute_angle=15,obtuse_angle=150)])))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=Anneal(targets=FiddleHeterogeneousElements(threshold=0.85164799999999996),criterion=AverageEnergy(alpha=0.30808099999999999),T=0.0,delta=1.0,iteration=ConditionalIteration(condition=AcceptanceRate(acceptance_rate=7),extra=0,maximum=100)))
OOF.Skeleton.PinNodes.Pin_Internal_Boundary_Nodes(skeleton='statemapredbluesmall.png:skeleton')
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=SwapEdges(targets=AllElements(),criterion=AverageEnergy(alpha=0.30808099999999999)))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=Rationalize(targets=AllElements(),criterion=AverageEnergy(alpha=0.854626),method=SpecificRationalization(rationalizers=[RemoveShortSide(ratio=5.0), QuadSplit(angle=150), RemoveBadTriangle(acute_angle=15,obtuse_angle=150)])))
OOF.Skeleton.Undo(skeleton='statemapredbluesmall.png:skeleton')
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=Rationalize(targets=AllElements(),criterion=AverageEnergy(alpha=0.61233499999999996),method=SpecificRationalization(rationalizers=[RemoveShortSide(ratio=5.0), QuadSplit(angle=150), RemoveBadTriangle(acute_angle=15,obtuse_angle=150)])))
OOF.Graphics_1.Settings.Scroll.Horizontal(position=0.0)
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=MergeTriangles(targets=AllElements(),criterion=AverageEnergy(alpha=0.61233499999999996)))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=Rationalize(targets=AllElements(),criterion=AverageEnergy(alpha=0.61233499999999996),method=SpecificRationalization(rationalizers=[RemoveShortSide(ratio=5.0), QuadSplit(angle=150), RemoveBadTriangle(acute_angle=15,obtuse_angle=150)])))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=MergeTriangles(targets=AllElements(),criterion=AverageEnergy(alpha=0.61233499999999996)))
OOF.Skeleton.Modify(skeleton='statemapredbluesmall.png:skeleton', modifier=Smooth(targets=AllNodes(),criterion=AverageEnergy(alpha=0.61233499999999996),T=0.0,iteration=FixedIteration(iterations=5)))
OOF.Graphics_1.Settings.Scroll.Vertical(position=0.0)
OOF.Graphics_1.Toolbox.Pixel_Select.Color(source='statemapredbluesmall.png:statemapredbluesmall.png', range=DeltaRGB(delta_red=0.153846,delta_green=0.169231,delta_blue=0.169231), points=[Point(149.864,136.036)], shift=0, ctrl=0)
OOF.Graphics_1.Toolbox.Pixel_Select.Clear(source='statemapredbluesmall.png:statemapredbluesmall.png')
OOF.Skeleton.PinNodes.UnPin_Node_Selection(skeleton='statemapredbluesmall.png:skeleton')
OOF.Graphics_1.Toolbox.Pin_Nodes.UnPinAll(skeleton='statemapredbluesmall.png:skeleton')