Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
3be2d039
Commit
3be2d039
authored
10 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
IPF: speedup if we have some information already
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
d12f8106
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
6_rendering/gtIPFCmap.m
+11
-5
11 additions, 5 deletions
6_rendering/gtIPFCmap.m
zUtil_Cryst/gtCrystGetSymmetryOperators.m
+348
-349
348 additions, 349 deletions
zUtil_Cryst/gtCrystGetSymmetryOperators.m
zUtil_Cryst/gtCrystVector2SST.m
+2
-2
2 additions, 2 deletions
zUtil_Cryst/gtCrystVector2SST.m
with
361 additions
and
356 deletions
6_rendering/gtIPFCmap.m
+
11
−
5
View file @
3be2d039
...
...
@@ -44,8 +44,10 @@ function [cmap, Vsst, Vc_symm, vargs_out] = gtIPFCmap(phaseid, LD, varargin)
par
.
saturate
=
true
;
par
.
save
=
false
;
par
.
crystal_system
=
''
;
par
.
spacegroup
=
''
;
par
.
r_vectors
=
[];
par
.
background
=
true
;
par
.
symm
=
[];
[
par
,
rej_pars
]
=
parse_pv_pairs
(
par
,
varargin
);
if
~
exist
(
'phaseid'
,
'var'
)
||
isempty
(
phaseid
)
...
...
@@ -76,9 +78,13 @@ if size(r_vectors, 2) == 4
end
% Get the crystal system
if
isempty
(
par
.
crystal_system
)
parameters
=
load
(
'parameters.mat'
);
par
.
crystal_system
=
parameters
.
parameters
.
cryst
(
phaseid
)
.
crystal_system
;
if
(
isempty
(
par
.
crystal_system
)
||
isempty
(
par
.
spacegroup
))
parameters
=
gtLoadParameters
();
par
.
crystal_system
=
parameters
.
cryst
(
phaseid
)
.
crystal_system
;
par
.
spacegroup
=
parameters
.
cryst
(
phaseid
)
.
spacegroup
;
end
if
(
isempty
(
par
.
symm
))
par
.
symm
=
gtCrystGetSymmetryOperators
(
par
.
crystal_system
,
par
.
spacegroup
);
end
% Compute all orientation matrices g
...
...
@@ -90,7 +96,7 @@ all_g = gtMathsRod2OriMat(r_vectors.');
LDc
=
gtVectorLab2Cryst
(
LD
,
all_g
);
% Get the color and vector in the SST triangle
[
cmap
,
Vsst
,
~
,
Vc_symm
]
=
gtCrystVector2SST
(
LDc
,
par
.
crystal_system
,
[]
,
par
.
saturate
);
[
cmap
,
Vsst
,
~
,
Vc_symm
]
=
gtCrystVector2SST
(
LDc
,
par
.
crystal_system
,
par
.
symm
,
par
.
saturate
);
if
(
par
.
background
)
cmap
=
[
0
0
0
;
cmap
];
...
...
@@ -105,7 +111,7 @@ if (par.save)
disp
([
'IPF cmap saved in '
fileName
])
end
if
nargout
>
3
if
(
nargout
>
3
)
par
.
r_vectors
=
r_vectors
;
par
.
phaseid
=
phaseid
;
par
.
samDir
=
LD
;
...
...
This diff is collapsed.
Click to expand it.
zUtil_Cryst/gtCrystGetSymmetryOperators.m
+
348
−
349
View file @
3be2d039
This diff is collapsed.
Click to expand it.
zUtil_Cryst/gtCrystVector2SST.m
+
2
−
2
View file @
3be2d039
...
...
@@ -24,12 +24,12 @@ function [rgb, Vsst, Vsst_p, Vc_symm] = gtCrystVector2SST(Vc, crystal_system, sy
%
% Version 001 15-10-2012 by YGuilhem
if
~
exist
(
'saturate'
,
'var'
)
||
isempty
(
saturate
)
if
(
~
exist
(
'saturate'
,
'var'
)
||
isempty
(
saturate
)
)
saturate
=
true
;
end
% Get symmetry operators and store g3 operators into an array
if
~
exist
(
'symm'
,
'var'
)
||
isempty
(
symm
)
if
(
~
exist
(
'symm'
,
'var'
)
||
isempty
(
symm
)
)
symm
=
gtCrystGetSymmetryOperators
(
crystal_system
);
end
symm
=
reshape
(
cell2mat
({
symm
.
g3
}),
3
,
3
,
[]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment