You are here: The SDK Classes > The PointInterator Class

## The PointInterator Class

The PointIterator class is the primary class for accessing the point data in a LiDAR file. To create an iterator, call PointSource::createIterator().

The PointIterator class only has one public method, getNextPoints(), which extracts points out of the point cloud. For each time you call getNextPoints() the function fills the given PointData buffer and returns the number of points that it extracted. When you have extracted all the points the function returns zero (0).

For an example, see "Code Examples".