Tweak automatic girder placement
This commit is contained in:
@@ -88,6 +88,29 @@ girderZ h d w x y = colorSH red $ mconcat $
|
||||
ps = divideLineExact d xb yb
|
||||
qs = tail $ divideLineExact d xt yt
|
||||
|
||||
girderVCapL
|
||||
:: Float -- ^ "cap" size
|
||||
-> Float -- ^ height
|
||||
-> Float -- ^ distance between cross bars
|
||||
-> Float -- ^ width
|
||||
-> Point2 -> Point2 -> Shape
|
||||
girderVCapL csize h d w x y = thinHighBar h (x -.- n) (x +.+ n)
|
||||
<> girderV h d w x y
|
||||
where
|
||||
n = csize *.* vNormal (normalizeV (x -.- y))
|
||||
|
||||
girderVCapLR
|
||||
:: Float -- ^ "cap" size
|
||||
-> Float -- ^ height
|
||||
-> Float -- ^ distance between cross bars
|
||||
-> Float -- ^ width
|
||||
-> Point2 -> Point2 -> Shape
|
||||
girderVCapLR csize h d w x y = thinHighBar h (x -.- n) (x +.+ n)
|
||||
<> thinHighBar h (y -.- n) (y +.+ n)
|
||||
<> girderV h d w x y
|
||||
where
|
||||
n = csize *.* vNormal (normalizeV (x -.- y))
|
||||
|
||||
girderV
|
||||
:: Float -- ^ height
|
||||
-> Float -- ^ distance between cross bars
|
||||
|
||||
Reference in New Issue
Block a user