%% 3-D Triangulation
% Load a 3-D triangulation.

load tetmesh

%
% Calculate the incenter coordinates of the first five tetrahedra in the triangulation, in addition to the radii of their inscribed spheres.

TR = triangulation(tet,X);
[C,r] = incenter(TR,[1:5]')

% Copyright 2015 The MathWorks, Inc.