Home > brede > brede_sur_refine.m

brede_sur_refine

PURPOSE ^

brede_sur_refine - Refine surface

SYNOPSIS ^

function Sout = brede_sur_refine(Sin, varargin)

DESCRIPTION ^

 brede_sur_refine     - Refine surface

       Sout = brede_sur_refine(Sin)

       Input:    Sin    'Sur' structure

       Property: Depth  [ 1 | positive integer ] Number of times to
                        iterate the refinement.

       Output:   Sout   Refined 'sur' structure

       Refine the surface defined in the 'sur' structure, ie, add
       more polygons. The reverse operation is performed with
       brede_sur_reduce. 

       Every triangle is converted to four triangles:

               2
              /\
           4 /__\ 5
            /\  /\
           /  \/  \
         1 -------- 3
              6 

       This presently only works for triangularized surfaces. 

       Example:
         S1 = brede_sur_tetrahedron('size', 0.05);
         S2 = brede_sur_refine(S1, 'depth', 3)
         figure, brede_ta3_frame, brede_ta3_sur(S2)

       See also BREDE, BREDE_SUR, BREDE_SUR_REDUCE,
                BREDE_SUR_TETRAHEDRON, BREDE_TA3_FRAME,
                BREDE_TA3_SUR.

 $Id: brede_sur_refine.m,v 1.3 2003/11/27 11:59:32 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