Varian-Code-Samples icon indicating copy to clipboard operation
Varian-Code-Samples copied to clipboard

GetSeparatedPartsOfStructure

Open joecastelo opened this issue 5 years ago • 2 comments

The Structure Class have a method to GetNumberOfSeparatedParts.

Do anyone know an optimal way of getting the segment volumes itself of those separated parts?

I mean, we can get the contour groups in each plane, but how can I, in a radiosurgery with multiple lesions get the Sum of the PTVs and make them different PTVs?

Or at least get the center point of each separated contours in the plan that they're continuous.

joecastelo avatar Mar 09 '20 21:03 joecastelo

The attached code snippet may be useful for you.

Code.txt

larpra avatar Mar 11 '20 07:03 larpra

Thanks @larpra I already had this loop in my code; My doubt is how can I, known that plane z, had 3 contours and plane z+1 had 2 contours and plane z+2 had 3 contours again, separate them? Would I need to follow their centroids , create a fancy logic or there is a simpler approach.

joecastelo avatar Mar 11 '20 14:03 joecastelo