| 1 | ===================================== |
|---|
| 2 | The Common Geometry Module (CGM) |
|---|
| 3 | Read Me |
|---|
| 4 | |
|---|
| 5 | Version 10.0 |
|---|
| 6 | ===================================== |
|---|
| 7 | |
|---|
| 8 | The Common Geometry Module (CGM) is a code library which provides |
|---|
| 9 | geometry functionality used for mesh generation and other |
|---|
| 10 | applications. This functionality includes that commonly found in |
|---|
| 11 | solid modeling engines, like geometry creation, query and |
|---|
| 12 | modification; CGM also includes capabilities not commonly found in |
|---|
| 13 | solid modeling engines, like geometry decomposition tools and support |
|---|
| 14 | for shared material interfaces. CGM is built upon the ACIS solid |
|---|
| 15 | modeling engine, but also includes geometry capability developed |
|---|
| 16 | beside and on top of ACIS. CGM can be used as-is to provide geometry |
|---|
| 17 | functionality for codes needing this capability. However, CGM can |
|---|
| 18 | also be extended using derived classes in C++, allowing the geometric |
|---|
| 19 | model to serve as the basis for other applications, for example mesh |
|---|
| 20 | generation. CGM is supported on Sun Solaris, SGI, HP, Linux |
|---|
| 21 | and Windows NT platforms. CGM also includes support for loading ACIS |
|---|
| 22 | models on parallel computers, using MPI-based communication. Future |
|---|
| 23 | plans for CGM are to port it to different solid modeling engines, |
|---|
| 24 | including Pro/Engineer or SolidWorks. CGM is being released into the |
|---|
| 25 | public domain under an LGPL license; the ACIS-based engine is |
|---|
| 26 | available to ACIS licensees on request. |
|---|
| 27 | |
|---|
| 28 | ===================================== |
|---|
| 29 | Dependencies |
|---|
| 30 | ===================================== |
|---|
| 31 | |
|---|
| 32 | CGM can be built using the CMake utility, which is "an extensible, |
|---|
| 33 | open-source system that manages the build process in an operating |
|---|
| 34 | system and compiler independent manner", or (on *NIX) using a |
|---|
| 35 | configure-make system. Cmake is available under an open source |
|---|
| 36 | license, and can be downloaded in binary or source formats; see |
|---|
| 37 | http://www.cmake.org for details. |
|---|
| 38 | |
|---|
| 39 | CGM can be built without using any external solid modeling engines; in |
|---|
| 40 | this form, facet-based geometry can be constructed, queried and |
|---|
| 41 | modified. Specific engines relying on third-party, commercial |
|---|
| 42 | modelers are also available, to those licensed to use those modelers. |
|---|
| 43 | Contact the CUBIT team at cubit-dev_at_sandia.gov for details and to |
|---|
| 44 | obtain source code for these engines. |
|---|
| 45 | |
|---|
| 46 | ===================================== |
|---|
| 47 | Compiling |
|---|
| 48 | ===================================== |
|---|
| 49 | |
|---|
| 50 | 1. Unpack the source code in some directory CGM_DIR, and change |
|---|
| 51 | directory into CGM_DIR. |
|---|
| 52 | 2a. Run cmake in that directory, using either the non-interactive |
|---|
| 53 | ("cmake .") or interactive ("ccmake .") version, OR |
|---|
| 54 | 2b. Run "./configure" in that directory, optionally specifying where |
|---|
| 55 | ACIS libraries are located and other options (run "./configure -h" for |
|---|
| 56 | a list of options). |
|---|
| 57 | 3. Make the CGM libraries by typing "make". |
|---|
| 58 | 4. Install the CGM libraries by typing "make install" (this installs |
|---|
| 59 | the libraries to the location specified by the --prefix option to |
|---|
| 60 | configure, or to /usr/local by default). |
|---|
| 61 | 5. Test the installation using "make test". |
|---|
| 62 | |
|---|
| 63 | ===================================== |
|---|
| 64 | Documentation, Testing, Example Applications |
|---|
| 65 | ===================================== |
|---|
| 66 | |
|---|
| 67 | Documentation for CGM is available from the CGM web page, |
|---|
| 68 | http://cubit.sandia.gov/CGM. |
|---|
| 69 | |
|---|
| 70 | Example applications are included with the CGM distribution in the |
|---|
| 71 | cgm_apps subdirectory. Examples include importing and querying solid |
|---|
| 72 | model-based geometry, and constructing facet-based geometry. If you |
|---|
| 73 | are interested in contributing examples to be included with CGM, we |
|---|
| 74 | would welcome submissions; please send them to the email address |
|---|
| 75 | below. |
|---|
| 76 | |
|---|
| 77 | The best example for how to build applications is to look in the |
|---|
| 78 | cgm_apps/examples/facetdriver (without ACIS) and |
|---|
| 79 | cgm_apps/examples/driverc++ (with ACIS) subdirectories. |
|---|
| 80 | |
|---|
| 81 | ===================================== |
|---|
| 82 | Bugs, Correspondence, Contributing |
|---|
| 83 | ===================================== |
|---|
| 84 | |
|---|
| 85 | CGM is LGPL code, and we encourage users to submit bug reports (and, |
|---|
| 86 | if desired, fixes) to cubit-dev_at_sandia.gov. Users are encouraged to check |
|---|
| 87 | http://cubit.sandia.gov/CGM often for news and updates. |
|---|
| 88 | |
|---|
| 89 | ===================================== |
|---|
| 90 | Updates |
|---|
| 91 | ===================================== |
|---|
| 92 | |
|---|
| 93 | 10.0 (4/05): Initial public CGM release |
|---|