added fixed interval smoothing

This commit is contained in:
toni
2016-03-17 19:24:45 +01:00
parent 8d2be0f8a0
commit 89bb0b8b7a
17 changed files with 1010 additions and 137 deletions

View File

@@ -27,13 +27,47 @@ class PaperVisGrid {
public:
static void show() {
// the grid
Grid<MyGridNode> grid(40);
// floors
Helper::FHWSFloors floors = Helper::getFloors(grid);
Helper::buildTheGrid(grid, floors);
PaperPlot plot("/tmp/grid.eps", PaperPlot::Size(4,3));
// stairwell low left
{BBox3 bbox;
bbox.add(Point3(1300, 650,160));
bbox.add(Point3(2000,1300,floors.h2.cm()));
plot.debugGrid(grid, bbox, true, true, true);}
plot.addFloor(floors.f1, floors.h1);
plot.addFloor(floors.f2, floors.h2);
plot.gp << "set view 64, 300\n";
plot.gp << "unset cbrange\n";
plot.gp << "unset colorbox\n";
plot.gp << "unset xtics\n";
plot.gp << "unset ytics\n";
plot.gp << "unset ztics\n";
plot.gp << "unset border\n";
plot.gp << "set xrange[1250:2050]\n";
plot.gp << "set yrange[600:1350]\n";
plot.gp << "set hidden3d front\n";
plot.show();
}
static void showStairs() {
// the grid
Grid<MyGridNode> grid(20);
// floors
Helper::FHWSFloors floors = Helper::getFloors();
Helper::FHWSFloors floors = Helper::getFloors(grid);
Helper::buildTheGrid(grid, floors);
// // load the floorplan