regression: adjust polygon diagrams to not use tabs

Also, small diagram adjustments

Patch by Emre Hasegeli
This commit is contained in:
Bruce Momjian 2014-10-11 17:14:16 -04:00
parent 25ad5a5284
commit 4f2e5a8a84
2 changed files with 36 additions and 34 deletions

View File

@ -3,15 +3,15 @@
--
-- polygon logic
--
-- 3 o
-- |
-- 2 + |
-- / |
-- 1 # o +
-- / |
-- 0 #-----o-+
-- 3 o
-- |
-- 2 + |
-- / |
-- 1 # +
-- / o |
-- 0 #-----o-+
--
-- 0 1 2 3 4
-- 0 1 2 3 4
--
CREATE TABLE POLYGON_TBL(f1 polygon);
INSERT INTO POLYGON_TBL(f1) VALUES ('(2.0,0.0),(2.0,4.0),(0.0,0.0)');
@ -128,15 +128,16 @@ SELECT '' AS one, p.*
--
-- polygon logic
--
-- 3 o
-- |
-- 2 + |
-- / |
-- 1 / o +
-- 3 o
-- /|
-- 2 + |
-- / |
-- 1 / o +
-- / |
-- 0 +-----o-+
-- 0 +-----o-+
--
-- 0 1 2 3 4
--
-- 0 1 2 3 4
--
-- left of
SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' << polygon '(3.0,1.0),(3.0,3.0),(1.0,0.0)' AS false;
@ -248,11 +249,11 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' && polygon '(3.0,1.0),(3.0,3.0),(
(1 row)
-- +--------------------+
-- | *---* 1
-- | *---* 1
-- | + | |
-- | 2 *---*
-- +--------------------+
-- 3
-- 3
-- Edges 1-2, 2-3 are not shown on picture
SELECT '((0,4),(6,4),(1,2),(6,0),(0,0))'::polygon && '((2,1),(2,3),(3,3),(3,1))'::polygon AS "true";
true

View File

@ -3,15 +3,15 @@
--
-- polygon logic
--
-- 3 o
-- |
-- 2 + |
-- / |
-- 1 # o +
-- / |
-- 0 #-----o-+
-- 3 o
-- |
-- 2 + |
-- / |
-- 1 # +
-- / o |
-- 0 #-----o-+
--
-- 0 1 2 3 4
-- 0 1 2 3 4
--
CREATE TABLE POLYGON_TBL(f1 polygon);
@ -83,15 +83,16 @@ SELECT '' AS one, p.*
--
-- polygon logic
--
-- 3 o
-- |
-- 2 + |
-- / |
-- 1 / o +
-- 3 o
-- /|
-- 2 + |
-- / |
-- 1 / o +
-- / |
-- 0 +-----o-+
-- 0 +-----o-+
--
-- 0 1 2 3 4
--
-- 0 1 2 3 4
--
-- left of
SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' << polygon '(3.0,1.0),(3.0,3.0),(1.0,0.0)' AS false;
@ -155,11 +156,11 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' ~= polygon '(3.0,1.0),(3.0,3.0),(
SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' && polygon '(3.0,1.0),(3.0,3.0),(1.0,0.0)' AS true;
-- +--------------------+
-- | *---* 1
-- | *---* 1
-- | + | |
-- | 2 *---*
-- +--------------------+
-- 3
-- 3
-- Edges 1-2, 2-3 are not shown on picture
SELECT '((0,4),(6,4),(1,2),(6,0),(0,0))'::polygon && '((2,1),(2,3),(3,3),(3,1))'::polygon AS "true";