|
@@ -165,7 +165,7 @@ export default class CurveRoadService extends RoadService {
|
|
|
leftCurveEdge.points.splice(startIndex + 1, 0, leftJoin);
|
|
|
curveEdgeService.setCurves(leftCurveEdge);
|
|
|
|
|
|
- for (let i = 0; i < leftCount; ++i) {
|
|
|
+ for (let i = 0; i < leftCount - 1; ++i) {
|
|
|
leftLine1 = mathUtil.createLine3(
|
|
|
line1,
|
|
|
curveRoad.leftLanes[i][startIndex]
|
|
@@ -185,7 +185,7 @@ export default class CurveRoadService extends RoadService {
|
|
|
rightCurveEdge.points.splice(startIndex + 1, 0, rightJoin);
|
|
|
curveEdgeService.setCurves(rightCurveEdge);
|
|
|
|
|
|
- for (let i = 0; i < rightCount; ++i) {
|
|
|
+ for (let i = 0; i < rightCount - 1; ++i) {
|
|
|
rightLine1 = mathUtil.createLine3(
|
|
|
line1,
|
|
|
curveRoad.rightLanes[i][startIndex]
|