Re: [Burrtools-discussion] burrtools lib
Brought to you by:
roever
|
From: <M.K...@t-...> - 2009-03-11 11:25:00
|
Hello Thank you for your answer. Now I can compile the development version of the burrtools lib. Therefore, I import the folder /src/lib into a c++ project in eclipse and add a c++ file with a main() function (for example burrtxt.cpp). This works. I'm not able to use ./configure && make to compile because there is no conifgure script and I did not succeed in building this script from configure.ac. wikipedia (http://de.wikipedia.org/wiki/Configure) says that I can try $ autoreconf but this doesn't work in msys: configure.ac:26: required file `admin/compile' not found configure.ac:26: `automake --add-missing' can install `compile' configure.ac:11: required file `admin/config.guess' not found configure.ac:11: `automake --add-missing' can install `config.guess' configure.ac:11: required file `admin/config.sub' not found configure.ac:11: `automake --add-missing' can install `config.sub' configure.ac:17: required file `admin/install-sh' not found configure.ac:17: `automake --add-missing' can install `install-sh' configure.ac:17: required file `admin/missing' not found configure.ac:17: `automake --add-missing' can install `missing' src/Makefile.am: required file `admin/depcomp' not found src/Makefile.am: `automake --add-missing' can install `depcomp' Makefile.am: required file `./INSTALL' not found Makefile.am: `automake --add-missing' can install `INSTALL' Makefile.am: required file `./ChangeLog' not found Makefile.am: required file `./COPYING' not found Makefile.am: `automake --add-missing' can install `COPYING' autoreconf: automake failed with exit status: 1 How can I do this with msys/mingw? In the last mail you mentioned that there is a kind of piecegenerator in the development version. I did not find this, neither in the source files nor in the documentation made with doxygen. Could you please tell me the name of the .h file or the class where I can find the piecegenerator? Thank you for your help. Michael -----Original Message----- Date: Mon, 09 Mar 2009 17:12:21 +0100 Subject: Re: [Burrtools-discussion] burrtools lib From: Andreas <ro...@us...> To: "M.K...@t-..." <M.K...@t-...>, bur...@li... Hello, Please don't use HTML for emails. I tend to immediately remove them due to spam. > I'd like to use the burrtools library to analyze some problems. I have some > questions: > - What ist the difference between the classes voxel_0_c, voxel_1_c, > voxel_2_c and voxel_3_c? Why is it necessary to derive > four different classes from voxel_c? The inherited classes are for the special space grids while the base class contains common functionality. The special code is mainly about transformation (rotation) of the voxel space and also about finding neighbor voxels. The numbers are as follows 0 for brick, 1 for triangular, 2 for spheres, 3 for rhombic, 4 for tetrahedral octahedral grid. Normally you are not supposed to use the constructors directly. If you want a voxel space that fits into a certain puzzle p use p->getGridType()->getVoxel(.....) functions. They will always return the proper derived class. Also you nearly nowhere need to construct the classes directly. Most of the time (well in cases with derived classes) you will use the gridType factory. It contains factory functions for all those hierarchies. > - The piecegenerator that comes with burrtools 0.4.2 is not working for me. > Is somebody working on a piecegenerator which is able to > - calculate pieces by varying the voxels VX_VARIABLE > - build Pentominos, Hexominos, ... ? Sorry, but the release version of 0.4.2 doesn't contain a valid piece generator. In the development version that file is removed. I never got that finished. The development version does contain something that is suitable for constructing some pieces but it works differently. Best would be to download the current development version (using darcs) and look there. There are many (really many) changes in there. The new piece generation functions are documented in the manual, so you can look there, or ask here once you get the development version running. It is certainly possible to generate pentominos and hexominos with it. Andreas |