Catmull–Clark subdivision surface: Difference between revisions
Content added Content deleted
(Needs graphics) |
(typo) |
||
Line 83: | Line 83: | ||
This code uses a module called '''Dynar''' (for dynamic array) because it needs a structure similar to arrays but with which we can push a new element at the end. (The source of this module is given in the [[Catmull–Clark subdivision surface/OCaml|sub-page]].) |
This code uses a module called '''Dynar''' (for dynamic array) because it needs a structure similar to arrays but with which we can push a new element at the end. (The source of this module is given in the [[Catmull–Clark subdivision surface/OCaml|sub-page]].) |
||
In the [[Catmull–Clark subdivision surface/OCaml|sub-page]] there is also a program in OCaml+OpenGL which displays a cube subdivided 2 times with this |
In the [[Catmull–Clark subdivision surface/OCaml|sub-page]] there is also a program in OCaml+OpenGL which displays a cube subdivided 2 times with this algorithm. |
||
<lang ocaml>open Dynar |
<lang ocaml>open Dynar |