Attached Files | 0001-STYLE-Fixing-typos-and-updated-documentation-for-Cl.patch [^] (4,310 bytes) 2009-10-17 04:30 [Show Content] [Hide Content]From aab04446acc97d1d4a37b89117b7b3cfe6238fd1 Mon Sep 17 00:00:00 2001
From: Sven Buijssen <sven.buijssen>
Date: Wed, 14 Oct 2009 00:22:32 +0200
Subject: [PATCH] STYLE: Fixing typos and updated documentation for Clean to Grid filter
---
Servers/Filters/vtkCleanUnstructuredGrid.cxx | 2 +-
Servers/Filters/vtkCleanUnstructuredGrid.h | 8 +++-----
Servers/ServerManager/Resources/filters.xml | 2 +-
VTK/Filtering/vtkPointLocator.cxx | 2 +-
4 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/Servers/Filters/vtkCleanUnstructuredGrid.cxx b/Servers/Filters/vtkCleanUnstructuredGrid.cxx
index 022097a..80650ac 100644
--- a/Servers/Filters/vtkCleanUnstructuredGrid.cxx
+++ b/Servers/Filters/vtkCleanUnstructuredGrid.cxx
@@ -110,7 +110,7 @@ int vtkCleanUnstructuredGrid::RequestData(
output->SetPoints(newPts);
newPts->Delete();
- // New copy the cells.
+ // Now copy the cells.
vtkIdList *cellPoints = vtkIdList::New();
num = input->GetNumberOfCells();
output->Allocate(num);
diff --git a/Servers/Filters/vtkCleanUnstructuredGrid.h b/Servers/Filters/vtkCleanUnstructuredGrid.h
index 4e4e73f..cd9329a 100644
--- a/Servers/Filters/vtkCleanUnstructuredGrid.h
+++ b/Servers/Filters/vtkCleanUnstructuredGrid.h
@@ -17,11 +17,9 @@
//
// .SECTION Description
// vtkCleanUnstructuredGrid is a filter that takes unstructured grid data as
-// input and generates polygonal data as output. vtkCleanUnstructuredGrid can
-// merge duplicate points (within specified tolerance and if enabled).
-// Tolerance is specified precisely = 0.00001*input->GetLength(), then
-// vtkCleanUnstructuredGrid will use the vtkPointLocator object to merge points
-// (which is slow).
+// input and generates unstructured grid data as output. vtkCleanUnstructuredGrid can
+// merge duplicate points (with coincident coordinates) using the vtkMergePoints object
+// to merge points.
// .SECTION See Also
// vtkCleanPolyData
diff --git a/Servers/ServerManager/Resources/filters.xml b/Servers/ServerManager/Resources/filters.xml
index 38bab93..6eda0d5 100644
--- a/Servers/ServerManager/Resources/filters.xml
+++ b/Servers/ServerManager/Resources/filters.xml
@@ -753,7 +753,7 @@ The Clean filter takes polygonal data as input and generates polygonal data as o
<Documentation
long_help="This filter merges points and converts the data set to unstructured grid."
short_help="Merge points.">
-The Clean to Grid filter merges points that are within a tolerance of 1/100,000 of the length of the diagonal of the bounding box of the data set. It also converts the data set to an unstructured grid. You may wish to do this if you want to apply a filter to your data set that is available for unstructured grids but not for the initial type of your data set (e.g., applying warp vector to volumetric data). The Clean to Grid filter operates on any type of data set.
+The Clean to Grid filter merges points that are exactly coincident. It also converts the data set to an unstructured grid. You may wish to do this if you want to apply a filter to your data set that is available for unstructured grids but not for the initial type of your data set (e.g., applying warp vector to volumetric data). The Clean to Grid filter operates on any type of data set.
</Documentation>
<InputProperty
name="Input"
diff --git a/VTK/Filtering/vtkPointLocator.cxx b/VTK/Filtering/vtkPointLocator.cxx
index ef914ba..0e81fa3 100644
--- a/VTK/Filtering/vtkPointLocator.cxx
+++ b/VTK/Filtering/vtkPointLocator.cxx
@@ -1369,7 +1369,7 @@ vtkIdType vtkPointLocator::InsertNextPoint(const double x[3])
// Incrementally insert a point into search structure with a particular
// index value. You should use the method IsInsertedPoint() to see whether
// this point has already been inserted (that is, if you desire to prevent
-// dulicate points). Before using this method you must make sure that
+// duplicate points). Before using this method you must make sure that
// newPts have been supplied, the bounds has been set properly, and that
// divs are properly set. (See InitPointInsertion().)
void vtkPointLocator::InsertPoint(vtkIdType ptId, const double x[3])
--
1.6.0.2
|