USRBDX logic for creating 2-d image

Dear @vasilis,
Following your suggestion and the discussion on Energy and angle of each particle escaping from the surface,
I was able to achieve my goal.
Thank you for your help.

Regards,
Hen Shukrun