setFromPoints method

dynamic setFromPoints(
  1. dynamic points
)

Implementation

setFromPoints(points) {
  this.vertices = [];

  for (var i = 0, l = points.length; i < l; i++) {
    var point = points[i];
    this.vertices.add(new THREE.Vector3(point.x, point.y, point.z ?? 0));
  }

  return this;
}