neurots.morphmath.point_array¶
Point array class.
Classes
|
Store points in a numpy array and automatically resizes when its capacity is reached. |
- class neurots.morphmath.point_array.DynamicPointArray(initial_capacity=100000, resize_factor=2.0)¶
Bases:
object
Store points in a numpy array and automatically resizes when its capacity is reached.
It is used by algorithms that require the points as a
numpy.array
and append points incrementally.- Parameters
- append(point)¶
Append a point to the array.
- property capacity¶
Returns the current capacity of the array.
- property data¶
Return filled data.