Skip to content

Commit 5a7641d

Browse files
committed
docs(lookuptable, appendpolydata): document some implementation choices
document some implementation choices
1 parent a15c75f commit 5a7641d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Sources/Common/Core/LookupTable/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ export function extend(publicAPI, model, initialValues = {}) {
338338
vtkScalarsToColors.extend(publicAPI, model, initialValues);
339339

340340
// Internal objects initialization
341+
// model.table needs to be instanciated manually if it is an array to not call
342+
// setTable in that case
341343
if (Array.isArray(initialValues.table)) {
342344
model.table = initialValues.table;
343345
delete initialValues.table;

Sources/Filters/General/AppendPolyData/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const { vtkErrorMacro } = macro;
1010

1111
function offsetCellArray(typedArray, offset) {
1212
let currentIdx = 0;
13+
// No data to shift
1314
if (!typedArray) return {};
1415
return typedArray.map((value, index) => {
1516
if (index === currentIdx) {

0 commit comments

Comments
 (0)