From f3bab7a60529622a4fdca82c1e2a858d86025048 Mon Sep 17 00:00:00 2001 From: Pitto Date: Tue, 9 Oct 2018 15:04:41 +0200 Subject: [PATCH] 0.10 better snap function --- definitions.bi | 3 +- functions.bi | 32 +- main.bas | 13 +- output.lpe | 1208 ------------------------------------------------ readme.txt | 9 +- 5 files changed, 45 insertions(+), 1220 deletions(-) delete mode 100644 output.lpe diff --git a/definitions.bi b/definitions.bi index 1480225..4525638 100644 --- a/definitions.bi +++ b/definitions.bi @@ -11,8 +11,9 @@ #define APP_NAME "Low Poly Editor by Pitto" #define APP_VERSION "Version 0.10" #define SCR_W 1024 -#define SCR_H 768 +#define SCR_H 600 #define MIN_SNAP_DIST 15 +#define MIN_SNAP_TO_SNAP_DIST 5 #define MIN_EDGE_SNAP_DIST 20 #define RANDOM_POLYGONS_QTY 200 #define MAX_POLYGONS_NODES 10 diff --git a/functions.bi b/functions.bi index 72ca06a..3830019 100644 --- a/functions.bi +++ b/functions.bi @@ -217,6 +217,7 @@ function find_nearest_point (array() as polygon_proto, user_mouse as mouse_proto 'store all segments of all polygons in an array 'and find the distance of line to pointer for each redim preserve segments(0 to 0) as segment_proto + redim preserve points(0 to 0) as temp_point_proto dim close_point as point_proto for j = 0 to Ubound(array) - 1 @@ -233,6 +234,10 @@ function find_nearest_point (array() as polygon_proto, user_mouse as mouse_proto segments(i).x1 = head->x segments(i).y1 = head->y + + points(i).x = head->x + points(i).y = head->y + redim preserve points(0 to (Ubound(points)+1)) if (head->next_p->next_p <> NULL) then segments(i).x2 = head->next_p->x @@ -261,13 +266,26 @@ function find_nearest_point (array() as polygon_proto, user_mouse as mouse_proto segments(i).y2, _ view_area) next i - + quicksort (nearest_points(), Lbound(nearest_points), Ubound(nearest_points)) - if UBound(nearest_points) > 0 then - return nearest_points(1) - else - return nearest_points(0) + for i = 0 to Ubound(points)-1 + points(i).distance = dist(points(i).x, points(i).y, user_mouse.abs_x, user_mouse.abs_y) + next i + + quicksort (points(), Lbound(points), Ubound(points)) + + + if UBound(points) > 0 then + if (points(1).distance < MIN_SNAP_TO_SNAP_DIST) then + return points(1) + else + if UBound(nearest_points) > 0 then + return nearest_points(1) + else + return nearest_points(0) + end if + end if end if end function @@ -1386,7 +1404,7 @@ sub draw_button (x as integer, y as integer, w as integer,_ Line (x,y)-(x+w,y+h),C_WHITE,B if (is_selected) then - Line (x,y)-(x+w,y+h),C_DARK_GRAY,BF + Line (x,y)-(x+w,y+h),C_DARK_RED,BF Line (x,y)-(x+w,y+h),C_GRAY,B end if @@ -1407,6 +1425,8 @@ sub draw_bottom_info ( console_message as string, _ draw_button (BTN_W, SCR_H - BTN_H, BTN_W * 2, BTN_H, console_message,true) 'bitmap show draw_button (BTN_W*3, SCR_H - BTN_H, BTN_W, BTN_H, "[B]ITMAP", settings.is_bitmap_visible) + 'bitmap show + draw_button (BTN_W*3, SCR_H - BTN_H*2, BTN_W, BTN_H, "[X] ALPHA", settings.is_alpha_bitmap_visible) 'wireframe show draw_button (BTN_W*4, SCR_H - BTN_H, BTN_W, BTN_H, "[W]IREFRAME", settings.is_wireframe_visible) 'snap show diff --git a/main.bas b/main.bas index a2cd0cf..a927fe6 100644 --- a/main.bas +++ b/main.bas @@ -156,7 +156,16 @@ do keyboard_listener ( @input_mode, user_mouse, @view_area,_ @settings, key()) - mouse_listener (@user_mouse, @view_area) + + 'this to avoid unwanted clicks while mouse pointer goes outside the + 'working window + if (User_Mouse.res = 0) then + mouse_listener (@user_mouse, @view_area) + else + user_mouse.x = user_mouse.old_x + user_mouse.y = user_mouse.old_y + end if + '------------------------------------------------------------------- nearest_point = find_nearest_point(polygons(), user_mouse, view_area) dist_from_nearest_point = int (dist (nearest_point.x,_ @@ -511,7 +520,7 @@ do on_screen_help()) workpage = 1 - Workpage ' Swap work pages. - workpage = 1 - Workpage ' Swap work pages. + screenunlock sleep 20,1 diff --git a/output.lpe b/output.lpe deleted file mode 100644 index f540914..0000000 --- a/output.lpe +++ /dev/null @@ -1,1208 +0,0 @@ -87,123,162; 21,94; 31,104; 21,114; 11,104; 21,94; -99,134,170; -253,253,253; -136,129,122; -74,72,60; -130,109,101; 44,323; 49,332; 44,341; 34,341; 29,332; 34,323; 44,323; -254,254,254; -201,220,239; -94,139,187; -100,123,129; -30,38,24; -254,254,254; -253,253,253; -84,82,64; -211,227,240; -78,91,65; -107,138,167; -126,133,118; 8,464; 11,471; 8,478; 1,481; -6,478; -9,471; -6,464; 1,461; 8,464; -72,86,86; -254,254,254; -103,109,92; -114,115,104; -145,131,122; -59,72,43; -254,254,254; -101,148,191; -254,254,254; -254,254,254; -44,57,30; 88,521; 98,531; 88,541; 78,531; 88,521; -59,72,39; -50,62,37; 19,468; 24,477; 19,486; 9,486; 4,477; 9,468; 19,468; -253,253,253; -254,254,254; -48,60,34; -253,253,253; -99,124,137; 121,199; 131,209; 121,219; 111,209; 121,199; -44,52,33; -254,254,254; -48,63,45; -131,125,113; -116,111,105; -89,126,161; -253,253,253; -107,123,133; -254,254,254; -253,253,253; -149,178,206; -132,140,131; -53,66,40; -254,254,254; -106,94,90; 90,304; 100,314; 90,324; 80,314; 90,304; -104,149,189; -253,253,253; -55,66,43; -253,253,253; -55,58,45; -60,76,41; -201,219,236; -219,226,234; -97,117,127; -254,254,254; -157,141,132; -136,126,123; 82,252; 92,262; 82,272; 72,262; 82,252; -178,168,149; -91,83,69; 27,394; 37,404; 27,414; 17,404; 27,394; -55,60,40; -168,187,211; 107,86; 117,96; 107,106; 97,96; 107,86; -90,103,69; -135,120,112; 13,328; 16,335; 13,342; 6,345; -1,342; -4,335; -1,328; 6,325; 13,328; -40,46,30; -107,154,198; -56,73,46; -242,242,241; -73,89,101; 103,231; 113,241; 103,251; 93,241; 103,231; -254,254,254; -92,135,176; -253,253,253; -172,153,142; -99,144,189; -73,77,56; 61,389; 71,399; 61,409; 51,399; 61,389; -253,253,253; -41,54,29; -80,95,55; -72,89,63; -144,122,114; 141,310; -136,172,206; 244,78; 254,88; 244,98; 234,88; 244,78; -59,71,40; -111,121,100; -50,59,35; -85,128,168; -60,62,49; -254,254,254; -254,254,254; -157,142,132; -82,85,67; -104,150,194; -34,44,34; 68,379; 75,389; 68,399; 57,395; 57,383; 68,379; -100,133,161; 116,177; 120,185; 116,193; 108,195; 101,189; 101,181; 108,175; 116,177; -194,212,231; 113,-9; 123,1; 113,11; 103,1; 113,-9; -160,149,138; -233,234,236; -254,254,254; -94,117,128; 113,203; 120,213; 113,223; 102,219; 102,207; 113,203; -167,171,162; 111,570; 114,577; 111,584; 104,587; 97,584; 94,577; 97,570; 104,567; 111,570; -187,202,219; 46,71; 51,80; 46,89; 36,89; 31,80; 36,71; 46,71; -142,166,194; -254,254,254; -45,61,31; -103,133,165; -253,253,253; -92,135,174; -108,124,88; -93,137,180; -253,253,253; -254,254,254; -162,143,131; -167,149,140; -177,152,139; -100,137,173; -253,253,253; -254,254,254; -99,124,136; -39,50,30; -99,145,188; -50,63,36; -254,254,254; -93,101,104; 67,222; 77,232; 67,242; 57,232; 67,222; -206,222,236; -214,220,230; 66,60; 73,70; 66,80; 55,76; 55,64; 66,60; -126,130,117; 66,566; 70,574; 66,582; 58,584; 51,578; 51,570; 58,564; 66,566; -51,63,40; -74,82,55; 105,347; 115,357; 105,367; 95,357; 105,347; -157,153,87; -197,214,230; 129,66; 132,73; 129,80; 122,83; 115,80; 112,73; 115,66; 122,63; 129,66; -90,107,87; -254,254,254; -253,253,253; -59,65,44; -42,54,40; 141,396; -50,62,39; 63,471; 73,481; 63,491; 53,481; 63,471; -205,216,230; 36,18; 38,24; 36,30; 30,34; 23,33; 19,27; 19,21; 23,15; 30,14; 36,18; -244,245,243; -47,55,31; -69,85,64; -101,147,192; 243,98; 247,106; 228,102; 235,96; 243,98; -253,253,253; -204,216,230; 25,10; 35,20; 25,30; 15,20; 25,10; -40,52,33; 49,470; 59,480; 49,490; 39,480; 49,470; -253,253,253; -253,253,253; -254,254,254; -80,114,149; 26,122; 36,132; 26,142; 16,132; 26,122; -253,253,253; -134,136,130; -179,200,219; -107,137,167; -253,253,253; -92,124,150; -161,165,153; 73,566; 83,576; 73,586; 63,576; 73,566; -183,206,229; 183,-2; 193,8; 183,18; 173,8; 183,-2; -79,97,102; -248,248,247; -143,130,120; -195,215,235; -47,55,34; -28,34,21; -82,84,63; -254,254,254; -133,120,115; -84,116,150; -106,104,100; -253,253,253; -68,87,45; -41,54,27; 126,535; 136,545; 126,555; 116,545; 126,535; -188,200,213; 88,90; 92,98; 88,106; 80,108; 73,102; 73,94; 80,88; 88,90; -78,74,61; -45,59,35; -254,254,254; -73,85,60; -254,254,254; -231,234,237; -205,218,233; 255,34; 262,44; 255,54; 244,50; 244,38; 255,34; -217,222,228; 42,48; 52,58; 42,68; 32,58; 42,48; -254,254,254; -58,65,57; -18,34,24; -123,111,91; 87,412; 90,419; 87,426; 80,429; 73,426; 70,419; 73,412; 80,409; 87,412; -253,253,253; -62,59,53; -34,42,28; -157,137,128; -49,64,39; -125,108,101; 100,304; 110,314; 100,324; 90,314; 100,304; -72,83,77; -177,150,137; -126,124,125; -81,102,107; -141,122,115; 130,283; 135,292; 130,301; 120,301; 115,292; 120,283; 130,283; -228,232,235; -100,141,186; -224,225,231; 54,33; 64,43; 54,53; 44,43; 54,33; -160,142,129; -79,95,86; -89,116,139; 27,154; 37,164; 27,174; 17,164; 27,154; -104,148,190; 207,96; 217,106; 197,106; 207,96; -80,84,52; -200,218,235; -217,226,235; -253,253,253; -107,149,190; -254,254,254; -86,107,118; -105,122,128; -169,146,136; 141,349; 138,342; 141,335; -82,121,162; 89,126; 96,136; 89,146; 78,142; 78,130; 89,126; -254,254,254; -253,253,253; -95,137,178; 111,116; 121,126; 111,136; 101,126; 111,116; -254,254,254; -98,90,83; 33,288; 43,298; 33,308; 23,298; 33,288; -253,253,253; -140,123,112; -126,126,121; -106,93,85; 65,306; 70,315; 65,324; 55,324; 50,315; 55,306; 65,306; -97,125,143; -103,120,115; -102,106,89; -254,254,254; -212,225,235; -101,103,92; -30,39,29; 100,442; 105,451; 100,460; 90,460; 85,451; 90,442; 100,442; -254,254,254; -253,253,253; -181,207,230; -254,254,254; -253,253,253; -253,253,253; -99,145,188; -99,109,101; 59,238; 64,247; 59,256; 49,256; 44,247; 49,238; 59,238; -222,230,238; -95,136,178; 141,150; 137,144; 137,138; 141,132; -253,253,253; -253,253,253; -177,206,235; 235,42; 242,52; 235,62; 224,58; 224,46; 235,42; -107,152,194; -148,136,126; -253,253,253; -77,99,120; 7,162; 17,172; 7,182; -3,172; 7,162; -54,70,34; -254,254,254; -253,253,253; -40,53,38; 147,412; 140,406; 140,398; 147,392; -98,139,186; -253,253,253; -218,228,236; -45,55,39; 40,382; 50,392; 40,402; 30,392; 40,382; -92,120,150; -145,131,117; -182,160,146; -252,252,252; -55,70,38; -66,80,48; 61,347; 71,357; 61,367; 51,357; 61,347; -240,240,240; -82,109,136; -101,118,122; -253,253,253; -168,191,215; 200,76; 210,86; 200,96; 190,86; 200,76; -141,146,79; -167,149,138; -127,114,109; -43,51,28; -201,215,229; 162,66; 172,76; 162,86; 152,76; 162,66; -112,136,144; -88,128,166; -199,220,238; -254,254,254; -84,105,115; -201,218,235; -254,254,254; -35,46,28; -254,254,254; -254,254,254; -105,151,193; -86,107,120; -54,67,39; -88,99,72; -253,253,253; -57,65,45; -149,136,127; -50,65,37; -205,221,237; -205,216,229; 26,4; 31,13; 26,22; 16,22; 11,13; 16,4; 26,4; -55,67,41; -210,222,234; -39,50,34; 90,430; 100,440; 90,450; 80,440; 90,430; -45,50,30; -70,86,44; -161,149,140; -146,122,104; -43,58,35; -149,132,118; -156,140,130; -114,112,109; 98,247; 103,256; 98,265; 88,265; 83,256; 88,247; 98,247; -38,51,28; -86,93,90; 53,219; 63,229; 53,239; 43,229; 53,219; -254,254,254; -35,46,33; 110,443; 120,453; 110,463; 100,453; 110,443; -253,253,253; -48,55,40; 31,370; 35,378; 31,386; 23,388; 16,382; 16,374; 23,368; 31,370; -254,254,254; -254,254,254; -254,254,254; -93,127,159; 103,167; 110,177; 103,187; 92,183; 92,171; 103,167; -134,127,120; -254,254,254; -197,214,230; 254,15; 259,24; 254,33; 244,33; 239,24; 244,15; 254,15; -77,98,115; -58,66,41; -183,207,230; 249,7; 254,16; 249,25; 239,25; 234,16; 239,7; 249,7; -88,118,149; 92,157; 96,165; 92,173; 84,175; 77,169; 77,161; 84,155; 92,157; -48,59,33; -119,121,97; -99,144,187; -150,184,215; -43,52,31; -191,211,232; 179,27; 189,37; 179,47; 169,37; 179,27; -98,104,90; 8,539; 12,547; 8,555; 0,557; -7,551; -7,543; 0,537; 8,539; -201,216,232; 204,23; 214,33; 204,43; 194,33; 204,23; -102,147,190; 225,100; 229,108; 210,104; 217,98; 225,100; -253,253,253; -253,253,253; -48,59,38; 24,426; 34,436; 24,446; 14,436; 24,426; -132,139,125; 139,565; 139,585; 129,575; 139,565; -114,150,185; -254,254,254; -105,103,100; -100,114,113; -85,115,145; 21,167; 31,177; 21,187; 11,177; 21,167; -205,216,227; -67,80,57; -135,125,117; -106,153,197; -99,119,134; -115,149,182; -85,91,75; -99,126,142; -39,50,30; 26,472; 33,482; 26,492; 15,488; 15,476; 26,472; -252,252,252; 99,590; 109,600; 99,610; 89,600; 99,590; -90,91,80; -38,52,32; -44,58,28; 41,517; 51,527; 41,537; 31,527; 41,517; -254,254,254; -108,137,163; -81,116,151; -138,130,118; -233,234,231; -203,186,180; -131,138,131; 145,216; 145,236; 135,226; 145,216; -86,114,141; 63,167; 68,176; 63,185; 53,185; 48,176; 53,167; 63,167; -58,63,41; -210,223,236; -136,153,181; -200,215,231; 171,25; 176,34; 171,43; 161,43; 156,34; 161,25; 171,25; -100,135,169; -102,145,184; -106,93,79; -217,227,237; -102,102,88; -138,144,129; -142,128,122; -219,228,236; -47,55,38; -181,169,165; -76,98,104; -74,95,112; -229,233,236; -87,116,141; -87,112,133; -96,129,163; -155,143,132; -132,124,117; -105,134,158; 104,181; 114,191; 104,201; 94,191; 104,181; -80,110,143; -225,230,235; -100,97,84; -253,253,253; -253,253,253; -49,54,42; -253,253,253; -210,219,231; 103,48; 106,55; 103,62; 96,65; 89,62; 86,55; 89,48; 96,45; 103,48; -84,98,101; -148,132,121; -66,81,66; -212,224,238; -127,122,111; -204,217,229; 128,68; 138,78; 128,88; 118,78; 128,68; -254,254,254; -57,66,41; -212,213,211; -59,74,43; -253,253,253; -101,144,184; -100,144,187; -253,253,253; -214,220,230; 28,25; 38,35; 28,45; 18,35; 28,25; -52,56,41; -253,253,253; -86,127,165; -254,254,254; -92,110,116; -80,99,67; -44,55,31; -95,136,178; -47,56,33; -43,56,28; -93,135,174; -37,49,35; 133,447; 136,454; 133,461; 126,464; 119,461; 116,454; 119,447; 126,444; 133,447; -254,254,254; 33,579; 36,586; 33,593; 26,596; 19,593; 16,586; 19,579; 26,576; 33,579; -116,118,106; -38,50,30; -155,139,133; -197,214,231; 139,-2; 143,6; 139,14; 131,16; 124,10; 124,2; 131,-4; 139,-2; -105,146,189; -77,100,122; 76,160; 78,166; 76,172; 70,176; 63,175; 59,169; 59,163; 63,157; 70,156; 76,160; -223,224,222; -56,71,44; -39,48,31; -67,75,53; -101,112,107; -114,108,98; -66,71,44; -47,54,34; -253,253,253; -161,135,125; 145,305; 145,325; 135,315; 145,305; -110,144,181; -51,62,36; -207,222,236; -132,131,124; -46,58,32; -95,140,182; -225,231,239; -97,141,184; -253,253,253; -203,219,236; -86,120,155; 84,178; 94,188; 84,198; 74,188; 84,178; -253,253,253; -87,86,67; -35,41,28; -54,67,54; -253,253,253; -142,134,123; -254,254,254; -47,63,35; -91,136,185; -103,148,190; -48,58,46; -222,225,219; -253,253,253; -114,138,162; -253,253,253; -149,130,110; -167,146,133; -189,193,186; -92,128,164; -92,135,175; -108,131,149; 113,194; 116,201; 113,208; 106,211; 99,208; 96,201; 99,194; 106,191; 113,194; -162,191,216; -159,147,145; 97,253; 107,263; 97,273; 87,263; 97,253; -67,64,57; -95,139,181; -106,152,195; -143,119,100; 79,398; 83,406; 79,414; 71,416; 64,410; 64,402; 71,396; 79,398; -98,144,187; -111,98,79; 101,408; 105,416; 101,424; 93,426; 86,420; 86,412; 93,406; 101,408; -150,141,140; -125,114,108; -253,253,253; -254,254,254; -98,144,187; -98,128,158; -111,122,121; 138,220; 145,230; 138,240; 127,236; 127,224; 138,220; -123,132,90; -58,68,44; -254,254,254; -205,218,231; 139,34; 146,44; 139,54; 128,50; 128,38; 139,34; -199,218,235; -100,142,187; -78,88,51; -254,254,254; -213,222,232; 146,29; 150,37; 146,45; 138,47; 131,41; 131,33; 138,27; 146,29; -254,254,254; -254,254,254; -74,72,65; -122,124,103; -101,149,192; -183,167,156; -39,53,30; -112,112,87; -142,121,114; 143,295; 143,315; 133,305; 143,295; -254,254,254; -123,124,114; -254,254,254; -59,65,40; -102,99,86; -88,103,108; 133,237; 143,247; 133,257; 123,247; 133,237; -161,196,233; 180,44; 187,54; 180,64; 169,60; 169,48; 180,44; -153,156,112; -112,128,138; -103,98,87; -90,109,57; -107,140,167; -175,159,147; -204,220,236; -46,54,30; -171,156,142; -89,135,183; -253,253,253; -86,100,71; -99,126,139; -71,90,51; -89,131,176; -42,55,35; 113,422; 123,432; 113,442; 103,432; 113,422; -89,129,170; -59,73,44; -94,137,176; -86,124,157; -253,253,253; -56,70,43; 143,450; -201,222,242; -253,253,253; -82,116,149; -135,155,176; 10,100; 12,106; 10,112; 4,116; -3,115; -7,109; -7,103; -3,97; 4,96; 10,100; -37,49,31; 44,473; 54,483; 44,493; 34,483; 44,473; -111,157,200; -215,225,234; -117,114,110; 3,276; 13,286; 3,296; -7,286; 3,276; -58,71,41; -42,54,39; -41,52,28; 143,529; 143,549; 133,539; 143,529; -93,135,175; -253,253,253; -85,92,79; -123,112,105; -240,240,239; -253,253,253; -104,151,195; -144,134,128; -81,97,58; -230,233,236; -254,254,254; -192,218,241; -84,93,69; -42,49,30; -158,164,153; -47,54,46; 12,506; 16,514; 12,522; 4,524; -3,518; -3,510; 4,504; 12,506; -95,91,70; 98,412; 102,420; 98,428; 90,430; 83,424; 83,416; 90,410; 98,412; -253,253,253; -61,70,69; 21,221; 31,231; 21,241; 11,231; 21,221; -84,127,173; -240,240,239; -254,254,254; -92,135,177; -253,253,253; -65,83,47; -90,107,58; -102,147,188; -254,254,254; 68,582; 75,592; 68,602; 57,598; 57,586; 68,582; -253,253,253; -90,132,170; 136,143; 146,153; 136,163; 126,153; 136,143; -120,113,109; 82,255; 89,265; 82,275; 71,271; 71,259; 82,255; -203,222,241; -254,254,254; -51,61,43; 33,368; 43,378; 33,388; 23,378; 33,368; -254,254,254; -69,76,74; 52,223; 55,230; 52,237; 45,240; 38,237; 35,230; 38,223; 45,220; 52,223; -97,141,183; -92,91,85; -203,220,235; -254,254,254; -254,254,254; -50,57,37; -254,254,254; -80,111,142; 73,144; 83,154; 73,164; 63,154; 73,144; -138,145,137; 9,223; 14,232; 9,241; -1,241; -6,232; -1,223; 9,223; -225,226,230; 79,52; 89,62; 79,72; 69,62; 79,52; -183,208,231; 267,36; 263,30; 263,24; 267,18; -254,254,254; -228,232,236; -58,70,40; -254,254,254; -243,244,242; -111,155,196; 253,88; 255,94; 253,100; 247,104; 240,103; 236,97; 236,91; 240,85; 247,84; 253,88; -142,140,139; -254,254,254; -56,70,39; -168,147,139; -200,218,237; -100,100,62; -51,64,44; -93,133,170; -216,222,230; 88,47; 90,53; 88,59; 82,63; 75,62; 71,56; 71,50; 75,44; 82,43; 88,47; -121,139,157; 8,166; 13,175; 8,184; -2,184; -7,175; -2,166; 8,166; -66,84,58; -118,113,110; -250,250,250; -253,253,253; -253,253,253; -112,119,121; -186,218,244; -65,78,50; 13,350; 23,360; 13,370; 3,360; 13,350; -69,83,53; -141,123,118; -254,254,254; -253,253,253; -18,31,19; 141,481; 145,489; 141,497; 133,499; 126,493; 126,485; 133,479; 141,481; -121,130,127; 142,238; 135,235; 132,228; 135,221; 142,218; -115,146,179; -47,61,31; 125,526; 129,534; 125,542; 117,544; 110,538; 110,530; 117,524; 125,526; -254,254,254; -47,56,35; -48,60,33; -254,254,254; -111,155,198; 265,103; 268,96; -253,253,253; -57,69,39; -71,71,56; -116,115,66; -117,124,71; -52,65,38; -253,253,253; -70,80,79; 42,207; 52,217; 42,227; 32,217; 42,207; -88,101,105; 130,225; 140,235; 130,245; 120,235; 130,225; -140,147,138; -243,243,242; -254,254,254; -97,101,84; -191,205,222; 144,78; 154,88; 144,98; 134,88; 144,78; -253,253,253; -72,75,68; 19,283; 29,293; 19,303; 9,293; 19,283; -164,144,127; -254,254,254; -253,253,253; -253,253,253; -73,85,60; -254,254,254; -99,92,85; -23,28,19; -253,253,253; -33,42,25; -148,131,117; -116,123,90; -71,86,57; -149,126,118; -99,143,187; -68,68,52; 111,412; 113,418; 111,424; 105,428; 98,427; 94,421; 94,415; 98,409; 105,408; 111,412; -253,253,253; -83,106,119; -253,253,253; -212,225,237; -152,152,106; -162,141,132; -56,57,42; -47,63,33; -192,207,222; -97,121,141; -85,121,152; 120,133; 123,140; 120,147; 113,150; 106,147; 103,140; 106,133; 113,130; 120,133; -254,254,254; -229,234,239; -57,69,55; -253,253,253; -69,85,58; -253,253,253; -253,253,253; -40,48,30; -253,253,253; -253,253,253; -218,222,229; 32,54; 35,61; 32,68; 25,71; 18,68; 15,61; 18,54; 25,51; 32,54; -191,211,232; 123,41; 133,51; 123,61; 113,51; 123,41; -43,54,32; -125,118,117; -253,253,253; -221,227,234; -160,187,214; 241,75; 251,85; 241,95; 231,85; 241,75; -141,176,208; 267,98; -254,254,254; -220,229,238; -39,51,32; 51,482; 54,489; 51,496; 44,499; 37,496; 34,489; 37,482; 44,479; 51,482; -32,39,25; -236,238,241; -130,121,112; -98,145,186; -89,134,181; -253,253,253; -253,253,253; -47,49,39; -254,254,254; 10,579; 14,587; 10,595; 2,597; -5,591; -5,583; 2,577; 10,579; -35,46,34; 110,438; 120,448; 110,458; 100,448; 110,438; -254,254,254; -154,136,123; -35,48,29; 105,470; 107,476; 105,482; 99,486; 92,485; 88,479; 88,473; 92,467; 99,466; 105,470; -38,51,32; -56,63,40; -101,97,84; -227,232,237; -101,122,139; -253,253,253; -78,99,100; -216,222,231; 48,27; 58,37; 48,47; 38,37; 48,27; -65,78,47; -45,60,34; -253,253,253; -253,253,253; -253,253,253; -254,254,254; -31,41,28; 88,441; 98,451; 88,461; 78,451; 88,441; -96,119,131; 119,204; 123,212; 119,220; 111,222; 104,216; 104,208; 111,202; 119,204; -253,253,253; -160,144,140; -109,154,193; -144,141,136; -253,253,253; -78,86,82; 37,237; 41,245; 37,253; 29,255; 22,249; 22,241; 29,235; 37,237; -254,254,254; -253,253,253; -254,254,254; -102,115,112; -254,254,254; -88,120,148; -81,123,162; -253,253,253; 13,591; 18,600; 13,609; 3,609; -2,600; 3,591; 13,591; -108,141,174; -87,129,175; -62,81,54; -52,61,43; 34,430; 44,440; 34,450; 24,440; 34,430; -253,253,253; -109,120,119; -253,253,253; -213,225,237; -253,253,253; -254,254,254; -28,33,20; -90,100,103; -253,253,253; -253,253,253; -253,253,253; -203,220,235; -201,217,233; 259,32; 269,42; 259,52; 249,42; 259,32; -48,61,42; -71,88,47; -30,41,28; 123,448; 130,458; 123,468; 112,464; 112,452; 123,448; -253,253,253; -94,104,75; -254,254,254; -83,125,164; -119,111,106; -103,149,194; -253,253,253; -196,221,243; -177,149,141; -198,220,240; -59,73,43; -253,253,253; -41,55,32; -180,207,233; 231,64; 241,74; 231,84; 221,74; 231,64; -253,253,253; -185,218,246; -221,228,236; -93,131,171; -254,254,254; -105,151,193; -94,137,181; -35,51,30; -142,174,203; -253,253,252; -64,85,97; -253,253,253; -49,60,33; -43,56,28; -254,254,254; -97,114,118; -96,143,191; 245,107; 235,107; 245,107; -140,131,123; -254,254,254; -163,198,235; 217,50; 224,60; 217,70; 206,66; 206,54; 217,50; -61,72,43; -103,106,64; -33,40,24; -254,254,254; -172,189,206; -39,52,37; 136,375; 146,385; 136,395; 126,385; 136,375; -45,51,31; -43,55,34; 28,441; 38,451; 28,461; 18,451; 28,441; -154,135,124; -46,59,29; 135,528; 138,535; 135,542; 128,545; 121,542; 118,535; 121,528; 128,525; 135,528; -162,145,140; -165,157,94; -247,247,247; -104,134,162; 144,183; 144,203; 133,199; 133,187; 144,183; -158,194,232; 179,51; 189,61; 179,71; 169,61; 179,51; -117,127,124; 146,219; 146,239; 135,235; 135,223; 146,219; -253,253,253; -75,86,69; -253,253,253; -97,127,152; -109,106,101; 75,260; 85,270; 75,280; 65,270; 75,260; -58,70,46; -254,254,254; -64,73,54; -54,72,35; -166,200,236; 222,47; 232,57; 222,67; 212,57; 222,47; -206,217,230; 69,1; 76,11; 69,21; 58,17; 58,5; 69,1; -55,69,41; -121,115,104; -254,254,254; -130,123,120; -216,222,230; 102,60; 112,70; 102,80; 92,70; 102,60; -253,253,253; -59,72,42; -141,142,135; -254,254,254; -51,68,43; -111,122,119; 102,217; 112,227; 102,237; 92,227; 102,217; -98,140,186; -94,122,148; -103,136,170; -50,61,35; -231,234,238; -68,91,108; 37,119; 47,129; 37,139; 27,129; 37,119; -254,254,254; -171,203,237; 264,70; 264,58; -141,152,125; -184,160,149; -254,254,254; -253,253,253; -76,93,46; -136,120,113; -150,134,120; -86,135,190; -108,108,99; 11,293; 16,302; 11,311; 1,311; -4,302; 1,293; 11,293; -211,225,237; -254,254,254; -31,41,31; 122,380; 132,390; 122,400; 112,390; 122,380; -94,137,177; -204,217,233; 106,37; 110,45; 106,53; 98,55; 91,49; 91,41; 98,35; 106,37; -254,254,254; -76,109,140; 75,131; 77,137; 75,143; 69,147; 62,146; 58,140; 58,134; 62,128; 69,127; 75,131; -45,59,35; -56,63,39; -93,137,182; -102,144,180; -57,68,42; -254,254,254; -80,96,67; -254,254,254; -253,253,253; -90,113,127; -253,253,253; -253,253,253; -138,133,129; -254,254,254; -128,122,114; -86,96,62; 90,344; 95,353; 90,362; 80,362; 75,353; 80,344; 90,344; -89,131,174; -42,49,28; -57,64,40; -43,50,28; -254,254,254; -91,134,179; -253,253,253; -253,253,253; -195,214,234; 140,16; 142,22; 140,28; 134,32; 127,31; 123,25; 123,19; 127,13; 134,12; 140,16; -51,63,59; -46,56,39; 15,490; 17,496; 15,502; 9,506; 2,505; -2,499; -2,493; 2,487; 9,486; 15,490; -40,44,37; -200,220,239; -253,253,253; -94,137,175; -140,134,134; -45,56,32; -47,62,29; -171,140,115; 48,399; 58,409; 48,419; 38,409; 48,399; -153,149,88; -109,108,98; -252,253,252; -46,60,37; -253,253,253; -89,100,62; -219,229,238; -99,144,187; -66,70,56; -93,107,61; -106,152,195; -127,123,123; -152,132,115; 100,334; 110,344; 100,354; 90,344; 100,334; -86,125,166; 58,110; 68,120; 58,130; 48,120; 58,110; -110,137,167; -128,124,111; -33,39,25; -38,52,30; -166,142,130; -184,208,230; 247,8; 251,16; 247,24; 239,26; 232,20; 232,12; 239,6; 247,8; -45,58,40; 75,368; 80,377; 75,386; 65,386; 60,377; 65,368; 75,368; -47,58,30; -110,101,88; -254,254,254; -48,60,39; -116,160,198; -149,172,197; 65,84; 72,94; 65,104; 54,100; 54,88; 65,84; -253,253,253; -60,71,62; -253,253,253; -168,142,132; -254,254,254; -160,142,135; -253,253,253; -48,62,35; -27,38,26; 87,448; 94,458; 87,468; 76,464; 76,452; 87,448; -43,57,29; 47,519; 49,525; 47,531; 41,535; 34,534; 30,528; 30,522; 34,516; 41,515; 47,519; -66,68,58; -253,253,253; -208,210,206; -254,254,254; -177,208,237; -253,253,253; -254,254,254; -97,131,163; -253,253,253; -84,125,163; -253,253,253; -106,146,185; -253,253,253; -241,241,240; -253,253,253; -54,59,40; -127,116,107; -253,253,253; -147,137,134; -45,56,34; -41,55,27; 137,543; 144,553; 137,563; 126,559; 126,547; 137,543; -47,63,61; -53,60,38; -197,215,233; 260,36; -50,57,50; -254,254,254; -253,253,253; -254,254,254; -148,126,117; 143,298; 143,318; 133,308; 143,298; -253,253,253; -182,159,151; -58,73,49; 133,364; 143,374; 133,384; 123,374; 133,364; -183,203,222; -131,121,112; -253,253,253; -253,253,253; -65,72,48; -125,131,90; -253,253,253; -253,253,253; -66,82,44; -36,45,23; 51,538; 61,548; 51,558; 41,548; 51,538; -254,254,254; -254,254,254; -97,138,179; 93,106; 96,113; 93,120; 86,123; 79,120; 76,113; 79,106; 86,103; 93,106; -44,57,33; 50,489; 60,499; 50,509; 40,499; 50,489; -80,88,84; 26,211; 29,218; 26,225; 19,228; 12,225; 9,218; 12,211; 19,208; 26,211; -133,115,105; 89,328; 96,338; 89,348; 78,344; 78,332; 89,328; -125,124,123; -87,132,182; -254,254,254; -205,217,232; 144,33; 154,43; 144,53; 134,43; 144,33; -52,67,38; -254,254,254; -91,129,169; -45,58,41; 142,401; -89,119,151; 37,173; 47,183; 37,193; 27,183; 37,173; -216,228,240; -101,94,73; -58,71,41; -96,141,183; -102,148,194; 267,94; 257,104; 267,94; -253,253,253; -108,116,106; 119,218; 129,228; 119,238; 109,228; 119,218; -166,151,143; -103,149,190; -253,253,253; -77,87,86; 114,237; 124,247; 114,257; 104,247; 114,237; -49,56,37; -44,55,31; -253,253,253; -99,145,188; -34,41,26; -104,150,191; -106,145,180; -253,253,253; -57,64,39; -45,56,34; -112,102,98; 44,257; 54,267; 44,277; 34,267; 44,257; -46,59,30; 138,514; 142,522; 138,530; 130,532; 123,526; 123,518; 130,512; 138,514; -253,253,253; -153,135,129; -254,254,254; -253,253,253; -51,61,38; -86,129,172; -254,254,254; -254,254,254; -213,221,229; -104,101,78; -103,149,192; -254,254,254; -254,254,254; -254,254,254; -254,254,254; -225,231,236; -94,105,72; 6,341; 16,351; 6,361; -4,351; 6,341; -253,253,253; -79,110,140; 53,125; 58,134; 53,143; 43,143; 38,134; 43,125; 53,125; -205,220,235; -58,66,58; -109,106,101; -193,213,234; -168,204,238; -54,71,41; -253,253,253; -50,66,30; -50,65,37; -48,60,36; -37,51,31; 101,468; 111,478; 101,488; 91,478; 101,468; -105,114,96; -116,129,132; -95,137,183; -209,224,240; -42,54,40; 139,382; -254,254,254; -50,52,42; 11,392; 21,402; 11,412; 1,402; 11,392; -106,102,88; -254,254,254; -229,233,236; -47,58,34; -71,100,125; 42,181; 52,191; 42,201; 32,191; 42,181; -58,71,46; -111,99,94; 99,313; 101,319; 99,325; 93,329; 86,328; 82,322; 82,316; 86,310; 93,309; 99,313; -253,253,253; -254,254,254; -254,254,254; -27,32,21; -44,52,33; -126,118,105; -93,136,179; -173,150,137; -136,154,180; -253,253,253; -25,30,19; -253,253,253; -253,253,253; -40,43,32; -36,52,30; -50,63,40; 86,422; 96,432; 86,442; 76,432; 86,422; -45,51,31; -228,235,240; -253,253,253; -253,253,253; -77,109,140; 82,132; 87,141; 82,150; 72,150; 67,141; 72,132; 82,132; -178,181,174; -51,59,34; -83,89,58; -43,57,34; -61,73,47; 117,356; 122,365; 117,374; 107,374; 102,365; 107,356; 117,356; -254,254,254; 145,603; 138,597; 138,589; 145,583; -68,75,72; 34,230; 44,240; 34,250; 24,240; 34,230; -108,150,191; 174,92; 179,101; 159,101; 164,92; 174,92; -214,225,236; -37,54,31; -156,161,149; -138,129,121; -254,254,254; -97,134,168; -98,105,103; 93,243; 96,250; 93,257; 86,260; 79,257; 76,250; 79,243; 86,240; 93,243; -252,252,252; 139,590; 139,610; 129,600; 139,590; -165,198,232; 255,-1; 259,7; 255,15; 247,17; 240,11; 240,3; 247,-3; 255,-1; -94,92,87; -191,211,233; 120,3; 124,11; 120,19; 112,21; 105,15; 105,7; 112,1; 120,3; -202,223,242; -253,253,253; -29,38,23; 23,516; 28,525; 23,534; 13,534; 8,525; 13,516; 23,516; -49,59,35; -253,253,253; -46,59,37; 61,443; 71,453; 61,463; 51,453; 61,443; -54,68,41; -46,53,33; -212,226,240; -96,125,154; 94,156; 104,166; 94,176; 84,166; 94,156; -203,221,240; -197,222,245; -106,152,198; -253,253,253; -112,125,121; -48,61,38; 63,475; 68,484; 63,493; 53,493; 48,484; 53,475; 63,475; -93,121,141; -219,223,230; 48,41; 53,50; 48,59; 38,59; 33,50; 38,41; 48,41; -22,29,21; 9,502; 19,512; 9,522; -1,512; 9,502; -254,254,254; -90,109,117; -39,49,30; -111,146,180; -254,254,254; -55,61,42; -39,49,28; -95,141,186; -254,254,254; -253,253,253; -253,253,253; -253,253,253; -117,108,98; -96,142,186; -99,92,84; 78,287; 83,296; 78,305; 68,305; 63,296; 68,287; 78,287; -58,66,48; 5,521; 15,531; 5,541; -5,531; 5,521; -253,253,253; -74,92,49; -66,66,59; -254,254,254; -61,66,55; -137,134,134; -88,131,173; -253,253,253; -253,253,253; -173,154,142; -254,254,254; -239,240,238; 85,577; 87,583; 85,589; 79,593; 72,592; 68,586; 68,580; 72,574; 79,573; 85,577; -252,252,252; -254,254,254; -206,222,236; -171,145,136; -155,125,107; 29,407; 39,417; 29,427; 19,417; 29,407; -89,130,169; 131,147; 136,156; 131,165; 121,165; 116,156; 121,147; 131,147; -254,254,254; -181,198,213; -224,226,230; 92,52; 97,61; 92,70; 82,70; 77,61; 82,52; 92,52; -74,92,63; -54,67,43; 92,419; 99,429; 92,439; 81,435; 81,423; 92,419; -60,66,43; -254,254,254; -254,254,254; -254,254,254; -194,218,239; -141,127,121; -77,95,62; -74,86,51; -90,133,179; -254,254,254; -112,98,91; 47,293; 54,303; 47,313; 36,309; 36,297; 47,293; -93,102,103; 96,242; 98,248; 96,254; 90,258; 83,257; 79,251; 79,245; 83,239; 90,238; 96,242; -193,212,232; 120,41; 130,51; 120,61; 110,51; 120,41; -160,143,127; -254,254,254; -181,154,144; -133,140,126; 29,565; 39,575; 29,585; 19,575; 29,565; -212,223,235; -43,56,29; 42,512; 52,522; 42,532; 32,522; 42,512; -253,253,253; -253,253,253; -132,123,112; -70,74,48; -114,139,164; -130,138,91; -33,47,27; 115,477; 122,487; 115,497; 104,493; 104,481; 115,477; -25,34,16; 13,540; 20,550; 13,560; 2,556; 2,544; 13,540; -87,130,173; -236,237,234; -39,48,30; -63,81,43; -72,98,117; -100,147,189; -253,253,253; -254,254,254; -229,234,240; -253,253,253; -253,253,253; -95,139,182; -253,253,253; -164,170,159; -57,64,44; -243,243,242; -231,233,234; -101,98,97; 147,292; 144,285; 147,278; -106,147,187; -228,234,239; -59,65,45; 102,412; 112,422; 102,432; 92,422; 102,412; -30,35,24; -253,253,253; -179,208,236; -86,80,65; -51,64,41; -113,107,100; -42,53,29; 77,525; 84,535; 77,545; 66,541; 66,529; 77,525; -253,253,253; -253,253,253; -150,132,125; -139,134,136; 138,278; 133,269; 138,260; -254,254,254; -104,145,189; 136,100; 146,110; 136,120; 126,110; 136,100; -206,218,233; 211,22; 216,31; 211,40; 201,40; 196,31; 201,22; 211,22; -159,141,135; -47,59,35; -253,253,253; -97,142,187; -127,127,127; -127,127,127; diff --git a/readme.txt b/readme.txt index bf68100..a6f5eb8 100644 --- a/readme.txt +++ b/readme.txt @@ -16,12 +16,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. 0.10 -* it's possible to select, move and delete single nodes - +* it's possible to select, move and delete single nodes +* fixed a bug while the mouse pointer goes outside the program + window +* improved snapping routine, now it's possible to snap also + points placed over a yet existing line 0.09 * speed optimization: the artwok is rasterized only on some events - causing a lot of FPS gain + allowing a lot of FPS gain * fixed a bug in load .lpe file, now also the bound are dinamically re-calculated * Bottom bar info