SVGLoaderPointsToStroke constructor

SVGLoaderPointsToStroke(
  1. dynamic points,
  2. dynamic style,
  3. dynamic arcDivisions,
  4. dynamic minDistance,
  5. dynamic vertices,
  6. dynamic normals,
  7. dynamic uvs,
  8. dynamic vertexOffset,
)

Implementation

SVGLoaderPointsToStroke(
  points,
  style,
  arcDivisions,
  minDistance,
  vertices,
  normals,
  uvs,
  vertexOffset
) {
  arcDivisions = arcDivisions ?? 12;
  minDistance = minDistance ?? 0.001;
  vertexOffset = vertexOffset ?? 0;

  // First ensure there are no duplicated points
  this.points = removeDuplicatedPoints(points);
  this.style = style;
  this.vertices = vertices;
  this.normals = normals;
  this.uvs = uvs;
  currentCoordinate = vertexOffset * 3;
  currentCoordinateUV = vertexOffset * 2;
}