class Polygons{
Polygon[] polygons;
Polygons(){
polygons=new Polygon[0];
}
void addPolygon(Polygon p){
polygons=(Polygon[])(append(polygons,p));
}
void show(){
for (int i=0;i<polygons.length;i++){
polygons[i].show();
}
}
void showRegular(int nCorners){ // polynoms with nCorners
for (int i=0;i<polygons.length;i++){
polygons[i].showRegular(nCorners);
}
}
void showRhomb(float angle){ //rhombs with given angle
float cosAngle=cos(angle);
println(cosAngle);
for (int i=0;i<polygons.length;i++){
polygons[i].showRhomb(cosAngle);
}
}
void createDualPoints(Points dualPoints,Lines dualLines){
for (int i=0;i<polygons.length;i++){
polygons[i].createDualPoint(dualPoints,dualLines);
}
}
}

### Like this:

Like Loading...

*Related*