Skip to content

allow obstacles with z beyond the problem#61

Open
seveibar wants to merge 1 commit into
mainfrom
allow-z-beyond-problem
Open

allow obstacles with z beyond the problem#61
seveibar wants to merge 1 commit into
mainfrom
allow-z-beyond-problem

Conversation

@seveibar

@seveibar seveibar commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

I was getting this error:

image

i think it's ok to allow obstacles to specify more layers than the problem requires

@vercel

vercel Bot commented Jan 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
rectdiff Ready Ready Preview, Comment Jan 3, 2026 3:47am

)
}
// Filter out z-layers outside the valid range instead of throwing an error
const validZLayers = zLayers.filter((z) => z >= 0 && z < layerCount)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 Yes, I think it's better too; throwing an error is too harsh when the program can fix it.

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.

2 participants