@@ -54,8 +54,9 @@ struct LoftTests {
5454 try await loft. writeVerificationModel ( name: " loftLayerSpecificShaping " )
5555 let m = try await loft. measurements
5656
57- #expect( m. volume ≈ 3863.976 )
58- #expect( m. surfaceArea ≈ 1236.984 )
57+ // Manifold simplification produces slightly different floating-point results across platforms.
58+ #expect( m. volume. equals ( 3863.976 , within: 3e-2 ) )
59+ #expect( m. surfaceArea. equals ( 1236.984 , within: 2e-3 ) )
5960 #expect( m. boundingBox? . equals ( . init( minimum: [ - 10 , - 10 , 0 ] , maximum: [ 10 , 10 , 20 ] ) , within: 1e-2 ) == true )
6061 }
6162
@@ -78,8 +79,9 @@ struct LoftTests {
7879 try await loft. writeVerificationModel ( name: " loftLayerSpecificShapingWithDefault " )
7980 let m = try await loft. measurements
8081
81- #expect( m. volume ≈ 2732.499 )
82- #expect( m. surfaceArea ≈ 1118.005 )
82+ // Manifold simplification produces slightly different floating-point results across platforms.
83+ #expect( m. volume. equals ( 2732.499 , within: 5e-2 ) )
84+ #expect( m. surfaceArea. equals ( 1118.005 , within: 1e-2 ) )
8385 #expect( m. boundingBox? . equals ( . init( minimum: [ - 10 , - 10 , 0 ] , maximum: [ 10 , 10 , 20 ] ) , within: 1e-2 ) == true )
8486 }
8587
@@ -288,4 +290,3 @@ struct LoftTests {
288290 #expect( m. volume > 0 )
289291 }
290292}
291-
0 commit comments