Skip to content

TRACE.m: collapse redundant is3D branch around convhull(Z) - #46

Merged
andremun merged 1 commit into
masterfrom
0.9.1/trace-convhull-cleanup
Aug 5, 2026
Merged

TRACE.m: collapse redundant is3D branch around convhull(Z)#46
andremun merged 1 commit into
masterfrom
0.9.1/trace-convhull-cleanup

Conversation

@andremun

@andremun andremun commented Aug 5, 2026

Copy link
Copy Markdown
Owner

convhull(P) accepts a single n-by-2 or n-by-3 points matrix directly, so branching between convhull(Z) and convhull(Z(:,1),Z(:,2)) produced identical results either way -- pure redundancy, not a correctness issue. Collapsed to one call.

Claude-Session: https://claude.ai/code/session_0111NcMAWwUUK3oGwfsb5yCp

convhull(P) accepts a single n-by-2 or n-by-3 points matrix directly, so
branching between convhull(Z) and convhull(Z(:,1),Z(:,2)) produced
identical results either way -- pure redundancy, not a correctness issue.
Collapsed to one call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0111NcMAWwUUK3oGwfsb5yCp
Copilot AI lite review requested due to automatic review settings August 5, 2026 00:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes redundant dimensionality branching in TRACE.m when computing the overall instance-space convex hull measure, relying on MATLAB’s convhull ability to accept an n×2 or n×3 point matrix directly.

Changes:

  • Collapsed the is3D branch around convhull into a single call: [~, spaceArea] = convhull(Z).
  • Added an inline comment explaining why this call does not require dimensional dispatch, while other area()/volume() uses still do.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andremun
andremun merged commit e8b9889 into master Aug 5, 2026
1 check passed
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.

3 participants