How to use 'SetRayData' in ImportanceSampling Interface?
I have set the ‘Scatter To Method’with the commond ‘...ScatterToData.ScatterToMethod = 1’, then I wanna set the Ray data as shown in Fig. 1, but I failed to call the function ‘SetRayData’.
According to the Ansys Developer Guideline as shown in Fig. 2/3, it doesnt give more details, I have tried to infer corresponding code but cant work.
Fig. 1
Fig. 2
Fig. 3
Page 1 / 1
@Borui
As you can see, SetRayData takes a IImportanceSamplingSettings as input parameter. To create such an object, you can leverage GetRayData, which returns exactly such an object. It doesn’t matter which one you get, since you’ll be overwritting it anyway.
As you can see, SetRayData takes a IImportanceSamplingSettings as input parameter. To create such an object, you can leverage GetRayData, which returns exactly such an object. It doesn’t matter which one you get, since you’ll be overwritting it anyway.