From 96d01b0e6184a33047e3e565e7d316424198634e Mon Sep 17 00:00:00 2001 From: Dale Eason Date: Wed, 12 Nov 2025 03:02:20 -0600 Subject: [PATCH] corrected profile plots to use correct obstruction values when dispalying in inches or percent --- profileplot.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/profileplot.cpp b/profileplot.cpp index 72a1163b..3a75b537 100644 --- a/profileplot.cpp +++ b/profileplot.cpp @@ -425,17 +425,22 @@ QPolygonF ProfilePlot::createProfile(double units, wavefront *wf, bool allowOffs if (!allowOffset) offset = 0.; double radius = md.m_clearAperature/2.; double obs_radius = md.obs/2.; -qDebug() << "create Profile"; + if (m_displayInches){ + obs_radius /= 25.4; + } + for (double rad = -1.; rad < 1.; rad += steps){ int dx, dy; double radn = rad * wf->m_outside.m_radius; double radx = rad * radius; if (m_displayInches){ radx /= 25.4; + } double e = 1.; if (m_displayPercent){ radx = 100. * radx/radius; + obs_radius = 100 *( md.obs/2)/radius; } if (md.isEllipse()){ @@ -448,6 +453,8 @@ qDebug() << "create Profile"; continue; } + + if (abs(radx) < obs_radius){ points << QPointF(radx,0.0); continue;