Repository navigation
feat(layers): math.gl path and polygon refinement (3/3) - #10837
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d37e8e88a6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Medium impact] The PR appears safe to merge; no new actionable issues remain. SummaryAdds experimental
All eight supplied previous threads were checked against the current code and their replies. Their reported issues are addressed. None supplied a Comment number, so
|
|
Fixed the CI binary-data render regression in a7828ab. Even a no-op attribute transform forces binary attributes through CPU conversion; with refinement disabled, this converted float colors into the default unorm8 representation and made paths/polygons black. Styling transforms are now attached only while Added four regression tests covering binary float color preservation and toggling refinement off for PathLayer and SolidPolygonLayer. All 36 focused headless tests, the binary-data WebGL render test, the layers build, and lint pass locally. The first render retry encountered a browser connection failure; the next run passed. CI is rerunning on the new commit. |
6bf78ef to
b777c9c
Compare
|
Refreshed this branch by rebasing it independently onto current master ( |
|
Fixed the formatting issue from the previous CI run in |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 90b15a9. Configure here.
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed f272255; comments only at this point. One P1: a reverted test import fails CI. With _projectionTolerance at 0, a node probe of 60 paths and polygons with holes, wrapLongitude and grid cuts gave buffers identical to master. The -2013 lines are the truncated docs/whats-new.md from the open greptile thread. That thread and the cursor thread on split outlines still hold.
Non-blocking: After the restore, the _projectionTolerance note in docs/whats-new.md would sit under ### Layer source CRS with no link. Could it move under ### Custom projections (Experimental) and read like this?
Paths and polygons can follow curved projected edges with the experimental
_projectionToleranceprop.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.

Follow up of #10835
Background
Source grids do not adapt to nonlinear projection curvature. This independent PR adds sampled map-space edge refinement while retaining existing grid cuts and separate polygon triangulation.
Change List
_projectionToleranceto paths and polygon layerssubdividePolylinePolygonLayerfill and outline sublayersVerified with
yarn exec ocular-build layersandyarn lint. Passed 38 focused path/polygon headless tests. Local render checks timed out capturing screenshots on this update; prior CI passed.Note
Medium Risk
Modifies geometry tessellation logic in core path and polygon layers, though the capability is experimental and disabled by default.
Overview
Adds an experimental
_projectionToleranceprop toPathLayer,SolidPolygonLayer, andPolygonLayerto adaptively subdivide path edges and polygon rings when projecting across curved coordinate systems.Tessellators use
subdividePolylinefrom@math.gl/geometryto densify geometry down to a sampled map-meter error while preserving ring closure, holes, vertex elevations, and cut-edge visibility flags. Refinement requires normalized, CPU-accessible coordinates and validates that styling accessors (such as colors, widths, and elevations) are per-object rather than per-vertex.Reviewed by Cursor Bugbot for commit 5b4e346. Bugbot is set up for automated code reviews on this repo. Configure here.