// Author: A. Torpy // Created: 04 Jan 2011 // exit immediately if HF is not initialised hvar pHF set pHF assert "Heightfield is not initialised!" // initiailise the settings int ls.x_pos_px int ls.y_pos_px int ls.radius_px float ls.height_m set ls.x_pos_px
2> set ls.y_pos_px
2> set ls.radius_px 100 set ls.height_m 1000 // edit settings UI, and exit if cancelled if > return -1 endif // store a backup L3DTio_Backup.BackupMap "HF" "Apply cone to HF" 0 "view.ShowMap \"HF\"" int PEAK_MODE set PEAK_MODE 0 // 0 = cone, 1 = , 2 = sinusioid, 3 = pseudo-Gaussian int MIX_MODE set MIX_MODE 0 // 0 = add, 1 = subtract, 2 = max, 3 = min, 4 = replace, 5 = multiply map m if > echo "Error: cannot generate peak overlay in 'Cone overlay.zs'" return -1 endif // apply the peak if 0 0>> echo "Error: cannot combine peak overlay with HF in 'Cone overlay.zs'" return -1 endif // refresh the heightfield view.ShowMap "HF"