hopebox: dSsMa3X[n I don't think there are many resources on UDS but the chapter in the user manual about surface types. ZEMAX people would expect that the users learn it from the examples provided in the directory I mentioned in the previous reply.
About 角色散, I don't think there is a parameter that provides this information directly but you can make use of the relevant operand that returns the ray angle.
#PoUCRRC
P_hwa1~d 您能详细解释一下这个程序吗?
h\C if (FD->cv == 0.0)
-DX|[70 {
e.\d7_T+ UD->ln = 0.0;
*`ji2+4Sjw UD->mn = 0.0;
|?V6__9 UD->nn = -1.0;
$tj[* if (Refract(FD->n1, FD->n2, &UD->l, &UD->m, &UD->n, UD->ln, UD->mn, UD->nn)) return(-FD->surf);
NJs )2 return(0);
nXb;&n% }
& @^|=>L /* okay, not a plane. */
} UHuFff, a = (UD->n) * (UD->n) * FD->k + 1;
65=i`!f b = ((UD->n)/FD->cv) - (UD->x) * (UD->l) - (UD->y) * (UD->m);
?5'UrqYSW c = (UD->x) * (UD->x) + (UD->y) * (UD->y);
d
'4c?vC rad = b * b - a * c;
>\^:xxTf if (rad < 0) return(FD->surf); /* ray missed this surface */
h?bm1e5kE if (FD->cv > 0) t = c / (b + sqrt(rad));
F_zs"ex/ else t = c / (b - sqrt(rad));
fph*|T&R (UD->x) = (UD->l) * t + (UD->x);
+aEE(u6%E@ (UD->y) = (UD->m) * t + (UD->y);
'RTz*CSZ (UD->z) = (UD->n) * t + (UD->z);
KxGK`'E'r UD->path = t;
a)Qx43mOS zc = (UD->z) * FD->cv;
_yJd@ rad = zc * FD->k * (zc * (FD->k + 1) - 2) + 1;
/tJJ2 =%l casp = FD->cv / sqrt(rad);
NL0X =i UD->ln = (UD->x) * casp;
)<1M'2 UD->mn = (UD->y) * casp;
N#6&t8;kTC UD->nn = ((UD->z) - ((1/FD->cv) - (UD->z) * FD->k)) * casp;
mj%Iow. if (Refract(FD->n1, FD->n2, &UD->l, &UD->m, &UD->n, UD->ln, UD->mn, UD->nn)) return(-FD->surf);
'?v.O} 麻烦您了,谢谢!