Anonymous user
Catmull–Clark subdivision surface/OCaml: Difference between revisions
Catmull–Clark subdivision surface/OCaml (view source)
Revision as of 16:59, 1 May 2012
, 12 years agoadd {{libheader|GLUT}}
m (removed -g parameter for compilation) |
m (add {{libheader|GLUT}}) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 24:
;;
(* returns the index of the item that
let pushi da v =
let i = da.n in
Line 34:
Below is a program in OpenGL which displays a cube subdivided 2 times with the ''Catmull–Clark surface subdivision''
{{libheader|glMLite}}
{{libheader|GLUT}}
You can compile everything together with:
ocamlopt -c dynar.ml
Line 64 ⟶ 66:
(6, 1, 2, 4);
(* comment some of these faces to see how
the
*)
|]
|