Constructor
new L3D.PointGroup()
Properties
Methods
add(p)
Add a point index to the group.
Parameters
p |
number |
clear()
Remove all points from the group.
clone() → PointGroup
Create a copy of this PointGroup.
Returns
copy(other)
Copy another PointGroup into this.
Parameters
other |
PointGroup |
get(index) → nullable number
Get a point index from the group.
Parameters
index |
number |
Returns
- number
getBoundingBox(geom, out) → BoundingBox
Compute the bounding box of the points in the group.
Parameters
geom |
Geometry | |
out |
BoundingBox |
Returns
getPoint(i, geom) → nullable Vector3
Return the position of a point in the group.
Parameters
i |
number | |
geom |
Geometry |
Returns
getPoints(geom) → Array.<Vector3>
Return a list of the point positions in this group.
Parameters
geom |
Geometry |
Returns
- Array.<Vector3>
remove(index)
Remove a point from the group.
Parameters
index |
number |
removeRange(index, count)
Remove a rnage of points from the group.
Parameters
index |
number | |
count |
number |
set(index, v)
Set a point index in the group.
Parameters
index |
number | |
v |
number |
setPoint(i, geom, p)
Set the position of a point in the group.
Parameters
i |
number | |
geom |
Geometry | |
p |
Vector3 |