Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
5630e652
Commit
5630e652
authored
Aug 03, 2017
by
Markus Mueller-Trapet
Browse files
bugfix for handleMode
parent
44fa4032
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/PlotRoutines/ita_plot_mesh.m
View file @
5630e652
...
...
@@ -88,8 +88,10 @@ if handleMode && ~meshOnly
% h = unvFilename;
if
isfield
(
get
(
h
),
'FaceVertexCData'
)
nodeIDs
=
get
(
h
,
'UserData'
);
elseif
isfield
(
get
(
h
),
'Children'
)
&&
isfield
(
get
(
h
,
'Children'
),
'FaceVertexCData'
)
elseif
isfield
(
get
(
h
),
'Children'
)
&&
isfield
(
get
(
get
(
h
,
'Children'
)
)
,
'FaceVertexCData'
)
nodeIDs
=
get
(
get
(
h
,
'Children'
),
'UserData'
);
else
error
(
'Could not find meta data, was this a mesh plot before?'
);
end
else
nodes
=
Mesh
.
nodesForElement
(
Mesh
.
shellElements
);
...
...
@@ -146,7 +148,7 @@ end
if
handleMode
if
isfield
(
get
(
h
),
'FaceVertexCData'
)
set
(
h
,
'FaceVertexCData'
,
plotData
);
elseif
isfield
(
get
(
h
),
'Children'
)
&&
isfield
(
get
(
h
,
'Children'
),
'FaceVertexCData'
)
elseif
isfield
(
get
(
h
),
'Children'
)
&&
isfield
(
get
(
get
(
h
,
'Children'
)
)
,
'FaceVertexCData'
)
set
(
get
(
h
,
'Children'
),
'FaceVertexCData'
,
plotData
);
end
else
...
...
@@ -167,7 +169,6 @@ else
end
%% set title
if
meshOnly
title
(
'Mesh plot'
);
set
(
h
,
'EdgeAlpha'
,
edgeAlpha
,
'EdgeColor'
,
edgeColor
,
'FaceColor'
,
faceColor
);
...
...
@@ -195,7 +196,6 @@ axis equal;
axis
off
;
%% Return the handle
varargout
(
1
)
=
{
h
};
%end function
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment