Module Metaball :: Class MetaElemSeq

Class MetaElemSeq

source code

The MetaElemSeq object

This object provides sequence and iterator access to the metaballs elements. The elements accessed within this iterator "wraps" the actual metaball elements; changing any of the elements's attributes will immediately change the data in the metaball.

This iterator is most like pythons 'set' type.

Instance Methods
Metaelement
add()
Append a new element to the metaball.
source code
None
remove(element)
remove an element from the metaball data.
source code
Metaelem
__iter__()
Iterate over elements in this metaball.
source code
int
__len__()
Iterate over elements in this metaball.
source code
Method Details

add()

source code 
Append a new element to the metaball. no arguments are taken, instead a new metaelement is added to the metaball data and returned. This new element can then be modified.
Returns: Metaelement
a new meta element.

remove(element)

source code 

remove an element from the metaball data.

if the element is not a part of the metaball data, an error will be raised.
Returns: None
None

__iter__()

source code 
Iterate over elements in this metaball.
Returns: Metaelem
One of the metaelem in this metaball.

__len__()
(Length operator)

source code 
Iterate over elements in this metaball.
Returns: int
The number of elements in this metaball