Skip to main content

ZOS-API interface 2024 R1

Example 17: Bulk Scatter

Last update: 17.07.2025

Ex 17: A copy of the bulk scatter sample file (…\Non-sequential\Scattering\Bulk scatter.zos) is created from scratch. The volume scattering profile is set on a rectangular volume. Both a shaded model and a detector viewer are opened with user-defined settings (rotating the XYZ orientation) via the ModifySettings() method. A non-sequential ray trace with scattering enabled is performed. Note that to observe scattering in the created ZMX file, the Scatter NSC Rays setting will have to be manually checked in the NSC Shaded Model.

Input:      None

Output: API\e17_NSC_BulkScatter.zos

C#

C++

Matlab

Python

Connect with Ansys