Function: pointInShapeCallback()
pointInShapeCallback(
imageData
,options
):PointInShape
[] |undefined
Parameters
• imageData: vtkImageData
| CPUImageData
The image data object.
• options: PointInShapeOptions
Configuration options for the shape callback.
Returns
PointInShape
[] | undefined
An array of points in the shape if returnPoints is true, otherwise undefined.
Deprecated
You should use the voxelManager.forEach method instead. This method is deprecated and will be removed in a future version.
For each point in the image (If boundsIJK is not provided, otherwise, for each point in the provided bounding box), It runs the provided callback IF the point passes the provided criteria to be inside the shape (which is defined by the provided pointInShapeFn)