# Snippets

### Description

Snippets are chunks of code that can be cut (snipped) and pasted into examples. We want each example to be stand-alone, so we do not keep the snippet code in a library.

### Available snippets

#### GetProgramParameters

Get the program parameters.

#### ReadPolyData

Uses the appropriate vtkPolyData reader to read any vtkPolyData file.

#### WritePNG

Takes a screen shot from the render window and writes it to a png file.