Skip to content

Commit b5d1167

Browse files
authored
SVGLoader: Add vertices along counterclockwise if bevel. (mrdoob#27121)
* fix: add vertices along counterclockwise if bevel * fix: correcting the index of temp vector inserted into vertices when lineCap is square
1 parent 6f630a8 commit b5d1167

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/jsm/loaders/SVGLoader.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,8 +2968,8 @@ class SVGLoader extends Loader {
29682968
// Bevel join triangle
29692969

29702970
addVertex( currentPointR, u, 1 );
2971-
addVertex( nextPointR, u, 0 );
2972-
addVertex( innerPoint, u, 0.5 );
2971+
addVertex( innerPoint, u, 0 );
2972+
addVertex( nextPointR, u, 1 );
29732973

29742974
}
29752975

@@ -3106,8 +3106,8 @@ class SVGLoader extends Loader {
31063106

31073107
} else {
31083108

3109-
tempV2_3.toArray( vertices, vl - 2 * 3 );
3110-
tempV2_4.toArray( vertices, vl - 1 * 3 );
3109+
tempV2_4.toArray( vertices, vl - 2 * 3 );
3110+
tempV2_3.toArray( vertices, vl - 1 * 3 );
31113111
tempV2_4.toArray( vertices, vl - 4 * 3 );
31123112

31133113
}

0 commit comments

Comments
 (0)