pyslm icon indicating copy to clipboard operation
pyslm copied to clipboard

Sorting strategy `UnidirectionalSort` does not seem to return the hatching

Open Nevsden opened this issue 1 year ago • 3 comments

I might be wrong, but I think here a simple return of the input hatching is missing?

https://github.com/drlukeparry/pyslm/blob/2046afedb881f7e800bdc0776374d56be64cb4b7/pyslm/hatching/sorting.py#L38

Nevsden avatar Jan 03 '24 08:01 Nevsden

Also I want to thank you for your effort to make such a well-documented and concise library. Bravo!

Nevsden avatar Jan 03 '24 09:01 Nevsden

thank you for your nice comments.

The actual class is more of a placeholder - it does not actually modify the hatch vectors... It would be better if it can take a set of mis-orientated vectors and re-align them preferably in one direction but the situations were this occurs is very unlikely.

drlukeparry avatar Jan 04 '24 23:01 drlukeparry

That does make sense hearing it from your perspective now. What bothers me a bit as a user of the api though is that the hatch function of the other Hatcher classes are inconsistent with the unidirectional class. That's why I wrote this issue in the first place.

Nevsden avatar Jan 05 '24 21:01 Nevsden