Changeset 36375 for trunk/psModules/src/objects/pmModelUtils.c
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/psModules
- Property svn:mergeinfo changed
-
trunk/psModules/src/objects/pmModelUtils.c
r36287 r36375 129 129 bool pmModelAxesToParams (float *Sxx, float *Sxy, float *Syy, psEllipseAxes axes, bool useReff) { 130 130 131 // restrict axex to 0.5 here not below 132 if (axes.minor < 0.2) axes.minor = 0.2; 133 if (axes.major < 0.2) axes.major = 0.2; 134 131 135 psEllipseShape shape = psEllipseAxesToShape (axes); 132 136 … … 137 141 // set the shape parameters 138 142 if (useReff) { 139 *Sxx = PS_MAX(0.5, shape.sx); 140 *Syy = PS_MAX(0.5, shape.sy); 143 // *Sxx = PS_MAX(0.5, shape.sx); 144 // *Syy = PS_MAX(0.5, shape.sy); 145 *Sxx = shape.sx; 146 *Syy = shape.sy; 141 147 *Sxy = shape.sxy * 2.0; 142 148 } else { 143 *Sxx = PS_MAX(0.5, M_SQRT2*shape.sx); 144 *Syy = PS_MAX(0.5, M_SQRT2*shape.sy); 149 // *Sxx = PS_MAX(0.5, M_SQRT2*shape.sx); 150 // *Syy = PS_MAX(0.5, M_SQRT2*shape.sy); 151 *Sxx = M_SQRT2*shape.sx; 152 *Syy = M_SQRT2*shape.sy; 145 153 *Sxy = shape.sxy; 146 154 } … … 193 201 if (!isfinite(axes.minor)) return false; 194 202 if (!isfinite(axes.theta)) return false; 203 if (axes.major == 0) return false; 195 204 196 205 // Mxx, Mxy, Myy define the elliptical shape, but Mrf defines the width
Note:
See TracChangeset
for help on using the changeset viewer.
