OOF.Microstructure.Create_From_ImageFile(filename='examples/small.ppm', microstructure_name='small.ppm', height=automatic, width=automatic)
OOF.Windows.Graphics.New()
OOF.Graphics_1.Layer.New(category='Image', what='small.ppm:small.ppm', how=BitmapDisplayMethod())
OOF.Graphics_1.Toolbox.Pixel_Select.Burn(source='small.ppm:small.ppm', local_flammability=0.1, global_flammability=0.2, color_space_norm='L1', next_nearest=False, points=[Point(47.9625,76.05)], shift=False, ctrl=False)
OOF.PixelGroup.New(name='green', microstructure='small.ppm')
OOF.PixelGroup.AddSelection(microstructure='small.ppm', group='green')
OOF.Graphics_1.Toolbox.Pixel_Select.Burn(source='small.ppm:small.ppm', local_flammability=0.1, global_flammability=0.2, color_space_norm='L1', next_nearest=False, points=[Point(-7.1625,92.325)], shift=False, ctrl=False)
OOF.Graphics_1.Toolbox.Pixel_Select.Burn(source='small.ppm:small.ppm', local_flammability=0.1, global_flammability=0.2, color_space_norm='L1', next_nearest=False, points=[Point(122.5125,75.0)], shift=False, ctrl=False)
OOF.PixelGroup.New(name='blue', microstructure='small.ppm')
OOF.PixelGroup.AddSelection(microstructure='small.ppm', group='blue')
OOF.Material.New(name='blue', material_type='bulk')
OOF.Material.Assign(material='blue', microstructure='small.ppm', pixels='blue')
OOF.Material.New(name='green', material_type='bulk')
OOF.Material.Assign(material='green', microstructure='small.ppm', pixels='green')
OOF.Property.Copy(property='Orientation', new_name='green')
OOF.Property.Parametrize.Orientation.green(angles=Abg(alpha=45,beta=105,gamma=0))
OOF.Material.Add_property(name='green', property='Orientation:green')
OOF.Property.Copy(property='Orientation:green', new_name='blue')
OOF.Property.Parametrize.Orientation.blue(angles=Abg(alpha=0,beta=0,gamma=0))
OOF.Material.Add_property(name='blue', property='Orientation:blue')
