Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lattice ejecting vertices too early #16316

Merged
merged 2 commits into from
Mar 14, 2025
Merged

Fix lattice ejecting vertices too early #16316

merged 2 commits into from
Mar 14, 2025

Conversation

deltakosh
Copy link
Contributor

No description provided.

@deltakosh deltakosh enabled auto-merge (squash) March 13, 2025 22:49
@bjsplat
Copy link
Collaborator

bjsplat commented Mar 13, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 13, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 13, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 13, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 14, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 14, 2025

@deltakosh deltakosh merged commit 88d628c into master Mar 14, 2025
16 checks passed
@deltakosh deltakosh deleted the fix-lattice-epsilon branch March 14, 2025 14:02
* @param epsilon (default = Number.EPSILON)
* @returns true if the number is between min and max values
*/
export function OutsideRange(num: number, min: number, max: number, epsilon: number = 1.401298e-45): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using Number.EPSILON instead of 1.401298e-45? Also, Chromes give me 2.220446049250313e-16 for Number.EPSILON:
image

[...]
Looking at existing code above, I can see that 1.401298e-45 is the default epsilon value we use elsewhere, so I think you should simply remove the reference to Number.EPSILON from the function doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants