Boolean code block

I want to create two dynamo geometry, make them act as a void and a solid, and the void would cut the solid how to do it in a code block? many thanks!!

Can you show what you have tried so far? If you can’t do it in code blocks, try with nodes first.

something like this?

1 Like

I see the desired result in the Watch3D preview. What’s a good way to make the Dynamo preview screen show the same thing? Do you somehow hide the S1 and S2 spheres?

I know if you create those spheres inline at the S=Geometry.Split line it’ll work, but how can you create those sphere earlier but have them not show up?

I found the following forum post that answers my question with a couple of different methods.