itaComsolModelVisualizer

-now only builds mesh if mesh is visible
parent 9e6e1aba
...@@ -95,6 +95,10 @@ classdef itaComsolModelVisualizer < itaAbstract3DModelVisualizer ...@@ -95,6 +95,10 @@ classdef itaComsolModelVisualizer < itaAbstract3DModelVisualizer
this.mShowMesh = bool; this.mShowMesh = bool;
if this.autoRefresh if this.autoRefresh
if this.mShowMesh
this.plotMesh();
this.applyMeshColor();
end
this.applyMeshVisibility(); this.applyMeshVisibility();
end end
end end
...@@ -139,7 +143,7 @@ classdef itaComsolModelVisualizer < itaAbstract3DModelVisualizer ...@@ -139,7 +143,7 @@ classdef itaComsolModelVisualizer < itaAbstract3DModelVisualizer
if isempty(this.mBoundaryPlotHandles) if isempty(this.mBoundaryPlotHandles)
this.plotBoundaryGroups(); this.plotBoundaryGroups();
end end
if isempty(this.mMeshPlotHandles) if isempty(this.mMeshPlotHandles) && this.mShowMesh
this.plotMesh(); this.plotMesh();
end end
if isempty(this.mEdgePlotHandles) if isempty(this.mEdgePlotHandles)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment