Bases: collada.source.Source
Contains a source array of floats, as defined in the collada <float_array> inside a <source>.
If f is an instance of collada.source.FloatSource, then len(f) is the length of the shaped source. len(f)*len(f.components) would give you the number of values in the source. f[i] is the ith item in the source array.
Create a float source instance.
| Parameters: |
|
|---|
Methods
| __init__(id, data, components[, xmlnode]) | Create a float source instance. |
| load(collada, localscope, node) | |
| save() | Saves the source back to xmlnode |
The unique string identifier for the source
Numpy array with the source values. This will be shaped as (-1,N) where N = len(self.components)
Tuple of strings describing the semantic of the data, e.g. ('X','Y','Z')
ElementTree representation of the source.