This ZPL fits a CAD surface to a sequential surface by extracting the coordinates and generating a merit function that contains the coordinates as target. This macro is compatible with a tilted surface.
it seems your this zpl is very useful for converting CAD part surface to freeform surfaces. Now I have a few questions about this zpl application program:
what is the converting precision between CAD part surface and the surfaces fitted?
Doe it suitable for any CAD part surfaces including off-axis and non-symmetric surfaces? During the replacement of the CAD file in the demo.zar file with the CAD parts which is needed to fit, are there some parameters need be adjusted? such as the z position of source ray et al?
In the optimization process with the fitting.MF generated by the zpl application, how to the set the parameters in the sequential mode: object distance, object field height, size of aperture, stop aperture size, initial parameters of the surfaces such as radius, conic, and other non-linear terms coefficients? Do you have a description of the work principle of this step? In the optimization processes, will the stop aperture move?
usually, how much the time is needed for a sample array size 1024X1024/
It depends how well the CAD surface can be fitted by the existing surface type. This could be told by the value of the merit function, the smaller, the better.
Depending on the surface type you choose to optimize, you could fit the surface to off-axis and non-symmetric surfaces.
As mentioned in the ZPL_Macro_Fit_CAD_Surface_Sequential.pdf, you can directly replace the CAD file by the one you want to fit.
Unfortunately, I could not give you a reference time as it really depends on the surface type we choose and the CAD surface we want to fit. The most time-consuming part is the optimization step using Fitting.MF. The 1024*1024 is supposed to be quite heavy for an optimization. As you can see, we have 3 operands for one data point, this means the density you choose is going to create 3,000,000+ operands.