Skip to content

[Cherry-pick] DYN-10436: Fix UV scaling for degenerate surfaces (sphere poles, cone apex)#17087

Merged
jasonstratton merged 1 commit intoRC4.1.1_masterfrom
cherrypick-17077
Apr 29, 2026
Merged

[Cherry-pick] DYN-10436: Fix UV scaling for degenerate surfaces (sphere poles, cone apex)#17087
jasonstratton merged 1 commit intoRC4.1.1_masterfrom
cherrypick-17077

Conversation

@github-actions
Copy link
Copy Markdown

Cherry-pick of #17077 to RC4.1.1_master

Purpose

This addresses the issue reported on slack here.

UvScalingUtilities.GetNormalizedUvScales computed UV aspect-ratio scaling by sampling isolines at the domain boundaries (U/V = 0 and 1) and averaging their lengths. For surfaces with degenerate extrema — sphere poles, cone apex — the isoline at that boundary collapses to a near-zero-length point. Averaging a real length with ~0 badly underestimates the true scale, causing the UV normalization to fall back to normU = 1.0 and breaking the aspect ratio. This in turn causes Delaunay.ByParametersOnSurface and Voronoi.ByParametersOnSurface to produce incorrect tessellations on such surfaces.

Fix: sample isolines at five interior positions (0.1, 0.25, 0.5, 0.75, 0.9) and average their lengths. Interior isolines are non-degenerate for all standard analytical surfaces. For flat/non-degenerate surfaces, all interior isolines have similar length, so the result is unchanged from the previous approach.

Declarations

Check these if you believe they are true

Release Notes

Fix incorrect UV scaling normalization for surfaces with degenerate boundary isolines (sphere poles, cone apex), restoring correct Delaunay/Voronoi tessellation on those surfaces.

Reviewers

(FILL ME IN)

FYIs

N/A

… apex) (#17077)

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
(cherry picked from commit 4337a67)
@sonarqubecloud
Copy link
Copy Markdown

@jasonstratton
Copy link
Copy Markdown
Contributor

@jasonstratton jasonstratton merged commit 13100e1 into RC4.1.1_master Apr 29, 2026
12 of 14 checks passed
@jasonstratton jasonstratton deleted the cherrypick-17077 branch April 29, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants