Skip to content

Add altitudeOffset value to renderSurfaces - #217

Merged
pyrollo merged 2 commits into
mainfrom
pyr/surface-offset
Nov 5, 2026
Merged

pyrollo merged 2 commits into
mainfrom
pyr/surface-offset

Conversation

@pyrollo

@pyrollo pyrollo commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Add a altitudelOffset field to renderSurfaces
  • Remove old renderBuilding task (became useless with facades + previous update)
  • Use ModelValues in renderFacadesTask

Feature description

This PR adds a new altitudelOffset model value field to renderSurface task and makes heightmap field optional.

If only altitudelOffset is present, surface voxels are placed at this altitude.
If only heightmap is present, surface voxels are placed on heightmap altitude (former behavior).
If both altitudelOffset and heightmap are present, voxel altitude is the result of addition of both values.

This will change again once contextual model values developed.

I also had to update renderFacadesTask to make it use ModelValues in order do fix a slight gap between walls and roofs positions.

As side effect:
Closes #219

Reason

Old renderBuilding task was used only because that feature was missing to renderSurface. With renderFacade it was not understandable to keep it.This feature is simple and enables some interesting possibilities while waiting for contextual values.

Self-checks

  • The code has unit tests associated
  • The code has Javadoc Comments associated
  • Complex / Unexpected code is explained / justified with a small comment
  • Relevant documentation inside the /docs folder has been updated
  • All examples in examples/ work the same (or have been adapted if subject to changes in this PR)
  • Git history is clean (each commit accomplish a single task and describe it accordingly)
  • The texts have been proofread (documentation, error messages, logs, comments...)

@pyrollo
pyrollo force-pushed the pyr/surface-offset branch from b2e46fe to 5994532 Compare October 28, 2026 16:15
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

[Maven Build Status]

📑 Commit: d975c57372576ed9af96c44b5c6fea5180179f8d
⌚️ Date: 2026-11-04T17:51:19 (CET)
🛠️ Status: ✅ Success

📦 Download artifact: voxatile.jar

@pyrollo pyrollo changed the title Add verticalOffset value to renderSurfaces Add altitudeOffset value to renderSurfaces Oct 28, 2026
@pyrollo
pyrollo force-pushed the pyr/surface-offset branch 2 times, most recently from c1ceea9 to 9d5027d Compare October 28, 2026 16:25
@pyrollo
pyrollo marked this pull request as ready for review October 28, 2026 16:25
@pyrollo pyrollo added size: small Relatively small change To review labels Oct 28, 2026

@indyteo indyteo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some remarks with the Conventional Comments style

Comment thread docs/usage/parameters/TileTasks.md Resolved
Comment thread examples/processes/full.yaml Resolved
Comment thread docs/usage/parameters/TileTasks.md Resolved
Comment thread examples/processes/full.yaml Resolved
@indyteo

indyteo commented Oct 29, 2026

Copy link
Copy Markdown
Member

thought: With parameterized voxelizers (#199), this could be an offset voxelizer to offset coordinates returned by another voxelizer by any X/Y/Z (model/contextual) value

@pyrollo
pyrollo force-pushed the pyr/surface-offset branch 2 times, most recently from 851c226 to d4c3b09 Compare November 4, 2026 14:54
@pyrollo
pyrollo force-pushed the pyr/surface-offset branch 2 times, most recently from ca781af to aa5f960 Compare November 4, 2026 15:14

@indyteo indyteo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Last polish before merging

@pyrollo
pyrollo force-pushed the pyr/surface-offset branch from aa5f960 to d975c57 Compare November 4, 2026 16:50
@pyrollo
pyrollo merged commit 413797d into main Nov 5, 2026
13 checks passed
@pyrollo
pyrollo deleted the pyr/surface-offset branch November 5, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: small Relatively small change To review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use ModelValues in RenderFacadesTaskParams

3 participants