Commit 0f5da429 authored by Anatoly Baksheev's avatar Anatoly Baksheev

misprint

parent 909c45f1
...@@ -33,8 +33,8 @@ void temp_viz::Viz3d::VizImpl::showPointCloud(const String& id, InputArray _clou ...@@ -33,8 +33,8 @@ void temp_viz::Viz3d::VizImpl::showPointCloud(const String& id, InputArray _clou
// If the cloud already exists, update otherwise create new one // If the cloud already exists, update otherwise create new one
CloudActorMap::iterator am_it = cloud_actor_map_->find (id); CloudActorMap::iterator am_it = cloud_actor_map_->find (id);
bool exits = (am_it == cloud_actor_map_->end()); bool exist = (am_it == cloud_actor_map_->end());
if (exits) if (exist)
{ {
// Add as new cloud // Add as new cloud
allocVtkPolyData(polydata); allocVtkPolyData(polydata);
...@@ -110,7 +110,7 @@ void temp_viz::Viz3d::VizImpl::showPointCloud(const String& id, InputArray _clou ...@@ -110,7 +110,7 @@ void temp_viz::Viz3d::VizImpl::showPointCloud(const String& id, InputArray _clou
vtkSmartPointer<vtkIdTypeArray> cells = vertices->GetData (); vtkSmartPointer<vtkIdTypeArray> cells = vertices->GetData ();
if (exits) if (exist)
updateCells(cells, initcells, nr_points); updateCells(cells, initcells, nr_points);
else else
updateCells (cells, am_it->second.cells, nr_points); updateCells (cells, am_it->second.cells, nr_points);
...@@ -160,7 +160,7 @@ void temp_viz::Viz3d::VizImpl::showPointCloud(const String& id, InputArray _clou ...@@ -160,7 +160,7 @@ void temp_viz::Viz3d::VizImpl::showPointCloud(const String& id, InputArray _clou
scalars->GetRange (minmax.val); scalars->GetRange (minmax.val);
// If this is the new point cloud, a new actor is created // If this is the new point cloud, a new actor is created
if (exits) if (exist)
{ {
vtkSmartPointer<vtkLODActor> actor; vtkSmartPointer<vtkLODActor> actor;
createActorFromVTKDataSet (polydata, actor); createActorFromVTKDataSet (polydata, actor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment