Interactive Beamforming & Array Geometry Demo (bpdemo)
The bpdemo directory contains BPdemo, an interactive X11/Motif and OpenGL educational demonstration program for exploring acoustic phased-array beamforming, shading windows, steering angles, and 2D/3D directivity patterns.
Main Application & Core Calculation Modules
BPdemoâ Main entry point and Motif widget hierarchy setup for the interactive beam-pattern demonstrator.bpfuncâ Mathematical beamforming engine computing discrete element summation, continuous line-array sinc approximations, shading weights (uniform, cosine, Hamming, Blackman, Dolph-Chebyshev), and steered array response.do_parseâ Command-line and configuration parser forBPdemo.work_procâ Background MotifXtWorkProcidle handler for continuous animation updates.
2D & 3D Drawing Canvases and Event Handlers
draw_mainâ Renders Cartesian and polar 2D beam-pattern directivity curves.draw_threeD&threeD_windowâ Renders 3D Mills Cross transmit/receive cone intersections and array geometry.da_main_events,da_polar_events,da_tl_events,threeD_eventsâ Mouse and expose event callbacks for the Cartesian, Polar, Transmission Loss, and 3D viewports.callbacks,about,error,warningâ Motif slider/menu UI callbacks and dialog boxes.