From 0f5da429c5d128711607dc633d5101b2d2cdded5 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Mon, 10 Jun 2013 12:42:11 +0400 Subject: [PATCH] misprint --- modules/viz/src/viz3d_impl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/viz/src/viz3d_impl.cpp b/modules/viz/src/viz3d_impl.cpp index 14f438cffa..91e4d6cb6e 100644 --- a/modules/viz/src/viz3d_impl.cpp +++ b/modules/viz/src/viz3d_impl.cpp @@ -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 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); @@ -110,7 +110,7 @@ void temp_viz::Viz3d::VizImpl::showPointCloud(const String& id, InputArray _clou vtkSmartPointer cells = vertices->GetData (); - if (exits) + if (exist) updateCells(cells, initcells, nr_points); else updateCells (cells, am_it->second.cells, nr_points); @@ -160,7 +160,7 @@ void temp_viz::Viz3d::VizImpl::showPointCloud(const String& id, InputArray _clou scalars->GetRange (minmax.val); // If this is the new point cloud, a new actor is created - if (exits) + if (exist) { vtkSmartPointer actor; createActorFromVTKDataSet (polydata, actor); -- GitLab