Improve line zoning
This commit is contained in:
@@ -105,11 +105,11 @@ checkPushThroughs cp1 wls cp2
|
||||
|
||||
checkPushThrough :: Point2 -> Point2 -> (Point2,Point2) -> Maybe Point2
|
||||
checkPushThrough cp1 cp2 (wp1,wp2)
|
||||
| isPushedThrough = intersectSegSeg' cp1 cp2 wp1 wp2
|
||||
| isPushedThrough = intersectSegSeg cp1 cp2 wp1 wp2
|
||||
| otherwise = Nothing
|
||||
where
|
||||
--norm = errorNormalizeV 61 $ vNormal (wp1 -.- wp2)
|
||||
--wp1' = (rad *.* norm) +.+ wp1
|
||||
--wp2' = (rad *.* norm) +.+ wp2
|
||||
--newP = errorClosestPointOnLine 5 wp1' wp2' cp2
|
||||
isPushedThrough = isRHS wp1 wp2 cp2 && isJust (intersectSegSeg' cp1 cp2 wp1 wp2)
|
||||
isPushedThrough = isRHS wp1 wp2 cp2 && isJust (intersectSegSeg cp1 cp2 wp1 wp2)
|
||||
|
||||
Reference in New Issue
Block a user