Add png command for material

This commit is contained in:
Evgeny Redikultsev
2024-12-21 22:27:02 +05:00
parent fb017af47d
commit 07370e6fc9
2 changed files with 1 additions and 4 deletions

View File

@@ -50,7 +50,7 @@
<Button.ToolTip>
<uc:ButtonToolTipEh HeaderText="Show diagram's areas"
IconContent="{StaticResource GetArea}"
DescriptionText="Show areas of regions under diagrams (represent energy of deformation of material)"/>
DescriptionText="Show areas of regions under diagrams (represents energy of deformation of material)"/>
</Button.ToolTip>
<Viewbox>
<ContentControl ContentTemplate="{StaticResource GetArea}"/>

View File

@@ -257,10 +257,7 @@ namespace StructureHelper.Windows.Graphs
var chartValues = new ChartValues<double>();
for (double s = minValue; s < maxValue; s += step)
{
//var trueStep = s * factor;
double diagramValue = Math.Round(loaderMaterial.Diagram.Invoke(loaderMaterial.DiagramParameters, s * factor)) * factor * UnitConstants.Stress;
//var point = new PointF() { X = (float)s, Y = (float)diagramValue };
//chartValues.Add(point);
chartValues.Add(diagramValue);
labels.Add(Convert.ToString(Math.Round(s, 4)));
}