5 Copyright (C) 2014-2015 OPEN CASCADE
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 See http://www.salome-platform.org or email : webmaster.salome@opencascade.com
27 This is an implementation of OCCT Canonical recognition (CANREC) interface
28 to be used as plugin for SALOME Geometry module. It provides functionality
29 to convert, if possible, a NURBS geometry (B-Spline / Bezier curve or surface)
30 to its analytical form (primitive curve or surface).
31 Please visit http://www.opencascade.org/support/products/canrec/ for more details
32 about OCCT Canonical recognition component.
38 See the INSTALL file for more information.
44 1. Set environment (DO NOT FORGET to correct path)
46 * Set CANRECPLUGIN_ROOT_DIR variable that should point to the CANREC plugin
47 installation directory. It is required for SALOME Geometry module to
48 automatically detect a plugin (see APPENDIX below). For example:
52 % setenv CANRECPLUGIN_ROOT_DIR /path/to/the/CANRECPLUGIN
56 % export CANRECPLUGIN_ROOT_DIR=/path/to/the/CANRECPLUGIN
58 * Set LD_LIBRARY_PATH variable to point to the OCCT Canonical
59 recognition product libraries, for example:
63 % setenv CR_ROOT_DIR /path/to/the/CR-6.9.0
64 % setenv LD_LIBRARY_PATH ${CR_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
68 % export CR_ROOT_DIR=/path/to/the/CR-6.9.0
69 % export LD_LIBRARY_PATH=${CR_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
71 * OCCT Canonical recognition product requires also an OCCT license
72 library. Normally OCCT license library is distributed with OCCT CR
73 product, but it can also be distributed separately. In latter
74 case you might need to set-up environment to point to the OCCT
75 license library, as follows:
79 % setenv OCCLICENSE_ROOT_DIR /path/to/the/OCCLicense-6.9.0
80 % setenv LD_LIBRARY_PATH ${OCCLICENSE_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
84 % export OCCLICENSE_ROOT_DIR=/path/to/the/OCCLicense-6.9.0
85 % export LD_LIBRARY_PATH=${OCCLICENSE_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
89 * Run SALOME and activate Geometry module.
91 * Invoke Canonical Recognition operation
93 Menu New Entity - Advanced - Canonical Recognition
95 In the "Canonical Recognition Construction" dialog box specify input shape,
96 tolerance value and, optionally, switch on/off "Merge surfaces" and "Merge curves"
97 check boxes. Press "Apply" or "Apply and Close' button to start canonical recognition
99 The result of the operation will be published in the study.
105 Please, send a mail to webmaster.salome@opencascade.com
111 Since SALOME version 7.4.0, Geometry module implements a mechanism to
112 automatically detect plugins. To set-up the plug-in to SALOME Geometry
113 module, it is just necessary to set CANRECPLUGIN_ROOT_DIR environment
114 variable to point to the installation directory of CANREC plugin as described
115 in paragraph "Usage" above.
117 SALOME CANREC plugin supports SALOME 7.6.0 and newer.