projects
/
flatland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c2a7c7d
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Wed, 1 Mar 2017 15:02:38 +0000
(16:02 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 1 Mar 2017 15:02:38 +0000
(16:02 +0100)
flatland.cc
patch
|
blob
|
history
diff --git
a/flatland.cc
b/flatland.cc
index
abfc644
..
6e6b747
100644
(file)
--- a/
flatland.cc
+++ b/
flatland.cc
@@
-39,20
+39,6
@@
using namespace std;
#include "universe.h"
#include "canvas_cairo.h"
#include "universe.h"
#include "canvas_cairo.h"
-FILE *safe_fopen(const char *name, const char *mode) {
- FILE *file = fopen(name, mode);
- if(!file) {
- cerr << "Cannot open " << name << endl;
- exit(1);
- }
- return file;
-}
-
-void print_help(const char *command) {
- cerr << command << " <nb sequences to generate> [--dir <dir>] [--seed <seed>]]" << endl;
- exit(1);
-}
-
//////////////////////////////////////////////////////////////////////
void draw_universe_on_canvas(CanvasCairo *canvas, scalar_t scaling,
//////////////////////////////////////////////////////////////////////
void draw_universe_on_canvas(CanvasCairo *canvas, scalar_t scaling,
@@
-103,8
+89,6
@@
extern "C" void fl_generate_sequences(int nb_sequences,
int random_grasp = 1;
int random_shape_size = 0;
int nb_shapes = 10;
int random_grasp = 1;
int random_shape_size = 0;
int nb_shapes = 10;
- // char data_dir[1024] = "/tmp/";
- // int show_grabbing_point = 0;
int skip = -1;
for(int n = 0; n < nb_sequences; n++) {
int skip = -1;
for(int n = 0; n < nb_sequences; n++) {