From 609b2a92422db24bb914d2b9ea17b30d1e04e4eb Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Wed, 21 Dec 2011 07:30:21 +0000 Subject: [PATCH] Re-add file for example plane_graph_to_lcc_2.cpp which has strangely disappeared. --- .gitattributes | 1 + .../Linear_cell_complex/data/graph.txt | 224 ++++++++++++++++++ .../plane_graph_to_lcc_2.cpp | 4 +- 3 files changed, 227 insertions(+), 2 deletions(-) create mode 100644 Linear_cell_complex/examples/Linear_cell_complex/data/graph.txt diff --git a/.gitattributes b/.gitattributes index e6e585faece..a94c6a74f94 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2027,6 +2027,7 @@ Linear_cell_complex/examples/Linear_cell_complex/CMakeLCCViewerQt.inc -text Linear_cell_complex/examples/Linear_cell_complex/CMakeLCCViewerVtk.inc -text Linear_cell_complex/examples/Linear_cell_complex/CMakeLists.txt -text Linear_cell_complex/examples/Linear_cell_complex/data/graph.off -text +Linear_cell_complex/examples/Linear_cell_complex/data/graph.txt -text Linear_cell_complex/examples/Linear_cell_complex/data/points_2 -text Linear_cell_complex/examples/Linear_cell_complex/data/points_3 -text Linear_cell_complex/examples/Linear_cell_complex/data/small_points_2 -text diff --git a/Linear_cell_complex/examples/Linear_cell_complex/data/graph.txt b/Linear_cell_complex/examples/Linear_cell_complex/data/graph.txt new file mode 100644 index 00000000000..9211db1c48c --- /dev/null +++ b/Linear_cell_complex/examples/Linear_cell_complex/data/graph.txt @@ -0,0 +1,224 @@ +61 160 + +-5 -5 +-3 -5 +-3 -3 +-5 -3 +-3 -1 +-5 -1 +-3 1 +-5 1 +-3 3 +-5 3 +-3 5 +-5 5 +-1 -5 +-1 -3 +-1 -1 +-1 1 +-1 3 +-1 5 +1 -5 +1 -3 +1 -1 +1 1 +1 3 +1 5 +3 -5 +3 -3 +3 -1 +3 1 +3 3 +3 5 +5 -5 +5 -3 +5 -1 +5 1 +5 3 +5 5 +4 4 +4 2 +4 0 +4 -2 +4 -4 +2 4 +2 2 +2 0 +2 -2 +2 -4 +0 4 +0 2 +0 0 +0 -2 +0 -4 +-2 4 +-2 2 +-2 0 +-2 -2 +-2 -4 +-4 4 +-4 2 +-4 0 +-4 -2 +-4 -4 + +0 1 +1 2 +2 3 +3 0 +2 4 +4 5 +5 3 +4 6 +6 7 +7 5 +6 8 +8 9 +9 7 +8 10 +10 11 +11 9 +1 12 +12 13 +13 2 +13 14 +14 4 +14 15 +15 6 +15 16 +16 8 +16 17 +17 10 +12 18 +18 19 +19 13 +19 20 +20 14 +20 21 +21 15 +21 22 +22 16 +22 23 +23 17 +18 24 +24 25 +25 19 +25 26 +26 20 +26 27 +27 21 +27 28 +28 22 +28 29 +29 23 +24 30 +30 31 +31 25 +31 32 +32 26 +32 33 +33 27 +33 34 +34 28 +34 35 +35 29 +28 36 +29 36 +35 36 +34 36 +27 37 +28 37 +34 37 +33 37 +26 38 +27 38 +33 38 +32 38 +25 39 +26 39 +32 39 +31 39 +24 40 +25 40 +31 40 +30 40 +22 41 +23 41 +29 41 +28 41 +21 42 +22 42 +28 42 +27 42 +20 43 +21 43 +27 43 +26 43 +19 44 +20 44 +26 44 +25 44 +18 45 +19 45 +25 45 +24 45 +16 46 +17 46 +23 46 +22 46 +15 47 +16 47 +22 47 +21 47 +14 48 +15 48 +21 48 +20 48 +13 49 +14 49 +20 49 +19 49 +12 50 +13 50 +19 50 +18 50 +8 51 +10 51 +17 51 +16 51 +6 52 +8 52 +16 52 +15 52 +4 53 +6 53 +15 53 +14 53 +2 54 +4 54 +14 54 +13 54 +1 55 +2 55 +13 55 +12 55 +9 56 +11 56 +10 56 +8 56 +7 57 +9 57 +8 57 +6 57 +5 58 +7 58 +6 58 +4 58 +3 59 +5 59 +4 59 +2 59 +0 60 +3 60 +2 60 +1 60 diff --git a/Linear_cell_complex/examples/Linear_cell_complex/plane_graph_to_lcc_2.cpp b/Linear_cell_complex/examples/Linear_cell_complex/plane_graph_to_lcc_2.cpp index 7c6c736dd20..d849a9b22b5 100644 --- a/Linear_cell_complex/examples/Linear_cell_complex/plane_graph_to_lcc_2.cpp +++ b/Linear_cell_complex/examples/Linear_cell_complex/plane_graph_to_lcc_2.cpp @@ -51,8 +51,8 @@ int main(int narg, char** argv) std::string filename; if ( narg==1 ) { - filename=std::string("data/graph.off"); - std::cout<<"No filename given: use data/graph.off by default."<