Scene([List<Primitive> primitives])

Creates a new Scene. Takes an optional parameter primitives, which initialized the scene with the given primitives instead of creating an empty one.

Source

Scene([List<Primitive> primitives]) {
  if (primitives != null) {
    this.nonIdxPrimitives = new List<Primitive>.from(primitives);
  } else {
    this.nonIdxPrimitives = new List<Primitive>();
  }

  ccs = new CartesianCoordinateSystem();
}