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;