请输入您要查询的百科知识:

 

词条 Orbit trap
释义

  1. Examples

     Point based  Line based 

  2. Algorithm

  3. References

In mathematics, an orbit trap is a method of colouring fractal images based upon how close an iterative function, used to create the fractal, approaches a geometric shape, called a "trap". Typical traps are points, lines, circles, flower shapes and even raster images. Orbit traps are typically used to colour two dimensional fractals representing the complex plane.

Examples

Point based

A point based orbit trap colours a point based upon how close a function's orbit comes to a single point, typically the origin.

Line based

A line based orbit trap colours a point based upon how close a function's orbit comes to one or more lines, typically vertical or horizontal (x=a or y=a lines). Pickover stalks are an example of a line based orbit trap which use two lines.

Algorithm

Orbit traps are typically used with the class of two-dimensional fractals based on an iterative function. A program that creates such a fractal colours each pixel, which represent discrete points in the complex plane, based upon the behaviour of those points when they pass through a function a set number of times.

The best known example of this kind of fractal is the Mandelbrot set, which is based upon the function zn+1 = zn2 + c. The most common way of colouring Mandelbrot images is by taking the number of iterations required to reach a certain bailout value and then assigning that value a colour. This is called the escape time algorithm.

A program that colours the Mandelbrot set using a point-based orbit trap will assign each pixel with a “distance” variable, that will typically be very high when first assigned:

double distance = 10e5

As the program passes the complex value through the iterative function it will check the distance between each point in the orbit and the trap point. The value of the distance variable will be the shortest distance found during the iteration:

private double getDistance(Complex c,

                           Complex point,                           int maxIteration)
{
    double distance = 1e20;    Complex z = new Complex(0, 0);            for(int i=0; i

}

References

  • {{citation

| last = Carlson | first = Paul W.
| doi = 10.1016/S0097-8493(99)00123-5
| issue = 6
| journal = Computers & Graphics
| pages = 925–931
| title = Two artistic orbit trap rendering methods for Newton M-set fractals
| volume = 23
| year = 1999}}.
  • {{citation

| last1 = Lu | first1 = Jian
| last2 = Ye | first2 = Zhongxing
| last3 = Zou | first3 = Yuru
| last4 = Ye | first4 = Ruisong
| doi = 10.1016/j.cag.2005.08.008
| issue = 5
| journal = Computers & Graphics
| pages = 787–794
| title = Orbit trap rendering methods for generating artistic images with crystallographic symmetries
| volume = 29
| year = 2005}}.{{Fractal software}}{{Fractals}}

1 : Fractals

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/14 2:29:38