Skip to content

Commit

Permalink
SVGLoader: Add vertices along counterclockwise if bevel. (#27121)
Browse files Browse the repository at this point in the history
* fix: add vertices along counterclockwise if bevel

* fix: correcting the index of temp vector inserted into vertices when lineCap is square
  • Loading branch information
nieyuyao committed Nov 9, 2023
1 parent 6f630a8 commit b5d1167
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/jsm/loaders/SVGLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2968,8 +2968,8 @@ class SVGLoader extends Loader {
// Bevel join triangle

addVertex( currentPointR, u, 1 );
addVertex( nextPointR, u, 0 );
addVertex( innerPoint, u, 0.5 );
addVertex( innerPoint, u, 0 );
addVertex( nextPointR, u, 1 );

}

Expand Down Expand Up @@ -3106,8 +3106,8 @@ class SVGLoader extends Loader {

} else {

tempV2_3.toArray( vertices, vl - 2 * 3 );
tempV2_4.toArray( vertices, vl - 1 * 3 );
tempV2_4.toArray( vertices, vl - 2 * 3 );
tempV2_3.toArray( vertices, vl - 1 * 3 );
tempV2_4.toArray( vertices, vl - 4 * 3 );

}
Expand Down

0 comments on commit b5d1167

Please sign in to comment.