Skip to content

Epic 147E: preserve LAS color in COPC→3D Tiles export - #105

Merged
rsasaki0109 merged 1 commit into
mainfrom
agent/epic147-tiles3d-rgb
Aug 6, 2026
Merged

rsasaki0109 merged 1 commit into
mainfrom
agent/epic147-tiles3d-rgb

Conversation

@rsasaki0109

Copy link
Copy Markdown
Owner

Summary

Extends the bounded COPC → 3D Tiles exporter to preserve LAS color.

Changes

  • export_copc_tileset now extracts u16 red/green/blue fields from each COPC node's cloud and shifts each channel right by eight bits into the interleaved 8-bit RGB that the pnts feature table requires.
  • Color-less COPC files still export RGB-less tiles (behavior unchanged).
  • New test writes a color-bearing COPC and verifies every decoded tile carries point_count * 3 RGB bytes.

Verification

  • cargo test -p spatialrust-interchange --features tiles3d-copc — 23 tests
  • clippy -D warnings clean; cargo fmt --all --check clean

extract_rgb reads the cloud's u16 red/green/blue fields and shifts each
channel right by eight bits into the interleaved 8-bit RGB the pnts
feature table expects, when the source COPC carries color. Add a
color-bearing COPC round-trip test.
@rsasaki0109
rsasaki0109 merged commit eedb739 into main Aug 6, 2026
101 checks passed
@rsasaki0109
rsasaki0109 deleted the agent/epic147-tiles3d-rgb branch August 6, 2026 13:59
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.

1 participant