📄 check_vols.m
字号:
function [vols]= check_vols(simp,vtx);
%function [vols]= check_vols(simp,vtx);
%
%Auxiliary function that calculates the volume of
%each tetrahedron in the mesh.
%
%
%simp = The simplices
%vtx = The vertices
%vols = The array of volumes.
vols = [];
for i=1:size(simp,1)
this_simp = simp(i,:);
t_vtx = vtx(simp(i,:)',:);
t_vm = [ones(4,1),t_vtx];
t_vol = 1/6 * det(t_vm);
vols = [vols;t_vol];
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This is part of the EIDORS suite.
% Copyright (c) N. Polydorides 2001
% Copying permitted under terms of GNU GPL
% See enclosed file gpl.html for details.
% EIDORS 3D version 1.0
% MATLAB version 5.3 R11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -