Home > vbmeg > external > iso2mesh > surfseeds.m

surfseeds

PURPOSE ^

SYNOPSIS ^

function seeds=surfseeds(node,face)

DESCRIPTION ^

 seeds=surfseeds(node,face)

 calculate a set of interior points with each enclosed by a closed
 component of a surface

 author: Qianqian Fang, <q.fang at neu.edu>

 input:
   node: a list of node coordinates (nn x 3)
   face: a surface mesh triangle list (ne x 3)

 output:
   seeds: the interior points coordinates for each closed-surface
          component

 -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function seeds=surfseeds(node,face)
0002 %
0003 % seeds=surfseeds(node,face)
0004 %
0005 % calculate a set of interior points with each enclosed by a closed
0006 % component of a surface
0007 %
0008 % author: Qianqian Fang, <q.fang at neu.edu>
0009 %
0010 % input:
0011 %   node: a list of node coordinates (nn x 3)
0012 %   face: a surface mesh triangle list (ne x 3)
0013 %
0014 % output:
0015 %   seeds: the interior points coordinates for each closed-surface
0016 %          component
0017 %
0018 % -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
0019 %
0020 
0021 fc=finddisconnsurf(face(:,1:3));
0022 len=length(fc);
0023 seeds=zeros(len,3);
0024 for i=1:len
0025     seeds(i,:)=surfinterior(node,fc{i});
0026 end

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005