论文部分内容阅读
在Visual c++6.0环境下调用OpenGL库用网格法绘制标准物化探数据等值线,以图示形式给出数据集的二维和三维方式的等值线图,并给出相应的数字高程模型图,方便用户分析和理解数值分布情况。用线性内差法计算所有网格边上的等值点,横边上的等值点到前一个最近网格点的距离存放在二维数组X中,纵边上的等值点到下一个最近网格点的距离存放在二维数组Y中。调用自编的搜索函数在网格边上搜索等值线的线头,用追踪函数对这个线头所在线上的点进行追踪,并把追踪到的等值点的坐标按顺序存放在二维数组DW中,用OpenGL中绘制Bezier 曲线的方法分段连接DW数组中的等值点,并按颜色从红到蓝递变的顺序在屏幕上绘制等值线。
In the Visual C + +6.0 environment called OpenGL library grid method drawing standard geochemical data isoline, graphically shows the data set of two-dimensional and three-dimensional contour map and gives the corresponding figures Elevation model diagram, user-friendly analysis and understanding of numerical distribution. The linear interpolation method is used to calculate the equivalent points on all the edges of the mesh. The distance from the equivalent point on the transverse edge to the nearest mesh point is stored in the two-dimensional array X. The equivalent point on the longitudinal edge reaches the next The distance of the nearest grid point is stored in the two-dimensional array Y. Call the search function to search the edge of the contour line in the edge of the grid, use the tracking function to track the point on the line where the thread is located, and store the coordinates of the traced equivalent point in a two-dimensional array DW , Use the method of drawing Bezier curve in OpenGL to connect the equivalent points in the DW array segment by segment, and draw the contour lines on the screen according to the order of the colors changing from red to blue.