summaryrefslogtreecommitdiffstats
path: root/AutoVisual
diff options
context:
space:
mode:
Diffstat (limited to 'AutoVisual')
-rw-r--r--AutoVisual/IGPFamily.pde1
-rw-r--r--AutoVisual/IGPSquare.pde5
2 files changed, 4 insertions, 2 deletions
diff --git a/AutoVisual/IGPFamily.pde b/AutoVisual/IGPFamily.pde
index eb2ea39..737f57c 100644
--- a/AutoVisual/IGPFamily.pde
+++ b/AutoVisual/IGPFamily.pde
@@ -19,6 +19,7 @@ class IGPFamily {
mid = new PVector(x, y);
diameter = d;
radius = d/2;
+ setVectorsOnAlphaCircle();
println("New IGP object: x="+mid.x+"/ y="+mid.y+"/ diameter="+diameter);
}
diff --git a/AutoVisual/IGPSquare.pde b/AutoVisual/IGPSquare.pde
index bc3cff4..828d4b4 100644
--- a/AutoVisual/IGPSquare.pde
+++ b/AutoVisual/IGPSquare.pde
@@ -5,7 +5,6 @@ class IGPSquare extends IGPFamily {
IGPSquare(float x, float y, float d, int p){
super(x, y, d);
parts = p;
- setVectorsOnAlphaCircle();
setBaseVectorsOnOuterSquare();
setConstructionCircleCenters();
}
@@ -53,7 +52,9 @@ class IGPSquare extends IGPFamily {
}
void createDividingLinesOnOuterSquare(){
- if(parts == 12){
+ if(parts == 4){
+ createDiagonalConstructionLinesOnOuterSquare();
+ }else if(parts == 12){
createLine(twelveBaseVectorsOnOuterSquare.get(0), twelveBaseVectorsOnOuterSquare.get(6));
createLine(twelveBaseVectorsOnOuterSquare.get(1), twelveBaseVectorsOnOuterSquare.get(7));
createLine(twelveBaseVectorsOnOuterSquare.get(2), twelveBaseVectorsOnOuterSquare.get(8));