Skip to content

Commit

Permalink
Updated Sort Class Initialise methods
Browse files Browse the repository at this point in the history
  • Loading branch information
drlukeparry committed Apr 19, 2021
1 parent 17b3629 commit 1026bba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyslm/hatching/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from .utils import *


class BaseSort(abc.ABC):
def __init__(self):
pass
Expand All @@ -28,7 +29,7 @@ class UnidirectionalSort(BaseSort):
Method simply passes the hatch vectors in their current form.
"""
def __init__(self):
pass
super().__init__()

def __str__(self):
return 'Unidrectional Hatch Sort'
Expand All @@ -42,7 +43,7 @@ class AlternateSort(BaseSort):
Sort method flips pairs of scan vectors so that their direction alternates across adjacent vectors.
"""
def __init__(self):
pass
super().__init__()

def __str__(self):
return 'Alternating Hatch Sort'
Expand All @@ -66,6 +67,7 @@ class LinearSort(BaseSort):
"""

def __init__(self):
super().__init__()
self._hatchAngle = 0.0

@property
Expand Down Expand Up @@ -108,6 +110,8 @@ class GreedySort(BaseSort):
"""
def __init__(self, hatchAngle = 0.0, hatchTol = None):

super().__init__()

self._hatchAngle = hatchAngle
self._sortY = False
self._clusterDistance = 5 # mm
Expand Down

0 comments on commit 1026bba

Please sign in to comment.