hopebox: S:z|"u:+ 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.
fgqCX:SWz
q]1p Q)\'p 您能详细解释一下这个程序吗?
k;cIEEdZD if (FD->cv == 0.0)
mx)!] B" {
@tSB^&jUWu UD->ln = 0.0;
.-YE(}^ UD->mn = 0.0;
GG%;~4#2 UD->nn = -1.0;
>K'dgJ245 if (Refract(FD->n1, FD->n2, &UD->l, &UD->m, &UD->n, UD->ln, UD->mn, UD->nn)) return(-FD->surf);
0:Bpvl5 return(0);
/SJ>< }
B9,39rG/7+ /* okay, not a plane. */
TFOx=_.%i a = (UD->n) * (UD->n) * FD->k + 1;
[.&JQ b = ((UD->n)/FD->cv) - (UD->x) * (UD->l) - (UD->y) * (UD->m);
vVMoCG"f c = (UD->x) * (UD->x) + (UD->y) * (UD->y);
yMdu
Zmkc rad = b * b - a * c;
^W sgAyCB if (rad < 0) return(FD->surf); /* ray missed this surface */
Y-8BL if (FD->cv > 0) t = c / (b + sqrt(rad));
or#]
![7N else t = c / (b - sqrt(rad));
NU_^*@k (UD->x) = (UD->l) * t + (UD->x);
Jt}`oFQ5l (UD->y) = (UD->m) * t + (UD->y);
*04}84?: (UD->z) = (UD->n) * t + (UD->z);
Y*#xo7#B UD->path = t;
p9jC-&: zc = (UD->z) * FD->cv;
5`3x(=b rad = zc * FD->k * (zc * (FD->k + 1) - 2) + 1;
k5>UAea_ casp = FD->cv / sqrt(rad);
Qq6'[Od UD->ln = (UD->x) * casp;
\5tG>>c i UD->mn = (UD->y) * casp;
wdt2T8`I/ UD->nn = ((UD->z) - ((1/FD->cv) - (UD->z) * FD->k)) * casp;
k>i`G5Dh if (Refract(FD->n1, FD->n2, &UD->l, &UD->m, &UD->n, UD->ln, UD->mn, UD->nn)) return(-FD->surf);
\s[L=^! 麻烦您了,谢谢!