@cornerstonejs/core
Version:
Cornerstone3D Core
15 lines (14 loc) • 557 B
JavaScript
export default function getVolumeActorCorners(volumeActor) {
const imageData = volumeActor.getMapper().getInputData();
const bounds = imageData.extentToBounds(imageData.getExtent());
return [
[], bounds[2], bounds[4]],
[], bounds[2], bounds[5]],
[], bounds[3], bounds[4]],
[], bounds[3], bounds[5]],
[], bounds[2], bounds[4]],
[], bounds[2], bounds[5]],
[], bounds[3], bounds[4]],
[], bounds[3], bounds[5]],
];
}