Function reference
CatmullClark.catmullclarkstep
— Functioncatmullclarkstep(faces)
Perform a single step of Catmull-Clark subdivision of a surface. See Wikipedia or page 53 of http://graphics.stanford.edu/courses/cs468-10-fall/LectureSlides/10_Subdivision.pdf The faces argument is a Vector{Face} of all the faces of the 3D object's surface. Returns: a set of the new faces, usually a 4 times larger vector of smaller faces.
CatmullClark.catmullclark
— Functioncatmullclark(faces, iters, callback=(x)->0)
Perform a multistep Catmull-Clark subdivision of a surface. Does iters iterations (steps). Will call a callback function with the results of each iteration (step) if one is provided. Returns: the faces of the final result.
CatmullClark.drawfaces
— Functiondrawfaces(faces, colr)
Draw a set of Faces using color colr and Makie. Place this in a new scene (a new output window).
CatmullClark.drawfaces!
— Functiondrawfaces!(faces, colr)
Draw a set of Faces using color colr and Makie. Add the drawing to the existing scene.
CatmullClark.displaycallback
— Functiondisplaycallback(faces)
Display a set of Faces using Makie. This can be used as a callback to show the steps of the catmullclark function. See exsmple/demo.jl in this package for an example of usage.
CatmullClark.getscene
— Functiongetscene()
Get the Makie.jl Scene in use for display by the package.
CatmullClark.setscene
— Functionsetscene(scene)
Set the Scene for display using Makie.