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
8ace80a1
Commit
8ace80a1
authored
11 years ago
by
Yoann Guilhem
Committed by
Nicola Vigano
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add some flexibility to gtCrystVector2SST
parent
66659a43
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
6_rendering/gtIPFCmap.m
+3
-5
3 additions, 5 deletions
6_rendering/gtIPFCmap.m
zUtil_Crack/GtCrackAnalysis.m
+3
-5
3 additions, 5 deletions
zUtil_Crack/GtCrackAnalysis.m
zUtil_Cryst/gtCrystVector2SST.m
+6
-2
6 additions, 2 deletions
zUtil_Cryst/gtCrystVector2SST.m
with
12 additions
and
12 deletions
6_rendering/gtIPFCmap.m
+
3
−
5
View file @
8ace80a1
...
...
@@ -76,13 +76,11 @@ if size(r_vectors,2) == 4
end
r_vectors
=
r_vectors
.'
;
% Get the
symmetry operators
% Get the
crystal system
if
isempty
(
par
.
crystal_system
)
parameters
=
load
(
'parameters.mat'
);
par
.
crystal_system
=
parameters
.
parameters
.
cryst
(
phaseid
)
.
crystal_system
;
end
tmp
=
gtCrystGetSymmetryOperators
(
par
.
crystal_system
);
symm
=
{
tmp
.
g3
};
% Compute all orientation matrices g
% Gcry = g Gsam
...
...
@@ -90,10 +88,10 @@ symm = {tmp.g3};
all_g
=
gtMathsRod2RotMat
(
r_vectors
);
% Compute LDc = LD expressed in the crystal CS
LDc
=
gtVectorLab2Cryst
(
LD
,
sam2crys
);
LDc
=
gtVectorLab2Cryst
(
LD
,
all_g
);
% Get the color and vector in the SST triangle
[
map
,
Vsst
,
~
,
Vc_symm
]
=
gtCrystVector2SST
(
LDc
,
par
.
crystal_system
,
symm
,
par
.
saturate
);
[
map
,
Vsst
,
~
,
Vc_symm
]
=
gtCrystVector2SST
(
LDc
,
par
.
crystal_system
,
[]
,
par
.
saturate
);
cmap
=
[
0
0
0
;
map
];
...
...
This diff is collapsed.
Click to expand it.
zUtil_Crack/GtCrackAnalysis.m
+
3
−
5
View file @
8ace80a1
...
...
@@ -475,7 +475,6 @@ methods (Access = public)
end
obj
.
Nphases
=
length
(
crystal_systems
);
symm
=
cell
(
1
,
10
);
for
iphase
=
1
:
obj
.
Nphases
% Get crystal system
try
...
...
@@ -486,12 +485,11 @@ methods (Access = public)
end
syst
=
crystal_systems
{
iphase
};
% Get symmetry operators
symm
=
gtCrystGetSymmetryOperators
(
syst
);
% Store phase crystal system and symmetry operators
obj
.
p_crystalSystem
{
iphase
}
=
syst
;
obj
.
p_symm
{
iphase
}
=
{
symm
.
g3
};
% Get symmetry operators
obj
.
p_symm
{
iphase
}
=
gtCrystGetSymmetryOperators
(
syst
);
end
end
...
...
This diff is collapsed.
Click to expand it.
zUtil_Cryst/gtCrystVector2SST.m
+
6
−
2
View file @
8ace80a1
...
...
@@ -7,9 +7,9 @@ function [rgb, Vsst, Vsst_p, Vc_symm] = gtCrystVector2SST(Vc, crystal_system, sy
% INPUT:
% Vc = <double> Row vectors expressed in crystal frame
% crystal_system = <string> Crystal system type ('cubic'|'hexagonal')
% symm = <cell_array> Symmetry operators
%
% OPTINAL INPUT:
% OPTIONAL INPUT:
% symm = <cell> Symmetry operators (recomputed if empty)
% saturate = <logical> Saturate or not the RGB output {true}
%
% OUTPUT:
...
...
@@ -28,6 +28,10 @@ function [rgb, Vsst, Vsst_p, Vc_symm] = gtCrystVector2SST(Vc, crystal_system, sy
saturate
=
true
;
end
% Get symmetry operators and store g3 operators into an array
if
~
exist
(
'symm'
,
'var'
)
||
isempty
(
symm
)
symm
=
gtCrystGetSymmetryOperators
(
crystal_system
);
end
symm
=
reshape
(
cell2mat
({
symm
.
g3
}),
3
,
3
,
[]);
% All equivalents by symm
...
...
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