SVGLoaderPointsToStroke constructor

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

Implementation

SVGLoaderPointsToStroke(
  List<Vector?> points,
  this.style,
  int? arcDivisions,
  double? minDistance,
  this.vertices,
  this.normals,
  this.uvs,
  int? vertexOffset
) {
  this.arcDivisions = arcDivisions ?? 12;
  this.minDistance = minDistance ?? 0.001;
  this.vertexOffset = vertexOffset ?? 0;

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