Subtract Filter Reference

The subtract filter subtracts one input slice stack (subtrahend) from another input slice stack (minuend). The types of input are marked on their connection lines: + for minuend, – for subtrahend. The input stacks can be swapped using the Switch input for Subtract option in the context menu.

The input stacks should be free of self-intersections, otherwise the slices are joined according the positive fill rules. The output consists of closed contours which are not self-intersecting. Any hatching in the input data is ignored.

Parameter Default Value Description
offsetx 0.0 X translation of an input slice stack
offsety 0.0 Y translation of an input slice stack
offsetz 0.0 Z translation of an input slice stack

XML Configuration example code:

<subtract name="half_sphere">
  <minuend entry="sphere1" />
  <subtrahend entry="sphere2" offsetx="5" offsety="6" offsetz="1.0" />
</subtract>