Skip to content

Add 'boundary' parameter for constrained triangulation of neighbours … - #38

Merged
mpadge merged 2 commits into
UrbanAnalyst:mainfrom
mdsumner:boundaries-cdtr
Nov 6, 2026
Merged

mpadge merged 2 commits into
UrbanAnalyst:mainfrom
mdsumner:boundaries-cdtr

Conversation

@mdsumner

@mdsumner mdsumner commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

…(#5)

scl_redcap() and scl_full() gain an optional 'boundary'. When given, spatial neighbours come from a constrained Delaunay triangulation of the points and boundary rings (via 'cdtr', in Suggests), with triangles outside the boundary or inside holes removed, so no neighbour edges cross outside the study region. If boundary vertices leave the point graph disconnected, MST edges are added as in scl_edges_nn().

…rbanAnalyst#5)

scl_redcap() and scl_full() gain an optional 'boundary'. When given,
spatial neighbours come from a constrained Delaunay triangulation of the
points and boundary rings (via 'cdtr', in Suggests), with triangles
outside the boundary or inside holes removed, so no neighbour edges cross
outside the study region. If boundary vertices leave the point graph disconnected,
MST edges are added as in scl_edges_nn().
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.46429% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.21%. Comparing base (4001310) to head (4c8fa57).

Files with missing lines Patch % Lines
R/edges.R 77.88% 23 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   90.96%   91.21%   +0.25%     
==========================================
  Files          19       19              
  Lines        1771     1879     +108     
==========================================
+ Hits         1611     1714     +103     
- Misses        160      165       +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mpadge

mpadge commented Nov 6, 2026

Copy link
Copy Markdown
Member

Awesome work, thanks so much Mike! Can you add yourself as "aut" to DESC too please? I'd also like a clear example, but I'll do that myself, which'll be a great way for me to understand exactly what your code adds here.

@mdsumner

mdsumner commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

awesome, can follow up with examples if you want more (not sure when tho .. gettin hectic here)

@mpadge
mpadge merged commit 6976664 into UrbanAnalyst:main Nov 6, 2026
8 of 9 checks passed
@mpadge

mpadge commented Nov 6, 2026

Copy link
Copy Markdown
Member

Thanks - I'll elevate you from "ctb" to "aut", coz those are definitely entire new functions you've authored there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants