Skip to content

Commit ea8a253

Browse files
committed
Update loft triangle test for corrected Triangle body orientation
1 parent 6b8a44d commit ea8a253

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Tests/Tests/Loft.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ struct LoftTests {
148148

149149
#expect(m.volume > 0)
150150
#expect(m.surfaceArea > 0)
151-
// With corners preserved, the loft reaches exactly to the outer vertices of the top triangle
152-
#expect(m.boundingBox .init(minimum: [0, 0, 0], maximum: [5, 5, 30]))
151+
// With corners preserved, the loft reaches exactly to the outer vertices of the top triangle.
152+
// Triangle(a:5, b:5, includedGamma:90°) places B at (5√2, 0) and C at (5/√2, 5/√2).
153+
#expect(m.boundingBox .init(minimum: [0, 0, 0], maximum: [5 * 2.squareRoot(), 5 / 2.squareRoot(), 30]))
153154
}
154155

155156
@Test func `loft between rectangles preserves corners`() async throws {

0 commit comments

Comments
 (0)