Home > brede > brede_sur_dist.m

brede_sur_dist

PURPOSE ^

brede_sur_dist - Distance to surface

SYNOPSIS ^

function dist = brede_sur_dist(S1, S2, varargin)

DESCRIPTION ^

 brede_sur_dist       - Distance to surface

       dist = brede_sur_dist(S1, coord)

       Input:  S1     'Sur' structure
               coord  3D coordinate
 
       Output: dist   Distance

       Compute distances. 

       The Euclidean distance between the vertices of a 'sur'
       structure and a specified coordinate is computed.

       Example:
         % S is a 'sur' structure
         center = mean(S.vertices);
         dist = brede_sur_dist(S, center)
         figure, hist(dist, sqrt(length(dist)));

       See also BREDE, BREDE_SUR.

 $Id: brede_sur_dist.m,v 1.1 2003/12/03 19:14:01 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005