Commit 2ab9c2e2 authored by Andrew Bauer's avatar Andrew Bauer Committed by Kitware Robot
Browse files

Merge topic 'vtkPointSet_documentation'

0526f004

 Improving documentation to avoid using non-preferred method

Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Cory Quammen's avatarCory Quammen <cory.quammen@kitware.com>
Merge-request: !1620
parents aa4dc045 0526f004
...@@ -50,7 +50,6 @@ public: ...@@ -50,7 +50,6 @@ public:
// Description: // Description:
// See vtkDataSet for additional information. // See vtkDataSet for additional information.
vtkIdType GetNumberOfPoints(); vtkIdType GetNumberOfPoints();
double *GetPoint(vtkIdType ptId) {return this->Points->GetPoint(ptId);};
void GetPoint(vtkIdType ptId, double x[3]) {this->Points->GetPoint(ptId,x);}; void GetPoint(vtkIdType ptId, double x[3]) {this->Points->GetPoint(ptId,x);};
virtual vtkIdType FindPoint(double x[3]); virtual vtkIdType FindPoint(double x[3]);
vtkIdType FindPoint(double x, double y, double z) { vtkIdType FindPoint(double x, double y, double z) {
...@@ -63,6 +62,13 @@ public: ...@@ -63,6 +62,13 @@ public:
double tol2, int& subId, double pcoords[3], double tol2, int& subId, double pcoords[3],
double *weights); double *weights);
// Description:
// See vtkDataSet for additional information.
// WARNING: Just don't use this error-prone method, the returned pointer
// and its values are only valid as long as another method invocation is not
// performed. Prefer GetPoint() with the return value in argument.
double *GetPoint(vtkIdType ptId) {return this->Points->GetPoint(ptId);};
// Description: // Description:
// Return an iterator that traverses the cells in this data set. // Return an iterator that traverses the cells in this data set.
vtkCellIterator* NewCellIterator(); vtkCellIterator* NewCellIterator();
......
Supports Markdown
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