CIBC:Meshing compiling
From NCRR Biomedical Software Development, Engineering, and Dissemination Wiki
Contents |
Getting python
This project requires python. Mac's and many Linux boxes have python preinstalled. If you need to install python on your system, you can obtain it at http://www.python.org/download/
Checking out the Code
svn co https://code.sci.utah.edu/svn/SCIRun/cibc/trunk/SCIRun
Building the Code
cd SCIRun
./build.sh --with-meshing-pipeline
Using the Code
From your SCIRun directory, you can run
src/StandAlone/Apps/FEMesher/scripts/BuildMesh.py --help
will print the usage information.
An example
Example model files have been placed here. For each model, download the NRRD and model_config files onto your system. Edit the model_config.py, changing the top 2 lines to point to full path to the NRRD on your system and the full path to a directory where the mesher can place its output.
To run the mesher:
[path to your SCIRun directory]/src/StandAlone/Apps/FEMesher/scripts/BuildMesh.py [path to your SCIRun directory]/bin/FEMesher/mesher_config.py [path to your model]/model_config.py
Note: The build.sh script above makes an effort to set up the mesher_config.py for you. However, you might wish to check that the values in mesher_config.py above are appropriate for your system.
