avoid lines that share the same endpoints, but in reverse order
This commit is contained in:
parent
48e087ca2e
commit
37bfefdc69
1 changed files with 2 additions and 5 deletions
|
|
@ -69,11 +69,8 @@ combinations xs =
|
||||||
. S.toList . S.fromList
|
. S.toList . S.fromList
|
||||||
. filter (uncurry (/=))
|
. filter (uncurry (/=))
|
||||||
. sortOn (abs . uncurry distanceA)
|
. sortOn (abs . uncurry distanceA)
|
||||||
-- . concat . withStrategy (parListChunk 2000 rdeepseq) $
|
. concatMap (\(x:xs) -> map (x,) xs)
|
||||||
$ [(x,y) | x <- xs, y <- xs]
|
. init . tails $ xs
|
||||||
-- . map (\x -> take edgeLengthThreshold .
|
|
||||||
-- sortOn (abs . uncurry distanceA)
|
|
||||||
-- . map (\y -> (min x y, max x y)) $ xs) $ xs
|
|
||||||
where
|
where
|
||||||
edgeLengthThreshold = 10
|
edgeLengthThreshold = 10
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue