Skip to content

Commit

Permalink
Fix orientation of interior web surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rianadon committed Oct 31, 2024
1 parent c25e67d commit 71cf141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/worker/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export function webSolid(c: Cuttleform, geo: Geometry) {
const a = i + j
const b = i + ((j + 1) % poly.length)
if (triangleMap[a] && triangleMap[a][b]) {
surface.addQuad(topPts[a], topPts[b], botPts[b], botPts[a])
surface.addQuad(botPts[a], botPts[b], topPts[b], topPts[a])
}
}
i += poly.length
Expand Down

0 comments on commit 71cf141

Please sign in to comment.