TerrainNode boundaries across 180° longitude don't wrap

Open
#60 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift

Research direction

Start at the TerrainNode entry point and reproduce the example bounds spanning 180° longitude: minLon 169.0 and maxLon -179.0. Verify that the node can be created without crashing and renders the full region, including New Zealand, as the completion criteria.

Written by the indexing model from the issue text.

Description

bug

Creating a terrain node with bounds crossing 180° longitude fails. For example, New Zealand can't be rendered in a single TerrainNode.

Example:TerrainNode(minLat: -44.0, maxLat: -36.0, minLon: 169.0, maxLon: -179.0).

I've added some simple checks in #59 to avoid crashes, but not a fix.

Dominant language
Swift
Stars
232
Forks
51
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapbox/mapbox-scenekit

All issues in mapbox/mapbox-scenekit

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.