4.5. riutil — RenderMan utilities

cgkit.riutil.RiuArrow(height=1.0, thickness=0.1, headheight=0.2, headscale=1.7)
cgkit.riutil.RiuCoordSystem(thickness=0.06, shader="matte")

Outputs a default header into the RIB stream. This function can be called right after RiBegin() to write the following information into the RIB stream:

##RenderMan RIB-Structure 1.1
##Creator <Filename>
##CreationDate <Date>
##For <User>

The "For" information is left out if the user name cannot be determined.

cgkit.riutil.RiuGrid(thickness=0.02, cells=6, shader="matte", color=(0.9, 0.9, 0.9))

Outputs a grid primitive. thickness determines the thickness of the grid lines and cells the number of gridlines. The grid lies on the XY plane and is centered at the origin. The grid spacing is 1 unit. The grid uses the given shader and color.


Previous topic

4.4. cri — RenderMan binding for direct access to a renderer

Next topic

4.6. pointcloud — Read and write RenderMan point cloud files

This Page