Update junction mesh tests to use dedicated junction objects for corner and curve shapes
This commit is contained in:
@@ -104,7 +104,7 @@ describe("spline corridor junction mesh generation", () => {
|
|||||||
clipDistance: 2
|
clipDistance: 2
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
} as const;
|
};
|
||||||
const straight = buildSplineCorridorJunctionFootprint({
|
const straight = buildSplineCorridorJunctionFootprint({
|
||||||
junction: createSplineCorridorJunction({
|
junction: createSplineCorridorJunction({
|
||||||
...baseJunction,
|
...baseJunction,
|
||||||
@@ -392,22 +392,24 @@ describe("spline corridor junction mesh generation", () => {
|
|||||||
clipDistance: 2
|
clipDistance: 2
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
} as const;
|
};
|
||||||
|
const cornerJunction = createSplineCorridorJunction({
|
||||||
|
...baseJunction,
|
||||||
|
shapeMode: "corner"
|
||||||
|
});
|
||||||
|
const curveJunction = createSplineCorridorJunction({
|
||||||
|
...baseJunction,
|
||||||
|
shapeMode: "curve"
|
||||||
|
});
|
||||||
const cornerMeshData = buildSplineCorridorJunctionEdgeMeshData({
|
const cornerMeshData = buildSplineCorridorJunctionEdgeMeshData({
|
||||||
junction: createSplineCorridorJunction({
|
junction: cornerJunction,
|
||||||
...baseJunction,
|
|
||||||
shapeMode: "corner"
|
|
||||||
}),
|
|
||||||
paths: [pathA, pathB],
|
paths: [pathA, pathB],
|
||||||
edge: baseJunction.edge
|
edge: cornerJunction.edge
|
||||||
});
|
});
|
||||||
const curveMeshData = buildSplineCorridorJunctionEdgeMeshData({
|
const curveMeshData = buildSplineCorridorJunctionEdgeMeshData({
|
||||||
junction: createSplineCorridorJunction({
|
junction: curveJunction,
|
||||||
...baseJunction,
|
|
||||||
shapeMode: "curve"
|
|
||||||
}),
|
|
||||||
paths: [pathA, pathB],
|
paths: [pathA, pathB],
|
||||||
edge: baseJunction.edge
|
edge: curveJunction.edge
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(cornerMeshData?.footprintPointCount).toBe(12);
|
expect(cornerMeshData?.footprintPointCount).toBe(12);
|
||||||
|
|||||||
Reference in New Issue
Block a user