Skip to content

Conversation

@ZaildarAnmol
Copy link

Problem: gradient fills show extra colors due to overlapping triangle fan.
Fix: non-overlapping triangulation using mapbox_earcut (outer ring + holes).
Fallback to previous triangulation if dependency absent.
Tested on the minimal scene from issue #2387/#2382 and several concave/holed shapes; artifacts are gone.
No API changes; performance comparable for typical glyphs/shapes.

Fixes #2387

…iangulation (3b1b#2387/3b1b#2382)

- Add triangulate_polygon_with_holes via mapbox_earcut
- Route VMobject triangulation to earcut for closed paths (fallback to old method if lib missing)
- Preserves existing shader pipeline; removes overlapping triangles causing color bleed
@Vegeorca
Copy link

Vegeorca commented Oct 30, 2025 via email

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.

Feature: Add Workflow for Manual Version Bumps

2 participants