itasca.block.facearray

Array interface for 3DEC faces.

Functions

itasca.block.facearray.extra(slot: int) array float{block} or float{block,3}.

Get the block extra data in the given slot as an array. Extra variables accessed by array must be of type float or vec.

itasca.block.facearray.ids() array int{block}.

Get the block ids as an array.

itasca.block.facearray.in_group(group_name: str, slot='default') array bool{nface}.

Return block group membership as a Boolean array.

itasca.block.facearray.set_extra(slot: int, data: array float{block} or float{block, 3}) None.

Set the block extra data in the given slot with an array. Extra variables set by array must be of type float or vec.

itasca.block.facearray.set_group(membership: array bool{nface}, group_name: str, slot="default") None.

Set block group from an array. Where membership True set the corresponding block to be a member of group group_name in the given slot.