From 53d376eaeef991850d35318b147f75c8f103319d Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Sun, 27 Dec 2020 21:54:31 +0100 Subject: Change to polygongraph instead of polygon in roomtool The polygon room tool used a convoluted process for determining what the user actually wants to draw. I have changed to the polygon graph instead, which makes the checks easier and restricts the user a bit less. In the process however I found a serious problem with my handling float, so everything needed to change to margin compares (which I of course should have done in the beginning. Guys, take the warning seriously and don't ignore it for ten years like I did. It will come back to haunt you.. apparently) instead of direct equality. --- Cargo.lock | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index b715f73..d36d039 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -106,6 +106,9 @@ name = "float-cmp" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75224bec9bfe1a65e2d34132933f2de7fe79900c96a0174307554244ece8150e" +dependencies = [ + "num-traits", +] [[package]] name = "fs_extra" @@ -139,6 +142,7 @@ name = "graf_karto" version = "0.1.1" dependencies = [ "alga", + "float-cmp", "log", "nalgebra", "num-traits", -- cgit v1.2.3-70-g09d2