Voxel clippingPlanes clip in different direction
- Dominant language
- JavaScript
- Stars
- 15.7k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
### What happened?
**What happened:**
When applying a clippingPlaneCollection to a voxelPrimitve, the clipped volume is inverted compared to Cesium3DTileset or Entities.
**What I would expect:**
Same clipping behavior to the one of e.g. Cesium3DTileset.
**Workaround:**
To achieve the same behavior, both, *plane normal* and *distance* needs to be negated. Then clipping behaves the same.
### Reproduction steps
1. Create ClippingPlaneCollection
2. Create VoxelPrimitive and Cesium3DTileset
3. Apply clippingPlanes to both and compare
### Sandcastle example
https://sandcastle.cesium.com/#c=lVVtb+JGEP4rI75gTr7FYI4EAlEJaaSTaBM19K5VyIfFO8Cq6113d+3AnfLfq10bMFzSqhICPDPPzDOv5mmmtIUPQA1M0fA8hZVWKTQT/9C8WsiFTJQ0FgqOL6hhDBJfKlvyxcuCynqqpKVcom6G8P21VcMmKK3HVrgp1RYNpzImLtwtrjWiCRYS4ONFn8T9KI7iy0HUG/SibujEcY8MeoP+RSe+HFwM4ou+l/YjEoULWYZa5TKxXEm4UdsvaoviQauCM9RBC747a7vhhpgNzfDIxBs+Otl8lyG5uf/j6mCacnmjcsnMadJH8sHHT44A1H9aNTzd/ge+xB2/a2DGU5SGK/k++jIE96mBJE3R2T81CypybD4fVXaXlarKzy9oKaOW+rQfp5PZ5LeadaLSTEmUdv4ObFo3IHez+8k87tYcrIVaUjHXVJqV0umx4AeRIUiN/VVpu/k9m6s7vkV2p2mKQTkttbRoQbmgS4EzLFA4Op2rhXx1TT/vNcm0ssolSzT+naOxt9RSGMNhOmriQGVOZKr54CvYS4jlVTS4hqjSA2i0uZaQS4YrLpF5ip4HQLUljsxU5dLC+LyRZAsffpDt3pB9836rYA9apdy4dIwSBQYlk/r4ur1Daf0q7fsz0ZrugqfSGPwA3QlFbdwtNUeeLbLiQgSdVlgaP5d/XPlf6+tfr3I1kj8u2tWZOU+55YXbt/J8EJOgRJLtFYZQxnxK9atygg2q2mdVkOEpFU/2tXW4AqeBCcNlvr7V9MW1Q+d4eikSjdTiVPAs43L9IKhEs78WVfnrq1e3myoh0Hs5EPTwITy9BwneXuNOCFEIUSuEOGo9V11AtnYhlB4eEO6J/PnzbHb/tWb0lTO7GULXH0JXif1mnBUiOUkSxu/k7utDzU4mx42hjN3wdM4FGrT78pRtXh7kMAb6Qrk90PU/8W2l9sP5WcmJMWg/s6Db6/f6nzplPKj5+R9E4V+H6ujyUJKzRMp5KV0kNEVNyUrs5sofbS7Xj9kG9UnXzjTloQqh4293WBaG5Zq6sg2hfDn5jjTCxsjYncBrZ/ITL1+7uRYBIW2LaSaoRdNe5slfrgTGONCovYeMGC+As/GicfamXTQgEdSY8aKxyoV45N9w0bgetRkvTmBCUcf7vkAt6M6ZbDrXs1JICBm1N503UFYpsaS65vEf
### Environment
Browser: Firefox/Edge
CesiumJS Version: 1.144.0
Operating System: Linux
### AI acknowledgment
- [ ] I used AI to generate this issue report.
- [ ] (If the above is checked) I have reviewed the AI-generated content before submitting.
Contributor guide
Research direction
Start with the linked Sandcastle example and reproduce the clipping comparison between VoxelPrimitive and Cesium3DTileset. Trace how their clippingPlaneCollection behavior differs, then verify that identical plane inputs produce matching clipping directions in both primitives.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100