Description
Count unique occupied voxel cells per explicit axis layer, distinguishing occupancy from duplicated observation records; layer order follows first appearance.
A voxel is a cell on a three-dimensional integer lattice. Coordinates use [x, y, z] order; a box uses an inclusive low corner and exclusive high corner, so its dimensions count cells rather than physical distance. Occupancy records can repeat the same cell without creating extra occupied space.
Count unique occupied voxel cells per explicit axis layer, distinguishing occupancy from duplicated observation records; layer order follows first appearance.
When to use this tool
Use this tool to count unique occupied voxel cells per explicit axis layer, distinguishing occupancy from duplicated observation records; layer order follows first appearance.
How to use the tool and how it works
- Enter coordinates, axis using the field definitions below.
- Run the operation. Correct input errors before interpreting an output.
- Read result.layers. Use the ordering, boundary rules and absence conditions described below.
Deduplicate occupied coordinates and group them by the selected axis component. Return layer coordinates and unique-cell counts in first-appearance order.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| coordinates | List of [x, y, z] occupied integer cell coordinates; duplicates are coalesced for occupancy operations. | Dense list of at most 128 numeric rows, each at most 128 finite entries; required row shape is stated above. |
| axis | Axis index: 0 = x, 1 = y, 2 = z. | A finite safe integer within the operation’s stated bounds. |
| Output field | Interpretation |
|---|---|
| result | Object containing the named fields below. |
| result.layers | First-seen axis-layer coordinates with unique occupied-cell counts. |
{
"input": {
"coordinates": [
[
0,
0,
0
],
[
0,
0,
1
],
[
0,
0,
1
]
],
"axis": 2
},
"output": {
"result": {
"layers": [
{
"coordinate": 0,
"count": 1
},
{
"coordinate": 1,
"count": 1
}
]
}
}
} Limitations and assumptions
- Axis is 0, 1 or 2 for x, y or z; missing layers are not inserted.
- Voxel components are integers from −1,000,000,000 through 1,000,000,000; dimensions are three integers from 1 through 1,000,000. Counts or strides returned as decimal text use exact integer arithmetic. No physical voxel size is assumed.
- Every declared top-level input field is required and unexpected fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
- Numeric outputs must be finite and no larger in absolute magnitude than the safe-integer limit; operations returning exact large integers use decimal text. Positions are zero-based and spans end exclusively unless the operation explicitly states a different convention.
Alternative or Complementary methods
Keep cell coordinates, storage order and physical scale separate. Use coordinate conversion for a different memory layout and a separate meshing or geometric model for rendered surfaces.
References
Similar or alternative tools
- Voxel Occupancy Axis Projection
Project deduplicated explicit occupied voxel coordinates by dropping one axis, coalescing projected duplicates in first-appearance order; no depth, visibility or rendering model.
- Voxel Occupancy Bounding Box
Compute a half-open integer cell envelope of explicit unique occupied voxels, adding one at inclusive maximum cells; empty occupancy has null box.