PointGroup

A PointGroup is a named grouping of points, so that operations can be applied to specific points in a geometry.

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
PointGroup

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
BoundingBox

getPoint(i, geom) → nullable Vector3

Return the position of a point in the group.

Parameters
i number
geom Geometry
Returns
Vector3

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