Skip to content

Commit 5dccc45

Browse files
committed
Merge branch 'bugfix/VHEE_export_to_matRad' into 'develop'
added target point to VHEE stf See merge request e040/e0404/pyRadPlan!170
2 parents f06eaa4 + f38bffd commit 5dccc45

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5555
- GUI: widget refresh failures are now shown in the main-window status bar instead of only being logged
5656
- GUI: config forms show a generic JSON editor for unsupported field types instead of hiding them
5757
- Ipopt intermediate-callback guard admitted arities it then indexed past (`>= 3` vs. index 9)
58+
- VHEE now has target points for matRad export
5859

5960
## [0.4.1] - 2026-06-16
6061

pyRadPlan/stf/generators/_vhee.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ def _create_rays(self, beam) -> list[dict]:
132132

133133
ray["beamlets"] = beamlets
134134

135+
ray["target_point"] = (
136+
2 * (ray["ray_pos"] - beam["source_point"]) + beam["source_point"]
137+
)
138+
ray["target_point_bev"] = (
139+
2 * (ray["ray_pos_bev"] - beam["source_point_bev"]) + beam["source_point_bev"]
140+
)
141+
135142
# Validate rays - remove any empty rays
136143
rays = [ray for ray in rays if len(ray["beamlets"]) > 0]
137144

0 commit comments

Comments
 (0)