Skip to content

Commit

Permalink
fix(rename): of the contourloop extraction filter
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi authored and floryst committed Feb 8, 2024
1 parent 162ba69 commit 9bd65c6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Sources/Filters/General/ContourLoopExtraction/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Dir = {

const visited = new Set();

function vtkContourLoopExtractionCtor(publicAPI, model) {
function vtkContourLoopExtraction(publicAPI, model) {
publicAPI.requestData = (inData, outData) => {
const [input] = inData;

Expand Down Expand Up @@ -118,7 +118,6 @@ function vtkContourLoopExtractionCtor(publicAPI, model) {
const outLines = output.getLines();
outLines.resize(0);

// Optional merging of contours can happen here
loops.forEach((loop) => {
outLines.insertNextCell(loop.map((pt) => pt.ptId));
});
Expand All @@ -139,7 +138,7 @@ export function extend(publicAPI, model, initialValues = {}) {
macro.obj(publicAPI, model);
macro.algo(publicAPI, model, 1, 1);

vtkContourLoopExtractionCtor(publicAPI, model);
vtkContourLoopExtraction(publicAPI, model);
}

// ----------------------------------------------------------------------------
Expand All @@ -151,6 +150,4 @@ export const newInstance = macro.newInstance(

// ----------------------------------------------------------------------------

const vtkContourLoopExtraction = { newInstance, extend };

export default vtkContourLoopExtraction;
export default { newInstance, extend };

0 comments on commit 9bd65c6

Please sign in to comment.