Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions core/TRACE.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,10 @@
% -------------------------------------------------------------------------
% Space measure from convex hull of all instances (computed once).
% Passed to TRACEbuild3 so stopping criteria are relative to bounded space.
if is3D
[~, spaceArea] = convhull(Z);
else
[~, spaceArea] = convhull(Z(:,1), Z(:,2));
end
% convhull(Z) accepts Z directly as an n-by-2 or n-by-3 points matrix, so
% no is3D branch is needed here (unlike TRACEmetrics3's area()/volume()
% calls below, which really do need to dispatch on dimensionality).
[~, spaceArea] = convhull(Z);
if is3D; measureLabel = 'Volume'; else; measureLabel = 'Area'; end

% =========================================================================
Expand Down