// If the cloud already exists, update otherwise create new one
CloudActorMap::iterator am_it = cloud_actor_map_->find (id);
- bool exits = (am_it == cloud_actor_map_->end());
- if (exits)
+ bool exist = (am_it == cloud_actor_map_->end());
+ if (exist)
{
// Add as new cloud
allocVtkPolyData(polydata);
vtkSmartPointer<vtkIdTypeArray> cells = vertices->GetData ();
- if (exits)
+ if (exist)
updateCells(cells, initcells, nr_points);
else
updateCells (cells, am_it->second.cells, nr_points);
scalars->GetRange (minmax.val);
// If this is the new point cloud, a new actor is created
- if (exits)
+ if (exist)
{
vtkSmartPointer<vtkLODActor> actor;
createActorFromVTKDataSet (polydata, actor);