JuliaGeometry / JuliaGeometry/RegionTrees.jl

Merging method?

Open
#34 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
114
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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 yet, it is possible to add such method?

Something like

root = Cell(SVector(0., 0), SVector(1., 1))
split!(root) # 1 into 2x2
merge!(root) # 2x2 into 1?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing split! operation and the Cell tree behavior shown in the issue. Determine what merging should do to child leaves and their contents, then define tests showing when merge! is valid and what completion looks like for the 2x2 example.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.