Skip to content

ContourLoopExtraction

Introduction

vtkContourLoopExtraction specific static methods.

Methods

extend

Method use to decorate a given object (publicAPI+model) with vtkContourLoopExtraction characteristics.

ArgumentTypeRequiredDescription
publicAPIYes- Object on which methods will be bound (public).
modelYes- Object on which data structure will be bound (protected).
initialValuesYes- (Optional) Initial values to assign to the model.

extractContours

Extracts contour loops from the given polydata input and populates the given output.

ArgumentTypeRequiredDescription
inputYes- The input polydata
outputYes- The output polydata

newInstance

Method used to create a new instance of vtkContourLoopExtraction.

ArgumentTypeRequiredDescription
initialValuesYes- (Optional) Initial values for the instance.

requestData

Runs the contour extraction algorithm with the given input and output data.

ArgumentTypeRequiredDescription
inDataYes- The input data for the contour extraction.
outDataYes- The output data where the extracted contours will be stored.

traverseLoop

Traverses a loop starting from a given line and point, in a specified direction.

ArgumentTypeRequiredDescription
pdYes- The polydata which to traverse.
dirYes- The direction of traversal.
startLineIdYes- The ID of the starting line.
startPtIdYes- The ID of the starting point.
loopPointsYes- The array to store the traversed points of the loop.

Returns

TypeDescription
The last point ID after traversal.