SVGLoaderPointsToStroke constructor
SVGLoaderPointsToStroke(
- dynamic points,
- dynamic style,
- dynamic arcDivisions,
- dynamic minDistance,
- dynamic vertices,
- dynamic normals,
- dynamic uvs,
- 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;
}