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

Merge topic 'vtkPointSet_documentation'


 Improving documentation to avoid using non-preferred method

Acked-by: Kitware Robot's avatarKitware Robot <>
Reviewed-by: Cory Quammen's avatarCory Quammen <>
Merge-request: !1620
parents aa4dc045 0526f004
......@@ -50,7 +50,6 @@ public:
// Description:
// See vtkDataSet for additional information.
vtkIdType GetNumberOfPoints();
double *GetPoint(vtkIdType ptId) {return this->Points->GetPoint(ptId);};
void GetPoint(vtkIdType ptId, double x[3]) {this->Points->GetPoint(ptId,x);};
virtual vtkIdType FindPoint(double x[3]);
vtkIdType FindPoint(double x, double y, double z) {
......@@ -63,6 +62,13 @@ public:
double tol2, int& subId, double pcoords[3],
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:
// Return an iterator that traverses the cells in this data set.
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