toJSON3 property

Function toJSON3
getter/setter pair

Implementation

Function toJSON3 = (shapes, options, data) {
  data.shapes = [];

  if (shapes is List) {
    for (var i = 0, l = shapes.length; i < l; i++) {
      var shape = shapes[i];

      data.shapes.add(shape.uuid);
    }
  } else {
    data.shapes.add(shapes.uuid);
  }

  if (options.extrudePath != null)
    data.options.extrudePath = options.extrudePath.toJSON();

  return data;
};