Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added psuedo inf bounding boxes and individual boundary relations. An…
…d I deleted a bunch of old stuff.
  • Loading branch information
rwb11001 committed Dec 8, 2015
1 parent b908749 commit e80136c
Show file tree
Hide file tree
Showing 17 changed files with 435 additions and 1,007 deletions.
Binary file modified .DS_Store
Binary file not shown.
21 changes: 0 additions & 21 deletions App/App.pde

This file was deleted.

43 changes: 0 additions & 43 deletions App/Quaternion.pde

This file was deleted.

35 changes: 0 additions & 35 deletions App/console.pde

This file was deleted.

21 changes: 21 additions & 0 deletions kdtest/BoundingBox.pde
@@ -0,0 +1,21 @@
class BoundingBox {
float x1, x2, y1, y2;
public BoundingBox(float _x1, float _x2, float _y1, float _y2)
{
x1 = _x1;
x2 = _x2;
y1 = _y1;
y2 = _y2;
}
void draw()
{
pushStyle();
stroke(0);
line(x1, y1, x2, y1);
line(x1, y2, x2, y2);
line(x1, y1, x1, y2);
line(x2, y1, x2, y2);
popStyle();
}
}

35 changes: 0 additions & 35 deletions kdtest/Console.pde

This file was deleted.

4 changes: 2 additions & 2 deletions kdtest/Point.pde
@@ -1,5 +1,5 @@
class Point {
float _r = 30;
float _r = i_pointRad;
float _x;
float _y;
boolean _isSelected;
Expand All @@ -14,7 +14,7 @@ class Point {
pushStyle();
stroke(c_pointStroke);
fill((_isSelected) ? c_pointSelect : c_pointDefault);
ellipse(_x, _y, _r, _r);
ellipse(_x, _y, i_pointRad, i_pointRad);
popStyle();
}

Expand Down
12 changes: 9 additions & 3 deletions kdtest/Properties.pde
Expand Up @@ -31,18 +31,24 @@ color c_statusText = c_WHITE;
color c_pointStroke = c_BLACK;
color c_pointDefault = c_WHITE;
color c_pointSelect = color (100, 255, 100);
int i_pointRad = 20;

// Tree stuff
float f_INFINITY = 99999;
int i_relationWidth = 2;
int i_boundaryWidth = 3;

// Help Strings
int i_helpStrings = 10;
String[] s_helpStrings = {
"h: Toggle Help",
"t: Toggle Console",
"r: Toggle Tree",
"e: Toggle Gnoman",
"k: Toggle Relations",
"j: Toggle Boundaries",
"f: Scale",
"d: Pan",
"s: Rotate",
"a: Place Point",
"g: Select Point",
"c: Clear Points"
};
};

0 comments on commit e80136c

Please sign in to comment.