hopebox: 9FGe(t< 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.
mNc?`G_R
#pe#(xoI 您能详细解释一下这个程序吗?
#o>~@.S#:0 if (FD->cv == 0.0)
[UP-BX( {
O_gr{L} UD->ln = 0.0;
1KHFzx, UD->mn = 0.0;
][gr(-6 8 UD->nn = -1.0;
}jfOs(Q] if (Refract(FD->n1, FD->n2, &UD->l, &UD->m, &UD->n, UD->ln, UD->mn, UD->nn)) return(-FD->surf);
*-.{->#Y return(0);
V8C62X }
<l#|I'hP /* okay, not a plane. */
#![9QUvcf a = (UD->n) * (UD->n) * FD->k + 1;
JY5)^<.d b = ((UD->n)/FD->cv) - (UD->x) * (UD->l) - (UD->y) * (UD->m);
jyLE c = (UD->x) * (UD->x) + (UD->y) * (UD->y);
&1!T@^56 rad = b * b - a * c;
3Ygt! if (rad < 0) return(FD->surf); /* ray missed this surface */
-@I+IKz if (FD->cv > 0) t = c / (b + sqrt(rad));
-2D/RE7| else t = c / (b - sqrt(rad));
}|KNw*h$ (UD->x) = (UD->l) * t + (UD->x);
%z9lCTmy (UD->y) = (UD->m) * t + (UD->y);
<~d3L4h*< (UD->z) = (UD->n) * t + (UD->z);
yA+NRWWj UD->path = t;
>TKl`O zc = (UD->z) * FD->cv;
[|5gw3y rad = zc * FD->k * (zc * (FD->k + 1) - 2) + 1;
fRt`]o:Om casp = FD->cv / sqrt(rad);
|H . UD->ln = (UD->x) * casp;
Y&![2o.Q UD->mn = (UD->y) * casp;
c[E" UD->nn = ((UD->z) - ((1/FD->cv) - (UD->z) * FD->k)) * casp;
C>MEgGP if (Refract(FD->n1, FD->n2, &UD->l, &UD->m, &UD->n, UD->ln, UD->mn, UD->nn)) return(-FD->surf);
dcn/|"jr 麻烦您了,谢谢!