- [Narrator] Now I want to talk about booleans.
Booleans are basically what you can do
with volumes that share space.
Now, you saw them in extrude and in revolve,
there's a little area within each of those
that let allows you to set a boolean type.
So, you can perform what's called a boolean on the fly,
or you can do the boolean once the solid is created,
which is often necessary, you may want to do things
to the solid, apply lens, those type of things,
just sort of mimic machined operation,
and then, perform the boolean.
So, it's solely dependent upon your modeling techniques,
how you go about designing your parts.
Now, here, I have two separate volumes.
I have solid here, solid here,
and there's a bit a of shared space in between the two.
Now, there's three types of booleans.
You have Unite, Subtract, and Intersect.
If I go to Unite, you'll notice it starts out with
Target Body, Tool Body.
There's only one Target Body,
but you can have as many Tool Bodies as you want.
Think of the Target Body as the body
that's being operated on,
or the body that you're working on.
So, in this case, I have these two solids, different colors,
I may have a different material applied,
by default, materials in an XR are steel,
so you may have aluminum or whatever it may be,
applied to one of the volumes.
You want to make sure that those attributes
are carried across to the final result.
So, that's why it's important to pay attention
to what you pick as the target.
So, if I pick the blue body first,
you'll notice, Target, Tool,
again, I can pick as many Tools as I want, only one Target.
You'll note that this now is changed to blue,
it is now technically a part of this body.
Select Okay, you'll see the Unite in the tree.
I'm just gonna Undo that, Control + Z,
and go back to the separate bodies.
If I reverse the order, you'll see,
the first body selected that Target is now the one
that is forcing its attributes
and propagating those attributes down to the Tool.
Again, you can have as many Tools as you want,
10, 20 , 30 tools, I'm gonna Undo that.
It's not as obvious while doing a Unite,
the order, the critical of selection order, in importance,
what's the Target and Tool, because you basically end up
with the final results of those two bodies coming together.
Where it becomes very important is the Subtract.
Again, it's not to reduce the importance under the Unite,
but it's very obvious under Subtract,
that you picked the incorrect body first.
So, if I wanted to use this
as my Target and this as my Tool,
well, the Subtract is removing,
as you can see, that material.
If I were to reverse those orders,
alright, so it is very, very obvious
that, in this case, the order is absolutely critical.
And, again, in the Unite, it's not as obvious,
but it is just as important.
I'm gonna Undo that.
And the same thing can be said for the Intersect.
Intersect allows you, again, one Target, one Tool,
although in this case you can have multiple Tools,
I apologize, but allows you to keep
the shared volume of those solids.
So, once I select Okay, you'll see
that is the overlapping space of those shared volumes.
Often times, you'll use Intersect Tools
for castings, forgings, that type of thing, right?
You design in two different planes,
you do your extrudes, you do some revolves,
you apply drafts, fill-its, and then you do the intersection
to get the final result.
A lot of cast parts, a lot of forge parts,
are designed in said fashion.
You Undo that.
So, once again, with the Unite, Subtract, and Intersect,
they all start out with a singular Target,
and as many Tools as you want.
So, I'll just go back into Unite, pick this, and that.
You'll notice that I have various settings,
Keep Targeting, Keep Tool, if I turn any of these on,
let's say Keep Target, what it'll do is
on that Unite, it does the Unite,
but you'll notice that Target body,
I have that face-on-face zebra striping, they call it,
and what happened is that the target was extracted
so I have, let me go ahead and hide that,
I have the original Target Body there, as well.
So, that didn't quite get consumed fully,
it's still there, you can use it for other purposes,
but that's just simply another toggle
you have here under Settings.
So, if I hit Target, turn that off again,
you'll notice that, let me go ahead and hide this,
just come to Unite, let me hide that,
and once again, you'll see with that Unite,
both bodies are combined, but because I turned off
Keep Target, that body is now longer there.