ScanVectorIterator

class pyslm.analysis.ScanVectorIterator(layers)

Bases: object

ScanVectorIterator provides an iterator that will traverse across every scan vector (linear) across both hatch and contour scan vectors for all layers passed into the constructor.

Attributes Summary

vectors

Methods Summary

getLayerVectors(layer)

Returns a list of scan vectors groups from a Layer.

initialise()

Initialises the iterator based on the input of collection of layers.

reshapeVectors(vectorList)

Attributes Documentation

vectors

Methods Documentation

static getLayerVectors(layer)

Returns a list of scan vectors groups from a Layer.

Parameters:

layer (Layer) – The Layer to obtain the scan vectors from

Return type:

List[ndarray]

Returns:

The scan vector list

initialise()

Initialises the iterator based on the input of collection of layers.

Returns:

The list of reshaped vectors

static reshapeVectors(vectorList)