# Using operations on groups

In MESH you can perform some Boolean operations on groups, which belong to one and the same mesh.

- Union

- Intersection

- Cut

### Union of two groups

This operation allows to create a new group in such a way that all mesh elements that are present in the initial groups will be added to the new one.

To union two groups:

1. In the Mesh menu select the Union Groups item. The following dialog box will appear:

| Group1 Group2 Group12 For example, we have two groups Group1 and Group2. The result of their Union will be Group12

In this dialog box you should specify the name of the resulting group and two groups which will be united.

2. Click the Ok or Apply button to confirm creation of the group.

See Also a sample TUI Script of a Union of two Groups operation.

### Intersection of two groups

This operation allows to create a new group in such a way that all mesh elements that are present in both initial groups are added to the new one.

To intersect two groups:

1. In the Mesh menu select the Intersect Groups item. The following dialog box will appear:

| Group1 Group2 Group12a For example, we have two groups Group1 and Group2. The result of their Intersection will be Group12a

In this dialog box you should specify the name of the resulting group and two groups which will be intersected.

2. Click the Ok or Apply button to confirm creation of the group.

See Also a sample TUI Script of an Intersection of two Groups operation.

### Cut of two groups

This operation allows to create a new group in such a way that all mesh elements that are present in the main group but are absent in the tool group are added to the new one.

To cut two groups:

1. In the Mesh menu select the Cut Groups item. The following dialog box will appear:

| Group1 Group2 Group12b For example, we have two groups Group1 and Group2. The result of their Cut will be Group12b

In this dialog box you should specify the name of the resulting group and two groups which will be cut.

2. Click the Ok or Apply button to confirm creation of the group.

See Also a sample TUI Script of a Cut of two Groups operation.