Ray tracing by implementing C++ language-based wavefront construction approach
Han Fu-xing1,2, Sun Jian-guo1,2, Yang Hao1,2
Lab of Integrative Interpretation Theory of Applied Geophysics, College of Geophysical Survey Science and Technology, Jilin University, Changchun City, Jilin Province, 130026, China
Abstract:In view of the difficulty existed in the process of wavefront paths computation that uses wavefront construction approach for ray tracing, the paper presented C++ language-based implementation approach.The C++ algorithm avoids the issues of data realignment and labeling coming from ray interpolation ( new rays inserting) and grid transform ( transformation from ray grid to rectangular grid). The data can be inserted at any time without considering data positioning in the computational process of program. Starting from kinematical ray-tracing system, we firstly briefly reviewed the basic equation and numeric computation approach of wavefront construction approach; then, introduced class-sum function used in C++ language, gave designing idea and implementing steps. The analysis of real cases showed that using C++ language to finish the ray tracing of wavefront construction approach can greatly reduce the work difficulty, and has rapidly computational and high efficient characters; all class-sum functions used in program implementation are independent subfunction and subroutine and do not rely on any platforms and routines, which can be transplanted easily.
韩复兴, 孙建国, 杨昊. 基于C++语言实现波前构建射线追踪[J]. 石油地球物理勘探, 2007, 42(4): 474-481.
Han Fu-xing, Sun Jian-guo, Yang Hao. Ray tracing by implementing C++ language-based wavefront construction approach. OGP, 2007, 42(4): 474-481.