-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathinnersurf.m
More file actions
27 lines (24 loc) · 732 Bytes
/
innersurf.m
File metadata and controls
27 lines (24 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function [inface, outface] = innersurf(node, face, outface)
%
% outface=innersurf(node,face,outface)
%
% extract the interior triangles (shared by two enclosed compartments) of a complex surface
%
% author: Qianqian Fang, <q.fang at neu.edu>
%
% input:
% node: node coordinates
% face: surface triangle list
% outface: (optional) the exterior triangle list, if not given, will
% be computed using outersurf().
%
% output:
% inface: the collection of interior triangles of the surface mesh
%
% -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
%
if (nargin < 3)
outface = outersurf(node, face);
end
tf = ismember(sort(face, 2), sort(outface, 2), 'rows');
inface = face(tf == 0, :);