added missing code-changes (mainly eval)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user