Skip to content

Fix normals#1600

Merged
elalish merged 2 commits into
masterfrom
fixNormals
Mar 18, 2026
Merged

Fix normals#1600
elalish merged 2 commits into
masterfrom
fixNormals

Conversation

@elalish

@elalish elalish commented Mar 18, 2026

Copy link
Copy Markdown
Owner

I noticed some problems when I was playing around with ManifoldCAD to output meshes with smooth normals, which I've fixed here:

  1. When some meshes had normals and others didn't, we put zeros in for the missing normals, but when using GetMeshGL(0), to apply transforms to said normals, those zero vectors became NaN, which made them not acceptable input anymore.
  2. When using attributes: ['NORMAL'] in ManifoldCAD, the transforms were not being applied to the normals, so the shading was wrong.

@elalish elalish self-assigned this Mar 18, 2026
@codecov

codecov Bot commented Mar 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.16%. Comparing base (2e00278) to head (5a6c6f8).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1600   +/-   ##
=======================================
  Coverage   95.16%   95.16%           
=======================================
  Files          34       34           
  Lines        7659     7659           
=======================================
  Hits         7289     7289           
  Misses        370      370           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@elalish elalish merged commit ca7a6c0 into master Mar 18, 2026
36 checks passed
@elalish elalish deleted the fixNormals branch March 18, 2026 23:18
@pca006132 pca006132 mentioned this pull request Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant