RegionTrees.jl icon indicating copy to clipboard operation
RegionTrees.jl copied to clipboard

Quadtrees, Octrees, and more in Julia

Results 9 RegionTrees.jl issues
Sort by recently updated
recently updated
newest added

``` root = RegionTrees.Cell(SVector(0., 0), SVector(1., 1)) split!(root) split!(root[1,1]) function run(root) for c in RegionTrees.allleaves(root) a = c.boundary.origin + c.boundary.widths #@show a end end @code_warntype run(root) ``` shows that `c`...

I've been implementing my own version of Dual Contouring (http://faculty.cs.tamu.edu/schaefer/research/dualcontour.pdf) and I noticed that if all the cell data types returned by `refine_data` are not identical, then `split!` fails because...

Is there a way to determine all the neighbors of a given leaf? If this requires a pull request I am happy to try and look into it :)

Hi, Great package! I have a question regarding the available functionality: as an opposite to `split!`, is there a `merge!` method available to combine leaves together? If it hasn't existed...

I tweaked the [example](https://github.com/rdeits/RegionTrees.jl/blob/master/examples/adaptive_distance_fields/adaptive_distances.ipynb) as follows: ``` import StaticArrays: SVector using RegionTrees include("adaptive_distance_fields.jl") using .AdaptivelySampledDistanceFields: ASDF, evaluate s = x -> sqrt(sum((x - SVector(0, 0)).^2)) eps = 0.1 adf =...

Tests seem to pass with Interpolations.jl v0.16.2. (Tested locally. To run CI, the CI code needs to be updated: 6eeb3c56fb7bc666c74bfa3dfb4864cf0d6f7079) Though from the [Release Notes](https://github.com/JuliaMath/Interpolations.jl/releases): - Julia 1.6 is required...

Closes #43 Fixed the type instability by adding types to Channels in allcells, allleaves, allparents. Basically applied the change suggested in #43. It comes with a little bit of performance...

Subsequent calls of `adaptivesampling!` fail because it just collects the cells and splits them if required. MWE from example: ```julia using RegionTrees using StaticArrays: SVector import RegionTrees: AbstractRefinery, needs_refinement, refine_data...