recomputeMeasureData

PURPOSE ^

recompute measure information according to original dec

SYNOPSIS ^

function decPaste = recomputeMeasureData(decPaste, decCopy)

DESCRIPTION ^

 recompute measure information according to original dec

 THIS IS NO USER FUNCTION

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function decPaste = recomputeMeasureData(decPaste, decCopy)
0002 % recompute measure information according to original dec
0003 %
0004 % THIS IS NO USER FUNCTION
0005 
0006 % measure data is regenerated according to the measures stored in DEC. The
0007 %   information in the original decomposition is not complete and currently
0008 %   this approach ich by far more simple (and less error prone) than
0009 %   reusing already existent information and adding missing ones.
0010 
0011 % The elk-library: convex geometry applied to crystallization modeling.
0012 %   Copyright (C) 2014 Alexander Reinhold
0013 %
0014 % This program is free software: you can redistribute it and/or modify it
0015 %   under the terms of the GNU General Public License as published by the
0016 %   Free Software Foundation, either version 3 of the License, or (at your
0017 %   option) any later version.
0018 %
0019 % This program is distributed in the hope that it will be useful, but
0020 %   WITHOUT ANY WARRANTY; without even the implied warranty of
0021 %   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0022 %   General Public License for more details.
0023 %
0024 % You should have received a copy of the GNU General Public License along
0025 %   with this program.  If not, see <http://www.gnu.org/licenses/>.
0026 
0027 if ~isfield(decCopy, 'measureData') || isempty(decCopy.measureData)
0028     return
0029 end
0030 measureList = fieldnames(decCopy.measureData);
0031 for iMeasure = 1:length(measureList)
0032     decPaste = addMeasureDataDec(decPaste, measureList{iMeasure}, ...
0033         decCopy.measureData.(measureList{iMeasure}).par);
0034 end

Generated on Sat 18-Jul-2015 16:45:31 by m2html © 2005