OOF2: The Manual

Name

OOF.NodeSelection.Expand_Node_Selection — Expand node selection by either neighboring elements or segments.

Synopsis

OOF.NodeSelection.Expand_Node_Selection(skeleton, criterion, ignorePBC)

Details

  • Parent Menu: OOF.NodeSelection
  • Callback: function modify in module ooflib.engine.skeletonselectionmod
  • Parameters:

    skeleton
    Type: The path to an existing Skeleton object.
    criterion
    How to select new nodes. Type: An object of the ExpandCriterion class.
    ignorePBC
    Ignore periodicity? Type: Boolean: True or False.

Description

ExpandNodeSelection selects nodes by selecting the neighbors of the currently selected Nodes. The criterion parameter determines exactly which other Nodes are considered to be neighbors.

Expanding the Node selection is useful when applying Skeleton modifier to a portion of a Skeleton. For example, to improve the resolution of a boundary in a Microstructure, it's convenient to Anneal the Nodes that are close to the boundary. To do this, select the Nodes on the boundary, expand the selection, and then Anneal the selected Nodes.

The criterion parameter determines which addtional Nodes are selected. If it's set to By Elements, all Nodes that share an Element with a currently selected Node are selected. If it's set to By Segments, all Nodes that share a Segment with a selected Node are selected. The difference is illustrated in Figure 6.46.

Figure 6.46. Expanding the Node Selection

Expanding the Node Selection

(a) A Skeleton with three selected Nodes.

(b) After expanding the Node selection by segments.

(c) After expanding the selection by elements. Three selected Nodes in (c) are not selected in (b) because they are not connected directly by segments to the selected nodes in (a).


See Also