xushiting 2 년 전
부모
커밋
cf8c55c50b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/graphic/Geometry/CurveRoad.js

+ 2 - 0
src/graphic/Geometry/CurveRoad.js

@@ -11,6 +11,8 @@ export default class CurveRoad extends Road {
     this.points = []; //中心线上一系列控制点。数组是从start到end。
     this.leftEdgeId = null;
     this.rightEdgeId = null;
+    this.leftLanes = []; //二维数组。第一维表示第几个车道,第二维是一组点
+    this.rightLanes = [];
     this.width = Constant.defaultRoadWidth; //默认宽度
 
     this.leftDrivewayCount = 2; //左边的车道个数