Filling - Simple Hatch Reference

The simple hatch filling draws an input slice stack geometry with parallel hatch lines. Only the contour geometry is used, while all input hatches are discarded.

Parameter Default Value Description
Hatch distance mandatory Distance of hatch lines.
Angle 0 Determines the angle of hatch lines
Angle increment 90 Determines how much the angle is increased layer by layer.
Only each ... layer 1 Determines if only every n-th layer is used.
Layer offset 0 If the onlyeachlayer parameter is larger than 1, there is ambiguity where the layer selection should start. A layer offset allows you to control the behavior, for example, use either each second layer, or each second-plus-one-th layer.
Maximum hatch length unlimited Splits up hatches if they become too long.
Hatch origin increment 0 While hatching will parallel lines, there is an ambiguity where the first line starts in perpendicular direction. This parameter allows you to move the starting point of the hatch lines layer by layer.
Sort type none Defines how the fill hatches are sorted. Possible values are:
  • none - no specific resorting is performed
  • plusx - sort from left to right
  • minusx - sort from right to left
  • plusy - sort from bottom to top
  • minusy - sort from top to bottom
Unidirectional hatching No Determines whether even and odd hatch lines should be drawn in the same direction.
Alternating hatch cycles 1 Executes the filling pattern in n passes (up to 2), drawing odd lines first, even lines next.

XML Configuration example code:

<hatchfilling name="filling" entry="shpere" distance="0.6" angle="45" gap="-0.05" />