Skip to content

Commit

Permalink
Fix positive cross-sections with offset
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasf committed Jul 11, 2024
1 parent 78fb755 commit 69347e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftSCAD/Development/CrossSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ struct CrossSection: Shape3D {

return content.intersection {
Box([universeLength, universeLength, universeLength], center: .xy)
.translated(z: offset)
.transformed(.rotation(from: .up, to: axis))
.translated(z: offset)
.colored(.blue)
}
}
Expand Down

0 comments on commit 69347e1

Please sign in to comment.