Constructor
new L3D.PrimitiveList()
Properties
isEmpty
bool
Is the list empty?
length
number
The number of primitives in the list.
Methods
add(primitive)
Add a primitive to the end of the list.
Parameters
primitive |
GeometryPrimitive |
clear()
Remove all primitives from the list.
copy(other)
Copy [other] into [this].
Parameters
other |
PrimitiveList |
findById(id) → nullable GeometryPrimitive
Find a primitive with the given id.
Parameters
id |
number | The primitive id to find. |
Returns
- GeometryPrimitive
The primitive with the given id, null if none was found.
get(index) → nullable GeometryPrimitive
Get a primitive from the list.
Parameters
index |
number |
Returns
getBoundingBox(geom, box) → BoundingBox
Get the bounding box that includes all primitives in the list.
Parameters
geom |
Geometry | |
box |
BoundingBox |
Returns