Salome HOME
Migrate to SALOME 5.x and automake
authorvsr <vsr@opencascade.com>
Thu, 28 Aug 2008 11:54:43 +0000 (11:54 +0000)
committervsr <vsr@opencascade.com>
Thu, 28 Aug 2008 11:54:43 +0000 (11:54 +0000)
41 files changed:
AUTHORS
BLSURFPLUGIN_version.h.in
ChangeLog
INSTALL
Makefile.am
NEWS
README
SalomeApprc.3.2.4 [deleted file]
adm_local/Makefile.am
adm_local/unix/Makefile.am
adm_local/unix/config_files/Makefile.am
adm_local/unix/config_files/check_BLSURF.m4
adm_local/unix/config_files/check_BLSURFPLUGIN.m4
adm_local/unix/make_common_starter.am
bin/Makefile.am
build_configure
clean_configure
configure.ac
env_BLSURFplugin-Src.sh [deleted file]
env_blsurf.sh [deleted file]
idl/BLSURFPlugin_Algorithm.idl
idl/Makefile.am
resources/Makefile.am
resources/SalomeApp.xml [new file with mode: 0644]
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx
src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx
src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.cxx
src/BLSURFPlugin/BLSURFPlugin_BLSURF_i.hxx
src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx
src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx
src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx
src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.hxx
src/BLSURFPlugin/BLSURFPlugin_i.cxx
src/BLSURFPlugin/Makefile.am
src/BLSURFPlugin/cad_occ.cxx [deleted file]
src/BLSURFPlugin/cad_occ.h [deleted file]
src/GUI/BLSURFPluginGUI.cxx
src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx
src/GUI/BLSURFPluginGUI_HypothesisCreator.h
src/GUI/Makefile.am
src/Makefile.am

diff --git a/AUTHORS b/AUTHORS
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..8173fb71483e5ce469096015a773ea9b6df99292 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -0,0 +1,55 @@
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# ---
+#
+# File   : AUTHORS
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
+#
+# ---
+#
+# The format of this file was inspired by the Linux kernel CREDITS file.
+#
+# Authors and contributors are listed alphabetically.
+#
+# The fields are: name (N), email (E), web-address (W), CVS account login (C),
+# PGP key ID and fingerprint (P), description (D), and snail-mail address (S).
+#
+# ---
+
+N: Francis KLOSS, Open CASCADE S.A.S
+E: francis.kloss@opencascade.com
+D: Initial development
+
+N: Lioka RAZAFINDRAZAKA, CEA
+E: lioka.razafindrazaka@cea.fr
+D: Initial development
+
+N: Patrick LAUG, INRIA
+D: Initial development
+
+N: Aurelien ALLEAUME, DISTENE
+D: Initial development
+
+N: Edward AGAPOV, Open CASCADE S.A.S
+E: edward.agapov@opencascade.com
+D: Debug, improve meshing algorithms
+
+N: Vadim SANDLER, Open CASCADE S.A.S
+E: vadim.sandler@opencascade.com
+D: Porting to automake, porting to SALOME series 5x
index ee5d1d46ff9f26124a9976cf688d3cb65129e08f..8a4d18b85f3f0772a2a128e3148674d3ef5b1d8e 100644 (file)
@@ -1,25 +1,27 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
+//
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
+// License as published by the Free Software Foundation; either
 // version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 // Lesser General Public License for more details.
 //
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File   : BLSURFPLUGIN_version.h
+// Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 //
-//  File   : BLSURFPLUGIN_version.h
-//  Author : Vadim SANDLER
-//  Module : SALOME
+// ---
 
 #if !defined(__BLSURFPLUGIN_VERSION_H__)
 #define __BLSURFPLUGIN_VERSION_H__
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ca38f417a1af96eb523e71711b155c910a85dac9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -0,0 +1,44 @@
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# ---
+#
+# File   : ChangeLog
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
+#
+# ---
+#
+# Changes are listed by modification time in the descending order,
+# i.e. newer changes are listed at the top of the file.
+#
+# Each record lists the modification date, author and short description of
+# the made changes.
+#
+# ---
+
+2008-08-26 Vadim SANDLER
+
+    * Porting to automake, porting to SALOME series 5x
+
+2007-2008 Edward AGAPOV
+
+    * Debug, improve meshing algorithms
+
+2006 Francis KLOSS, Lioka RAZAFINDRAZAKA, Patrick LAUG, Aurelien ALLEAUME
+
+    * Initial development
diff --git a/INSTALL b/INSTALL
index f893bb62b88770817d13a39bc862f062219541a8..9c9abf944cbe573a98a4ac3b83598bf6298f89ea 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -1 +1,29 @@
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# ---
+#
+# File   : INSTALL
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
+#
+# ---
+
 SALOME2 : BLSURFPLUGIN module (SMESH plugin)
+
+For installation instructions and other information, please refer to
+the README file.
index 1bb0efca125da179d02fce391053ad1f2e50f9bf..3e45b52019a69b9355881aca886639ad3b18976a 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
diff --git a/NEWS b/NEWS
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..6a0b1eb2647b79da5e3da220a3a150529febf69c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -0,0 +1,29 @@
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# ---
+#
+# File   : NEWS
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
+#
+# ---
+#
+# Changes are listed by modification time in the descending order,
+# i.e. newer changes are listed at the top of the file.
+#
+# ---
diff --git a/README b/README
index 702784fb956530a06748f77862a686c0a87c40f7..dd2c657030293d605e69d1ff2a4d02bd3768a6dc 100644 (file)
--- a/README
+++ b/README
-1) Hypothèses
-   ----------
+SALOME platform
+BLSURF meshing plugin
+------------------------------
 
-a) Une version de SALOME est installée dans le répertoire : <salome>
+Contents:
 
-b) Le produit BLSURF est installé dans le répertoire <salome>/BLSurf
+1. Pre-requisites
+2. Installation
+3. Launch SALOME with BLSURFPLUGIN
+4. BLSURFPLUGIN plugin usage
 
-c) Le produit "decimesh" doit Ãªtre dans la variable d'environnement PATH
+-----------------
+1. Pre-requisites
+-----------------
 
-2) tgz
-   ---
+The information in this file assumes that:
+
+* The SALOME platform is installed to the directory <salome>
+* The blsurf product is installed to the directory <salome>/blsurf
+* The decimesh binary is vaiable via environment variable PATH
+
+---------------
+2. Installation
+---------------
+
+2.1. Unpack BLSURFPLUGIN module sources
 
 cd <salome>
 tar zxf BLSURFPLUGIN_SRC.tgz
 
-3) Construire le plugin BLSURF
-   ---------------------------
+2.2. Build BLSURFPLUGIN module
+
+* set environment 
 
 bash
 cd <salome>
 source env_build.sh
-source BLSURFPLUGIN_SRC_3.2.4/env_blsurf.sh
+export BLSURFHOME=<salome>/blsurf
 
-cd BLSURFPLUGIN_SRC_3.2.4
+Note: you can avoid setting BLSURFHOME environment variable but use
+--with-blsurf key of configure script instead.
+
+* configure build system
+
+cd BLSURFPLUGIN_SRC
 ./build_configure
 
 cd ..
 mkdir BLSURFPLUGIN_BUILD
-mkdir BLSURFPLUGIN_INSTALL
 cd BLSURFPLUGIN_BUILD
-../BLSURFPLUGIN_SRC_3.2.4/configure --prefix=<salome>/BLSURFPLUGIN_INSTALL
+../BLSURFPLUGIN_SRC/configure --prefix=<salome>/BLSURFPLUGIN_INSTALL
+
+Note: you can use --with-blsurf option to pass the root directory of
+blsurf product to the confogure script. In this case you can avoid
+setting BLSURFHOME environment variable. Try 'configure --help'
+command to learn more about available configure script options.
+
+Check "Summary" area in the log output of the configure script to
+verify that all pre-requisites required for the successful compilation
+of BLSURFPLUFIN module have been found. All pre-requisite products
+should have status "yes". If any product has status "no", the
+compilation procedure will fail.
 
-# Dans les traces chercher la rubrique "Summary",
-# et vérifier que toutes les réponses sont Ã  yes.
-# S'il y a au moins 1 "no", il faut résoudre cela avant de poursuivre.
+* compile and install plugin module 
 
 make
 make install
 
 exit
 
-4) Lancer SALOME avec BLSURF
-   -------------------------
+If the compilation is finished successfully (make and make install
+steps are finished without errors) the BLSURFPLUGIN meshing module
+should be installed in the directory <salome>/BLSURFPLUGIN_INSTALL.
 
-bash
-cd <salome>
+----------------------------------
+3. Launch SALOME with BLSURFPLUGIN
+----------------------------------
 
-cp BLSURFPLUGIN_SRC_3.2.4/SalomeApprc.3.2.4  ~/.SalomeApprc.<version de salome>
-# Cette copie est Ã  faire une fois
+* set environment
 
+bash
+cd <salome>
 source env_products.sh
-source BLSURFPLUGIN_SRC_3.2.4/env_blsurf.sh
 
-runSalome
+export BLSURFPLUGIN_ROOT_DIR=<salome>/BLSURFPLUGIN_INSTALL
+export SalomeAppConfig=${BLSURFPLUGIN_ROOT_DIR}/share/salome/resources/blsurfplugin
+export DISTENE_LICENSE_FILE=<salome>/dlim8.key
+
+Note: DISTENE_LICENSE_FILE environment variable should point to the
+blsurf product license file.
 
-5) Session interactive
-   -------------------
+* run SALOME
 
-a) Aller dans le module de géométrie et construire une figure simple
+runSalome
 
-b) Aller dans le module de maillage
+----------------------------
+4. BLSURFPLUGIN plugin usage
+----------------------------
 
-c) Aller dans le menu de création d'un maillage
+* Create new study
 
-d) Choisir la figure simple comme géométrie Ã  mailler
+* Activate Geometry module and create simple geometry object
 
-e) Aller dans l'onglet 2D
+* Activate Mesh module
 
-f) Choisir BLSURF
+* Invoke menu "Mesh/Create Mesh"
 
-g) Cliquer dans le bouton parametre, une boite de dialogue apparait, cette boite n'est pas terminée.
-   Seul la case Ã  cocher "optimize" est signifiante:
-   - décochée: uniquement BLSURF
-   - cochée  : BLSURF + decimesh
+* Select previously created geometry object by clicking it with the
+mouse in the Object Browser
 
-h) Cliquer OK
+* In the "Create mesh" dialog box:
+- activate "2D" page
+- In the "Algorithm" combo box select "BLSURF"
+- Click on the button at the right of the "Hypothesis" combo box and
+select "BLSURF parameters" item in the drop-down menu
 
-i) Aller dans le menu de maillage et lancer l'item "Compute"
+* In the "Hypothesis Construction" dialog box set parameters of BLSURF
+  meshing algorithm and click "OK" button
 
-j) Résultat: un maillage créer par BLSURF et visualiser dans SALOME
+* In the "Create mesh" dialog box Click "Apply & Close" button to
+  define mesh and close the dialog box
 
-k) Pour paramétrer BLSURF: il faut pour l'instant créer un fichier blsurf.env dans le répertoire de lancement de SALOME
+* In the Object Browser select "Mesh_1" object, invoke context popup
+menu for it by clicking right mouse button and select "Compute" item
 
-l) fin
+The resulting mesh created with BLSURF plugin will be shown in the 3D
+viewer.
diff --git a/SalomeApprc.3.2.4 b/SalomeApprc.3.2.4
deleted file mode 100644 (file)
index d748e5b..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-<!DOCTYPE document>
-<document>
- <section name="ExternalBrowser" >
-  <parameter value="" name="parameters" />
-  <parameter value="/usr/bin/mozilla" name="application" />
- </section>
- <section name="FileDlg" >
-  <parameter value="/home/kloss/CEA/IOLS/Beton;/export/home/kloss/Salome_3.2.4/SAMPLES_SRC_3.2.4" name="QuickDirList" />
- </section>
- <section name="Geometry" >
-  <parameter value="1" name="display_mode" />
- </section>
- <section name="OCCViewer" >
-  <parameter value="35, 136, 145" name="background" />
-  <parameter value="100" name="trihedron_size" />
-  <parameter value="0" name="iso_number_u" />
-  <parameter value="0" name="iso_number_v" />
- </section>
- <section name="ObjectBrowser" >
-  <parameter value="false" name="auto_size" />
-  <parameter value="true" name="auto_size_first" />
-  <parameter value="true" name="visibility_column_0" />
-  <parameter value="false" name="visibility_column_1" />
-  <parameter value="false" name="visibility_column_2" />
-  <parameter value="false" name="visibility_column_3" />
- </section>
- <section name="Plot2d" >
-  <parameter value="255, 255, 255" name="Background" />
-  <parameter value="1" name="CurveType" />
-  <parameter value="0" name="HorScaleMode" />
-  <parameter value="1" name="LegendPos" />
-  <parameter value="9" name="MarkerSize" />
-  <parameter value="true" name="ShowLegend" />
-  <parameter value="0" name="VerScaleMode" />
- </section>
- <section name="PyConsole" >
-  <parameter value="Helvetic;Helvetica;Helvetica[Adobe];Times;Times[Adobe];Sans Serif;Serif;Monospace;Lucida" name="additional_families" />
-  <parameter value="Helvetica,12" name="font" />
- </section>
- <section name="SMESH" >
-  <parameter value="NETGENPlugin,GHS3DPlugin,HexoticPLUGIN,BLSURFPlugin" name="plugins" />
- </section>
- <section name="SUPERVGraph" >
-  <parameter value="144, 208, 211" name="Background" />
-  <parameter value="63, 213, 255" name="Title" />
-  <parameter value="255, 249, 147" name="NodeBody" />
- </section>
- <section name="Study" >
-  <parameter value="false" name="multi_file" />
-  <parameter value="false" name="ascii_file" />
-  <parameter value="false" name="store_positions" />
-  <parameter value="false" name="store_visual_state" />
- </section>
- <section name="VISU" >
-  <parameter value="2" name="scalar_bar_position_num" />
- </section>
- <section name="VTKViewer" >
-  <parameter value="0, 0, 0" name="background" />
-  <parameter value="105" name="trihedron_size" />
-  <parameter value="true" name="relative_size" />
- </section>
- <section name="desktop" >
-  <parameter value="0" name="pos_x" />
-  <parameter value="0" name="pos_y" />
-  <parameter value="1270" name="width" />
-  <parameter value="944" name="height" />
-  <parameter value="2" name="state" />
- </section>
- <section name="language" >
-  <parameter value="en" name="language" />
-  <parameter value="%P_msg_%L.qm|%PM_msg_%L.qm|%P_icons.qm|%P_images.qm|%PM_images.qm" name="translators" />
- </section>
- <section name="launch" >
-  <parameter value="yes" name="gui" />
-  <parameter value="yes" name="splash" />
-  <parameter value="no" name="file" />
-  <parameter value="no" name="key" />
-  <parameter value="no" name="interp" />
-  <parameter value="no" name="logger" />
-  <parameter value="no" name="xterm" />
-  <parameter value="no" name="portkill" />
-  <parameter value="no" name="killall" />
-  <parameter value="no" name="noexcepthandler" />
-  <parameter value="GEOM,SMESH,VISU,SUPERV,MED,COMPONENT,PYCALCULATOR" name="modules" />
-  <parameter value="" name="pyModules" />
-  <parameter value="SalomeAppEngine,study,cppContainer,registry,moduleCatalog" name="embedded" />
-  <parameter value="pyContainer,supervContainer" name="standalone" />
- </section>
- <section name="resources" >
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="SUIT" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="STD" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="Plot2d" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="SPlot2d" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="GLViewer" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="OCCViewer" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="VTKViewer" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="SVTK" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="LightApp" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="SalomeApp" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="OB" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="CAM" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="SUPERVGraph" />
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui" name="ToolsGUI" />
-  <parameter value="${NETGENPLUGIN_ROOT_DIR}/share/salome/resources/netgenplugin" name="NETGENPlugin" />
-  <parameter value="${GHS3DPLUGIN_ROOT_DIR}/share/salome/resources/ghs3dplugin" name="GHS3DPlugin" />
-  <parameter value="${HexoticPLUGIN_ROOT_DIR}/share/salome/resources" name="HexoticPLUGIN" />
-  <parameter value="${BLSURFPLUGIN_ROOT_DIR}/share/salome/resources" name="BLSURFPlugin" />
- </section>
- <section name="splash" >
-  <parameter value="${GUI_ROOT_DIR}/share/salome/resources/gui/icon_about.png" name="image" />
-  <parameter value="%V" name="info" />
-  <parameter value="#543AA9|#FFFFFF" name="text_colors" />
-  <parameter value="#0A4E5F|#B2EFED|1" name="progress_colors" />
- </section>
-</document>
index ca6b859993f20f592e912c71b8e39523e1cd4500..c18e0253f13efef192a87f9d40957194d6ac6dd4 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
index 1952c504b216673267014646196fecfcfe77414d..4886ae245e4beaa09c37392b37ba0b479968762c 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
index e1e7a8f5e3da8e00d4b83d6c2f942fdab547f7b7..2c0cc189b5b9125525a2959a2b2ca9191b7c4297 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2006  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,8 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
-# Author: Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
index cc0bdf9a899e289705b628d790c5fd06eb36ef78..f6286773e21034702d98490e4a4b4efca884e251 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2006  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,8 +18,8 @@
 #
 # ---
 #
-# File:   check_BLSURF.m4
-# Author: Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
+# File   : check_BLSURF.m4
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
index efa51f221ba6d5c8c23cef68dde3d4072683844b..2edbf82d2ea05357b43e6800f88834d990427122 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2006  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,8 +18,8 @@
 #
 # ---
 #
-# File:   check_BLSURFPLUGIN.m4
-# Author: Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
+# File   : check_BLSURFPLUGIN.m4
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
index c6e076e41b406d1200039f328ffdfe553e860742..5373119a34d5270d4dacfe4dd76c25f9e1054544 100644 (file)
@@ -1,3 +1,27 @@
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# ---
+#
+# File   : make_common_starter.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
+#
+# ---
 #
 # ============================================================
 # This file defines the common definitions used in several
index 8b27521ca991e408e560e6f1f6dbe47423813bc8..16ef43e53474204847cff1b362b7db33d144c871 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
index 38c269b279e4ebef1bb01e4dd0df93e523ca3fb1..9872076a8c0e2de9fd02bb5273df8a9110d17501 100755 (executable)
@@ -1,12 +1,29 @@
 #!/bin/bash
 
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
-# Tool for updating list of .in file for the SALOME project 
-# and regenerating configure script
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
 #
-# Author : Marc Tajchman - CEA
-# Date : 10/10/2002
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
 #
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# ---
+#
+# File   : build_configure
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
+#
+# ---
 
 ORIG_DIR=`pwd`
 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
index be0b5427f39955a0e5a4704b1b5c9b22605fde78..8aacf2240887fba838fe9ff54c313d5325b5885b 100755 (executable)
@@ -1,10 +1,35 @@
-#!/bin/sh
+#!/bin/bash
+
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# ---
+#
+# File   : clean_configure
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
+#
+# ---
 
 rm -rf autom4te.cache aclocal.m4 configure make_config
 find . -name "*~" -print -exec rm {} \;
 find . -name "*.pyc" -print -exec rm {} \;
-#exit
-# ==================== ON SORT AVANT
+
+# ... 
 
 find bin -name Makefile.in | xargs rm -f
 find doc -name Makefile.in | xargs rm -f
index e56e9d272912d1302aae7378e415bb1bafa0683a..aa5efbfa0945bd23e24f16be929995384b30c585 100644 (file)
@@ -1,21 +1,29 @@
+#!/bin/bash
+
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
-#  PLEASE DO NOT MODIFY configure.in FILE
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
 #
-#  ALL CHANGES WILL BE DISCARDED BY THE NEXT
-#  build_configure COMMAND
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
 #
-#  CHANGES MUST BE MADE IN configure.in.base FILE
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 #
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-# Author : Marc Tajchman (CEA)
-# Date : 28/06/2001
-# Modified by : Patrick GOLDBRONN (CEA)
-# Modified by : Marc Tajchman (CEA)
-# 13/03/2007: Alexander BORODIN - OCN
-# Reorganization for usage of autotools
+# ---
 #
-# Created from configure.in.base
+# File   : configure.ac
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
+# ---
 
 AC_INIT([Salome2 Project BLSURFPLUGIN module], [5.0.0], [webmaster.salome@opencascade.com], [salome])
 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
diff --git a/env_BLSURFplugin-Src.sh b/env_BLSURFplugin-Src.sh
deleted file mode 100644 (file)
index 27dcce6..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#------ BLSURFplugin-Src ------
-export BLSURFPLUGIN_SRC_DIR=${INSTALL_ROOT}/BLSURFPLUGIN_SRC
-##
diff --git a/env_blsurf.sh b/env_blsurf.sh
deleted file mode 100644 (file)
index 8f41511..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#------ Licence Distene ------
-export DISTENE_LICENSE_FILE=${INSTALL_ROOT}/dlim8.key
-##
-#------ BLSURF ------
-export BLSURFHOME=${INSTALL_ROOT/BLSurf
-##
-#------ BLSURFplugin-Src ------
-export BLSURFPLUGIN_SRC_DIR=${INSTALL_ROOT}/BLSURFPLUGIN_SRC_3.2.4
-##
-#------ BLSURFplugin-Bin ------
-export BLSURFPLUGIN_ROOT_DIR=${INSTALL_ROOT}/BLSURFPLUGIN_INSTALL
-if [ -n "${ENV_FOR_LAUNCH}" ] ; then
-  if [ "${ENV_FOR_LAUNCH}" == "1" ] ; then
-    exportp LD_LIBRARY_PATH ${BLSURFPLUGIN_ROOT_DIR}/lib/salome:${BLSURFHOME}/lib
-    exportp PYTHONPATH ${BLSURFPLUGIN_ROOT_DIR}/lib64/salome:${BLSURFPLUGIN_ROOT_DIR}/lib64/python${PYTHON_VERSION}/site-packages/salome
-  fi
-fi
-##
index e81d57d9ab0ebd2270326fd823b710d56366b1df..e1c712477b62ba6350bd5980c0297cdcaf11b321 100644 (file)
@@ -1,26 +1,27 @@
-//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  File    : BLSURFPlugin_Algorithm.idl
-//  Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPlugin_Algorithm.idl
+// Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
+//
+// ---
 
 #ifndef _SMESH_BLSURFALGORITHM_IDL_
 #define _SMESH_BLSURFALGORITHM_IDL_
index 2e912dd5f3a698f40e5d21501f17fb0d8b5fd0aa..54b7b252ab99e75518ca59b6ca2f0ea14474cdf4 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
index 36ceb8fd49eace99ad98fac44ec1f59e50f4f327..2b069c81f31902d4cd222e19e81de65817b539ee 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
@@ -31,4 +31,5 @@ dist_salomeres_DATA =                 \
        mesh_hypo_BLSURF.png            \
        mesh_tree_algo_BLSURF.png       \
        mesh_tree_hypo_BLSURF.png       \
-       BLSURFPlugin.xml
+       BLSURFPlugin.xml                \
+       SalomeApp.xml
diff --git a/resources/SalomeApp.xml b/resources/SalomeApp.xml
new file mode 100644 (file)
index 0000000..57207bb
--- /dev/null
@@ -0,0 +1,9 @@
+<document>
+  <section name="resources">
+    <parameter name="BLSURFPlugin" value="${BLSURFPLUGIN_ROOT_DIR}/share/salome/resources/blsurfplugin"/>
+  </section>
+  <section name="SMESH">
+    <!-- Default SMESH module plugins -->
+    <parameter name="plugins" value="NETGENPlugin,GHS3DPlugin,BLSURFPlugin"/>
+  </section>
+</document>
index 04b02b0a87b1885571076f0fd03c43d3086a39fe..ad24b167589e795695d5ef7f5900f2b93e9f948b 100644 (file)
@@ -1,31 +1,28 @@
-//  BLSURFPlugin : C++ implementation
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
 //
 // File    : BLSURFPlugin_BLSURF.cxx
 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
 //           & Aurelien ALLEAUME (DISTENE)
-// Date    : 20/03/2006
-// Project : SALOME
-//=============================================================================
-using namespace std;
+//
+// ---
 
 #include "BLSURFPlugin_BLSURF.hxx"
 #include "BLSURFPlugin_Hypothesis.hxx"
index 1c57ba1abe8647fc1e7124654c68b99601fab77f..4ae8163c8b444fa13b93da4a99f511f6f895a5ed 100644 (file)
@@ -1,30 +1,28 @@
-//  BLSURFPlugin : C++ implementation
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-// File      : BLSURFPlugin_BLSURF.hxx
-// Authors   : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
-//             & Aurelien ALLEAUME (DISTENE)
-// Date      : 20/03/2006
-// Project   : SALOME
-//=============================================================================
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPlugin_BLSURF.hxx
+// Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
+//           & Aurelien ALLEAUME (DISTENE)
+//
+// ---
 
 #ifndef _BLSURFPlugin_BLSURF_HXX_
 #define _BLSURFPlugin_BLSURF_HXX_
@@ -59,16 +57,6 @@ class BLSURFPlugin_BLSURF: public SMESH_2D_Algo {
 
   protected:
     const BLSURFPlugin_Hypothesis* _hypothesis;
-
-//   private:
-//     int    _topology;
-//     int    _physicalMesh;
-//     double _phySize;
-//     int    _geometricMesh;
-//     double _angleMeshS;
-//     double _gradation;
-//     bool   _quadAllowed;
-//     bool   _decimesh;
 };
 
 #endif
index f8d2cfcad0aa181a53589136bffe4999a95ff2bd..11c15e11ae823e353bd498600faa679d5007c67b 100644 (file)
@@ -1,29 +1,28 @@
-//  BLSURFPlugin : idl implementation
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  File    : BLSURFPlugin_BLSURF_i.cxx
-//  Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA)
-//  Module  : BLSURFPlugin
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPlugin_BLSURF_i.cxx
+// Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA)
+//
+// ---
 
-using namespace std;
 #include "BLSURFPlugin_BLSURF_i.hxx"
 #include "SMESH_Gen.hxx"
 
index d0784682f8e20388befd79eb16a57e18b1143b80..46ba6ce945c1b571619a56a5dd9319ed285ff2b1 100644 (file)
@@ -1,27 +1,27 @@
-//  BLSURFPlugin : idl implementation
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  File    : BLSURFPlugin_BLSURF_2D_i.hxx
-//  Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA)
-//  Module  : BLSURFPlugin
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPlugin_BLSURF_i.hxx
+// Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA)
+//
+// ---
 
 #ifndef _BLSURFPlugin_BLSURF_I_HXX_
 #define _BLSURFPlugin_BLSURF_I_HXX_
index 24b4df8922cc4e3c3b0eab60d3f12f6348139a72..2fdf3be1780955cc5b13b88077140da8ff73a9ac 100644 (file)
@@ -1,32 +1,29 @@
-//  BLSURFPlugin : C++ implementation
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-// File      : BLSURFPlugin_Hypothesis.cxx
-// Authors   : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
-//             & Aurelien ALLEAUME (DISTENE)
-// Date      : 28/03/2006
-// Project   : SALOME
-//=============================================================================
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPlugin_Hypothesis.cxx
+// Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
+//           & Aurelien ALLEAUME (DISTENE)
+//
+// ---
 
-using namespace std;
 #include <BLSURFPlugin_Hypothesis.hxx>
 #include <utilities.h>
 
@@ -267,13 +264,13 @@ void BLSURFPlugin_Hypothesis::SetVerbosity(int theVal)
   }
 }
 //=============================================================================
-void BLSURFPlugin_Hypothesis::SetOptionValue(const string& optionName,
-                                             const string& optionValue)
+void BLSURFPlugin_Hypothesis::SetOptionValue(const std::string& optionName,
+                                             const std::string& optionValue)
   throw (std::invalid_argument)
 {
   TOptionValues::iterator op_val = _option2value.find( optionName );
   if ( op_val == _option2value.end() ) {
-    string msg = "Unknown BLSURF option: '" + optionName + "'";
+    std::string msg = "Unknown BLSURF option: '" + optionName + "'";
     throw std::invalid_argument(msg);
   }
   if ( op_val->second != optionValue ) {
@@ -286,7 +283,7 @@ void BLSURFPlugin_Hypothesis::SetOptionValue(const string& optionName,
       i--;
     // check value type
     bool typeOk = true;
-    string typeName;
+    std::string typeName;
     if ( i == 0 ) {
       // empty string
     }
@@ -308,7 +305,7 @@ void BLSURFPlugin_Hypothesis::SetOptionValue(const string& optionName,
       typeName = "integer";
     }
     if ( !typeOk ) {
-      string msg = "Advanced option '" + optionName + "' = '" + optionValue +
+      std::string msg = "Advanced option '" + optionName + "' = '" + optionValue +
         "' but must be " + typeName;
       throw std::invalid_argument(msg);
     }
@@ -318,12 +315,12 @@ void BLSURFPlugin_Hypothesis::SetOptionValue(const string& optionName,
 }
 
 //=============================================================================
-string BLSURFPlugin_Hypothesis::GetOptionValue(const string& optionName)
+std::string BLSURFPlugin_Hypothesis::GetOptionValue(const std::string& optionName)
   throw (std::invalid_argument)
 {
   TOptionValues::iterator op_val = _option2value.find( optionName );
   if ( op_val == _option2value.end() ) {
-    string msg = "Unknown BLSURF option: <";
+    std::string msg = "Unknown BLSURF option: <";
     msg += optionName + ">";
     throw std::invalid_argument(msg);
   }
@@ -331,7 +328,7 @@ string BLSURFPlugin_Hypothesis::GetOptionValue(const string& optionName)
 }
 
 //=============================================================================
-void BLSURFPlugin_Hypothesis::ClearOption(const string& optionName)
+void BLSURFPlugin_Hypothesis::ClearOption(const std::string& optionName)
 {
   TOptionValues::iterator op_val = _option2value.find( optionName );
   if ( op_val != _option2value.end() )
@@ -339,7 +336,7 @@ void BLSURFPlugin_Hypothesis::ClearOption(const string& optionName)
 }
 
 //=============================================================================
-ostream & BLSURFPlugin_Hypothesis::SaveTo(ostream & save)
+std::ostream & BLSURFPlugin_Hypothesis::SaveTo(std::ostream & save)
 {
   save << " " << (int)_topology
        << " " << (int)_physicalMesh
@@ -367,7 +364,7 @@ ostream & BLSURFPlugin_Hypothesis::SaveTo(ostream & save)
 }
 
 //=============================================================================
-istream & BLSURFPlugin_Hypothesis::LoadFrom(istream & load)
+std::istream & BLSURFPlugin_Hypothesis::LoadFrom(std::istream & load)
 {
   bool isOK = true;
   int i;
@@ -377,93 +374,93 @@ istream & BLSURFPlugin_Hypothesis::LoadFrom(istream & load)
   if (isOK)
     _topology = (Topology) i;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
 
   isOK = (load >> i);
   if (isOK)
     _physicalMesh = (PhysicalMesh) i;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
 
   isOK = (load >> i);
   if (isOK)
     _geometricMesh = (GeometricMesh) i;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
 
   isOK = (load >> val);
   if (isOK)
     _phySize = val;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
 
   isOK = (load >> val);
   if (isOK)
     _angleMeshS = val;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
 
   isOK = (load >> val);
   if (isOK)
     _gradation = val;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
 
   isOK = (load >> i);
   if (isOK)
     _quadAllowed = (bool) i;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
 
   isOK = (load >> i);
   if (isOK)
     _decimesh = (bool) i;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
 
   isOK = (load >> val);
   if (isOK)
     _phyMin = val;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
   
   isOK = (load >> val);
   if (isOK)
     _phyMax = val;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
   
   isOK = (load >> val);
   if (isOK)
     _angleMeshC = val;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
   
   isOK = (load >> val);
   if (isOK)
     _hgeoMin = val;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
   
   isOK = (load >> val);
   if (isOK)
     _hgeoMax = val;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
   
   isOK = (load >> i);
   if (isOK)
     _verb = i;
   else
-    load.clear(ios::badbit | load.rdstate());
+    load.clear(std::ios::badbit | load.rdstate());
 
-  string optName, optValue;
+  std::string optName, optValue;
   while (isOK) {
     isOK = (load >> optName);
     if (isOK)
       isOK = (load >> optValue);
     if (isOK) {
-      string & value = _option2value[ optName ];
+      std::string & value = _option2value[ optName ];
       value = optValue;
       int len = value.size();
       // continue reading until "%#" encountered
@@ -487,13 +484,13 @@ istream & BLSURFPlugin_Hypothesis::LoadFrom(istream & load)
 }
 
 //=============================================================================
-ostream & operator <<(ostream & save, BLSURFPlugin_Hypothesis & hyp)
+std::ostream & operator <<(std::ostream & save, BLSURFPlugin_Hypothesis & hyp)
 {
   return hyp.SaveTo( save );
 }
 
 //=============================================================================
-istream & operator >>(istream & load, BLSURFPlugin_Hypothesis & hyp)
+std::istream & operator >>(std::istream & load, BLSURFPlugin_Hypothesis & hyp)
 {
   return hyp.LoadFrom( load );
 }
index 1384fc9314bfd929f884dacb317898ff7c2fcd6d..d933344418efb6b0053707867309de58914cf0db 100644 (file)
@@ -1,31 +1,28 @@
-//  BLSURFPlugin : C++ implementation
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-// File      : BLSURFPlugin_Hypothesis.hxx
-// Authors   : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
-//             & Aurelien ALLEAUME (DISTENE)
-// Date      : 27/03/2006
-// Project   : SALOME
-// $Header$
-//=============================================================================
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPlugin_Hypothesis.hxx
+// Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
+//           & Aurelien ALLEAUME (DISTENE)
+//
+// ---
 
 #ifndef _BLSURFPlugin_Hypothesis_HXX_
 #define _BLSURFPlugin_Hypothesis_HXX_
@@ -34,6 +31,7 @@
 #include <map>
 #include <set>
 #include <stdexcept>
+#include <string>
 
 //  Parameters for work of BLSURF
 
@@ -120,15 +118,15 @@ public:
 
   void SetOptionValue(const std::string& optionName,
                       const std::string& optionValue) throw (std::invalid_argument);
-  string GetOptionValue(const std::string& optionName) throw (std::invalid_argument);
+  std::string GetOptionValue(const std::string& optionName) throw (std::invalid_argument);
   void ClearOption(const std::string& optionName);
   const TOptionValues& GetOptionValues() const { return _option2value; }
 
   // Persistence
-  virtual ostream & SaveTo(ostream & save);
-  virtual istream & LoadFrom(istream & load);
-  friend ostream & operator <<(ostream & save, BLSURFPlugin_Hypothesis & hyp);
-  friend istream & operator >>(istream & load, BLSURFPlugin_Hypothesis & hyp);
+  virtual std::ostream & SaveTo(std::ostream & save);
+  virtual std::istream & LoadFrom(std::istream & load);
+  friend std::ostream & operator <<(std::ostream & save, BLSURFPlugin_Hypothesis & hyp);
+  friend std::istream & operator >>(std::istream & load, BLSURFPlugin_Hypothesis & hyp);
 
   /*!
    * \brief Does nothing
index 254941eb7e8d428475250f3f99ce8770f5448317..d7700e0ea28222484a217b9be453f6888cdb1097 100644 (file)
@@ -1,30 +1,27 @@
-//  BLSURFPlugin : C++ implementation
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-// File      : BLSURFPlugin_Hypothesis_i.cxx
-// Authors   : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
-// Date      : 03/04/2006
-// Project   : SALOME
-//=============================================================================
-using namespace std;
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPlugin_Hypothesis.cxx
+// Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
+//
+// ---
 
 #include "BLSURFPlugin_Hypothesis_i.hxx"
 #include "SMESH_Gen.hxx"
index 01c54cc2ac99629a8cc7c5bb673ac8d6050ea966..f0c8e4ba37c2186314691661f55040f85703264c 100644 (file)
@@ -1,29 +1,27 @@
-//  BLSURFPlugin : C++ implementation
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-// File      : BLSURFPlugin_Hypothesis_i.hxx
-// Authors   : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
-// Date      : 03/04/2006
-// Project   : SALOME
-//=============================================================================
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPlugin_Hypothesis.hxx
+// Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
+//
+// ---
 
 #ifndef _BLSURFPlugin_Hypothesis_i_HXX_
 #define _BLSURFPlugin_Hypothesis_i_HXX_
index 6ffe80ce046cfa274224b076c093c75e9c857b85..5cd6194bd5326abf9c24e86bbebd04ae43c50f61 100644 (file)
@@ -1,31 +1,28 @@
-//  SMESH BLSURFPlugin : implementaion of SMESH idl descriptions
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  File    : BLSURFPlugin_i.cxx
-//  Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA)
-//  Module  : SMESH
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPlugin_i.cxx
+// Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA)
+//
+// ---
 
-using namespace std;
 #include "utilities.h"
 
 #include "BLSURFPlugin_BLSURF_i.hxx"
index b6fd1e947c9e61cccf1aaf372551dae69e817ee0..2d41c0d1aafc41b8cdbd13c3fa3b926a12629ce6 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
diff --git a/src/BLSURFPlugin/cad_occ.cxx b/src/BLSURFPlugin/cad_occ.cxx
deleted file mode 100644 (file)
index 0a3c04c..0000000
+++ /dev/null
@@ -1,588 +0,0 @@
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org\r
-//\r
-//\r
-// File      : BLSURFlugin_Mesher.cxx\r
-// Authors   : Francis KLOSS (OCC) & Patrick LAUG (INRIA)\r
-// Date      : 31/03/2006\r
-// Project   : SALOME\r
-//=============================================================================\r
-// using namespace std;\r
-\r
-// #include "BLSURFPlugin_Mesher.hxx"\r
-// #include "BLSURFPlugin_Hypothesis.hxx"\r
-\r
-// #include <SMESHDS_Mesh.hxx>\r
-// #include <SMDS_MeshElement.hxx>\r
-// #include <SMDS_MeshNode.hxx>\r
-// #include <utilities.h>\r
-\r
-// #include <vector>\r
-\r
-// #include <BRep_Tool.hxx>\r
-// #include <TopExp.hxx>\r
-// #include <TopExp_Explorer.hxx>\r
-// #include <TopoDS.hxx>\r
-// #include <NCollection_Map.hxx>\r
-\r
-#include <iostream>\r
-#include <fstream>\r
-\r
-#include <Occ_utility.h>\r
-#include <TDataStd_Name.hxx>\r
-#include <TPrsStd_AISPresentation.hxx>\r
-#include <TNaming_NamedShape.hxx>\r
-#include <TopExp_Explorer.hxx>\r
-#include <AIS_InteractiveObject.hxx>\r
-#include <ShapeFix_Edge.hxx>\r
-#include <TopoDS.hxx>\r
-#include <TopLoc_Location.hxx>\r
-#include <Geom_Surface.hxx>\r
-#include <Handle_Geom_Surface.hxx>\r
-#include <BRep_Tool.hxx>\r
-#include <Geom_ElementarySurface.hxx>\r
-#include <Geom_BoundedSurface.hxx>\r
-#include <Geom_OffsetSurface.hxx>\r
-#include <Geom_SweptSurface.hxx>\r
-#include <Geom_RectangularTrimmedSurface.hxx>\r
-#include <Geom_BezierSurface.hxx>\r
-#include <GeomAPI_ProjectPointOnCurve.hxx>\r
-#include <GeomAPI_ProjectPointOnSurf.hxx>\r
-#include <Geom_ConicalSurface.hxx>\r
-#include <Geom_CylindricalSurface.hxx>\r
-#include <Geom_Plane.hxx>\r
-#include <Geom_SphericalSurface.hxx>\r
-#include <Geom_ToroidalSurface.hxx>\r
-#include <Geom_SurfaceOfLinearExtrusion.hxx>\r
-#include <Geom_SurfaceOfRevolution.hxx>\r
-#include <ShapeUpgrade_ClosedFaceDivide.hxx>\r
-#include <ShapeUpgrade_ShapeDivide.hxx>\r
-#include <TNaming_Builder.hxx>\r
-#include <TDataStd_Integer.hxx>\r
-#include <cad_occ.h>\r
-\r
-#include <GProp_GProps.hxx>\r
-#include <BRepGProp.hxx>\r
-#include <BRepAlgoAPI_Common.hxx>\r
-\r
-#include <BRep_ListIteratorOfListOfCurveRepresentation.hxx>\r
-#include <BRep_TEdge.hxx>\r
-#include <Handle_BRep_TEdge.hxx>\r
-#include <BRep_GCurve.hxx>\r
-#include <Handle_BRep_GCurve.hxx>\r
-#include <ShapeFix_Edge.hxx>\r
-#include <BRep_Tool.hxx>\r
-#include <TopoDS_Vertex.hxx>\r
-#include <TopoDS_Wire.hxx>\r
-#include <TopTools_IndexedMapOfShape.hxx>\r
-\r
-#define TSMO blw->bls_glo.tsmo\r
-\r
-bool BL_SURF::init(const TopoDS_Shape& _shape) {\r
-  cout << "BLSURF_init: begin" << endl;\r
-\r
-  if (_shape.ShapeType() == TopAbs_COMPOUND) {\r
-    cout << "BLSURF_init: the shape is a COMPOUND" << endl;\r
-  } else {\r
-    cout << "BLSURF_init: the shape is UNKNOWN" << endl;\r
-  }\r
-\r
-  cout << "BLSURF_init: exploring faces and edges " << endl;\r
-  int i=0;\r
-  for (TopExp_Explorer expf(_shape, TopAbs_FACE); expf.More(); expf.Next()) {\r
-      const TopoDS_Shape& face = expf.Current();\r
-      i++;\r
-      int j=0;\r
-      for (TopExp_Explorer expe(face, TopAbs_EDGE); expe.More(); expe.Next()) {\r
-          // const TopoDS_Shape& edge = expe.Current(); -> warning: unused variable 'edge'\r
-          j++;\r
-      }\r
-      // cout << "BLSURF_init: face " << i << " has " << j << " edges" << endl;\r
-  }\r
-  cout << "BLSURF_init: total number of faces = " << i << endl;\r
-\r
-  TopoDS_Shape the_shape;\r
-  the_shape = _shape;\r
-\r
-  // return(true);\r
-  return(run(the_shape));\r
-}\r
-\r
-// #define TC2D blw.bls_glo.TC2dNew\r
-\r
-void BL_SURF::get_blw(blw_*& blw_param) {\r
-  blw_param = &blw;\r
-}\r
-\r
-bool BL_SURF::end() {\r
-  bls_free(&blw);\r
-  if (blw.error[0]) {\r
-    return(false);\r
-  } else {\r
-    return(true);\r
-  }\r
-}\r
-\r
-double norm(vector<double> v)\r
-{\r
-  double res=0.;\r
-  for (int i=0;i<v.size();i++) res+=POW2(v[i]);\r
-  return(sqrt(res));\r
-}\r
-\r
-vector<double> operator-(vector<double> v1, vector<double> v2)\r
-{\r
-  assert(v1.size()==v2.size());\r
-  vector<double> res(v1.size(),0.);\r
-  for (int i=0;i<v1.size();i++) res[i]=v1[i]-v2[i];\r
-  return(res);\r
-}\r
-\r
-bool BL_SURF::run(TopoDS_Shape &s)\r
-{\r
-  the_object=s;\r
-  return(run());\r
-}\r
-\r
-bool BL_SURF::run()\r
-{\r
-  active_blsurf = this;\r
-  build_surfaces(the_object);\r
-  int ret = bls_main(&blw);\r
-  active_blsurf = NULL;\r
-  if (ret == 0) {\r
-    return(true);\r
-  } else {\r
-    return(false);\r
-  }\r
-}\r
-\r
-void BL_SURF::build_surfaces(TopoDS_Shape &shape)\r
-{\r
-  int i, iface;\r
-\r
-//\r
-// Explore the whole shape to extract surfaces, and build BL objects\r
-//\r
-\r
-  for (i=0;i<surfaces.size();i++) delete(surfaces[i]);\r
-  surfaces.resize(0);\r
-\r
-  TopTools_IndexedMapOfShape fmap;\r
-  fmap.Clear();\r
-  iface = 0;\r
-  for (TopExp_Explorer ex_face(shape,TopAbs_FACE);ex_face.More();ex_face.Next()) {\r
-    TopoDS_Face f=TopoDS::Face(ex_face.Current());\r
-    if (fmap.FindIndex(f) <= 0) {\r
-      fmap.Add(f);\r
-      iface++;\r
-      BL_SURFACE *bl_surface=new BL_SURFACE(f);\r
-      if(bl_surface->build()) {\r
-           surfaces.push_back(bl_surface);\r
-      } else {\r
-       cout<<"Weird surface detected !"<<endl;\r
-       delete(bl_surface);\r
-      }\r
-    }\r
-  }\r
-}\r
-\r
-BL_SURFACE::BL_SURFACE(TopoDS_Face &f) \r
-{ \r
-  sizer=NULL;\r
-  topology=f;\r
-  geometry=BRep_Tool::Surface(f);\r
-}\r
-\r
-BL_SURFACE::~BL_SURFACE() \r
-{ \r
-  for (int i=0;i<edges.size();i++) delete(edges[i]);\r
-}\r
-\r
-bool BL_SURFACE::build()\r
-{\r
-//\r
-// Explore the surface to extract all edges\r
-//\r
-  for (TopExp_Explorer ex_face(topology,TopAbs_EDGE);ex_face.More();ex_face.Next()) {\r
-    TopoDS_Edge e=TopoDS::Edge(ex_face.Current());\r
-    if(!add(e)) return(false);\r
-  }\r
-  return(true);\r
-}\r
-\r
-void BL_SURFACE::add(double u, double v)\r
-{\r
-  points.push_back(new BL_POINT(this,u,v));\r
-}\r
-\r
-bool BL_SURFACE::add(TopoDS_Edge &edge)\r
-{\r
-//\r
-// add an edge ( make some checks, and build the associated BL_EDGE object )\r
-//\r
-  Handle(Geom2d_Curve) pargeo;\r
-  double tmin,tmax;\r
-\r
-  pargeo=BRep_Tool::CurveOnSurface(edge,topology,tmin,tmax);\r
-\r
-  BL_EDGE *bl_edge=new BL_EDGE(edge,this,pargeo,tmin,tmax);\r
-  edges.push_back(bl_edge);\r
-  return(true);\r
-}\r
-\r
-BL_EDGE::BL_EDGE(TopoDS_Edge &ed,BL_SURFACE *b, Handle(Geom2d_Curve) pargeo, double tmin, double tmax)\r
-{\r
-  sizer=NULL;\r
-  refc=-1;\r
-  typc=1;\r
-  topology=ed; boss=b;\r
-  parametric_geometry=pargeo;\r
-  parametric_min=tmin; parametric_max=tmax;\r
-}\r
-\r
-BL_EDGE::~BL_EDGE() { }\r
-\r
-void BL_EDGE::method_curv0(const double &t, double *C)\r
-{\r
-  gp_Pnt2d P;\r
-\r
-  P=parametric_geometry->Value(t);\r
-  C[0]=P.X(); C[1]=P.Y();\r
-}\r
-\r
-void BL_EDGE::method_curv1(const double &t, double *C)\r
-{\r
-  gp_Vec2d V1;\r
-\r
-  V1=parametric_geometry->DN(t,1);\r
-  C[0]=V1.X(); C[1]=V1.Y();\r
-}\r
-\r
-void BL_EDGE::method_curv2(const double &t, double *C)\r
-{\r
-  gp_Vec2d V2;\r
-\r
-  V2=parametric_geometry->DN(t,2);\r
-  C[0]=V2.X(); C[1]=V2.Y();\r
-}\r
-\r
-void BL_SURFACE::method_surf0(const double *UV, double *S)\r
-{\r
-  gp_Pnt P;\r
-\r
-  P=geometry->Value(UV[0],UV[1]);   // S.D0(U,V,P);\r
-  S[0]=P.X(); S[1]=P.Y(); S[2]=P.Z();\r
-}\r
-\r
-void BL_SURFACE::method_surf1(const double *UV, double *Su, double *Sv)\r
-{\r
-  gp_Pnt P;\r
-  gp_Vec D1U,D1V;\r
-\r
-  geometry->D1(UV[0],UV[1],P,D1U,D1V);\r
-  Su[0]=D1U.X(); Su[1]=D1U.Y(); Su[2]=D1U.Z();\r
-  Sv[0]=D1V.X(); Sv[1]=D1V.Y(); Sv[2]=D1V.Z();\r
-} \r
-\r
-void BL_SURFACE::method_surf2(const double *UV, double *Suu, double *Suv, double *Svv)\r
-{\r
-  gp_Pnt P;\r
-  gp_Vec D1U,D1V;\r
-  gp_Vec D2U,D2V,D2UV;\r
-\r
-  geometry->D2(UV[0],UV[1],P,D1U,D1V,D2U,D2V,D2UV);\r
-  Suu[0]=D2U.X(); Suu[1]=D2U.Y(); Suu[2]=D2U.Z();\r
-  Suv[0]=D2UV.X(); Suv[1]=D2UV.Y(); Suv[2]=D2UV.Z();\r
-  Svv[0]=D2V.X(); Svv[1]=D2V.Y(); Svv[2]=D2V.Z();\r
-}\r
-\r
-static vector<BL_SURFACE*> *current_list_of_faces=NULL;\r
-BL_SURF* BL_SURF::active_blsurf=NULL;\r
-\r
-void cad_surf0 (blw_ *blw, int *refs, double *uv, double *S)\r
-{\r
-  BL_SURFACE *surf=(*current_list_of_faces)[*refs-1];\r
-  surf->method_surf0(uv,S);\r
-}\r
-\r
-void cad_surf1 (blw_ *blw, int *refs, double *uv, double *Su, double *Sv)\r
-{\r
-  BL_SURFACE *surf=(*current_list_of_faces)[*refs-1];\r
-  surf->method_surf1(uv,Su,Sv);\r
-}\r
-\r
-// calcul discret\r
-// double du, dv, uvg[2], uvd[2], uvb[2], uvh[2], Sg[3], Sd[3], Sb[3], Sh[3];\r
-// double Sucont[3], Svcont[3];\r
-// if (*refs == 33) {\r
-//   Sucont[0] = Su[0]; Sucont[1] = Su[1]; Sucont[2] = Su[2];\r
-//   Svcont[0] = Sv[0]; Svcont[1] = Sv[1]; Svcont[2] = Sv[2];\r
-//   BL_SURFACE *surf=(*current_list_of_faces)[*refs-1];\r
-//   du = (TSMO[*refs].uvmax[0] - TSMO[*refs].uvmin[0]) *  0.08;\r
-//   dv = (TSMO[*refs].uvmax[1] - TSMO[*refs].uvmin[1]) *  0.08;\r
-//   uvg[0] = uv[0]-du;\r
-//   uvg[1] = uv[1];\r
-//   uvd[0] = uv[0]+du;\r
-//   uvd[1] = uv[1];\r
-//   uvb[0] = uv[0];\r
-//   uvb[1] = uv[1]-dv;\r
-//   uvh[0] = uv[0];\r
-//   uvh[1] = uv[1]+dv;\r
-//   if (uvg[0] < TSMO[*refs].uvmin[0]) uvg[0] = TSMO[*refs].uvmin[0];\r
-//   if (uvd[0] > TSMO[*refs].uvmax[0]) uvd[0] = TSMO[*refs].uvmax[0];\r
-//   if (uvb[1] < TSMO[*refs].uvmin[1]) uvb[1] = TSMO[*refs].uvmin[1];\r
-//   if (uvh[1] > TSMO[*refs].uvmax[1]) uvh[1] = TSMO[*refs].uvmax[1];\r
-//   surf->method_surf0(uvg,Sg);\r
-//   surf->method_surf0(uvd,Sd);\r
-//   surf->method_surf0(uvb,Sb);\r
-//   surf->method_surf0(uvh,Sh);\r
-//   du = uvd[0] - uvg[0];\r
-//   dv = uvh[1] - uvb[1];\r
-//   Su[0] = (Sd[0] - Sg[0]) / du;\r
-//   Su[1] = (Sd[1] - Sg[1]) / du;\r
-//   Su[2] = (Sd[2] - Sg[2]) / du;\r
-//   Sv[0] = (Sh[0] - Sb[0]) / dv;\r
-//   Sv[1] = (Sh[1] - Sb[1]) / dv;\r
-//   Sv[2] = (Sh[2] - Sb[2]) / dv;\r
-//   fprintf(blw->out, "Su cont %g %g %g\n", Sucont[0], Sucont[1], Sucont[2]);\r
-//   fprintf(blw->out, "Su disc %g %g %g\n", Su[0], Su[1], Su[2]);\r
-//   fprintf(blw->out, "Sv cont %g %g %g\n", Svcont[0], Svcont[1], Svcont[2]);\r
-//   fprintf(blw->out, "Sv disc %g %g %g\n", Sv[0], Sv[1], Sv[2]);\r
-// }\r
-\r
-void cad_surf2 (blw_ *blw, int *refs, double uv[2], double Suu[3], double Suv[3], double Svv[3])\r
-{\r
-  BL_SURFACE *surf=(*current_list_of_faces)[*refs-1];\r
-  surf->method_surf2(uv,Suu,Suv,Svv);\r
-\r
-//  // calcul discret\r
-//  double du, dv, uvg[2], uvd[2], uvb[2], uvh[2], Sug[3], Sud[3], Sub[3], Suh[3], Svg[3], Svd[3], Svb[3], Svh[3];\r
-//  double Suucont[3], Suvcont[3], Svvcont[3];\r
-//  if (*refs >= 0) {\r
-//    Suucont[0] = Suu[0]; Suucont[1] = Suu[1]; Suucont[2] = Suu[2];\r
-//    Suvcont[0] = Suv[0]; Suvcont[1] = Suv[1]; Suvcont[2] = Suv[2];\r
-//    Svvcont[0] = Svv[0]; Svvcont[1] = Svv[1]; Svvcont[2] = Svv[2];\r
-//    du = (TSMO[*refs].uvmax[0] - TSMO[*refs].uvmin[0]) *  0.08;\r
-//    dv = (TSMO[*refs].uvmax[1] - TSMO[*refs].uvmin[1]) *  0.08;\r
-//    uvg[0] = uv[0]-du;\r
-//    uvg[1] = uv[1];\r
-//    uvd[0] = uv[0]+du;\r
-//    uvd[1] = uv[1];\r
-//    uvb[0] = uv[0];\r
-//    uvb[1] = uv[1]-dv;\r
-//    uvh[0] = uv[0];\r
-//    uvh[1] = uv[1]+dv;\r
-//    if (uvg[0] < TSMO[*refs].uvmin[0]) uvg[0] = TSMO[*refs].uvmin[0];\r
-//    if (uvd[0] > TSMO[*refs].uvmax[0]) uvd[0] = TSMO[*refs].uvmax[0];\r
-//    if (uvb[1] < TSMO[*refs].uvmin[1]) uvb[1] = TSMO[*refs].uvmin[1];\r
-//    if (uvh[1] > TSMO[*refs].uvmax[1]) uvh[1] = TSMO[*refs].uvmax[1];\r
-//    surf->method_surf1(uvg,Sug,Svg);\r
-//    surf->method_surf1(uvd,Sud,Svd);\r
-//    surf->method_surf1(uvb,Sub,Svb);\r
-//    surf->method_surf1(uvh,Suh,Svh);\r
-//    du = uvd[0] - uvg[0];\r
-//    dv = uvh[1] - uvb[1];\r
-//    Suu[0] = (Sud[0] - Sug[0]) / du;\r
-//    Suu[1] = (Sud[1] - Sug[1]) / du;\r
-//    Suu[2] = (Sud[2] - Sug[2]) / du;\r
-//    Svv[0] = (Svh[0] - Svb[0]) / dv;\r
-//    Svv[1] = (Svh[1] - Svb[1]) / dv;\r
-//    Svv[2] = (Svh[2] - Svb[2]) / dv;\r
-//    Suv[0] = ((Suh[0] - Sub[0]) / dv + (Svd[0] - Svg[0]) / du) * 0.5;\r
-//    Suv[1] = ((Suh[1] - Sub[1]) / dv + (Svd[1] - Svg[1]) / du) * 0.5;\r
-//    Suv[2] = ((Suh[2] - Sub[2]) / dv + (Svd[2] - Svg[2]) / du) * 0.5;\r
-//    // fprintf(blw->out, "disc uv %g %g Suu %g %g %g\n", uv[0], uv[1], Suu[0], Suu[1], Suu[2]);\r
-//    // fprintf(blw->out, "Suv disc %g %g %g\n", Suv[0], Suv[1], Suv[2]);\r
-//    // fprintf(blw->out, "Svv disc %g %g %g\n", Svv[0], Svv[1], Svv[2]);\r
-//  }\r
-}\r
-\r
-void cad_curvint (blw_ *blw, int *refs, int *ic, double *a, double *b)\r
-{\r
-  *a=(*current_list_of_faces)[*refs-1]->edges[*ic-1]->parametric_min;\r
-  *b=(*current_list_of_faces)[*refs-1]->edges[*ic-1]->parametric_max;\r
-}\r
-\r
-void cad_curv0 (blw_ *blw, int *refs, int *ic, double *t, double *C)\r
-{\r
-  (*current_list_of_faces)[*refs-1]->edges[*ic-1]->method_curv0(*t,C);\r
-}\r
-\r
-void cad_curv1 (blw_ *blw, int *refs, int *ic, double *t, double *Ct)\r
-{\r
-  (*current_list_of_faces)[*refs-1]->edges[*ic-1]->method_curv1(*t,Ct);\r
-}\r
-\r
-void cad_curv2 (blw_ *blw, int *refs, int *ic, double *t, double *Ctt)\r
-{\r
-  (*current_list_of_faces)[*refs-1]->edges[*ic-1]->method_curv2(*t,Ctt);\r
-}\r
-\r
-void cad_hphys (blw_ *blw, int *refs, double *uv, double *h) {}\r
-void cad_hphyc (blw_ *blw, int *refs, int *ic, double *t, double *h) {}\r
-void cad_hphyp (blw_ *blw, int *refp, double *h) {}\r
-\r
-void cad_rads (blw_ *blw, int *refs, double *uv, double *rhos) {\r
-  sprintf(blw->error, "cad_rads should not be called\n");\r
-}\r
-\r
-void cad_radc (blw_ *blw, int *refs, int *ic, double *t, double *rhoc) {\r
-  sprintf(blw->error, "cad_radc should not be called");\r
-}\r
-\r
-void cad_hageos(blw_ *blw, int *refs, double uv[2], double hageos[6]) {\r
-  sprintf(blw->error, "cad_hageos should not be called\n");\r
-}\r
-\r
-void cad_refphyc(blw_ *blw, int *refc, int *phyc) {\r
-  *phyc = *refc;\r
-}\r
-\r
-void cad_refphyp(blw_ *blw, int *refp, int *phyp) {\r
-  *phyp = *refp;\r
-}\r
-\r
-void cad_refphys(blw_ *blw, int *refs, int *phys) {\r
-  *phys = *refs;\r
-}\r
-\r
-void cad_edgetag(blw_ *blw, int *refc, int *required) {\r
-  *required = 1;\r
-}\r
-\r
-void cad_curvparam(blw_ *blw, int *refs, int *ic, int *n, double tab[]) {\r
-  *n = 0;\r
-}\r
-\r
-void BL_SURF::init_tsmo(blw_ *blw) {   /* cf. bls_read_pardom */\r
-  int is, ns, ic, nc, j, igloP, igloQ, isurf;\r
-  TopoDS_Vertex v;\r
-  gp_Pnt p;\r
-  double a, b, uv[2], xyz[3], xyzP[3], xyzQ[3];\r
-\r
-  ns = surfaces.size();\r
-  if (blw->env.verb >= 10) fprintf(blw->out, "\ninit_tsmo: %d surfaces\n", ns);\r
-  if (ns <= 0) {\r
-    TSMO = NULL;\r
-    blw->bls_glo.number_of_patches = 0;\r
-    return;\r
-  }\r
-\r
-  TopTools_IndexedMapOfShape fmap_edges;\r
-  TopTools_IndexedMapOfShape fmap_points;\r
-  fmap_edges.Clear();\r
-  fmap_points.Clear();\r
-  for (isurf=0; isurf<ns; isurf++) {\r
-    TopoDS_Face face = surfaces[isurf]->topology;\r
-    for (TopExp_Explorer ex_face(face ,TopAbs_EDGE); ex_face.More(); ex_face.Next()) {\r
-      TopoDS_Edge e = TopoDS::Edge(ex_face.Current());\r
-      if (fmap_edges.FindIndex(e) <= 0) {   /* not found => FindIndex = 0, found => FindIndex > 0 */\r
-       fmap_edges.Add(e);\r
-       j = 0;\r
-       for (TopExp_Explorer ex_edge(e ,TopAbs_VERTEX); ex_edge.More(); ex_edge.Next()) {\r
-         v = TopoDS::Vertex(ex_edge.Current());\r
-         ++j;\r
-         if (fmap_points.FindIndex(v) <= 0) fmap_points.Add(v);\r
-       }\r
-       if (j != 2) {\r
-         sprintf(blw->error, "init_tsmo: surface is=%d: an edge has %d != 2 extremities\n", isurf+1, j); return;\r
-       }\r
-      }\r
-    }\r
-  }\r
-\r
-  MALLOC(surface_, TSMO, ns+1); if (blw->error[0]) return;\r
-  blw->bls_glo.number_of_patches = ns;\r
-  for (isurf=0; isurf<ns; isurf++) {\r
-    is = isurf+1;\r
-    nc = surfaces[isurf]->edges.size();\r
-    if (blw->env.verb >= 70) fprintf(blw->out, "init_tsmo: surface is=%d: %d curves\n", is, nc);\r
-\r
-    bls_init_surface(blw, &(TSMO[is]), nc);\r
-    TSMO[is].iglos = is;\r
-    TSMO[is].pardom_side = 0;\r
-    TSMO[is].surforient = +1;\r
-    for (int icurv=0;icurv<nc;icurv++) {\r
-      ic = icurv+1;\r
-      TSMO[is].TC[ic].typc = 1;\r
-      BL_EDGE* curve = surfaces[isurf]->edges[icurv];\r
-      TopoDS_Edge edge = curve->topology;\r
-      TSMO[is].TC[ic].igloc = fmap_edges.FindIndex(edge);\r
-\r
-      TopExp_Explorer ex_edge(edge, TopAbs_VERTEX);\r
-      v = TopoDS::Vertex(ex_edge.Current());\r
-      p = BRep_Tool::Pnt(v);\r
-      xyzP[0] = p.X(); xyzP[1] = p.Y(); xyzP[2] = p.Z();\r
-      igloP = fmap_points.FindIndex(v);\r
-\r
-      ex_edge.Next();\r
-      v = TopoDS::Vertex(ex_edge.Current());\r
-      p = BRep_Tool::Pnt(v);\r
-      xyzQ[0] = p.X(); xyzQ[1] = p.Y(); xyzQ[2] = p.Z();\r
-      igloQ = fmap_points.FindIndex(v);\r
-\r
-      cad_curvint (blw, &is, &ic, &a, &b);\r
-      cad_curv0   (blw, &is, &ic, &a, uv);\r
-      cad_surf0   (blw, &is, uv, xyz);      \r
-      xyzP[0] -= xyz[0]; xyzP[1] -= xyz[1]; xyzP[2] -= xyz[2];\r
-      xyzQ[0] -= xyz[0]; xyzQ[1] -= xyz[1]; xyzQ[2] -= xyz[2];\r
-      if (NORM3DPOW2(xyzP) <= NORM3DPOW2(xyzQ)) {\r
-       TSMO[is].TC[ic].iglope[0] = igloP;\r
-       TSMO[is].TC[ic].iglope[1] = igloQ;\r
-      } else {\r
-       TSMO[is].TC[ic].iglope[0] = igloQ;\r
-       TSMO[is].TC[ic].iglope[1] = igloP;\r
-      }\r
-    }\r
-  }\r
-}\r
-\r
-int BL_SURF::bls_main(blw_ *blw) {\r
-  FILE *file;\r
-\r
-  /* banner */\r
-  blw->out = stdout;\r
-  bls_banner(blw, 1);\r
-  \r
-  /* initialiser l'environnement de BLSURF */\r
-  init_blsenv(blw);\r
-\r
-  /* lire l'environnement de BLSURF */\r
-  /* par defaut : strcpy(blw->dirname, ""); */\r
-  /* sinon : strcpy(blw->dirname, "C:\\Documents and Settings\\xxx\\"); */\r
-  sprintf(blw->filename, "%sblsurf.env", blw->dirname);\r
-  FOPEN(file, "r");\r
-  if (blw->error[0]) {\r
-    fprintf(blw->out, "File blsurf.env not found. Default values will be used.\n");\r
-    blw->error[0] = 0;\r
-  } else {\r
-    read_blsenv(blw, file);\r
-    FCLOSE(file);\r
-    if (blw->error[0]) goto error;   /* read_blsenv: unknown keyword */\r
-  }\r
-\r
-  /* copier les variables communes entre "bl2denv" et blsenv (en particulier verb) */\r
-  copy_common_env(blw);\r
-\r
-  /* imprimer l'environnement de BLSURF */\r
-  if (blw->env.verb >= 70) print_blsenv(blw);\r
-\r
-  /* initialiser TSMO */\r
-  current_list_of_faces = &surfaces;\r
-  BL_SURF::init_tsmo(blw); if (blw->error[0]) goto error;\r
-\r
-  /* generer le maillage surfacique */\r
-  bls_init(blw);             if (blw->error[0]) goto error;\r
-  bls_mesh(blw);             if (blw->error[0]) goto error;\r
-  bls_surforient(blw);       if (blw->error[0]) goto error;\r
-  bls_export(blw);           if (blw->error[0]) goto error;\r
-  /* a voir : les tableaux pointes par current_list_of_faces sont liberes ? handles ? */\r
-\r
-  bls_banner(blw, 2);\r
-  return(0);\r
-\r
- error:\r
-  fprintf(blw->out, "\nBLSURF ERROR MESSAGE:\n%s\n", blw->error);\r
-  bls_banner(blw, 2);\r
-  return(1);\r
-}\r
diff --git a/src/BLSURFPlugin/cad_occ.h b/src/BLSURFPlugin/cad_occ.h
deleted file mode 100644 (file)
index 67766f0..0000000
+++ /dev/null
@@ -1,188 +0,0 @@
-#ifndef __BL_SURF__\r
-#define __BL_SURF__\r
-\r
-#include <list>\r
-#include <vector>\r
-#include <string>\r
-\r
-#include <Handle_Geom_Surface.hxx>\r
-#include <Handle_Geom2d_Curve.hxx>\r
-#include <Handle_Geom_Curve.hxx>\r
-#include <Handle_AIS_InteractiveObject.hxx>\r
-#include <TopoDS_Edge.hxx>\r
-#include <TopoDS_Face.hxx>\r
-\r
-#include <blshare.h>\r
-\r
-class BL_SURFACE;\r
-class BL_CURVE_SIZER;\r
-class BL_SURFACE_SIZER;\r
-class BL_POINT_SIZER;\r
-\r
-class BL_EDGE \r
-{\r
-  public :\r
-    Handle(Geom2d_Curve) parametric_geometry;\r
-    Handle(Geom_Curve) space_geometry;\r
-    TopoDS_Edge topology;\r
-    BL_SURFACE *boss;\r
-    BL_CURVE_SIZER *sizer;\r
-    bool splitted_closed;\r
-    int splitted_part;\r
-    vector<double> P1,P2,MP;\r
-    string name;\r
-    int i_P1,i_P2;\r
-    int typc,refc;\r
-    \r
-    double parametric_min,parametric_max;\r
-    double space_min,space_max;\r
-\r
-    BL_EDGE(TopoDS_Edge&,BL_SURFACE*,Handle(Geom2d_Curve),double,double);\r
-    ~BL_EDGE();\r
-\r
-    bool verification();\r
-\r
-    void method_curv0(const double&, double*);\r
-    void method_curv1(const double&, double*);\r
-    void method_curv2(const double&, double*);\r
-};\r
-\r
-class BL_POINT {\r
-  public :\r
-    BL_POINT_SIZER *sizer;\r
-    BL_SURFACE *boss;\r
-    double u,v;\r
-\r
-    BL_POINT() { u=v=0.; boss=NULL; sizer=NULL; }\r
-    BL_POINT(BL_SURFACE *b, double du, double dv) { u=du; v=dv; boss=b; sizer=NULL; }\r
-    BL_POINT(double du, double dv) { u=du; v=dv; boss=NULL; sizer=NULL; }\r
-    ~BL_POINT() { }\r
-\r
-    BL_POINT& operator=(BL_POINT p) { u=p.u; v=p.v; return(*this); }\r
-    bool operator==(BL_POINT p) { return((u==p.u)&&(v==p.v)); }\r
-};\r
-\r
-class BL_SURFACE {\r
-  public :\r
-    Handle(Geom_Surface) geometry;\r
-    TopoDS_Face topology;\r
-    bool to_delete;\r
-\r
-    BL_SURFACE_SIZER *sizer;\r
-    vector<BL_EDGE*> edges;\r
-    vector<BL_POINT*> points;\r
-\r
-    BL_SURFACE(TopoDS_Face&);\r
-    ~BL_SURFACE();\r
\r
-    bool build();\r
-    bool verification();\r
-\r
-    void method_surf0(double const*, double*);\r
-    void method_surf1(double const*, double*, double*);\r
-    void method_surf2(double const*, double*, double*, double*);\r
-\r
-    bool add(TopoDS_Edge&);\r
-    void add(double u, double v);\r
-};\r
-\r
-class BL_SURF \r
-{\r
-  protected:\r
-\r
-    // void build_blsurf_data_file();\r
-    void init_tsmo(blw_ *blw);\r
-    int  bls_main(blw_ *blw);\r
-\r
-    // void set_reference_points();\r
-    void build_surfaces(TopoDS_Shape&);\r
-    // void build_from_occ_references(TopoDS_Shape&);\r
-\r
-    void analyse_identical_faces();\r
-\r
-  public:\r
-    static BL_SURF *active_blsurf;\r
-    TopoDS_Shape the_object;\r
-\r
-    vector<BL_EDGE*> all_edges;\r
-    vector<BL_SURFACE*> surfaces;\r
-\r
-    vector<BL_POINT> internal_points;\r
-    vector<TopoDS_Face> internal_face_points;\r
-\r
-    vector<TopoDS_Edge> internal_edges;\r
-    vector<TopoDS_Face> internal_faces;\r
-\r
-    vector<TopoDS_Face> conforming_source_face;\r
-    vector<TopoDS_Face> conforming_dest_face;\r
-\r
-    vector< vector<TopoDS_Face>* > faces_to_merge;\r
-    vector< vector<int>* > vertices_tags;\r
-    vector< vector<int>* > edges_tags;\r
-\r
-    // string blsurf_fname;\r
-    // bool mesh_2D, auto_merge, use_occ_refs;\r
-\r
-    // enum WHAT_MESH { SURFACE_MESH=0, VOLUME_MESH=1 };\r
-    // enum MESH_ORDER { LINEAR=0, QUADRATIC=1 };\r
-\r
-    blw_ blw;\r
-    // int auto_connectivity;\r
-    // int Verbosity;\r
-    // int hphy_flag;\r
-    // int hinterpol_flag,hmean_flag;\r
-    // int eps_glue_flag,eps_ends_flag,eps_collapse_flag;\r
-    // double eps_glue,eps_ends,eps_collapse,shockmax;\r
-    // double angle_mesh,angle_smo;\r
-    // WHAT_MESH WhatMesh;\r
-    // MESH_ORDER MeshOrder;\r
-    // int ComponentToMesh;\r
-    \r
-    // double Pmin,Pmax;\r
-    // double Gmin,Gmax;\r
-    // vector<int> Poptions;  // Goptions\r
-\r
-    // vector<TopoDS_Shape> remaining_faces;\r
-\r
-    BL_SURF() {\r
-      // Verbosity=25;\r
-      // hphy_flag=0; \r
-      // hinterpol_flag=0;\r
-      // hmean_flag=0;\r
-      // auto_connectivity=1;   // PL valait 0\r
-      // use_occ_refs=false;\r
-      // Poptions.resize(1); Poptions[0]=0; \r
-      // WhatMesh=SURFACE_MESH;\r
-      // MeshOrder=LINEAR;\r
-      // mesh_2D=false;\r
-      // eps_glue=eps_ends=eps_collapse=1e-8;\r
-      // eps_glue_flag=eps_ends_flag=eps_collapse_flag=0;\r
-      // shockmax=1.e100;\r
-      // blsurf_fname="";\r
-      // auto_merge=false;\r
-      // ComponentToMesh=0;\r
-      // angle_mesh=8.; angle_smo=1.;\r
-    }\r
-   ~BL_SURF() { }\r
-\r
-    bool init(const TopoDS_Shape&);\r
-    // int vertices(double*&);\r
-    void get_blw(blw_*&);\r
-    // int number_of_patches();\r
-    // bool all_triangles();\r
-    // void face_mesh(int is, int*& F, int*& FRef, int*& iglops, int& nF, int& ndom, int& surforient);\r
-    bool end();\r
-\r
-    bool run(TopoDS_Shape&);\r
-    bool run();\r
-    void reset();\r
-};\r
-\r
-#endif\r
-\r
-// PL Gmin, Gmax, hgeo_flag, Goptions ont deja ete elimines\r
-// PL hphy_flag, Poptions, ... sont a eliminer aussi\r
-// bls.Gmin=0.01;\r
-// bls.Gmax=1000;\r
-// bls.hgeo_flag=1;\r
-// bls.Goptions[0]=1;\r
index 7bfd65db7d1828bb2d77b8731e8579bed1193eee..b5dd0ebfdf8117e9c63d32bcb2da87d110a86935 100755 (executable)
@@ -1,28 +1,27 @@
-//  BLSURFPlugin GUI: GUI for plugged-in mesher BLSURFPlugin
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-//  Copyright (C) 2003  CEA
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  File   : BLSURFPluginGUI.cxx
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// ---
+//
+// File    : BLSURFPluginGUI.cxx
 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA)
-//  Module : BLSURFPlugin
+//
+// ---
 
 #include "BLSURFPluginGUI_HypothesisCreator.h"
 
index bd4f0d6c9ecece4b9dbbcd29b8f78360deb50c73..50273e50d004b7f1fefe2133ac1508f3d4b70a43 100644 (file)
@@ -1,27 +1,26 @@
-// BLSURFPlugin GUI: GUI for plugged-in mesher BLSURFPlugin
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-// Copyright (C) 2003  CEA
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
-// This library is free software; you can redistribute it and/or 
-// modify it under the terms of the GNU Lesser General Public 
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License. 
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-// This library is distributed in the hope that it will be useful, 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details. 
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// You should have received a copy of the GNU Lesser General Public 
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-//
-// See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 // ---
 //
 // File    : BLSURFPluginGUI_HypothesisCreator.cxx
 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
+//           & Aurelien ALLEAUME (DISTENE)
 //
 // ---
 
index f5d1c11551dc0e1c2c6c3695f743c26afe096663..5907b605875d4cf3e3896d44d3f369ee0b6b5084 100644 (file)
@@ -1,28 +1,27 @@
-// BLSURFPlugin GUI: GUI for plugged-in mesher BLSURFPlugin
+// Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 //
-// Copyright (C) 2003  CEA
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
-// This library is free software; you can redistribute it and/or 
-// modify it under the terms of the GNU Lesser General Public 
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License. 
-// 
-// This library is distributed in the hope that it will be useful, 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details. 
-// 
-// You should have received a copy of the GNU Lesser General Public 
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-// See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 // ---
 //
 // File    : BLSURFPluginGUI_HypothesisCreator.h
 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
 //           & Aurelien ALLEAUME (DISTENE)
+//
 // ---
 
 #ifndef BLSURFPLUGINGUI_HypothesisCreator_H
index 503f4daa4b9a901025761e98c21b9ede0b41bd7a..b18b6ce2f40766637ad726020af777f7a9ab0c36 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---
 
index 7c2532b5b34ea04ff4d13555286a76ec2bedd9d5..065949fd29f035aa8bd437b5613c751ca7e0b952 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+# Copyright (C) 2006-2008 OPEN CASCADE, CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -19,7 +18,8 @@
 #
 # ---
 #
-# File:   Makefile.am
+# File   : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
 #
 # ---