GUI Basic Tutorial Step 5

Step 5: Forming the Hole

Now the cylinder can be subtracted from the brick to form the hole in the block.

You can also select the brick or cylinder interactively. Place the cursor in the Subtract Volume ID(s) field and click. This field is known as a Pick Widget. Clicking in a pick widget automatically sets the graphics pick mode for the entity type expected by the pick widget. Move the cursor to the graphics window and, using the left mouse button, select an entity. The id of the selected entity will be echoed into the pick widget field. Holding the control key while selecting entities in the graphics window will select multiple entities.

Notice that both original volumes are deleted in the Boolean operation and replaced with a new volume, with an id of 1. The result of this operation is a single volume, a brick with a hole through it, as shown below.

Brick after cylinder is subtracted

Brick after Subtracting Cylinder

We have now completed creating the geometry, and are ready to generate a mesh.