msk-STAPLE
msk-STAPLE copied to clipboard
[GIBOC-core] TriFillPlanarHoles.m throws error if mesh has no holes
I think I fixed it: see here but please let's double check together.
It would be neater to have a isTriWatertight.m function, some ideas here. What do you think @renaultJB?
Looks good, but I might have done the check at the beginning for clarity:
%-------------------------------------------------------------------------%
function [ TRout ] = TriFillPlanarHoles( TRin)
FB = TRin.freeBoundary;
if isempty(FB)
% warning
disp('No holes on triangulation.');
TRout = TRin;
return
end
Pts = TRin.Points;
Segments = FB;
...