Skip to content
Snippets Groups Projects
Commit 8d2693a4 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Added volumeFile fields for GtSample and GtPhase data structures.


This will help in the future to have different volumes for multiple phases

Signed-off-by: default avatarNicola Vigano <nicola.vigano@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@227 4c865b51-4357-4376-afb4-474e03ccb993
parent f4f19637
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@ classdef GtPhase < handle
R_vector = []; % Orientation (in Rodrigues space) of the grain
boundingBox = []; % Bounding Box: [x1 y1 z1 x2 y2 z2] ?
active = true; % Boolean that enables/disables the phase
volumeFile = '';
end
methods
......
classdef GtSample
properties
phases = { };
volumeFile = '';
end
methods
function obj = GtSample(phases_num)
function obj = GtSample(phases_num, volume_file)
if (~exist('phases_num', 'var'))
phases_num = 1;
end
if (exist('volume_file', 'var'))
obj.volumeFile = volume_file;
end
obj.phases = cell(1, phases_num);
for ii = 1: phases_num
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment