OOF2: The Manual

Name

OOF.Material.Assign — Assign a Material to pixels in a Microstructure.

Synopsis

OOF.Material.Assign(material,microstructure,pixels)

Details

  • Parent Menu: OOF.Material
  • Callback: function _wrapped_assignmat in module ooflib.engine.IO.materialmenu
  • Parameters:

    material
    Material to be assigned. Type: A character string.
    microstructure
    Type: The path to an existing Microstructure object.
    pixels
    Target pixels. Type: The name of a PixelGroup, or every or selected.

Description

Assigning Materials to pixels is the climactic step in building a Microstructure. The pixels argument is either the name of a pixel group in the Microstructure, or one of the special placeholder objects all or selected. Choosing selected assigns the Material to the pixels currently selected in the Microstructure.

Assigning a Material to a pixel that already has a Material simply overwrites the previous assignment. There is no need to remove the old Material first.