33import numpy as np
44from shapely .affinity import translate , scale
55from shapely .geometry import LineString
6+ from shapely .geometry .multilinestring import MultiLineString
67
78from .base import BaseRollPass
89from ..hooks import Hook
910from ..roll import Roll as BaseRoll
10-
11+ from .. engine import Engine as BaseEngine
1112
1213class AsymmetricTwoRollPass (BaseRollPass ):
13- """Represents a symmetric roll pass with equal upper and lower working roll."""
14+ """Represents a symmetric roll pass with unequal upper and lower roll."""
1415
1516 def __init__ (
1617 self ,
1718 upper_roll : BaseRoll ,
1819 lower_roll : BaseRoll ,
20+ engine : BaseEngine = BaseEngine (),
1921 label : str = "" ,
2022 ** kwargs
2123 ):
2224 super ().__init__ (label , ** kwargs )
2325
2426 self .upper_roll = self .Roll (upper_roll , self )
25- """The upper working roll of this pass."""
27+ """The upper roll of this pass."""
2628
2729 self .lower_roll = self .Roll (lower_roll , self )
28- """The upper working roll of this pass."""
30+ """The lower roll of this pass."""
31+
32+ self .engine = self .Engine (engine , self )
33+ """The engine of this pass."""
2934
3035 @property
31- def contour_lines (self ) -> List [ LineString ] :
36+ def contour_lines (self ) -> MultiLineString :
3237 if self ._contour_lines :
3338 return self ._contour_lines
3439
@@ -38,7 +43,7 @@ def contour_lines(self) -> List[LineString]:
3843 xfact = 1 , yfact = - 1 , origin = (0 , 0 )
3944 )
4045
41- self ._contour_lines = [upper , lower ]
46+ self ._contour_lines = MultiLineString ( [upper , lower ])
4247 return self ._contour_lines
4348
4449 @property
0 commit comments