Skip to content

Commit 6066498

Browse files
committed
refactor(datamodel): remove evaluatePosition override in vtkPolyLine and vtkLine
Update vtkCell.evaluatePosition to call vtkErrorMacro
1 parent 9d09020 commit 6066498

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

Sources/Common/DataModel/Cell/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ function vtkCell(publicAPI, model) {
113113
pcoords,
114114
dist2,
115115
weights
116-
) => {}; // virtual
116+
) => {
117+
macro.vtkErrorMacro('vtkCell.evaluatePosition is not implemented.');
118+
}; // virtual
117119
}
118120

119121
// ----------------------------------------------------------------------------

Sources/Common/DataModel/Line/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,6 @@ function vtkLine(publicAPI, model) {
212212
return outObj;
213213
};
214214

215-
publicAPI.evaluatePosition = (
216-
x,
217-
closestPoint,
218-
subId,
219-
pcoords,
220-
dist2,
221-
weights
222-
) => {}; // virtual
223-
224215
publicAPI.evaluateLocation = (pcoords, x, weights) => {
225216
const a1 = [];
226217
const a2 = [];

Sources/Common/DataModel/PolyLine/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,6 @@ function vtkPolyLine(publicAPI, model) {
5858
return outObj;
5959
};
6060

61-
publicAPI.evaluatePosition = (
62-
x,
63-
closestPoint,
64-
subId,
65-
pcoords,
66-
dist2,
67-
weights
68-
) => {}; // virtual
69-
7061
publicAPI.evaluateLocation = (subId, pcoords, x, weights) => {
7162
line
7263
.getPoints()

0 commit comments

Comments
 (0)