Home > brede > brede_sur_flatten.m

brede_sur_flatten

PURPOSE ^

brede_sur_flatten - Flatten surface

SYNOPSIS ^

function F = brede_sur_flatten(S, varargin)

DESCRIPTION ^

 brede_sur_flatten    - Flatten surface

       F = brede_sur_flatten(S)

       Input:  S    'Sur' structure

       Output: F    
 
       Convert vertices coordinates from 3D to a 2D flatmap
       representation. 

       Draft version: Does not work. 

       Example: 
         S1 = brede_vol_vol2sur(V, 'type', 'isosurface');
         S2 = brede_sur_flatten(S);
         color = brede_sur_color(S1);
         s.faces = S2.faces;
         s.vertices = S2.vertices;
         figure, patch(s, 'FaceVertexCdata', color, 'facecolor', 'interp', 'edgecolor', 'none')

       See also BREDE, BREDE_SUR, BREDE_TA3, BREDE_SUR_CURVATURE,
                BREDE_SUR_HULLLEVEL, BREDE_TA3_SUR_DIGITIZE.

 $Id: brede_sur_flatten.m,v 1.2 2003/12/02 23:15:12 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