+# 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
-// 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__
+# 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
+# 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.
-# 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
#
# ---
#
-# File: Makefile.am
+# File : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
#
# ---
+# 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.
+#
+# ---
-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.
+++ /dev/null
-<!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>
-# 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
#
# ---
#
-# File: Makefile.am
+# File : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
#
# ---
-# 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
#
# ---
#
-# File: Makefile.am
+# File : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
#
# ---
-# 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
#
# ---
#
-# 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)
#
# ---
-# 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
#
# ---
#
-# 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)
#
# ---
-# 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
#
# ---
#
-# 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)
#
# ---
+# 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
-# 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
#
# ---
#
-# File: Makefile.am
+# File : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
#
# ---
#!/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,^$,.,"`
-#!/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
+#!/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)
+++ /dev/null
-#------ BLSURFplugin-Src ------
-export BLSURFPLUGIN_SRC_DIR=${INSTALL_ROOT}/BLSURFPLUGIN_SRC
-##
+++ /dev/null
-#------ 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
-##
-// 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_
-# 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
#
# ---
#
-# File: Makefile.am
+# File : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
#
# ---
-# 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
#
# ---
#
-# File: Makefile.am
+# File : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
#
# ---
mesh_hypo_BLSURF.png \
mesh_tree_algo_BLSURF.png \
mesh_tree_hypo_BLSURF.png \
- BLSURFPlugin.xml
+ BLSURFPlugin.xml \
+ SalomeApp.xml
--- /dev/null
+<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>
-// 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"
-// 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_
protected:
const BLSURFPlugin_Hypothesis* _hypothesis;
-
-// private:
-// int _topology;
-// int _physicalMesh;
-// double _phySize;
-// int _geometricMesh;
-// double _angleMeshS;
-// double _gradation;
-// bool _quadAllowed;
-// bool _decimesh;
};
#endif
-// 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"
-// 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_
-// 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>
}
}
//=============================================================================
-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 ) {
i--;
// check value type
bool typeOk = true;
- string typeName;
+ std::string typeName;
if ( i == 0 ) {
// empty string
}
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);
}
}
//=============================================================================
-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);
}
}
//=============================================================================
-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() )
}
//=============================================================================
-ostream & BLSURFPlugin_Hypothesis::SaveTo(ostream & save)
+std::ostream & BLSURFPlugin_Hypothesis::SaveTo(std::ostream & save)
{
save << " " << (int)_topology
<< " " << (int)_physicalMesh
}
//=============================================================================
-istream & BLSURFPlugin_Hypothesis::LoadFrom(istream & load)
+std::istream & BLSURFPlugin_Hypothesis::LoadFrom(std::istream & load)
{
bool isOK = true;
int i;
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
}
//=============================================================================
-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 );
}
-// 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_
#include <map>
#include <set>
#include <stdexcept>
+#include <string>
// Parameters for work of BLSURF
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
-// 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"
-// 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_
-// 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"
-# 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
#
# ---
#
-# File: Makefile.am
+# File : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
#
# ---
+++ /dev/null
-// 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
+++ /dev/null
-#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
-// 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"
-// 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)
//
// ---
-// 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
-# 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
#
# ---
#
-# File: Makefile.am
+# File : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
#
# ---
-# 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
#
# ---
#
-# File: Makefile.am
+# File : Makefile.am
+# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
#
# ---