Function: pointInSurroundingSphereCallback()
pointInSurroundingSphereCallback(
imageData
,circlePoints
,callback
,viewport
?):void
Given an imageData, and the great circle top and bottom points of a sphere, this function will run the callback for each point of the imageData that is within the sphere defined by the great circle points. If the viewport is provided, region of interest will be an accurate approximation of the sphere (using viewport camera), and the resulting performance will be better.
Parameters
• imageData: vtkImageData
The volume imageData
• circlePoints: [Point3
, Point3
]
bottom and top points of the great circle in world coordinates
• callback
A callback function that will be called for each point in the shape.
• viewport?: VolumeViewport
Returns
void