Basically, I would like to remove the corner of the cube according to the intersection between the cube and the sphere. There is a Merge Module that joins the both models. Here, I want that to remove the intersection between the models. Do someone know how can I face it?
Using Segmentations module: create a Segmentation node and import both models into it. Then go to Segment editor module and using Logical operators effect compute the intersection. Export the resulting segment to model node using Segmentations module.
You need to select a Master volume for the Segment editor module to work. If you don’t have any image then just load any volume (anything in the Sample data module will do) and adjust its extent and resolution using Crop volumes mode.
Thank you so much for your quick reply and the important information provided, Andras Lasso. However, I am not being able to perform that. I followed your tips, I have downloaded the CTChest Sample Data once I did not have any volume, imported the both models into a segmentation node and selected the Segment Editor. Here, I selected the CTChest as Master volume and when I press the logical operators button appears this dialogue box window:
After that, the models are reshaped, as shown in the next image, and the operators don’t work.
I’ve just tried it and it works well, but there are a few things to pay attention to:
Use the latest nightly version.
CTChest volume’s spacing is quite high (resolution is low) and they are different on each axis. You must use Crop volume module to make the spacing values smaller (finer resolution, by lowering Spacing scale) and same along all axes (by enabling Isotropic spacing). Adjust the extent of the volume to be just as big as you need it, by click-and-dragging sides of the ROI widget in slice views.
After importing the models into segmentation node, hide or delete the models.
In Segment EditorLogical operators effect, make sure you select one segment in the segment list above and another segment in the segment list (“Intersect with segment”) below.
After clicking Apply, hide or delete the other segment so that you can clearly see the intersection.
Thank you! Now it’s clear to me. It works well! I’ve played with the tools in the logical operators and I’ve concluded that the right operator to my application is the subtraction. Thus, I can remove from the cube, all the intersection volume and keep the sphere intact.
It would be great to implement the python code to perform this procedure in my module. Could you point me in the right direction to achieve that?