2D Boolean Example

Introduction

This topic provides an example of how to use the 2D Boolean function. This example is supplemental to 2D Boolean.

 

Example File

A BobCAD file installed with the software can be opened to follow along with this example.

Part 1) Open the Example File

1      In the File menu, click Open.

 

2      Navigate to: C:\BobCAD-CAM Data\**Current Version**\Examples, and select 2D Boolean Example.bbcd.

 

3      With 2D Boolean Example.bbcd displaying in the File Name box, click Open.

Part 2) Open 2D Boolean

To open 2D Boolean, do one of the following:

 

 

 

 

The parameters display in the DataEntryTabIcon.png Data Entry tab of the Data-CAM Tree Manager.

Part 3) Adding Wireframe Groups

In this part, we add the two groups of wireframe chains.

 

1      Confirm that the default option, Add, is selected in the Data Entry Manager.

 

2      Click to select the circle as the first group of chains.

 

2D_Boolean_ExImg1.png 2DBooleanFirst.png

 

 

 

3      Click OK to confirm the selection.

 

4      Drag a window to select all of the wireframe.

 

2D_Boolean_ExImg3.png 2D_Boolean_ExImg4.png

 

 

 

5      Click the circle to remove it from the selection. Note that you can drag a small window across the circle to select it, as an alternative method to clicking it directly.

 

2D_Boolean_ExImg5.png 2D_Boolean_ExImg6.png

 

 

 

6      Click OK to confirm the second group and boolean add the two groups of chains.

 

2D_Boolean_ExImg7.png

 

 

7      Click Cancel to close the Data Entry Manager.

Part 4) Modifying the Feature Using the CAD Tree

The 2D Boolean function is retained in the CAD Tree. This allows for modifications and more as explained in the CAD Tree. Next we use the feature to modify the result.

 

When you cancel the function, the CAD Tree Manager automatically displays. Notice the 2D Boolean feature in the CAD Tree.

 

1      In the CADTreeIcon.bmp CAD Tree, click 2D Boolean to highlight the result of the feature in the Workspace.

 

2D_Boolean_ExImg8.png

 

 

2      Next to 2D Boolean, click ExpanderPlusIcon16x16.png to expand the feature.

 

3      Click each of the GeometryIcon.png Geometry items and notice that the selected group highlights in the Workspace.

 

2D_Boolean_ExImg9.png 2D_Boolean_ExImg10.png

 

 


TIP:   You can update the geometry for the selected groups using the right-click shortcut menus for each Geometry item.


 

4      Right-click 2D Boolean, and click Edit Parameters.

 

The Data Entry Manager opens and the geometry is preselected for the 2D Boolean function. (Using the Edit option would require you to make the geometry selections again.)

 

A preview now displays the result of the selected boolean type.

 

2D_Boolean_ExImg11.png

 

 

5      In the Data Entry Manager, click Intersect.

 

This updates the preview to show the result of the Intersect boolean type. You can see that this results in only the shared regions of the two groups.

 

2D_Boolean_ExImg12.png

 

 

6      Click Subtract to update the preview.

 

2D_Boolean_ExImg13.png

 

 

7      Click OK to update the feature.

 

2D_Boolean_ExImg14.png

 

 


TIP:   The Subtract boolean type subtracts the second group from the first, so the order in which you select the groups determines the result. For both the Add and Intersect boolean types, the result is the same regardless of the order in which the groups are selected.


Part 5) Selection Order for Subtract

Next we use the Edit option to modify the geometry selections and show the difference in the result when reversing the selection order with the Subtract boolean type.

 

1      In the CAD Tree, right-click 2D Boolean, and click Edit.

 

This option allows you to completely recreate the feature, including geometry selection.

 

2      In the Edit menu, point to Select Entities, and click Pick by Layer.

 

In the Select Layer dialog box, click Group 2 and click OK.

 

2D_Boolean_ExImg15.png

 

 

3      Press Spacebar to confirm the selection.

 

4      Select the circle.

 

2DBooleanFirst.png

 

 

5      Click OK.

 

2D_Boolean_ExImg16.png

 

 

The result shows the difference of selecting the two groups in the opposite order when using Subtract.

 

 

This concludes the example.

Related Topics

2D Boolean