%% Incenters of Tetrahedra
% Load a 3-D triangulation.

load tetmesh

%
% Use TriRep to compute the incenters of the first five tetrahedra.

 trep = TriRep(tet,X);
 ic = incenters(trep, [1:5]')

% Copyright 2020 The MathWorks, Inc.