Dynamo Boolean Intersection


#1

 

Hi,

I want to a basic Boolean intersection between two solids. Following is the script I wrote. As you can see from the image, the result did not turn out the intersected part of the geometry. Any help with the script is appreciated! I am using version 0.8.2. Thanks!

s=<span style=“color: #2e998f;”>Sphere</span>.<span style=“color: #417693;”>ByCenterPointRadius</span>(<span style=“color: #2e998f;”>CoordinateSystem</span>.<span style=“color: #417693;”>Identity</span>().<span style=“color: #417693;”>Origin</span>,<span style=“color: #2585e5;”>6</span>);
tool=<span style=“color: #2e998f;”>Sphere</span>.<span style=“color: #417693;”>ByCenterPointRadius</span>(<span style=“color: #2e998f;”>CoordinateSystem</span>.<span style=“color: #417693;”>Identity</span>().<span style=“color: #417693;”>Origin</span>.<span style=“color: #417693;”>Translate</span>(<span style=“color: #2585e5;”>10</span>,<span style=“color: #2585e5;”>0</span>,<span style=“color: #2585e5;”>0</span>),<span style=“color: #2585e5;”>6</span>);
results=s.<span style=“color: #417693;”>Intersect</span>(tool);

Capture


#2

Hi,

You’ll need to turn off the preview of the spheres to be able to see the intersection.

2015-09-08_09-48-45


#3

Hello Shinjini Bhattacharjee,

As you are writing all in one code block so if you turn off the preview for entire code block then you will not be able to see the resultant intersection geometry as well.

If you write intersection method in separate code block then you will be able to see the intersection by turning off the preview for code block which creates Spheres.

Look at below example.

Thanks,

Ritesh

BooleanOperationNotVisible