Binary Operations: combine two voxel volumes voxel by voxel

Unite, intersect or subtract two voxel volumes and get the result as a new volume

2 min read
In the app
  • CTBinary Operations

Binary Operations combines two voxel volumes voxel by voxel and creates a new volume. Use it to unite, intersect or subtract two volumes, for example two parts converted with Mesh to Voxels, before you turn the result back into a mesh.

Before you start

  • Select exactly two voxel objects in the Scene tree. With any other selection the CT › Binary Operations button is unavailable.
  • Both volumes must be of the same kind. Volumes made with Mesh to Voxels store distances to a surface (a level set). CT volumes opened with Open DICOMs, Open RAW Voxels or Open Voxels From TIFF usually store measured values. If you select one of each, the tool shows "Objects must have the same grid class (e.g. level set or unknown)" and does not open.
  • Use the same voxel size. The result gets the voxel size of Object A. When you convert two meshes, enter the same Voxel Size both times.
  • The volumes may be moved relative to each other: the tool takes the position of each object into account.

Combine two volumes

  1. Select the two voxel objects in the Scene tree (Ctrl+click; Cmd+click on macOS).
  2. Click CT › Binary Operations. The Binary Operations panel opens.
  3. Check which volume is Object A and which is Object B. Click Swap to exchange them: the order matters for Difference.
  4. Choose the Operation. Turn on Enable preview to see the result in the scene before you create it.
  5. Click Apply.

The Binary Operations panel on the CT tab with Object A and Object B, Enable preview on and Difference chosen; two voxel volumes made from the CAD housing and a shifted copy with Mesh to Voxels.

MeshInspector adds a new voxel object named after the operation, for example Difference. The two source volumes stay in the Scene tree, hidden and unselected, and the panel closes. To go back, press Ctrl+Z (Cmd+Z on macOS).

The Difference result in the Scene tree: the CAD housing volume minus its shifted copy, with the two source volumes hidden.

Control What it does
Object A, Object B The two selected volumes. The result gets the voxel size of Object A.
Swap Exchanges Object A and Object B.
Enable preview Shows a temporary result in the scene and updates it when you change the operation or move a volume.
Operation The operation to apply (see below).
Apply Creates the result as a new voxel object.

Volumes from Mesh to Voxels: Union, Intersection, Difference

For volumes made with Mesh to Voxels the Operation list has three items:

Operation Result
Union Everything that is inside A or inside B.
Intersection Only the region that is inside both A and B.
Difference A minus B: the part of A that is outside B.

This is a Boolean of two solids done in voxels, so it works even when the meshes have defects that stop a mesh Boolean. To get a mesh back, select the result and use Voxels to Mesh. If you start from two meshes and only need the resulting mesh, Mesh Edit › Voxel Boolean does the conversion and the operation in one step: see Boolean operations.

Customize Consent Preferences

We use cookies and similar technologies, such as local storage. You will find detailed information about all of them under each consent category below.

To learn more about how Google processes personal information, visit: Google privacy policy

Always Active