Catmull–Clark subdivision surface/OCaml: Difference between revisions
Content added Content deleted
No edit summary |
(typo) |
||
Line 34: | Line 34: | ||
Below is a program in OpenGL which displays a cube subdivided 2 times with the ''Catmull–Clark surface subdivision'' |
Below is a program in OpenGL which displays a cube subdivided 2 times with the ''Catmull–Clark surface subdivision'' algorithm. |
||
{{libheader|glMLite}} |
{{libheader|glMLite}} |
||
Line 66: | Line 66: | ||
(6, 1, 2, 4); |
(6, 1, 2, 4); |
||
(* comment some of these faces to see how |
(* comment some of these faces to see how |
||
the |
the algorithm handles surfaces with holes |
||
*) |
*) |
||
|] |
|] |