-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some doubts about custom faceted lenses #170
Comments
Hi, You are lumping together several problems. First, don't use OpenCL (targetOpenCL=None, as by default). Then you don't need You can try your lens class with one of the examples in If you want to boost the speed with a decent GPU, you specify targetOpenCL as needed. Then you also need your custom implementation of those OpenCL functions. When the class is functional, whether with or without OpenCL connection, it should be importable into xrtQook. |
from xrt.backends.raycing.oes import * class CustomLens(Plate):
|
Hi, there are a couple of questions about lenses with custom face shapes that I have not been able to figure out, so I'd appreciate your guidance.
1, I need to set my lens shape to "DoubleParaboloidLens", Do I need to rewrite cl_local_z and cl_local_n as custom face functions? as shown in the figure below .
(I think the XRT program relies on the text content in cl_local_z and cl_local_n to determine the lens shape, but I think the XRT program relies on the text content in cl_local_z and cl_local_n to determine the lens shape. cl_local_n to determine the lens shape.
2, I follow the tutorial to add a new module, in the new module to add new variables and change the face type function equation, successfully imported into xrt.qook, the generated script runs perfectly, but the program will prompt "Incorrect parameters , class customLens01 is not initialized" as shown in Figure 2 below. Is there a good solution for this situation.
Thank you for your guidance!
The text was updated successfully, but these errors were encountered: