Liking cljdoc? Tell your friends :D

thi.ng.geom.voxel.svo


apply-voxelsclj/s

(apply-voxels f tree coll)
source

as-arrayclj

(as-array tree min-depth)
source

bit-valsclj/s

source

cell-indexclj/s

(cell-index stride stride-z x y z)

Returns the index for the cell at xyz with stride and stride-z.

Returns the index for the cell at xyz with `stride` and `stride-z`.
sourceraw docstring

delete-atclj/s

(delete-at tree v)
(delete-at tree offset dim idx depth max-depth branches v)
source

depth-atclj/s

(depth-at tree v)
(depth-at tree max-depth v)
(depth-at tree offset dim idx depth max-depth branches v)

Returns max defined tree depth at given position.

Returns max defined tree depth at given position.
sourceraw docstring

depth-indexclj/s

source

depth-sizeclj/s

source

max-depthclj/s

(max-depth dim prec)

Returns max tree depth for the given size and min requested precision (voxel size).

Returns max tree depth for the given size and min requested precision (voxel size).
sourceraw docstring

node-bitmaskclj/s

(node-bitmask o dim p)
source

node-idclj/s

(node-id [ox oy oz] dim [px py pz])
source

node-indexclj/s

(node-index idx id d sizes)
source

node-offsetclj/s

(node-offset [x y z :as p] d)
(node-offset [x y z] d b)

Computes the position of a child node id

Computes the position of a child node id
sourceraw docstring

selectclj/s

(select tree min-depth)
(select data offset dim idx depth min-depth branches acc)
source

select-cellsclj/s

(select-cells tree min-depth)
(select-cells data offset dim idx depth config branches acc)
source

set-atclj/s

(set-at tree v)
(set-at tree offset dim idx depth max-depth branches v)

Marks voxel at given position as set. Updates tree at all levels.

Marks voxel at given position as set. Updates tree at all levels.
sourceraw docstring

size-at-depthclj/s

(size-at-depth dim depth)

Returns node size at depth for given tree bounds.

Returns node size at depth for given tree bounds.
sourceraw docstring

used-bitsclj/s

Returns a lazy-seq of bit ids used in x. Only checks 8bit range (0 - 255).

Returns a lazy-seq of bit ids used in `x`.
Only checks 8bit range (0 - 255).
sourceraw docstring

voxel-cellclj/s

(voxel-cell {:keys [size stride stride-z]} idx)

Returns the cell coordinate for the given index and tree configuration as vec3 (the latter obtained via voxel-config-at-depth).

Returns the cell coordinate for the given `index` and tree
configuration as vec3 (the latter obtained via
`voxel-config-at-depth`).
sourceraw docstring

voxel-config-at-depthclj/s

(voxel-config-at-depth {:keys [dim max-depth] :as tree} min-depth)

Returns a map of configuration settings for the given tree and depth. Depth will be clamped at tree's max-depth.

Returns a map of configuration settings for the given `tree` and
`depth`. Depth will be clamped at tree's max-depth.
sourceraw docstring

voxel-coordclj/s

(voxel-coord config idx)

Returns the actual world space coordinate for the given index and tree configuration (the latter obtained via voxel-config-at-depth).

Returns the actual world space coordinate for the given `index` and
tree configuration (the latter obtained via
`voxel-config-at-depth`).
sourceraw docstring

voxeltreeclj/s

(voxeltree dim prec)

Creates a new voxel tree structure with the given root node dimension and min precision.

Creates a new voxel tree structure with the given root
node dimension and min precision.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close