|
@@ -81,9 +81,9 @@ export default class CurveRoadEdge extends Geometry {
|
|
|
const line = mathUtil.createLine1(curveRoadSidePoints.rightEdgeStart, curveRoadSidePoints.rightEdgeEnd);
|
|
|
let parallelLines = mathUtil.getParallelLineForDistance(line, offsetDis);
|
|
|
const join = mathUtil.getJoinLinePoint(midPoint, parallelLines.line1);
|
|
|
- let point = curveRoadPointService.create(join);
|
|
|
- let curveRoadSideMidPoint = { x: point.x, y: point.y };
|
|
|
- this.curveRoadSide.points.splice(1, 0, curveRoadSideMidPoint);
|
|
|
+ // let point = curveRoadPointService.create(join);
|
|
|
+ // let curveRoadSideMidPoint = { x: point.x, y: point.y };
|
|
|
+ this.curveRoadSide.points.splice(1, 0, join);
|
|
|
} else if (key == "leftEdgeId") {
|
|
|
this.curveRoadSide["start"] = curveRoadSidePoints.leftEdgeStart;
|
|
|
this.curveRoadSide["end"] = curveRoadSidePoints.leftEdgeEnd;
|
|
@@ -97,9 +97,11 @@ export default class CurveRoadEdge extends Geometry {
|
|
|
let parallelLines = mathUtil.getParallelLineForDistance(line, offsetDis);
|
|
|
const join = mathUtil.getJoinLinePoint(midPoint, parallelLines.line1);
|
|
|
|
|
|
- let point = curveRoadPointService.create(join);
|
|
|
- let curveRoadSideMidPoint = { x: point.x, y: point.y };
|
|
|
- this.curveRoadSide.points.splice(1, 0, curveRoadSideMidPoint);
|
|
|
+ // let point = curveRoadPointService.create(join);
|
|
|
+ // console.error(join)
|
|
|
+ // console.error(point)
|
|
|
+ // let curveRoadSideMidPoint = { x: point.x, y: point.y };
|
|
|
+ this.curveRoadSide.points.splice(1, 0, join);
|
|
|
}
|
|
|
}
|
|
|
}
|