Encrust
All guides

Preparing a model · Guide 12 of 21

Combine models: union, subtract, intersect

6 min read

Pick two or more models, press 7, click the Combine icon, choose Union, Subtract or Intersect and click Combine. Two 20 mm cubes overlapping by 10 mm come out as 15,000, 7,000 or 1,000 mm³. Subtract keeps the model you picked first and takes the rest out of it.

Before you start

You need two or more models on the plate, as in Your first print, that overlap or touch where you want them joined. Move, turn and scale them into place with the Select tool (key 1) first (Move, rotate, scale and auto-orient). Combine works on the models as they stand on the plate.

Combine before you hollow or support. The result replaces the models you picked, and their supports, cavity, holes, own settings and texture are not kept. Undo puts them back (what Combine keeps). The combination is cut from each model itself, not from its hollow shell, so hollow it afterwards if it is to be hollow.

Open the Combine mode

  1. Press 7, or click Relief on the tool row over the stage.
  2. In the card’s heading, click the Combine icon, the third of the three. The question mark beside the card’s name reads “The picked models joined into one, one cut out of another, or what they share.”

The card has two sections, Operation and Models, and a button at the foot that reads Combine until two models are picked.

Pick the models, in order

Click the first model, then Cmd-click (Ctrl-click on Windows and Linux) each next one. The Models section lists them in the order you picked them, each with what it does in the operation: “kept”, “taken out”, “joined” or “shared part kept”. Only models that are visible on the plate in front of you count.

With fewer than two picked, Combine is greyed out and its tooltip reads “Pick two or more models on the plate to combine, holding Shift or Cmd.”

Choose the operation

Under Operation, click one of three. The line under the buttons says what it does.

Operation What it does Two 20 mm cubes overlapping by 10 mm on each axis
Union The picked models become one model that holds everything any of them holds. 15,000 mm³
Subtract The other picked models are taken out of the one you picked first. 7,000 mm³
Intersect Only what every picked model holds is kept. 1,000 mm³

The volumes are computed, not read off a print: each cube is 8,000 mm³ and they share a 10 mm cube of 1,000 mm³, so a union is 8,000 + 8,000 − 1,000 mm³, and a subtraction 8,000 − 1,000 mm³. The 7,000 mm³ case is pinned by a test in the app.

Combine

  1. Click Combine, which reads “Combine 2 models” with two picked.
  2. Watch the bar, “Combining the models”, which names the step. Cancel leaves the picked models as they are.
  3. Read the notice at the foot of the stage: “Combined 2 models into” the first model’s name.

The result is one model named after the first model you picked. It stands on the plate the models were taken from, set down on the plate, so a lift the models had is not kept. Undo puts the models back.

If nothing is left, as when you intersect models that share no volume, the notice says “the models combined leave nothing behind”, and the models stay as they were.

What stays sharp

The result is cut exactly. Closed models keep their sharp edges, a model made of parts pushed into each other included, and the result has few faces (how models are combined). A torn or folded model is patched where it is broken first and then combined exactly too.

One case falls back on a field. If a model is still not a solid after patching, or the patch leaves nothing of it, all the models are sampled on one lattice and the result’s edges are rounded to it. The notice then names the lattice: “Combined 2 models into” the name “on a 0.20 mm lattice, as one was not a closed solid”. Repair the model that caused it (Check and repair a model) and combine again to get sharp edges.

What it costs

Cost follows the faces of both sides and the crossings between them. On the project’s measurements on an M1, a sphere of 1 million faces minus a hundred square prisms reads in 350 ms and cuts in 0.52 s; at 4 million faces it takes 2.2 s and 2.9 s, and an 8 GB machine swaps (what it costs). A union of thousands of shapes crossing each other is many times dearer than one cut of the same faces.

From the command line

encrust slice base.stl lid.stl --printer elegoo-mars-4-ultra --resin my-grey --combine union -o part.goo makes every model given one. --combine difference keeps the first file and takes the rest out of it, and --combine intersection keeps what they share. It runs before the models are hollowed and supported, as in the window (CLI reference).

If something goes wrong

Combine is greyed out

Fewer than two models are picked on this plate, or a picked model is hidden. Cmd-click (Ctrl-click) the others, and show a hidden one with the eye on its row.

“the models combined leave nothing behind”

The models share no volume for Intersect, or Subtract takes away all of the first. Move them so they overlap, or choose Union.

“the models could not be combined”

The notice gives a reason after the colon. A model that changed while the run was going gives “changed while it was being worked on, so the result was dropped”: the models stay where they were; run Combine again without touching them.

Sources