addVertices method

List<int> addVertices(
  1. List<Sp3dV3D> v
)

(en) Add vertices to this object and returns the corresponding index.

(ja) このオブジェクトに頂点を追加し、対応するインデックスを返します。

  • v : The vertices you want to add to this object.

Implementation

List<int> addVertices(List<Sp3dV3D> v) {
  final int nowLen = vertices.length;
  List<int> r = [];
  for (int i = 0; i < v.length; i++) {
    vertices.add(v[i]);
    r.add(nowLen + i);
  }
  return r;
}