3.1.3 绘制三维Contour图的思路

2018-08-08 15:47:48 浏览数 (1)

2007年秋,开始接触数值计算,看到Contour图形,我觉得很神奇,很好看。强烈的好奇心驱使下,零零碎碎看了相关文献,都看不懂。大约2009年深秋,我读到的最早且能看懂的关于Contour绘制的文章,也是我写Contour的最主要参考:

Contour Plotter and 3D Function Grapher Together - the Applet and the Source Code

We present here another example how our custom ActionScript 3 classes in the package flashandmath.as3.* can be used to build advanced graphers and math applets. We show an applet which combines a contour diagram plotter and a 3D grapher. The user can input function formulas and variables ranges. The applet uses our custom classes: MathParser, GraphingBoard, GraphingBoard3D, and many helper classes. Click either of the images below to open the applet in a separate window.

The image above shows the contour map part, the one below the 3D grapher part.

因为代码量较多,公众号限制5万字。上图关键代码查看我的CSDN博客文章:

https://blog.csdn.net/xsolver/article/details/8913567

Download all 'fla' and 'as' files for this tutorial in the following compressed folder. The folder also contains pdf guides describing methods properties of the custom AS3 classes in the flashandmath.as3.* package..

  • contours.zip

The source code for the applet is well-commented and should be easy to read and modify.

You will find many more examples as well as extensive discussion of the classes in our book:Flash and Math Applets: Learn by Example.

话说这些技术貌似已经过时了,其实也很有必要去看,这样你会理解它的工作原理:包括三角单元剖分,染色、Z排序,3D图形在2D平面显示的算法等。

0 人点赞