StripeHatcher

class pyslm.hatching.StripeHatcher

Bases: pyslm.hatching.hatching.Hatcher

The Stripe Hatcher extends the standard Hatcher but generates a set of stripe hatches of a fixed width (stripeWidth) to cover a region. This a common scan strategy adopted by users of EOS systems. This has the effect of limiting the max length of the scan vectors across a region in order to mitigate the effects of residual stress.

Attributes Summary

stripeOffset

The stripe offset is the relative distance (hatch spacing) to move the scan vectors between adjacent stripes

stripeOverlap

The length of overlap between adjacent stripes

stripeWidth

The stripe width

Methods Summary

generateHatching(paths, hatchSpacing[, …])

Generates un-clipped hatches which is guaranteed to cover the entire polygon region based on the maximum extent of the polygon bounding box

Attributes Documentation

stripeOffset

The stripe offset is the relative distance (hatch spacing) to move the scan vectors between adjacent stripes

Return type:

float

stripeOverlap

The length of overlap between adjacent stripes

Return type:

float

stripeWidth

The stripe width

Return type:

float

Methods Documentation

generateHatching(paths, hatchSpacing, hatchAngle=90.0)

Generates un-clipped hatches which is guaranteed to cover the entire polygon region based on the maximum extent of the polygon bounding box

Parameters:
  • paths

  • hatchSpacing (float) – Hatch Spacing to use

  • hatchAngle (float) – Hatch angle (degrees) to rotate the scan vectors

Return type:

ndarray

Returns:

Returns the list of unclipped scan vectors