StripeHatcher¶
- class pyslm.hatching.StripeHatcher¶
Bases:
HatcherThe Stripe Hatcher extends the behavior of the standard
Hatcherfor generating a ‘stripe’ scan strategy, which generates a set of an infill of 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, but is far more convenient to implement and process compared to the island scan strategy.This class simply overrides the
generateHatching()method in order to implement this.Attributes Summary
The stripe offset is the relative distance (hatch spacing) to move the scan vectors between adjacent stripes
The length of overlap between adjacent stripes
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
- stripeOverlap¶
The length of overlap between adjacent stripes
- stripeWidth¶
The stripe width
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 (
List[ndarray]) – The polygon boundarieshatchSpacing (
float) – The hatch spacing to use for scan vectorshatchAngle (
float) – The hatch angle (degrees) to rotate the scan vectors
- Return type:
ndarray- Returns:
List of unclipped scan vectors