| 1 | ===================================== |
|---|
| 2 | Read Me for CGM on OCC |
|---|
| 3 | ===================================== |
|---|
| 4 | |
|---|
| 5 | CGM can be built upon the ACIS solid modeling engine or OCC solid |
|---|
| 6 | modeling engine, but also includes geometry capability developed |
|---|
| 7 | beside and on top of them. |
|---|
| 8 | CGM is supported on Sun Solaris, SGI, HP, Linux and Windows NT |
|---|
| 9 | platforms. CGM also includes support for loading OCC |
|---|
| 10 | models on parallel computers. |
|---|
| 11 | CGM is being released into the public domain under an LGPL license; |
|---|
| 12 | the OCC-based engine is available from Opencascade open source downloads. |
|---|
| 13 | |
|---|
| 14 | ===================================== |
|---|
| 15 | Build OCC-based engine |
|---|
| 16 | ===================================== |
|---|
| 17 | |
|---|
| 18 | Go to http://www.opencascade.org/getocc/download/loadocc/ and get |
|---|
| 19 | desired source files. |
|---|
| 20 | |
|---|
| 21 | Untar the files, then under OpenCASCADE6.3.0/ros directory, to |
|---|
| 22 | autoreconf -fi |
|---|
| 23 | ./configure (Add --prefix=dir for your install directory) |
|---|
| 24 | make |
|---|
| 25 | make install |
|---|
| 26 | |
|---|
| 27 | ===================================== |
|---|
| 28 | Dependencies |
|---|
| 29 | ===================================== |
|---|
| 30 | |
|---|
| 31 | CGM can be built using the CMake utility, which is "an extensible, |
|---|
| 32 | open-source system that manages the build process in an operating |
|---|
| 33 | system and compiler independent manner", or (on *NIX) using a |
|---|
| 34 | configure-make system. Cmake is available under an open source |
|---|
| 35 | license, and can be downloaded in binary or source formats; see |
|---|
| 36 | http://www.cmake.org for details. |
|---|
| 37 | |
|---|
| 38 | ===================================== |
|---|
| 39 | Compiling |
|---|
| 40 | ===================================== |
|---|
| 41 | |
|---|
| 42 | 1. Unpack the source code in some directory CGM_DIR, and change |
|---|
| 43 | directory into CGM_DIR. |
|---|
| 44 | 2a. Run cmake in that directory, using either the non-interactive |
|---|
| 45 | ("cmake .") or interactive ("ccmake .") version, OR |
|---|
| 46 | 2b. Run "./configure" in that directory, optionally specifying where |
|---|
| 47 | ACIS libraries are located and other options (run "./configure -h" for |
|---|
| 48 | a list of options). |
|---|
| 49 | 3. Make the CGM libraries by typing "make". |
|---|
| 50 | 4. Install the CGM libraries by typing "make install" (this installs |
|---|
| 51 | the libraries to the location specified by the --prefix option to |
|---|
| 52 | configure, or to /usr/local by default). |
|---|
| 53 | 5. Test the installation using "make test". |
|---|
| 54 | |
|---|
| 55 | ===================================== |
|---|
| 56 | Documentation, Testing, Example Applications |
|---|
| 57 | ===================================== |
|---|
| 58 | |
|---|
| 59 | Documentation for CGM is available from the CGM web page, |
|---|
| 60 | http://cubit.sandia.gov/CGM. |
|---|
| 61 | |
|---|
| 62 | Example applications are included with the CGM distribution in the |
|---|
| 63 | "test" subdirectory. Examples include importing and querying solid |
|---|
| 64 | model-based geometry, and constructing OCC-based geometry. If you |
|---|
| 65 | are interested in contributing examples to be included with CGM, we |
|---|
| 66 | would welcome submissions; please send them to the email address |
|---|
| 67 | below. |
|---|
| 68 | |
|---|
| 69 | ===================================== |
|---|
| 70 | Bugs, Correspondence, Contributing |
|---|
| 71 | ===================================== |
|---|
| 72 | |
|---|
| 73 | CGM on OCC code is now in alpha testing stage, we encourage users to |
|---|
| 74 | submit bug reports (and, if desired, fixes) to cgma-dev@mcs.anl.gov . |
|---|
| 75 | |
|---|
| 76 | ===================================== |
|---|
| 77 | Updates |
|---|
| 78 | ===================================== |
|---|
| 79 | |
|---|
| 80 | This is the first version of the file |
|---|