AddFaces4Strip method

void AddFaces4Strip(
  1. List<Vector3> top,
  2. List<Vector3> bot,
  3. bool closed
)

Implementation

void AddFaces4Strip(List<VM.Vector3> top, List<VM.Vector3> bot, bool closed) {
  assert(top.length == bot.length);
  final n = top.length - 1;
  for (int i = 0; i < n; ++i) {
    AddVerticesFace4([bot[i], bot[i + 1], top[i + 1], top[i]]);
  }
  if (closed) {
    AddVerticesFace4([bot[n], bot[0], top[0], top[n]]);
  }
}