Skip to content

[WIP] Pdok 18835/vervanging trex#40

Draft
DvBree wants to merge 5 commits into
masterfrom
PDOK-18835/vervanging-trex
Draft

[WIP] Pdok 18835/vervanging trex#40
DvBree wants to merge 5 commits into
masterfrom
PDOK-18835/vervanging-trex

Conversation

@DvBree

@DvBree DvBree commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Description

This is a work in progress on tile generation within texel. This feature is not yet finished. Now implemented is:

  • Given a polygon, classify which tiles lie outside the polygon, which tiles lie on the inside, and which tiles lie on the outside, and which tiles lie on the border.

Type of change

  • New feature (partial)

Checklist:

  • I've double-checked the code in this PR myself
  • I've left the code better than before (boy scout rule)
  • The code is readable, comments are added that explain hard or non-obvious parts.
  • I've expanded/improved the (unit) tests, when applicable
  • I've run (unit) tests that prove my solution works
  • There's no sensitive information like credentials in my PR

@kad-korpem kad-korpem left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nog even naar de linting errors kijken (vooral code style en type safety dingetjes zo te zien)

@DvBree
DvBree force-pushed the PDOK-18835/vervanging-trex branch from a6e3eb6 to 153afac Compare June 29, 2026 08:31

@RoelvandenBerg RoelvandenBerg left a comment

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.

Nice! Klein dingetje.
Had je de go styleguide al gelezen? Zo nee dan is dat een goeie om te doen.

Comment thread pointindex/pointindex.go
return quadrantI & right
// A version of Amanatides-Woo
// Concept: parametrize line with parameter t, with t = 0 being the start and t = 1 the endpoint. Then compute the t for which tile boundaries are intersected. By taking a suitable multiple of t, this is guaranteed to be integral. Use these to raycast along the tiles.
func (ix *PointIndex) AmanatidesWoo(line geom.Line, l Level, ringIdx int, pointIdx int) {

@RoelvandenBerg RoelvandenBerg Jul 3, 2026

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.

Ik stel voor deze CellTraversal te noemen oid. (geen FastCellTraversal (dat was mijn eerste voorstel obv AmantidesWoo) want dat is een finalBattleMostDangerousBossMonster, via)

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.

Ben je van plan deze buiten de pointindex / dit package te gebruiken? CamelCase is voor exported identifiers, pascalCase voor de rest.

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.

3 participants