Hello,
I've been experimenting with kWaveArray and noticed an issue when converting a karray to a binary mask. After conversion, the size of the elements seems to differ from the expected size, likely due to interpolation of off-grid points.
For example, if I create a rectangular element with specific width and length, the binary mask generated by getArrayBinaryMask shows a size that is (much) larger than expected. Specifically, when I measure (in grid points) the length (say, along the x-axis), the result exceeds the intended size of Lx / dx (by more than 1-2 extra grid points).
I understand that parameters like 'BLITolerance' can influence this behavior, but I'm wondering how I can ensure the size of the binary mask matches the intended dimensions exactly.
Thanks for your help!