D. Edward Mitchell 16:00, 14 April 2020 (UTC) Hello World!    groupKOS Developer Share —usually UNDER CONSTRUCTION

POV-Ray macro sphereRadialArray

From groupKOS Developer Share
Jump to navigation Jump to search

Template:PovraySubCategories Template:PovrayMacros

Radial array of spheres

// cnt number of spheres at radius 
#macro sphereRadialArray(cnt, arrayRad, sphereDia, txtr)
    // Radial pattern centered on the Y axis of count divided into 360.
    #for(j,1,cnt)
        sphere{ <arrayRad,0,0>, sphereDia/2
                rotate<0,j*360/cnt,0>
                texture{txtr} }
    #end
#end // sphereRadialArray().