News Overview SceneEngine Downloads VideoTutorials Main Page SourceForge Get Involved Bookmark and Share

SubdivideModifier

The SubdivideModifier implements the Catmull-Clark subdivision surface algorithm for polygonal meshes.

Attributes

num_iterations : (Integer) The number of iterations.

Lua sample code

sceng.OpenScene( "scenes/mayan_skull.sceng" )
skull_hp = sceng.GetNode( "Skull HP" )

subdivide_mod = sceng.SubdivideModifier()
subdivide_mod:Set( "num_iterations", 2 )
sceng.AddModifier( skull_hp, subdivide_mod )
Views