Module Metaball :: Class MetaElemSeq
[frames] | no frames]

Class MetaElemSeq

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.
None
remove(element)
remove an element from the metaball data.
Metaelem
__iter__()
Iterate over elements in this metaball.
int
__len__()
Iterate over elements in this metaball.
Method Details

add()

 

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)

 

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__()

 

Iterate over elements in this metaball.

Returns: Metaelem
One of the metaelem in this metaball.

__len__()
(Length operator)

 

Iterate over elements in this metaball.

Returns: int
The number of elements in this metaball