www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/FindIncentersin3DTriangulationExample.m

    %% Find Incenters in 3-D Triangulation  

% Copyright 2015 The MathWorks, Inc.


%% 
% Load a 3-D triangulation. 
load tetmesh  

%% 
% Calculate the incenters of the first five tetrahedra. 
TR = triangulation(tet,X);
IC = incenter(TR,[1:5]')