source: anuga_core/source/anuga/pmesh/README.txt @ 7616

Last change on this file since 7616 was 4864, checked in by ole, 16 years ago

Some renaming for consistency reasons

File size: 2.1 KB
Line 
1SYSTEM REQUIREMENTS
2 Pmesh requires many bits adn peices from the rest of the ANUGA code.
3 
4 It's system requirements are the same as ANUGA
5
6INSTALLATION COMMANDS
7To compile, do
8        scones
9
10               
11GENERAL RUNNING
12To run all the unit tests;
13        python test_all.py
14       
15To run pmesh;
16        python graphical_mesh_generator.py
17       
18INSTRUCTIONS FOR USING PMESH
19
20Pmesh will let the user select various modes. The current
21allowable modes are vertex or segment.  The mode describes what sort
22of object is added or selected in response to mouse clicks.  When
23changing modes any prior selected objects become deselected.
24
25In general the left mouse button will add an object and the right
26mouse button will select an object.  A selected object can de deleted
27by pressing the the middle mouse button (scroll bar).
28
29NOTES
30I have examples of running triangle in
31 nautilus /home/duncan/MeshGen/triangle_old
32
33CREATING A PMESH EXECUTABLE
34Note, this has not been tried for about 2 years.
35
36There is a package called py2exe which can take a Python script and
37package it up along with any other scripts it imports and a Python
38interpreter into a single .exe. It will also find any DLLs your script
39depends on and copy them too.
40
41The packaging process:
42
43
441)Install py2exe. This only needs to be done once on a machine.
45
462)Make a static version of Pmw. Pmesh uses a package called Pmw which
47normally dynamically loads pieces of itself as needed. This doesn't
48work with py2exe, so we need to fix it. You'll only need to do this
49once; if you make a change to your script and
50repackage you can skip this step.
51
52  cd to c:\python22\lib\site-packages\Pmw\Pmw_1_1\bin. (Assuming python
53  is installed in the default c:\python22; change the paths if you
54  installed Python somewhere else.
55
56  run "python bundlepmw.py
57  c:\python22\lib\site-packages\Pmw\Pmw_1_1\lib". This will create a
58  file called "Pmw.py" in the current directory.
59
60  copy "Pmw.py" to your main script directory.
61
62  copy "..\lib\PmwBlt.py" and "..\lib\PmwColor.py" to your main script
63  directory, too.
64
653) Do the command "python exesetup.py py2exe"  This will create a dist directory with the pmesh executable.
Note: See TracBrowser for help on using the repository browser.