Skip to content

Commit

Permalink
Expand FIXME.
Browse files Browse the repository at this point in the history
  • Loading branch information
brcolow committed Jul 21, 2024
1 parent f53a549 commit 12c7755
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,8 @@ function getNonColorBuffers(gl, moodyReport, zMultiplier) {

const axisSize = 20
// FIXME: We want the line to always be on top of the surface but it can dip underneath it at extreme points. Adding 0.1 to z-coordinate is not good enough.
// We need to calculate the slope from point x -> y and use it to find amount to add so line is always on top.
// We need to calculate the slope from point x -> y and use it to find amount to add so line is always on top or have the lines use the same slope as the
// points.
const positions = new Float32Array(
moodyReport.vertices(zMultiplier).map(v => [v[0], v[1], v[2] + 0.1]).flat(1) // "Union jack" colored lines.
.concat(triangulatedVertices)
Expand Down

0 comments on commit 12c7755

Please sign in to comment.