Docsity

Fractal Dimension - Computer Graphics - Notes | COMP 360, Study notes of Computer Graphics

Partial preview of the text

Download Fractal Dimension - Computer Graphics - Notes | COMP 360 and more Study notes Computer Graphics in PDF only on Docsity!

Fractal Dimension

Ron Goldman Department of Computer Science Rice University

Dimension and Subdivision €

€

  • €

€

€

€

  • € - €

€

€

€

€

  • €

€

€

€

€

€

  • €

€

€

€

€

€

€

€

€

€

€

€

€

€

€

€

€

€

€

parts = 2

€

parts = 4 = 2

2 €

parts = 8 = 2

3 € Dimension = 1 € Dimension = 2 € Dimension = 3

Examples Line E = N S = 1 / N D = − Log ( E ) Log ( S )

Log ( N ) Log ( 1 / N )

Square E = N 2 S = 1 / N D = − Log ( E ) Log ( S )

Log ( N 2 ) Log ( 1 / N )

Cube E = N 3 S = 1 / N D = − Log ( E ) Log ( S )

Log ( N 3 ) Log ( 1 / N )

Self Similar Fractals Self Similar A curve (surface, solid) is self-similar if it can be subdivided into a collection of subsets that are scaled versions of the original curve (surface, solid). Form Follows Function Recursion is used to Express Self-Similarity Fractal Dimension D = − Log ( E ) Log ( S )

  • D = dimension
  • E = number of equal (self-similar) parts
  • S = scale factor

Strange Curves Fractals

  • Curves with Dimension > 1
  • Curves Continuous Everywhere, but Differentiable Nowhere
  • Closed Curves with Infinite Length and Enclosing Finite Area
  • Curves that Fill Space

Sierpinski Gasket

  • Each corner triangle is scaled by 1/2 -- scale factor.
  • Number of triangles goes up by a factor of 3 -- recursive calls.

Koch Snowflake Koch Curve Koch Snowflake

Koch Snowflake Koch( Level ) If Level = 0, FORWARD 1 Else RESIZE 1/ Koch( Level-1) TURN 60 Koch( Level-1) TURN − 120 Koch( Level-1) TURN 60 Koch( Level-1) RESIZE 3 {Restore initial size} Snowflake( Level ) Repeat 3 [Koch( Level ) , TURN –120]

Koch Snowflake (continued) Painters Paradox

  • Extrude Koch Snowflake into 3–Dimensions -- Infinite Surface Area → Perimeter -- Finite Volume → Area
  • Fill the Volume with Paint Smoothness
  • Continuous Everywhere -- No Tears
  • Differentiable Nowhere -- Bumps Everywhere

C–Curve C-Bump C-Curve

C–Curve (continued) Observations

  • Side of each bump is scaled by 2 / 2 -- scale factor.
  • Number of bumps goes up by a factor of 2 -- recursive calls. Fractal Dimension E = 2 S = 2 / 2 D = − Log ( E ) Log ( S )

Log (2) Log ( 2 / 2 )

− Log (2) 1 / 2 Log (2) − Log (2)

⇒ D = 2

Perimeter

  • Pn + 1 = 2 Pn ⇒ Pn → ∞ Smoothness
  • Continuous Everywhere -- No Tears
  • Differentiable Nowhere -- Bumps Everywhere