BasicIslandHatcher¶
-
class
pyslm.hatching.
BasicIslandHatcher
¶ Bases:
pyslm.hatching.hatching.Hatcher
BasicIslandHatcher extends the standard
Hatcher
but generates a set of islands of fixed size (islandWidth
) which covers a region. This a common scan strategy adopted across SLM systems. This has the effect of limiting the max length of the scan whilst by orientating the scan vectors orthogonal to each other mitigating any preferential distortion or curling in a single direction and any effects to micro-structure.- Note:
This method is not optimal and is provided as a reference for the user to improve their own understand and develop their own island scan strategies. For optimal performance, the user should refer instead to
IslandHatcher
Attributes Summary
The island offset is the relative distance (hatch spacing) to move the scan vectors between adjacent checkers.
The length of overlap between adjacent islands
The island width
Methods Summary
generateHatching
(paths, hatchSpacing[, …])Generates un-clipped hatches which is guaranteed to cover the entire polygon region base on the maximum extent of the polygon bounding box.
Attributes Documentation
-
islandOffset
¶ The island offset is the relative distance (hatch spacing) to move the scan vectors between adjacent checkers.
- Return type:
float
-
islandOverlap
¶ The length of overlap between adjacent islands
- Return type:
float
-
islandWidth
¶ The island 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 base on the maximum extent of the polygon bounding box.
- Parameters:
paths – The boundaries that the hatches should fill entirely
hatchSpacing (
float
) – The hatch spacinghatchAngle (
float
) – The hatch angle (degrees) to rotate the scan vectors
- Return type:
ndarray
- Returns:
Returns the list of unclipped scan vectors covering the region