SVGLoaderPointsToStroke constructor

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

Implementation

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

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