Compare commits
357 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
de0f832370 | ||
|
208072178b | ||
|
6f1ecd26cb | ||
|
c56027a4a2 | ||
|
add7adb355 | ||
|
ccecac5e15 | ||
|
3af617de21 | ||
|
0ee85c91e9 | ||
|
dae130623f | ||
|
8281d267cb | ||
|
90d8d4461e | ||
|
7beb24df6b | ||
|
8c9a6bc255 | ||
|
494b66695d | ||
|
ab749f8f58 | ||
|
2d646f5c7d | ||
|
3230448de9 | ||
|
74d4bf5fb1 | ||
|
77dd934774 | ||
|
2090e7d4fa | ||
|
426282e4b0 | ||
|
04632be459 | ||
|
8f71164d60 | ||
|
5f3ae9218d | ||
|
386a6ed69f | ||
|
5bf2f4cc8d | ||
|
638fecd6a5 | ||
|
58f15d2720 | ||
|
1aecb09c15 | ||
|
92cbce71d3 | ||
|
9bfa36efab | ||
|
8142dcc96a | ||
|
75f2fd83a4 | ||
|
fbfd90a1f8 | ||
|
3d82214289 | ||
|
61e4da3b0d | ||
|
54a50107a5 | ||
|
15a5ceeea7 | ||
|
1a79294029 | ||
|
9f2b637978 | ||
|
08f1ef4cc3 | ||
|
a99d4c8ed2 | ||
|
f6eaf8534d | ||
|
d9a37018c5 | ||
|
1b4859d135 | ||
|
3c4eb540f8 | ||
|
0de7ea3ca0 | ||
|
eb6fde7687 | ||
|
57061f40af | ||
|
2e8bc3b2b0 | ||
|
c59a01e4ce | ||
|
2e0b7c8b58 | ||
|
a71af09b16 | ||
|
9c3bd8e9d1 | ||
|
0722b0a29e | ||
|
19b9bae48f | ||
|
b7289f8536 | ||
|
5fae44dd86 | ||
|
e0e2b32c55 | ||
|
acbb35b4c3 | ||
|
6fd7220e46 | ||
|
8842f99357 | ||
|
2644070e7c | ||
|
e583294854 | ||
|
e084906f8a | ||
|
11f59dea0b | ||
|
ff44995f59 | ||
|
004d9b9ee8 | ||
|
3bdb54961f | ||
|
73edf7bfa7 | ||
|
b2aeed317a | ||
|
aa23bb295c | ||
|
2238faf39e | ||
|
201d6b5a71 | ||
|
f994811cbe | ||
|
be713631b9 | ||
|
8ca0ca1fb6 | ||
|
d16cff04dd | ||
|
a8606239fd | ||
|
74525024bf | ||
|
fd573fff29 | ||
|
ec7309a62b | ||
|
c0a8715e30 | ||
|
01572b6331 | ||
|
7b43fefa40 | ||
|
a3145d1ba3 | ||
|
5dfe064257 | ||
|
5aa8a56502 | ||
|
0f6a0216f7 | ||
|
ea5e046236 | ||
|
0b0d503c15 | ||
|
ee6a7e99fa | ||
|
ecb8c8eee1 | ||
|
81c04aeda6 | ||
|
1c3adb2066 | ||
|
bac2122ad7 | ||
|
f9693c55bc | ||
|
7e4e56931c | ||
|
b99e8206d1 | ||
|
cb78914674 | ||
|
f649b5af18 | ||
|
7619874170 | ||
|
97608c7804 | ||
|
9bcffae927 | ||
|
abeec499b2 | ||
|
795bddeb34 | ||
|
549aa48c40 | ||
|
287c27f1af | ||
|
a11384b3ca | ||
|
a684de0bf7 | ||
|
8b45c12958 | ||
|
c6a2bf7c94 | ||
|
a261230a23 | ||
|
614469e812 | ||
|
3cbe548f75 | ||
|
7a1c6f7661 | ||
|
295e242068 | ||
|
b4604c35c9 | ||
|
2a56740e9b | ||
|
c8bcef5577 | ||
|
38f8329068 | ||
|
a127f1fade | ||
|
be26e71878 | ||
|
9125cd3ffd | ||
|
f34db4c07f | ||
|
e0ea26e957 | ||
|
ce10bee1cd | ||
|
336734e27c | ||
|
d261d9b2e4 | ||
|
125360d4f1 | ||
|
63eaf4f396 | ||
|
26da39d104 | ||
|
2ced8ee24b | ||
|
42a2e30144 | ||
|
c7f8ed657c | ||
|
671f63a4da | ||
|
d195b60384 | ||
|
d0f1a65f28 | ||
|
3213dbf8c4 | ||
|
ed29a9ba11 | ||
|
77db9b7bed | ||
|
a4a095ed06 | ||
|
913ebd1732 | ||
|
ac3260b082 | ||
|
60309b1356 | ||
|
9df5452f7d | ||
|
49d8574391 | ||
|
6492334154 | ||
|
5480878f58 | ||
|
a7157bee2e | ||
|
ac5dc648d8 | ||
|
34f646e465 | ||
|
2b555e17ee | ||
|
a80e8833b2 | ||
|
a7d2d23910 | ||
|
5fdbcc8205 | ||
|
e8c5186e15 | ||
|
9f30c086ce | ||
|
1b359b696a | ||
|
4c519c8492 | ||
|
c999da090f | ||
|
db2c0ef843 | ||
|
cac39c4606 | ||
|
47d34023e6 | ||
|
059e993cf7 | ||
|
65737d0c54 | ||
|
6a883c4b4a | ||
|
65987d083d | ||
|
7a5a26b77a | ||
|
a1c5622601 | ||
|
dbfaad0241 | ||
|
5404d03d59 | ||
|
d227b369c7 | ||
|
a977b1282b | ||
|
21d85e8d2a | ||
|
35d5c54947 | ||
|
9357cb1ca4 | ||
|
ea0cc033f1 | ||
|
002611fcdf | ||
|
bed0109c6c | ||
|
9cc5a6ab79 | ||
|
e1a0d0a23f | ||
|
7d8f8a32b5 | ||
|
34ae8dae50 | ||
|
6a46bd513e | ||
|
7ee971ea29 | ||
|
e5a7f810af | ||
|
1b69d4fa59 | ||
|
a5c8f82089 | ||
|
8b187bb352 | ||
|
b6ac276690 | ||
|
1cf22dd037 | ||
|
ee4039f37d | ||
|
8b0afae997 | ||
|
a60d97e956 | ||
|
14bbe7c9bf | ||
|
af6e99578f | ||
|
ee38aeb99f | ||
|
9c609f2530 | ||
|
d079d327d7 | ||
|
c93498bd46 | ||
|
48c26e46ac | ||
|
0b23f6ad83 | ||
|
043ee5d5fe | ||
|
cb834de9a0 | ||
|
f8a4ca240a | ||
|
f2f60d26d6 | ||
|
2b188fad8a | ||
|
26b2cacf36 | ||
|
33587a11bf | ||
|
d100fbc601 | ||
|
07b8dfac04 | ||
|
a6ff10e23f | ||
|
8d15c7da82 | ||
|
e035305756 | ||
|
92b0965b56 | ||
|
48af9556ce | ||
|
3f09d73851 | ||
|
94e1d3f340 | ||
|
28e133bb1f | ||
|
129557feea | ||
|
9a26afa4ea | ||
|
e7d8354cb4 | ||
|
44d27b16d7 | ||
|
8cdfa23d9e | ||
|
ae9236db1f | ||
|
17822d1b5f | ||
|
9b3c975bfe | ||
|
03ed7cce3e | ||
|
b5bf08da54 | ||
|
e718de74b8 | ||
|
ce66305970 | ||
|
99cf7a6a3c | ||
|
359bbac0d7 | ||
|
517fcbe5f1 | ||
|
de34cc5743 | ||
|
de51595c21 | ||
|
a50d197c9c | ||
|
a219ef71b8 | ||
|
f156dceb92 | ||
|
be9954d734 | ||
|
61dab04e07 | ||
|
d18c5fa35d | ||
|
882d700f99 | ||
|
48e88528c4 | ||
|
d4270a3332 | ||
|
c0eaa8e783 | ||
|
c9a0d0b24a | ||
|
83ef24aa11 | ||
|
86f0b5ec0b | ||
|
0e584bba7f | ||
|
0a380c9757 | ||
|
56779ee521 | ||
|
bc0818fc4c | ||
|
15544019da | ||
|
1ea8c2828e | ||
|
5b37bba7da | ||
|
173af39d1f | ||
|
0fe41f2c93 | ||
|
d71ce03569 | ||
|
88496597ee | ||
|
e69bcd9018 | ||
|
67c76bbea8 | ||
|
fabcced208 | ||
|
60f38435d4 | ||
|
147970666c | ||
|
37cd0123d4 | ||
|
a01e94cf57 | ||
|
20ce0a3257 | ||
|
fd0f83d500 | ||
|
3c2b3e2b31 | ||
|
7dfc21a8ca | ||
|
d1ebdd0a87 | ||
|
38f074f42c | ||
|
99638f4e11 | ||
|
3302782c77 | ||
|
c32068e4d7 | ||
|
7af8bc08b7 | ||
|
64caccef0d | ||
|
4a477bf85f | ||
|
a4df9c960a | ||
|
d99681da68 | ||
|
3465fc3fed | ||
|
292f07b784 | ||
|
066470cebb | ||
|
7b072c03aa | ||
|
61fa2bb95b | ||
|
434f936325 | ||
|
65e846d888 | ||
|
82cf5f8207 | ||
|
c08215621d | ||
|
ffc352d7cc | ||
|
4280b9f4db | ||
|
293fc4dc12 | ||
|
d30b889d60 | ||
|
aa4bd5b388 | ||
|
357daeae9c | ||
|
d714c9c6e3 | ||
|
0a40e8e3d5 | ||
|
15f9fe75d1 | ||
|
418bd688ee | ||
|
2f48bda7c3 | ||
|
440d8e0757 | ||
|
57df145536 | ||
|
a312ca18d1 | ||
|
feef20b720 | ||
|
3450854f5a | ||
|
4052f4fdf1 | ||
|
9569036bf2 | ||
|
2c329c3f03 | ||
|
0cb412870a | ||
|
34970f3a3d | ||
|
a6960ceab7 | ||
|
8d75206ca6 | ||
|
005805f161 | ||
|
f5389785da | ||
|
d3f5a4cc76 | ||
|
5a195df013 | ||
|
229f703ec6 | ||
|
328c64b611 | ||
|
93e99a8303 | ||
|
f39fa7b8d8 | ||
|
9d09502341 | ||
|
cffc818f79 | ||
|
20a307c4b6 | ||
|
72ea55dd02 | ||
|
a71e83346d | ||
|
a0570677a1 | ||
|
f4ce2ed242 | ||
|
672042c687 | ||
|
31d67dddec | ||
|
1860b7824a | ||
|
aabb991fa6 | ||
|
c5e023e735 | ||
|
28e6f61a7e | ||
|
45442a99f6 | ||
|
ddab65ce00 | ||
|
69fdeabe97 | ||
|
3de7ed3286 | ||
|
6194f11dd9 | ||
|
4875887c0f | ||
|
1510dffa8d | ||
|
dfad94e1f0 | ||
|
3e0fd2fabf | ||
|
1e54d14b39 | ||
|
b9a1fa194f | ||
|
5764dd74c2 | ||
|
76fbcbaf58 | ||
|
db7aa8538f | ||
|
7c07317f73 | ||
|
fbceed67d3 | ||
|
40fec9b4db | ||
|
826abb8a5f | ||
|
0fe999d4f3 | ||
|
b22cd8fe61 | ||
|
a7ea391a07 | ||
|
7fb1d4d449 |
277
CMakeLists.txt
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
|
||||||
|
|
||||||
|
# Project name
|
||||||
|
# ============
|
||||||
|
# original
|
||||||
|
PROJECT(SalomeNETGENPLUGIN C CXX)
|
||||||
|
# upper case
|
||||||
|
STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
|
||||||
|
|
||||||
|
# Common CMake macros
|
||||||
|
# ===================
|
||||||
|
SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
|
||||||
|
IF(EXISTS ${CONFIGURATION_ROOT_DIR})
|
||||||
|
LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
|
||||||
|
INCLUDE(SalomeMacros NO_POLICY_SCOPE)
|
||||||
|
ELSE()
|
||||||
|
MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
# ===========
|
||||||
|
SALOME_SETUP_VERSION(9.12.0)
|
||||||
|
MESSAGE(STATUS "Building ${PROJECT_NAME_UC} ${${PROJECT_NAME_UC}_VERSION} from \"${${PROJECT_NAME_UC}_GIT_SHA1}\"")
|
||||||
|
|
||||||
|
# Find KERNEL
|
||||||
|
# ===========
|
||||||
|
SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
|
||||||
|
IF(EXISTS ${KERNEL_ROOT_DIR})
|
||||||
|
FIND_PACKAGE(SalomeKERNEL REQUIRED)
|
||||||
|
KERNEL_WITH_CORBA() # check whether KERNEL built with CORBA
|
||||||
|
ELSE(EXISTS ${KERNEL_ROOT_DIR})
|
||||||
|
MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR")
|
||||||
|
ENDIF(EXISTS ${KERNEL_ROOT_DIR})
|
||||||
|
|
||||||
|
# Platform setup
|
||||||
|
# ==============
|
||||||
|
INCLUDE(SalomeSetupPlatform) # From KERNEL
|
||||||
|
# Always build libraries as shared objects:
|
||||||
|
SET(BUILD_SHARED_LIBS TRUE)
|
||||||
|
|
||||||
|
# User options
|
||||||
|
# ============
|
||||||
|
OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
|
||||||
|
OPTION(SALOME_BUILD_DOC "Generate SALOME NETGENPLUGIN documentation" ON)
|
||||||
|
|
||||||
|
IF(SALOME_BUILD_TESTS)
|
||||||
|
ENABLE_TESTING()
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
# Advanced options:
|
||||||
|
OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
|
||||||
|
|
||||||
|
##
|
||||||
|
## From KERNEL:
|
||||||
|
##
|
||||||
|
|
||||||
|
# Python
|
||||||
|
FIND_PACKAGE(SalomePythonInterp REQUIRED)
|
||||||
|
FIND_PACKAGE(SalomePythonLibs REQUIRED)
|
||||||
|
# Boost
|
||||||
|
FIND_PACKAGE(SalomeBoost REQUIRED)
|
||||||
|
# CORBA
|
||||||
|
FIND_PACKAGE(SalomeOmniORB REQUIRED)
|
||||||
|
FIND_PACKAGE(SalomeOmniORBPy REQUIRED)
|
||||||
|
|
||||||
|
# Other KERNEL optionals:
|
||||||
|
IF(SALOME_BUILD_DOC)
|
||||||
|
FIND_PACKAGE(SalomeDoxygen)
|
||||||
|
SALOME_LOG_OPTIONAL_PACKAGE(Doxygen SALOME_BUILD_DOC)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
# Find GUI (optional)
|
||||||
|
# ===========
|
||||||
|
IF(SALOME_BUILD_GUI)
|
||||||
|
SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI")
|
||||||
|
IF(EXISTS ${GUI_ROOT_DIR})
|
||||||
|
FIND_PACKAGE(SalomeGUI)
|
||||||
|
SALOME_GUI_WITH_CORBA() # check whether GUI built with CORBA
|
||||||
|
SALOME_GUI_MODE(SALOME_USE_SALOMEOBJECT)
|
||||||
|
ELSE(EXISTS ${GUI_ROOT_DIR})
|
||||||
|
MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR")
|
||||||
|
ENDIF(EXISTS ${GUI_ROOT_DIR})
|
||||||
|
SALOME_LOG_OPTIONAL_PACKAGE(SalomeGUI SALOME_BUILD_GUI)
|
||||||
|
ENDIF(SALOME_BUILD_GUI)
|
||||||
|
|
||||||
|
##
|
||||||
|
## From GUI:
|
||||||
|
##
|
||||||
|
|
||||||
|
IF(SALOME_BUILD_GUI)
|
||||||
|
# Qt
|
||||||
|
FIND_PACKAGE(SalomeQt5 REQUIRED)
|
||||||
|
ENDIF(SALOME_BUILD_GUI)
|
||||||
|
|
||||||
|
# OCCT
|
||||||
|
FIND_PACKAGE(SalomeOpenCASCADE REQUIRED)
|
||||||
|
# VTK
|
||||||
|
FIND_PACKAGE(SalomeVTK REQUIRED)
|
||||||
|
|
||||||
|
|
||||||
|
# Find GEOM
|
||||||
|
# ===========
|
||||||
|
|
||||||
|
SET(GEOM_ROOT_DIR $ENV{GEOM_ROOT_DIR} CACHE PATH "Path to the Salome GEOM")
|
||||||
|
IF(EXISTS ${GEOM_ROOT_DIR})
|
||||||
|
FIND_PACKAGE(SalomeGEOM REQUIRED)
|
||||||
|
ELSE(EXISTS ${GEOM_ROOT_DIR})
|
||||||
|
MESSAGE(FATAL_ERROR "We absolutely need a Salome GEOM, please define GEOM_ROOT_DIR")
|
||||||
|
ENDIF(EXISTS ${GEOM_ROOT_DIR})
|
||||||
|
|
||||||
|
# Find SMESH
|
||||||
|
# ===========
|
||||||
|
SET(SMESH_ROOT_DIR $ENV{SMESH_ROOT_DIR} CACHE PATH "Path to the Salome SMESH")
|
||||||
|
IF(EXISTS ${SMESH_ROOT_DIR})
|
||||||
|
FIND_PACKAGE(SalomeSMESH REQUIRED)
|
||||||
|
ADD_DEFINITIONS(${SMESH_DEFINITIONS})
|
||||||
|
INCLUDE_DIRECTORIES(${SMESH_INCLUDE_DIRS})
|
||||||
|
IF(SALOME_BUILD_GUI)
|
||||||
|
IF(NOT SALOME_SMESH_BUILD_GUI)
|
||||||
|
MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH with GUI, please set SALOME_BUILD_GUI=ON in SMESH module")
|
||||||
|
ENDIF(NOT SALOME_SMESH_BUILD_GUI)
|
||||||
|
ENDIF(SALOME_BUILD_GUI)
|
||||||
|
IF(SALOME_BUILD_DOC)
|
||||||
|
IF(NOT SALOME_SMESH_BUILD_DOC)
|
||||||
|
MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH documentation to build NETGENPLUGIN documentation. "
|
||||||
|
"So, you should either set SALOME_BUILD_DOC=OFF in NETGENPLUGIN or set SALOME_BUILD_DOC=ON in SMESH module.")
|
||||||
|
ENDIF(NOT SALOME_SMESH_BUILD_DOC)
|
||||||
|
ENDIF(SALOME_BUILD_DOC)
|
||||||
|
ELSE(EXISTS ${SMESH_ROOT_DIR})
|
||||||
|
MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH, please define SMESH_ROOT_DIR")
|
||||||
|
ENDIF(EXISTS ${SMESH_ROOT_DIR})
|
||||||
|
|
||||||
|
##
|
||||||
|
## NETGENPLUGIN specifics
|
||||||
|
##
|
||||||
|
|
||||||
|
FIND_PACKAGE(SalomeNetgen REQUIRED)
|
||||||
|
ADD_DEFINITIONS(${NETGEN_DEFINITIONS})
|
||||||
|
|
||||||
|
IF (NETGEN_V6)
|
||||||
|
SET(NETGEN_VERSION_MAJOR 6)
|
||||||
|
ELSE()
|
||||||
|
SET(NETGEN_VERSION_MAJOR 5)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
# Detection summary:
|
||||||
|
SALOME_PACKAGE_REPORT_AND_CHECK()
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
# (default values taken from KERNEL)
|
||||||
|
# ===========
|
||||||
|
SET(SALOME_INSTALL_BINS "${SALOME_INSTALL_BINS}" CACHE PATH "Install path: SALOME binaries")
|
||||||
|
SET(SALOME_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "Install path: SALOME libs")
|
||||||
|
SET(SALOME_INSTALL_IDLS "${SALOME_INSTALL_IDLS}" CACHE PATH "Install path: SALOME IDL files")
|
||||||
|
SET(SALOME_INSTALL_HEADERS "${SALOME_INSTALL_HEADERS}" CACHE PATH "Install path: SALOME headers")
|
||||||
|
SET(SALOME_INSTALL_SCRIPT_SCRIPTS "${SALOME_INSTALL_SCRIPT_SCRIPTS}" CACHE PATH
|
||||||
|
"Install path: SALOME scripts")
|
||||||
|
SET(SALOME_INSTALL_SCRIPT_DATA "${SALOME_INSTALL_SCRIPT_DATA}" CACHE PATH
|
||||||
|
"Install path: SALOME script data")
|
||||||
|
SET(SALOME_INSTALL_SCRIPT_PYTHON "${SALOME_INSTALL_SCRIPT_PYTHON}" CACHE PATH
|
||||||
|
"Install path: SALOME Python scripts")
|
||||||
|
SET(SALOME_INSTALL_APPLISKEL_SCRIPTS "${SALOME_INSTALL_APPLISKEL_SCRIPTS}" CACHE PATH
|
||||||
|
"Install path: SALOME application skeleton - scripts")
|
||||||
|
SET(SALOME_INSTALL_APPLISKEL_PYTHON "${SALOME_INSTALL_APPLISKEL_PYTHON}" CACHE PATH
|
||||||
|
"Install path: SALOME application skeleton - Python")
|
||||||
|
SET(SALOME_INSTALL_PYTHON "${SALOME_INSTALL_PYTHON}" CACHE PATH "Install path: SALOME Python stuff")
|
||||||
|
SET(SALOME_INSTALL_PYTHON_SHARED "${SALOME_INSTALL_PYTHON_SHARED}" CACHE PATH
|
||||||
|
"Install path: SALOME Python shared modules")
|
||||||
|
SET(SALOME_INSTALL_CMAKE_LOCAL "${SALOME_INSTALL_CMAKE_LOCAL}" CACHE PATH
|
||||||
|
"Install path: local SALOME CMake files")
|
||||||
|
SET(SALOME_INSTALL_AMCONFIG_LOCAL "${SALOME_INSTALL_AMCONFIG_LOCAL}" CACHE PATH
|
||||||
|
"Install path: local SALOME config files (obsolete, to be removed)")
|
||||||
|
SET(SALOME_INSTALL_RES "${SALOME_INSTALL_RES}" CACHE PATH "Install path: SALOME resources")
|
||||||
|
SET(SALOME_INSTALL_DOC "${SALOME_INSTALL_DOC}" CACHE PATH "Install path: SALOME documentation")
|
||||||
|
|
||||||
|
# Specific to NETGENPLUGIN:
|
||||||
|
SET(SALOME_NETGENPLUGIN_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/netgenplugin" CACHE PATH
|
||||||
|
"Install path: SALOME NETGENPLUGIN specific data")
|
||||||
|
|
||||||
|
MARK_AS_ADVANCED(SALOME_INSTALL_BINS SALOME_INSTALL_LIBS SALOME_INSTALL_IDLS SALOME_INSTALL_HEADERS)
|
||||||
|
MARK_AS_ADVANCED(SALOME_INSTALL_SCRIPT_SCRIPTS SALOME_INSTALL_SCRIPT_DATA SALOME_INSTALL_SCRIPT_PYTHON)
|
||||||
|
MARK_AS_ADVANCED(SALOME_INSTALL_APPLISKEL_SCRIPTS SALOME_INSTALL_APPLISKEL_PYTHON SALOME_INSTALL_CMAKE_LOCAL SALOME_INSTALL_RES)
|
||||||
|
MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED)
|
||||||
|
MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG_LOCAL SALOME_INSTALL_DOC)
|
||||||
|
MARK_AS_ADVANCED(SALOME_NETGENPLUGIN_INSTALL_RES_DATA)
|
||||||
|
|
||||||
|
# Accumulate environment variables for NETGENPLUGIN module
|
||||||
|
SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
|
||||||
|
${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_PYTHON})
|
||||||
|
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_LIBS})
|
||||||
|
|
||||||
|
# Sources
|
||||||
|
# ========
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(idl)
|
||||||
|
ADD_SUBDIRECTORY(adm_local)
|
||||||
|
ADD_SUBDIRECTORY(resources)
|
||||||
|
ADD_SUBDIRECTORY(src)
|
||||||
|
ADD_SUBDIRECTORY(bin)
|
||||||
|
IF(SALOME_BUILD_DOC)
|
||||||
|
ADD_SUBDIRECTORY(doc)
|
||||||
|
ENDIF(SALOME_BUILD_DOC)
|
||||||
|
|
||||||
|
# Header configuration
|
||||||
|
# ====================
|
||||||
|
SALOME_CONFIGURE_FILE(NETGENPLUGIN_version.h.in NETGENPLUGIN_version.h INSTALL ${SALOME_INSTALL_HEADERS})
|
||||||
|
|
||||||
|
# Configuration export
|
||||||
|
# (here only the level 1 prerequisites are exposed)
|
||||||
|
# ====================
|
||||||
|
INCLUDE(CMakePackageConfigHelpers)
|
||||||
|
|
||||||
|
# List of targets in this project we want to make visible to the rest of the world.
|
||||||
|
# They all have to be INSTALL'd with the option "EXPORT ${PROJECT_NAME}TargetGroup"
|
||||||
|
SET(_${PROJECT_NAME}_exposed_targets
|
||||||
|
NETGENEngine SalomeIDLNETGENPLUGIN
|
||||||
|
)
|
||||||
|
|
||||||
|
IF(SALOME_BUILD_GUI)
|
||||||
|
LIST(APPEND _${PROJECT_NAME}_exposed_targets
|
||||||
|
NETGENPluginGUI
|
||||||
|
)
|
||||||
|
ENDIF(SALOME_BUILD_GUI)
|
||||||
|
|
||||||
|
# Add all targets to the build-tree export set
|
||||||
|
EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
|
||||||
|
FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake)
|
||||||
|
|
||||||
|
# Create the configuration files:
|
||||||
|
# - in the build tree:
|
||||||
|
|
||||||
|
# Ensure the variables are always defined for the configure:
|
||||||
|
SET(SMESH_ROOT_DIR "${SMESH_ROOT_DIR}")
|
||||||
|
SET(NETGEN_ROOT_DIR "${NETGEN_ROOT_DIR}")
|
||||||
|
|
||||||
|
SET(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}/include")
|
||||||
|
|
||||||
|
# Build variables that will be expanded when configuring Salome<MODULE>Config.cmake:
|
||||||
|
SALOME_CONFIGURE_PREPARE(Netgen)
|
||||||
|
|
||||||
|
CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_NAME}Config.cmake.in
|
||||||
|
${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
|
||||||
|
INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
|
||||||
|
PATH_VARS CONF_INCLUDE_DIRS SALOME_INSTALL_CMAKE_LOCAL CMAKE_INSTALL_PREFIX
|
||||||
|
SMESH_ROOT_DIR NETGEN_ROOT_DIR)
|
||||||
|
|
||||||
|
WRITE_BASIC_PACKAGE_VERSION_FILE(${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
|
||||||
|
VERSION ${${PROJECT_NAME_UC}_VERSION}
|
||||||
|
COMPATIBILITY AnyNewerVersion)
|
||||||
|
|
||||||
|
# Install the CMake configuration files:
|
||||||
|
INSTALL(FILES
|
||||||
|
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
|
||||||
|
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
|
||||||
|
DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}")
|
||||||
|
|
||||||
|
# Install the export set for use with the install-tree
|
||||||
|
INSTALL(EXPORT ${PROJECT_NAME}TargetGroup DESTINATION "${SALOME_INSTALL_CMAKE_LOCAL}"
|
||||||
|
FILE ${PROJECT_NAME}Targets.cmake)
|
340
COPYING
@ -1,340 +0,0 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
Version 2, June 1991
|
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
|
||||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The licenses for most software are designed to take away your
|
|
||||||
freedom to share and change it. By contrast, the GNU General Public
|
|
||||||
License is intended to guarantee your freedom to share and change free
|
|
||||||
software--to make sure the software is free for all its users. This
|
|
||||||
General Public License applies to most of the Free Software
|
|
||||||
Foundation's software and to any other program whose authors commit to
|
|
||||||
using it. (Some other Free Software Foundation software is covered by
|
|
||||||
the GNU Library General Public License instead.) You can apply it to
|
|
||||||
your programs, too.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
this service if you wish), that you receive source code or can get it
|
|
||||||
if you want it, that you can change the software or use pieces of it
|
|
||||||
in new free programs; and that you know you can do these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to make restrictions that forbid
|
|
||||||
anyone to deny you these rights or to ask you to surrender the rights.
|
|
||||||
These restrictions translate to certain responsibilities for you if you
|
|
||||||
distribute copies of the software, or if you modify it.
|
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether
|
|
||||||
gratis or for a fee, you must give the recipients all the rights that
|
|
||||||
you have. You must make sure that they, too, receive or can get the
|
|
||||||
source code. And you must show them these terms so they know their
|
|
||||||
rights.
|
|
||||||
|
|
||||||
We protect your rights with two steps: (1) copyright the software, and
|
|
||||||
(2) offer you this license which gives you legal permission to copy,
|
|
||||||
distribute and/or modify the software.
|
|
||||||
|
|
||||||
Also, for each author's protection and ours, we want to make certain
|
|
||||||
that everyone understands that there is no warranty for this free
|
|
||||||
software. If the software is modified by someone else and passed on, we
|
|
||||||
want its recipients to know that what they have is not the original, so
|
|
||||||
that any problems introduced by others will not reflect on the original
|
|
||||||
authors' reputations.
|
|
||||||
|
|
||||||
Finally, any free program is threatened constantly by software
|
|
||||||
patents. We wish to avoid the danger that redistributors of a free
|
|
||||||
program will individually obtain patent licenses, in effect making the
|
|
||||||
program proprietary. To prevent this, we have made it clear that any
|
|
||||||
patent must be licensed for everyone's free use or not licensed at all.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
||||||
|
|
||||||
0. This License applies to any program or other work which contains
|
|
||||||
a notice placed by the copyright holder saying it may be distributed
|
|
||||||
under the terms of this General Public License. The "Program", below,
|
|
||||||
refers to any such program or work, and a "work based on the Program"
|
|
||||||
means either the Program or any derivative work under copyright law:
|
|
||||||
that is to say, a work containing the Program or a portion of it,
|
|
||||||
either verbatim or with modifications and/or translated into another
|
|
||||||
language. (Hereinafter, translation is included without limitation in
|
|
||||||
the term "modification".) Each licensee is addressed as "you".
|
|
||||||
|
|
||||||
Activities other than copying, distribution and modification are not
|
|
||||||
covered by this License; they are outside its scope. The act of
|
|
||||||
running the Program is not restricted, and the output from the Program
|
|
||||||
is covered only if its contents constitute a work based on the
|
|
||||||
Program (independent of having been made by running the Program).
|
|
||||||
Whether that is true depends on what the Program does.
|
|
||||||
|
|
||||||
1. You may copy and distribute verbatim copies of the Program's
|
|
||||||
source code as you receive it, in any medium, provided that you
|
|
||||||
conspicuously and appropriately publish on each copy an appropriate
|
|
||||||
copyright notice and disclaimer of warranty; keep intact all the
|
|
||||||
notices that refer to this License and to the absence of any warranty;
|
|
||||||
and give any other recipients of the Program a copy of this License
|
|
||||||
along with the Program.
|
|
||||||
|
|
||||||
You may charge a fee for the physical act of transferring a copy, and
|
|
||||||
you may at your option offer warranty protection in exchange for a fee.
|
|
||||||
|
|
||||||
2. You may modify your copy or copies of the Program or any portion
|
|
||||||
of it, thus forming a work based on the Program, and copy and
|
|
||||||
distribute such modifications or work under the terms of Section 1
|
|
||||||
above, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) You must cause the modified files to carry prominent notices
|
|
||||||
stating that you changed the files and the date of any change.
|
|
||||||
|
|
||||||
b) You must cause any work that you distribute or publish, that in
|
|
||||||
whole or in part contains or is derived from the Program or any
|
|
||||||
part thereof, to be licensed as a whole at no charge to all third
|
|
||||||
parties under the terms of this License.
|
|
||||||
|
|
||||||
c) If the modified program normally reads commands interactively
|
|
||||||
when run, you must cause it, when started running for such
|
|
||||||
interactive use in the most ordinary way, to print or display an
|
|
||||||
announcement including an appropriate copyright notice and a
|
|
||||||
notice that there is no warranty (or else, saying that you provide
|
|
||||||
a warranty) and that users may redistribute the program under
|
|
||||||
these conditions, and telling the user how to view a copy of this
|
|
||||||
License. (Exception: if the Program itself is interactive but
|
|
||||||
does not normally print such an announcement, your work based on
|
|
||||||
the Program is not required to print an announcement.)
|
|
||||||
|
|
||||||
These requirements apply to the modified work as a whole. If
|
|
||||||
identifiable sections of that work are not derived from the Program,
|
|
||||||
and can be reasonably considered independent and separate works in
|
|
||||||
themselves, then this License, and its terms, do not apply to those
|
|
||||||
sections when you distribute them as separate works. But when you
|
|
||||||
distribute the same sections as part of a whole which is a work based
|
|
||||||
on the Program, the distribution of the whole must be on the terms of
|
|
||||||
this License, whose permissions for other licensees extend to the
|
|
||||||
entire whole, and thus to each and every part regardless of who wrote it.
|
|
||||||
|
|
||||||
Thus, it is not the intent of this section to claim rights or contest
|
|
||||||
your rights to work written entirely by you; rather, the intent is to
|
|
||||||
exercise the right to control the distribution of derivative or
|
|
||||||
collective works based on the Program.
|
|
||||||
|
|
||||||
In addition, mere aggregation of another work not based on the Program
|
|
||||||
with the Program (or with a work based on the Program) on a volume of
|
|
||||||
a storage or distribution medium does not bring the other work under
|
|
||||||
the scope of this License.
|
|
||||||
|
|
||||||
3. You may copy and distribute the Program (or a work based on it,
|
|
||||||
under Section 2) in object code or executable form under the terms of
|
|
||||||
Sections 1 and 2 above provided that you also do one of the following:
|
|
||||||
|
|
||||||
a) Accompany it with the complete corresponding machine-readable
|
|
||||||
source code, which must be distributed under the terms of Sections
|
|
||||||
1 and 2 above on a medium customarily used for software interchange; or,
|
|
||||||
|
|
||||||
b) Accompany it with a written offer, valid for at least three
|
|
||||||
years, to give any third party, for a charge no more than your
|
|
||||||
cost of physically performing source distribution, a complete
|
|
||||||
machine-readable copy of the corresponding source code, to be
|
|
||||||
distributed under the terms of Sections 1 and 2 above on a medium
|
|
||||||
customarily used for software interchange; or,
|
|
||||||
|
|
||||||
c) Accompany it with the information you received as to the offer
|
|
||||||
to distribute corresponding source code. (This alternative is
|
|
||||||
allowed only for noncommercial distribution and only if you
|
|
||||||
received the program in object code or executable form with such
|
|
||||||
an offer, in accord with Subsection b above.)
|
|
||||||
|
|
||||||
The source code for a work means the preferred form of the work for
|
|
||||||
making modifications to it. For an executable work, complete source
|
|
||||||
code means all the source code for all modules it contains, plus any
|
|
||||||
associated interface definition files, plus the scripts used to
|
|
||||||
control compilation and installation of the executable. However, as a
|
|
||||||
special exception, the source code distributed need not include
|
|
||||||
anything that is normally distributed (in either source or binary
|
|
||||||
form) with the major components (compiler, kernel, and so on) of the
|
|
||||||
operating system on which the executable runs, unless that component
|
|
||||||
itself accompanies the executable.
|
|
||||||
|
|
||||||
If distribution of executable or object code is made by offering
|
|
||||||
access to copy from a designated place, then offering equivalent
|
|
||||||
access to copy the source code from the same place counts as
|
|
||||||
distribution of the source code, even though third parties are not
|
|
||||||
compelled to copy the source along with the object code.
|
|
||||||
|
|
||||||
4. You may not copy, modify, sublicense, or distribute the Program
|
|
||||||
except as expressly provided under this License. Any attempt
|
|
||||||
otherwise to copy, modify, sublicense or distribute the Program is
|
|
||||||
void, and will automatically terminate your rights under this License.
|
|
||||||
However, parties who have received copies, or rights, from you under
|
|
||||||
this License will not have their licenses terminated so long as such
|
|
||||||
parties remain in full compliance.
|
|
||||||
|
|
||||||
5. You are not required to accept this License, since you have not
|
|
||||||
signed it. However, nothing else grants you permission to modify or
|
|
||||||
distribute the Program or its derivative works. These actions are
|
|
||||||
prohibited by law if you do not accept this License. Therefore, by
|
|
||||||
modifying or distributing the Program (or any work based on the
|
|
||||||
Program), you indicate your acceptance of this License to do so, and
|
|
||||||
all its terms and conditions for copying, distributing or modifying
|
|
||||||
the Program or works based on it.
|
|
||||||
|
|
||||||
6. Each time you redistribute the Program (or any work based on the
|
|
||||||
Program), the recipient automatically receives a license from the
|
|
||||||
original licensor to copy, distribute or modify the Program subject to
|
|
||||||
these terms and conditions. You may not impose any further
|
|
||||||
restrictions on the recipients' exercise of the rights granted herein.
|
|
||||||
You are not responsible for enforcing compliance by third parties to
|
|
||||||
this License.
|
|
||||||
|
|
||||||
7. If, as a consequence of a court judgment or allegation of patent
|
|
||||||
infringement or for any other reason (not limited to patent issues),
|
|
||||||
conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot
|
|
||||||
distribute so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you
|
|
||||||
may not distribute the Program at all. For example, if a patent
|
|
||||||
license would not permit royalty-free redistribution of the Program by
|
|
||||||
all those who receive copies directly or indirectly through you, then
|
|
||||||
the only way you could satisfy both it and this License would be to
|
|
||||||
refrain entirely from distribution of the Program.
|
|
||||||
|
|
||||||
If any portion of this section is held invalid or unenforceable under
|
|
||||||
any particular circumstance, the balance of the section is intended to
|
|
||||||
apply and the section as a whole is intended to apply in other
|
|
||||||
circumstances.
|
|
||||||
|
|
||||||
It is not the purpose of this section to induce you to infringe any
|
|
||||||
patents or other property right claims or to contest validity of any
|
|
||||||
such claims; this section has the sole purpose of protecting the
|
|
||||||
integrity of the free software distribution system, which is
|
|
||||||
implemented by public license practices. Many people have made
|
|
||||||
generous contributions to the wide range of software distributed
|
|
||||||
through that system in reliance on consistent application of that
|
|
||||||
system; it is up to the author/donor to decide if he or she is willing
|
|
||||||
to distribute software through any other system and a licensee cannot
|
|
||||||
impose that choice.
|
|
||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
|
||||||
be a consequence of the rest of this License.
|
|
||||||
|
|
||||||
8. If the distribution and/or use of the Program is restricted in
|
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
|
||||||
original copyright holder who places the Program under this License
|
|
||||||
may add an explicit geographical distribution limitation excluding
|
|
||||||
those countries, so that distribution is permitted only in or among
|
|
||||||
countries not thus excluded. In such case, this License incorporates
|
|
||||||
the limitation as if written in the body of this License.
|
|
||||||
|
|
||||||
9. The Free Software Foundation may publish revised and/or new versions
|
|
||||||
of the General Public License from time to time. Such new versions will
|
|
||||||
be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Program
|
|
||||||
specifies a version number of this License which applies to it and "any
|
|
||||||
later version", you have the option of following the terms and conditions
|
|
||||||
either of that version or of any later version published by the Free
|
|
||||||
Software Foundation. If the Program does not specify a version number of
|
|
||||||
this License, you may choose any version ever published by the Free Software
|
|
||||||
Foundation.
|
|
||||||
|
|
||||||
10. If you wish to incorporate parts of the Program into other free
|
|
||||||
programs whose distribution conditions are different, write to the author
|
|
||||||
to ask for permission. For software which is copyrighted by the Free
|
|
||||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
|
||||||
make exceptions for this. Our decision will be guided by the two goals
|
|
||||||
of preserving the free status of all derivatives of our free software and
|
|
||||||
of promoting the sharing and reuse of software generally.
|
|
||||||
|
|
||||||
NO WARRANTY
|
|
||||||
|
|
||||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
||||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
||||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
|
||||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
|
||||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
|
||||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
|
||||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
|
||||||
REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
|
||||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
||||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
|
||||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
|
||||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
||||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGES.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
convey the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program 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 General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If the program is interactive, make it output a short notice like this
|
|
||||||
when it starts in an interactive mode:
|
|
||||||
|
|
||||||
Gnomovision version 69, Copyright (C) year name of author
|
|
||||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it
|
|
||||||
under certain conditions; type `show c' for details.
|
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
||||||
parts of the General Public License. Of course, the commands you use may
|
|
||||||
be called something other than `show w' and `show c'; they could even be
|
|
||||||
mouse-clicks or menu items--whatever suits your program.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or your
|
|
||||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
||||||
necessary. Here is a sample; alter the names:
|
|
||||||
|
|
||||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
|
||||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
|
||||||
|
|
||||||
<signature of Ty Coon>, 1 April 1989
|
|
||||||
Ty Coon, President of Vice
|
|
||||||
|
|
||||||
This General Public License does not permit incorporating your program into
|
|
||||||
proprietary programs. If your program is a subroutine library, you may
|
|
||||||
consider it more useful to permit linking proprietary applications with the
|
|
||||||
library. If this is what you want to do, use the GNU Library General
|
|
||||||
Public License instead of this License.
|
|
504
LICENSE
Normal file
@ -0,0 +1,504 @@
|
|||||||
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
|
Version 2.1, February 1999
|
||||||
|
|
||||||
|
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
[This is the first released version of the Lesser GPL. It also counts
|
||||||
|
as the successor of the GNU Library Public License, version 2, hence
|
||||||
|
the version number 2.1.]
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
Licenses are intended to guarantee your freedom to share and change
|
||||||
|
free software--to make sure the software is free for all its users.
|
||||||
|
|
||||||
|
This license, the Lesser General Public License, applies to some
|
||||||
|
specially designated software packages--typically libraries--of the
|
||||||
|
Free Software Foundation and other authors who decide to use it. You
|
||||||
|
can use it too, but we suggest you first think carefully about whether
|
||||||
|
this license or the ordinary General Public License is the better
|
||||||
|
strategy to use in any particular case, based on the explanations below.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom of use,
|
||||||
|
not price. Our General Public Licenses are designed to make sure that
|
||||||
|
you have the freedom to distribute copies of free software (and charge
|
||||||
|
for this service if you wish); that you receive source code or can get
|
||||||
|
it if you want it; that you can change the software and use pieces of
|
||||||
|
it in new free programs; and that you are informed that you can do
|
||||||
|
these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
distributors to deny you these rights or to ask you to surrender these
|
||||||
|
rights. These restrictions translate to certain responsibilities for
|
||||||
|
you if you distribute copies of the library or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of the library, whether gratis
|
||||||
|
or for a fee, you must give the recipients all the rights that we gave
|
||||||
|
you. You must make sure that they, too, receive or can get the source
|
||||||
|
code. If you link other code with the library, you must provide
|
||||||
|
complete object files to the recipients, so that they can relink them
|
||||||
|
with the library after making changes to the library and recompiling
|
||||||
|
it. And you must show them these terms so they know their rights.
|
||||||
|
|
||||||
|
We protect your rights with a two-step method: (1) we copyright the
|
||||||
|
library, and (2) we offer you this license, which gives you legal
|
||||||
|
permission to copy, distribute and/or modify the library.
|
||||||
|
|
||||||
|
To protect each distributor, we want to make it very clear that
|
||||||
|
there is no warranty for the free library. Also, if the library is
|
||||||
|
modified by someone else and passed on, the recipients should know
|
||||||
|
that what they have is not the original version, so that the original
|
||||||
|
author's reputation will not be affected by problems that might be
|
||||||
|
introduced by others.
|
||||||
|
|
||||||
|
Finally, software patents pose a constant threat to the existence of
|
||||||
|
any free program. We wish to make sure that a company cannot
|
||||||
|
effectively restrict the users of a free program by obtaining a
|
||||||
|
restrictive license from a patent holder. Therefore, we insist that
|
||||||
|
any patent license obtained for a version of the library must be
|
||||||
|
consistent with the full freedom of use specified in this license.
|
||||||
|
|
||||||
|
Most GNU software, including some libraries, is covered by the
|
||||||
|
ordinary GNU General Public License. This license, the GNU Lesser
|
||||||
|
General Public License, applies to certain designated libraries, and
|
||||||
|
is quite different from the ordinary General Public License. We use
|
||||||
|
this license for certain libraries in order to permit linking those
|
||||||
|
libraries into non-free programs.
|
||||||
|
|
||||||
|
When a program is linked with a library, whether statically or using
|
||||||
|
a shared library, the combination of the two is legally speaking a
|
||||||
|
combined work, a derivative of the original library. The ordinary
|
||||||
|
General Public License therefore permits such linking only if the
|
||||||
|
entire combination fits its criteria of freedom. The Lesser General
|
||||||
|
Public License permits more lax criteria for linking other code with
|
||||||
|
the library.
|
||||||
|
|
||||||
|
We call this license the "Lesser" General Public License because it
|
||||||
|
does Less to protect the user's freedom than the ordinary General
|
||||||
|
Public License. It also provides other free software developers Less
|
||||||
|
of an advantage over competing non-free programs. These disadvantages
|
||||||
|
are the reason we use the ordinary General Public License for many
|
||||||
|
libraries. However, the Lesser license provides advantages in certain
|
||||||
|
special circumstances.
|
||||||
|
|
||||||
|
For example, on rare occasions, there may be a special need to
|
||||||
|
encourage the widest possible use of a certain library, so that it becomes
|
||||||
|
a de-facto standard. To achieve this, non-free programs must be
|
||||||
|
allowed to use the library. A more frequent case is that a free
|
||||||
|
library does the same job as widely used non-free libraries. In this
|
||||||
|
case, there is little to gain by limiting the free library to free
|
||||||
|
software only, so we use the Lesser General Public License.
|
||||||
|
|
||||||
|
In other cases, permission to use a particular library in non-free
|
||||||
|
programs enables a greater number of people to use a large body of
|
||||||
|
free software. For example, permission to use the GNU C Library in
|
||||||
|
non-free programs enables many more people to use the whole GNU
|
||||||
|
operating system, as well as its variant, the GNU/Linux operating
|
||||||
|
system.
|
||||||
|
|
||||||
|
Although the Lesser General Public License is Less protective of the
|
||||||
|
users' freedom, it does ensure that the user of a program that is
|
||||||
|
linked with the Library has the freedom and the wherewithal to run
|
||||||
|
that program using a modified version of the Library.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow. Pay close attention to the difference between a
|
||||||
|
"work based on the library" and a "work that uses the library". The
|
||||||
|
former contains code derived from the library, whereas the latter must
|
||||||
|
be combined with the library in order to run.
|
||||||
|
|
||||||
|
GNU LESSER GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License Agreement applies to any software library or other
|
||||||
|
program which contains a notice placed by the copyright holder or
|
||||||
|
other authorized party saying it may be distributed under the terms of
|
||||||
|
this Lesser General Public License (also called "this License").
|
||||||
|
Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
A "library" means a collection of software functions and/or data
|
||||||
|
prepared so as to be conveniently linked with application programs
|
||||||
|
(which use some of those functions and data) to form executables.
|
||||||
|
|
||||||
|
The "Library", below, refers to any such software library or work
|
||||||
|
which has been distributed under these terms. A "work based on the
|
||||||
|
Library" means either the Library or any derivative work under
|
||||||
|
copyright law: that is to say, a work containing the Library or a
|
||||||
|
portion of it, either verbatim or with modifications and/or translated
|
||||||
|
straightforwardly into another language. (Hereinafter, translation is
|
||||||
|
included without limitation in the term "modification".)
|
||||||
|
|
||||||
|
"Source code" for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For a library, complete source code means
|
||||||
|
all the source code for all modules it contains, plus any associated
|
||||||
|
interface definition files, plus the scripts used to control compilation
|
||||||
|
and installation of the library.
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running a program using the Library is not restricted, and output from
|
||||||
|
such a program is covered only if its contents constitute a work based
|
||||||
|
on the Library (independent of the use of the Library in a tool for
|
||||||
|
writing it). Whether that is true depends on what the Library does
|
||||||
|
and what the program that uses the Library does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Library's
|
||||||
|
complete source code as you receive it, in any medium, provided that
|
||||||
|
you conspicuously and appropriately publish on each copy an
|
||||||
|
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||||
|
all the notices that refer to this License and to the absence of any
|
||||||
|
warranty; and distribute a copy of this License along with the
|
||||||
|
Library.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy,
|
||||||
|
and you may at your option offer warranty protection in exchange for a
|
||||||
|
fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Library or any portion
|
||||||
|
of it, thus forming a work based on the Library, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The modified work must itself be a software library.
|
||||||
|
|
||||||
|
b) You must cause the files modified to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
c) You must cause the whole of the work to be licensed at no
|
||||||
|
charge to all third parties under the terms of this License.
|
||||||
|
|
||||||
|
d) If a facility in the modified Library refers to a function or a
|
||||||
|
table of data to be supplied by an application program that uses
|
||||||
|
the facility, other than as an argument passed when the facility
|
||||||
|
is invoked, then you must make a good faith effort to ensure that,
|
||||||
|
in the event an application does not supply such function or
|
||||||
|
table, the facility still operates, and performs whatever part of
|
||||||
|
its purpose remains meaningful.
|
||||||
|
|
||||||
|
(For example, a function in a library to compute square roots has
|
||||||
|
a purpose that is entirely well-defined independent of the
|
||||||
|
application. Therefore, Subsection 2d requires that any
|
||||||
|
application-supplied function or table used by this function must
|
||||||
|
be optional: if the application does not supply it, the square
|
||||||
|
root function must still compute square roots.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Library,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Library, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote
|
||||||
|
it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Library.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Library
|
||||||
|
with the Library (or with a work based on the Library) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||||
|
License instead of this License to a given copy of the Library. To do
|
||||||
|
this, you must alter all the notices that refer to this License, so
|
||||||
|
that they refer to the ordinary GNU General Public License, version 2,
|
||||||
|
instead of to this License. (If a newer version than version 2 of the
|
||||||
|
ordinary GNU General Public License has appeared, then you can specify
|
||||||
|
that version instead if you wish.) Do not make any other change in
|
||||||
|
these notices.
|
||||||
|
|
||||||
|
Once this change is made in a given copy, it is irreversible for
|
||||||
|
that copy, so the ordinary GNU General Public License applies to all
|
||||||
|
subsequent copies and derivative works made from that copy.
|
||||||
|
|
||||||
|
This option is useful when you wish to copy part of the code of
|
||||||
|
the Library into a program that is not a library.
|
||||||
|
|
||||||
|
4. You may copy and distribute the Library (or a portion or
|
||||||
|
derivative of it, under Section 2) in object code or executable form
|
||||||
|
under the terms of Sections 1 and 2 above provided that you accompany
|
||||||
|
it with the complete corresponding machine-readable source code, which
|
||||||
|
must be distributed under the terms of Sections 1 and 2 above on a
|
||||||
|
medium customarily used for software interchange.
|
||||||
|
|
||||||
|
If distribution of object code is made by offering access to copy
|
||||||
|
from a designated place, then offering equivalent access to copy the
|
||||||
|
source code from the same place satisfies the requirement to
|
||||||
|
distribute the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
5. A program that contains no derivative of any portion of the
|
||||||
|
Library, but is designed to work with the Library by being compiled or
|
||||||
|
linked with it, is called a "work that uses the Library". Such a
|
||||||
|
work, in isolation, is not a derivative work of the Library, and
|
||||||
|
therefore falls outside the scope of this License.
|
||||||
|
|
||||||
|
However, linking a "work that uses the Library" with the Library
|
||||||
|
creates an executable that is a derivative of the Library (because it
|
||||||
|
contains portions of the Library), rather than a "work that uses the
|
||||||
|
library". The executable is therefore covered by this License.
|
||||||
|
Section 6 states terms for distribution of such executables.
|
||||||
|
|
||||||
|
When a "work that uses the Library" uses material from a header file
|
||||||
|
that is part of the Library, the object code for the work may be a
|
||||||
|
derivative work of the Library even though the source code is not.
|
||||||
|
Whether this is true is especially significant if the work can be
|
||||||
|
linked without the Library, or if the work is itself a library. The
|
||||||
|
threshold for this to be true is not precisely defined by law.
|
||||||
|
|
||||||
|
If such an object file uses only numerical parameters, data
|
||||||
|
structure layouts and accessors, and small macros and small inline
|
||||||
|
functions (ten lines or less in length), then the use of the object
|
||||||
|
file is unrestricted, regardless of whether it is legally a derivative
|
||||||
|
work. (Executables containing this object code plus portions of the
|
||||||
|
Library will still fall under Section 6.)
|
||||||
|
|
||||||
|
Otherwise, if the work is a derivative of the Library, you may
|
||||||
|
distribute the object code for the work under the terms of Section 6.
|
||||||
|
Any executables containing that work also fall under Section 6,
|
||||||
|
whether or not they are linked directly with the Library itself.
|
||||||
|
|
||||||
|
6. As an exception to the Sections above, you may also combine or
|
||||||
|
link a "work that uses the Library" with the Library to produce a
|
||||||
|
work containing portions of the Library, and distribute that work
|
||||||
|
under terms of your choice, provided that the terms permit
|
||||||
|
modification of the work for the customer's own use and reverse
|
||||||
|
engineering for debugging such modifications.
|
||||||
|
|
||||||
|
You must give prominent notice with each copy of the work that the
|
||||||
|
Library is used in it and that the Library and its use are covered by
|
||||||
|
this License. You must supply a copy of this License. If the work
|
||||||
|
during execution displays copyright notices, you must include the
|
||||||
|
copyright notice for the Library among them, as well as a reference
|
||||||
|
directing the user to the copy of this License. Also, you must do one
|
||||||
|
of these things:
|
||||||
|
|
||||||
|
a) Accompany the work with the complete corresponding
|
||||||
|
machine-readable source code for the Library including whatever
|
||||||
|
changes were used in the work (which must be distributed under
|
||||||
|
Sections 1 and 2 above); and, if the work is an executable linked
|
||||||
|
with the Library, with the complete machine-readable "work that
|
||||||
|
uses the Library", as object code and/or source code, so that the
|
||||||
|
user can modify the Library and then relink to produce a modified
|
||||||
|
executable containing the modified Library. (It is understood
|
||||||
|
that the user who changes the contents of definitions files in the
|
||||||
|
Library will not necessarily be able to recompile the application
|
||||||
|
to use the modified definitions.)
|
||||||
|
|
||||||
|
b) Use a suitable shared library mechanism for linking with the
|
||||||
|
Library. A suitable mechanism is one that (1) uses at run time a
|
||||||
|
copy of the library already present on the user's computer system,
|
||||||
|
rather than copying library functions into the executable, and (2)
|
||||||
|
will operate properly with a modified version of the library, if
|
||||||
|
the user installs one, as long as the modified version is
|
||||||
|
interface-compatible with the version that the work was made with.
|
||||||
|
|
||||||
|
c) Accompany the work with a written offer, valid for at
|
||||||
|
least three years, to give the same user the materials
|
||||||
|
specified in Subsection 6a, above, for a charge no more
|
||||||
|
than the cost of performing this distribution.
|
||||||
|
|
||||||
|
d) If distribution of the work is made by offering access to copy
|
||||||
|
from a designated place, offer equivalent access to copy the above
|
||||||
|
specified materials from the same place.
|
||||||
|
|
||||||
|
e) Verify that the user has already received a copy of these
|
||||||
|
materials or that you have already sent this user a copy.
|
||||||
|
|
||||||
|
For an executable, the required form of the "work that uses the
|
||||||
|
Library" must include any data and utility programs needed for
|
||||||
|
reproducing the executable from it. However, as a special exception,
|
||||||
|
the materials to be distributed need not include anything that is
|
||||||
|
normally distributed (in either source or binary form) with the major
|
||||||
|
components (compiler, kernel, and so on) of the operating system on
|
||||||
|
which the executable runs, unless that component itself accompanies
|
||||||
|
the executable.
|
||||||
|
|
||||||
|
It may happen that this requirement contradicts the license
|
||||||
|
restrictions of other proprietary libraries that do not normally
|
||||||
|
accompany the operating system. Such a contradiction means you cannot
|
||||||
|
use both them and the Library together in an executable that you
|
||||||
|
distribute.
|
||||||
|
|
||||||
|
7. You may place library facilities that are a work based on the
|
||||||
|
Library side-by-side in a single library together with other library
|
||||||
|
facilities not covered by this License, and distribute such a combined
|
||||||
|
library, provided that the separate distribution of the work based on
|
||||||
|
the Library and of the other library facilities is otherwise
|
||||||
|
permitted, and provided that you do these two things:
|
||||||
|
|
||||||
|
a) Accompany the combined library with a copy of the same work
|
||||||
|
based on the Library, uncombined with any other library
|
||||||
|
facilities. This must be distributed under the terms of the
|
||||||
|
Sections above.
|
||||||
|
|
||||||
|
b) Give prominent notice with the combined library of the fact
|
||||||
|
that part of it is a work based on the Library, and explaining
|
||||||
|
where to find the accompanying uncombined form of the same work.
|
||||||
|
|
||||||
|
8. You may not copy, modify, sublicense, link with, or distribute
|
||||||
|
the Library except as expressly provided under this License. Any
|
||||||
|
attempt otherwise to copy, modify, sublicense, link with, or
|
||||||
|
distribute the Library is void, and will automatically terminate your
|
||||||
|
rights under this License. However, parties who have received copies,
|
||||||
|
or rights, from you under this License will not have their licenses
|
||||||
|
terminated so long as such parties remain in full compliance.
|
||||||
|
|
||||||
|
9. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Library or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Library (or any work based on the
|
||||||
|
Library), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Library or works based on it.
|
||||||
|
|
||||||
|
10. Each time you redistribute the Library (or any work based on the
|
||||||
|
Library), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute, link with or modify the Library
|
||||||
|
subject to these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties with
|
||||||
|
this License.
|
||||||
|
|
||||||
|
11. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Library at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Library by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Library.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under any
|
||||||
|
particular circumstance, the balance of the section is intended to apply,
|
||||||
|
and the section as a whole is intended to apply in other circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
12. If the distribution and/or use of the Library is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Library under this License may add
|
||||||
|
an explicit geographical distribution limitation excluding those countries,
|
||||||
|
so that distribution is permitted only in or among countries not thus
|
||||||
|
excluded. In such case, this License incorporates the limitation as if
|
||||||
|
written in the body of this License.
|
||||||
|
|
||||||
|
13. The Free Software Foundation may publish revised and/or new
|
||||||
|
versions of the Lesser General Public License from time to time.
|
||||||
|
Such new versions will be similar in spirit to the present version,
|
||||||
|
but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Library
|
||||||
|
specifies a version number of this License which applies to it and
|
||||||
|
"any later version", you have the option of following the terms and
|
||||||
|
conditions either of that version or of any later version published by
|
||||||
|
the Free Software Foundation. If the Library does not specify a
|
||||||
|
license version number, you may choose any version ever published by
|
||||||
|
the Free Software Foundation.
|
||||||
|
|
||||||
|
14. If you wish to incorporate parts of the Library into other free
|
||||||
|
programs whose distribution conditions are incompatible with these,
|
||||||
|
write to the author to ask for permission. For software which is
|
||||||
|
copyrighted by the Free Software Foundation, write to the Free
|
||||||
|
Software Foundation; we sometimes make exceptions for this. Our
|
||||||
|
decision will be guided by the two goals of preserving the free status
|
||||||
|
of all derivatives of our free software and of promoting the sharing
|
||||||
|
and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||||
|
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||||
|
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||||
|
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||||
|
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||||
|
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||||
|
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||||
|
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||||
|
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||||
|
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||||
|
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||||
|
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||||
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||||
|
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||||
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
|
DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Libraries
|
||||||
|
|
||||||
|
If you develop a new library, and you want it to be of the greatest
|
||||||
|
possible use to the public, we recommend making it free software that
|
||||||
|
everyone can redistribute and change. You can do so by permitting
|
||||||
|
redistribution under these terms (or, alternatively, under the terms of the
|
||||||
|
ordinary General Public License).
|
||||||
|
|
||||||
|
To apply these terms, attach the following notices to the library. It is
|
||||||
|
safest to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least the
|
||||||
|
"copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the library's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
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, or (at your option) any later version.
|
||||||
|
|
||||||
|
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||||
|
USA
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||||
|
library `Frob' (a library for tweaking knobs) written by James Random
|
||||||
|
Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1990
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
That's all there is to it!
|
55
Makefile.am
@ -1,55 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
# -* Makefile *-
|
|
||||||
# Author : Patrick GOLDBRONN (CEA)
|
|
||||||
# Date : 28/06/2001
|
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
|
||||||
#
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
|
||||||
|
|
||||||
if NETGENPLUGIN_ENABLE_GUI
|
|
||||||
ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \
|
|
||||||
-I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
|
|
||||||
-I ${GUI_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${MED_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${SMESH_ROOT_DIR}/adm_local/unix/config_files
|
|
||||||
else !NETGENPLUGIN_ENABLE_GUI
|
|
||||||
ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \
|
|
||||||
-I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
|
|
||||||
-I ${MED_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${SMESH_ROOT_DIR}/adm_local/unix/config_files
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS = idl adm_local resources src bin doc
|
|
||||||
|
|
||||||
DIST_SUBDIRS = idl adm_local resources src bin doc
|
|
||||||
|
|
||||||
DISTCLEANFILES = a.out aclocal.m4 configure local-install.sh hack_libtool
|
|
||||||
|
|
||||||
salomeinclude_DATA = NETGENPLUGIN_version.h
|
|
||||||
|
|
||||||
EXTRA_DIST += \
|
|
||||||
build_configure \
|
|
||||||
clean_configure
|
|
||||||
|
|
||||||
dist-hook:
|
|
||||||
rm -rf `find $(distdir) -name CVS`
|
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -27,12 +27,22 @@
|
|||||||
#if !defined(__NETGENPLUGIN_VERSION_H__)
|
#if !defined(__NETGENPLUGIN_VERSION_H__)
|
||||||
#define __NETGENPLUGIN_VERSION_H__
|
#define __NETGENPLUGIN_VERSION_H__
|
||||||
|
|
||||||
/*
|
/*!
|
||||||
NETGENPLUGIN_VERSION is (major << 16) + (minor << 8) + patch.
|
Specify version of SALOME NETGENPLUGIN module, as follows
|
||||||
|
|
||||||
|
NETGENPLUGIN_VERSION_MAJOR : (integer) number identifying major version
|
||||||
|
NETGENPLUGIN_VERSION_MINOR : (integer) number identifying minor version
|
||||||
|
NETGENPLUGIN_VERSION_MAINTENANCE : (integer) number identifying maintenance version
|
||||||
|
NETGENPLUGIN_VERSION_STR : (string) complete version number "major.minor.maintenance"
|
||||||
|
NETGENPLUGIN_VERSION : (hex) complete version number (major << 16) + (minor << 8) + maintenance
|
||||||
|
NETGENPLUGIN_DEVELOPMENT : (integer) indicates development version when set to 1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NETGENPLUGIN_VERSION_STR "@VERSION@"
|
#define NETGENPLUGIN_VERSION_MAJOR @SALOMENETGENPLUGIN_MAJOR_VERSION@
|
||||||
#define NETGENPLUGIN_VERSION @XVERSION@
|
#define NETGENPLUGIN_VERSION_MINOR @SALOMENETGENPLUGIN_MINOR_VERSION@
|
||||||
#define NETGENPLUGIN_DEVELOPMENT @VERSION_DEV@
|
#define NETGENPLUGIN_VERSION_MAINTENANCE @SALOMENETGENPLUGIN_PATCH_VERSION@
|
||||||
|
#define NETGENPLUGIN_VERSION_STR "@SALOMENETGENPLUGIN_VERSION@"
|
||||||
|
#define NETGENPLUGIN_VERSION @SALOMENETGENPLUGIN_XVERSION@
|
||||||
|
#define NETGENPLUGIN_DEVELOPMENT @SALOMENETGENPLUGIN_VERSION_DEV@
|
||||||
|
|
||||||
#endif // __NETGENPLUGIN_VERSION_H__
|
#endif // __NETGENPLUGIN_VERSION_H__
|
||||||
|
105
README
@ -0,0 +1,105 @@
|
|||||||
|
***************************
|
||||||
|
About SALOME Netgen plug-in
|
||||||
|
***************************
|
||||||
|
|
||||||
|
SALOME Netgen plug-in is destined for:
|
||||||
|
- Meshing 1D, 2D and 3D geometric entities.
|
||||||
|
- Splitting faces into triangular elements (quad-dominant mesh is also possible).
|
||||||
|
- Splitting solids into tetrahedral elements (pyramids are constructed as a
|
||||||
|
transition from quadrangles to tetrahedra).
|
||||||
|
- Generating 3D meshes from 2D meshes, working without geometrical objects.
|
||||||
|
|
||||||
|
SALOME Netgen plug-in is integrated into SALOME platform via the SALOME Mesh
|
||||||
|
module.
|
||||||
|
|
||||||
|
For more information please visit the SALOME platform web site:
|
||||||
|
|
||||||
|
<https://www.salome-platform.org/>
|
||||||
|
|
||||||
|
=======
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
SALOME platform is distributed under the GNU Lesser General Public License.
|
||||||
|
See COPYING file for more details.
|
||||||
|
|
||||||
|
============
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
--------------
|
||||||
|
Pre-requisites
|
||||||
|
--------------
|
||||||
|
|
||||||
|
SALOME platform relies on a set of third-party software; some of them are needed
|
||||||
|
at build time only, while other ones are needed at runtime as well.
|
||||||
|
|
||||||
|
For more information about the pre-requisites please visit SALOME platform web
|
||||||
|
site:
|
||||||
|
|
||||||
|
* Check Release Notes and Software Requirements of the latest SALOME release at
|
||||||
|
|
||||||
|
<https://www.salome-platform.org/?page_id=15/>
|
||||||
|
|
||||||
|
Note: SALOME Netgen plug-in needs SALOME KERNEL, SALOME GUI, SALOME Geometry and
|
||||||
|
SALOME Mesh as pre-requisites.
|
||||||
|
|
||||||
|
------------------
|
||||||
|
Basic Installation
|
||||||
|
------------------
|
||||||
|
|
||||||
|
The build procedure of the SALOME platform is implemented with CMake.
|
||||||
|
In order to build the plug-in you have to do the following actions:
|
||||||
|
|
||||||
|
1. Set up environment for pre-requisites (see "Pre-requisites" section above).
|
||||||
|
|
||||||
|
2. Create a build directory:
|
||||||
|
|
||||||
|
% mkdir NETGENPLUGIN_BUILD
|
||||||
|
|
||||||
|
3. Configure the build procedure:
|
||||||
|
|
||||||
|
% cd NETGENPLUGIN_BUILD
|
||||||
|
% cmake -DCMAKE_BUILD_TYPE=<mode> -DCMAKE_INSTALL_PREFIX=<installation_directory> <path_to_src_dir>
|
||||||
|
|
||||||
|
where
|
||||||
|
- <mode> is either Release or Debug (default: Release);
|
||||||
|
- <installation_directory> is a destination folder to install SALOME Netgen
|
||||||
|
plug-in (default: /usr);
|
||||||
|
- <path_to_src_dir> is a path to the SALOME Netgen plug-in sources directory.
|
||||||
|
|
||||||
|
Note: by default (if CMAKE_INSTALL_PREFIX option is not given), SALOME Netgen
|
||||||
|
plug-in will be configured for installation to the /usr directory that requires
|
||||||
|
root permissions to complete the installation.
|
||||||
|
|
||||||
|
4. Build and install:
|
||||||
|
|
||||||
|
% make
|
||||||
|
% make install
|
||||||
|
|
||||||
|
This will install SALOME Netgen plug-in to the <installation_directory>
|
||||||
|
specified to cmake command on the previous step.
|
||||||
|
|
||||||
|
-------------------
|
||||||
|
Custom installation
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
SALOME Netgen plug-in supports a set of advanced configuration options;
|
||||||
|
for more details learn CMakeLists.txt file in the root source directory.
|
||||||
|
|
||||||
|
You can also use other options of cmake command to customize your installation.
|
||||||
|
Learn more about available options by typing
|
||||||
|
|
||||||
|
% cmake --help
|
||||||
|
|
||||||
|
=============
|
||||||
|
Documentation
|
||||||
|
=============
|
||||||
|
|
||||||
|
The directory doc contains additional documentation file of SALOME Netgen plug-in.
|
||||||
|
|
||||||
|
===============
|
||||||
|
Troubleshooting
|
||||||
|
===============
|
||||||
|
|
||||||
|
Please, send a mail to webmaster.salome@opencascade.com.
|
125
SalomeNETGENPLUGINConfig.cmake.in
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
# - Config file for the @PROJECT_NAME@ package
|
||||||
|
# It defines the following variables.
|
||||||
|
# Specific to the package @PROJECT_NAME@ itself:
|
||||||
|
# @PROJECT_NAME_UC@_ROOT_DIR_EXP - the root path of the installation providing this CMake file
|
||||||
|
#
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# Copyright (C) 2003-2007 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
|
||||||
|
### Initialisation performed by CONFIGURE_PACKAGE_CONFIG_FILE:
|
||||||
|
@PACKAGE_INIT@
|
||||||
|
|
||||||
|
# Load the dependencies for the libraries of @PROJECT_NAME@
|
||||||
|
# (contains definitions for IMPORTED targets). This is only
|
||||||
|
# imported if we are not built as a subproject (in this case targets are already there)
|
||||||
|
IF(NOT TARGET NETGENEngine AND NOT @PROJECT_NAME@_BINARY_DIR)
|
||||||
|
INCLUDE("@PACKAGE_SALOME_INSTALL_CMAKE_LOCAL@/@PROJECT_NAME@Targets.cmake")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
# Package root dir:
|
||||||
|
SET_AND_CHECK(NETGENPLUGIN_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@")
|
||||||
|
|
||||||
|
# Include directories
|
||||||
|
SET_AND_CHECK(NETGENPLUGIN_INCLUDE_DIRS "${NETGENPLUGIN_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
|
||||||
|
SET(NETGENPLUGIN_INCLUDE_DIRS "${NETGENPLUGIN_INCLUDE_DIRS};@_SalomeNETGENPLUGIN_EXTRA_HEADERS@")
|
||||||
|
SET(NETGENPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
|
||||||
|
|
||||||
|
# Package specific environment variables
|
||||||
|
@_SalomeNETGENPLUGIN_EXTRA_ENV_FULL@
|
||||||
|
|
||||||
|
#### Now the specificities
|
||||||
|
|
||||||
|
# Options exported by the package:
|
||||||
|
SET(SALOME_NETGENPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
|
||||||
|
SET(SALOME_NETGENPLUGIN_BUILD_DOC @SALOME_BUILD_DOC@)
|
||||||
|
|
||||||
|
# Advanced options
|
||||||
|
SET(SALOME_NETGENPLUGIN_BUILD_GUI @SALOME_BUILD_GUI@)
|
||||||
|
|
||||||
|
# Level 1 prerequisites:
|
||||||
|
SET_AND_CHECK(SMESH_ROOT_DIR_EXP "@PACKAGE_SMESH_ROOT_DIR@")
|
||||||
|
|
||||||
|
# Optional level 1 prerequisites:
|
||||||
|
IF(SALOME_NETGENPLUGIN_USE_NETGEN)
|
||||||
|
SET_AND_CHECK(NETGEN_ROOT_DIR_EXP "@PACKAGE_NETGEN_ROOT_DIR@")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
# For all prerequisites, load the corresponding targets if the package was used
|
||||||
|
# in CONFIG mode. This ensures dependent projects link correctly
|
||||||
|
# without having to set LD_LIBRARY_PATH:
|
||||||
|
SET(_PREREQ_@PROJECT_NAME@ @_PREREQ_LIST@)
|
||||||
|
SET(_PREREQ_@PROJECT_NAME@_CONFIG_DIR @_PREREQ_DIR_LIST@)
|
||||||
|
SET(_PREREQ_@PROJECT_NAME@_COMPONENTS "@_PREREQ_COMPO_LIST@")
|
||||||
|
LIST(LENGTH _PREREQ_@PROJECT_NAME@_CONFIG_DIR _list_len_@PROJECT_NAME@)
|
||||||
|
IF(NOT _list_len_@PROJECT_NAME@ EQUAL 0)
|
||||||
|
# Another CMake stupidity - FOREACH(... RANGE r) generates r+1 numbers ...
|
||||||
|
MATH(EXPR _range_@PROJECT_NAME@ "${_list_len_@PROJECT_NAME@}-1")
|
||||||
|
FOREACH(_p_@PROJECT_NAME@ RANGE ${_range_@PROJECT_NAME@})
|
||||||
|
LIST(GET _PREREQ_@PROJECT_NAME@ ${_p_@PROJECT_NAME@} _pkg_@PROJECT_NAME@ )
|
||||||
|
LIST(GET _PREREQ_@PROJECT_NAME@_CONFIG_DIR ${_p_@PROJECT_NAME@} _pkg_dir_@PROJECT_NAME@)
|
||||||
|
LIST(GET _PREREQ_@PROJECT_NAME@_COMPONENTS ${_p_@PROJECT_NAME@} _pkg_compo_@PROJECT_NAME@)
|
||||||
|
IF(NOT OMIT_DETECT_PACKAGE_${_pkg_@PROJECT_NAME@})
|
||||||
|
MESSAGE(STATUS "===> Reloading targets from ${_pkg_@PROJECT_NAME@} ...")
|
||||||
|
IF(NOT _pkg_compo_@PROJECT_NAME@)
|
||||||
|
FIND_PACKAGE(${_pkg_@PROJECT_NAME@} REQUIRED NO_MODULE
|
||||||
|
PATHS "${_pkg_dir_@PROJECT_NAME@}"
|
||||||
|
NO_DEFAULT_PATH)
|
||||||
|
ELSE()
|
||||||
|
STRING(REPLACE "," ";" _compo_lst_@PROJECT_NAME@ "${_pkg_compo_@PROJECT_NAME@}")
|
||||||
|
MESSAGE(STATUS "===> (components: ${_pkg_compo_@PROJECT_NAME@})")
|
||||||
|
FIND_PACKAGE(${_pkg_@PROJECT_NAME@} REQUIRED NO_MODULE
|
||||||
|
COMPONENTS ${_compo_lst_@PROJECT_NAME@}
|
||||||
|
PATHS "${_pkg_dir_@PROJECT_NAME@}"
|
||||||
|
NO_DEFAULT_PATH)
|
||||||
|
ENDIF()
|
||||||
|
ENDIF()
|
||||||
|
ENDFOREACH()
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
# Installation directories
|
||||||
|
SET(SALOME_INSTALL_BINS "@SALOME_INSTALL_BINS@")
|
||||||
|
SET(SALOME_INSTALL_LIBS "@SALOME_INSTALL_LIBS@")
|
||||||
|
SET(SALOME_INSTALL_IDLS "@SALOME_INSTALL_IDLS@")
|
||||||
|
SET(SALOME_INSTALL_HEADERS "@SALOME_INSTALL_HEADERS@")
|
||||||
|
SET(SALOME_INSTALL_SCRIPT_SCRIPTS "@SALOME_INSTALL_SCRIPT_SCRIPTS@")
|
||||||
|
SET(SALOME_INSTALL_SCRIPT_DATA "@SALOME_INSTALL_SCRIPT_DATA@")
|
||||||
|
SET(SALOME_INSTALL_SCRIPT_PYTHON "@SALOME_INSTALL_SCRIPT_PYTHON@")
|
||||||
|
SET(SALOME_INSTALL_APPLISKEL_SCRIPTS "@SALOME_INSTALL_APPLISKEL_SCRIPTS@")
|
||||||
|
SET(SALOME_INSTALL_APPLISKEL_PYTHON "@SALOME_INSTALL_APPLISKEL_PYTHON@")
|
||||||
|
SET(SALOME_INSTALL_CMAKE_LOCAL "@SALOME_INSTALL_CMAKE_LOCAL@")
|
||||||
|
SET(SALOME_INSTALL_PYTHON "@SALOME_INSTALL_PYTHON@")
|
||||||
|
SET(SALOME_INSTALL_PYTHON_SHARED "@SALOME_INSTALL_PYTHON_SHARED@")
|
||||||
|
SET(SALOME_INSTALL_RES "@SALOME_INSTALL_RES@")
|
||||||
|
SET(SALOME_INSTALL_DOC "@SALOME_INSTALL_DOC@")
|
||||||
|
SET(SALOME_INSTALL_AMCONFIG_LOCAL "@SALOME_INSTALL_AMCONFIG_LOCAL@")
|
||||||
|
|
||||||
|
# Include SMESH targets if they were not already loaded:
|
||||||
|
IF(NOT (TARGET SMESHEngine))
|
||||||
|
INCLUDE("${SMESH_ROOT_DIR_EXP}/${SALOME_INSTALL_CMAKE}/SalomeSMESHTargets.cmake")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
# Exposed NETGENPLUGIN targets:
|
||||||
|
SET(NETGENPLUGIN_NETGENEngine NETGENEngine)
|
||||||
|
SET(NETGENPLUGIN_NETGENPluginGUI NETGENPluginGUI)
|
||||||
|
SET(NETGENPLUGIN_SalomeIDLNETGENPLUGIN SalomeIDLNETGENPLUGIN)
|
16
build_cmake → adm_local/CMakeLists.txt
Executable file → Normal file
@ -1,10 +1,12 @@
|
|||||||
#!/bin/sh
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
#
|
||||||
|
# Copyright (C) 2003-2007 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
|
# This library is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
# 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.
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This library is distributed in the hope that it will be useful,
|
# This library is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -18,10 +20,4 @@
|
|||||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
|
|
||||||
CURRENT_DIR=`pwd`
|
ADD_SUBDIRECTORY(unix)
|
||||||
CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
|
|
||||||
cd ${CONF_DIR}
|
|
||||||
python $KERNEL_ROOT_DIR/salome_adm/cmake_files/am2cmake.py --netgenplugin
|
|
||||||
status=$?
|
|
||||||
cd ${CURRENT_DIR}
|
|
||||||
exit $status
|
|
@ -1,82 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
SET(NETGENHOME $ENV{NETGENHOME})
|
|
||||||
FIND_PATH(NETGEN_INCLUDES_DIR nglib.h ${NETGENHOME}/include)
|
|
||||||
SET(NETGEN_INCLUDES)
|
|
||||||
SET(NETGEN_INCLUDES ${NETGEN_INCLUDES} -I${NETGEN_INCLUDES_DIR})
|
|
||||||
SET(NETGEN_INCLUDES ${NETGEN_INCLUDES} -DNO_PARALLEL_THREADS -DOCCGEOMETRY)
|
|
||||||
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_nglib nglib PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
|
|
||||||
IF(NETGEN_LIB_nglib)
|
|
||||||
SET(NETGEN_NEW ON)
|
|
||||||
SET(NETGEN_INCLUDES ${NETGEN_INCLUDES} -I${NETGENHOME}/share/netgen/include -DNETGEN_NEW)
|
|
||||||
ELSE(NETGEN_LIB_nglib)
|
|
||||||
SET(NETGEN_NEW OFF)
|
|
||||||
ENDIF(NETGEN_LIB_nglib)
|
|
||||||
|
|
||||||
IF(NETGEN_NEW)
|
|
||||||
SET(NETGEN_LIBS)
|
|
||||||
IF(WINDOWS)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_csg csg PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_gen gen PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_geom2d geom2d PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_gprim gprim PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_interface interface PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_la la PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_mesh mesh PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_occ occ PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_stl stl PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_csg})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_gen})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_geom2d})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_gprim})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_interface})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_la})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_mesh})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_occ})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_stl})
|
|
||||||
ENDIF(WINDOWS)
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_nglib})
|
|
||||||
ELSE(NETGEN_NEW)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_csg csg PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_gen gen PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_geom2d geom2d PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_gprim gprim PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_la la PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_mesh mesh PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_nginterface nginterface PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_occ occ PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_opti opti PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
FIND_LIBRARY(NETGEN_LIB_stlgeom stlgeom PATHS ${NETGENHOME}/lib ${NETGENHOME}/lib/LINUX)
|
|
||||||
SET(NETGEN_LIBS)
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_csg})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_gen})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_geom2d})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_gprim})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_la})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_mesh})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_nginterface})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_occ})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_opti})
|
|
||||||
SET(NETGEN_LIBS ${NETGEN_LIBS} ${NETGEN_LIB_stlgeom})
|
|
||||||
ENDIF(NETGEN_NEW)
|
|
||||||
|
|
||||||
SET(CMAKE_BUILD 1)
|
|
@ -1,9 +1,9 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
# 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.
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This library is distributed in the hope that it will be useful,
|
# This library is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -17,6 +17,4 @@
|
|||||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
ADD_SUBDIRECTORY(config_files)
|
||||||
|
|
||||||
SUBDIRS = unix
|
|
@ -1,9 +1,12 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# Copyright (C) 2003-2007 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
|
# This library is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
# 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.
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This library is distributed in the hope that it will be useful,
|
# This library is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -17,15 +20,9 @@
|
|||||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
|
|
||||||
# -* Makefile *-
|
SET(_m4_data
|
||||||
# Author : Guillaume Boulant (CSSI)
|
check_NETGEN.m4
|
||||||
# Module : KERNEL
|
check_NETGENPLUGIN.m4
|
||||||
# $Header$
|
)
|
||||||
#
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
|
||||||
|
|
||||||
# non-distributed files
|
INSTALL(FILES ${_m4_data} DESTINATION ${SALOME_INSTALL_AMCONFIG_LOCAL}/config_files)
|
||||||
nodist_salomescript_DATA = VERSION
|
|
||||||
|
|
||||||
# distributed files
|
|
||||||
dist_salomescript_SCRIPTS =
|
|
@ -1,4 +1,4 @@
|
|||||||
dnl Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
dnl Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
dnl
|
dnl
|
||||||
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@ dnl
|
|||||||
dnl This library is free software; you can redistribute it and/or
|
dnl This library is free software; you can redistribute it and/or
|
||||||
dnl modify it under the terms of the GNU Lesser General Public
|
dnl modify it under the terms of the GNU Lesser General Public
|
||||||
dnl License as published by the Free Software Foundation; either
|
dnl License as published by the Free Software Foundation; either
|
||||||
dnl version 2.1 of the License.
|
dnl version 2.1 of the License, or (at your option) any later version.
|
||||||
dnl
|
dnl
|
||||||
dnl This library is distributed in the hope that it will be useful,
|
dnl This library is distributed in the hope that it will be useful,
|
||||||
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -24,182 +24,139 @@ AC_DEFUN([CHECK_NETGEN],[
|
|||||||
|
|
||||||
AC_REQUIRE([AC_PROG_CXX])dnl
|
AC_REQUIRE([AC_PROG_CXX])dnl
|
||||||
AC_REQUIRE([AC_PROG_CXXCPP])dnl
|
AC_REQUIRE([AC_PROG_CXXCPP])dnl
|
||||||
|
AC_REQUIRE([CHECK_CAS])dnl
|
||||||
|
|
||||||
AC_CHECKING(for Netgen 4.5 and higher Libraries)
|
AC_CHECKING([for Netgen])
|
||||||
|
|
||||||
AC_LANG_SAVE
|
AC_LANG_SAVE
|
||||||
AC_LANG_CPLUSPLUS
|
AC_LANG_CPLUSPLUS
|
||||||
|
|
||||||
AC_ARG_WITH(netgen,
|
AC_ARG_WITH([netgen],
|
||||||
[ --with-netgen=DIR root directory path of NETGEN installation],
|
[AC_HELP_STRING([--with-netgen=DIR], [root directory path to NETGEN library installation])],
|
||||||
NETGEN_HOME=$withval,NETGEN_HOME="")
|
[NETGEN_HOME=$withval],[NETGEN_HOME=yes])
|
||||||
|
|
||||||
NETGEN_INCLUDES=""
|
NETGEN_INCLUDES=""
|
||||||
NETGEN_LIBS_DIR=""
|
|
||||||
NETGEN_LIBS=""
|
NETGEN_LIBS=""
|
||||||
NETGEN_NEW=no
|
NETGEN_V5=no
|
||||||
|
|
||||||
|
AC_SUBST(NETGEN_INCLUDES)
|
||||||
|
AC_SUBST(NETGEN_LIBS)
|
||||||
|
|
||||||
Netgen_ok=no
|
Netgen_ok=no
|
||||||
|
|
||||||
if test "x$NETGEN_HOME" == "x" ; then
|
if test "x$NETGEN_HOME" = "x" -o "x$NETGEN_HOME" = "xyes" -o "x$NETGEN_HOME" = "xauto" ; then
|
||||||
|
# auto-detection
|
||||||
|
|
||||||
# no --with-netgen option used
|
|
||||||
if test "x$NETGENHOME" != "x" ; then
|
if test "x$NETGENHOME" != "x" ; then
|
||||||
|
# - by environment variable NETGENHOME
|
||||||
# NETGENHOME environment variable defined
|
|
||||||
NETGEN_HOME=$NETGENHOME
|
NETGEN_HOME=$NETGENHOME
|
||||||
|
else
|
||||||
|
# - by searching NETGEN executables
|
||||||
|
AC_PATH_PROG([TEMP], [ng_stl])
|
||||||
|
if test "x$TEMP" != "x" ; then
|
||||||
|
NETGEN_BIN_DIR=`dirname $TEMP`
|
||||||
|
NETGEN_HOME=`dirname $NETGEN_BIN_DIR`
|
||||||
|
else
|
||||||
|
NETGEN_HOME=""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo NETGEN_HOME=$NETGEN_HOME
|
||||||
|
|
||||||
if test "x$NETGEN_HOME" != "x"; then
|
if test "x$NETGEN_HOME" != "x"; then
|
||||||
|
|
||||||
if test -f ${NETGEN_HOME}/lib/libnglib.so ; then
|
|
||||||
NETGEN_NEW=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ----------------------------------------------------------
|
|
||||||
echo ----------------------------------------------------------
|
echo ----------------------------------------------------------
|
||||||
echo You are about to choose to use somehow the
|
echo You are about to choose to use somehow the
|
||||||
echo Netgen Library to generate Tetrahedric mesh.
|
echo Netgen Library to generate Tetrahedric mesh.
|
||||||
echo ----------------------------------------------------------
|
echo
|
||||||
echo ----------------------------------------------------------
|
|
||||||
echo You are strongly advised to consult the file
|
echo You are strongly advised to consult the file
|
||||||
echo NETGENPLUGIN_SRC/src/NETGEN/ReadMeForNgUsers, particularly
|
echo NETGENPLUGIN_SRC/src/NETGEN/ReadMeForNgUsers, particularly
|
||||||
echo about assumptions made on the installation of the Netgen
|
echo about assumptions made on the installation of the Netgen
|
||||||
echo application and libraries.
|
echo application and libraries.
|
||||||
echo ----------------------------------------------------------
|
echo ----------------------------------------------------------
|
||||||
echo ----------------------------------------------------------
|
|
||||||
|
|
||||||
NETGEN_INCLUDES="-I${NETGEN_HOME}/include"
|
NETGEN_INCLUDES="-I${NETGEN_HOME}/include -I${NETGEN_HOME}/share/netgen/include"
|
||||||
|
NETGEN_LIBS_OLD="-L${NETGEN_HOME}/lib -lnglib"
|
||||||
|
NETGEN_LIBS_NEW="-L${NETGEN_HOME}/lib -lnglib -linterface -lgeom2d -lcsg -lstl -locc -lmesh"
|
||||||
|
|
||||||
if test "$NETGEN_NEW" = "yes" ; then
|
dnl check Netgen headers availability
|
||||||
NETGEN_INCLUDES="${NETGEN_INCLUDES} -DNETGEN_NEW -I${NETGEN_HOME}/share/netgen/include"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# check ${NETGEN_HOME}/lib/LINUX directory for libraries
|
|
||||||
if test -f ${NETGEN_HOME}/lib/LINUX/libcsg.a ; then
|
|
||||||
NETGEN_LIBS_DIR="${NETGEN_HOME}/lib/LINUX"
|
|
||||||
else
|
|
||||||
# check ${NETGEN_HOME}/lib/LINUX64 directory for libraries
|
|
||||||
if test -f ${NETGEN_HOME}/lib/LINUX64/libcsg.a ; then
|
|
||||||
NETGEN_LIBS_DIR="${NETGEN_HOME}/lib/LINUX64"
|
|
||||||
else
|
|
||||||
NETGEN_LIBS_DIR="${NETGEN_HOME}/lib"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "NETGEN_LIBS_DIR = $NETGEN_LIBS_DIR"
|
|
||||||
|
|
||||||
CPPFLAGS_old="$CPPFLAGS"
|
CPPFLAGS_old="$CPPFLAGS"
|
||||||
CXXFLAGS_old="$CXXFLAGS"
|
CXXFLAGS_old="$CXXFLAGS"
|
||||||
CPPFLAGS="$CAS_CPPFLAGS $NETGEN_INCLUDES $CPPFLAGS"
|
CPPFLAGS="$CAS_CPPFLAGS $NETGEN_INCLUDES $CPPFLAGS"
|
||||||
CXXFLAGS="$CAS_CPPFLAGS $NETGEN_INCLUDES $CXXFLAGS"
|
CXXFLAGS="$CAS_CXXFLAGS $NETGEN_INCLUDES $CXXFLAGS"
|
||||||
|
|
||||||
AC_MSG_CHECKING(for Netgen header file)
|
AC_MSG_CHECKING([for Netgen header file])
|
||||||
|
|
||||||
AC_CHECK_HEADER(nglib.h,Netgen_ok=yes,Netgen_ok=no)
|
AC_CHECK_HEADER([nglib.h], [Netgen_ok=yes], [Netgen_ok=no])
|
||||||
if test "x$Netgen_ok" == "xyes"; then
|
|
||||||
|
|
||||||
if test "$NETGEN_NEW" = "no" ; then
|
dnl check Netgen libraries
|
||||||
|
|
||||||
AC_MSG_CHECKING(for Netgen libraries)
|
NETGEN_LIBS=${NETGEN_LIBS_NEW}
|
||||||
|
|
||||||
LIBS_old="$LIBS"
|
LIBS_old="$LIBS"
|
||||||
LIBS="-L. -lNETGEN $CAS_LDPATH -lTKernel -lTKMath -lTKG3d -lTKBRep -lTKShHealing -lTKSTEP -lTKXSBase -lTKIGES -lTKSTL -lTKTopAlgo $LIBS"
|
LIBS="$NETGEN_LIBS $CAS_LDPATH -lTKernel -lTKMath -lTKG3d -lTKBRep -lTKShHealing -lTKSTEP -lTKXSBase -lTKIGES -lTKSTL -lTKTopAlgo -lTKGeomBase $LIBS_old"
|
||||||
|
|
||||||
AC_TRY_COMPILE(#include <iostream>
|
if test "x$Netgen_ok" = "xyes"; then
|
||||||
#include <fstream>
|
|
||||||
namespace nglib {
|
|
||||||
#include "nglib.h"
|
|
||||||
}
|
|
||||||
#define OCCGEOMETRY
|
|
||||||
#include <occgeom.hpp>
|
|
||||||
,nglib::Ng_Init();
|
|
||||||
netgen::OCCGeometry occgeo;
|
|
||||||
nglib::Ng_Exit();,Netgen_ok=yes;ar x "$NETGEN_LIBS_DIR/libnginterface.a";
|
|
||||||
ar x "$NETGEN_LIBS_DIR/libocc.a";
|
|
||||||
ar x "$NETGEN_LIBS_DIR/libcsg.a";
|
|
||||||
ar x "$NETGEN_LIBS_DIR/libgprim.a";
|
|
||||||
ar x "$NETGEN_LIBS_DIR/libmesh.a";
|
|
||||||
ar x "$NETGEN_LIBS_DIR/libopti.a";
|
|
||||||
ar x "$NETGEN_LIBS_DIR/libgen.a";
|
|
||||||
ar x "$NETGEN_LIBS_DIR/libla.a";
|
|
||||||
ar x "$NETGEN_LIBS_DIR/libstlgeom.a";
|
|
||||||
ar x "$NETGEN_LIBS_DIR/libgeom2d.a";
|
|
||||||
$CXX -shared linopt.o bfgs.o linsearch.o global.o bisect.o meshtool.o refine.o ruler3.o improve3.o adfront3.o tetrarls.o prism2rls.o profiler.o pyramidrls.o pyramid2rls.o netrule3.o ruler2.o meshclass.o improve2.o adfront2.o netrule2.o triarls.o geomsearch.o secondorder.o meshtype.o parser3.o quadrls.o specials.o parser2.o meshing2.o meshing3.o meshfunc.o localh.o improve2gen.o delaunay.o boundarylayer.o msghandler.o meshfunc2d.o smoothing2.o smoothing3.o topology.o curvedelems_new.o clusters.o zrefine.o ngexception.o geomtest3d.o geom2d.o geom2dmesh.o geom3d.o adtree.o transform3d.o geomfuncs.o polynomial.o densemat.o vector.o basemat.o sparsmat.o algprim.o brick.o manifold.o bspline2d.o meshsurf.o csgeom.o polyhedra.o curve2d.o singularref.o edgeflw.o solid.o explicitcurve2d.o specpoin.o gencyl.o revolution.o genmesh.o genmesh2d.o spline3d.o surface.o identify.o triapprox.o meshstlsurface.o stlline.o stltopology.o stltool.o stlgeom.o stlgeomchart.o stlgeommesh.o table.o optmem.o spbita2d.o hashtabl.o sort.o flags.o seti.o bitarray.o array.o symbolta.o mystring.o moveablemem.o spline.o splinegeometry.o ngnewdelete.o nglib.o hprefinement.o Partition_Inter2d.o Partition_Loop.o Partition_Loop3d.o Partition_Inter3d.o Partition_Loop2d.o Partition_Spliter.o occgeom.o occgenmesh.o occmeshsurf.o -o libNETGEN.so;
|
|
||||||
rm -rf linopt.o bfgs.o linsearch.o global.o bisect.o meshtool.o refine.o ruler3.o improve3.o adfront3.o tetrarls.o prism2rls.o profiler.o pyramidrls.o pyramid2rls.o netrule3.o ruler2.o meshclass.o improve2.o adfront2.o netrule2.o triarls.o geomsearch.o secondorder.o meshtype.o parser3.o quadrls.o specials.o parser2.o meshing2.o meshing3.o meshfunc.o localh.o improve2gen.o delaunay.o boundarylayer.o msghandler.o meshfunc2d.o smoothing2.o smoothing3.o topology.o curvedelems_new.o clusters.o zrefine.o ngexception.o geomtest3d.o geom2d.o geom2dmesh.o geom3d.o adtree.o transform3d.o geomfuncs.o polynomial.o densemat.o vector.o basemat.o sparsmat.o algprim.o brick.o manifold.o bspline2d.o meshsurf.o csgeom.o polyhedra.o curve2d.o singularref.o edgeflw.o solid.o explicitcurve2d.o specpoin.o gencyl.o revolution.o genmesh.o genmesh2d.o spline3d.o surface.o identify.o triapprox.o meshstlsurface.o stlline.o stltopology.o stltool.o stlgeom.o stlgeomchart.o stlgeommesh.o table.o optmem.o spbita2d.o hashtabl.o sort.o flags.o seti.o bitarray.o array.o symbolta.o mystring.o moveablemem.o spline.o splinegeometry.o ngnewdelete.o nglib.o hprefinement.o Partition_Inter2d.o Partition_Loop.o Partition_Loop3d.o Partition_Inter3d.o Partition_Loop2d.o Partition_Spliter.o occgeom.o occgenmesh.o occmeshsurf.o csgparser.o dynamicmem.o extrusion.o occconstruction.o parthreads.o readuser.o writeabaqus.o writediffpack.o writeelmer.o writefeap.o writefluent.o writegmsh.o writejcm.o writepermas.o writetecplot.o writetochnog.o writeuser.o wuchemnitz.o,
|
|
||||||
Netgen_ok=no)
|
|
||||||
|
|
||||||
AC_CACHE_VAL(salome_cv_netgen_lib,[
|
AC_MSG_NOTICE([checking for Netgen libraries])
|
||||||
AC_TRY_LINK([
|
|
||||||
|
AC_MSG_CHECKING([libraries ... try new style ])
|
||||||
|
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
namespace nglib {
|
namespace nglib {
|
||||||
#include "nglib.h"
|
#include "nglib.h"
|
||||||
}
|
}
|
||||||
#define OCCGEOMETRY
|
],
|
||||||
#include <occgeom.hpp>
|
[
|
||||||
],[
|
|
||||||
nglib::Ng_Init();
|
nglib::Ng_Init();
|
||||||
netgen::OCCGeometry occgeo;
|
|
||||||
nglib::Ng_Exit();
|
nglib::Ng_Exit();
|
||||||
],
|
],
|
||||||
[eval "salome_cv_netgen_lib=yes";rm -rf libNETGEN.so],
|
[Netgen_ok=yes],
|
||||||
[eval "salome_cv_netgen_lib=no";rm -rf libNETGEN.so])
|
[Netgen_ok=no])
|
||||||
])
|
|
||||||
Netgen_ok="$salome_cv_netgen_lib"
|
|
||||||
|
|
||||||
else
|
if test "x$Netgen_ok" = "xno" ; then
|
||||||
|
|
||||||
LIBS_old="$LIBS"
|
AC_MSG_RESULT([no])
|
||||||
LIBS="-L${NETGEN_LIBS_DIR} -lnglib $CAS_LDPATH -lTKernel -lTKMath -lTKG3d -lTKBRep -lTKShHealing -lTKSTEP -lTKXSBase -lTKIGES -lTKSTL -lTKTopAlgo -lTKGeomBase $LIBS"
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(for official Netgen libraries)
|
AC_MSG_CHECKING([libraries ... try old style])
|
||||||
AC_CACHE_VAL(salome_cv_netgen_lib,[
|
|
||||||
AC_TRY_LINK([
|
NETGEN_LIBS=${NETGEN_LIBS_OLD}
|
||||||
|
LIBS="$NETGEN_LIBS $CAS_LDPATH -lTKernel -lTKMath -lTKG3d -lTKBRep -lTKShHealing -lTKSTEP -lTKXSBase -lTKIGES -lTKSTL -lTKTopAlgo -lTKGeomBase $LIBS_old"
|
||||||
|
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
namespace nglib {
|
namespace nglib {
|
||||||
#include "nglib.h"
|
#include "nglib.h"
|
||||||
}
|
}
|
||||||
],[
|
],
|
||||||
|
[
|
||||||
nglib::Ng_Init();
|
nglib::Ng_Init();
|
||||||
nglib::Ng_Exit();
|
nglib::Ng_Exit();
|
||||||
],
|
],
|
||||||
[eval "salome_cv_netgen_lib=yes"],
|
[Netgen_ok=yes],
|
||||||
[eval "salome_cv_netgen_lib=no"])
|
[Netgen_ok=no])
|
||||||
])
|
|
||||||
Netgen_ok="$salome_cv_netgen_lib"
|
|
||||||
|
|
||||||
if test "$Netgen_ok" = "yes" ; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_MSG_CHECKING(for occ support in Netgen libraries)
|
|
||||||
AC_CACHE_VAL(salome_cv_netgen_occ_lib,[
|
|
||||||
AC_TRY_LINK([
|
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
|
||||||
#define OCCGEOMETRY
|
|
||||||
namespace nglib {
|
|
||||||
#include "nglib.h"
|
|
||||||
}
|
|
||||||
],[
|
|
||||||
nglib::Ng_Init();
|
|
||||||
nglib::Ng_OCC_Geometry * ng_occ_geom = nglib::Ng_OCC_NewGeometry();
|
|
||||||
nglib::Ng_Exit();
|
|
||||||
],
|
|
||||||
[eval "salome_cv_netgen_occ_lib=yes"],
|
|
||||||
[eval "salome_cv_netgen_occ_lib=no"])
|
|
||||||
])
|
|
||||||
Netgen_ok="$salome_cv_netgen_occ_lib"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl check if Netgen of v5 or v4
|
||||||
|
|
||||||
if test "$Netgen_ok" = "yes" ; then
|
if test "$Netgen_ok" = "yes" ; then
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_MSG_CHECKING(for salome patch in Netgen installation)
|
AC_MSG_RESULT([yes])
|
||||||
AC_CACHE_VAL(salome_cv_netgen_salome_patch_lib,[
|
|
||||||
AC_TRY_LINK([
|
AC_MSG_CHECKING([Netgen version])
|
||||||
|
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#define OCCGEOMETRY
|
#define OCCGEOMETRY
|
||||||
@ -207,50 +164,97 @@ namespace nglib {
|
|||||||
#include "nglib.h"
|
#include "nglib.h"
|
||||||
}
|
}
|
||||||
#include <occgeom.hpp>
|
#include <occgeom.hpp>
|
||||||
],[
|
],
|
||||||
|
[
|
||||||
|
nglib::Ng_Init();
|
||||||
|
netgen::Mesh* ngMesh;
|
||||||
|
ngMesh->CalcLocalH(1.0);
|
||||||
|
nglib::Ng_Exit();
|
||||||
|
],
|
||||||
|
[NETGEN_V5=yes],
|
||||||
|
[NETGEN_V5=no])
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl check OCCT support in Netgen
|
||||||
|
|
||||||
|
if test "$Netgen_ok" = "yes" ; then
|
||||||
|
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for OCCT support in Netgen library])
|
||||||
|
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[
|
||||||
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
#define OCCGEOMETRY
|
||||||
|
namespace nglib {
|
||||||
|
#include "nglib.h"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
nglib::Ng_Init();
|
||||||
|
nglib::Ng_OCC_Geometry* ng_occ_geom = nglib::Ng_OCC_NewGeometry();
|
||||||
|
nglib::Ng_Exit();
|
||||||
|
],
|
||||||
|
[Netgen_ok=yes],
|
||||||
|
[Netgen_ok=no])
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl check SALOME patch in Netgen
|
||||||
|
|
||||||
|
if test "$Netgen_ok" = "yes" ; then
|
||||||
|
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for SALOME patch in Netgen library])
|
||||||
|
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[
|
||||||
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
#define OCCGEOMETRY
|
||||||
|
namespace nglib {
|
||||||
|
#include "nglib.h"
|
||||||
|
}
|
||||||
|
#include <occgeom.hpp>
|
||||||
|
],
|
||||||
|
[
|
||||||
nglib::Ng_Init();
|
nglib::Ng_Init();
|
||||||
netgen::OCCGeometry occgeo;
|
netgen::OCCGeometry occgeo;
|
||||||
nglib::Ng_Exit();
|
nglib::Ng_Exit();
|
||||||
],
|
],
|
||||||
[eval "salome_cv_netgen_salome_patch_lib=yes"],
|
[Netgen_ok=yes],
|
||||||
[eval "salome_cv_netgen_salome_patch_lib=no"])
|
[Netgen_ok=no])
|
||||||
])
|
|
||||||
Netgen_ok="$salome_cv_netgen_salome_patch_lib"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$Netgen_ok" == xno ; then
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
AC_MSG_ERROR(Netgen is not properly installed. Read NETGENPLUGIN_SRC/src/NETGEN/ReadMeForNgUsers for details.)
|
|
||||||
fi
|
|
||||||
|
|
||||||
NETGEN_LIBS="-L${NETGEN_LIBS_DIR} -lnglib"
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LIBS="$LIBS_old"
|
LIBS="$LIBS_old"
|
||||||
fi
|
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS_old"
|
CPPFLAGS="$CPPFLAGS_old"
|
||||||
CXXFLAGS="$CXXFLAGS_old"
|
CXXFLAGS="$CXXFLAGS_old"
|
||||||
|
|
||||||
if test "x$Netgen_ok" == xno ; then
|
fi
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
AC_MSG_ERROR(Netgen libraries not found or not properly installed)
|
if test "x$Netgen_ok" = xyes ; then
|
||||||
|
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
|
||||||
|
if test "x$NETGEN_V5" = "xyes" ; then
|
||||||
|
AC_MSG_RESULT([Netgen is of version 5.0 or newer])
|
||||||
|
NETGEN_INCLUDES="$NETGEN_INCLUDES -DNETGEN_V5"
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT([Netgen is of version 4.9.13 or older])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
AC_MSG_ERROR(Netgen libraries not found. Please define NETGENHOME or use --with-netgen option)
|
AC_MSG_RESULT([no])
|
||||||
|
AC_MSG_ERROR([Netgen is not properly installed. Read NETGENPLUGIN_SRC/src/NETGEN/ReadMeForNgUsers for more details.])
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(NETGEN_INCLUDES)
|
|
||||||
AC_SUBST(NETGEN_LIBS_DIR)
|
|
||||||
AC_SUBST(NETGEN_LIBS)
|
|
||||||
AM_CONDITIONAL(NETGEN_NEW, [test x"$NETGEN_NEW" = x"yes"])
|
|
||||||
|
|
||||||
AC_LANG_RESTORE
|
AC_LANG_RESTORE
|
||||||
|
|
||||||
])dnl
|
])dnl
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
dnl Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
dnl Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
dnl
|
dnl
|
||||||
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@ dnl
|
|||||||
dnl This library is free software; you can redistribute it and/or
|
dnl This library is free software; you can redistribute it and/or
|
||||||
dnl modify it under the terms of the GNU Lesser General Public
|
dnl modify it under the terms of the GNU Lesser General Public
|
||||||
dnl License as published by the Free Software Foundation; either
|
dnl License as published by the Free Software Foundation; either
|
||||||
dnl version 2.1 of the License.
|
dnl version 2.1 of the License, or (at your option) any later version.
|
||||||
dnl
|
dnl
|
||||||
dnl This library is distributed in the hope that it will be useful,
|
dnl This library is distributed in the hope that it will be useful,
|
||||||
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@ -1,94 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
# ============================================================
|
|
||||||
# The following is to avoid PACKAGE_... env variable
|
|
||||||
# redefinition compilation warnings
|
|
||||||
# ============================================================
|
|
||||||
#
|
|
||||||
AM_CXXFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
|
|
||||||
AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h
|
|
||||||
|
|
||||||
# ============================================================
|
|
||||||
# This file defines the common definitions used in several
|
|
||||||
# Makefile. This file must be included, if needed, by the file
|
|
||||||
# Makefile.am.
|
|
||||||
# ============================================================
|
|
||||||
# Standard directory for installation
|
|
||||||
#
|
|
||||||
salomeincludedir = $(includedir)/salome
|
|
||||||
libdir = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
|
|
||||||
bindir = $(prefix)/bin/salome
|
|
||||||
salomescriptdir = $(bindir)
|
|
||||||
salomepythondir = $(pythondir)/salome
|
|
||||||
salomepyexecdir = $(pyexecdir)/salome
|
|
||||||
|
|
||||||
# Directory for installing idl files
|
|
||||||
salomeidldir = $(prefix)/idl/salome
|
|
||||||
|
|
||||||
# Directory for installing resource files
|
|
||||||
salomeresdir = $(prefix)/share/salome/resources/@MODULE_NAME@
|
|
||||||
|
|
||||||
# Directories for installing admin files
|
|
||||||
admlocaldir = $(prefix)/adm_local
|
|
||||||
admlocalunixdir = $(admlocaldir)/unix
|
|
||||||
admlocalm4dir = $(admlocaldir)/unix/config_files
|
|
||||||
|
|
||||||
# Shared modules installation directory
|
|
||||||
sharedpkgpythondir = $(salomepythondir)/shared_modules
|
|
||||||
|
|
||||||
# Documentation directory
|
|
||||||
docdir = $(datadir)/doc/salome
|
|
||||||
|
|
||||||
# common rules
|
|
||||||
|
|
||||||
# meta object implementation files generation (moc)
|
|
||||||
%_moc.cxx: %.h
|
|
||||||
$(MOC) $< -o $@
|
|
||||||
|
|
||||||
# translation (*.qm) files generation (lrelease)
|
|
||||||
%.qm: %.ts
|
|
||||||
$(LRELEASE) $< -qm $@
|
|
||||||
|
|
||||||
# resource files generation (qrcc)
|
|
||||||
qrc_%.cxx: %.qrc
|
|
||||||
$(QRCC) $< -o $@ -name $(*F)
|
|
||||||
|
|
||||||
# qt forms files generation (uic)
|
|
||||||
ui_%.h: %.ui
|
|
||||||
$(UIC) -o $@ $<
|
|
||||||
|
|
||||||
# extra distributed files
|
|
||||||
EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
|
|
||||||
$(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=%.ts)
|
|
||||||
|
|
||||||
# customize clean operation
|
|
||||||
mostlyclean-local:
|
|
||||||
rm -f @builddir@/*_moc.cxx
|
|
||||||
rm -f @builddir@/*.qm
|
|
||||||
rm -f @builddir@/ui_*.h
|
|
||||||
rm -f @builddir@/qrc_*.cxx
|
|
||||||
|
|
||||||
# tests
|
|
||||||
tests: unittest
|
|
||||||
|
|
||||||
unittest: $(UNIT_TEST_PROG)
|
|
||||||
@if test "x$(UNIT_TEST_PROG)" != "x"; then \
|
|
||||||
$(UNIT_TEST_PROG); \
|
|
||||||
fi;
|
|
@ -1,9 +1,9 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
# 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.
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This library is distributed in the hope that it will be useful,
|
# This library is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -17,6 +17,4 @@
|
|||||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
SALOME_CONFIGURE_FILE(VERSION.in VERSION INSTALL ${SALOME_INSTALL_BINS})
|
||||||
|
|
||||||
SUBDIRS = config_files
|
|
5
bin/VERSION.in
Executable file → Normal file
@ -1,3 +1,4 @@
|
|||||||
[SALOME NETGENPLUGIN] : @VERSION@
|
[SALOME NETGENPLUGIN] : @SALOMENETGENPLUGIN_VERSION@
|
||||||
[DEVELOPMENT] : @VERSION_DEV@
|
[DEVELOPMENT] : @SALOMENETGENPLUGIN_VERSION_DEV@
|
||||||
|
[SHA1] : @SALOMENETGENPLUGIN_GIT_SHA1@
|
||||||
[DESCRIPTION] : Netgen meshing plug-in for SALOME Mesh module
|
[DESCRIPTION] : Netgen meshing plug-in for SALOME Mesh module
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
@REM Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
@REM
|
|
||||||
@REM This library is free software; you can redistribute it and/or
|
|
||||||
@REM modify it under the terms of the GNU Lesser General Public
|
|
||||||
@REM License as published by the Free Software Foundation; either
|
|
||||||
@REM version 2.1 of the License.
|
|
||||||
@REM
|
|
||||||
@REM This library is distributed in the hope that it will be useful,
|
|
||||||
@REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
@REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
@REM Lesser General Public License for more details.
|
|
||||||
@REM
|
|
||||||
@REM You should have received a copy of the GNU Lesser General Public
|
|
||||||
@REM License along with this library; if not, write to the Free Software
|
|
||||||
@REM Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
@REM
|
|
||||||
@REM See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
||||||
@REM
|
|
||||||
|
|
||||||
%PYTHONBIN% %KERNEL_ROOT_DIR%\salome_adm\cmake_files\am2cmake.py --netgenplugin
|
|
140
build_configure
@ -1,140 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# Copyright (C) 2003-2007 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
||||||
#
|
|
||||||
|
|
||||||
# Tool for updating list of .in file for the SALOME project
|
|
||||||
# and regenerating configure script
|
|
||||||
# Author : Marc Tajchman - CEA
|
|
||||||
# Date : 10/10/2002
|
|
||||||
# 13/03/2007: Alexander BORODIN - OCN
|
|
||||||
# Reorganization for usage of autotools
|
|
||||||
# $Header$
|
|
||||||
#
|
|
||||||
ORIG_DIR=`pwd`
|
|
||||||
CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
|
|
||||||
|
|
||||||
########################################################################
|
|
||||||
# Test if the KERNEL_ROOT_DIR is set correctly
|
|
||||||
|
|
||||||
if test ! -d "${KERNEL_ROOT_DIR}"; then
|
|
||||||
echo "failed : KERNEL_ROOT_DIR variable is not correct !"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Test if the KERNEL_SRC is set correctly
|
|
||||||
|
|
||||||
#if test ! -d "${KERNEL_SRC}"; then
|
|
||||||
# echo "failed : KERNEL_SRC variable is not correct !"
|
|
||||||
# exit
|
|
||||||
#fi
|
|
||||||
|
|
||||||
########################################################################
|
|
||||||
# Test if the MED_ROOT_DIR is set correctly
|
|
||||||
|
|
||||||
if test ! -d "${MED_ROOT_DIR}"; then
|
|
||||||
echo "failed : MED_ROOT_DIR variable is not correct !"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
########################################################################
|
|
||||||
# Test if the GEOM_ROOT_DIR is set correctly
|
|
||||||
|
|
||||||
if test ! -d "${GEOM_ROOT_DIR}"; then
|
|
||||||
echo "failed : GEOM_ROOT_DIR variable is not correct !"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
########################################################################
|
|
||||||
# Test if the SMESH_ROOT_DIR is set correctly
|
|
||||||
|
|
||||||
if test ! -d "${SMESH_ROOT_DIR}"; then
|
|
||||||
echo "failed : SMESH_ROOT_DIR variable is not correct !"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ${CONF_DIR}
|
|
||||||
ABS_CONF_DIR=`pwd`
|
|
||||||
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
# ____________________________________________________________________
|
|
||||||
# aclocal creates the aclocal.m4 file from the standard macro and the
|
|
||||||
# custom macro embedded in the directory adm_local/unix/config_files
|
|
||||||
# and KERNEL config_files directory.
|
|
||||||
# output:
|
|
||||||
# aclocal.m4
|
|
||||||
# autom4te.cache (directory)
|
|
||||||
echo "======================================================= aclocal"
|
|
||||||
|
|
||||||
if test -d "${GUI_ROOT_DIR}"; then
|
|
||||||
aclocal -I adm_local/unix/config_files \
|
|
||||||
-I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
|
|
||||||
-I ${GUI_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${MED_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${SMESH_ROOT_DIR}/adm_local/unix/config_files || exit 1
|
|
||||||
else
|
|
||||||
aclocal -I adm_local/unix/config_files \
|
|
||||||
-I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
|
|
||||||
-I ${MED_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \
|
|
||||||
-I ${SMESH_ROOT_DIR}/adm_local/unix/config_files || exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ____________________________________________________________________
|
|
||||||
# libtoolize creates some configuration files (ltmain.sh,
|
|
||||||
# config.guess and config.sub). It only depends on the libtool
|
|
||||||
# version. The files are created in the directory specified with the
|
|
||||||
# AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac).
|
|
||||||
# output:
|
|
||||||
# adm_local/unix/config_files/config.guess
|
|
||||||
# adm_local/unix/config_files/config.sub
|
|
||||||
# adm_local/unix/config_files/ltmain.sh
|
|
||||||
echo "==================================================== libtoolize"
|
|
||||||
|
|
||||||
libtoolize --force --copy --automake || exit 1
|
|
||||||
|
|
||||||
# ____________________________________________________________________
|
|
||||||
# autoconf creates the configure script from the file configure.ac (or
|
|
||||||
# configure.in if configure.ac doesn't exist)
|
|
||||||
# output:
|
|
||||||
# configure
|
|
||||||
echo "====================================================== autoconf"
|
|
||||||
|
|
||||||
autoconf
|
|
||||||
|
|
||||||
# ____________________________________________________________________
|
|
||||||
# automake creates some scripts used in building process
|
|
||||||
# (install-sh, missing, ...). It only depends on the automake
|
|
||||||
# version. The files are created in the directory specified with the
|
|
||||||
# AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac). This step also
|
|
||||||
# creates the Makefile.in files from the Makefile.am files.
|
|
||||||
# output:
|
|
||||||
# adm_local/unix/config_files/compile
|
|
||||||
# adm_local/unix/config_files/depcomp
|
|
||||||
# adm_local/unix/config_files/install-sh
|
|
||||||
# adm_local/unix/config_files/missing
|
|
||||||
# adm_local/unix/config_files/py-compile
|
|
||||||
# Makefile.in (from Makefile.am)
|
|
||||||
echo "====================================================== automake"
|
|
||||||
|
|
||||||
automake --copy --gnu --add-missing
|
|
@ -1,28 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
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 . -name Makefile.in | xargs rm -f
|
|
||||||
( cd adm_local/unix/config_files && rm -f config.* depcomp install-sh ltmain.sh missing py-compile )
|
|
458
configure.ac
@ -1,458 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
# PLEASE DO NOT MODIFY configure.in FILE
|
|
||||||
# ALL CHANGES WILL BE DISCARDED BY THE NEXT
|
|
||||||
# build_configure COMMAND
|
|
||||||
# CHANGES MUST BE MADE IN configure.in.base FILE
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
AC_INIT([Salome2 Project NETGENPLUGIN module], [7.0.0], [webmaster.salome@opencascade.com], [SalomeNETGENPLUGIN])
|
|
||||||
AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
|
|
||||||
AC_CANONICAL_HOST
|
|
||||||
AC_CANONICAL_TARGET
|
|
||||||
AM_INIT_AUTOMAKE([-Wno-portability])
|
|
||||||
|
|
||||||
XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
|
|
||||||
AC_SUBST(XVERSION)
|
|
||||||
VERSION_DEV=1
|
|
||||||
AC_SUBST(VERSION_DEV)
|
|
||||||
|
|
||||||
# set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
|
|
||||||
MODULE_NAME=netgenplugin
|
|
||||||
AC_SUBST(MODULE_NAME)
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Initialize source and build root directories
|
|
||||||
dnl
|
|
||||||
|
|
||||||
ROOT_BUILDDIR=`pwd`
|
|
||||||
ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
|
|
||||||
cd $ROOT_SRCDIR
|
|
||||||
ROOT_SRCDIR=`pwd`
|
|
||||||
cd $ROOT_BUILDDIR
|
|
||||||
|
|
||||||
AC_SUBST(ROOT_SRCDIR)
|
|
||||||
AC_SUBST(ROOT_BUILDDIR)
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo Source root directory : $ROOT_SRCDIR
|
|
||||||
echo Build root directory : $ROOT_BUILDDIR
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
|
|
||||||
if test -z "$AR"; then
|
|
||||||
AC_CHECK_PROGS(AR,ar xar,:,$PATH)
|
|
||||||
fi
|
|
||||||
AC_SUBST(AR)
|
|
||||||
|
|
||||||
dnl Export the AR macro so that it will be placed in the libtool file
|
|
||||||
dnl correctly.
|
|
||||||
export AR
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing make
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
AC_PROG_MAKE_SET
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
AC_LOCAL_INSTALL
|
|
||||||
dnl
|
|
||||||
dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
|
|
||||||
|
|
||||||
AC_ENABLE_DEBUG(yes)
|
|
||||||
AC_DISABLE_PRODUCTION
|
|
||||||
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing libtool
|
|
||||||
echo ---------------------------------------------
|
|
||||||
|
|
||||||
dnl first, we set static to no!
|
|
||||||
dnl if we want it, use --enable-static
|
|
||||||
AC_ENABLE_STATIC(no)
|
|
||||||
|
|
||||||
AC_LIBTOOL_DLOPEN
|
|
||||||
AC_PROG_LIBTOOL
|
|
||||||
|
|
||||||
dnl Fix up the INSTALL macro if it s a relative path. We want the
|
|
||||||
dnl full-path to the binary instead.
|
|
||||||
case "$INSTALL" in
|
|
||||||
*install-sh*)
|
|
||||||
INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing C/C++
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
cc_ok=no
|
|
||||||
dnl inutil car libtool
|
|
||||||
dnl AC_PROG_CC
|
|
||||||
AC_PROG_CXX
|
|
||||||
AC_DEPEND_FLAG
|
|
||||||
# AC_CC_WARNINGS([ansi])
|
|
||||||
cc_ok=yes
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing Fortran
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
fortran_ok=no
|
|
||||||
AC_PROG_F77
|
|
||||||
AC_F77_LIBRARY_LDFLAGS
|
|
||||||
AC_PROG_FC
|
|
||||||
AC_FC_LIBRARY_LDFLAGS
|
|
||||||
if test "X$FC" != "X" ; then
|
|
||||||
fortran_ok=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Library libdl :
|
|
||||||
AC_CHECK_LIB(dl,dlopen)
|
|
||||||
|
|
||||||
dnl add library libm :
|
|
||||||
AC_CHECK_LIB(m,ceil)
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Well we use sstream which is not in gcc pre-2.95.3
|
|
||||||
dnl We must test if it exists. If not, add it in include !
|
|
||||||
dnl
|
|
||||||
|
|
||||||
AC_CXX_HAVE_SSTREAM
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo BOOST Library
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_BOOST
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl ---------------------------------------------
|
|
||||||
dnl testing MPICH
|
|
||||||
dnl ---------------------------------------------
|
|
||||||
dnl
|
|
||||||
|
|
||||||
dnl CHECK_MPICH
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing MPI
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_MPI
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing LEX \& YACC
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
lex_yacc_ok=no
|
|
||||||
AC_PROG_YACC
|
|
||||||
AC_PROG_LEX
|
|
||||||
lex_yacc_ok=yes
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing python
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_PYTHON
|
|
||||||
|
|
||||||
AM_PATH_PYTHON(2.3)
|
|
||||||
|
|
||||||
dnl echo
|
|
||||||
dnl echo ---------------------------------------------
|
|
||||||
dnl echo testing java
|
|
||||||
dnl echo ---------------------------------------------
|
|
||||||
dnl echo
|
|
||||||
|
|
||||||
dnl CHECK_JAVA
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing swig
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_SWIG
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing threads
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
ENABLE_PTHREADS
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing omniORB
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_OMNIORB
|
|
||||||
|
|
||||||
dnl echo
|
|
||||||
dnl echo ---------------------------------------------
|
|
||||||
dnl echo testing mico
|
|
||||||
dnl echo ---------------------------------------------
|
|
||||||
dnl echo
|
|
||||||
|
|
||||||
dnl CHECK_MICO
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo default ORB : omniORB
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
DEFAULT_ORB=omniORB
|
|
||||||
CHECK_CORBA
|
|
||||||
|
|
||||||
AC_SUBST_FILE(CORBA)
|
|
||||||
corba=make_$ORB
|
|
||||||
CORBA=adm_local/unix/$corba
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo Testing GUI
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_GUI_MODULE
|
|
||||||
|
|
||||||
gui_ok=no
|
|
||||||
if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then
|
|
||||||
gui_ok=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL(NETGENPLUGIN_ENABLE_GUI, [test "${gui_ok}" = "yes"])
|
|
||||||
|
|
||||||
if test "${SalomeGUI_need}" == "yes"; then
|
|
||||||
if test "${FullGUI_ok}" != "yes"; then
|
|
||||||
AC_MSG_WARN(For configure NETGENPLUGIN module necessary full GUI!)
|
|
||||||
fi
|
|
||||||
elif test "${SalomeGUI_need}" == "auto"; then
|
|
||||||
if test "${FullGUI_ok}" != "yes"; then
|
|
||||||
AC_MSG_WARN(Full GUI not found. Build will be done without GUI!)
|
|
||||||
fi
|
|
||||||
elif test "${SalomeGUI_need}" == "no"; then
|
|
||||||
echo Build without GUI option has been chosen
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "${gui_ok}" = "yes"; then
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing openGL
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_OPENGL
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing QT
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_QT
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing VTK
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_VTK
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo testing HDF5
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_HDF5
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo Testing OpenCascade
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_CAS
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo Testing html generators
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_HTML_GENERATORS
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo Testing Kernel
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_KERNEL
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo Testing Geom
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_GEOM
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo Testing Med
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_MED
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo Testing Netgen
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_NETGEN
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo Testing SMesh
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
CHECK_SMESH
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo Summary
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
AM_CONDITIONAL(CMAKE_BUILD, false)
|
|
||||||
#AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
|
|
||||||
|
|
||||||
echo Configure
|
|
||||||
|
|
||||||
if test "${gui_ok}" = "yes"; then
|
|
||||||
variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok gui_ok Geom_ok SMesh_ok Netgen_ok"
|
|
||||||
elif test "${SalomeGUI_need}" != "no"; then
|
|
||||||
variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok gui_ok Geom_ok SMesh_ok Netgen_ok"
|
|
||||||
else
|
|
||||||
variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok SMesh_ok Netgen_ok"
|
|
||||||
fi
|
|
||||||
|
|
||||||
for var in $variables
|
|
||||||
do
|
|
||||||
printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
|
|
||||||
eval echo \$$var
|
|
||||||
done
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Default ORB : $DEFAULT_ORB"
|
|
||||||
echo
|
|
||||||
|
|
||||||
dnl We don t need to say when we re entering directories if we re using
|
|
||||||
dnl GNU make becuase make does it for us.
|
|
||||||
if test "X$GMAKE" = "Xyes"; then
|
|
||||||
AC_SUBST(SETX) SETX=":"
|
|
||||||
else
|
|
||||||
AC_SUBST(SETX) SETX="set -x"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Build with SMESH cancel compute feature
|
|
||||||
AC_DEFINE(WITH_SMESH_CANCEL_COMPUTE)
|
|
||||||
|
|
||||||
dnl copy shells and utilities contained in the bin directory
|
|
||||||
dnl excluding .in files (treated in AC-OUTPUT below) and CVS
|
|
||||||
dnl directory
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo generating Makefiles and configure files
|
|
||||||
echo ---------------------------------------------
|
|
||||||
echo
|
|
||||||
|
|
||||||
#AC_OUTPUT_COMMANDS([ \
|
|
||||||
# chmod +x ./bin/*; \
|
|
||||||
# chmod +x ./bin/salome/*;
|
|
||||||
#])
|
|
||||||
|
|
||||||
AC_HACK_LIBTOOL
|
|
||||||
AC_CONFIG_COMMANDS([hack_libtool],[
|
|
||||||
sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
|
|
||||||
$(pwd)/hack_libtool \1 \"\$[@]\" \n\
|
|
||||||
}\n\
|
|
||||||
CC=\"hack_libtool\"%g" libtool
|
|
||||||
sed -i "s%\(\s*\)for searchdir in \$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path; do%\1searchdirs=\"\$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path\"\n\1for searchdir in \$searchdirs; do%g" libtool
|
|
||||||
sed -i "s%\(\s*\)searchdirs=\"\$newlib_search_path \$lib_search_path \(.*\)\"%\1searchdirs=\"\$newlib_search_path \$lib_search_path\"\n\1sss_beg=\"\"\n\1sss_end=\"\2\"%g" libtool
|
|
||||||
sed -i "s%\(\s*\)\(for searchdir in \$searchdirs; do\)%\1for sss in \$searchdirs; do\n\1 if ! test -d \$sss; then continue; fi\n\1 ssss=\$(cd \$sss; pwd)\n\1 if test \"\$ssss\" != \"\" \&\& test -d \$ssss; then\n\1 case \$ssss in\n\1 /usr/lib | /usr/lib64 ) ;;\n\1 * ) sss_beg=\"\$sss_beg \$ssss\" ;;\n\1 esac\n\1 fi\n\1done\n\1searchdirs=\"\$sss_beg \$sss_end\"\n\1\2%g" libtool
|
|
||||||
],[])
|
|
||||||
|
|
||||||
# This list is initiated using autoscan and must be updated manually
|
|
||||||
# when adding a new file <filename>.in to manage. When you execute
|
|
||||||
# autoscan, the Makefile list is generated in the output file configure.scan.
|
|
||||||
# This could be helpfull to update de configuration.
|
|
||||||
AC_OUTPUT([ \
|
|
||||||
adm_local/Makefile \
|
|
||||||
adm_local/unix/Makefile \
|
|
||||||
adm_local/unix/config_files/Makefile \
|
|
||||||
bin/VERSION \
|
|
||||||
bin/Makefile \
|
|
||||||
NETGENPLUGIN_version.h \
|
|
||||||
doc/Makefile \
|
|
||||||
doc/salome/Makefile \
|
|
||||||
doc/salome/gui/Makefile \
|
|
||||||
doc/salome/gui/NETGENPLUGIN/Makefile \
|
|
||||||
doc/salome/gui/NETGENPLUGIN/doxyfile \
|
|
||||||
doc/salome/gui/NETGENPLUGIN/doxyfile_py \
|
|
||||||
doc/salome/gui/NETGENPLUGIN/static/header.html \
|
|
||||||
doc/salome/gui/NETGENPLUGIN/static/header_py.html \
|
|
||||||
src/Makefile \
|
|
||||||
src/GUI/Makefile \
|
|
||||||
src/NETGEN/Makefile \
|
|
||||||
src/NETGENPlugin/Makefile \
|
|
||||||
resources/Makefile \
|
|
||||||
idl/Makefile \
|
|
||||||
Makefile \
|
|
||||||
])
|
|
23
doc/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# Copyright (C) 2003-2007 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(salome)
|
@ -1,32 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
# -* Makefile *-
|
|
||||||
# Author : Patrick GOLDBRONN (CEA)
|
|
||||||
# Date : 30/11/2001
|
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
|
||||||
# $Header$
|
|
||||||
# source path
|
|
||||||
#
|
|
||||||
SUBDIRS = salome
|
|
||||||
|
|
||||||
usr_docs:
|
|
||||||
(cd salome && $(MAKE) $(AM_MAKEFLAGS) usr_docs)
|
|
||||||
|
|
||||||
docs: usr_docs
|
|
24
doc/salome/CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# Copyright (C) 2003-2007 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(examples)
|
||||||
|
ADD_SUBDIRECTORY(gui)
|
@ -1,34 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
# -* Makefile *-
|
|
||||||
# Author : Patrick GOLDBRONN (CEA)
|
|
||||||
# Date : 30/11/2001
|
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
|
||||||
# $Header:
|
|
||||||
#
|
|
||||||
SUBDIRS = gui
|
|
||||||
SUBDIRSGUI = gui
|
|
||||||
|
|
||||||
usr_docs:
|
|
||||||
@@SETX@; for d in $(SUBDIRSGUI); do \
|
|
||||||
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
||||||
done;
|
|
||||||
|
|
||||||
docs: usr_docs
|
|
21
doc/salome/examples/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright (C) 2013-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.py")
|
||||||
|
INSTALL(FILES ${files} DESTINATION ${SALOME_INSTALL_DOC}/examples/NETGENPLUGIN)
|
50
doc/salome/examples/netgendemo.py
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# 2d and 3d mesh generation with NETGEN
|
||||||
|
|
||||||
|
import salome
|
||||||
|
salome.salome_init()
|
||||||
|
import GEOM
|
||||||
|
from salome.geom import geomBuilder
|
||||||
|
geompy = geomBuilder.New()
|
||||||
|
|
||||||
|
import SMESH, SALOMEDS
|
||||||
|
from salome.smesh import smeshBuilder
|
||||||
|
smesh = smeshBuilder.New()
|
||||||
|
|
||||||
|
# create a box
|
||||||
|
box = geompy.MakeBoxDXDYDZ(10., 10., 10.)
|
||||||
|
geompy.addToStudy(box, "Box")
|
||||||
|
|
||||||
|
|
||||||
|
# 1. Create a triangular 2D mesh on the box with NETGEN_1D2D algorithm
|
||||||
|
triaN = smesh.Mesh(box, "Box : triangular mesh by NETGEN_1D2D")
|
||||||
|
|
||||||
|
# create a NETGEN_1D2D algorithm for solids
|
||||||
|
algo2D = triaN.Triangle(smeshBuilder.NETGEN_1D2D)
|
||||||
|
|
||||||
|
# define hypotheses
|
||||||
|
n12_params = algo2D.Parameters()
|
||||||
|
|
||||||
|
# define number of segments
|
||||||
|
n12_params.SetNbSegPerEdge(19)
|
||||||
|
|
||||||
|
# define max element
|
||||||
|
n12_params.SetMaxSize(300)
|
||||||
|
|
||||||
|
# 2. Create a tetrahedral mesh on the box with NETGEN_1D2D3D algorithm (full netgen)
|
||||||
|
tetraN = smesh.Mesh(box, "Box : tetrahedrical mesh by NETGEN_1D2D3D")
|
||||||
|
|
||||||
|
# create a NETGEN_1D2D3D algorithm for solids
|
||||||
|
algo3D = tetraN.Tetrahedron(smeshBuilder.FULL_NETGEN)
|
||||||
|
|
||||||
|
# define hypotheses
|
||||||
|
n123_params = algo3D.Parameters()
|
||||||
|
|
||||||
|
# define number of segments
|
||||||
|
n123_params.SetNbSegPerEdge(11)
|
||||||
|
|
||||||
|
# define max element size
|
||||||
|
n123_params.SetMaxSize(300)
|
||||||
|
|
||||||
|
# compute the meshes
|
||||||
|
triaN.Compute()
|
||||||
|
tetraN.Compute()
|
23
doc/salome/gui/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# Copyright (C) 2003-2007 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(NETGENPLUGIN)
|
71
doc/salome/gui/NETGENPLUGIN/CMakeLists.txt
Executable file → Normal file
@ -1,9 +1,9 @@
|
|||||||
# Copyright (C) 2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
# 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.
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This library is distributed in the hope that it will be useful,
|
# This library is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -17,59 +17,34 @@
|
|||||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
|
|
||||||
INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/SalomeMacros.cmake)
|
|
||||||
|
|
||||||
SET(top_builddir ${CMAKE_BINARY_DIR})
|
|
||||||
SET(top_srcdir ${CMAKE_SOURCE_DIR})
|
|
||||||
SET(srcdir ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
SET(builddir ${CMAKE_CURRENT_BINARY_DIR})
|
|
||||||
SET(datadir${CMAKE_INSTALL_PREFIX}/share)
|
|
||||||
SET(docdir ${datadir}/doc/salome)
|
|
||||||
SET(guidocdir ${docdir}/gui/NETGENPLUGIN)
|
|
||||||
|
|
||||||
SALOME_CONFIGURE_FILE(doxyfile.in doxyfile)
|
SALOME_CONFIGURE_FILE(doxyfile.in doxyfile)
|
||||||
SALOME_CONFIGURE_FILE(doxyfile_py.in doxyfile_py)
|
SALOME_CONFIGURE_FILE(doxyfile_py.in doxyfile_py)
|
||||||
SALOME_CONFIGURE_FILE(static/header.html.in ${builddir}/static/header.html)
|
SALOME_CONFIGURE_FILE(static/header.html.in ${CMAKE_CURRENT_BINARY_DIR}/static/header.html)
|
||||||
SALOME_CONFIGURE_FILE(static/header_py.html.in ${builddir}/static/header_py.html)
|
SALOME_CONFIGURE_FILE(static/header_py.html.in ${CMAKE_CURRENT_BINARY_DIR}/static/header_py.html)
|
||||||
|
|
||||||
SET(DOC_SMESH_MeshersList NETGENPlugin)
|
SET(smesh_file "$(SMESH_ROOT_DIR)/bin/salome/collect_mesh_methods.py")
|
||||||
SET(f "$(SMESH_ROOT_DIR)/bin/salome/collect_mesh_methods.py")
|
SET(kernel_file "$ENV{KERNEL_ROOT_DIR}/bin/salome/prepare_generating_doc.py")
|
||||||
IF(WINDOWS)
|
|
||||||
STRING(REPLACE "/" "\\" f ${f})
|
|
||||||
STRING(REPLACE "/" "\\" SCR "@SET PYTHONPATH=${OMNIORB_ROOT_USER}/lib/x86_win32\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=${OMNIORB_ROOT_USER}/lib/python\;%PYTHONPATH%
|
|
||||||
@SET PATH=${OMNIORB_ROOT_USER}/lib/x86_win32\;%PATH%
|
|
||||||
@SET PATH=$ENV{KERNEL_ROOT_DIR}/lib/salome\;%PATH%
|
|
||||||
@SET PYTHONPATH=$ENV{KERNEL_ROOT_DIR}/bin/salome\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=$ENV{KERNEL_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=$ENV{MED_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=$ENV{MED_ROOT_DIR}/bin/salome\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=$ENV{GEOM_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=$ENV{GEOM_ROOT_DIR}/bin/salome\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=$ENV{SMESH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=$ENV{SMESH_ROOT_DIR}/bin/salome\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/salome\;%PYTHONPATH%
|
|
||||||
@SET PYTHONPATH=${CMAKE_INSTALL_PREFIX}/bin/salome\;%PYTHONPATH%
|
|
||||||
@SET SMESH_MeshersList=${DOC_SMESH_MeshersList}
|
|
||||||
")
|
|
||||||
SET(EXT "bat")
|
|
||||||
SET(CALL_STR "call")
|
|
||||||
ELSE(WINDOWS)
|
|
||||||
SET(DOC_PYTHONPATH ${CMAKE_INSTALL_PREFIX}/bin/salome:${SMESH_ROOT_DIR}/bin/salome:${SMESH_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome:${MED_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome:${GEOM_ROOT_DIR}/bin/salome:${GEOM_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome:${KERNEL_ROOT_DIR}/bin/salome:${KERNEL_ROOT_DIR}/lib/python${PYTHON_VERSION}/site-packages/salome:${OMNIORB_ROOT_USER}/lib/python${PYTHON_VERSION}/site-packages:${OMNIORB_ROOT_USER}/lib64/python${PYTHON_VERSION}/site-packages)
|
|
||||||
SET(SCR "export PYTHONPATH=${DOC_PYTHONPATH}:${PYTHONPATH}
|
|
||||||
export SMESH_MeshersList=${DOC_SMESH_MeshersList}
|
|
||||||
")
|
|
||||||
SET(EXT "sh")
|
|
||||||
SET(CALL_STR ".")
|
|
||||||
ENDIF(WINDOWS)
|
|
||||||
|
|
||||||
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/tmp_env.${EXT} "${SCR}")
|
# Define requared environment variables
|
||||||
|
SET(ADD_VAR)
|
||||||
|
LIST(APPEND ADD_VAR SMESH_MeshersList=NETGENPlugin)
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET(usr_docs ${CALL_STR} ${CMAKE_CURRENT_BINARY_DIR}/tmp_env.${EXT} && ${PYTHON_EXECUTABLE} ${f} -d -o smesh.py NETGENPlugin
|
SET(_cmd_options ${smesh_file} -d -o tmp/smeshBuilder.py NETGENPlugin)
|
||||||
|
SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${PYTHON_EXECUTABLE}" "${_cmd_options}" CONTEXT "NETGENPLUGIN_DOC" ADDITIONAL_VARIABLES ${ADD_VAR})
|
||||||
|
|
||||||
|
ADD_CUSTOM_TARGET(usr_docs ${CMAKE_COMMAND} -E make_directory tmp
|
||||||
|
COMMAND ${PYTHON_EXECUTABLE} ${kernel_file} -o tmp/NETGENPluginBuilder.py ${CMAKE_SOURCE_DIR}/src/NETGENPlugin/NETGENPluginBuilder.py
|
||||||
|
COMMAND ${PYTHON_EXECUTABLE} ${kernel_file} -o tmp/smesh_algorithm.py ${SMESH_ROOT_DIR}/${SALOME_INSTALL_PYTHON}/salome/smesh/smesh_algorithm.py
|
||||||
|
COMMAND ${_cmd}
|
||||||
COMMAND ${DOXYGEN_EXECUTABLE} doxyfile_py
|
COMMAND ${DOXYGEN_EXECUTABLE} doxyfile_py
|
||||||
COMMAND ${DOXYGEN_EXECUTABLE} doxyfile
|
COMMAND ${DOXYGEN_EXECUTABLE} doxyfile
|
||||||
COMMAND ${PYTHON_EXECUTABLE} -c "import os; os.remove(r'''smesh.py'''); os.remove(r'''tmp_env.${EXT}''')"
|
COMMAND ${CMAKE_COMMAND} -E remove_directory tmp
|
||||||
COMMAND ${PYTHON_EXECUTABLE} -c "import shutil, sys; shutil.rmtree(r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/NETGENPLUGIN''',True); shutil.copytree(r'''${CMAKE_CURRENT_BINARY_DIR}''',r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/NETGENPLUGIN''', ignore=shutil.ignore_patterns('*usr_docs*', '*CMakeFiles*', '*.cmake', 'doxyfile*', '*.vcproj', 'static', 'Makefile*')); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/images/head.png''',r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/NETGENPLUGIN'''); shutil.copy(r'''${CMAKE_CURRENT_SOURCE_DIR}/images/head.png''',r'''${CMAKE_INSTALL_PREFIX}/share/doc/salome/gui/NETGENPLUGIN/netgenpluginpy_doc''')"
|
|
||||||
VERBATIM
|
VERBATIM
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target usr_docs)")
|
||||||
|
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/NETGENPLUGIN DESTINATION ${SALOME_INSTALL_DOC}/gui)
|
||||||
|
|
||||||
|
SET(make_clean_files NETGENPLUGIN netgenpluginpy_doc.tag)
|
||||||
|
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${make_clean_files}")
|
||||||
|
@ -1,66 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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 : Makefile.in
|
|
||||||
# Author : Vasily Rusyaev (Open Cascade NN)
|
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
|
||||||
# Module : doc
|
|
||||||
#
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
|
||||||
|
|
||||||
EXTRA_DIST += images input static/footer.html static/doxygen.css
|
|
||||||
|
|
||||||
guidocdir = $(docdir)/gui/NETGENPLUGIN
|
|
||||||
guidoc_DATA = images/head.png
|
|
||||||
|
|
||||||
DOC_PYTHONPATH=$(prefix)/bin/salome:$(SMESH_ROOT_DIR)/bin/salome:$(SMESH_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(MED_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(GEOM_ROOT_DIR)/bin/salome:$(GEOM_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(KERNEL_ROOT_DIR)/bin/salome:$(KERNEL_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(OMNIORB_ROOT)/lib/python$(PYTHON_VERSION)/site-packages:$(OMNIORB_ROOT)/lib64/python$(PYTHON_VERSION)/site-packages
|
|
||||||
DOC_SMESH_MeshersList=NETGENPlugin
|
|
||||||
|
|
||||||
smesh.py: $(top_srcdir)/src/NETGENPlugin/NETGENPluginDC.py
|
|
||||||
@PYTHONPATH=$(DOC_PYTHONPATH):${PYTHONPATH} SMESH_MeshersList=$(DOC_SMESH_MeshersList) $(PYTHON) $(SMESH_ROOT_DIR)/bin/salome/collect_mesh_methods.py -d -o $@ NETGENPlugin
|
|
||||||
|
|
||||||
usr_docs: doxyfile_py doxyfile smesh.py
|
|
||||||
@$(DOXYGEN) doxyfile_py ; \
|
|
||||||
$(DOXYGEN) doxyfile
|
|
||||||
|
|
||||||
docs: usr_docs
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
@for filen in `find . -maxdepth 1` ; do \
|
|
||||||
case $${filen} in \
|
|
||||||
./Makefile | ./doxyfile | ./doxyfile_py ) ;; \
|
|
||||||
. | .. | ./static ) ;; \
|
|
||||||
*) echo "Removing $${filen}" ; rm -rf $${filen} ;; \
|
|
||||||
esac ; \
|
|
||||||
done ;
|
|
||||||
|
|
||||||
install-data-local: usr_docs
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(docdir)/gui/NETGENPLUGIN
|
|
||||||
@for filen in `find . -maxdepth 1` ; do \
|
|
||||||
case $${filen} in \
|
|
||||||
./Makefile | ./doxyfile | ./doxyfile_py ) ;; \
|
|
||||||
./doxyfile.bak | ./doxyfile_py.bak ) ;; \
|
|
||||||
. | .. | ./static ) ;; \
|
|
||||||
*) echo "Installing $${filen}" ; cp -rp $${filen} $(DESTDIR)$(docdir)/gui/NETGENPLUGIN ;; \
|
|
||||||
esac ; \
|
|
||||||
done ;
|
|
||||||
cp -rp $(srcdir)/images/head.png $(DESTDIR)$(docdir)/gui/NETGENPLUGIN/netgenpluginpy_doc ;
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
rm -rf $(DESTDIR)$(docdir)/gui/NETGENPLUGIN
|
|
42
doc/salome/gui/NETGENPLUGIN/doxyfile.in
Executable file → Normal file
@ -1,30 +1,8 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# Copyright (C) 2003-2007 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
||||||
#
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# Project related configuration options
|
# Project related configuration options
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
PROJECT_NAME = "SALOME NETGENPLUGIN User's Guide"
|
PROJECT_NAME = "SALOME NETGENPLUGIN User's Guide"
|
||||||
OUTPUT_DIRECTORY = .
|
OUTPUT_DIRECTORY = NETGENPLUGIN
|
||||||
CREATE_SUBDIRS = NO
|
CREATE_SUBDIRS = NO
|
||||||
OUTPUT_LANGUAGE = English
|
OUTPUT_LANGUAGE = English
|
||||||
TAB_SIZE = 5
|
TAB_SIZE = 5
|
||||||
@ -38,20 +16,21 @@ WARNINGS = YES
|
|||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
#Input related options
|
#Input related options
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
INPUT = @srcdir@/input
|
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/input
|
||||||
FILE_PATTERNS = *.doc
|
FILE_PATTERNS = *.doc
|
||||||
EXCLUDE =
|
EXCLUDE =
|
||||||
IMAGE_PATH = @srcdir@/images
|
IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/images
|
||||||
EXAMPLE_PATH =
|
EXAMPLE_PATH = @CMAKE_SOURCE_DIR@/doc/salome/examples
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
#HTML related options
|
#HTML related options
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
GENERATE_HTML = YES
|
GENERATE_HTML = YES
|
||||||
HTML_OUTPUT = .
|
HTML_OUTPUT = .
|
||||||
HTML_HEADER = @builddir@/static/header.html
|
HTML_HEADER = @CMAKE_CURRENT_BINARY_DIR@/static/header.html
|
||||||
HTML_FOOTER = @srcdir@/static/footer.html
|
HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/static/footer.html
|
||||||
HTML_STYLESHEET = @srcdir@/static/doxygen.css
|
HTML_EXTRA_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/static/salome_extra.css
|
||||||
|
HTML_EXTRA_FILES = @CMAKE_CURRENT_SOURCE_DIR@/images/head.png
|
||||||
TOC_EXPAND = YES
|
TOC_EXPAND = YES
|
||||||
DISABLE_INDEX = NO
|
DISABLE_INDEX = NO
|
||||||
GENERATE_TREEVIEW = YES
|
GENERATE_TREEVIEW = YES
|
||||||
@ -113,3 +92,8 @@ GENERATE_RTF = NO
|
|||||||
#because it wrongly defines location of the html files for search.
|
#because it wrongly defines location of the html files for search.
|
||||||
TAGFILES = netgenpluginpy_doc.tag=../NETGENPLUGIN/netgenpluginpy_doc
|
TAGFILES = netgenpluginpy_doc.tag=../NETGENPLUGIN/netgenpluginpy_doc
|
||||||
SEARCHENGINE = YES
|
SEARCHENGINE = YES
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
#Custom commands
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
ALIASES += tui_script{1}="\include \1 <a href=\"../../examples/NETGENPLUGIN/\1\">Download this script</a>"
|
||||||
|
42
doc/salome/gui/NETGENPLUGIN/doxyfile_py.in
Executable file → Normal file
@ -1,30 +1,8 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# Copyright (C) 2003-2007 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
||||||
#
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# Project related configuration options
|
# Project related configuration options
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
PROJECT_NAME = "SALOME NETGENPLUGIN User's Guide"
|
PROJECT_NAME = "SALOME NETGENPLUGIN User's Guide"
|
||||||
OUTPUT_DIRECTORY = .
|
OUTPUT_DIRECTORY = NETGENPLUGIN
|
||||||
CREATE_SUBDIRS = NO
|
CREATE_SUBDIRS = NO
|
||||||
OUTPUT_LANGUAGE = English
|
OUTPUT_LANGUAGE = English
|
||||||
USE_WINDOWS_ENCODING = NO
|
USE_WINDOWS_ENCODING = NO
|
||||||
@ -99,11 +77,11 @@ EXAMPLE_RECURSIVE = NO
|
|||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
#Input related options
|
#Input related options
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
INPUT = @top_srcdir@/src/NETGENPlugin/NETGENPluginDC.py \
|
INPUT = tmp/NETGENPluginBuilder.py \
|
||||||
smesh.py \
|
tmp/smeshBuilder.py \
|
||||||
@SMESH_ROOT_DIR@/bin/salome/smesh_algorithm.py
|
tmp/smesh_algorithm.py
|
||||||
FILE_PATTERNS =
|
FILE_PATTERNS =
|
||||||
IMAGE_PATH = @srcdir@/images
|
IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/images
|
||||||
RECURSIVE = NO
|
RECURSIVE = NO
|
||||||
EXAMPLE_PATH =
|
EXAMPLE_PATH =
|
||||||
|
|
||||||
@ -112,12 +90,14 @@ EXAMPLE_PATH =
|
|||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
GENERATE_HTML = YES
|
GENERATE_HTML = YES
|
||||||
HTML_OUTPUT = netgenpluginpy_doc
|
HTML_OUTPUT = netgenpluginpy_doc
|
||||||
HTML_HEADER = @builddir@/static/header_py.html
|
HTML_HEADER = @CMAKE_CURRENT_BINARY_DIR@/static/header_py.html
|
||||||
HTML_FOOTER = @srcdir@/static/footer.html
|
HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/static/footer.html
|
||||||
HTML_STYLESHEET = @srcdir@/static/doxygen.css
|
HTML_EXTRA_STYLESHEET = @CMAKE_CURRENT_SOURCE_DIR@/static/salome_extra.css
|
||||||
|
HTML_EXTRA_FILES = @CMAKE_CURRENT_SOURCE_DIR@/images/head.png
|
||||||
TOC_EXPAND = YES
|
TOC_EXPAND = YES
|
||||||
DISABLE_INDEX = NO
|
DISABLE_INDEX = NO
|
||||||
GENERATE_TREEVIEW = NO
|
GENERATE_TREEVIEW = YES
|
||||||
|
TREEVIEW_WIDTH = 300
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
#LaTeX related option
|
#LaTeX related option
|
||||||
|
0
doc/salome/gui/NETGENPLUGIN/images/head.png
Executable file → Normal file
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
0
doc/salome/gui/NETGENPLUGIN/images/image1.png
Executable file → Normal file
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
0
doc/salome/gui/NETGENPLUGIN/images/image2.gif
Executable file → Normal file
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 28 KiB |
BIN
doc/salome/gui/NETGENPLUGIN/images/netgen2d_remesher.png
Normal file
After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 14 KiB |
BIN
doc/salome/gui/NETGENPLUGIN/images/netgen_advanced.png
Normal file
After Width: | Height: | Size: 27 KiB |
@ -2,25 +2,24 @@
|
|||||||
|
|
||||||
\page additional_hypo_page Additional Hypotheses
|
\page additional_hypo_page Additional Hypotheses
|
||||||
|
|
||||||
\n <b>Additional Hypotheses</b> can be applied as a supplement to the
|
\n <b>Additional Hypotheses</b> can be applied as a supplement to
|
||||||
main hypotheses, introducing additional concepts to mesh creation.
|
introducing additional concepts to mesh creation.
|
||||||
|
|
||||||
Following additional hypotheses can be used together with NETGEN algoritm:
|
Following additional hypotheses can be used together with NETGEN algorithm:
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li><b>Quadrangle Preference</b> - This additional hypothesis can be used together with Netgen 2D algorithm.
|
<li><b>Viscous Layers</b> additional hypothesis can be used together
|
||||||
It allows Netgen 2D to build quadrangular meshes.</li>
|
with NETGEN 3D and NETGEN 1D-2D-3D algorithms.
|
||||||
<br>
|
|
||||||
This hypothesis has one restriction on its work: the total quantity of
|
|
||||||
segments on all four sides of the face must be even (divisible by 2).
|
|
||||||
|
|
||||||
|
|
||||||
<li><b>Viscous Layers</b> additional hypothesis can be used together with NETGEN 3D.
|
|
||||||
This hypothesis allows creation of layers of highly stretched prisms near
|
This hypothesis allows creation of layers of highly stretched prisms near
|
||||||
mesh boundary, which is beneficial for high quality viscous
|
mesh boundary, which is beneficial for high quality viscous
|
||||||
computations. The prisms constructed on the quadrangular mesh faces are
|
computations. The prisms constructed on the quadrangular mesh faces are
|
||||||
actually the hexahedrons.</li>
|
actually the hexahedrons.</li>
|
||||||
|
|
||||||
|
<li><b>Quadrangle Preference</b> - This additional hypothesis can be
|
||||||
|
used together with NETGEN 2D algorithm.
|
||||||
|
It allows NETGEN 2D to build quad-dominant meshes.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<br>
|
||||||
|
|
||||||
For more detailed description of the described above hypothesis please refer SALOME Mesh User's Guide.
|
For more detailed description of the described above hypothesis please refer SALOME Mesh User's Guide.
|
||||||
*/
|
*/
|
||||||
|
@ -4,11 +4,23 @@
|
|||||||
|
|
||||||
\b NETGENPLUGIN plugin is destined for:
|
\b NETGENPLUGIN plugin is destined for:
|
||||||
- Meshing 1D, 2D and 3D geometric entities.
|
- Meshing 1D, 2D and 3D geometric entities.
|
||||||
- Faces are split into triangular elements.
|
- Faces are split into triangular elements. Quad-dominant mesh is
|
||||||
- Volumes are split into tetrahedral (pyramidal) elements.
|
also possible.
|
||||||
|
- Solids are split into tetrahedral elements. Pyramids are
|
||||||
|
constructed as a transition from quadrangles to tetrahedra.
|
||||||
- Generating 3D meshes from 2D meshes, working without geometrical objects.
|
- Generating 3D meshes from 2D meshes, working without geometrical objects.
|
||||||
|
- Generating 2D meshes from 2D meshes, working without geometrical objects.
|
||||||
|
|
||||||
To manage parameters of the NETGENPLUGIN use \subpage netgen_2d_3d_hypo_page and \subpage additional_hypo_page.
|
When working without geometrical objects, Negten requires that the
|
||||||
|
input mesh to be a manifold shell.
|
||||||
|
|
||||||
|
To manage parameters of the NETGENPLUGIN use
|
||||||
|
\subpage netgen_2d_3d_hypo_page and \subpage additional_hypo_page.
|
||||||
|
|
||||||
|
Native Netgen mesher usually prints a lot of trace output to the terminal
|
||||||
|
window. This output is redirected to some log file by the Plugin. It
|
||||||
|
is possible to switch off this redirection by setting up
|
||||||
|
KEEP_NETGEN_OUTPUT environment variable.
|
||||||
|
|
||||||
Also all NETGENPLUGIN functionalities are accessible via
|
Also all NETGENPLUGIN functionalities are accessible via
|
||||||
\subpage netgenplugin_python_interface_page "NETGENPLUGIN Python interface".
|
\subpage netgenplugin_python_interface_page "NETGENPLUGIN Python interface".
|
||||||
|
@ -1,101 +1,229 @@
|
|||||||
/*!
|
/*!
|
||||||
|
|
||||||
\page netgen_2d_3d_hypo_page Netgen 2D and 3D hypotheses
|
\page netgen_2d_3d_hypo_page NETGEN 2D and 3D hypotheses
|
||||||
|
|
||||||
<b>Netgen 2D Parameters</b> and <b>Netgen 3D Parameters</b> hypotheses work only with
|
<b>NETGEN 2D Parameters</b> and <b>NETGEN 3D Parameters</b>
|
||||||
<b>Netgen 1D-2D</b>, <b>Netgen 2D</b>, <b>Netgen 1D-2D-3D</b> and
|
hypotheses work only with NETGEN algorithm in it's different forms:
|
||||||
<b>Netgen 3D</b> algorithms. <b>Netgen 1D-2D</b> and <b>Netgen
|
- <b>NETGEN 1D-2D</b>
|
||||||
1D-2D-3D</b> algorithms do not require definition of lower-level
|
- <b>NETGEN 2D</b>
|
||||||
hypotheses and algorithms (2D and 1D for meshing 3D objects and 1D for
|
- <b>NETGEN 1D-2D-3D</b>
|
||||||
meshing 2D objects).
|
- <b>NETGEN 3D</b>.
|
||||||
|
|
||||||
|
<b>NETGEN 1D-2D</b> and <b>NETGEN 1D-2D-3D</b> algorithms do not
|
||||||
|
require definition of lower-level hypotheses and algorithms (2D and
|
||||||
|
1D for meshing 3D objects and 1D for meshing 2D objects).
|
||||||
|
|
||||||
|
<b>NETGEN 1D-2D-3D</b> algorithm has maximal number of options. The
|
||||||
|
rest forms have less options as they construct elements of less number
|
||||||
|
of dimensions. All options are distributed among following tabs:
|
||||||
|
- \ref arguments_anchor "Arguments" - basic options.
|
||||||
|
- \ref local_sizes_anchor "Local Sizes" - local element size.
|
||||||
|
- \ref advanced_anchor "Advanced" - advanced options.
|
||||||
|
- \ref stl_anchor "STL" - specific Remesher options.
|
||||||
|
|
||||||
|
\ref simple_anchor "NETGEN 2D/3D simple parameters" hypotheses allow
|
||||||
|
defining the size of elements for each dimension separately.
|
||||||
|
|
||||||
|
|
||||||
|
\anchor arguments_anchor
|
||||||
|
<h2> Arguments tab</h2>
|
||||||
|
|
||||||
|
<b>Arguments</b> tab defines basic mesh parameters.
|
||||||
|
|
||||||
\image html netgen2d3d.png
|
\image html netgen2d3d.png
|
||||||
<center><em>Dialog boxes of <b>Netgen 1D-2D</b> and <b>Netgen
|
<center><em>Main tab of hypothesis dialog box <b>NETGEN 1D-2D-3D</b> algorithm</em></center>
|
||||||
1D-2D-3D</b> algorithms </em></center>
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
\image html netgen2d3d_only.png
|
- <b>Name</b> - allows to define the name for the algorithm (NETGEN
|
||||||
<center><em>Dialog boxes of <b>Netgen 2D</b> and <b>Netgen 3D</b>
|
|
||||||
algorithms </em></center>
|
|
||||||
|
|
||||||
- <b>Name</b> - allows to define the name for the algorithm (Netgen
|
|
||||||
2D (or 3D) Parameters by default).
|
2D (or 3D) Parameters by default).
|
||||||
- <b>Max Size</b> - maximum linear dimensions for mesh cells.
|
- <b>Max Size</b> - maximum linear dimensions for mesh cells.
|
||||||
- <b>Min Size</b> - minimum linear dimensions for mesh cells. It is
|
- <b>Min Size</b> - minimum linear dimensions for mesh cells. It is
|
||||||
ignored if it is more than <b>Max Size</b>.
|
ignored if it is more than <b>Max Size</b>.
|
||||||
- <b>Second Order</b> - if this box is checked in, the algorithm will
|
- <b>Fineness</b> - ranging from <em>Very Coarse</em> to <em>Very Fine</em>
|
||||||
create second order nodes on the mesh, which will then become quadratic.
|
allows to set the level of meshing detalization using the three
|
||||||
- <b>Fineness</b> - ranging from Very Coarse to Very Fine allows to set the
|
parameters below. You can select \a Custom to define them manually.
|
||||||
level of meshing detalization using the three parameters below. You
|
|
||||||
can select Custom to define them manually.
|
|
||||||
- <b>Growth rate</b> - allows to define how much the linear dimensions of
|
- <b>Growth rate</b> - allows to define how much the linear dimensions of
|
||||||
two adjacent cells can differ (i.e. 0.3 means 30%).
|
two adjacent cells can differ (e.g. 0.3 means 30%).
|
||||||
- <b>Nb. Segs per Edge</b> and <b>Nb Segs per Radius</b> - allows to define the
|
- <b>Nb. Segs per Edge</b> - allows to define the minimum number of
|
||||||
minimum number of mesh segments in which edges and radiuses will be
|
mesh segments in which edges will be split. Size of elements computed using
|
||||||
split.
|
this value is trimmed between <b>Min Size</b> and <b>Max Size</b>
|
||||||
- <b>Allow Quadrangles</b> - allows to use quadrangle elements in a
|
bounds. This parameter is used only if <b>Limit Size by Surface
|
||||||
triangle 2D mesh. This checkbox is not present in Netgen 3D parameters
|
Curvature</b> is checked.
|
||||||
because currently building a tetrahedral mesh with quadrangle faces is
|
- <b>Nb Segs per Radius</b> - allows to define the size of
|
||||||
not possible.
|
mesh segments and mesh faces in which curved edges and surfaces will
|
||||||
- <b>Optimize</b> - if this box is checked in, the algorithm will try to
|
be split. A radius of local curvature divided by this value gives an element
|
||||||
create regular (possessing even sides) elements.
|
size at a given point. Element size computed this way is then trimmed
|
||||||
|
between <b>Min Size</b> and <b>Max Size</b> bounds. This parameter is
|
||||||
|
used only if <b>Limit Size by Surface Curvature</b> is checked.
|
||||||
|
- <b>Chordal Error</b> - allows to define the maximum distance between
|
||||||
|
the generated 2D element and the surface. Size of elements computed using
|
||||||
|
this criterion is trimmed between <b>Min Size</b> and <b>Max Size</b> bounds.
|
||||||
|
- <b>Limit Size by Surface Curvature</b> - if this box is checked in,
|
||||||
|
then size of mesh segments and mesh faces on curved edges and surfaces
|
||||||
|
is defined using value of <b>Nb Segs per Radius</b> parameter, and
|
||||||
|
number of segments on straight edges is defined by values of
|
||||||
|
<b>Nb. Segs per Edge</b> parameter. (<b>Growth rate</b> is also taken
|
||||||
|
into account.) If this box is not checked in, then size of elements is
|
||||||
|
defined by three parameters only:
|
||||||
|
<b>Max Size</b>, <b>Min Size</b> and <b>Growth rate</b>.
|
||||||
|
- <b>Quad-dominated</b> - if this box is checked in, the mesher
|
||||||
|
tries to generate quadrangle 2D mesh. Triangle elements are created
|
||||||
|
where quadrangles are not possible.
|
||||||
|
- <b>Second Order</b> - if this box is checked in, the algorithm will
|
||||||
|
create second order mesh.
|
||||||
|
- <b>Optimize</b> - if this box is checked in, the algorithm will modify
|
||||||
|
initially created mesh in order to improve quality of elements. Optimization
|
||||||
|
process is rather time consuming comparing to creation of initial
|
||||||
|
mesh.
|
||||||
|
|
||||||
|
Remesher has two additional basic options:
|
||||||
|
- <b>Keep existing edges</b> - if activated, all edges present in the
|
||||||
|
initial mesh are kept and used to separate STL surfaces.
|
||||||
|
- <b>Create groups of surfaces </b> if activated, all new surface
|
||||||
|
elements are distributed among groups corresponding to STL surfaces
|
||||||
|
the Remesher detects.
|
||||||
|
|
||||||
|
|
||||||
|
\anchor local_sizes_anchor
|
||||||
|
<h2> Local sizes tab</h2>
|
||||||
|
|
||||||
|
<b>Local sizes</b> tab allows to define size of elements on and
|
||||||
|
around specified geometrical objects.
|
||||||
|
|
||||||
\image html netgen3d_local_size.png
|
\image html netgen3d_local_size.png
|
||||||
|
|
||||||
- <b>Local sizes</b> - allows to define size of elements on and
|
- To define the local
|
||||||
around specified geometrical edges and vertices. To define the local
|
size it is necessary to select a geometrical objects in the
|
||||||
size it is necessary to select a geometrical edge or vertex in the
|
object browser or in the viewer, and to click a button corresponding
|
||||||
object browser or in the viewer, and to click <b>On Edge</b> or <b>On
|
to the type of the geometrical objects: <b>On Vertex</b>, <b>On
|
||||||
Vertex</b> correspondingly. <b>Name</b> of the geometrical object and
|
Edge</b> etc. <b>Name</b> of the geometrical object and a
|
||||||
a default <b>Value</b> will be added in the table where the
|
default <b>Value</b> will be added in the table where the <b>Value</b>
|
||||||
<b>Value</b> can be changed.
|
can be changed.
|
||||||
- <b>Remove</b> - deletes a selected row from the table.
|
- <b>Remove</b> - deletes a selected row from the table.
|
||||||
|
- <b>Mesh-size File</b> - opens a dialog to select a file defining
|
||||||
|
size of elements. The file includes two obligatory sections. The first
|
||||||
|
section defines the size at points. The second section defines the
|
||||||
|
size along lines. Sizes defined in the file are trimmed between <b>Min
|
||||||
|
Size</b> and <b>Max Size</b> bounds. Let's consider the following
|
||||||
|
sample size file.
|
||||||
|
\code
|
||||||
|
2
|
||||||
|
92.5 92.5 92.5 0.05
|
||||||
|
42.5 42.5 42.5 0.04
|
||||||
|
1
|
||||||
|
25 25 0 25 25 200 0.3
|
||||||
|
\endcode
|
||||||
|
"2" at the first line means that there are two points in the first
|
||||||
|
section.<br>
|
||||||
|
"92.5 92.5 92.5 0.05" at the second line means that at the point with
|
||||||
|
coordinates (92.5, 92.5, 92.5) size of elements should be 0.05.<br>
|
||||||
|
"1" at the fourth line means that there is one line in the second
|
||||||
|
section.<br>
|
||||||
|
"25 25 0 25 25 200 0.3" means that along the line between points (25,
|
||||||
|
25, 0) and (25, 25, 200) size of elements should be 0.3.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\anchor advanced_anchor
|
||||||
|
<h2> Advanced tab</h2>
|
||||||
|
|
||||||
|
<b>Advanced</b> tab allows advance controlling meshing algorithm.
|
||||||
|
|
||||||
|
\image html netgen_advanced.png
|
||||||
|
|
||||||
|
- <b>Element size weight</b> - weight of triangle size badness with respect to
|
||||||
|
triangle shape badness. Total triangle badness is evaluated as <em>
|
||||||
|
shape_badness + size_weight * size_mismatch</em>.
|
||||||
|
- <b>Nb. surface optimization steps</b> - number of loops when optimizing surface mesh.
|
||||||
|
- <b>Nb. volume optimization steps</b> - number of loops when optimizing volume mesh.
|
||||||
|
- <b>Worst element measure</b> - power of error, used to approximate max error optimization.
|
||||||
|
- <b>Use Delaunay</b> - if activated, use Delaunay approach to
|
||||||
|
construct volume elements, otherwise use Advancing front method.
|
||||||
|
- <b>Check overlapping</b> - check overlapping surfaces during surface meshing.
|
||||||
|
- <b>Check chart boundary</b> - to check chart boundary.
|
||||||
|
- <b>Fuse Coincident Nodes on Edges and Vertices</b> - allows merging
|
||||||
|
mesh nodes on vertices and edges which are geometrically coincident
|
||||||
|
but are topologically different.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\anchor stl_anchor
|
||||||
|
<h2> STL tab</h2>
|
||||||
|
|
||||||
|
<b> STL </b> tab holds option of Remesher (NETGEN 2D working w/o geometry).
|
||||||
|
|
||||||
|
\image html netgen2d_remesher.png
|
||||||
|
<center><em>Options specific to <b>NETGEN 2D</b> remesher algorithms</em></center>
|
||||||
|
|
||||||
|
|
||||||
|
- <b>Ridge angle</b> - defines minimum angle in degrees between
|
||||||
|
normals of adjacent triangles at which the remesher considers the edge
|
||||||
|
between these triangles as a feature edge. Feature edges bound charts
|
||||||
|
of triangles that are re-meshed as separate surfaces.
|
||||||
|
- <b> Edge corner angle </b> - defines minimum angle in degrees
|
||||||
|
between adjacent edges of chart boundary, above which a point shared
|
||||||
|
by the edges is considered as an end point of chart boundary curve.
|
||||||
|
- <b> Chart angle </b> - angle between normals of adjacent triangles
|
||||||
|
under which a shared sharp edge is <em>not</em> considered as chart boundary,
|
||||||
|
provided that this edge is not classified as chart boundary due
|
||||||
|
to <b>Ridge angle</b> and <b>Keep existing edges</b> options.
|
||||||
|
- <b> Outer chart angle </b> - angle for overlapping parts of chart.
|
||||||
|
- <b> Chart distance </b> - defines a factor used to limit element
|
||||||
|
size by distance to neighbor chart.
|
||||||
|
- <b> Line length </b> - defines a factor used to limit size
|
||||||
|
of elements located near ends of chart boundary curves by length of a
|
||||||
|
chart boundary curve.
|
||||||
|
- <b> Close edges </b> - defines a factor used to limit size
|
||||||
|
of elements located near chart boundary curves by distance to other
|
||||||
|
chart boundary curves.
|
||||||
|
- <b> Surface curvature </b> - defines a factor used to limit size
|
||||||
|
of elements by surface curvature.
|
||||||
|
- <b> Edge angle </b> - defines a factor used to limit size
|
||||||
|
of elements by chart boundary curve curvature.
|
||||||
|
- <b> Surface mesh curvature</b> - defines a number of elements per
|
||||||
|
curvature radius.
|
||||||
|
|
||||||
|
\anchor simple_anchor
|
||||||
|
<h2> NETGEN 2D/3D simple parameters</h2>
|
||||||
|
|
||||||
|
<b>NETGEN 2D simple parameters</b> and <b>NETGEN 3D simple
|
||||||
|
parameters</b> hypotheses allow defining the size of elements for each
|
||||||
|
dimension.
|
||||||
|
|
||||||
\image html netgen2d3d_simple.png
|
\image html netgen2d3d_simple.png
|
||||||
|
|
||||||
<b>Netgen 2D simple parameters</b> and <b>Netgen 3D simple
|
|
||||||
parameters</b> allow defining the size of elements for each
|
|
||||||
dimension.
|
|
||||||
|
|
||||||
\b 1D group allows defining the size of 1D elements in either of two ways:
|
\b 1D group allows defining the size of 1D elements in either of two ways:
|
||||||
- <b>Number of Segments</b> allows specifying number of segments, that
|
- <b>Number of Segments</b> allows specifying number of segments, that
|
||||||
will split each edge, with equidistant distribution.
|
will split each edge, with equidistant distribution.
|
||||||
- <b>Local Length</b> can be applied for meshing of edges
|
- <b>Local Length</b> defines length of segments.
|
||||||
composing geometrical object. Definition of this hypothesis
|
|
||||||
consists of setting required \b length of segments.
|
|
||||||
|
|
||||||
\b 2D group allows defining the size of 2D elements
|
\b 2D group allows defining the size of 2D elements
|
||||||
- <b>Length from edges</b> if checked in, hypothesis forces building of
|
- <b>Length from edges</b> if checked in, size of
|
||||||
2D mesh segments having a length calculated as an average edge length
|
2D mesh elements is defined as an average mesh segment length
|
||||||
for a given wire, else
|
for a given wire, else
|
||||||
- <b>Max. Element Area</b> specifies expected maximum element area for
|
- <b>Max. Element Area</b> specifies expected maximum element area for
|
||||||
each 2d element.
|
each 2d element.
|
||||||
- <b>Allow Quadrangles</b> - allows to use quadrangle elements in a
|
- <b>Allow Quadrangles</b> - allows to generate quadrangle elements
|
||||||
triangle 2D mesh. This checkbox is not present in Netgen 3D simple parameters
|
wherever possible.
|
||||||
because currently building a tetrahedral mesh with quadrangle faces is
|
|
||||||
not possible.
|
|
||||||
|
|
||||||
\b 3D groups allows defining the size of 3D elements.
|
\b 3D groups allows defining the size of 3D elements.
|
||||||
- <b>Length from faces</b> if checked in, the area of sides of
|
- <b>Length from faces</b> if checked in, the area of sides of
|
||||||
volumic elements will be equal to an average area of 2D elements, else
|
volumic elements will be equal to an average area of 2D elements, else
|
||||||
- <b>Max. Element Volume</b> specifies expected maximum element volume
|
- <b>Max. Element Volume</b> specifies expected maximum element volume
|
||||||
of each 3d element.
|
of 3d elements.
|
||||||
|
|
||||||
\note Netgen algorithm does not strictly follow the input
|
\note NETGEN algorithm does not strictly follow the input
|
||||||
parameters. The actual mesh can be more or less dense than
|
parameters. The actual mesh can be more or less dense than
|
||||||
required. There are several factors in it:
|
required. There are several factors in it:
|
||||||
- NETGEN does not actually use "NbOfSegments" parameter for discretization of
|
- NETGEN does not actually use <b>Number of Segments</b> parameter for
|
||||||
edge. This parameter is used only to define the local element size
|
discretization of edge. This parameter is used only to define the
|
||||||
(size at the given point), so local sizes of adjacent edges influence
|
local element size (size at the given point), so local sizes of
|
||||||
each other.
|
close edges influence each other.
|
||||||
- NETGEN additionally restricts the element size according to edge curvature.
|
- NETGEN additionally restricts the element size according to edge curvature.
|
||||||
- The local size of edges influences the size of close triangles.
|
- The local size of segments influences the size of close triangles.
|
||||||
- The order of elements and their size in the 1D mesh generated by
|
- The order of elements and their size in the 1D mesh generated by
|
||||||
NETGEN differ from those in the 1D mesh generated by Regular_1D
|
NETGEN differ from those in the 1D mesh generated by Regular_1D
|
||||||
algorithm, resulting in different 2D and 3D meshes.
|
algorithm, which results in different 2D and 3D meshes at the same 1D
|
||||||
|
input parameters.
|
||||||
\note In the case where two points are geometrically confounded, a single node is generated.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,59 +2,17 @@
|
|||||||
|
|
||||||
\page netgenplugin_python_interface_page Python Interface
|
\page netgenplugin_python_interface_page Python Interface
|
||||||
|
|
||||||
Python package NETGENPluginDC defines several classes, destined for
|
Python package NETGENPluginBuilder defines several classes, destined for
|
||||||
creation of the 2D and 3D meshes.
|
creation of the 2D and 3D meshes.
|
||||||
|
|
||||||
NETGEN meshing plugin dynamically adds several methods to the
|
NETGEN meshing plugin dynamically adds several methods to the
|
||||||
smesh.Mesh class to create meshing algorithms.
|
smeshBuilder.Mesh to create meshing algorithms.
|
||||||
|
|
||||||
Below you can see an example of usage of the NETGENPlugin package for mesh generation:
|
Below you can see an example of usage of the NETGENPluginBuilder package for mesh generation:
|
||||||
|
|
||||||
\code
|
\anchor example_NETGENPlugin
|
||||||
|
<h2>Example of 2d and 3d mesh generation with NETGEN:</h2>
|
||||||
import geompy
|
\tui_script{netgendemo.py}
|
||||||
import smesh
|
|
||||||
|
|
||||||
# create a box
|
|
||||||
box = geompy.MakeBoxDXDYDZ(10., 10., 10.)
|
|
||||||
geompy.addToStudy(box, "Box")
|
|
||||||
|
|
||||||
|
|
||||||
# 1. Create a triangular 2D mesh on the box with NETGEN_1D2D algorithm
|
|
||||||
triaN = smesh.Mesh(box, "Box : triangular mesh by NETGEN_1D2D")
|
|
||||||
|
|
||||||
# create a Netgen_1D2D algorithm for solids
|
|
||||||
algo2D = triaN.Triangle(smesh.NETGEN_1D2D)
|
|
||||||
|
|
||||||
# define hypotheses
|
|
||||||
n12_params = algo2D.Parameters()
|
|
||||||
|
|
||||||
# define number of segments
|
|
||||||
n12_params.SetNbSegPerEdge(19)
|
|
||||||
|
|
||||||
# define max element
|
|
||||||
n12_params.SetMaxSize(300)
|
|
||||||
|
|
||||||
# 2. Create a tetrahedral mesh on the box with NETGEN_1D2D3D algorithm (full netgen)
|
|
||||||
tetraN = smesh.Mesh(box, "Box : tetrahedrical mesh by NETGEN_1D2D3D")
|
|
||||||
|
|
||||||
# create a Netgen_1D2D3D algorithm for solids
|
|
||||||
algo3D = tetraN.Tetrahedron(smesh.FULL_NETGEN)
|
|
||||||
|
|
||||||
# define hypotheses
|
|
||||||
n123_params = algo3D.Parameters()
|
|
||||||
|
|
||||||
# define number of segments
|
|
||||||
n123_params.SetNbSegPerEdge(11)
|
|
||||||
|
|
||||||
# define max element size
|
|
||||||
n123_params.SetMaxSize(300)
|
|
||||||
|
|
||||||
# compute the meshes
|
|
||||||
triaN.Compute()
|
|
||||||
tetraN.Compute()
|
|
||||||
|
|
||||||
\endcode
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,836 +0,0 @@
|
|||||||
/* The standard CSS for doxygen */
|
|
||||||
|
|
||||||
body, table, div, p, dl {
|
|
||||||
font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @group Heading Levels */
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 150%;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size: 120%;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
font-size: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
dt {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.multicol {
|
|
||||||
-moz-column-gap: 1em;
|
|
||||||
-webkit-column-gap: 1em;
|
|
||||||
-moz-column-count: 3;
|
|
||||||
-webkit-column-count: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
p.startli, p.startdd, p.starttd {
|
|
||||||
margin-top: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
p.endli {
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
p.enddd {
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
p.endtd {
|
|
||||||
margin-bottom: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
caption {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
span.legend {
|
|
||||||
font-size: 70%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3.version {
|
|
||||||
font-size: 90%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.qindex, div.navtab{
|
|
||||||
background-color: #EBEFF6;
|
|
||||||
border: 1px solid #A3B4D7;
|
|
||||||
text-align: center;
|
|
||||||
margin: 2px;
|
|
||||||
padding: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.qindex, div.navpath {
|
|
||||||
width: 100%;
|
|
||||||
line-height: 140%;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.navtab {
|
|
||||||
margin-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @group Link Styling */
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #3D578C;
|
|
||||||
font-weight: normal;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.contents a:visited {
|
|
||||||
color: #4665A2;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.qindex {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.qindexHL {
|
|
||||||
font-weight: bold;
|
|
||||||
background-color: #9CAFD4;
|
|
||||||
color: #ffffff;
|
|
||||||
border: 1px double #869DCA;
|
|
||||||
}
|
|
||||||
|
|
||||||
.contents a.qindexHL:visited {
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.el {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.elRef {
|
|
||||||
}
|
|
||||||
|
|
||||||
a.code {
|
|
||||||
color: #4665A2;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.codeRef {
|
|
||||||
color: #4665A2;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
dl.el {
|
|
||||||
margin-left: -1cm;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fragment {
|
|
||||||
font-family: monospace, fixed;
|
|
||||||
font-size: 105%;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre.fragment {
|
|
||||||
border: 1px solid #C4CFE5;
|
|
||||||
background-color: #FBFCFD;
|
|
||||||
padding: 4px 6px;
|
|
||||||
margin: 4px 8px 4px 2px;
|
|
||||||
overflow: auto;
|
|
||||||
word-wrap: break-word;
|
|
||||||
font-size: 9pt;
|
|
||||||
line-height: 125%;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.ah {
|
|
||||||
background-color: black;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #ffffff;
|
|
||||||
margin-bottom: 3px;
|
|
||||||
margin-top: 3px;
|
|
||||||
padding: 0.2em;
|
|
||||||
border: solid thin #333;
|
|
||||||
border-radius: 0.5em;
|
|
||||||
-webkit-border-radius: .5em;
|
|
||||||
-moz-border-radius: .5em;
|
|
||||||
box-shadow: 2px 2px 3px #999;
|
|
||||||
-webkit-box-shadow: 2px 2px 3px #999;
|
|
||||||
-moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px;
|
|
||||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444));
|
|
||||||
background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000);
|
|
||||||
}
|
|
||||||
|
|
||||||
div.groupHeader {
|
|
||||||
margin-left: 16px;
|
|
||||||
margin-top: 12px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.version {
|
|
||||||
border:1px solid #0000FF;
|
|
||||||
color: #CCCCCC;
|
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
|
||||||
font-size: 9pt;
|
|
||||||
text-align: center;
|
|
||||||
width:100px;
|
|
||||||
-moz-border-radius: 8px;
|
|
||||||
margin: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.footer1 {
|
|
||||||
background-color: #DFE5F1;
|
|
||||||
border: 1px solid #AAAAAA;
|
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
|
||||||
font-size: 11px;
|
|
||||||
padding: 10px;
|
|
||||||
margin-top: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
div.groupText {
|
|
||||||
margin-left: 16px;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
background: white;
|
|
||||||
color: black;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.contents {
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-left: 10px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
td.indexkey {
|
|
||||||
background-color: #EBEFF6;
|
|
||||||
font-weight: bold;
|
|
||||||
border: 1px solid #C4CFE5;
|
|
||||||
margin: 2px 0px 2px 0;
|
|
||||||
padding: 2px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
td.indexvalue {
|
|
||||||
background-color: #EBEFF6;
|
|
||||||
border: 1px solid #C4CFE5;
|
|
||||||
padding: 2px 10px;
|
|
||||||
margin: 2px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
tr.memlist {
|
|
||||||
background-color: #EEF1F7;
|
|
||||||
}
|
|
||||||
|
|
||||||
p.formulaDsp {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.formulaDsp {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
img.formulaInl {
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.center {
|
|
||||||
text-align: center;
|
|
||||||
margin-top: 0px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.center img {
|
|
||||||
border: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
address.footer {
|
|
||||||
text-align: right;
|
|
||||||
padding-right: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.footer {
|
|
||||||
border: 0px;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @group Code Colorization */
|
|
||||||
|
|
||||||
span.keyword {
|
|
||||||
color: #008000
|
|
||||||
}
|
|
||||||
|
|
||||||
span.keywordtype {
|
|
||||||
color: #604020
|
|
||||||
}
|
|
||||||
|
|
||||||
span.keywordflow {
|
|
||||||
color: #e08000
|
|
||||||
}
|
|
||||||
|
|
||||||
span.comment {
|
|
||||||
color: #800000
|
|
||||||
}
|
|
||||||
|
|
||||||
span.preprocessor {
|
|
||||||
color: #806020
|
|
||||||
}
|
|
||||||
|
|
||||||
span.stringliteral {
|
|
||||||
color: #002080
|
|
||||||
}
|
|
||||||
|
|
||||||
span.charliteral {
|
|
||||||
color: #008080
|
|
||||||
}
|
|
||||||
|
|
||||||
span.vhdldigit {
|
|
||||||
color: #ff00ff
|
|
||||||
}
|
|
||||||
|
|
||||||
span.vhdlchar {
|
|
||||||
color: #000000
|
|
||||||
}
|
|
||||||
|
|
||||||
span.vhdlkeyword {
|
|
||||||
color: #700070
|
|
||||||
}
|
|
||||||
|
|
||||||
span.vhdllogic {
|
|
||||||
color: #ff0000
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
/*
|
|
||||||
.search {
|
|
||||||
color: #003399;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
form.search {
|
|
||||||
margin-bottom: 0px;
|
|
||||||
margin-top: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
input.search {
|
|
||||||
font-size: 75%;
|
|
||||||
color: #000080;
|
|
||||||
font-weight: normal;
|
|
||||||
background-color: #e8eef2;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
td.tiny {
|
|
||||||
font-size: 75%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dirtab {
|
|
||||||
padding: 4px;
|
|
||||||
border-collapse: collapse;
|
|
||||||
border: 1px solid #A3B4D7;
|
|
||||||
}
|
|
||||||
|
|
||||||
th.dirtab {
|
|
||||||
background: #EBEFF6;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
|
||||||
height: 0px;
|
|
||||||
border: none;
|
|
||||||
border-top: 1px solid #4A6AAA;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr.footer {
|
|
||||||
height: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @group Member Descriptions */
|
|
||||||
|
|
||||||
table.memberdecls {
|
|
||||||
border-spacing: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mdescLeft, .mdescRight,
|
|
||||||
.memItemLeft, .memItemRight,
|
|
||||||
.memTemplItemLeft, .memTemplItemRight, .memTemplParams {
|
|
||||||
background-color: #F9FAFC;
|
|
||||||
border: none;
|
|
||||||
margin: 4px;
|
|
||||||
padding: 1px 0 0 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mdescLeft, .mdescRight {
|
|
||||||
padding: 0px 8px 4px 8px;
|
|
||||||
color: #555;
|
|
||||||
}
|
|
||||||
|
|
||||||
.memItemLeft, .memItemRight, .memTemplParams {
|
|
||||||
border-top: 1px solid #C4CFE5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.memItemLeft, .memTemplItemLeft {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.memTemplParams {
|
|
||||||
color: #4665A2;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
/* @group Member Details */
|
|
||||||
|
|
||||||
/* Styles for detailed member documentation */
|
|
||||||
|
|
||||||
.memtemplate {
|
|
||||||
font-size: 80%;
|
|
||||||
color: #4665A2;
|
|
||||||
font-weight: normal;
|
|
||||||
margin-left: 9px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.memnav {
|
|
||||||
background-color: #EBEFF6;
|
|
||||||
border: 1px solid #A3B4D7;
|
|
||||||
text-align: center;
|
|
||||||
margin: 2px;
|
|
||||||
margin-right: 15px;
|
|
||||||
padding: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.memitem {
|
|
||||||
padding: 0;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.memname {
|
|
||||||
white-space: nowrap;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-left: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.memproto {
|
|
||||||
border-top: 1px solid #A8B8D9;
|
|
||||||
border-left: 1px solid #A8B8D9;
|
|
||||||
border-right: 1px solid #A8B8D9;
|
|
||||||
padding: 6px 0px 6px 0px;
|
|
||||||
color: #253555;
|
|
||||||
font-weight: bold;
|
|
||||||
text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
|
|
||||||
/* opera specific markup */
|
|
||||||
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
|
|
||||||
border-top-right-radius: 8px;
|
|
||||||
border-top-left-radius: 8px;
|
|
||||||
/* firefox specific markup */
|
|
||||||
-moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
|
|
||||||
-moz-border-radius-topright: 8px;
|
|
||||||
-moz-border-radius-topleft: 8px;
|
|
||||||
/* webkit specific markup */
|
|
||||||
-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
|
|
||||||
-webkit-border-top-right-radius: 8px;
|
|
||||||
-webkit-border-top-left-radius: 8px;
|
|
||||||
background-image:url('nav_f.png');
|
|
||||||
background-repeat:repeat-x;
|
|
||||||
background-color: #E2E8F2;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.memdoc {
|
|
||||||
border-bottom: 1px solid #A8B8D9;
|
|
||||||
border-left: 1px solid #A8B8D9;
|
|
||||||
border-right: 1px solid #A8B8D9;
|
|
||||||
padding: 2px 5px;
|
|
||||||
background-color: #FBFCFD;
|
|
||||||
border-top-width: 0;
|
|
||||||
/* opera specific markup */
|
|
||||||
border-bottom-left-radius: 8px;
|
|
||||||
border-bottom-right-radius: 8px;
|
|
||||||
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
|
|
||||||
/* firefox specific markup */
|
|
||||||
-moz-border-radius-bottomleft: 8px;
|
|
||||||
-moz-border-radius-bottomright: 8px;
|
|
||||||
-moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px;
|
|
||||||
background-image: -moz-linear-gradient(center top, #FFFFFF 0%, #FFFFFF 60%, #F7F8FB 95%, #EEF1F7);
|
|
||||||
/* webkit specific markup */
|
|
||||||
-webkit-border-bottom-left-radius: 8px;
|
|
||||||
-webkit-border-bottom-right-radius: 8px;
|
|
||||||
-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
|
|
||||||
background-image: -webkit-gradient(linear,center top,center bottom,from(#FFFFFF), color-stop(0.6,#FFFFFF), color-stop(0.60,#FFFFFF), color-stop(0.95,#F7F8FB), to(#EEF1F7));
|
|
||||||
}
|
|
||||||
|
|
||||||
.paramkey {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.paramtype {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.paramname {
|
|
||||||
color: #602020;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
.paramname em {
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.params, .retval, .exception, .tparams {
|
|
||||||
border-spacing: 6px 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.params .paramname, .retval .paramname {
|
|
||||||
font-weight: bold;
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
.params .paramtype {
|
|
||||||
font-style: italic;
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
.params .paramdir {
|
|
||||||
font-family: "courier new",courier,monospace;
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
/* @group Directory (tree) */
|
|
||||||
|
|
||||||
/* for the tree view */
|
|
||||||
|
|
||||||
.ftvtree {
|
|
||||||
font-family: sans-serif;
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* these are for tree view when used as main index */
|
|
||||||
|
|
||||||
.directory {
|
|
||||||
font-size: 9pt;
|
|
||||||
font-weight: bold;
|
|
||||||
margin: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.directory h3 {
|
|
||||||
margin: 0px;
|
|
||||||
margin-top: 1em;
|
|
||||||
font-size: 11pt;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
The following two styles can be used to replace the root node title
|
|
||||||
with an image of your choice. Simply uncomment the next two styles,
|
|
||||||
specify the name of your image and be sure to set 'height' to the
|
|
||||||
proper pixel height of your image.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
.directory h3.swap {
|
|
||||||
height: 61px;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-image: url("yourimage.gif");
|
|
||||||
}
|
|
||||||
.directory h3.swap span {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
.directory > h3 {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.directory p {
|
|
||||||
margin: 0px;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.directory div {
|
|
||||||
display: none;
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.directory img {
|
|
||||||
vertical-align: -30%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* these are for tree view when not used as main index */
|
|
||||||
|
|
||||||
.directory-alt {
|
|
||||||
font-size: 100%;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.directory-alt h3 {
|
|
||||||
margin: 0px;
|
|
||||||
margin-top: 1em;
|
|
||||||
font-size: 11pt;
|
|
||||||
}
|
|
||||||
|
|
||||||
.directory-alt > h3 {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.directory-alt p {
|
|
||||||
margin: 0px;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.directory-alt div {
|
|
||||||
display: none;
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.directory-alt img {
|
|
||||||
vertical-align: -30%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @end */
|
|
||||||
|
|
||||||
div.dynheader {
|
|
||||||
margin-top: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
address {
|
|
||||||
font-style: normal;
|
|
||||||
color: #2A3D61;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.doxtable {
|
|
||||||
border-collapse:collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.doxtable td, table.doxtable th {
|
|
||||||
border: 1px solid #2D4068;
|
|
||||||
padding: 3px 7px 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.doxtable th {
|
|
||||||
background-color: #374F7F;
|
|
||||||
color: #FFFFFF;
|
|
||||||
font-size: 110%;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
padding-top: 5px;
|
|
||||||
text-align:left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tabsearch {
|
|
||||||
top: 0px;
|
|
||||||
left: 10px;
|
|
||||||
height: 36px;
|
|
||||||
background-image: url('tab_b.png');
|
|
||||||
z-index: 101;
|
|
||||||
overflow: hidden;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navpath ul
|
|
||||||
{
|
|
||||||
font-size: 11px;
|
|
||||||
background-image:url('tab_b.png');
|
|
||||||
background-repeat:repeat-x;
|
|
||||||
height:30px;
|
|
||||||
line-height:30px;
|
|
||||||
color:#8AA0CC;
|
|
||||||
border:solid 1px #C2CDE4;
|
|
||||||
overflow:hidden;
|
|
||||||
margin:0px;
|
|
||||||
padding:0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navpath li
|
|
||||||
{
|
|
||||||
list-style-type:none;
|
|
||||||
float:left;
|
|
||||||
padding-left:10px;
|
|
||||||
padding-right:15px;
|
|
||||||
background-image:url('bc_s.png');
|
|
||||||
background-repeat:no-repeat;
|
|
||||||
background-position:right;
|
|
||||||
color:#364D7C;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navpath li.navelem a
|
|
||||||
{
|
|
||||||
height:32px;
|
|
||||||
display:block;
|
|
||||||
text-decoration: none;
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navpath li.navelem a:hover
|
|
||||||
{
|
|
||||||
color:#6884BD;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navpath li.footer
|
|
||||||
{
|
|
||||||
list-style-type:none;
|
|
||||||
float:right;
|
|
||||||
padding-left:10px;
|
|
||||||
padding-right:15px;
|
|
||||||
background-image:none;
|
|
||||||
background-repeat:no-repeat;
|
|
||||||
background-position:right;
|
|
||||||
color:#364D7C;
|
|
||||||
font-size: 8pt;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
div.summary
|
|
||||||
{
|
|
||||||
float: right;
|
|
||||||
font-size: 8pt;
|
|
||||||
padding-right: 5px;
|
|
||||||
width: 50%;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.summary a
|
|
||||||
{
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.ingroups
|
|
||||||
{
|
|
||||||
font-size: 8pt;
|
|
||||||
padding-left: 5px;
|
|
||||||
width: 50%;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.ingroups a
|
|
||||||
{
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.header
|
|
||||||
{
|
|
||||||
background-image:url('nav_h.png');
|
|
||||||
background-repeat:repeat-x;
|
|
||||||
background-color: #F9FAFC;
|
|
||||||
margin: 0px;
|
|
||||||
border-bottom: 1px solid #C4CFE5;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.headertitle
|
|
||||||
{
|
|
||||||
padding: 5px 5px 5px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
font-size: 150%;
|
|
||||||
font-weight: bold;
|
|
||||||
margin: 10px 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl
|
|
||||||
{
|
|
||||||
padding: 0 0 0 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug
|
|
||||||
{
|
|
||||||
border-left:4px solid;
|
|
||||||
padding: 0 0 0 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.note
|
|
||||||
{
|
|
||||||
border-color: #D0D000;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.warning, dl.attention
|
|
||||||
{
|
|
||||||
border-color: #FF0000;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.pre, dl.post, dl.invariant
|
|
||||||
{
|
|
||||||
border-color: #00D000;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.deprecated
|
|
||||||
{
|
|
||||||
border-color: #505050;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.todo
|
|
||||||
{
|
|
||||||
border-color: #00C0E0;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.test
|
|
||||||
{
|
|
||||||
border-color: #3030E0;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.bug
|
|
||||||
{
|
|
||||||
border-color: #C08050;
|
|
||||||
}
|
|
||||||
|
|
||||||
#projectlogo
|
|
||||||
{
|
|
||||||
text-align: center;
|
|
||||||
vertical-align: bottom;
|
|
||||||
border-collapse: separate;
|
|
||||||
}
|
|
||||||
|
|
||||||
#projectlogo img
|
|
||||||
{
|
|
||||||
border: 0px none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#projectname
|
|
||||||
{
|
|
||||||
background-color: #175783;
|
|
||||||
border: 1px solid;
|
|
||||||
height: 80px;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
/* font: 300% arial,sans-serif;*/
|
|
||||||
margin: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#projectbrief
|
|
||||||
{
|
|
||||||
font: 120% arial,sans-serif;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#projectnumber
|
|
||||||
{
|
|
||||||
font: 50% arial,sans-serif;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#titlearea
|
|
||||||
{
|
|
||||||
background: url("head.png");
|
|
||||||
background-color: #175783;
|
|
||||||
border: 1px solid;
|
|
||||||
height: 80px;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
padding: 0px;
|
|
||||||
margin: 0px;
|
|
||||||
width: 100%;
|
|
||||||
border-bottom: 1px solid #5373B4;
|
|
||||||
}
|
|
||||||
|
|
20
doc/salome/gui/NETGENPLUGIN/static/footer.html
Executable file → Normal file
@ -1,12 +1,14 @@
|
|||||||
<li class="footer"></li>
|
<!-- HTML footer for doxygen 1.8.3.1-->
|
||||||
</ul>
|
<!--BEGIN GENERATE_TREEVIEW-->
|
||||||
</div>
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||||
<div class="footer1">
|
<ul>
|
||||||
<div style="text-align: center;">
|
$navpath
|
||||||
Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE<br>
|
<li class="footer">
|
||||||
|
Copyright © 2007-2024 CEA, EDF, OPEN CASCADE<br>
|
||||||
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS<br>
|
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS<br>
|
||||||
</div>
|
</li>
|
||||||
</div>
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!--END GENERATE_TREEVIEW-->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
23
doc/salome/gui/NETGENPLUGIN/static/header.html.in
Executable file → Normal file
@ -1,20 +1,23 @@
|
|||||||
|
<!-- HTML header for doxygen 1.8.3.1-->
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||||
<title>$title</title>
|
<meta name="generator" content="Doxygen $doxygenversion"/>
|
||||||
<link href="$relpath$tabs.css" rel="stylesheet" type="text/css"/>
|
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
|
||||||
|
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
|
||||||
|
<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
|
||||||
|
<script type="text/javascript" src="$relpath^jquery.js"></script>
|
||||||
|
<script type="text/javascript" src="$relpath^dynsections.js"></script>
|
||||||
$treeview
|
$treeview
|
||||||
$search
|
$search
|
||||||
$mathjax
|
$mathjax
|
||||||
<script type="text/javascript">
|
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
|
||||||
$(document).ready(initResizable);
|
$extrastylesheet
|
||||||
</script>
|
|
||||||
<link href="$relpath$doxygen.css" rel="stylesheet" type="text/css"/>
|
|
||||||
</head>
|
</head>
|
||||||
<body onload='searchBox.OnSelectItem(0);'>
|
<body>
|
||||||
<div id="top"><!-- do not remove this div! -->
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||||
<div id="titlearea"><div align="right"><div class="version">Version: @VERSION@</div></div></div>
|
|
||||||
|
|
||||||
</div>
|
<div id="titlearea"><div align="right"><div class="version">Version: @SALOMENETGENPLUGIN_VERSION@</div></div></div>
|
||||||
|
<!-- end header part -->
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
|
<!-- HTML header for doxygen 1.8.3.1-->
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||||
<title>$title</title>
|
<meta name="generator" content="Doxygen $doxygenversion"/>
|
||||||
<link href="$relpath$tabs.css" rel="stylesheet" type="text/css"/>
|
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
|
||||||
|
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
|
||||||
|
<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
|
||||||
|
<script type="text/javascript" src="$relpath^jquery.js"></script>
|
||||||
|
<script type="text/javascript" src="$relpath^dynsections.js"></script>
|
||||||
$treeview
|
$treeview
|
||||||
$search
|
$search
|
||||||
$mathjax
|
$mathjax
|
||||||
<script type="text/javascript">
|
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
|
||||||
$(document).ready(initResizable);
|
$extrastylesheet
|
||||||
</script>
|
|
||||||
<link href="$relpath$doxygen.css" rel="stylesheet" type="text/css"/>
|
|
||||||
</head>
|
</head>
|
||||||
<body onload='searchBox.OnSelectItem(0);'>
|
<body>
|
||||||
<div id="top"><!-- do not remove this div! -->
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||||
<div id="titlearea"><div align="right"><div class="version">Version: @VERSION@</div></div></div>
|
|
||||||
<div align="bottom-left"><a href=../index.html>Home</a></div>
|
|
||||||
|
|
||||||
</div>
|
<div id="titlearea"><div align="right"><div class="version">Version: @SALOMENETGENPLUGIN_VERSION@</div></div></div>
|
||||||
|
<div align="bottom-left"><a href=../index.html>Home</a></div>
|
||||||
|
<!-- end header part -->
|
||||||
|
29
doc/salome/gui/NETGENPLUGIN/static/salome_extra.css
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/* The extra CSS for doxygen 1.8.3.1 */
|
||||||
|
|
||||||
|
#titlearea {
|
||||||
|
background-image:url('head.png');
|
||||||
|
background-color: #175783;
|
||||||
|
border: 1px solid;
|
||||||
|
height: 80px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
width: 99.9%;
|
||||||
|
border-bottom: 1px solid #5373B4;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.version {
|
||||||
|
border:1px solid #0000FF;
|
||||||
|
color: #CCCCCC;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-size: 9pt;
|
||||||
|
text-align: center;
|
||||||
|
width:100px;
|
||||||
|
-moz-border-radius: 8px;
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navpath li.footer {
|
||||||
|
line-height:15px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
50
idl/CMakeLists.txt
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
|
||||||
|
INCLUDE(UseOmniORB) # Provided by KERNEL
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${OMNIORB_INCLUDE_DIR}
|
||||||
|
${KERNEL_INCLUDE_DIRS}
|
||||||
|
${GEOM_INCLUDE_DIRS}
|
||||||
|
${SMESH_INCLUDE_DIRS}
|
||||||
|
${PROJECT_BINARY_DIR}/idl
|
||||||
|
)
|
||||||
|
|
||||||
|
SALOME_CONFIGURE_FILE(NETGENPlugin_NETGEN_VERSION.idl.in NETGENPlugin_NETGEN_VERSION.idl)
|
||||||
|
|
||||||
|
SET(SalomeIDLNETGENPLUGIN_IDLSOURCES
|
||||||
|
NETGENPlugin_Algorithm.idl
|
||||||
|
NETGENPlugin_NETGEN_VERSION.idl
|
||||||
|
)
|
||||||
|
|
||||||
|
SET(_idl_include_dirs
|
||||||
|
${KERNEL_ROOT_DIR}/idl/salome
|
||||||
|
${GEOM_ROOT_DIR}/idl/salome
|
||||||
|
${SMESH_ROOT_DIR}/idl/salome
|
||||||
|
)
|
||||||
|
|
||||||
|
SET(_idl_link_flags
|
||||||
|
${KERNEL_SalomeIDLKernel}
|
||||||
|
${GEOM_SalomeIDLGEOM}
|
||||||
|
${SMESH_SalomeIDLSMESH}
|
||||||
|
)
|
||||||
|
|
||||||
|
OMNIORB_ADD_MODULE(SalomeIDLNETGENPLUGIN "${SalomeIDLNETGENPLUGIN_IDLSOURCES}" "${_idl_include_dirs}" "${_idl_link_flags}")
|
||||||
|
INSTALL(TARGETS SalomeIDLNETGENPLUGIN EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
|
120
idl/Makefile.am
@ -1,120 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
# This Makefile is responsible of generating the client and server
|
|
||||||
# implementation of IDL interfaces for both C++ and python usage.
|
|
||||||
# The building process of the C++ files is in charge of each source
|
|
||||||
# package and then is not manage here.
|
|
||||||
#
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
|
||||||
|
|
||||||
BASEIDL_FILES= NETGENPlugin_Algorithm.idl
|
|
||||||
|
|
||||||
BASEIDL_FILES_PY=$(BASEIDL_FILES:%.idl=%_idl.py)
|
|
||||||
|
|
||||||
# This variable defines the files to be installed
|
|
||||||
dist_salomeidl_DATA = $(BASEIDL_FILES)
|
|
||||||
|
|
||||||
# GUI idl common library
|
|
||||||
lib_LTLIBRARIES = libSalomeIDLNETGENPLUGIN.la
|
|
||||||
|
|
||||||
# Sources built from idl files
|
|
||||||
nodist_libSalomeIDLNETGENPLUGIN_la_SOURCES = NETGENPlugin_AlgorithmSK.cc
|
|
||||||
|
|
||||||
# header files must be exported: other modules have to use this library
|
|
||||||
nodist_salomeinclude_HEADERS = $(BASEIDL_FILES:%.idl=%.hh)
|
|
||||||
|
|
||||||
libSalomeIDLNETGENPLUGIN_la_CPPFLAGS = \
|
|
||||||
$(KERNEL_CXXFLAGS) \
|
|
||||||
$(GEOM_CXXFLAGS) \
|
|
||||||
$(SMESH_CXXFLAGS) \
|
|
||||||
@CORBA_CXXFLAGS@ \
|
|
||||||
@CORBA_INCLUDES@ \
|
|
||||||
-I$(top_builddir)/idl
|
|
||||||
|
|
||||||
libSalomeIDLNETGENPLUGIN_la_LDFLAGS = -no-undefined -version-info=0:0:0
|
|
||||||
libSalomeIDLNETGENPLUGIN_la_LIBADD = \
|
|
||||||
$(KERNEL_LDFLAGS) -lSalomeIDLKernel \
|
|
||||||
$(SMESH_LDFLAGS) -lSalomeIDLSMESH \
|
|
||||||
$(GEOM_LDFLAGS) -lSalomeIDLGEOM \
|
|
||||||
@CORBA_LIBS@
|
|
||||||
|
|
||||||
# These variables defines the building process of CORBA files
|
|
||||||
OMNIORB_IDL = @OMNIORB_IDL@
|
|
||||||
OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
|
|
||||||
OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ \
|
|
||||||
-I$(top_builddir)/idl/salome \
|
|
||||||
-I$(KERNEL_ROOT_DIR)/idl/salome \
|
|
||||||
-I$(GEOM_ROOT_DIR)/idl/salome \
|
|
||||||
-I$(SMESH_ROOT_DIR)/idl/salome
|
|
||||||
|
|
||||||
IDLCXXFLAGS = \
|
|
||||||
-bcxx \
|
|
||||||
@IDLCXXFLAGS@ \
|
|
||||||
-I$(top_builddir)/idl/salome \
|
|
||||||
-I$(KERNEL_ROOT_DIR)/idl/salome \
|
|
||||||
-I$(GEOM_ROOT_DIR)/idl/salome \
|
|
||||||
-I$(SMESH_ROOT_DIR)/idl/salome
|
|
||||||
IDLPYFLAGS = \
|
|
||||||
@IDLPYFLAGS@ \
|
|
||||||
-I$(KERNEL_ROOT_DIR)/idl/salome \
|
|
||||||
-I$(GEOM_ROOT_DIR)/idl/salome \
|
|
||||||
-I$(SMESH_ROOT_DIR)/idl/salome
|
|
||||||
|
|
||||||
# potential problem on parallel make on the following - multiple outputs
|
|
||||||
SUFFIXES = .idl .hh SK.cc
|
|
||||||
.idlSK.cc:
|
|
||||||
$(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
|
|
||||||
.idl.hh:
|
|
||||||
$(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
|
|
||||||
|
|
||||||
install-exec-local: $(BASEIDL_FILES:%=$(top_srcdir)/idl/%)
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(salomepythondir)
|
|
||||||
ls $^ | while read file; do \
|
|
||||||
$(OMNIORB_IDL) $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
|
|
||||||
done
|
|
||||||
|
|
||||||
# we want to remove only staff generated for IDL files and nothing more
|
|
||||||
uninstall-local:
|
|
||||||
@for modulen in NETGENPlugin ; do \
|
|
||||||
test -d $(DESTDIR)$(salomepythondir)/$${modulen} && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen} ; \
|
|
||||||
test -d $(DESTDIR)$(salomepythondir)/$${modulen}__POA && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}__POA" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen}__POA ; \
|
|
||||||
done ; \
|
|
||||||
for filen in $(BASEIDL_FILES_PY) ; do \
|
|
||||||
echo "Removing $(DESTDIR)$(salomepythondir)/$${filen}" && rm -f $(DESTDIR)$(salomepythondir)/$${filen}* ; \
|
|
||||||
done
|
|
||||||
|
|
||||||
mostlyclean-local:
|
|
||||||
-rm -f *.hh *.cc .depidl
|
|
||||||
|
|
||||||
# we use cpp to generate dependencies between idl files.
|
|
||||||
# option x c tells the preprocessor to consider idl as a c file.
|
|
||||||
# if an idl is modified, all idl dependencies are rebuilt
|
|
||||||
|
|
||||||
.depidl: $(BASEIDL_FILES)
|
|
||||||
@echo "" > $@
|
|
||||||
@for dep in $^ dummy; do \
|
|
||||||
if [ $$dep != "dummy" ]; then \
|
|
||||||
echo Building dependencies for $$dep; \
|
|
||||||
$(CPP) $(C_DEPEND_FLAG) -x c -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GEOM_ROOT_DIR)/idl/salome -I$(SMESH_ROOT_DIR)/idl/salome $$dep 2>/dev/null | \
|
|
||||||
sed 's/\.o/\SK.cc/' >>$@; \
|
|
||||||
fi; \
|
|
||||||
done ;
|
|
||||||
|
|
||||||
-include .depidl
|
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#include "SALOME_Exception.idl"
|
#include "SALOME_Exception.idl"
|
||||||
#include "SMESH_Hypothesis.idl"
|
#include "SMESH_Hypothesis.idl"
|
||||||
|
#include "SMESH_Group.idl"
|
||||||
#include "GEOM_Gen.idl"
|
#include "GEOM_Gen.idl"
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -43,6 +44,13 @@ module NETGENPlugin
|
|||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* NETGENPlugin_NETGEN_3D: interface of "Remote Tetrahedron (Netgen)" algorithm
|
||||||
|
*/
|
||||||
|
interface NETGENPlugin_NETGEN_3D_Remote : NETGENPlugin::NETGENPlugin_NETGEN_3D
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* NETGENPlugin_NETGEN_2D: interface of "Netgen 1D-2D" algorithm
|
* NETGENPlugin_NETGEN_2D: interface of "Netgen 1D-2D" algorithm
|
||||||
*/
|
*/
|
||||||
@ -66,6 +74,21 @@ module NETGENPlugin
|
|||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* NETGENPlugin_NETGEN_2D: interface of "Remote Triangle (Netgen)" algorithm
|
||||||
|
*/
|
||||||
|
interface NETGENPlugin_NETGEN_2D_Remote : NETGENPlugin::NETGENPlugin_NETGEN_2D_ONLY
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* NETGENPlugin_Remesher_2D: interface of "NETGEN Remesher" algorithm,
|
||||||
|
* generating 2D elements basing on an existing 2D mesh
|
||||||
|
*/
|
||||||
|
interface NETGENPlugin_Remesher_2D : SMESH::SMESH_2D_Algo
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* NETGENPlugin_Hypothesis: interface of "NETGEN parameters" hypothesis
|
* NETGENPlugin_Hypothesis: interface of "NETGEN parameters" hypothesis
|
||||||
*/
|
*/
|
||||||
@ -92,17 +115,56 @@ module NETGENPlugin
|
|||||||
void SetNbSegPerEdge(in double value);
|
void SetNbSegPerEdge(in double value);
|
||||||
double GetNbSegPerEdge();
|
double GetNbSegPerEdge();
|
||||||
|
|
||||||
|
void SetChordalErrorEnabled(in boolean value);
|
||||||
|
boolean GetChordalErrorEnabled();
|
||||||
|
void SetChordalError(in double value);
|
||||||
|
double GetChordalError();
|
||||||
|
|
||||||
void SetNbSegPerRadius(in double value);
|
void SetNbSegPerRadius(in double value);
|
||||||
double GetNbSegPerRadius();
|
double GetNbSegPerRadius();
|
||||||
|
|
||||||
void SetQuadAllowed(in boolean value);
|
void SetQuadAllowed(in boolean value);
|
||||||
boolean GetQuadAllowed();
|
boolean GetQuadAllowed();
|
||||||
|
|
||||||
void SetLocalSizeOnShape(in GEOM::GEOM_Object GeomObj, in double localSize);
|
void SetUseSurfaceCurvature(in boolean value);
|
||||||
|
boolean GetUseSurfaceCurvature();
|
||||||
|
|
||||||
|
void SetFuseEdges(in boolean value);
|
||||||
|
boolean GetFuseEdges();
|
||||||
|
|
||||||
|
void SetLocalSizeOnShape(in GEOM::GEOM_Object GeomObj, in double localSize)
|
||||||
|
raises (SALOME::SALOME_Exception);
|
||||||
void SetLocalSizeOnEntry(in string entry, in double localSize);
|
void SetLocalSizeOnEntry(in string entry, in double localSize);
|
||||||
double GetLocalSizeOnEntry(in string entry);
|
double GetLocalSizeOnEntry(in string entry);
|
||||||
string_array GetLocalSizeEntries();
|
string_array GetLocalSizeEntries();
|
||||||
void UnsetLocalSizeOnEntry(in string entry);
|
void UnsetLocalSizeOnEntry(in string entry);
|
||||||
|
|
||||||
|
void SetMeshSizeFile(in string fileName);
|
||||||
|
string GetMeshSizeFile();
|
||||||
|
|
||||||
|
void SetNbSurfOptSteps(in short nb );
|
||||||
|
short GetNbSurfOptSteps();
|
||||||
|
|
||||||
|
void SetNbVolOptSteps(in short nb );
|
||||||
|
short GetNbVolOptSteps();
|
||||||
|
|
||||||
|
void SetElemSizeWeight(in double size );
|
||||||
|
double GetElemSizeWeight();
|
||||||
|
|
||||||
|
void SetWorstElemMeasure(in short val );
|
||||||
|
short GetWorstElemMeasure();
|
||||||
|
|
||||||
|
void SetNbThreads(in short val );
|
||||||
|
short GetNbThreads();
|
||||||
|
|
||||||
|
void SetUseDelauney(in boolean toUse);
|
||||||
|
boolean GetUseDelauney();
|
||||||
|
|
||||||
|
void SetCheckOverlapping(in boolean toCheck );
|
||||||
|
boolean GetCheckOverlapping();
|
||||||
|
|
||||||
|
void SetCheckChartBoundary(in boolean toCheck );
|
||||||
|
boolean GetCheckChartBoundary();
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -113,7 +175,7 @@ module NETGENPlugin
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* interface of "NETGEN 2D parameters" hypothesis used by NETGENPlugin_NETGEN_2D_ONLY algoritm
|
* interface of "NETGEN 2D parameters" hypothesis used by NETGENPlugin_NETGEN_2D_ONLY algorithm
|
||||||
*/
|
*/
|
||||||
interface NETGENPlugin_Hypothesis_2D_ONLY : NETGENPlugin_Hypothesis_2D
|
interface NETGENPlugin_Hypothesis_2D_ONLY : NETGENPlugin_Hypothesis_2D
|
||||||
{
|
{
|
||||||
@ -126,6 +188,75 @@ module NETGENPlugin
|
|||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* interface of "NETGEN Remesher parameters" hypothesis used by NETGENPlugin_Remesher_2D algorithm
|
||||||
|
*/
|
||||||
|
interface NETGENPlugin_RemesherHypothesis_2D : NETGENPlugin_Hypothesis_2D
|
||||||
|
{
|
||||||
|
/*!
|
||||||
|
* \brief Set/get ridge angle
|
||||||
|
*/
|
||||||
|
void SetRidgeAngle(in double angle );
|
||||||
|
double GetRidgeAngle();
|
||||||
|
|
||||||
|
void SetEdgeCornerAngle(in double angle );
|
||||||
|
double GetEdgeCornerAngle();
|
||||||
|
|
||||||
|
void SetChartAngle(in double angle );
|
||||||
|
double GetChartAngle();
|
||||||
|
|
||||||
|
void SetOuterChartAngle(in double angle );
|
||||||
|
double GetOuterChartAngle();
|
||||||
|
|
||||||
|
void SetRestHChartDistFactor(in double f );
|
||||||
|
double GetRestHChartDistFactor();
|
||||||
|
|
||||||
|
void SetRestHChartDistEnable(in boolean enable );
|
||||||
|
boolean GetRestHChartDistEnable();
|
||||||
|
|
||||||
|
void SetRestHLineLengthFactor(in double f );
|
||||||
|
double GetRestHLineLengthFactor();
|
||||||
|
|
||||||
|
void SetRestHLineLengthEnable(in boolean enable );
|
||||||
|
boolean GetRestHLineLengthEnable();
|
||||||
|
|
||||||
|
void SetRestHCloseEdgeFactor(in double f );
|
||||||
|
double GetRestHCloseEdgeFactor();
|
||||||
|
|
||||||
|
void SetRestHCloseEdgeEnable(in boolean enable );
|
||||||
|
boolean GetRestHCloseEdgeEnable();
|
||||||
|
|
||||||
|
void SetRestHSurfCurvFactor(in double f );
|
||||||
|
double GetRestHSurfCurvFactor();
|
||||||
|
|
||||||
|
void SetRestHSurfCurvEnable(in boolean enable );
|
||||||
|
boolean GetRestHSurfCurvEnable();
|
||||||
|
|
||||||
|
void SetRestHEdgeAngleFactor(in double f );
|
||||||
|
double GetRestHEdgeAngleFactor();
|
||||||
|
|
||||||
|
void SetRestHEdgeAngleEnable(in boolean enable );
|
||||||
|
boolean GetRestHEdgeAngleEnable();
|
||||||
|
|
||||||
|
void SetRestHSurfMeshCurvFactor(in double f );
|
||||||
|
double GetRestHSurfMeshCurvFactor();
|
||||||
|
|
||||||
|
void SetRestHSurfMeshCurvEnable(in boolean enable );
|
||||||
|
boolean GetRestHSurfMeshCurvEnable();
|
||||||
|
|
||||||
|
void SetKeepExistingEdges(in boolean toKeep );
|
||||||
|
boolean GetKeepExistingEdges();
|
||||||
|
|
||||||
|
void SetMakeGroupsOfSurfaces(in boolean toMake );
|
||||||
|
boolean GetMakeGroupsOfSurfaces();
|
||||||
|
|
||||||
|
void SetLoadMeshOnCancel(in boolean toLoad );
|
||||||
|
boolean GetLoadMeshOnCancel();
|
||||||
|
|
||||||
|
void SetFixedEdgeGroup( in SMESH::SMESH_GroupBase edgeGroup );
|
||||||
|
SMESH::SMESH_GroupBase GetFixedEdgeGroup( in SMESH::SMESH_Mesh mesh );
|
||||||
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* NETGENPlugin_Hypothesis: interface of "NETGEN 2D simple parameters" hypothesis
|
* NETGENPlugin_Hypothesis: interface of "NETGEN 2D simple parameters" hypothesis
|
||||||
*/
|
*/
|
||||||
@ -134,12 +265,12 @@ module NETGENPlugin
|
|||||||
/*!
|
/*!
|
||||||
* Sets <number of segments> value
|
* Sets <number of segments> value
|
||||||
*/
|
*/
|
||||||
void SetNumberOfSegments(in short nb) raises (SALOME::SALOME_Exception);
|
void SetNumberOfSegments(in long nb) raises (SALOME::SALOME_Exception);
|
||||||
/*!
|
/*!
|
||||||
* Returns <number of segments> value.
|
* Returns <number of segments> value.
|
||||||
* Can be zero in case if LocalLength() has been set
|
* Can be zero in case if LocalLength() has been set
|
||||||
*/
|
*/
|
||||||
short GetNumberOfSegments();
|
long GetNumberOfSegments();
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Sets <segment length> value
|
* Sets <segment length> value
|
||||||
|
26
idl/NETGENPlugin_NETGEN_VERSION.idl.in
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
//
|
||||||
|
// Copyright (C) 2003-2007 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, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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
|
||||||
|
//
|
||||||
|
|
||||||
|
module NETGENPlugin
|
||||||
|
{
|
||||||
|
const short NETGEN_VERSION_MAJOR = @NETGEN_VERSION_MAJOR@ ;
|
||||||
|
};
|
44
resources/CMakeLists.txt
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# Copyright (C) 2003-2007 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
|
||||||
|
IF(SALOME_BUILD_GUI)
|
||||||
|
SET(NETGENPLUGIN_RESOURCES_FILES_WITH_GUI
|
||||||
|
mesh_algo_netgen_2d.png
|
||||||
|
mesh_algo_netgen_2d3d.png
|
||||||
|
mesh_hypo_netgen.png
|
||||||
|
mesh_hypo_netgen_2d.png
|
||||||
|
mesh_tree_algo_netgen_2d.png
|
||||||
|
mesh_tree_algo_netgen_2d3d.png
|
||||||
|
mesh_tree_hypo_netgen.png
|
||||||
|
mesh_tree_hypo_netgen_2d.png
|
||||||
|
mesh_tree_algo_netgen.png
|
||||||
|
)
|
||||||
|
ENDIF(SALOME_BUILD_GUI)
|
||||||
|
|
||||||
|
SET(NETGENPLUGIN_RESOURCES_FILES
|
||||||
|
NETGENPlugin.xml
|
||||||
|
SalomeApp.xml
|
||||||
|
${NETGENPLUGIN_RESOURCES_FILES_WITH_GUI}
|
||||||
|
)
|
||||||
|
|
||||||
|
INSTALL(FILES ${NETGENPLUGIN_RESOURCES_FILES} DESTINATION ${SALOME_NETGENPLUGIN_INSTALL_RES_DATA})
|
||||||
|
INSTALL(FILES SalomeApp.xml RENAME SalomeAppSL.xml DESTINATION ${SALOME_NETGENPLUGIN_INSTALL_RES_DATA})
|
@ -1,43 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
# -* Makefile *-
|
|
||||||
# Author : Patrick GOLDBRONN (CEA)
|
|
||||||
# Date : 28/06/2001
|
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
|
||||||
# $Header$
|
|
||||||
#
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
|
||||||
|
|
||||||
dist_salomeres_DATA = \
|
|
||||||
NETGENPlugin.xml \
|
|
||||||
SalomeApp.xml
|
|
||||||
|
|
||||||
if NETGENPLUGIN_ENABLE_GUI
|
|
||||||
dist_salomeres_DATA += \
|
|
||||||
mesh_algo_netgen_2d.png \
|
|
||||||
mesh_algo_netgen_2d3d.png \
|
|
||||||
mesh_hypo_netgen.png \
|
|
||||||
mesh_hypo_netgen_2d.png \
|
|
||||||
mesh_tree_algo_netgen_2d.png \
|
|
||||||
mesh_tree_algo_netgen_2d3d.png \
|
|
||||||
mesh_tree_hypo_netgen.png \
|
|
||||||
mesh_tree_hypo_netgen_2d.png \
|
|
||||||
mesh_tree_algo_netgen.png
|
|
||||||
endif
|
|
@ -1,128 +1,167 @@
|
|||||||
<?xml version='1.0' encoding='us-ascii'?>
|
<?xml version='1.0' encoding='us-ascii'?>
|
||||||
<!DOCTYPE meshers PUBLIC "" "desktop.dtd">
|
<!DOCTYPE meshers PUBLIC "" "desktop.dtd">
|
||||||
<!--
|
|
||||||
Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
|
|
||||||
Copyright (C) 2003-2007 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- GUI customization for MESH component -->
|
|
||||||
|
|
||||||
<meshers>
|
<meshers>
|
||||||
|
|
||||||
<meshers-group name="NETGEN"
|
<meshers-group name ="NETGEN"
|
||||||
resources="NETGENPlugin"
|
resources ="NETGENPlugin"
|
||||||
|
idl-module="NETGENPlugin"
|
||||||
server-lib="NETGENEngine"
|
server-lib="NETGENEngine"
|
||||||
gui-lib="NETGENPluginGUI">
|
gui-lib ="NETGENPluginGUI">
|
||||||
<hypotheses>
|
<hypotheses>
|
||||||
<hypothesis type="NETGEN_Parameters"
|
<hypothesis type ="NETGEN_Parameters"
|
||||||
label-id="NETGEN 3D Parameters"
|
label-id="NETGEN 3D Parameters"
|
||||||
icon-id="mesh_hypo_netgen.png"
|
icon-id ="mesh_hypo_netgen.png"
|
||||||
dim="3"/>
|
dim ="3">
|
||||||
<hypothesis type="NETGEN_Parameters_2D"
|
<python-wrap>
|
||||||
|
<accumulative-methods>
|
||||||
|
SetLocalSizeOnShape,
|
||||||
|
UnsetLocalSizeOnEntry
|
||||||
|
</accumulative-methods>
|
||||||
|
</python-wrap>
|
||||||
|
</hypothesis>
|
||||||
|
|
||||||
|
<hypothesis type ="NETGEN_Parameters_2D"
|
||||||
label-id="NETGEN 2D Parameters"
|
label-id="NETGEN 2D Parameters"
|
||||||
icon-id="mesh_hypo_netgen_2d.png"
|
icon-id ="mesh_hypo_netgen_2d.png"
|
||||||
dim="2"/>
|
dim ="2">
|
||||||
<hypothesis type="NETGEN_Parameters_3D"
|
<python-wrap>
|
||||||
|
<accumulative-methods>
|
||||||
|
SetLocalSizeOnShape,
|
||||||
|
UnsetLocalSizeOnEntry
|
||||||
|
</accumulative-methods>
|
||||||
|
</python-wrap>
|
||||||
|
</hypothesis>
|
||||||
|
|
||||||
|
<hypothesis type ="NETGEN_Parameters_3D"
|
||||||
label-id="NETGEN 3D Parameters"
|
label-id="NETGEN 3D Parameters"
|
||||||
icon-id="mesh_hypo_netgen.png"
|
icon-id ="mesh_hypo_netgen.png"
|
||||||
dim="3"/>
|
dim ="3">
|
||||||
<hypothesis type="NETGEN_Parameters_2D_ONLY"
|
<python-wrap>
|
||||||
|
<accumulative-methods>
|
||||||
|
SetLocalSizeOnShape,
|
||||||
|
UnsetLocalSizeOnEntry
|
||||||
|
</accumulative-methods>
|
||||||
|
</python-wrap>
|
||||||
|
</hypothesis>
|
||||||
|
|
||||||
|
<hypothesis type ="NETGEN_Parameters_2D_ONLY"
|
||||||
label-id="NETGEN 2D Parameters"
|
label-id="NETGEN 2D Parameters"
|
||||||
icon-id="mesh_hypo_netgen_2d.png"
|
icon-id ="mesh_hypo_netgen_2d.png"
|
||||||
dim="2"/>
|
dim ="2">
|
||||||
<hypothesis type="NETGEN_SimpleParameters_2D"
|
<python-wrap>
|
||||||
|
<accumulative-methods>
|
||||||
|
SetLocalSizeOnShape,
|
||||||
|
UnsetLocalSizeOnEntry
|
||||||
|
</accumulative-methods>
|
||||||
|
</python-wrap>
|
||||||
|
</hypothesis>
|
||||||
|
|
||||||
|
<hypothesis type ="NETGEN_RemesherParameters_2D"
|
||||||
|
label-id="NETGEN 2D Parameters"
|
||||||
|
icon-id ="mesh_hypo_netgen_2d.png"
|
||||||
|
dim ="2"/>
|
||||||
|
|
||||||
|
<hypothesis type ="NETGEN_SimpleParameters_2D"
|
||||||
label-id="NETGEN 2D Simple Parameters"
|
label-id="NETGEN 2D Simple Parameters"
|
||||||
icon-id="mesh_hypo_netgen_2d.png"
|
icon-id ="mesh_hypo_netgen_2d.png"
|
||||||
dim="2"/>
|
dim ="2"/>
|
||||||
<hypothesis type="NETGEN_SimpleParameters_3D"
|
|
||||||
|
<hypothesis type ="NETGEN_SimpleParameters_3D"
|
||||||
label-id="NETGEN 3D Simple Parameters"
|
label-id="NETGEN 3D Simple Parameters"
|
||||||
icon-id="mesh_hypo_netgen.png"
|
icon-id ="mesh_hypo_netgen.png"
|
||||||
dim="3"/>
|
dim ="3"/>
|
||||||
</hypotheses>
|
</hypotheses>
|
||||||
|
|
||||||
<algorithms>
|
<algorithms>
|
||||||
<algorithm type="NETGEN_3D"
|
<algorithm type ="NETGEN_3D"
|
||||||
label-id="Tetrahedron (Netgen)"
|
label-id ="NETGEN 3D"
|
||||||
icon-id="mesh_algo_tetra.png"
|
icon-id ="mesh_algo_tetra.png"
|
||||||
hypos="MaxElementVolume,NETGEN_Parameters_3D"
|
group-id ="1"
|
||||||
|
priority ="20"
|
||||||
|
hypos ="MaxElementVolume,NETGEN_Parameters_3D"
|
||||||
opt-hypos="ViscousLayers"
|
opt-hypos="ViscousLayers"
|
||||||
need-geom="false"
|
need-geom="false"
|
||||||
input="TRIA,QUAD"
|
input ="TRIA,QUAD"
|
||||||
dim="3">
|
output ="TETRA,PYRAMID"
|
||||||
|
dim ="3">
|
||||||
<python-wrap>
|
<python-wrap>
|
||||||
<algo>NETGEN_3D=Tetrahedron()</algo>
|
<algo>NETGEN_3D=Tetrahedron()</algo>
|
||||||
<hypo>MaxElementVolume=MaxElementVolume(SetMaxElementVolume())</hypo>
|
<hypo>MaxElementVolume=MaxElementVolume(SetMaxElementVolume())</hypo>
|
||||||
<hypo>NETGEN_Parameters_3D=Parameters()</hypo>
|
<hypo>NETGEN_Parameters_3D=Parameters()</hypo>
|
||||||
<hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreFaces())</hypo>
|
<hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetFaces(1),SetFaces(2),SetMethod(),SetGroupName())</hypo>
|
||||||
</python-wrap>
|
</python-wrap>
|
||||||
</algorithm>
|
</algorithm>
|
||||||
|
|
||||||
<algorithm type="NETGEN_2D_ONLY"
|
<algorithm type ="NETGEN_2D_ONLY"
|
||||||
label-id="Netgen 2D"
|
label-id ="NETGEN 2D"
|
||||||
icon-id="mesh_algo_netgen_2d.png"
|
icon-id ="mesh_algo_netgen_2d.png"
|
||||||
hypos="LengthFromEdges,MaxElementArea,NETGEN_Parameters_2D_ONLY"
|
group-id ="1"
|
||||||
|
priority ="20"
|
||||||
|
hypos ="LengthFromEdges,MaxElementArea,NETGEN_Parameters_2D_ONLY"
|
||||||
opt-hypos="QuadranglePreference,ViscousLayers2D"
|
opt-hypos="QuadranglePreference,ViscousLayers2D"
|
||||||
input="EDGE"
|
input ="EDGE"
|
||||||
output="TRIA,QUAD"
|
output ="TRIA,QUAD"
|
||||||
dim="2">
|
dim ="2">
|
||||||
<python-wrap>
|
<python-wrap>
|
||||||
<algo>NETGEN_2D_ONLY=Triangle(algo=smesh.NETGEN_2D)</algo>
|
<algo>NETGEN_2D_ONLY=Triangle(algo=smeshBuilder.NETGEN_2D)</algo>
|
||||||
<hypo>LengthFromEdges=LengthFromEdges()</hypo>
|
<hypo>LengthFromEdges=LengthFromEdges()</hypo>
|
||||||
<hypo>MaxElementArea=MaxElementArea(SetMaxElementArea())</hypo>
|
<hypo>MaxElementArea=MaxElementArea(SetMaxElementArea())</hypo>
|
||||||
<hypo>NETGEN_Parameters_2D_ONLY=Parameters()</hypo>
|
<hypo>NETGEN_Parameters_2D_ONLY=Parameters()</hypo>
|
||||||
<hypo>QuadranglePreference=SetQuadAllowed()</hypo>
|
<hypo>QuadranglePreference=SetQuadAllowed()</hypo>
|
||||||
<hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
|
<hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetEdges(1),SetEdges(2),SetGroupName())</hypo>
|
||||||
</python-wrap>
|
</python-wrap>
|
||||||
</algorithm>
|
</algorithm>
|
||||||
|
|
||||||
<algorithm type="NETGEN_2D"
|
<algorithm type ="NETGEN_2D"
|
||||||
label-id="Netgen 1D-2D"
|
label-id ="NETGEN 1D-2D"
|
||||||
icon-id="mesh_algo_netgen_2d.png"
|
icon-id ="mesh_algo_netgen_2d.png"
|
||||||
hypos="NETGEN_Parameters_2D, NETGEN_SimpleParameters_2D"
|
group-id ="1"
|
||||||
opt-hypos="ViscousLayers2D"
|
priority ="10"
|
||||||
output="TRIA,QUAD"
|
hypos ="NETGEN_Parameters_2D, NETGEN_SimpleParameters_2D"
|
||||||
dim="2"
|
opt-hypos ="ViscousLayers2D"
|
||||||
|
output ="TRIA,QUAD"
|
||||||
|
dim ="2"
|
||||||
support-submeshes="true">
|
support-submeshes="true">
|
||||||
<python-wrap>
|
<python-wrap>
|
||||||
<algo>NETGEN_2D=Triangle(algo=smesh.NETGEN_1D2D)</algo>
|
<algo>NETGEN_2D=Triangle(algo=smeshBuilder.NETGEN_1D2D)</algo>
|
||||||
<hypo>NETGEN_Parameters_2D=Parameters()</hypo>
|
<hypo>NETGEN_Parameters_2D=Parameters()</hypo>
|
||||||
<hypo>NETGEN_SimpleParameters_2D=Parameters(smesh.SIMPLE)</hypo>
|
<hypo>NETGEN_SimpleParameters_2D=Parameters(smeshBuilder.SIMPLE)</hypo>
|
||||||
<hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
|
<hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetEdges(1),SetEdges(2),SetGroupName())</hypo>
|
||||||
</python-wrap>
|
</python-wrap>
|
||||||
</algorithm>
|
</algorithm>
|
||||||
|
|
||||||
<algorithm type="NETGEN_2D3D"
|
<algorithm type ="NETGEN_2D3D"
|
||||||
label-id="Netgen 1D-2D-3D"
|
label-id ="NETGEN 1D-2D-3D"
|
||||||
icon-id="mesh_algo_netgen_2d3d.png"
|
icon-id ="mesh_algo_netgen_2d3d.png"
|
||||||
hypos="NETGEN_Parameters, NETGEN_SimpleParameters_3D"
|
group-id ="1"
|
||||||
dim="3"
|
priority ="10"
|
||||||
|
hypos ="NETGEN_Parameters, NETGEN_SimpleParameters_3D"
|
||||||
|
opt-hypos ="ViscousLayers"
|
||||||
|
output ="TETRA,PYRAMID"
|
||||||
|
dim ="3"
|
||||||
support-submeshes="true">
|
support-submeshes="true">
|
||||||
<python-wrap>
|
<python-wrap>
|
||||||
<algo>NETGEN_2D3D=Tetrahedron(algo=smesh.NETGEN_1D2D3D)</algo>
|
<algo>NETGEN_2D3D=Tetrahedron(algo=smeshBuilder.NETGEN_1D2D3D)</algo>
|
||||||
<hypo>NETGEN_Parameters=Parameters()</hypo>
|
<hypo>NETGEN_Parameters=Parameters()</hypo>
|
||||||
<hypo>NETGEN_SimpleParameters_3D=Parameters(smesh.SIMPLE)</hypo>
|
<hypo>NETGEN_SimpleParameters_3D=Parameters(smeshBuilder.SIMPLE)</hypo>
|
||||||
|
<hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetFaces(1),SetFaces(2),SetMethod(),SetGroupName())</hypo>
|
||||||
|
</python-wrap>
|
||||||
|
</algorithm>
|
||||||
|
|
||||||
|
<algorithm type ="NETGEN_Remesher_2D"
|
||||||
|
label-id ="NETGEN 2D"
|
||||||
|
icon-id ="mesh_algo_netgen_2d.png"
|
||||||
|
opt-hypos ="NETGEN_RemesherParameters_2D"
|
||||||
|
output ="TRIA,QUAD"
|
||||||
|
need-geom ="never"
|
||||||
|
dim ="2">
|
||||||
|
<python-wrap>
|
||||||
|
<algo>NETGEN_Remesher_2D=Triangle(algo=smeshBuilder.NETGEN)</algo>
|
||||||
|
<hypo>NETGEN_RemesherParameters_2D=Parameters()</hypo>
|
||||||
</python-wrap>
|
</python-wrap>
|
||||||
</algorithm>
|
</algorithm>
|
||||||
|
|
||||||
</algorithms>
|
</algorithms>
|
||||||
</meshers-group>
|
</meshers-group>
|
||||||
|
|
||||||
</meshers>
|
</meshers>
|
||||||
|
@ -1,35 +1,8 @@
|
|||||||
<!--
|
|
||||||
Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
|
|
||||||
Copyright (C) 2003-2007 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
|
||||||
|
|
||||||
-->
|
|
||||||
<document>
|
<document>
|
||||||
<section name="resources">
|
<section name="resources">
|
||||||
<parameter name="NETGENPlugin" value="${NETGENPLUGIN_ROOT_DIR}/share/salome/resources/netgenplugin"/>
|
<parameter name="NETGENPlugin" value="${NETGENPLUGIN_ROOT_DIR}/share/salome/resources/netgenplugin"/>
|
||||||
</section>
|
</section>
|
||||||
<section name="SMESH">
|
|
||||||
<!-- Default SMESH module plugins -->
|
|
||||||
<parameter name="plugins" value="NETGENPlugin,GHS3DPlugin"/>
|
|
||||||
</section>
|
|
||||||
<section name="smesh_help">
|
<section name="smesh_help">
|
||||||
<parameter name="Plug-ins/NETGEN plugin User's Guide" value="${NETGENPLUGIN_ROOT_DIR}/share/doc/salome/gui/NETGENPLUGIN/index.html"/>
|
<parameter name="User's Guide/Mesh module/Plug-ins/NETGEN plugin" value="${NETGENPLUGIN_ROOT_DIR}/share/doc/salome/gui/NETGENPLUGIN/index.html;;http://docs.salome-platform.org/latest/gui/NETGENPLUGIN/index.html"/>
|
||||||
</section>
|
</section>
|
||||||
</document>
|
</document>
|
||||||
|
0
resources/mesh_tree_algo_netgen_2d.png
Executable file → Normal file
Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 225 B |
@ -1,9 +1,9 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
# 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.
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This library is distributed in the hope that it will be useful,
|
# This library is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -17,16 +17,25 @@
|
|||||||
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
#
|
#
|
||||||
|
|
||||||
# File : Makefile.in
|
##
|
||||||
# Author : Vasily Rusyaev (Open Cascade NN)
|
# Common packages
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
##
|
||||||
# Module : doc
|
SET(SUBDIRS_COMMON
|
||||||
#
|
NETGENPlugin
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
)
|
||||||
|
|
||||||
SUBDIRS = NETGENPLUGIN
|
IF(SALOME_BUILD_GUI)
|
||||||
|
SET(SUBDIRS_ENABLE_GUI
|
||||||
|
GUI
|
||||||
|
)
|
||||||
|
ENDIF(SALOME_BUILD_GUI)
|
||||||
|
|
||||||
usr_docs:
|
SET(SUBDIRS
|
||||||
(cd NETGENPLUGIN && $(MAKE) $(AM_MAKEFLAGS) usr_docs)
|
${SUBDIRS_COMMON}
|
||||||
|
${SUBDIRS_ENABLE_GUI}
|
||||||
|
)
|
||||||
|
|
||||||
|
FOREACH(dir ${SUBDIRS})
|
||||||
|
ADD_SUBDIRECTORY(${dir})
|
||||||
|
ENDFOREACH(dir ${SUBDIRS})
|
||||||
|
|
||||||
docs: usr_docs
|
|
110
src/GUI/CMakeLists.txt
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
|
||||||
|
INCLUDE(UseQtExt)
|
||||||
|
|
||||||
|
# --- options ---
|
||||||
|
# additional include directories
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${OpenCASCADE_INCLUDE_DIR}
|
||||||
|
${NETGEN_INCLUDE_DIRS}
|
||||||
|
${QT_INCLUDES}
|
||||||
|
${PYTHON_INCLUDES}
|
||||||
|
${KERNEL_INCLUDE_DIRS}
|
||||||
|
${GUI_INCLUDE_DIRS}
|
||||||
|
${GEOM_INCLUDE_DIRS}
|
||||||
|
${SMESH_INCLUDE_DIRS}
|
||||||
|
${Boost_INCLUDE_DIRS}
|
||||||
|
${OMNIORB_INCLUDE_DIR}
|
||||||
|
${PROJECT_BINARY_DIR}/idl
|
||||||
|
${PROJECT_SOURCE_DIR}/src/NETGENPlugin
|
||||||
|
)
|
||||||
|
|
||||||
|
# additional preprocessor / compiler flags
|
||||||
|
ADD_DEFINITIONS(
|
||||||
|
${QT_DEFINITIONS}
|
||||||
|
${OMNIORB_DEFINITIONS}
|
||||||
|
${OpenCASCADE_DEFINITIONS}
|
||||||
|
${BOOST_DEFINITIONS}
|
||||||
|
)
|
||||||
|
|
||||||
|
# libraries to link to
|
||||||
|
SET(_link_LIBRARIES
|
||||||
|
${QT_MT_LIBS}
|
||||||
|
${GUI_SalomeApp}
|
||||||
|
${GUI_qtx}
|
||||||
|
${GUI_suit}
|
||||||
|
${GUI_SalomeObject}
|
||||||
|
${GUI_LightApp}
|
||||||
|
${SMESH_SMESH}
|
||||||
|
${SMESH_PluginUtils}
|
||||||
|
${OpenCASCADE_FoundationClasses_LIBRARIES}
|
||||||
|
SalomeIDLNETGENPLUGIN
|
||||||
|
NETGENEngine
|
||||||
|
)
|
||||||
|
|
||||||
|
# --- headers ---
|
||||||
|
|
||||||
|
# header files / to be processed by moc
|
||||||
|
SET(_moc_HEADERS
|
||||||
|
NETGENPluginGUI_HypothesisCreator.h
|
||||||
|
NETGENPluginGUI_SimpleCreator.h
|
||||||
|
)
|
||||||
|
|
||||||
|
# header files / no moc processed
|
||||||
|
SET(_other_HEADERS
|
||||||
|
NETGENPluginGUI.h
|
||||||
|
)
|
||||||
|
|
||||||
|
SET(NETGENPluginGUI_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
|
||||||
|
|
||||||
|
# --- sources ---
|
||||||
|
|
||||||
|
# sources / moc wrappings
|
||||||
|
QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
|
||||||
|
|
||||||
|
# sources / static
|
||||||
|
SET(_other_SOURCES
|
||||||
|
NETGENPluginGUI.cxx
|
||||||
|
NETGENPluginGUI_HypothesisCreator.cxx
|
||||||
|
NETGENPluginGUI_SimpleCreator.cxx
|
||||||
|
)
|
||||||
|
|
||||||
|
# --- resources ---
|
||||||
|
|
||||||
|
# resource files / to be processed by lrelease
|
||||||
|
SET(_ts_RESOURCES
|
||||||
|
NETGENPlugin_images.ts
|
||||||
|
NETGENPlugin_msg_en.ts
|
||||||
|
NETGENPlugin_msg_fr.ts
|
||||||
|
NETGENPlugin_msg_ja.ts
|
||||||
|
)
|
||||||
|
|
||||||
|
# sources / to compile
|
||||||
|
SET(NETGENPluginGUI_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
|
||||||
|
|
||||||
|
# --- rules ---
|
||||||
|
|
||||||
|
ADD_LIBRARY(NETGENPluginGUI ${NETGENPluginGUI_SOURCES})
|
||||||
|
TARGET_LINK_LIBRARIES(NETGENPluginGUI ${_link_LIBRARIES} )
|
||||||
|
INSTALL(TARGETS NETGENPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
|
||||||
|
|
||||||
|
INSTALL(FILES ${NETGENPluginGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
|
||||||
|
|
||||||
|
QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_NETGENPLUGIN_INSTALL_RES_DATA}")
|
@ -1,80 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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 : Makefile.in
|
|
||||||
# Author : Michael Sazonov
|
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
|
||||||
# Module : NETGENPLUGIN
|
|
||||||
# $Header$
|
|
||||||
#
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
|
||||||
|
|
||||||
# header files
|
|
||||||
salomeinclude_HEADERS =
|
|
||||||
|
|
||||||
# Libraries targets
|
|
||||||
lib_LTLIBRARIES = libNETGENPluginGUI.la
|
|
||||||
|
|
||||||
dist_libNETGENPluginGUI_la_SOURCES = \
|
|
||||||
NETGENPluginGUI.cxx \
|
|
||||||
NETGENPluginGUI.h \
|
|
||||||
NETGENPluginGUI_HypothesisCreator.h \
|
|
||||||
NETGENPluginGUI_HypothesisCreator.cxx \
|
|
||||||
NETGENPluginGUI_SimpleCreator.h \
|
|
||||||
NETGENPluginGUI_SimpleCreator.cxx
|
|
||||||
|
|
||||||
MOC_FILES = \
|
|
||||||
NETGENPluginGUI_HypothesisCreator_moc.cxx \
|
|
||||||
NETGENPluginGUI_SimpleCreator_moc.cxx
|
|
||||||
|
|
||||||
nodist_libNETGENPluginGUI_la_SOURCES= \
|
|
||||||
$(MOC_FILES)
|
|
||||||
|
|
||||||
# additionnal information to compil and link file
|
|
||||||
|
|
||||||
libNETGENPluginGUI_la_CPPFLAGS = \
|
|
||||||
$(CAS_CPPFLAGS) \
|
|
||||||
$(NETGEN_INCLUDES) \
|
|
||||||
$(QT_INCLUDES) \
|
|
||||||
$(PYTHON_INCLUDES) \
|
|
||||||
$(KERNEL_CXXFLAGS) \
|
|
||||||
$(GUI_CXXFLAGS) \
|
|
||||||
$(GEOM_CXXFLAGS) \
|
|
||||||
$(MED_CXXFLAGS) \
|
|
||||||
$(SMESH_CXXFLAGS) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
|
||||||
$(CORBA_CXXFLAGS) \
|
|
||||||
$(CORBA_INCLUDES) \
|
|
||||||
-I$(srcdir)/../NETGENPlugin \
|
|
||||||
-I$(top_builddir)/idl
|
|
||||||
|
|
||||||
libNETGENPluginGUI_la_LDFLAGS = \
|
|
||||||
../../idl/libSalomeIDLNETGENPLUGIN.la \
|
|
||||||
../NETGENPlugin/libNETGENEngine.la \
|
|
||||||
${QT_MT_LIBS} \
|
|
||||||
${GUI_LDFLAGS} -lSalomeApp -lqtx -lsuit -lSalomeObject -lLightApp \
|
|
||||||
${SMESH_LDFLAGS} -lSMESH -lGeomSelectionTools \
|
|
||||||
$(CAS_KERNEL)
|
|
||||||
|
|
||||||
# resources files
|
|
||||||
nodist_salomeres_DATA= \
|
|
||||||
NETGENPlugin_images.qm \
|
|
||||||
NETGENPlugin_msg_en.qm \
|
|
||||||
NETGENPlugin_msg_fr.qm
|
|
||||||
|
|
7
src/GUI/NETGENPluginGUI.cxx
Executable file → Normal file
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -44,7 +44,8 @@ extern "C"
|
|||||||
if( aHypType=="NETGEN_Parameters_2D" || // 1D-2D
|
if( aHypType=="NETGEN_Parameters_2D" || // 1D-2D
|
||||||
aHypType=="NETGEN_Parameters" || // 1D-2D-3D
|
aHypType=="NETGEN_Parameters" || // 1D-2D-3D
|
||||||
aHypType=="NETGEN_Parameters_2D_ONLY" || // 2D
|
aHypType=="NETGEN_Parameters_2D_ONLY" || // 2D
|
||||||
aHypType=="NETGEN_Parameters_3D" ) // 3D
|
aHypType=="NETGEN_Parameters_3D" || // 3D
|
||||||
|
aHypType=="NETGEN_RemesherParameters_2D" ) // 2D
|
||||||
{
|
{
|
||||||
aCreator = new NETGENPluginGUI_HypothesisCreator( aHypType );
|
aCreator = new NETGENPluginGUI_HypothesisCreator( aHypType );
|
||||||
}
|
}
|
||||||
|
4
src/GUI/NETGENPluginGUI.h
Executable file → Normal file
@ -1,9 +1,9 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -35,20 +35,21 @@
|
|||||||
|
|
||||||
#include <TopAbs_ShapeEnum.hxx>
|
#include <TopAbs_ShapeEnum.hxx>
|
||||||
|
|
||||||
class SMESHGUI_SpinBox;
|
|
||||||
class GeomSelectionTools;
|
class GeomSelectionTools;
|
||||||
class QComboBox;
|
|
||||||
class QCheckBox;
|
class QCheckBox;
|
||||||
|
class QComboBox;
|
||||||
class QLineEdit;
|
class QLineEdit;
|
||||||
class QTableWidget;
|
class QTableWidget;
|
||||||
|
class SMESHGUI_SpinBox;
|
||||||
|
class SalomeApp_IntSpinBox;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
double myMaxSize, myMinSize, myGrowthRate, myNbSegPerEdge, myNbSegPerRadius;
|
double myMaxSize, myMinSize, myGrowthRate, myNbSegPerEdge, myNbSegPerRadius, myRidgeAngle, myChordalError, myElemSizeWeight, myEdgeCornerAngle, myChartAngle, myOuterChartAngle, myRestHChartDistFactor, myRestHLineLengthFactor, myRestHCloseEdgeFactor, myRestHSurfCurvFactor, myRestHEdgeAngleFactor, myRestHSurfMeshCurvFactor;
|
||||||
int myFineness;
|
int myFineness, myNbSurfOptSteps, myNbVolOptSteps, myWorstElemMeasure;
|
||||||
bool mySecondOrder, myAllowQuadrangles, myOptimize;
|
bool mySecondOrder, myAllowQuadrangles, myOptimize, mySurfaceCurvature, myFuseEdges, myChordalErrorEnabled, myUseDelauney, myCheckOverlapping, myCheckChartBoundary, myRestHChartDistEnable, myRestHLineLengthEnable, myRestHCloseEdgeEnable, myRestHSurfCurvEnable, myRestHEdgeAngleEnable, myRestHSurfMeshCurvEnable, myKeepExistingEdges, myMakeGroupsOfSurfaces;
|
||||||
QString myName;
|
QString myName, myMeshSizeFile;
|
||||||
QString myMaxSizeVar, myMinSizeVar, myGrowthRateVar, myNbSegPerEdgeVar, myNbSegPerRadiusVar;
|
QString myMaxSizeVar, myMinSizeVar, myGrowthRateVar, myNbSegPerEdgeVar, myNbSegPerRadiusVar, myRidgeAngleVar, myChordalErrorVar, myNbSurfOptStepsVar, myNbVolOptStepsVar, myElemSizeWeightVar, myWorstElemMeasureVar, myEdgeCornerAngleVar, myChartAngleVar, myOuterChartAngleVar, myRestHChartDistFactorVar, myRestHLineLengthFactorVar, myRestHCloseEdgeFactorVar, myRestHSurfCurvFactorVar, myRestHEdgeAngleFactorVar, myRestHSurfMeshCurvFactorVar;
|
||||||
} NetgenHypothesisData;
|
} NetgenHypothesisData;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -62,7 +63,7 @@ public:
|
|||||||
NETGENPluginGUI_HypothesisCreator( const QString& );
|
NETGENPluginGUI_HypothesisCreator( const QString& );
|
||||||
virtual ~NETGENPluginGUI_HypothesisCreator();
|
virtual ~NETGENPluginGUI_HypothesisCreator();
|
||||||
|
|
||||||
virtual bool checkParams(QString& msg) const;
|
virtual bool checkParams(QString&) const;
|
||||||
virtual QString helpPage() const;
|
virtual QString helpPage() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -76,11 +77,16 @@ protected:
|
|||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
virtual void onFinenessChanged();
|
virtual void onFinenessChanged();
|
||||||
|
virtual void onChordalErrorEnabled();
|
||||||
|
virtual void onSurfaceCurvatureChanged();
|
||||||
virtual void onAddLocalSizeOnVertex();
|
virtual void onAddLocalSizeOnVertex();
|
||||||
virtual void onAddLocalSizeOnEdge();
|
virtual void onAddLocalSizeOnEdge();
|
||||||
virtual void onAddLocalSizeOnFace();
|
virtual void onAddLocalSizeOnFace();
|
||||||
|
virtual void onAddLocalSizeOnSolid();
|
||||||
virtual void onRemoveLocalSizeOnShape();
|
virtual void onRemoveLocalSizeOnShape();
|
||||||
virtual void onSetLocalSize(int,int);
|
virtual void onSetLocalSize(int,int);
|
||||||
|
virtual void onSetSizeFile();
|
||||||
|
virtual void onSTLEnable();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool readParamsFromHypo( NetgenHypothesisData& ) const;
|
bool readParamsFromHypo( NetgenHypothesisData& ) const;
|
||||||
@ -99,11 +105,46 @@ private:
|
|||||||
SMESHGUI_SpinBox* myGrowthRate;
|
SMESHGUI_SpinBox* myGrowthRate;
|
||||||
SMESHGUI_SpinBox* myNbSegPerEdge;
|
SMESHGUI_SpinBox* myNbSegPerEdge;
|
||||||
SMESHGUI_SpinBox* myNbSegPerRadius;
|
SMESHGUI_SpinBox* myNbSegPerRadius;
|
||||||
|
QCheckBox* myChordalErrorEnabled;
|
||||||
|
SMESHGUI_SpinBox* myChordalError;
|
||||||
QCheckBox* myAllowQuadrangles;
|
QCheckBox* myAllowQuadrangles;
|
||||||
|
QCheckBox* mySurfaceCurvature;
|
||||||
|
// optimizer
|
||||||
|
SMESHGUI_SpinBox* myElemSizeWeight;
|
||||||
|
SalomeApp_IntSpinBox* myNbSurfOptSteps;
|
||||||
|
SalomeApp_IntSpinBox* myNbVolOptSteps;
|
||||||
|
// insider
|
||||||
|
QCheckBox* myFuseEdges;
|
||||||
|
SalomeApp_IntSpinBox* myWorstElemMeasure;
|
||||||
|
QCheckBox* myUseDelauney;
|
||||||
|
QCheckBox* myCheckOverlapping;
|
||||||
|
QCheckBox* myCheckChartBoundary;
|
||||||
|
// stl options
|
||||||
|
QCheckBox* myKeepExistingEdges;
|
||||||
|
QCheckBox* myMakeGroupsOfSurfaces;
|
||||||
|
// stl charts
|
||||||
|
SMESHGUI_SpinBox* myRidgeAngle;
|
||||||
|
SMESHGUI_SpinBox* myEdgeCornerAngle;
|
||||||
|
SMESHGUI_SpinBox* myChartAngle;
|
||||||
|
SMESHGUI_SpinBox* myOuterChartAngle;
|
||||||
|
// stl size
|
||||||
|
SMESHGUI_SpinBox* myRestHChartDistFactor;
|
||||||
|
SMESHGUI_SpinBox* myRestHLineLengthFactor;
|
||||||
|
SMESHGUI_SpinBox* myRestHCloseEdgeFactor;
|
||||||
|
SMESHGUI_SpinBox* myRestHSurfCurvFactor;
|
||||||
|
SMESHGUI_SpinBox* myRestHEdgeAngleFactor;
|
||||||
|
SMESHGUI_SpinBox* myRestHSurfMeshCurvFactor;
|
||||||
|
QCheckBox* myRestHChartDistEnable;
|
||||||
|
QCheckBox* myRestHLineLengthEnable;
|
||||||
|
QCheckBox* myRestHCloseEdgeEnable;
|
||||||
|
QCheckBox* myRestHSurfCurvEnable;
|
||||||
|
QCheckBox* myRestHEdgeAngleEnable;
|
||||||
|
QCheckBox* myRestHSurfMeshCurvEnable;
|
||||||
|
|
||||||
bool myIs2D;
|
bool myIs2D; // 2D or 3D
|
||||||
bool myIsONLY;
|
bool myIsONLY; // one dim or several
|
||||||
|
|
||||||
|
QLineEdit* myMeshSizeFile;
|
||||||
QTableWidget* myLocalSizeTable;
|
QTableWidget* myLocalSizeTable;
|
||||||
GeomSelectionTools* myGeomSelectionTools;
|
GeomSelectionTools* myGeomSelectionTools;
|
||||||
QMap<QString, QString> myLocalSizeMap;
|
QMap<QString, QString> myLocalSizeMap;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@ -39,10 +39,22 @@
|
|||||||
<source>ICON_SMESH_TREE_HYPO_NETGEN_Parameters</source>
|
<source>ICON_SMESH_TREE_HYPO_NETGEN_Parameters</source>
|
||||||
<translation>mesh_tree_hypo_netgen.png</translation>
|
<translation>mesh_tree_hypo_netgen.png</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>ICON_SMESH_TREE_HYPO_NETGEN_Parameters_3D</source>
|
||||||
|
<translation>mesh_tree_hypo_netgen.png</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>ICON_SMESH_TREE_HYPO_NETGEN_Parameters_2D</source>
|
<source>ICON_SMESH_TREE_HYPO_NETGEN_Parameters_2D</source>
|
||||||
<translation>mesh_tree_hypo_netgen_2d.png</translation>
|
<translation>mesh_tree_hypo_netgen_2d.png</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>ICON_SMESH_TREE_HYPO_NETGEN_RemesherParameters_2D</source>
|
||||||
|
<translation>mesh_tree_hypo_netgen_2d.png</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>ICON_SMESH_TREE_HYPO_NETGEN_Parameters_2D_ONLY</source>
|
||||||
|
<translation>mesh_tree_hypo_netgen_2d.png</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>ICON_SMESH_TREE_HYPO_NETGEN_SimpleParameters_3D</source>
|
<source>ICON_SMESH_TREE_HYPO_NETGEN_SimpleParameters_3D</source>
|
||||||
<translation>mesh_tree_hypo_netgen.png</translation>
|
<translation>mesh_tree_hypo_netgen.png</translation>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<name>@default</name>
|
<name>@default</name>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_2D_HYPOTHESIS</source>
|
<source>NETGEN_2D_HYPOTHESIS</source>
|
||||||
<translation>Netgen 2D</translation>
|
<translation>NETGEN 2D</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_2D_TITLE</source>
|
<source>NETGEN_2D_TITLE</source>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_3D_HYPOTHESIS</source>
|
<source>NETGEN_3D_HYPOTHESIS</source>
|
||||||
<translation>Netgen 3D</translation>
|
<translation>NETGEN 3D</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_3D_TITLE</source>
|
<source>NETGEN_3D_TITLE</source>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SimpleParameters_3D_HYPOTHESIS</source>
|
<source>NETGEN_SimpleParameters_3D_HYPOTHESIS</source>
|
||||||
<translation>Netgen 3D simple parameters</translation>
|
<translation>NETGEN 3D simple parameters</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SimpleParameters_3D_TITLE</source>
|
<source>NETGEN_SimpleParameters_3D_TITLE</source>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SimpleParameters_2D_HYPOTHESIS</source>
|
<source>NETGEN_SimpleParameters_2D_HYPOTHESIS</source>
|
||||||
<translation>Netgen 2D simple parameters</translation>
|
<translation>NETGEN 2D simple parameters</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SimpleParameters_2D_TITLE</source>
|
<source>NETGEN_SimpleParameters_2D_TITLE</source>
|
||||||
@ -37,7 +37,7 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_ALLOW_QUADRANGLES</source>
|
<source>NETGEN_ALLOW_QUADRANGLES</source>
|
||||||
<translation>Allow Quadrangles</translation>
|
<translation>Quad-dominated</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_COARSE</source>
|
<source>NETGEN_COARSE</source>
|
||||||
@ -55,17 +55,21 @@
|
|||||||
<source>NETGEN_FINENESS</source>
|
<source>NETGEN_FINENESS</source>
|
||||||
<translation>Fineness</translation>
|
<translation>Fineness</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_FUSE_EDGES</source>
|
||||||
|
<translation>Fuse coincident nodes on edges and vertices</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_GROWTH_RATE</source>
|
<source>NETGEN_GROWTH_RATE</source>
|
||||||
<translation>Growth Rate</translation>
|
<translation>Growth rate</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_MAX_SIZE</source>
|
<source>NETGEN_MAX_SIZE</source>
|
||||||
<translation>Max. Size</translation>
|
<translation>Max. size</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_MIN_SIZE</source>
|
<source>NETGEN_MIN_SIZE</source>
|
||||||
<translation>Min. Size</translation>
|
<translation>Min. size</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_MODERATE</source>
|
<source>NETGEN_MODERATE</source>
|
||||||
@ -75,25 +79,49 @@
|
|||||||
<source>NETGEN_OPTIMIZE</source>
|
<source>NETGEN_OPTIMIZE</source>
|
||||||
<translation>Optimize</translation>
|
<translation>Optimize</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_OPTIMIZER</source>
|
||||||
|
<translation>Optimizer</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SECOND_ORDER</source>
|
<source>NETGEN_SECOND_ORDER</source>
|
||||||
<translation>Second Order</translation>
|
<translation>Second order</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SEG_PER_EDGE</source>
|
<source>NETGEN_SEG_PER_EDGE</source>
|
||||||
<translation>Nb. Segs per Edge</translation>
|
<translation>Nb. segs per edge</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SEG_PER_RADIUS</source>
|
<source>NETGEN_SEG_PER_RADIUS</source>
|
||||||
<translation>Nb. Segs per Radius</translation>
|
<translation>Nb. segs per radius</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_CHORDAL_ERROR</source>
|
||||||
|
<translation>Chordal error</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RIDGE_ANGLE</source>
|
||||||
|
<translation>Ridge angle</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_KEEP_EXISTING_EDGES</source>
|
||||||
|
<translation>Keep existing edges</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_MAKE_SURFACE_GROUPS</source>
|
||||||
|
<translation>Create groups of surfaces</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SURFACE_CURVATURE</source>
|
||||||
|
<translation>Limit size by surface curvature</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_VERYCOARSE</source>
|
<source>NETGEN_VERYCOARSE</source>
|
||||||
<translation>Very Coarse</translation>
|
<translation>Very coarse</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_VERYFINE</source>
|
<source>NETGEN_VERYFINE</source>
|
||||||
<translation>Very Fine</translation>
|
<translation>Very fine</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NG_1D</source>
|
<source>NG_1D</source>
|
||||||
@ -121,15 +149,19 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_LSZ_VERTEX</source>
|
<source>NETGEN_LSZ_VERTEX</source>
|
||||||
<translation>On Vertex</translation>
|
<translation>On vertex</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_LSZ_EDGE</source>
|
<source>NETGEN_LSZ_EDGE</source>
|
||||||
<translation>On Edge</translation>
|
<translation>On edge</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_LSZ_FACE</source>
|
<source>NETGEN_LSZ_FACE</source>
|
||||||
<translation>On Sub-Face</translation>
|
<translation>On face</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_SOLID</source>
|
||||||
|
<translation>On solid</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_LSZ_REMOVE</source>
|
<source>NETGEN_LSZ_REMOVE</source>
|
||||||
@ -147,5 +179,93 @@
|
|||||||
<source>LSZ_LOCALSIZE_COLUMN</source>
|
<source>LSZ_LOCALSIZE_COLUMN</source>
|
||||||
<translation>Value</translation>
|
<translation>Value</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_FILE</source>
|
||||||
|
<translation>Mesh-size file</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_MESH_SIZE</source>
|
||||||
|
<translation>Mesh size</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_INSIDER</source>
|
||||||
|
<translation>Insider</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_WORST_ELEM_MEASURE</source>
|
||||||
|
<translation>Worst element measure</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_USE_DELAUNEY</source>
|
||||||
|
<translation>Use Delaunay</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_CHECK_OVERLAPPING</source>
|
||||||
|
<translation>Check overlapping</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_CHECK_CHART_BOUNDARY</source>
|
||||||
|
<translation>Check chart boundary</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_ELEM_SIZE_WEIGHT</source>
|
||||||
|
<translation>Element size weight</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_NB_SURF_OPT_STEPS</source>
|
||||||
|
<translation>Nb. surface optimization steps</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_NB_VOL_OPT_STEPS</source>
|
||||||
|
<translation>Nb. volume optimization steps</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_STL</source>
|
||||||
|
<translation>STL</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_STL_CHARTS</source>
|
||||||
|
<translation>Charts</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_STL_SIZE</source>
|
||||||
|
<translation>Mesh size depends on... (enable and factor)</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_EDGE_CORNER_ANGLE</source>
|
||||||
|
<translation>Edge corner angle</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_CHART_ANGLE</source>
|
||||||
|
<translation>Chart angle</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_OUTER_CHART_ANGLE</source>
|
||||||
|
<translation>Outer chart angle</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_CHART_DIST</source>
|
||||||
|
<translation>Chart distance</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_LINE_LENGTH</source>
|
||||||
|
<translation>Line length</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_CLOSE_EDGE</source>
|
||||||
|
<translation>Close edges</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_SURF_CURV</source>
|
||||||
|
<translation>Surface curvature</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_EDGE_ANGLE</source>
|
||||||
|
<translation>Edge angle</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_SURF_MESH_CURV</source>
|
||||||
|
<translation>Surface mesh curvature</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
130
src/GUI/NETGENPlugin_msg_fr.ts
Executable file → Normal file
@ -5,7 +5,7 @@
|
|||||||
<name>@default</name>
|
<name>@default</name>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_2D_HYPOTHESIS</source>
|
<source>NETGEN_2D_HYPOTHESIS</source>
|
||||||
<translation>Netgen 2D</translation>
|
<translation>NETGEN 2D</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_2D_TITLE</source>
|
<source>NETGEN_2D_TITLE</source>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_3D_HYPOTHESIS</source>
|
<source>NETGEN_3D_HYPOTHESIS</source>
|
||||||
<translation>Netgen 3D</translation>
|
<translation>NETGEN 3D</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_3D_TITLE</source>
|
<source>NETGEN_3D_TITLE</source>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SimpleParameters_3D_HYPOTHESIS</source>
|
<source>NETGEN_SimpleParameters_3D_HYPOTHESIS</source>
|
||||||
<translation>Netgen 3D paramètres simplifiés</translation>
|
<translation>NETGEN 3D paramètres simplifiés</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SimpleParameters_3D_TITLE</source>
|
<source>NETGEN_SimpleParameters_3D_TITLE</source>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SimpleParameters_2D_HYPOTHESIS</source>
|
<source>NETGEN_SimpleParameters_2D_HYPOTHESIS</source>
|
||||||
<translation>Netgen 2D paramètres simplifiés</translation>
|
<translation>NETGEN 2D paramètres simplifiés</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SimpleParameters_2D_TITLE</source>
|
<source>NETGEN_SimpleParameters_2D_TITLE</source>
|
||||||
@ -55,6 +55,10 @@
|
|||||||
<source>NETGEN_FINENESS</source>
|
<source>NETGEN_FINENESS</source>
|
||||||
<translation>Finesse</translation>
|
<translation>Finesse</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_FUSE_EDGES</source>
|
||||||
|
<translation>Fusionner les noeuds coincidents sur les arêtes et les points</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_GROWTH_RATE</source>
|
<source>NETGEN_GROWTH_RATE</source>
|
||||||
<translation>Taux d'accroissement</translation>
|
<translation>Taux d'accroissement</translation>
|
||||||
@ -75,6 +79,10 @@
|
|||||||
<source>NETGEN_OPTIMIZE</source>
|
<source>NETGEN_OPTIMIZE</source>
|
||||||
<translation>Optimiser</translation>
|
<translation>Optimiser</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_OPTIMIZER</source>
|
||||||
|
<translation>Optimiseur</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_SECOND_ORDER</source>
|
<source>NETGEN_SECOND_ORDER</source>
|
||||||
<translation>Second ordre</translation>
|
<translation>Second ordre</translation>
|
||||||
@ -87,6 +95,26 @@
|
|||||||
<source>NETGEN_SEG_PER_RADIUS</source>
|
<source>NETGEN_SEG_PER_RADIUS</source>
|
||||||
<translation>Nb. segments par rayon</translation>
|
<translation>Nb. segments par rayon</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_CHORDAL_ERROR</source>
|
||||||
|
<translation>Erreur de corde</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RIDGE_ANGLE</source>
|
||||||
|
<translation>Angle de rive</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_KEEP_EXISTING_EDGES</source>
|
||||||
|
<translation>Garder les arêtes existantes</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_MAKE_SURFACE_GROUPS</source>
|
||||||
|
<translation>Create groups of surfaces</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SURFACE_CURVATURE</source>
|
||||||
|
<translation>Adapter la taille à la courbure de la surface</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_VERYCOARSE</source>
|
<source>NETGEN_VERYCOARSE</source>
|
||||||
<translation>Très grossier</translation>
|
<translation>Très grossier</translation>
|
||||||
@ -129,7 +157,11 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_LSZ_FACE</source>
|
<source>NETGEN_LSZ_FACE</source>
|
||||||
<translation>Sur une sous-face</translation>
|
<translation>Sur une face</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_SOLID</source>
|
||||||
|
<translation>Sur un solide</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>NETGEN_LSZ_REMOVE</source>
|
<source>NETGEN_LSZ_REMOVE</source>
|
||||||
@ -147,5 +179,93 @@
|
|||||||
<source>LSZ_LOCALSIZE_COLUMN</source>
|
<source>LSZ_LOCALSIZE_COLUMN</source>
|
||||||
<translation>Valeur</translation>
|
<translation>Valeur</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_FILE</source>
|
||||||
|
<translation>Fichier des tailles locales</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_MESH_SIZE</source>
|
||||||
|
<translation>Taille de maille</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_INSIDER</source>
|
||||||
|
<translation>Insider</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_WORST_ELEM_MEASURE</source>
|
||||||
|
<translation>Mesure du pire élément</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_USE_DELAUNEY</source>
|
||||||
|
<translation>Utiliser Delaunay</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_CHECK_OVERLAPPING</source>
|
||||||
|
<translation>Contrôle de la superposition</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_CHECK_CHART_BOUNDARY</source>
|
||||||
|
<translation>Contrôle de la frontière</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_ELEM_SIZE_WEIGHT</source>
|
||||||
|
<translation>Poids de la taille de maille</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_NB_SURF_OPT_STEPS</source>
|
||||||
|
<translation>Nb. de pas d'optimisation de la surface</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_NB_VOL_OPT_STEPS</source>
|
||||||
|
<translation>Nb. de pas d'optimisation du volume</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_STL</source>
|
||||||
|
<translation>STL</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_STL_CHARTS</source>
|
||||||
|
<translation>Charts</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_STL_SIZE</source>
|
||||||
|
<translation>Taille de maille dépend de... (activation et valeur)</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_EDGE_CORNER_ANGLE</source>
|
||||||
|
<translation>Angle du coin d'arêtes</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_CHART_ANGLE</source>
|
||||||
|
<translation>Chart angle</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_OUTER_CHART_ANGLE</source>
|
||||||
|
<translation>Outer chart angle</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_CHART_DIST</source>
|
||||||
|
<translation>Chart distance</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_LINE_LENGTH</source>
|
||||||
|
<translation>Longuer de la ligne</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_CLOSE_EDGE</source>
|
||||||
|
<translation>Fermer les arêtes</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_SURF_CURV</source>
|
||||||
|
<translation>Courbure de la surface</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_EDGE_ANGLE</source>
|
||||||
|
<translation>Angle d'arête</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_RESTH_SURF_MESH_CURV</source>
|
||||||
|
<translation>Courbure du maillage de la surface</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
167
src/GUI/NETGENPlugin_msg_ja.ts
Normal file
@ -0,0 +1,167 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.0" language="ja" sourcelanguage="en">
|
||||||
|
<context>
|
||||||
|
<name>@default</name>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_2D_HYPOTHESIS</source>
|
||||||
|
<translation>Netgen 2D</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_2D_TITLE</source>
|
||||||
|
<translation>設定項目</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_3D_HYPOTHESIS</source>
|
||||||
|
<translation>Netgen 3D</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_3D_TITLE</source>
|
||||||
|
<translation>設定項目</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SimpleParameters_3D_HYPOTHESIS</source>
|
||||||
|
<translation>Netgen 3D 簡易パラメーター</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SimpleParameters_3D_TITLE</source>
|
||||||
|
<translation>設定項目</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SimpleParameters_2D_HYPOTHESIS</source>
|
||||||
|
<translation>Netgen 2D 簡易パラメーター</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SimpleParameters_2D_TITLE</source>
|
||||||
|
<translation>設定項目</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_ALLOW_QUADRANGLES</source>
|
||||||
|
<translation>四角形を許可</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_COARSE</source>
|
||||||
|
<translation>粗い</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_CUSTOM</source>
|
||||||
|
<translation>カスタム</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_FINE</source>
|
||||||
|
<translation>細かい</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_FINENESS</source>
|
||||||
|
<translation>細かさ</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_FUSE_EDGES</source>
|
||||||
|
<translation>エッジ及び頂点上の一致節点を結合</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_GROWTH_RATE</source>
|
||||||
|
<translation>増加率</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_MAX_SIZE</source>
|
||||||
|
<translation>最大サイズ</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_MIN_SIZE</source>
|
||||||
|
<translation>最小サイズ</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_MODERATE</source>
|
||||||
|
<translation>普通</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_OPTIMIZE</source>
|
||||||
|
<translation>最適化</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SECOND_ORDER</source>
|
||||||
|
<translation>2次要素</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SEG_PER_EDGE</source>
|
||||||
|
<translation>エッジ上の分割数</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SEG_PER_RADIUS</source>
|
||||||
|
<translation>半径毎の分割数</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_SURFACE_CURVATURE</source>
|
||||||
|
<translation>面の極率による限界サイズ</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_VERYCOARSE</source>
|
||||||
|
<translation>非常に粗く</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_VERYFINE</source>
|
||||||
|
<translation>非常に細かく</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NG_1D</source>
|
||||||
|
<translation>1D</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NG_2D</source>
|
||||||
|
<translation>2D</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NG_3D</source>
|
||||||
|
<translation>3D</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NG_LENGTH_FROM_EDGES</source>
|
||||||
|
<translation>エッジの長さ</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NG_LENGTH_FROM_FACES</source>
|
||||||
|
<translation>フェースの長さ</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LOCAL_SIZE</source>
|
||||||
|
<translation>ローカルのサイズ</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_VERTEX</source>
|
||||||
|
<translation>頂点</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_EDGE</source>
|
||||||
|
<translation>エッジ上</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_FACE</source>
|
||||||
|
<translation>サブフェース上</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_SOLID</source>
|
||||||
|
<translation>ソリッド上</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_REMOVE</source>
|
||||||
|
<translation>削除</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>LSZ_ENTRY_COLUMN</source>
|
||||||
|
<translation>エントリ</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>LSZ_NAME_COLUMN</source>
|
||||||
|
<translation>名前</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>LSZ_LOCALSIZE_COLUMN</source>
|
||||||
|
<translation>値</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>NETGEN_LSZ_FILE</source>
|
||||||
|
<translation>メッシュサイズファイル</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
@ -1,42 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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 : Makefile.in
|
|
||||||
# Author : Patrick GOLDBRONN (CEA)
|
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
|
||||||
# Module : SMESH
|
|
||||||
# $Header$
|
|
||||||
#
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
|
||||||
|
|
||||||
SUBDIRS =
|
|
||||||
if CMAKE_BUILD
|
|
||||||
else
|
|
||||||
if NETGEN_NEW
|
|
||||||
else
|
|
||||||
SUBDIRS += NETGEN
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
SUBDIRS += NETGENPlugin
|
|
||||||
|
|
||||||
if NETGENPLUGIN_ENABLE_GUI
|
|
||||||
SUBDIRS += GUI
|
|
||||||
endif
|
|
||||||
|
|
||||||
DIST_SUBDIRS = NETGEN NETGENPlugin GUI
|
|
@ -1,78 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
# -* Makefile *-
|
|
||||||
# Author : Edward AGAPOV (OCC)
|
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
|
||||||
# Module : NETGENPLUGIN
|
|
||||||
# Date : 10/01/2004
|
|
||||||
#
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
|
||||||
|
|
||||||
# build .so of NETGEN itself
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libNETGEN.la
|
|
||||||
|
|
||||||
LIB_OBJ_O = \
|
|
||||||
linopt.o bfgs.o linsearch.o global.o bisect.o meshtool.o refine.o ruler3.o \
|
|
||||||
improve3.o adfront3.o tetrarls.o prism2rls.o profiler.o pyramidrls.o pyramid2rls.o \
|
|
||||||
netrule3.o ruler2.o meshclass.o improve2.o adfront2.o netrule2.o triarls.o geomsearch.o \
|
|
||||||
secondorder.o meshtype.o parser3.o quadrls.o specials.o parser2.o meshing2.o meshing3.o \
|
|
||||||
meshfunc.o localh.o improve2gen.o delaunay.o boundarylayer.o msghandler.o \
|
|
||||||
meshfunc2d.o smoothing2.o smoothing3.o topology.o curvedelems_new.o clusters.o zrefine.o \
|
|
||||||
ngexception.o geomtest3d.o geom2d.o geom2dmesh.o geom3d.o adtree.o transform3d.o geomfuncs.o \
|
|
||||||
polynomial.o densemat.o vector.o basemat.o sparsmat.o algprim.o brick.o manifold.o bspline2d.o \
|
|
||||||
meshsurf.o csgeom.o polyhedra.o curve2d.o singularref.o edgeflw.o solid.o explicitcurve2d.o \
|
|
||||||
specpoin.o gencyl.o revolution.o genmesh.o genmesh2d.o spline3d.o surface.o identify.o \
|
|
||||||
triapprox.o meshstlsurface.o stlline.o stltopology.o stltool.o stlgeom.o stlgeomchart.o \
|
|
||||||
stlgeommesh.o table.o optmem.o spbita2d.o hashtabl.o sort.o flags.o seti.o bitarray.o \
|
|
||||||
array.o symbolta.o mystring.o moveablemem.o spline.o splinegeometry.o ngnewdelete.o nglib.o \
|
|
||||||
hprefinement.o Partition_Inter2d.o Partition_Loop.o Partition_Loop3d.o Partition_Inter3d.o \
|
|
||||||
Partition_Loop2d.o Partition_Spliter.o occgeom.o occgenmesh.o occmeshsurf.o
|
|
||||||
|
|
||||||
NETGEN_LIBS_DIR=@NETGEN_LIBS_DIR@
|
|
||||||
|
|
||||||
$(LIB_OBJ_O):
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libnginterface.a
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libocc.a
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libcsg.a
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libgprim.a
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libmesh.a
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libopti.a
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libgen.a
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libla.a
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libstlgeom.a
|
|
||||||
ar x $(NETGEN_LIBS_DIR)/libgeom2d.a
|
|
||||||
rm -rf csgparser.o dynamicmem.o extrusion.o occconstruction.o parthreads.o readuser.o writeabaqus.o writediffpack.o writeelmer.o writefeap.o writefluent.o writegmsh.o writejcm.o writepermas.o writetecplot.o writetochnog.o writeuser.o wuchemnitz.o
|
|
||||||
|
|
||||||
#LIB_OBJ_LO = $(LIB_OBJ_O:%.o=%.lo)
|
|
||||||
#%.lo: %.o; @ln -s $< $@
|
|
||||||
|
|
||||||
nodist_libNETGEN_la_SOURCES =
|
|
||||||
|
|
||||||
libNETGEN_la_LDFLAGS = $(LIB_OBJ_O) \
|
|
||||||
$(CAS_LDPATH) -lTKernel -lTKBRep -lTKShHealing -lTKSTEP -lTKXSBase -lTKIGES -lTKMesh -lTKSTL $(FCLIBS) $(STDLIB)
|
|
||||||
|
|
||||||
libNETGEN_la_DEPENDENCIES = $(LIB_OBJ_O)
|
|
||||||
|
|
||||||
EXTRA_DIST += \
|
|
||||||
ReadMeForNgUsers \
|
|
||||||
netgen43ForSalome.patch \
|
|
||||||
netgen45ForSalome.patch \
|
|
||||||
netgen45lib64.patch
|
|
@ -1,137 +1,63 @@
|
|||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# ------------------------------------------------------------------
|
# Notes about usage of Netgen with SALOME
|
||||||
# Notes for Netgen >= 4.9
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
Netgen can be find at http://www.hpfem.jku.at/netgen/
|
-------------------
|
||||||
|
1. Netgen home page
|
||||||
|
-------------------
|
||||||
|
|
||||||
1. How to build Netgen for Netgen Plugin
|
Netgen mesher's home page is: https://sourceforge.net/projects/netgen-mesher/.
|
||||||
------------------------------
|
|
||||||
|
|
||||||
1.1. Download Netgen archive (here netgen-4.9.12.tar.gz) and unpack it
|
-----------------------
|
||||||
|
2. Minimal requirements
|
||||||
|
-----------------------
|
||||||
|
|
||||||
1.2. Configure the netgen compilation. The "good" options are
|
Minimal version of Netgen required for SALOME is 5.3.1.
|
||||||
../netgen-4.9.12/configure \
|
|
||||||
--prefix=THE_INSTALLATION_PATH \
|
|
||||||
--with-occ=${CASROOT} \
|
|
||||||
CXXFLAGS="-I${TOGL_HOME}/include" \
|
|
||||||
LDFLAGS="-L${TOGL_HOME}/lib/Togl1.7"
|
|
||||||
|
|
||||||
1.3. Compile the netgen product
|
----------------------------------------
|
||||||
make then make install
|
3. Build Netgen for SALOME NETGEN Plugin
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
1.4. Patch the installation directory to copy include files
|
3.1. Download Netgen archive (here netgen-5.3.1.tar.gz) from the project's site:
|
||||||
needed by NETGEN Plugin. Use the script
|
|
||||||
NETGENPLUGIN_SRC/src/NETGEN/netgen_copy_include_for_salome
|
|
||||||
to achieve that. The first argument is the directory containing
|
|
||||||
the Netgen sources. The second argument is THE_INSTALLATION_PATH
|
|
||||||
|
|
||||||
Erwan ADAM
|
$ wget https://vorboss.dl.sourceforge.net/project/netgen-mesher/netgen-mesher/5.3/netgen-5.3.1.tar.gz
|
||||||
erwan.adam@cea.fr
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
3.2. Unpack an archive:
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# Notes for Netgen 4.5
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
|
|
||||||
The Netgen 4.5 from the web location : http://www.hpfem.jku.at/netgen/
|
$ tar xfz netgen-5.3.1.tar.gz
|
||||||
(CVS access) is used in the SMESH Module of Salome3 distribution.
|
|
||||||
|
|
||||||
1. How to build Netgen for Salome
|
3.3. Patch the Netgen distribution for SALOME
|
||||||
------------------------------
|
|
||||||
|
|
||||||
1.1. Download Netgen 4.5 from the NETGEN home site (see above).
|
$ cd netgen-5.3.1
|
||||||
|
$ patch -p1 < /path/to/netgenplugin_src_dir/src/NETGEN/netgen53ForSalome.patch
|
||||||
|
|
||||||
1.2. Unpack the downloaded Netgen 4.5 archive
|
Here, "/path/to/netgenplugin_src_dir" is a path to NETGENPLUGIN source directory.
|
||||||
(hereafter we assume that this is netgen45 directory)
|
This is the same directory where this Readme file is located.
|
||||||
|
Netgen plugin sources can be retrieved from the Git repository:
|
||||||
|
|
||||||
1.3. Patch the netgen 4.5 distribution for SALOME:
|
$ git clone http://git.salome-platform.org/gitpub/plugins/netgenplugin.git
|
||||||
|
|
||||||
$ cd netgen45
|
3.4. Configure the netgen compilation:
|
||||||
$ patch -p1 < patch_directory/netgen45ForSalome.patch
|
|
||||||
|
|
||||||
1.4. For 64-bit platform you also need to apply another patch:
|
$ cd netgen-5.3.1
|
||||||
|
$ ./configure --prefix=/path/to/the/installation/directory \
|
||||||
|
--with-occ=${CAS_ROOT_DIR} \
|
||||||
|
--with-tcl=${TCLHOME}/lib --with-tk=${TCLHOME}/lib \
|
||||||
|
--with-tclinclude=${TCLHOME}/include
|
||||||
|
|
||||||
$ cd netgen45
|
Note: Netgen depends on some products like Open CASCADE Technology and Tcl/Tk.
|
||||||
$ patch -p1 < patch_directory/netgen45lib64.patch
|
These products should be specified to the configure script via options.
|
||||||
|
|
||||||
1.5. Set CASROOT environment variable to OCCT installation path,
|
3.5. Compile and install netgen mesher:
|
||||||
since Netgen 4.5 requires Open CASCADE Technology:
|
|
||||||
|
|
||||||
$ setenv CASROOT <occt_installation_path>
|
$ make install
|
||||||
|
|
||||||
1.6. Compile and install netgen 4.5. To do this, simply run
|
3.6. Patch the installation directory by copying header files
|
||||||
makeForSalome.sh script (it is created from the patch):
|
needed by NETGEN Plugin. For this purpose you can use the script
|
||||||
|
/path/to/netgenplugin_src_dir/src/NETGEN/netgen_copy_include_for_salome.
|
||||||
|
|
||||||
$ sh makeForSalome.sh
|
$ /path/to/netgenplugin_src_dir/src/NETGEN/netgen_copy_include_for_salome \
|
||||||
|
. /path/to/the/installation/directory
|
||||||
|
|
||||||
|
The first argument is the directory containing the Netgen sources.
|
||||||
2. Additional information for maintainers
|
The second argument is the installation directory of Netgen mesher.
|
||||||
--------------------------------------
|
|
||||||
|
|
||||||
The file check_NETGEN.m4 assumes that Netgen is installed in
|
|
||||||
the directory <netgen_installation_path> as follow:
|
|
||||||
|
|
||||||
prompt> ls <netgen_installation_path>
|
|
||||||
|
|
||||||
include/ lib/
|
|
||||||
|
|
||||||
prompt> ls <netgen_installation_path>/include
|
|
||||||
|
|
||||||
adfront2.hpp explicitcurve2d.hpp hpref_quad.hpp myadt.hpp spbita2d.hpp
|
|
||||||
adfront3.hpp extrusion.hpp hpref_segm.hpp mydefs.hpp specials.hpp
|
|
||||||
adtree.hpp findip.hpp hpref_tet.hpp mystdlib.h specpoin.hpp
|
|
||||||
algprim.hpp findip2.hpp hpref_trig.hpp mystring.hpp spline.hpp
|
|
||||||
array.hpp flags.hpp hprefinement.hpp ngexception.hpp spline2d.hpp
|
|
||||||
autoptr.hpp gencyl.hpp identify.hpp nglib.h spline3d.hpp
|
|
||||||
basemat.hpp geom2d.hpp improve2.hpp occgeom.hpp splinegeometry.hpp
|
|
||||||
bisect.hpp geom2dmesh.hpp improve3.hpp occmeshsurf.hpp splinegeometry2.hpp
|
|
||||||
bitarray.hpp geom3d.hpp linalg.hpp opti.hpp stack.hpp
|
|
||||||
boundarylayer.hpp geometry2d.hpp localh.hpp optmem.hpp stlgeom.hpp
|
|
||||||
brick.hpp geomfuncs.hpp manifold.hpp parthreads.hpp stlline.hpp
|
|
||||||
classifyhpel.hpp geoml.hpp meshclass.hpp polyhedra.hpp stltool.hpp
|
|
||||||
clusters.hpp geomobjects.hpp meshfunc.hpp polynomial.hpp stltopology.hpp
|
|
||||||
csg.hpp geomops.hpp meshing.hpp profiler.hpp surface.hpp
|
|
||||||
csgeom.hpp geomsearch.hpp meshing2.hpp revolution.hpp symbolta.hpp
|
|
||||||
csgparser.hpp geomtest3d.hpp meshing3.hpp ruler2.hpp table.hpp
|
|
||||||
curve2d.hpp global.hpp meshstlsurface.hpp ruler3.hpp template.hpp
|
|
||||||
curvedelems.hpp gprim.hpp meshsurf.hpp seti.hpp topology.hpp
|
|
||||||
curvedelems_new.hpp hashtabl.hpp meshtool.hpp singularref.hpp transform3d.hpp
|
|
||||||
densemat.hpp hpref_hex.hpp meshtype.hpp solid.hpp triapprox.hpp
|
|
||||||
dynamicmem.hpp hpref_prism.hpp moveablemem.hpp sort.hpp vector.hpp
|
|
||||||
edgeflw.hpp hpref_pyramid.hpp msghandler.hpp sparsmat.hpp
|
|
||||||
|
|
||||||
prompt> ls <netgen_installation_path>/lib
|
|
||||||
|
|
||||||
libcsg.a libgeom2d.a libla.a libnginterface.a libopti.a
|
|
||||||
libgen.a libgprim.a libmesh.a libocc.a libstlgeom.a
|
|
||||||
|
|
||||||
The library files can be also installed in the LINUX or LINUX64
|
|
||||||
subfolder of the lib directory.
|
|
||||||
|
|
||||||
All the libraries *.a should be compiled without the option -DOPENGL.
|
|
||||||
netgen45 is assumed to be the directory downloaded from the above web
|
|
||||||
location archive of Netgen. The library
|
|
||||||
<netgen_installation_path>/lib/libnginterface.a should contain the objects
|
|
||||||
nglib.o (from netgen45/libsrc/interface/nglib.cpp) and ngnewdelete.o
|
|
||||||
(from netgen45/ngtcltk/ngnewdelete.cpp).
|
|
||||||
|
|
||||||
To have that kind of distribution from the version in the above web location you
|
|
||||||
need not to compile Netgen as suggested in the netgen45/README.INSTALL file.
|
|
||||||
Simply modify the Makefiles to remove -DOPENGL from compiler flags
|
|
||||||
list and to add OCC include dir and flags to compiler flags, add the objects
|
|
||||||
nglib.o and ngnewdelete.o to the library libnginterface.a and
|
|
||||||
recompile the libraries only.
|
|
||||||
All this job is done by applying the patch and running the script makeForSalome.sh.
|
|
||||||
|
|
||||||
The suggested patch alters some Netgen sources to compile them.
|
|
||||||
|
|
||||||
Michael SAZONOV
|
|
||||||
m-sazonov@opencascade.com
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
# ------------------------------------------------------------------
|
|
||||||
|
@ -1,221 +0,0 @@
|
|||||||
diff -N -r -u netgen43/libsrc/include/spline2d.hpp /tmp/netgen43/libsrc/include/spline2d.hpp
|
|
||||||
--- netgen43/libsrc/include/spline2d.hpp 1970-01-01 01:00:00.000000000 +0100
|
|
||||||
+++ /tmp/netgen43/libsrc/include/spline2d.hpp 2003-12-10 16:28:12.000000000 +0100
|
|
||||||
@@ -0,0 +1 @@
|
|
||||||
+#include "../geom2d/spline2d.hpp"
|
|
||||||
diff -N -r -u netgen43/libsrc/include/splinegeometry2.hpp /tmp/netgen43/libsrc/include/splinegeometry2.hpp
|
|
||||||
--- netgen43/libsrc/include/splinegeometry2.hpp 1970-01-01 01:00:00.000000000 +0100
|
|
||||||
+++ /tmp/netgen43/libsrc/include/splinegeometry2.hpp 2003-12-10 16:28:23.000000000 +0100
|
|
||||||
@@ -0,0 +1 @@
|
|
||||||
+#include "../geom2d/splinegeometry2.hpp"
|
|
||||||
diff -N -r -u netgen43/libsrc/interface/Makefile /tmp/netgen43/libsrc/interface/Makefile
|
|
||||||
--- netgen43/libsrc/interface/Makefile 2003-05-07 16:01:43.000000000 +0200
|
|
||||||
+++ /tmp/netgen43/libsrc/interface/Makefile 2003-12-10 15:59:47.000000000 +0100
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-src = nginterface.cpp writeuser.cpp writediffpack.cpp writeabaqus.cpp writefluent.cpp writepermas.cpp writetochnog.cpp writetecplot.cpp wuchemnitz.cpp writetochnog.cpp writefeap.cpp readuser.cpp importsolution.cpp
|
|
||||||
+src = writeuser.cpp writediffpack.cpp writeabaqus.cpp writefluent.cpp writepermas.cpp writetochnog.cpp writetecplot.cpp wuchemnitz.cpp writetochnog.cpp writefeap.cpp readuser.cpp importsolution.cpp nglib.cpp ngnewdelete.cpp
|
|
||||||
#
|
|
||||||
lib = nginterface
|
|
||||||
libpath = libsrc/interface
|
|
||||||
diff -N -r -u netgen43/libsrc/interface/nglib.cpp /tmp/netgen43/libsrc/interface/nglib.cpp
|
|
||||||
--- netgen43/libsrc/interface/nglib.cpp 2003-05-07 16:01:43.000000000 +0200
|
|
||||||
+++ /tmp/netgen43/libsrc/interface/nglib.cpp 2003-12-10 16:32:54.000000000 +0100
|
|
||||||
@@ -23,6 +23,20 @@
|
|
||||||
|
|
||||||
#include "nglib.h"
|
|
||||||
|
|
||||||
+namespace netgen
|
|
||||||
+{
|
|
||||||
+ char geomfilename [100];
|
|
||||||
+
|
|
||||||
+ //Destination for messages, errors, ...
|
|
||||||
+ void Ng_PrintDest(const char * s)
|
|
||||||
+ {
|
|
||||||
+ (*mycout) << s << flush;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+#include <spline2d.hpp>
|
|
||||||
+#include <splinegeometry2.hpp>
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
using namespace netgen;
|
|
||||||
|
|
||||||
// constants and types:
|
|
||||||
@@ -171,8 +185,6 @@
|
|
||||||
// CSG Geometry
|
|
||||||
|
|
||||||
// FlexLexer * lexer;
|
|
||||||
-char geomfilename [100];
|
|
||||||
-
|
|
||||||
|
|
||||||
// 2D Meshing Functions:
|
|
||||||
|
|
||||||
@@ -362,7 +374,18 @@
|
|
||||||
cout << "e(" << readedges.Get(i) << "," << readedges.Get(i+1) << ")" << endl;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
- geo->AddEdges(readedges);
|
|
||||||
+
|
|
||||||
+ ARRAY< Point<3> > readedges1;
|
|
||||||
+
|
|
||||||
+ for (i = 1; i <= readedges.Size(); i++)
|
|
||||||
+ {
|
|
||||||
+ Point3d readedgesData = readedges.Get(i);
|
|
||||||
+ Point <3> readedges1Data = Point<3>(readedgesData.X(),readedgesData.Y(),readedgesData.Z());
|
|
||||||
+
|
|
||||||
+ readedges1.Append(readedges1Data);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ geo->AddEdges(readedges1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (geo->GetStatus() == STLTopology::STL_GOOD || geo->GetStatus() == STLTopology::STL_WARNING) return NG_OK;
|
|
||||||
@@ -472,7 +495,14 @@
|
|
||||||
n = Vec3d(nv[0],nv[1],nv[2]);
|
|
||||||
}
|
|
||||||
|
|
||||||
- readtrias.Append(STLReadTriangle(apts,n));
|
|
||||||
+ Point<3> apts1[3];
|
|
||||||
+ apts1[0] = Point<3>(p1[0],p1[1],p1[2]);
|
|
||||||
+ apts1[1] = Point<3>(p2[0],p2[1],p2[2]);
|
|
||||||
+ apts1[2] = Point<3>(p3[0],p3[1],p3[2]);
|
|
||||||
+
|
|
||||||
+ Vec<3> n1 = Vec<3>(n.X(),n.Y(),n.Z());
|
|
||||||
+
|
|
||||||
+ readtrias.Append(STLReadTriangle(apts1,n1));
|
|
||||||
}
|
|
||||||
|
|
||||||
// add (optional) edges:
|
|
||||||
@@ -487,30 +517,29 @@
|
|
||||||
|
|
||||||
// compatibility functions:
|
|
||||||
|
|
||||||
-void MyError (const char * ch)
|
|
||||||
+void netgen::MyError (const char * ch)
|
|
||||||
{
|
|
||||||
cerr << ch;
|
|
||||||
}
|
|
||||||
|
|
||||||
-//Destination for messages, errors, ...
|
|
||||||
-void Ng_PrintDest(const char * s)
|
|
||||||
-{
|
|
||||||
- (*mycout) << s << flush;
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-double GetTime ()
|
|
||||||
+double netgen::GetTime ()
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
-void ResetTime ()
|
|
||||||
+void netgen::ResetTime ()
|
|
||||||
{
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
-void MyBeep (int i)
|
|
||||||
+void netgen::MyBeep (int i)
|
|
||||||
{
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
+void MeshFromSpline2D (SplineGeometry2d & geometry,
|
|
||||||
+ Mesh *& mesh,
|
|
||||||
+ MeshingParameters & mp)
|
|
||||||
+{
|
|
||||||
+ MeshFromSpline2D (geometry, mesh, mp);
|
|
||||||
+}
|
|
||||||
diff -N -r -u netgen43/libsrc/makefile.mach.LINUX /tmp/netgen43/libsrc/makefile.mach.LINUX
|
|
||||||
--- netgen43/libsrc/makefile.mach.LINUX 2003-05-07 16:01:43.000000000 +0200
|
|
||||||
+++ /tmp/netgen43/libsrc/makefile.mach.LINUX 2003-12-10 15:12:18.000000000 +0100
|
|
||||||
@@ -14,7 +14,8 @@
|
|
||||||
#
|
|
||||||
CFLAGS2 =
|
|
||||||
# pg stands for profiling - also in linkflags2
|
|
||||||
-CPLUSPLUSFLAGS2 = -O2 -I/usr/X11R6/include -DLINUX -DOPENGL
|
|
||||||
+#CPLUSPLUSFLAGS2 = -O2 -I/usr/X11R6/include -DLINUX -DOPENGL
|
|
||||||
+CPLUSPLUSFLAGS2 = -O2 -I/usr/X11R6/include -DLINUX
|
|
||||||
# -fomit-frame-pointer
|
|
||||||
# -ffast-math
|
|
||||||
#
|
|
||||||
diff -N -r -u netgen43/libsrc/meshing/improve2.cpp /tmp/netgen43/libsrc/meshing/improve2.cpp
|
|
||||||
--- netgen43/libsrc/meshing/improve2.cpp 2003-05-07 16:01:43.000000000 +0200
|
|
||||||
+++ /tmp/netgen43/libsrc/meshing/improve2.cpp 2003-12-10 15:42:00.000000000 +0100
|
|
||||||
@@ -3,7 +3,7 @@
|
|
||||||
#include "meshing.hpp"
|
|
||||||
#include <opti.hpp>
|
|
||||||
|
|
||||||
-#include <visual.hpp>
|
|
||||||
+/*#include <visual.hpp>*/
|
|
||||||
|
|
||||||
|
|
||||||
namespace netgen
|
|
||||||
diff -N -r -u netgen43/libsrc/meshing/meshing2.cpp /tmp/netgen43/libsrc/meshing/meshing2.cpp
|
|
||||||
--- netgen43/libsrc/meshing/meshing2.cpp 2003-05-07 16:01:43.000000000 +0200
|
|
||||||
+++ /tmp/netgen43/libsrc/meshing/meshing2.cpp 2003-12-10 15:34:35.000000000 +0100
|
|
||||||
@@ -1785,7 +1785,7 @@
|
|
||||||
|
|
||||||
|
|
||||||
#else
|
|
||||||
-void glrender (int wait)
|
|
||||||
+void netgen::glrender (int wait)
|
|
||||||
{
|
|
||||||
;
|
|
||||||
}
|
|
||||||
diff -N -r -u netgen43/libsrc/visualization/stlmeshing.cpp /tmp/netgen43/libsrc/visualization/stlmeshing.cpp
|
|
||||||
--- netgen43/libsrc/visualization/stlmeshing.cpp 2003-05-07 16:01:43.000000000 +0200
|
|
||||||
+++ /tmp/netgen43/libsrc/visualization/stlmeshing.cpp 2003-12-10 15:52:53.000000000 +0100
|
|
||||||
@@ -5,7 +5,7 @@
|
|
||||||
#include <stlgeom.hpp>
|
|
||||||
|
|
||||||
#include <meshing.hpp>
|
|
||||||
-#include <visual.hpp>
|
|
||||||
+/*#include <visual.hpp>*/
|
|
||||||
|
|
||||||
namespace netgen
|
|
||||||
{
|
|
||||||
diff -N -r -u netgen43/Makefile /tmp/netgen43/Makefile
|
|
||||||
--- netgen43/Makefile 2003-05-07 16:01:43.000000000 +0200
|
|
||||||
+++ /tmp/netgen43/Makefile 2003-12-10 15:11:41.000000000 +0100
|
|
||||||
@@ -35,7 +35,8 @@
|
|
||||||
.SUFFIXES: .cpp .o
|
|
||||||
#
|
|
||||||
#
|
|
||||||
-CPLUSPLUSFLAGS1 = -c -I$(LIBSRC_DIR)/include -DOPENGL
|
|
||||||
+#CPLUSPLUSFLAGS1 = -c -I$(LIBSRC_DIR)/include -DOPENGL
|
|
||||||
+CPLUSPLUSFLAGS1 = -c -I$(LIBSRC_DIR)/include
|
|
||||||
LINKFLAGS1 = -lGL -lGLU -lX11 -lXext -lXmu
|
|
||||||
#
|
|
||||||
CPLUSPLUSFLAGS = $(CPLUSPLUSFLAGS1) $(CPLUSPLUSFLAGS2) $(CPLUSPLUSFLAGS3)
|
|
||||||
diff -N -r -u netgen43/makeForSalome.sh /tmp/netgen43/makeForSalome.sh
|
|
||||||
--- netgen43/makeForSalome.sh 1970-01-01 01:00:00.000000000 +0100
|
|
||||||
+++ /tmp/netgen43/makeForSalome.sh 2004-01-05 12:33:59.000000000 +0100
|
|
||||||
@@ -0,0 +1,26 @@
|
|
||||||
+#! /bin/sh
|
|
||||||
+cp ngtcltk/ngnewdelete.* libsrc/interface/
|
|
||||||
+
|
|
||||||
+MACHINE=LINUX
|
|
||||||
+export MACHINE
|
|
||||||
+make -C libsrc/csg
|
|
||||||
+make -C libsrc/general
|
|
||||||
+make -C libsrc/geom2d
|
|
||||||
+make -C libsrc/gprim
|
|
||||||
+make -C libsrc/interface
|
|
||||||
+make -C libsrc/linalg
|
|
||||||
+make -C libsrc/meshing
|
|
||||||
+make -C libsrc/opti
|
|
||||||
+make -C libsrc/stlgeom
|
|
||||||
+
|
|
||||||
+if [ ! -d install ] ; then
|
|
||||||
+ mkdir install
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+cp -r lib install/
|
|
||||||
+
|
|
||||||
+if [ ! -d install/include ] ; then
|
|
||||||
+ mkdir install/include
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+cp libsrc/interface/nglib.h install/include
|
|
@ -1,45 +0,0 @@
|
|||||||
diff -ur netgen-4.5.old/libsrc/makefile.inc netgen-4.5.new/libsrc/makefile.inc
|
|
||||||
--- netgen-4.5/libsrc/makefile.inc 2006-04-27 13:12:54.000000000 +0400
|
|
||||||
+++ netgen-4.5/libsrc/makefile.inc 2006-09-05 14:16:32.000000000 +0400
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
#
|
|
||||||
include $(LIBSRC_DIR)/makefile.mach.$(MACHINE)
|
|
||||||
#
|
|
||||||
-CPLUSPLUSFLAGS1 = -c -fPIC -I$(LIBSRC_DIR)/include -I$(OCCINC_DIR) \
|
|
||||||
+CPLUSPLUSFLAGS1 = -c -m64 -D_OCC64 -fPIC -I$(LIBSRC_DIR)/include -I$(OCCINC_DIR) \
|
|
||||||
-DOCCGEOMETRY -DOCC52 -DHAVE_IOSTREAM -DHAVE_LIMITS_H
|
|
||||||
#
|
|
||||||
ARFLAGS = r
|
|
||||||
diff -ur netgen-4.5.old/libsrc/makefile.mach.LINUX64 netgen-4.5.new/libsrc/makefile.mach.LINUX64
|
|
||||||
--- netgen-4.5/libsrc/makefile.mach.LINUX64 2006-03-29 15:09:32.000000000 +0400
|
|
||||||
+++ netgen-4.5/libsrc/makefile.mach.LINUX64 2006-09-07 15:48:39.000000000 +0400
|
|
||||||
@@ -11,7 +11,7 @@
|
|
||||||
#
|
|
||||||
#
|
|
||||||
CFLAGS2 =
|
|
||||||
-CPLUSPLUSFLAGS2 = -pg -march=nocona -O2 -DLINUX -DOPENGL \
|
|
||||||
+CPLUSPLUSFLAGS2 = -pg -march=nocona -O2 -DLINUX \
|
|
||||||
-ftemplate-depth-99 -finline-limit=100000 \
|
|
||||||
-fforce-addr -funroll-loops \
|
|
||||||
-DTRAFO -DNGSOLVE -DnoADDON -DnoLAPACK -DnoFAST \
|
|
||||||
@@ -23,7 +23,7 @@
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
-LINKFLAGS2 = -pg -L/usr/openwin/lib64 -L/usr/X11R6/lib64 -L/usr/lib/GL3.5 -L/usr/lib64
|
|
||||||
+LINKFLAGS2 = -fPIC -pg -L/usr/openwin/lib64 -L/usr/X11R6/lib64 -L/usr/lib/GL3.5 -L/usr/lib64
|
|
||||||
|
|
||||||
|
|
||||||
SYSLIB2 = -lstdc++
|
|
||||||
diff -ur netgen-4.5.old/Makefile netgen-4.5.new/Makefile
|
|
||||||
--- netgen-4.5/Makefile 2006-03-29 15:09:12.000000000 +0400
|
|
||||||
+++ netgen-4.5/Makefile 2006-09-07 15:46:07.000000000 +0400
|
|
||||||
@@ -72,7 +72,7 @@
|
|
||||||
#
|
|
||||||
#CPLUSPLUSFLAGS1 = -c -I$(LIBSRC_DIR)/include -DOPENGL
|
|
||||||
|
|
||||||
-CPLUSPLUSFLAGS1 = -c -I$(LIBSRC_DIR)/include -I$(OCCINC_DIR) -I./ngsolve/include -Ilibsrc/interface -DOPENGL -I$(METISINC)
|
|
||||||
+CPLUSPLUSFLAGS1 = -c -m64 -D_OCC64 -I$(LIBSRC_DIR)/include -I$(OCCINC_DIR) -I./ngsolve/include -Ilibsrc/interface -I$(METISINC)
|
|
||||||
|
|
||||||
LINKFLAGS1 = -lGL -lGLU -lX11 -lXext -lXmu
|
|
||||||
#
|
|
1530
src/NETGEN/netgen53ForSalome.patch
Normal file
1155
src/NETGEN/netgen53ForWindows.patch
Normal file
293
src/NETGEN/netgen62ForSalome.patch
Normal file
@ -0,0 +1,293 @@
|
|||||||
|
diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp
|
||||||
|
index 314d405a..7c912bcc 100644
|
||||||
|
--- a/libsrc/occ/occgenmesh.cpp
|
||||||
|
+++ b/libsrc/occ/occgenmesh.cpp
|
||||||
|
@@ -49,7 +49,7 @@ namespace netgen
|
||||||
|
double ComputeH (double kappa, const MeshingParameters & mparam)
|
||||||
|
{
|
||||||
|
kappa *= mparam.curvaturesafety;
|
||||||
|
- /*
|
||||||
|
+ /**/
|
||||||
|
double hret;
|
||||||
|
|
||||||
|
if (mparam.maxh * kappa < 1)
|
||||||
|
@@ -61,7 +61,7 @@ namespace netgen
|
||||||
|
hret = mparam.maxh;
|
||||||
|
|
||||||
|
return hret;
|
||||||
|
- */
|
||||||
|
+ /**/
|
||||||
|
// return min(mparam.maxh, 1/kappa);
|
||||||
|
return (mparam.maxh*kappa < 1) ? mparam.maxh : 1/kappa;
|
||||||
|
}
|
||||||
|
@@ -253,10 +253,12 @@ namespace netgen
|
||||||
|
{
|
||||||
|
oldpnt = pnt;
|
||||||
|
pnt = c->Value(s0+(i/double(DIVIDEEDGESECTIONS))*(s1-s0));
|
||||||
|
+ // !!! no more than 1 segment per <edge length>/DIVIDEEDGESECTIONS
|
||||||
|
hvalue[i] = hvalue[i-1] +
|
||||||
|
- 1.0/mesh.GetH(Point3d(pnt.X(), pnt.Y(), pnt.Z()))*
|
||||||
|
- pnt.Distance(oldpnt);
|
||||||
|
+ min( 1.0,
|
||||||
|
+ 1.0/mesh.GetH(Point3d(pnt.X(), pnt.Y(), pnt.Z()))*
|
||||||
|
+ pnt.Distance(oldpnt));
|
||||||
|
|
||||||
|
//(*testout) << "mesh.GetH(Point3d(pnt.X(), pnt.Y(), pnt.Z())) " << mesh.GetH(Point3d(pnt.X(), pnt.Y(), pnt.Z()))
|
||||||
|
// << " pnt.Distance(oldpnt) " << pnt.Distance(oldpnt) << endl;
|
||||||
|
|
||||||
|
@@ -299,7 +301,7 @@ namespace netgen
|
||||||
|
cout << "CORRECTED" << endl;
|
||||||
|
ps.SetSize (nsubedges-2);
|
||||||
|
params.SetSize (nsubedges);
|
||||||
|
- params[nsubedges] = s1;
|
||||||
|
+ params[nsubedges-1] = s1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -323,6 +325,8 @@ namespace netgen
|
||||||
|
|
||||||
|
double eps = 1e-6 * geom.GetBoundingBox().Diam();
|
||||||
|
|
||||||
|
+ int first_vp = mesh.GetNP()+1;
|
||||||
|
+
|
||||||
|
tsearch.Start();
|
||||||
|
for (int i = 1; i <= nvertices; i++)
|
||||||
|
{
|
||||||
|
@@ -481,22 +485,107 @@ namespace netgen
|
||||||
|
|
||||||
|
if (!merge_solids)
|
||||||
|
{
|
||||||
|
- pnums[0] = geom.vmap.FindIndex (TopExp::FirstVertex (edge)) + PointIndex::BASE-1;
|
||||||
|
- pnums.Last() = geom.vmap.FindIndex (TopExp::LastVertex (edge)) + PointIndex::BASE-1;
|
||||||
|
+ //pnums[0] = geom.vmap.FindIndex (TopExp::FirstVertex (edge)) + PointIndex::BASE-1;
|
||||||
|
+ //pnums.Last() = geom.vmap.FindIndex (TopExp::LastVertex (edge)) + PointIndex::BASE-1;
|
||||||
|
+ const int dpi = PointIndex::BASE-1;
|
||||||
|
+ MeshPoint dfltP ( Point<3> ( 0, 0, 0 ) );
|
||||||
|
+ PointIndex *ipp[] = { &pnums[0], &pnums.Last() };
|
||||||
|
+ TopoDS_Iterator vIt( edge, false );
|
||||||
|
+ TopoDS_Vertex v[2];
|
||||||
|
+ v[0] = TopoDS::Vertex( vIt.Value() ); vIt.Next();
|
||||||
|
+ v[1] = TopoDS::Vertex( vIt.Value() );
|
||||||
|
+ if ( v[0].Orientation() == TopAbs_REVERSED )
|
||||||
|
+ std::swap( v[0], v[1] );
|
||||||
|
+ for ( int i = 0; i < 2; ++i)
|
||||||
|
+ {
|
||||||
|
+ PointIndex &ip = *ipp[i];
|
||||||
|
+ ip = geom.vmap.FindIndex ( v[i] ) + dpi;
|
||||||
|
+ if ( ip == dpi || ip > nvertices + dpi )
|
||||||
|
+ {
|
||||||
|
+ PointIndex iv = ip;
|
||||||
|
+ if ( ip == dpi )
|
||||||
|
+ ip = iv = const_cast<OCCGeometry&>(geom).vmap.Add( v[i] );
|
||||||
|
+ gp_Pnt pnt = BRep_Tool::Pnt( v[i] );
|
||||||
|
+ MeshPoint mp( Point<3>(pnt.X(), pnt.Y(), pnt.Z()) );
|
||||||
|
+ for (PointIndex pi = 1; pi < first_vp; pi++)
|
||||||
|
+ if ( Dist2 (mesh.Point(pi), Point<3>(mp)) < 1e-100 )
|
||||||
|
+ {
|
||||||
|
+ ip = pi;
|
||||||
|
+ if ( mesh.Point(ip).GetLayer() != dfltP.GetLayer() && mesh.Point(ip).GetLayer() != iv )
|
||||||
|
+ continue;
|
||||||
|
+ if ( mesh.Point(ip).GetLayer() == dfltP.GetLayer())
|
||||||
|
+ mesh.Point(ip) = MeshPoint( mesh.Point(ip), iv );
|
||||||
|
+ break;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ else
|
||||||
|
+ {
|
||||||
|
+ ip += first_vp - 1;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
- Point<3> fp = occ2ng (BRep_Tool::Pnt (TopExp::FirstVertex (edge)));
|
||||||
|
- Point<3> lp = occ2ng (BRep_Tool::Pnt (TopExp::LastVertex (edge)));
|
||||||
|
+ TopoDS_Iterator vIt( edge, false );
|
||||||
|
+ TopoDS_Vertex v1 = TopoDS::Vertex( vIt.Value() ); vIt.Next();
|
||||||
|
+ TopoDS_Vertex v2 = TopoDS::Vertex( vIt.Value() );
|
||||||
|
+ if ( v1.Orientation() == TopAbs_REVERSED )
|
||||||
|
+ std::swap( v1, v2 );
|
||||||
|
+ const bool isClosedEdge = v1.IsSame( v2 );
|
||||||
|
+
|
||||||
|
+ Point<3> fp = occ2ng (BRep_Tool::Pnt (v1));
|
||||||
|
+ Point<3> lp = occ2ng (BRep_Tool::Pnt (v2));
|
||||||
|
+ double tol2 = std::min( eps*eps, 1e-6 * Dist2( fp, lp ));
|
||||||
|
+ if ( isClosedEdge )
|
||||||
|
+ tol2 = BRep_Tool::Tolerance( v1 ) * BRep_Tool::Tolerance( v1 );
|
||||||
|
|
||||||
|
pnums[0] = PointIndex::INVALID;
|
||||||
|
pnums.Last() = PointIndex::INVALID;
|
||||||
|
for (PointIndex pi : vertexrange)
|
||||||
|
{
|
||||||
|
- if (Dist2 (mesh[pi], fp) < eps*eps) pnums[0] = pi;
|
||||||
|
- if (Dist2 (mesh[pi], lp) < eps*eps) pnums.Last() = pi;
|
||||||
|
+ if (Dist2 (mesh[pi], fp) < tol2) pnums[0] = pi;
|
||||||
|
+ if (Dist2 (mesh[pi], lp) < tol2) pnums.Last() = pi;
|
||||||
|
}
|
||||||
|
- }
|
||||||
|
+ if (( isClosedEdge && pnums[0] != pnums.Last() ) ||
|
||||||
|
+ ( !isClosedEdge && pnums[0] == pnums.Last() ))
|
||||||
|
+ pnums[0] = pnums.Last() = PointIndex::INVALID;
|
||||||
|
+ if ( pnums[0] < PointIndex::BASE || pnums.Last() < PointIndex::BASE )
|
||||||
|
+ {
|
||||||
|
+ // take into account a possible large gap between a vertex and an edge curve
|
||||||
|
+ // end and a large vertex tolerance covering the whole edge
|
||||||
|
+ if ( pnums[0] < PointIndex::BASE )
|
||||||
|
+ {
|
||||||
|
+ double tol = BRep_Tool::Tolerance( v1 );
|
||||||
|
+ for (PointIndex pi = 1; pi < first_ep; pi++)
|
||||||
|
+ if (pi != pnums.Last() && Dist2 (mesh[pi], fp) < 2*tol*tol)
|
||||||
|
+ pnums[0] = pi;
|
||||||
|
+
|
||||||
|
+ if ( pnums[0] < PointIndex::BASE )
|
||||||
|
+ pnums[0] = first_ep-1 - nvertices + geom.vmap.FindIndex ( v1 );
|
||||||
|
+ }
|
||||||
|
+ if ( isClosedEdge )
|
||||||
|
+ {
|
||||||
|
+ pnums.Last() = pnums[0];
|
||||||
|
+ }
|
||||||
|
+ else
|
||||||
|
+ {
|
||||||
|
+ if ( pnums.Last() < PointIndex::BASE )
|
||||||
|
+ {
|
||||||
|
+ double tol = BRep_Tool::Tolerance( v2 );
|
||||||
|
+ for (PointIndex pi = 1; pi < first_ep; pi++)
|
||||||
|
+ if (pi != pnums[0] && Dist2 (mesh[pi], lp) < 2*tol*tol)
|
||||||
|
+ pnums.Last() = pi;
|
||||||
|
+
|
||||||
|
+ if ( pnums.Last() < PointIndex::BASE )
|
||||||
|
+ pnums.Last() = first_ep-1-nvertices + geom.vmap.FindIndex ( v2 );
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if ( Dist2( fp, mesh[PointIndex(pnums[0])]) >
|
||||||
|
+ Dist2( lp, mesh[PointIndex(pnums.Last())]))
|
||||||
|
+ std::swap( pnums[0], pnums.Last() );
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
|
||||||
|
for (size_t i = 1; i <= mp.Size(); i++)
|
||||||
|
{
|
||||||
|
@@ -505,17 +594,19 @@ namespace netgen
|
||||||
|
|
||||||
|
// for (PointIndex j = first_ep; j < mesh.Points().End(); j++)
|
||||||
|
for (PointIndex j = first_ep; j < *mesh.Points().Range().end(); j++)
|
||||||
|
+ {
|
||||||
|
+ if (!merge_solids && mesh.Point(j).GetLayer() != geomedgenr ) continue;
|
||||||
|
if ((mesh.Point(j)-Point<3>(mp[i-1])).Length() < eps)
|
||||||
|
{
|
||||||
|
exists = true;
|
||||||
|
pnums[i] = j;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
-
|
||||||
|
+ }
|
||||||
|
tsearch.Stop();
|
||||||
|
|
||||||
|
if (!exists)
|
||||||
|
- pnums[i] = mesh.AddPoint (mp[i-1]);
|
||||||
|
+ pnums[i] = mesh.AddPoint (mp[i-1], geomedgenr);
|
||||||
|
}
|
||||||
|
if(geom.enames.Size() && geom.enames[curr-1] != "")
|
||||||
|
mesh.SetCD2Name(geomedgenr, geom.enames[curr-1]);
|
||||||
|
@@ -599,6 +690,9 @@ namespace netgen
|
||||||
|
// << " p1 " << mesh.LineSegment(i)[0] << " p2 " << mesh.LineSegment(i)[1] << endl;
|
||||||
|
// exit(10);
|
||||||
|
|
||||||
|
+ for (int j = 1; j <= mesh.GetNP(); j++) // support SALOME fuse edges: set level to zero
|
||||||
|
+ mesh.Point(j) = MeshPoint( (Point<3>&) mesh.Point(j) );
|
||||||
|
+
|
||||||
|
mesh.CalcSurfacesOfNode();
|
||||||
|
multithread.task = savetask;
|
||||||
|
}
|
||||||
|
@@ -652,7 +746,7 @@ namespace netgen
|
||||||
|
|
||||||
|
Box<3> bb = geom.GetBoundingBox();
|
||||||
|
|
||||||
|
- int projecttype = PLANESPACE;
|
||||||
|
+ //int projecttype = PLANESPACE;
|
||||||
|
|
||||||
|
static Timer tinit("init");
|
||||||
|
tinit.Start();
|
||||||
|
diff --git a/libsrc/occ/occmeshsurf.cpp b/libsrc/occ/occmeshsurf.cpp
|
||||||
|
index 7fa5d237..9e05fd95 100644
|
||||||
|
--- a/libsrc/occ/occmeshsurf.cpp
|
||||||
|
+++ b/libsrc/occ/occmeshsurf.cpp
|
||||||
|
@@ -173,50 +173,6 @@ namespace netgen
|
||||||
|
gp_Vec du, dv;
|
||||||
|
occface->D1 (geominfo1.u, geominfo1.v, pnt, du, dv);
|
||||||
|
|
||||||
|
- // static Timer t("occ-defintangplane calculations");
|
||||||
|
- // RegionTimer reg(t);
|
||||||
|
-
|
||||||
|
- Mat<3,2> D1_;
|
||||||
|
- D1_(0,0) = du.X(); D1_(1,0) = du.Y(); D1_(2,0) = du.Z();
|
||||||
|
- D1_(0,1) = dv.X(); D1_(1,1) = dv.Y(); D1_(2,1) = dv.Z();
|
||||||
|
- auto D1T_ = Trans(D1_);
|
||||||
|
- auto D1TD1_ = D1T_*D1_;
|
||||||
|
- if (Det (D1TD1_) == 0) throw SingularMatrixException();
|
||||||
|
- Mat<2,2> DDTinv_;
|
||||||
|
- CalcInverse (D1TD1_, DDTinv_);
|
||||||
|
-
|
||||||
|
- Mat<3,2> Y_;
|
||||||
|
- Vec<3> y1_ = (ap2-ap1).Normalize();
|
||||||
|
- Vec<3> y2_ = Cross(n, y1_).Normalize();
|
||||||
|
- for (int i = 0; i < 3; i++)
|
||||||
|
- {
|
||||||
|
- Y_(i,0) = y1_(i);
|
||||||
|
- Y_(i,1) = y2_(i);
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- auto A_ = DDTinv_ * D1T_ * Y_;
|
||||||
|
- Mat<2,2> Ainv_;
|
||||||
|
- if (Det(A_) == 0) throw SingularMatrixException();
|
||||||
|
- CalcInverse (A_, Ainv_);
|
||||||
|
-
|
||||||
|
- Vec<2> temp_ = Ainv_ * (psp2-psp1);
|
||||||
|
- double r_ = temp_.Length();
|
||||||
|
- Mat<2,2> R_;
|
||||||
|
- R_(0,0) = temp_(0)/r_;
|
||||||
|
- R_(1,0) = temp_(1)/r_;
|
||||||
|
- R_(0,1) = -R_(1,0);
|
||||||
|
- R_(1,1) = R_(0,0);
|
||||||
|
-
|
||||||
|
- A_ = A_ * R_;
|
||||||
|
- Ainv_ = Trans(R_) * Ainv_;
|
||||||
|
-
|
||||||
|
- Amat = A_;
|
||||||
|
- Amatinv = Ainv_;
|
||||||
|
-
|
||||||
|
- // temp = Amatinv * (psp2-psp1);
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-#ifdef OLD
|
||||||
|
DenseMatrix D1(3,2), D1T(2,3), DDTinv(2,2);
|
||||||
|
D1(0,0) = du.X(); D1(1,0) = du.Y(); D1(2,0) = du.Z();
|
||||||
|
D1(0,1) = dv.X(); D1(1,1) = dv.Y(); D1(2,1) = dv.Z();
|
||||||
|
@@ -289,8 +245,7 @@ namespace netgen
|
||||||
|
}
|
||||||
|
// cout << "=?= Ainv = " << endl << Ainv << endl;
|
||||||
|
temp = Amatinv * (psp2-psp1);
|
||||||
|
- cout << " =?= Amatinv = " << Amatinv << endl;
|
||||||
|
-#endif
|
||||||
|
+ // cout << " =?= Amatinv = " << Amatinv << endl;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
@@ -380,6 +335,7 @@ namespace netgen
|
||||||
|
|
||||||
|
double u = gi.u;
|
||||||
|
double v = gi.v;
|
||||||
|
+ if ( 0 ) { // exclude Newton's method
|
||||||
|
gp_Pnt x = occface->Value (u,v);
|
||||||
|
|
||||||
|
if (p.SquareDistance(x) <= sqr(PROJECTION_TOLERANCE)) return;
|
||||||
|
@@ -429,7 +385,7 @@ namespace netgen
|
||||||
|
}
|
||||||
|
}
|
||||||
|
while (count < 20);
|
||||||
|
-
|
||||||
|
+ }
|
||||||
|
|
||||||
|
// Newton did not converge, use OCC projection
|
||||||
|
|
@ -1,39 +1,27 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
src_dir=$1
|
src_dir=${1}
|
||||||
install_dir=$2
|
install_dir=${2}
|
||||||
|
|
||||||
if ! test -d $src_dir/libsrc ; then
|
if ! test -d ${src_dir}/libsrc ; then
|
||||||
echo "No dir $src_dir/libsrc ... Bye"
|
echo "No dir ${src_dir}/libsrc ... Bye"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! test -d $install_dir/share/netgen ; then
|
if ! test -d ${install_dir} ; then
|
||||||
echo "No dir $install_dir/share/netgen ... Bye"
|
echo "No dir ${install_dir} ... Bye"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dest_dir=$install_dir/share/netgen/include
|
dest_dir=${install_dir}/include
|
||||||
mkdir -p $dest_dir > /dev/null 2>&1
|
mkdir -p ${dest_dir} > /dev/null 2>&1
|
||||||
cp -af $src_dir/libsrc/csg/*.hpp $dest_dir
|
|
||||||
cp -af $src_dir/libsrc/general/*.hpp $dest_dir
|
|
||||||
cp -af $src_dir/libsrc/geom2d/*.hpp $dest_dir
|
|
||||||
cp -af $src_dir/libsrc/gprim/*.hpp $dest_dir
|
|
||||||
cp -af $src_dir/libsrc/interface/*.hpp $dest_dir
|
|
||||||
cp -af $src_dir/libsrc/linalg/*.hpp $dest_dir
|
|
||||||
cp -af $src_dir/libsrc/meshing/*.hpp $dest_dir
|
|
||||||
cp -af $src_dir/libsrc/stlgeom/*.hpp $dest_dir
|
|
||||||
cp -af $src_dir/libsrc/visualization/*.hpp $dest_dir
|
|
||||||
|
|
||||||
cp -af $src_dir/libsrc/occ/*.hpp $dest_dir
|
for directory in csg general geom2d gprim interface linalg meshing stlgeom visualization
|
||||||
cp -af $src_dir/libsrc/occ/*.hxx $dest_dir
|
do
|
||||||
cp -af $src_dir/libsrc/occ/*.ixx $dest_dir
|
cp -af ${src_dir}/libsrc/${directory}/*.hpp ${dest_dir}
|
||||||
cp -af $src_dir/libsrc/occ/*.jxx $dest_dir
|
done
|
||||||
cp -af $src_dir/libsrc/occ/*.h $dest_dir
|
cp -af ${src_dir}/libsrc/include/mystdlib.h ${dest_dir}
|
||||||
|
cp -af ${src_dir}/libsrc/include/mydefs.hpp ${dest_dir}
|
||||||
cp -af $src_dir/libsrc/include/mystdlib.h $dest_dir
|
cp -af ${src_dir}/libsrc/occ/occgeom.hpp ${dest_dir}
|
||||||
cp -af $src_dir/libsrc/include/mydefs.hpp $dest_dir
|
cp -af ${src_dir}/libsrc/occ/occmeshsurf.hpp ${dest_dir}
|
||||||
# cp -af $src_dir/libsrc/include/parallel.hpp $dest_dir
|
cp -af ${src_dir}/libsrc/general/gzstream.h ${dest_dir}
|
||||||
|
test -f ${src_dir}/config.h && cp -af ${src_dir}/config.h ${dest_dir}
|
||||||
rm -f $dest_dir/ngexception.hpp
|
|
||||||
rm -f $dest_dir/paralleltop.hpp
|
|
||||||
rm -f $dest_dir/soldata.hpp
|
|
||||||
|
171
src/NETGENPlugin/CMakeLists.txt
Normal file
@ -0,0 +1,171 @@
|
|||||||
|
# Copyright (C) 2012-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# 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, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
|
||||||
|
INCLUDE(UseQtExt)
|
||||||
|
|
||||||
|
# --- options ---
|
||||||
|
# additional include directories
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
${QT_INCLUDES}
|
||||||
|
${KERNEL_INCLUDE_DIRS}
|
||||||
|
${GUI_INCLUDE_DIRS}
|
||||||
|
${GEOM_INCLUDE_DIRS}
|
||||||
|
${OpenCASCADE_INCLUDE_DIR}
|
||||||
|
${SMESH_INCLUDE_DIRS}
|
||||||
|
${MEDCOUPLING_INCLUDE_DIRS}
|
||||||
|
${Boost_INCLUDE_DIRS}
|
||||||
|
${OMNIORB_INCLUDE_DIR}
|
||||||
|
${PROJECT_BINARY_DIR}/idl
|
||||||
|
)
|
||||||
|
|
||||||
|
#Avoid compilation warnings from netgen headers
|
||||||
|
INCLUDE_DIRECTORIES( SYSTEM ${NETGEN_INCLUDE_DIRS} ${NETGEN_ZLIB_INCLUDE_DIRS} )
|
||||||
|
|
||||||
|
# additional preprocessor / compiler flags
|
||||||
|
ADD_DEFINITIONS(
|
||||||
|
${QT_DEFINITIONS}
|
||||||
|
${OMNIORB_DEFINITIONS}
|
||||||
|
${OpenCASCADE_DEFINITIONS}
|
||||||
|
${BOOST_DEFINITIONS}
|
||||||
|
${NETGEN_DEFINITIONS}
|
||||||
|
)
|
||||||
|
|
||||||
|
# libraries to link to
|
||||||
|
SET(_link_LIBRARIES
|
||||||
|
${NETGEN_LIBRARIES}
|
||||||
|
${OpenCASCADE_FoundationClasses_LIBRARIES}
|
||||||
|
${OpenCASCADE_ModelingData_LIBRARIES}
|
||||||
|
${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
|
||||||
|
${OpenCASCADE_DataExchange_LIBRARIES}
|
||||||
|
${OpenCASCADE_Visualization_LIBRARIES}
|
||||||
|
${OpenCASCADE_ApplicationFramework_LIBRARIES}
|
||||||
|
${GEOM_GEOMbasic}
|
||||||
|
${SMESH_SMESHimpl}
|
||||||
|
${SMESH_SMESHEngine}
|
||||||
|
${SMESH_SMESHUtils}
|
||||||
|
${SMESH_StdMeshersEngine}
|
||||||
|
${SMESH_StdMeshers}
|
||||||
|
${SMESH_SMESHDS}
|
||||||
|
${SMESH_SMDS}
|
||||||
|
${SMESH_SMESHControls}
|
||||||
|
${KERNEL_SalomeGenericObj}
|
||||||
|
${KERNEL_SalomeNS}
|
||||||
|
${KERNEL_SALOMELocalTrace}
|
||||||
|
${KERNEL_OpUtil}
|
||||||
|
VTK::CommonCore
|
||||||
|
VTK::CommonDataModel
|
||||||
|
SalomeIDLNETGENPLUGIN
|
||||||
|
Qt5::Core
|
||||||
|
)
|
||||||
|
|
||||||
|
# --- headers ---
|
||||||
|
|
||||||
|
# header files
|
||||||
|
SET(NETGENEngine_HEADERS
|
||||||
|
NETGENPlugin_NETGEN_3D.hxx
|
||||||
|
NETGENPlugin_NETGEN_3D_i.hxx
|
||||||
|
NETGENPlugin_NETGEN_2D.hxx
|
||||||
|
NETGENPlugin_NETGEN_2D_i.hxx
|
||||||
|
NETGENPlugin_NETGEN_2D3D.hxx
|
||||||
|
NETGENPlugin_NETGEN_2D3D_i.hxx
|
||||||
|
NETGENPlugin_NETGEN_2D_ONLY.hxx
|
||||||
|
NETGENPlugin_NETGEN_2D_ONLY_i.hxx
|
||||||
|
NETGENPlugin_Hypothesis.hxx
|
||||||
|
NETGENPlugin_Hypothesis_i.hxx
|
||||||
|
NETGENPlugin_Hypothesis_2D.hxx
|
||||||
|
NETGENPlugin_Hypothesis_2D_i.hxx
|
||||||
|
NETGENPlugin_Hypothesis_3D_i.hxx
|
||||||
|
NETGENPlugin_Hypothesis_2D_ONLY_i.hxx
|
||||||
|
NETGENPlugin_SimpleHypothesis_2D.hxx
|
||||||
|
NETGENPlugin_SimpleHypothesis_3D.hxx
|
||||||
|
NETGENPlugin_SimpleHypothesis_2D_i.hxx
|
||||||
|
NETGENPlugin_SimpleHypothesis_3D_i.hxx
|
||||||
|
NETGENPlugin_Mesher.hxx
|
||||||
|
NETGENPlugin_Remesher_2D.hxx
|
||||||
|
NETGENPlugin_Defs.hxx
|
||||||
|
NETGENPlugin_DriverParam.hxx
|
||||||
|
NETGENPlugin_NETGEN_3D_SA.hxx
|
||||||
|
NETGENPlugin_NETGEN_2D_SA.hxx
|
||||||
|
NETGENPlugin_NETGEN_1D2D3D_SA.hxx
|
||||||
|
NETGENPlugin_NETGEN_3D_Remote.hxx
|
||||||
|
NETGENPlugin_NETGEN_3D_Remote_i.hxx
|
||||||
|
NETGENPlugin_NETGEN_2D_Remote.hxx
|
||||||
|
NETGENPlugin_NETGEN_2D_Remote_i.hxx
|
||||||
|
)
|
||||||
|
|
||||||
|
# --- sources ---
|
||||||
|
|
||||||
|
# sources / static
|
||||||
|
SET(NETGENEngine_SOURCES
|
||||||
|
NETGENPlugin_NETGEN_3D.cxx
|
||||||
|
NETGENPlugin_NETGEN_3D_i.cxx
|
||||||
|
NETGENPlugin_Mesher.cxx
|
||||||
|
NETGENPlugin_NETGEN_2D.cxx
|
||||||
|
NETGENPlugin_NETGEN_2D_i.cxx
|
||||||
|
NETGENPlugin_NETGEN_2D3D.cxx
|
||||||
|
NETGENPlugin_NETGEN_2D3D_i.cxx
|
||||||
|
NETGENPlugin_NETGEN_2D_ONLY.cxx
|
||||||
|
NETGENPlugin_NETGEN_2D_ONLY_i.cxx
|
||||||
|
NETGENPlugin_Hypothesis.cxx
|
||||||
|
NETGENPlugin_Hypothesis_i.cxx
|
||||||
|
NETGENPlugin_Hypothesis_2D.cxx
|
||||||
|
NETGENPlugin_Hypothesis_2D_i.cxx
|
||||||
|
NETGENPlugin_Hypothesis_3D_i.cxx
|
||||||
|
NETGENPlugin_Hypothesis_2D_ONLY_i.cxx
|
||||||
|
NETGENPlugin_SimpleHypothesis_2D.cxx
|
||||||
|
NETGENPlugin_SimpleHypothesis_3D.cxx
|
||||||
|
NETGENPlugin_SimpleHypothesis_2D_i.cxx
|
||||||
|
NETGENPlugin_SimpleHypothesis_3D_i.cxx
|
||||||
|
NETGENPlugin_Remesher_2D.cxx
|
||||||
|
NETGENPlugin_i.cxx
|
||||||
|
NETGENPlugin_DriverParam.cxx
|
||||||
|
NETGENPlugin_NETGEN_3D_SA.cxx
|
||||||
|
NETGENPlugin_NETGEN_2D_SA.cxx
|
||||||
|
NETGENPlugin_NETGEN_1D2D3D_SA.cxx
|
||||||
|
NETGENPlugin_NETGEN_3D_Remote.cxx
|
||||||
|
NETGENPlugin_NETGEN_3D_Remote_i.cxx
|
||||||
|
NETGENPlugin_NETGEN_2D_Remote.cxx
|
||||||
|
NETGENPlugin_NETGEN_2D_Remote_i.cxx
|
||||||
|
)
|
||||||
|
|
||||||
|
SET(NetgenRunner_SOURCES
|
||||||
|
NETGENPlugin_Runner_main.cxx
|
||||||
|
)
|
||||||
|
|
||||||
|
# --- scripts ---
|
||||||
|
|
||||||
|
# scripts / static
|
||||||
|
SET(_bin_SCRIPTS
|
||||||
|
__init__.py
|
||||||
|
NETGENPluginBuilder.py
|
||||||
|
)
|
||||||
|
|
||||||
|
# --- rules ---
|
||||||
|
|
||||||
|
ADD_LIBRARY(NETGENEngine ${NETGENEngine_SOURCES})
|
||||||
|
TARGET_LINK_LIBRARIES(NETGENEngine ${_link_LIBRARIES} )
|
||||||
|
INSTALL(TARGETS NETGENEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
|
||||||
|
|
||||||
|
ADD_EXECUTABLE(NETGENPlugin_Runner ${NetgenRunner_SOURCES})
|
||||||
|
TARGET_LINK_LIBRARIES(NETGENPlugin_Runner ${_link_LIBRARIES} NETGENEngine )
|
||||||
|
INSTALL(TARGETS NETGENPlugin_Runner EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
|
||||||
|
|
||||||
|
INSTALL(FILES ${NETGENEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
|
||||||
|
|
||||||
|
SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/NETGENPlugin)
|
@ -1,106 +0,0 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
# -* Makefile *-
|
|
||||||
# Author : Edward AGAPOV (OCC)
|
|
||||||
# Modified by : Alexander BORODIN (OCN) - autotools usage
|
|
||||||
# Module : NETGENPLUGIN
|
|
||||||
# Date : 10/01/2004
|
|
||||||
#
|
|
||||||
include $(top_srcdir)/adm_local/unix/make_common_starter.am
|
|
||||||
|
|
||||||
# header files
|
|
||||||
salomeinclude_HEADERS = \
|
|
||||||
NETGENPlugin_NETGEN_3D.hxx \
|
|
||||||
NETGENPlugin_NETGEN_3D_i.hxx \
|
|
||||||
NETGENPlugin_NETGEN_2D.hxx \
|
|
||||||
NETGENPlugin_NETGEN_2D_i.hxx \
|
|
||||||
NETGENPlugin_NETGEN_2D3D.hxx \
|
|
||||||
NETGENPlugin_NETGEN_2D3D_i.hxx \
|
|
||||||
NETGENPlugin_NETGEN_2D_ONLY.hxx \
|
|
||||||
NETGENPlugin_NETGEN_2D_ONLY_i.hxx \
|
|
||||||
NETGENPlugin_Hypothesis.hxx \
|
|
||||||
NETGENPlugin_Hypothesis_i.hxx \
|
|
||||||
NETGENPlugin_Hypothesis_2D.hxx \
|
|
||||||
NETGENPlugin_Hypothesis_2D_i.hxx \
|
|
||||||
NETGENPlugin_Hypothesis_3D_i.hxx \
|
|
||||||
NETGENPlugin_Hypothesis_2D_ONLY_i.hxx \
|
|
||||||
NETGENPlugin_SimpleHypothesis_2D.hxx \
|
|
||||||
NETGENPlugin_SimpleHypothesis_3D.hxx \
|
|
||||||
NETGENPlugin_SimpleHypothesis_2D_i.hxx \
|
|
||||||
NETGENPlugin_SimpleHypothesis_3D_i.hxx \
|
|
||||||
NETGENPlugin_Mesher.hxx \
|
|
||||||
NETGENPlugin_Defs.hxx
|
|
||||||
|
|
||||||
# Libraries targets
|
|
||||||
lib_LTLIBRARIES = libNETGENEngine.la
|
|
||||||
|
|
||||||
dist_libNETGENEngine_la_SOURCES = \
|
|
||||||
NETGENPlugin_NETGEN_3D.cxx \
|
|
||||||
NETGENPlugin_NETGEN_3D_i.cxx \
|
|
||||||
NETGENPlugin_NETGEN_2D.cxx \
|
|
||||||
NETGENPlugin_NETGEN_2D_i.cxx \
|
|
||||||
NETGENPlugin_NETGEN_2D3D.cxx \
|
|
||||||
NETGENPlugin_NETGEN_2D3D_i.cxx \
|
|
||||||
NETGENPlugin_NETGEN_2D_ONLY.cxx \
|
|
||||||
NETGENPlugin_NETGEN_2D_ONLY_i.cxx \
|
|
||||||
NETGENPlugin_Hypothesis.cxx \
|
|
||||||
NETGENPlugin_Hypothesis_i.cxx \
|
|
||||||
NETGENPlugin_Hypothesis_2D.cxx \
|
|
||||||
NETGENPlugin_Hypothesis_2D_i.cxx \
|
|
||||||
NETGENPlugin_Hypothesis_3D_i.cxx \
|
|
||||||
NETGENPlugin_Hypothesis_2D_ONLY_i.cxx \
|
|
||||||
NETGENPlugin_Mesher.cxx \
|
|
||||||
NETGENPlugin_SimpleHypothesis_2D.cxx \
|
|
||||||
NETGENPlugin_SimpleHypothesis_3D.cxx \
|
|
||||||
NETGENPlugin_SimpleHypothesis_2D_i.cxx \
|
|
||||||
NETGENPlugin_SimpleHypothesis_3D_i.cxx \
|
|
||||||
NETGENPlugin_i.cxx
|
|
||||||
|
|
||||||
libNETGENEngine_la_CPPFLAGS = \
|
|
||||||
$(KERNEL_CXXFLAGS) \
|
|
||||||
$(GUI_CXXFLAGS) \
|
|
||||||
$(MED_CXXFLAGS) \
|
|
||||||
$(GEOM_CXXFLAGS) \
|
|
||||||
$(CAS_CPPFLAGS) \
|
|
||||||
$(VTK_INCLUDES) \
|
|
||||||
$(NETGEN_INCLUDES) \
|
|
||||||
$(SMESH_CXXFLAGS) \
|
|
||||||
$(CORBA_CXXFLAGS) \
|
|
||||||
$(CORBA_INCLUDES) \
|
|
||||||
$(BOOST_CPPFLAGS) \
|
|
||||||
-I$(top_builddir)/idl
|
|
||||||
|
|
||||||
if ! NETGEN_NEW
|
|
||||||
libNETGENEngine_la_LDFLAGS = ../NETGEN/libNETGEN.la
|
|
||||||
else
|
|
||||||
libNETGENEngine_la_LDFLAGS = $(NETGEN_LIBS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
libNETGENEngine_la_LDFLAGS += \
|
|
||||||
../../idl/libSalomeIDLNETGENPLUGIN.la \
|
|
||||||
$(CAS_LDPATH) -lTKernel -lTKBRep -lTKShHealing -lTKSTEP -lTKXSBase -lTKIGES -lTKMesh -lTKSTL -lTKG3d -lTKTopAlgo -lTKG2d -lTKBool -lTKGeomAlgo -lTKOffset -lTKGeomBase -lTKBO \
|
|
||||||
-lTKMath -lTKFillet -lTKMeshVS -lTKPrim -lTKSTEPBase -lTKSTEPAttr -lTKSTEP209 -lTKXDESTEP -lTKXDEIGES -lTKXCAF -lTKLCAF -lFWOSPlugin \
|
|
||||||
$(GEOM_LDFLAGS) -lGEOMbasic \
|
|
||||||
$(MED_LDFLAGS) -lSalomeIDLMED \
|
|
||||||
$(SMESH_LDFLAGS) -lSMESHimpl -lSMESHEngine -lSMESHUtils -lStdMeshersEngine -lStdMeshers -lSMESHDS -lSMDS -lSMESHControls \
|
|
||||||
$(KERNEL_LDFLAGS) -lSalomeGenericObj -lSalomeNS -lSALOMELocalTrace -lOpUtil
|
|
||||||
|
|
||||||
# Scripts to be installed.
|
|
||||||
dist_salomescript_DATA= NETGENPluginDC.py
|
|
@ -1,9 +1,9 @@
|
|||||||
# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
# 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.
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This library is distributed in the hope that it will be useful,
|
# This library is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -18,11 +18,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
##
|
##
|
||||||
# @package NETGENPluginDC
|
# @package NETGENPluginBuilder
|
||||||
# Python API for the NETGEN meshing plug-in module.
|
# Python API for the NETGEN meshing plug-in module.
|
||||||
|
|
||||||
from smesh_algorithm import Mesh_Algorithm
|
from salome.smesh.smesh_algorithm import Mesh_Algorithm
|
||||||
from smesh import AssureGeomPublished, ParseParameters, IsEqual
|
from salome.smesh.smeshBuilder import AssureGeomPublished, ParseParameters, IsEqual
|
||||||
|
|
||||||
# import NETGENPlugin module if possible
|
# import NETGENPlugin module if possible
|
||||||
noNETGENPlugin = 0
|
noNETGENPlugin = 0
|
||||||
@ -32,18 +32,24 @@ except ImportError:
|
|||||||
noNETGENPlugin = 1
|
noNETGENPlugin = 1
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
LIBRARY = "libNETGENEngine.so"
|
||||||
|
|
||||||
|
NETGEN_VERSION_MAJOR = NETGENPlugin.NETGEN_VERSION_MAJOR
|
||||||
|
|
||||||
#----------------------------
|
#----------------------------
|
||||||
# Mesh algo type identifiers
|
# Mesh algo type identifiers
|
||||||
#----------------------------
|
#----------------------------
|
||||||
|
|
||||||
## Algorithm type: Netgen tetrahedron 3D algorithm, see NETGEN_3D_Algorithm
|
## Algorithm type: Netgen tetrahedron 3D algorithm, see NETGEN_3D_Algorithm
|
||||||
NETGEN_3D = "NETGEN_3D"
|
NETGEN_3D = "NETGEN_3D"
|
||||||
|
NETGEN_3D_Remote = "NETGEN_3D_Remote"
|
||||||
## Algorithm type: Netgen tetrahedron 1D-2D-3D algorithm, see NETGEN_1D2D3D_Algorithm
|
## Algorithm type: Netgen tetrahedron 1D-2D-3D algorithm, see NETGEN_1D2D3D_Algorithm
|
||||||
NETGEN_1D2D3D = "NETGEN_2D3D"
|
NETGEN_1D2D3D = "NETGEN_2D3D"
|
||||||
## Algorithm type: Netgen triangle 1D-2D algorithm, see NETGEN_1D2D_Algorithm
|
## Algorithm type: Netgen triangle 1D-2D algorithm, see NETGEN_1D2D_Algorithm
|
||||||
NETGEN_1D2D = "NETGEN_2D"
|
NETGEN_1D2D = "NETGEN_2D"
|
||||||
## Algorithm type: Netgen triangle 2D algorithm, see NETGEN_2D_Only_Algorithm
|
## Algorithm type: Netgen triangle 2D algorithm, see NETGEN_2D_Only_Algorithm
|
||||||
NETGEN_2D = "NETGEN_2D_ONLY"
|
NETGEN_2D = "NETGEN_2D_ONLY"
|
||||||
|
NETGEN_2D_Remote = "NETGEN_2D_Remote"
|
||||||
## Algorithm type: Synonim of NETGEN_1D2D3D, see NETGEN_1D2D3D_Algorithm
|
## Algorithm type: Synonim of NETGEN_1D2D3D, see NETGEN_1D2D3D_Algorithm
|
||||||
NETGEN_FULL = NETGEN_1D2D3D
|
NETGEN_FULL = NETGEN_1D2D3D
|
||||||
## Algorithm type: Synonim of NETGEN_3D, see NETGEN_3D_Algorithm
|
## Algorithm type: Synonim of NETGEN_3D, see NETGEN_3D_Algorithm
|
||||||
@ -103,8 +109,12 @@ class NETGEN_Algorithm(Mesh_Algorithm):
|
|||||||
# if it is @c 0 (default), the algorithm is assigned to the main shape
|
# if it is @c 0 (default), the algorithm is assigned to the main shape
|
||||||
def __init__(self, mesh, geom=0):
|
def __init__(self, mesh, geom=0):
|
||||||
Mesh_Algorithm.__init__(self)
|
Mesh_Algorithm.__init__(self)
|
||||||
if noNETGENPlugin: print "Warning: NETGENPlugin module unavailable"
|
if noNETGENPlugin: print("Warning: NETGENPlugin module unavailable")
|
||||||
self.Create(mesh, geom, self.algoType, "libNETGENEngine.so")
|
if not mesh.GetMesh().HasShapeToMesh() and \
|
||||||
|
self.meshMethod == "Triangle": # create a 2D remesher
|
||||||
|
self.Create(mesh, geom, "NETGEN_Remesher_2D", LIBRARY)
|
||||||
|
else:
|
||||||
|
self.Create(mesh, geom, self.algoType, LIBRARY)
|
||||||
self.params = None
|
self.params = None
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -139,6 +149,12 @@ class NETGEN_Algorithm(Mesh_Algorithm):
|
|||||||
if self.Parameters(): self.params.SetGrowthRate(theRate)
|
if self.Parameters(): self.params.SetGrowthRate(theRate)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
## Sets @c NbThreads parameter
|
||||||
|
# @param theRate new value of the @c NbThreads parameter
|
||||||
|
def SetNbThreads(self, theNumber):
|
||||||
|
if self.Parameters(): self.params.SetNbThreads(theNumber)
|
||||||
|
pass
|
||||||
|
|
||||||
## Creates meshing hypothesis according to the chosen algorithm type
|
## Creates meshing hypothesis according to the chosen algorithm type
|
||||||
# and initializes it with default parameters
|
# and initializes it with default parameters
|
||||||
# @param which hypothesis type; can be either @ref SOLE (default) or @ref SIMPLE
|
# @param which hypothesis type; can be either @ref SOLE (default) or @ref SIMPLE
|
||||||
@ -154,33 +170,50 @@ class NETGEN_Algorithm(Mesh_Algorithm):
|
|||||||
hypType = "NETGEN_SimpleParameters_3D"
|
hypType = "NETGEN_SimpleParameters_3D"
|
||||||
else:
|
else:
|
||||||
hypType = "NETGEN_Parameters"
|
hypType = "NETGEN_Parameters"
|
||||||
elif self.algoType == NETGEN_2D:
|
elif self.algoType in [NETGEN_2D, NETGEN_2D_Remote]:
|
||||||
hypType = "NETGEN_Parameters_2D_ONLY"
|
hypType = "NETGEN_Parameters_2D_ONLY"
|
||||||
else:
|
else:
|
||||||
hypType = "NETGEN_Parameters_3D"
|
hypType = "NETGEN_Parameters_3D"
|
||||||
|
|
||||||
|
if self.algo.GetName() == "NETGEN_Remesher_2D":
|
||||||
|
hypType = "NETGEN_RemesherParameters_2D"
|
||||||
|
|
||||||
if self.params and self.params.GetName() != hypType:
|
if self.params and self.params.GetName() != hypType:
|
||||||
self.mesh.RemoveHypothesis( self.params, self.geom )
|
self.mesh.RemoveHypothesis( self.params, self.geom )
|
||||||
self.params = None
|
self.params = None
|
||||||
if not self.params:
|
if not self.params:
|
||||||
self.params = self.Hypothesis(hypType, [],"libNETGENEngine.so",UseExisting=0)
|
self.params = self.Hypothesis(hypType, [], LIBRARY, UseExisting=0)
|
||||||
|
|
||||||
return self.params
|
return self.params
|
||||||
|
|
||||||
|
## Defines a file specifying size of elements at points and lines
|
||||||
|
# @param file name of the file
|
||||||
|
def SetMeshSizeFile(self, file):
|
||||||
|
self.Parameters().SetMeshSizeFile(file)
|
||||||
|
pass
|
||||||
|
|
||||||
|
## Set size of elements on a shape
|
||||||
|
# @param shape - geometry
|
||||||
|
# @param size - element size
|
||||||
|
def SetLocalSizeOnShape(self, shape, size ):
|
||||||
|
self.Parameters().SetLocalSizeOnShape(shape, size)
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
pass # end of NETGEN_Algorithm class
|
pass # end of NETGEN_Algorithm class
|
||||||
|
|
||||||
|
|
||||||
## Tetrahedron 1D-2D-3D algorithm.
|
## Tetrahedron 1D-2D-3D algorithm.
|
||||||
#
|
#
|
||||||
# It can be created by calling smesh.Mesh.Tetrahedron( smesh.NETGEN_1D2D3D, geom=0 ).
|
# It can be created by calling smeshBuilder.Mesh.Tetrahedron( smeshBuilder.NETGEN_1D2D3D, geom=0 ).
|
||||||
# This algorithm generates all 1D (edges), 2D (faces) and 3D (volumes) elements
|
# This algorithm generates all 1D (edges), 2D (faces) and 3D (volumes) elements
|
||||||
# for given geometrical shape.
|
# for given geometrical shape.
|
||||||
class NETGEN_1D2D3D_Algorithm(NETGEN_Algorithm):
|
class NETGEN_1D2D3D_Algorithm(NETGEN_Algorithm):
|
||||||
|
|
||||||
## name of the dynamic method in smesh.Mesh class
|
## name of the dynamic method in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
meshMethod = "Tetrahedron"
|
meshMethod = "Tetrahedron"
|
||||||
## type of algorithm used with helper function in smesh.Mesh class
|
## type of algorithm used with helper function in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
algoType = NETGEN_1D2D3D
|
algoType = NETGEN_1D2D3D
|
||||||
## doc string of the method
|
## doc string of the method
|
||||||
@ -213,11 +246,36 @@ class NETGEN_1D2D3D_Algorithm(NETGEN_Algorithm):
|
|||||||
if self.Parameters(): self.params.SetNbSegPerRadius(theVal)
|
if self.Parameters(): self.params.SetNbSegPerRadius(theVal)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
## Sets @c ChordalError parameter
|
||||||
|
# @param theVal new value of the @c ChordalError parameter
|
||||||
|
def SetChordalError(self, theVal):
|
||||||
|
if self.Parameters():
|
||||||
|
self.params.SetChordalError(theVal)
|
||||||
|
self.params.SetChordalErrorEnabled( theVal > 0 )
|
||||||
|
pass
|
||||||
|
|
||||||
|
## Sets @c RidgeAngle parameter
|
||||||
|
# @param theVal new value of the @c RidgeAngle parameter
|
||||||
|
def SetRidgeAngle(self, theVal):
|
||||||
|
if self.Parameters():
|
||||||
|
self.params.SetRidgeAngle(theVal)
|
||||||
|
pass
|
||||||
|
|
||||||
## Sets @c QuadAllowed flag
|
## Sets @c QuadAllowed flag
|
||||||
# @param toAllow new value of the @c QuadAllowed parameter (@c True by default)
|
# @param toAllow new value of the @c QuadAllowed parameter (@c True by default)
|
||||||
def SetQuadAllowed(self, toAllow=True):
|
def SetQuadAllowed(self, toAllow=True):
|
||||||
if self.Parameters(): self.params.SetQuadAllowed(toAllow)
|
if self.Parameters(): self.params.SetQuadAllowed(toAllow)
|
||||||
pass
|
pass
|
||||||
|
## Sets @c UseSurfaceCurvature flag
|
||||||
|
# @param toUse new value of the @c UseSurfaceCurvature parameter (@c True by default)
|
||||||
|
def SetUseSurfaceCurvature(self, toUse=True):
|
||||||
|
if self.Parameters(): self.params.SetUseSurfaceCurvature(toUse)
|
||||||
|
pass
|
||||||
|
## Sets @c FuseEdges flag
|
||||||
|
# @param toFuse new value of the @c FuseEdges parameter (@c False by default)
|
||||||
|
def SetFuseEdges(self, toFuse=False):
|
||||||
|
if self.Parameters(): self.params.SetFuseEdges(toFuse)
|
||||||
|
pass
|
||||||
|
|
||||||
## Sets number of segments overriding the value set by SetLocalLength()
|
## Sets number of segments overriding the value set by SetLocalLength()
|
||||||
# @param theVal new value of number of segments parameter
|
# @param theVal new value of number of segments parameter
|
||||||
@ -262,22 +320,23 @@ class NETGEN_1D2D3D_Algorithm(NETGEN_Algorithm):
|
|||||||
|
|
||||||
## Triangle NETGEN 1D-2D algorithm.
|
## Triangle NETGEN 1D-2D algorithm.
|
||||||
#
|
#
|
||||||
# It can be created by calling smesh.Mesh.Triangle( smesh.NETGEN_1D2D, geom=0 )
|
# It can be created by calling smeshBuilder.Mesh.Triangle( smeshBuilder.NETGEN_1D2D, geom=0 )
|
||||||
#
|
#
|
||||||
# This algorithm generates 1D (edges) and 2D (faces) elements
|
# This algorithm generates 1D (edges) and 2D (faces) elements
|
||||||
# for given geometrical shape.
|
# for given geometrical shape.
|
||||||
class NETGEN_1D2D_Algorithm(NETGEN_1D2D3D_Algorithm):
|
class NETGEN_1D2D_Algorithm(NETGEN_1D2D3D_Algorithm):
|
||||||
|
|
||||||
## name of the dynamic method in smesh.Mesh class
|
## name of the dynamic method in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
meshMethod = "Triangle"
|
meshMethod = "Triangle"
|
||||||
## type of algorithm used with helper function in smesh.Mesh class
|
## type of algorithm used with helper function in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
algoType = NETGEN_1D2D
|
algoType = NETGEN_1D2D
|
||||||
## doc string of the method
|
## doc string of the method
|
||||||
# @internal
|
# @internal
|
||||||
docHelper = "Creates triangle 2D algorithm for faces"
|
docHelper = "Creates triangle 2D algorithm for faces"
|
||||||
|
|
||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
# @param mesh parent mesh object algorithm is assigned to
|
# @param mesh parent mesh object algorithm is assigned to
|
||||||
# @param geom geometry (shape/sub-shape) algorithm is assigned to;
|
# @param geom geometry (shape/sub-shape) algorithm is assigned to;
|
||||||
@ -291,23 +350,28 @@ class NETGEN_1D2D_Algorithm(NETGEN_1D2D3D_Algorithm):
|
|||||||
|
|
||||||
## Triangle NETGEN 2D algorithm
|
## Triangle NETGEN 2D algorithm
|
||||||
#
|
#
|
||||||
# It can be created by calling smesh.Mesh.Triangle( smesh.NETGEN_2D, geom=0 )
|
# It can be created by calling smeshBuilder.Mesh.Triangle( smeshBuilder.NETGEN_2D, geom=0 )
|
||||||
#
|
#
|
||||||
# This algorithm generates only 2D (faces) elements for given geometrical shape
|
# This algorithm generates only 2D (faces) elements for given geometrical shape
|
||||||
# and, in contrast to NETGEN_1D2D_Algorithm class, should be used in conjunction
|
# and, in contrast to NETGEN_1D2D_Algorithm class, should be used in conjunction
|
||||||
# with other 1D meshing algorithm.
|
# with other 1D meshing algorithm.
|
||||||
class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm):
|
class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm):
|
||||||
|
|
||||||
## name of the dynamic method in smesh.Mesh class
|
## name of the dynamic method in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
meshMethod = "Triangle"
|
meshMethod = "Triangle"
|
||||||
## type of algorithm used with helper function in smesh.Mesh class
|
## type of algorithm used with helper function in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
algoType = NETGEN_2D
|
algoType = NETGEN_2D
|
||||||
|
## flag pointing whether this algorithm should be used by default in dynamic method
|
||||||
|
# of smeshBuilder.Mesh class
|
||||||
|
isDefault = True
|
||||||
## doc string of the method
|
## doc string of the method
|
||||||
# @internal
|
# @internal
|
||||||
docHelper = "Creates triangle 2D algorithm for faces"
|
docHelper = "Creates triangle 2D algorithm for faces"
|
||||||
|
|
||||||
|
isDefault = True
|
||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
# @param mesh parent mesh object algorithm is assigned to
|
# @param mesh parent mesh object algorithm is assigned to
|
||||||
# @param geom geometry (shape/sub-shape) algorithm is assigned to;
|
# @param geom geometry (shape/sub-shape) algorithm is assigned to;
|
||||||
@ -336,6 +400,12 @@ class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm):
|
|||||||
hyp = self.Hypothesis("LengthFromEdges", UseExisting=1, CompareMethod=self.CompareEqualHyp)
|
hyp = self.Hypothesis("LengthFromEdges", UseExisting=1, CompareMethod=self.CompareEqualHyp)
|
||||||
return hyp
|
return hyp
|
||||||
|
|
||||||
|
## Sets @c UseSurfaceCurvature flag
|
||||||
|
# @param toUse new value of the @c UseSurfaceCurvature parameter (@c True by default)
|
||||||
|
def SetUseSurfaceCurvature(self, toUse=True):
|
||||||
|
if self.Parameters(): self.params.SetUseSurfaceCurvature(toUse)
|
||||||
|
pass
|
||||||
|
|
||||||
## Sets @c QuadAllowed flag.
|
## Sets @c QuadAllowed flag.
|
||||||
# @param toAllow new value of the @c QuadAllowed parameter (@c True by default)
|
# @param toAllow new value of the @c QuadAllowed parameter (@c True by default)
|
||||||
# @return hypothesis object
|
# @return hypothesis object
|
||||||
@ -368,21 +438,21 @@ class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm):
|
|||||||
|
|
||||||
## Tetrahedron 3D algorithm
|
## Tetrahedron 3D algorithm
|
||||||
#
|
#
|
||||||
# It can be created by calling smesh.Mesh.Tetrahedron() or smesh.Mesh.Tetrahedron( smesh.NETGEN, geom=0 )
|
# It can be created by calling smeshBuilder.Mesh.Tetrahedron() or smeshBuilder.Mesh.Tetrahedron( smeshBuilder.NETGEN, geom=0 )
|
||||||
#
|
#
|
||||||
# This algorithm generates only 3D (volumes) elements for given geometrical shape
|
# This algorithm generates only 3D (volumes) elements for given geometrical shape
|
||||||
# and, in contrast to NETGEN_1D2D3D_Algorithm class, should be used in conjunction
|
# and, in contrast to NETGEN_1D2D3D_Algorithm class, should be used in conjunction
|
||||||
# with other 1D and 2D meshing algorithms.
|
# with other 1D and 2D meshing algorithms.
|
||||||
class NETGEN_3D_Algorithm(NETGEN_Algorithm):
|
class NETGEN_3D_Algorithm(NETGEN_Algorithm):
|
||||||
|
|
||||||
## name of the dynamic method in smesh.Mesh class
|
## name of the dynamic method in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
meshMethod = "Tetrahedron"
|
meshMethod = "Tetrahedron"
|
||||||
## type of algorithm used with helper function in smesh.Mesh class
|
## type of algorithm used with helper function in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
algoType = NETGEN
|
algoType = NETGEN
|
||||||
## flag pointing either this algorithm should be used by default in dynamic method
|
## flag pointing either this algorithm should be used by default in dynamic method
|
||||||
# of smesh.Mesh class
|
# of smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
isDefault = True
|
isDefault = True
|
||||||
## doc string of the method
|
## doc string of the method
|
||||||
@ -411,18 +481,76 @@ class NETGEN_3D_Algorithm(NETGEN_Algorithm):
|
|||||||
|
|
||||||
pass # end of NETGEN_3D_Algorithm class
|
pass # end of NETGEN_3D_Algorithm class
|
||||||
|
|
||||||
|
## Tetrahedron 3D algorithm
|
||||||
|
#
|
||||||
|
# It can be created by calling smeshBuilder.Mesh.Tetrahedron() or smeshBuilder.Mesh.Tetrahedron( smeshBuilder.NETGEN, geom=0 )
|
||||||
|
#
|
||||||
|
# This algorithm generates only 3D (volumes) elements for given geometrical shape
|
||||||
|
# and, in contrast to NETGEN_1D2D3D_Algorithm class, should be used in conjunction
|
||||||
|
# with other 1D and 2D meshing algorithms.
|
||||||
|
class NETGEN_3D_Remote_Algorithm(NETGEN_3D_Algorithm):
|
||||||
|
|
||||||
|
## type of algorithm used with helper function in smeshBuilder.Mesh class
|
||||||
|
# @internal
|
||||||
|
algoType = NETGEN_3D_Remote
|
||||||
|
## flag pointing either this algorithm should be used by default in dynamic method
|
||||||
|
# of smeshBuilder.Mesh class
|
||||||
|
# @internal
|
||||||
|
isDefault = False
|
||||||
|
## doc string of the method
|
||||||
|
# @internal
|
||||||
|
docHelper = "Remotely Creates tetrahedron 3D algorithm for solids"
|
||||||
|
|
||||||
|
## Private constructor.
|
||||||
|
# @param mesh parent mesh object algorithm is assigned to
|
||||||
|
# @param geom geometry (shape/sub-shape) algorithm is assigned to;
|
||||||
|
# if it is @c 0 (default), the algorithm is assigned to the main shape
|
||||||
|
def __init__(self, mesh, geom=0):
|
||||||
|
NETGEN_3D_Algorithm.__init__(self, mesh, geom)
|
||||||
|
pass
|
||||||
|
|
||||||
|
pass # end of NETGEN_3D_Remote_Algorithm class
|
||||||
|
|
||||||
|
## Tetrahedron 2D algorithm
|
||||||
|
#
|
||||||
|
# It can be created by calling smeshBuilder.Mesh.Triangle() or smeshBuilder.Mesh.Triangle( smeshBuilder.NETGEN, geom=0 )
|
||||||
|
#
|
||||||
|
class NETGEN_2D_Remote_Algorithm(NETGEN_2D_Only_Algorithm):
|
||||||
|
|
||||||
|
## type of algorithm used with helper function in smeshBuilder.Mesh class
|
||||||
|
# @internal
|
||||||
|
algoType = NETGEN_2D_Remote
|
||||||
|
## flag pointing either this algorithm should be used by default in dynamic method
|
||||||
|
# of smeshBuilder.Mesh class
|
||||||
|
# @internal
|
||||||
|
isDefault = False
|
||||||
|
## doc string of the method
|
||||||
|
# @internal
|
||||||
|
docHelper = "Remotely Creates triangles in face of solids"
|
||||||
|
|
||||||
|
## Private constructor.
|
||||||
|
# @param mesh parent mesh object algorithm is assigned to
|
||||||
|
# @param geom geometry (shape/sub-shape) algorithm is assigned to;
|
||||||
|
# if it is @c 0 (default), the algorithm is assigned to the main shape
|
||||||
|
def __init__(self, mesh, geom=0):
|
||||||
|
self.algoType = NETGEN_2D_Remote
|
||||||
|
NETGEN_2D_Only_Algorithm.__init__(self, mesh, geom)
|
||||||
|
pass
|
||||||
|
|
||||||
|
pass # end of NETGEN_2D_Remote_Algorithm class
|
||||||
|
|
||||||
|
|
||||||
## Triangle (helper) 1D-2D algorithm
|
## Triangle (helper) 1D-2D algorithm
|
||||||
#
|
#
|
||||||
# This is the helper class that is used just to allow creating of create NETGEN_1D2D algorithm
|
# This is the helper class that is used just to allow creating of create NETGEN_1D2D algorithm
|
||||||
# by calling smesh.Mesh.Triangle( smesh.NETGEN, geom=0 ); this is required for backward compatibility
|
# by calling smeshBuilder.Mesh.Triangle( smeshBuilder.NETGEN, geom=0 ); this is required for backward compatibility
|
||||||
# with old Python scripts.
|
# with old Python scripts.
|
||||||
#
|
#
|
||||||
# @note This class (and corresponding smesh.Mesh function) is obsolete;
|
# @note This class (and corresponding smeshBuilder.Mesh function) is obsolete;
|
||||||
# use smesh.Mesh.Triangle( smesh.NETGEN_1D2D, geom=0 ) instead.
|
# use smeshBuilder.Mesh.Triangle( smeshBuilder.NETGEN_1D2D, geom=0 ) instead.
|
||||||
class NETGEN_1D2D_Algorithm_2(NETGEN_1D2D_Algorithm):
|
class NETGEN_1D2D_Algorithm_2(NETGEN_1D2D_Algorithm):
|
||||||
|
|
||||||
## name of the dynamic method in smesh.Mesh class
|
## name of the dynamic method in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
algoType = NETGEN
|
algoType = NETGEN
|
||||||
|
|
||||||
@ -441,13 +569,13 @@ class NETGEN_1D2D_Algorithm_2(NETGEN_1D2D_Algorithm):
|
|||||||
## Tetrahedron (helper) 1D-2D-3D algorithm.
|
## Tetrahedron (helper) 1D-2D-3D algorithm.
|
||||||
#
|
#
|
||||||
# This is the helper class that is used just to allow creating of create NETGEN_1D2D3D
|
# This is the helper class that is used just to allow creating of create NETGEN_1D2D3D
|
||||||
# by calling smesh.Mesh.Netgen(); this is required for backward compatibility with old Python scripts.
|
# by calling smeshBuilder.Mesh.Netgen(); this is required for backward compatibility with old Python scripts.
|
||||||
#
|
#
|
||||||
# @note This class (and corresponding smesh.Mesh function) is obsolete;
|
# @note This class (and corresponding smeshBuilder.Mesh function) is obsolete;
|
||||||
# use smesh.Mesh.Tetrahedron( smesh.NETGEN_1D2D3D, geom=0 ) instead.
|
# use smeshBuilder.Mesh.Tetrahedron( smeshBuilder.NETGEN_1D2D3D, geom=0 ) instead.
|
||||||
class NETGEN_1D2D3D_Algorithm_2(NETGEN_1D2D3D_Algorithm):
|
class NETGEN_1D2D3D_Algorithm_2(NETGEN_1D2D3D_Algorithm):
|
||||||
|
|
||||||
## name of the dynamic method in smesh.Mesh class
|
## name of the dynamic method in smeshBuilder.Mesh class
|
||||||
# @internal
|
# @internal
|
||||||
meshMethod = "Netgen"
|
meshMethod = "Netgen"
|
||||||
## doc string of the method
|
## doc string of the method
|
15
src/NETGENPlugin/NETGENPlugin_Defs.hxx
Executable file → Normal file
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -28,13 +28,24 @@
|
|||||||
#define _NETGENPlugin_DEFS_HXX_
|
#define _NETGENPlugin_DEFS_HXX_
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|
||||||
#if defined NETGENPLUGIN_EXPORTS || defined NETGENEngine_EXPORTS
|
#if defined NETGENPLUGIN_EXPORTS || defined NETGENEngine_EXPORTS
|
||||||
#define NETGENPLUGIN_EXPORT __declspec( dllexport )
|
#define NETGENPLUGIN_EXPORT __declspec( dllexport )
|
||||||
#else
|
#else
|
||||||
#define NETGENPLUGIN_EXPORT __declspec( dllimport )
|
#define NETGENPLUGIN_EXPORT __declspec( dllimport )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(NETGEN_V5) || defined(NETGEN_V6)
|
||||||
|
#define NETGENPLUGIN_DLL_HEADER DLL_HEADER
|
||||||
|
#else
|
||||||
|
#define NETGENPLUGIN_DLL_HEADER
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define NETGENPLUGIN_EXPORT
|
#define NETGENPLUGIN_EXPORT
|
||||||
|
#define NETGENPLUGIN_DLL_HEADER
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
225
src/NETGENPlugin/NETGENPlugin_DriverParam.cxx
Normal file
@ -0,0 +1,225 @@
|
|||||||
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
//
|
||||||
|
// Copyright (C) 2003-2007 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, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 : NETGENPlugin_DriverParam.hxx
|
||||||
|
// Author : Yoann AUDOUIN, EDF
|
||||||
|
// Module : NETGEN
|
||||||
|
//
|
||||||
|
#include "NETGENPlugin_DriverParam.hxx"
|
||||||
|
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
#include <string>
|
||||||
|
#include <cassert>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Print content of a netgen_params
|
||||||
|
*
|
||||||
|
* @param aParams The object to display
|
||||||
|
*/
|
||||||
|
void printNetgenParams(netgen_params& aParams){
|
||||||
|
if ( aParams.myType == Hypo )
|
||||||
|
{
|
||||||
|
std::cout << "has_netgen_param: " << aParams.has_netgen_param << std::endl;
|
||||||
|
std::cout << "maxh: " << aParams.maxh << std::endl;
|
||||||
|
std::cout << "minh: " << aParams.minh << std::endl;
|
||||||
|
std::cout << "segmentsperedge: " << aParams.segmentsperedge << std::endl;
|
||||||
|
std::cout << "grading: " << aParams.grading << std::endl;
|
||||||
|
std::cout << "curvaturesafety: " << aParams.curvaturesafety << std::endl;
|
||||||
|
std::cout << "secondorder: " << aParams.secondorder << std::endl;
|
||||||
|
std::cout << "quad: " << aParams.quad << std::endl;
|
||||||
|
std::cout << "optimize: " << aParams.optimize << std::endl;
|
||||||
|
std::cout << "fineness: " << aParams.fineness << std::endl;
|
||||||
|
std::cout << "uselocalh: " << aParams.uselocalh << std::endl;
|
||||||
|
std::cout << "merge_solids: " << aParams.merge_solids << std::endl;
|
||||||
|
std::cout << "chordalError: " << aParams.chordalError << std::endl;
|
||||||
|
std::cout << "optsteps2d: " << aParams.optsteps2d << std::endl;
|
||||||
|
std::cout << "optsteps3d: " << aParams.optsteps3d << std::endl;
|
||||||
|
std::cout << "elsizeweight: " << aParams.elsizeweight << std::endl;
|
||||||
|
std::cout << "opterrpow: " << aParams.opterrpow << std::endl;
|
||||||
|
std::cout << "delaunay: " << aParams.delaunay << std::endl;
|
||||||
|
std::cout << "checkoverlap: " << aParams.checkoverlap << std::endl;
|
||||||
|
std::cout << "checkchartboundary: " << aParams.checkchartboundary << std::endl;
|
||||||
|
std::cout << "closeedgefac: " << aParams.closeedgefac << std::endl;
|
||||||
|
std::cout << "nbThreadMesher: " << aParams.nbThreads << std::endl;
|
||||||
|
std::cout << "has_local_size: " << aParams.has_local_size << std::endl;
|
||||||
|
std::cout << "meshsizefilename: " << aParams.meshsizefilename << std::endl;
|
||||||
|
std::cout << "has_maxelementvolume_hyp: " << aParams.has_maxelementvolume_hyp << std::endl;
|
||||||
|
std::cout << "maxElementVolume: " << aParams.maxElementVolume << std::endl;
|
||||||
|
std::cout << "has_LengthFromEdges_hyp: " << aParams.has_LengthFromEdges_hyp << std::endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void importDefaultNetgenParams(const std::string param_file, netgen_params& aParams)
|
||||||
|
{
|
||||||
|
std::ifstream myfile(param_file);
|
||||||
|
std::string line;
|
||||||
|
// set the default type!
|
||||||
|
aParams.myType = Hypo;
|
||||||
|
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.has_netgen_param = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.maxh = std::stod(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.minh = std::stod(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.segmentsperedge = std::stod(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.grading = std::stod(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.curvaturesafety = std::stod(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.secondorder = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.quad = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.optimize = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.fineness = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.uselocalh = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.merge_solids = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.chordalError = std::stod(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.optsteps2d = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.optsteps3d = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.elsizeweight = std::stod(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.opterrpow = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.delaunay = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.checkoverlap = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.checkchartboundary = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.closeedgefac = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.nbThreads = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.has_local_size = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.meshsizefilename = line;
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.has_maxelementvolume_hyp = std::stoi(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.maxElementVolume = std::stod(line);
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.maxElementVolume = std::stoi(line);
|
||||||
|
myfile.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
void importSimple2D3DNetgenParams(const std::string param_file, netgen_params& aParams, bool is3D )
|
||||||
|
{
|
||||||
|
std::ifstream myfile(param_file);
|
||||||
|
std::string line;
|
||||||
|
|
||||||
|
aParams.myType = !is3D ? Simple2D : Simple3D;
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.has_netgen_param = std::stoi(line); // 1
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.numberOfSegments = std::stoi(line); // segments (int)
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.localLength = std::stod(line); // localLenght (double)
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.maxElementArea = std::stod(line); // max area (double)
|
||||||
|
if ( is3D )
|
||||||
|
{
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.maxElementVol = std::stod(line); // max volume (double)
|
||||||
|
}
|
||||||
|
std::getline(myfile, line);
|
||||||
|
aParams.allowQuadrangles = std::stoi(line); // int
|
||||||
|
|
||||||
|
myfile.close();
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Import a param_file into a netgen_params structure
|
||||||
|
*
|
||||||
|
* @param param_file Name of the file
|
||||||
|
* @param aParams Structure to fill
|
||||||
|
*/
|
||||||
|
void importNetgenParams(const std::string param_file, netgen_params& aParams){
|
||||||
|
|
||||||
|
if ( param_file.find("simple2D") != std::string::npos || param_file.find("simple3D") != std::string::npos /*support simple 2D && 3D*/ )
|
||||||
|
{
|
||||||
|
importSimple2D3DNetgenParams( param_file, aParams, bool(param_file.find("simple3D") != std::string::npos) );
|
||||||
|
}
|
||||||
|
else if ( param_file.find("maxarea") == std::string::npos && param_file.find("lenghtfromedge") == std::string::npos /*hypo file for 2D SA*/)
|
||||||
|
{
|
||||||
|
importDefaultNetgenParams( param_file, aParams );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
aParams.has_netgen_param = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Writes the content of a netgen_param into a file
|
||||||
|
*
|
||||||
|
* @param param_file the file
|
||||||
|
* @param aParams the object
|
||||||
|
*/
|
||||||
|
void exportNetgenParams(const std::string param_file, netgen_params& aParams){
|
||||||
|
if ( aParams.myType == Hypo ){
|
||||||
|
std::ofstream myfile(param_file);
|
||||||
|
myfile << aParams.has_netgen_param << std::endl;
|
||||||
|
myfile << aParams.maxh << std::endl;
|
||||||
|
myfile << aParams.minh << std::endl;
|
||||||
|
myfile << aParams.segmentsperedge << std::endl;
|
||||||
|
myfile << aParams.grading << std::endl;
|
||||||
|
myfile << aParams.curvaturesafety << std::endl;
|
||||||
|
myfile << aParams.secondorder << std::endl;
|
||||||
|
myfile << aParams.quad << std::endl;
|
||||||
|
myfile << aParams.optimize << std::endl;
|
||||||
|
myfile << aParams.fineness << std::endl;
|
||||||
|
myfile << aParams.uselocalh << std::endl;
|
||||||
|
myfile << aParams.merge_solids << std::endl;
|
||||||
|
myfile << aParams.chordalError << std::endl;
|
||||||
|
myfile << aParams.optsteps2d << std::endl;
|
||||||
|
myfile << aParams.optsteps3d << std::endl;
|
||||||
|
myfile << aParams.elsizeweight << std::endl;
|
||||||
|
myfile << aParams.opterrpow << std::endl;
|
||||||
|
myfile << aParams.delaunay << std::endl;
|
||||||
|
myfile << aParams.checkoverlap << std::endl;
|
||||||
|
myfile << aParams.checkchartboundary << std::endl;
|
||||||
|
myfile << aParams.closeedgefac << std::endl;
|
||||||
|
myfile << aParams.nbThreads << std::endl;
|
||||||
|
myfile << aParams.has_local_size << std::endl;
|
||||||
|
myfile << aParams.meshsizefilename << std::endl;
|
||||||
|
myfile << aParams.has_maxelementvolume_hyp << std::endl;
|
||||||
|
myfile << aParams.maxElementVolume << std::endl;
|
||||||
|
myfile << aParams.has_LengthFromEdges_hyp << std::endl;
|
||||||
|
}
|
||||||
|
else if ( aParams.myType == Simple2D )
|
||||||
|
{
|
||||||
|
// TODO: Export the 2D && 3D simple versions
|
||||||
|
}
|
||||||
|
};
|
99
src/NETGENPlugin/NETGENPlugin_DriverParam.hxx
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
//
|
||||||
|
// Copyright (C) 2003-2007 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, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 : NETGENPlugin_DriverParam.hxx
|
||||||
|
// Author : Yoann AUDOUIN, EDF
|
||||||
|
// Module : NETGEN
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef _NETGENPLUGIN_DRIVERPARAM_HXX_
|
||||||
|
#define _NETGENPLUGIN_DRIVERPARAM_HXX_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
enum hypoType{
|
||||||
|
Hypo = 1, /*the default hypo common for 1D2D,1D2D3D && 3D*/
|
||||||
|
Simple2D,
|
||||||
|
Simple3D
|
||||||
|
};
|
||||||
|
|
||||||
|
struct netgen_params{
|
||||||
|
// Params from NETGENPlugin_Mesher
|
||||||
|
// True if _hypParameters is not null
|
||||||
|
bool has_netgen_param=true;
|
||||||
|
hypoType myType;
|
||||||
|
double maxh;
|
||||||
|
double minh;
|
||||||
|
double segmentsperedge;
|
||||||
|
double grading;
|
||||||
|
double curvaturesafety;
|
||||||
|
int secondorder;
|
||||||
|
int quad;
|
||||||
|
bool optimize;
|
||||||
|
int fineness;
|
||||||
|
bool uselocalh;
|
||||||
|
bool merge_solids;
|
||||||
|
double chordalError;
|
||||||
|
int optsteps2d;
|
||||||
|
int optsteps3d;
|
||||||
|
double elsizeweight;
|
||||||
|
int opterrpow;
|
||||||
|
bool delaunay;
|
||||||
|
bool checkoverlap;
|
||||||
|
bool checkchartboundary;
|
||||||
|
int closeedgefac;
|
||||||
|
|
||||||
|
// Number of threads for the mesher
|
||||||
|
int nbThreads;
|
||||||
|
|
||||||
|
// True if we have a mesh size file or local size info
|
||||||
|
bool has_local_size = false;
|
||||||
|
std::string meshsizefilename;
|
||||||
|
|
||||||
|
// Params from NETGEN3D
|
||||||
|
// True if _hypMaxElementVolume is not null
|
||||||
|
bool has_maxelementvolume_hyp=false;
|
||||||
|
double maxElementVolume=0.0;
|
||||||
|
|
||||||
|
// Params from NETGEN2D
|
||||||
|
bool has_LengthFromEdges_hyp=false;
|
||||||
|
|
||||||
|
/////////////////////////////////////
|
||||||
|
// Quantities proper of Simple2D
|
||||||
|
int numberOfSegments; // maybe reuse segmentsperedge (?)
|
||||||
|
double localLength;
|
||||||
|
double maxElementArea;
|
||||||
|
bool allowQuadrangles;
|
||||||
|
//// Quantities proper of Simple3D
|
||||||
|
double maxElementVol;
|
||||||
|
};
|
||||||
|
|
||||||
|
void printNetgenParams(netgen_params& aParams);
|
||||||
|
|
||||||
|
void importNetgenParams(const std::string param_file, netgen_params& aParams);
|
||||||
|
void importDefaultNetgenParams(const std::string param_file, netgen_params& aParams);
|
||||||
|
void importSimple2D3DNetgenParams(const std::string param_file, netgen_params& aParams, bool is3D );
|
||||||
|
void exportNetgenParams(const std::string param_file, netgen_params& aParams);
|
||||||
|
// TODO symple param to be used with netgen1d2d
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -40,23 +40,33 @@ using namespace std;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
NETGENPlugin_Hypothesis::NETGENPlugin_Hypothesis (int hypId, int studyId,
|
NETGENPlugin_Hypothesis::NETGENPlugin_Hypothesis (int hypId, SMESH_Gen * gen)
|
||||||
SMESH_Gen * gen)
|
|
||||||
: SMESH_Hypothesis(hypId, studyId, gen),
|
: SMESH_Hypothesis(hypId, gen),
|
||||||
|
_fineness (GetDefaultFineness()),
|
||||||
|
_secondOrder (GetDefaultSecondOrder()),
|
||||||
|
_quadAllowed (GetDefaultQuadAllowed()),
|
||||||
_maxSize (GetDefaultMaxSize()),
|
_maxSize (GetDefaultMaxSize()),
|
||||||
_minSize (0),
|
_minSize (0),
|
||||||
_growthRate (GetDefaultGrowthRate()),
|
_growthRate (GetDefaultGrowthRate()),
|
||||||
|
_nbSegPerRadius (GetDefaultNbSegPerRadius()),
|
||||||
_nbSegPerEdge (GetDefaultNbSegPerEdge()),
|
_nbSegPerEdge (GetDefaultNbSegPerEdge()),
|
||||||
_nbSegPerRadius(GetDefaultNbSegPerRadius()),
|
_chordalErrorEnabled(GetDefaultChordalError() > 0),
|
||||||
_fineness (GetDefaultFineness()),
|
_chordalError (GetDefaultChordalError() ),
|
||||||
_secondOrder (GetDefaultSecondOrder()),
|
|
||||||
_optimize (GetDefaultOptimize()),
|
_optimize (GetDefaultOptimize()),
|
||||||
_localSize (GetDefaultLocalSize()),
|
_nbSurfOptSteps (GetDefaultNbSurfOptSteps()),
|
||||||
_quadAllowed (GetDefaultQuadAllowed())
|
_nbVolOptSteps (GetDefaultNbVolOptSteps()),
|
||||||
|
_elemSizeWeight (GetDefaultElemSizeWeight()),
|
||||||
|
_worstElemMeasure (GetDefaultWorstElemMeasure()),
|
||||||
|
_nbThreads (GetDefaultNbThreads()),
|
||||||
|
_surfaceCurvature (GetDefaultSurfaceCurvature()),
|
||||||
|
_useDelauney (GetDefaultUseDelauney()),
|
||||||
|
_checkOverlapping (GetDefaultCheckOverlapping()),
|
||||||
|
_checkChartBoundary (GetDefaultCheckChartBoundary()),
|
||||||
|
_fuseEdges (GetDefaultFuseEdges())
|
||||||
{
|
{
|
||||||
_name = "NETGEN_Parameters";
|
_name = "NETGEN_Parameters";
|
||||||
_param_algo_dim = 3;
|
_param_algo_dim = 3;
|
||||||
_localSize.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -206,6 +216,34 @@ void NETGENPlugin_Hypothesis::SetNbSegPerRadius(double theVal)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
/*!
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//=============================================================================
|
||||||
|
void NETGENPlugin_Hypothesis::SetChordalErrorEnabled(bool theVal)
|
||||||
|
{
|
||||||
|
if (theVal != _chordalErrorEnabled)
|
||||||
|
{
|
||||||
|
_chordalErrorEnabled = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
/*!
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//=============================================================================
|
||||||
|
void NETGENPlugin_Hypothesis::SetChordalError(double theVal)
|
||||||
|
{
|
||||||
|
if (theVal != _chordalError)
|
||||||
|
{
|
||||||
|
_chordalError = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
*
|
*
|
||||||
@ -245,6 +283,20 @@ void NETGENPlugin_Hypothesis::UnsetLocalSizeOnEntry(const std::string& entry)
|
|||||||
NotifySubMeshesHypothesisModification();
|
NotifySubMeshesHypothesisModification();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
/*!
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//=============================================================================
|
||||||
|
void NETGENPlugin_Hypothesis::SetMeshSizeFile(const std::string& fileName)
|
||||||
|
{
|
||||||
|
if ( fileName != _meshSizeFile )
|
||||||
|
{
|
||||||
|
_meshSizeFile = fileName;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
*
|
*
|
||||||
@ -264,9 +316,139 @@ void NETGENPlugin_Hypothesis::SetQuadAllowed(bool theVal)
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
bool NETGENPlugin_Hypothesis::GetDefaultQuadAllowed()
|
void NETGENPlugin_Hypothesis::SetSurfaceCurvature(bool theVal)
|
||||||
{
|
{
|
||||||
return false;
|
if (theVal != _surfaceCurvature)
|
||||||
|
{
|
||||||
|
_surfaceCurvature = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
/*!
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//=============================================================================
|
||||||
|
void NETGENPlugin_Hypothesis::SetFuseEdges(bool theVal)
|
||||||
|
{
|
||||||
|
if (theVal != _fuseEdges)
|
||||||
|
{
|
||||||
|
_fuseEdges = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetNbSurfOptSteps
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_Hypothesis::SetNbSurfOptSteps( int theVal )
|
||||||
|
{
|
||||||
|
if (theVal != _nbSurfOptSteps)
|
||||||
|
{
|
||||||
|
_nbSurfOptSteps = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetNbVolOptSteps
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_Hypothesis::SetNbVolOptSteps( int theVal )
|
||||||
|
{
|
||||||
|
if (theVal != _nbVolOptSteps)
|
||||||
|
{
|
||||||
|
_nbVolOptSteps = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetElemSizeWeight
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_Hypothesis::SetElemSizeWeight( double theVal )
|
||||||
|
{
|
||||||
|
if (theVal != _elemSizeWeight)
|
||||||
|
{
|
||||||
|
_elemSizeWeight = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetWorstElemMeasure
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_Hypothesis::SetWorstElemMeasure( int theVal )
|
||||||
|
{
|
||||||
|
if (theVal != _worstElemMeasure)
|
||||||
|
{
|
||||||
|
_worstElemMeasure = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetUseDelauney
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_Hypothesis::SetUseDelauney( bool theVal )
|
||||||
|
{
|
||||||
|
if (theVal != _useDelauney )
|
||||||
|
{
|
||||||
|
_useDelauney = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetCheckOverlapping
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_Hypothesis::SetCheckOverlapping( bool theVal )
|
||||||
|
{
|
||||||
|
if (theVal != _checkOverlapping )
|
||||||
|
{
|
||||||
|
_checkOverlapping = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetCheckChartBoundary
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_Hypothesis::SetCheckChartBoundary( bool theVal )
|
||||||
|
{
|
||||||
|
if (theVal != _checkChartBoundary)
|
||||||
|
{
|
||||||
|
_checkChartBoundary = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetNbThreads
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_Hypothesis::SetNbThreads( int theVal )
|
||||||
|
{
|
||||||
|
if (theVal != _nbThreads)
|
||||||
|
{
|
||||||
|
_nbThreads = theVal;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -294,6 +476,24 @@ ostream & NETGENPlugin_Hypothesis::SaveTo(ostream & save)
|
|||||||
}
|
}
|
||||||
save << " " << _minSize;
|
save << " " << _minSize;
|
||||||
save << " " << _quadAllowed;
|
save << " " << _quadAllowed;
|
||||||
|
save << " " << _surfaceCurvature;
|
||||||
|
save << " " << _fuseEdges;
|
||||||
|
|
||||||
|
save << " " << _meshSizeFile.size() << " " << _meshSizeFile;
|
||||||
|
|
||||||
|
save << " " << ( _chordalErrorEnabled ? _chordalError : 0. );
|
||||||
|
|
||||||
|
|
||||||
|
// added for option set completion
|
||||||
|
|
||||||
|
save << " " << _nbSurfOptSteps;
|
||||||
|
save << " " << _nbVolOptSteps;
|
||||||
|
save << " " << _elemSizeWeight;
|
||||||
|
save << " " << _worstElemMeasure;
|
||||||
|
|
||||||
|
save << " " << _useDelauney;
|
||||||
|
save << " " << _checkOverlapping;
|
||||||
|
save << " " << _checkChartBoundary;
|
||||||
|
|
||||||
return save;
|
return save;
|
||||||
}
|
}
|
||||||
@ -309,13 +509,13 @@ istream & NETGENPlugin_Hypothesis::LoadFrom(istream & load)
|
|||||||
int is;
|
int is;
|
||||||
double val;
|
double val;
|
||||||
|
|
||||||
isOK = (load >> val);
|
isOK = static_cast<bool>(load >> val);
|
||||||
if (isOK)
|
if (isOK)
|
||||||
_maxSize = val;
|
_maxSize = val;
|
||||||
else
|
else
|
||||||
load.clear(ios::badbit | load.rdstate());
|
load.clear(ios::badbit | load.rdstate());
|
||||||
|
|
||||||
isOK = (load >> is);
|
isOK = static_cast<bool>(load >> is);
|
||||||
if (isOK)
|
if (isOK)
|
||||||
SetFineness((Fineness) is);
|
SetFineness((Fineness) is);
|
||||||
else
|
else
|
||||||
@ -323,32 +523,32 @@ istream & NETGENPlugin_Hypothesis::LoadFrom(istream & load)
|
|||||||
|
|
||||||
if (_fineness == UserDefined)
|
if (_fineness == UserDefined)
|
||||||
{
|
{
|
||||||
isOK = (load >> val);
|
isOK = static_cast<bool>(load >> val);
|
||||||
if (isOK)
|
if (isOK)
|
||||||
_growthRate = val;
|
_growthRate = val;
|
||||||
else
|
else
|
||||||
load.clear(ios::badbit | load.rdstate());
|
load.clear(ios::badbit | load.rdstate());
|
||||||
|
|
||||||
isOK = (load >> val);
|
isOK = static_cast<bool>(load >> val);
|
||||||
if (isOK)
|
if (isOK)
|
||||||
_nbSegPerEdge = val;
|
_nbSegPerEdge = val;
|
||||||
else
|
else
|
||||||
load.clear(ios::badbit | load.rdstate());
|
load.clear(ios::badbit | load.rdstate());
|
||||||
|
|
||||||
isOK = (load >> val);
|
isOK = static_cast<bool>(load >> val);
|
||||||
if (isOK)
|
if (isOK)
|
||||||
_nbSegPerRadius = val;
|
_nbSegPerRadius = val;
|
||||||
else
|
else
|
||||||
load.clear(ios::badbit | load.rdstate());
|
load.clear(ios::badbit | load.rdstate());
|
||||||
}
|
}
|
||||||
|
|
||||||
isOK = (load >> is);
|
isOK = static_cast<bool>(load >> is);
|
||||||
if (isOK)
|
if (isOK)
|
||||||
_secondOrder = (bool) is;
|
_secondOrder = (bool) is;
|
||||||
else
|
else
|
||||||
load.clear(ios::badbit | load.rdstate());
|
load.clear(ios::badbit | load.rdstate());
|
||||||
|
|
||||||
isOK = (load >> is);
|
isOK = static_cast<bool>(load >> is);
|
||||||
if (isOK)
|
if (isOK)
|
||||||
_optimize = (bool) is;
|
_optimize = (bool) is;
|
||||||
else
|
else
|
||||||
@ -357,18 +557,18 @@ istream & NETGENPlugin_Hypothesis::LoadFrom(istream & load)
|
|||||||
std::string option_or_sm;
|
std::string option_or_sm;
|
||||||
bool hasLocalSize = false;
|
bool hasLocalSize = false;
|
||||||
|
|
||||||
isOK = (load >> option_or_sm);
|
isOK = static_cast<bool>(load >> option_or_sm);
|
||||||
if (isOK)
|
if (isOK)
|
||||||
if (option_or_sm == "__LOCALSIZE_BEGIN__")
|
if (option_or_sm == "__LOCALSIZE_BEGIN__")
|
||||||
hasLocalSize = true;
|
hasLocalSize = true;
|
||||||
|
|
||||||
std::string smEntry, smValue;
|
std::string smEntry, smValue;
|
||||||
while (isOK && hasLocalSize) {
|
while (isOK && hasLocalSize) {
|
||||||
isOK = (load >> smEntry);
|
isOK = static_cast<bool>(load >> smEntry);
|
||||||
if (isOK) {
|
if (isOK) {
|
||||||
if (smEntry == "__LOCALSIZE_END__")
|
if (smEntry == "__LOCALSIZE_END__")
|
||||||
break;
|
break;
|
||||||
isOK = (load >> smValue);
|
isOK = static_cast<bool>(load >> smValue);
|
||||||
}
|
}
|
||||||
if (isOK) {
|
if (isOK) {
|
||||||
std::istringstream tmp(smValue);
|
std::istringstream tmp(smValue);
|
||||||
@ -380,35 +580,75 @@ istream & NETGENPlugin_Hypothesis::LoadFrom(istream & load)
|
|||||||
|
|
||||||
if ( !hasLocalSize && !option_or_sm.empty() )
|
if ( !hasLocalSize && !option_or_sm.empty() )
|
||||||
_minSize = atof( option_or_sm.c_str() );
|
_minSize = atof( option_or_sm.c_str() );
|
||||||
|
else
|
||||||
|
load >> _minSize;
|
||||||
|
|
||||||
isOK = ( load >> _quadAllowed );
|
isOK = static_cast<bool>( load >> is );
|
||||||
if ( !isOK )
|
if ( isOK )
|
||||||
|
_quadAllowed = (bool) is;
|
||||||
|
else
|
||||||
_quadAllowed = GetDefaultQuadAllowed();
|
_quadAllowed = GetDefaultQuadAllowed();
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> is );
|
||||||
|
if ( isOK )
|
||||||
|
_surfaceCurvature = (bool) is;
|
||||||
|
else
|
||||||
|
_surfaceCurvature = GetDefaultSurfaceCurvature();
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> is );
|
||||||
|
if ( isOK )
|
||||||
|
_fuseEdges = (bool) is;
|
||||||
|
else
|
||||||
|
_fuseEdges = GetDefaultFuseEdges();
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> is >> std::ws ); // size of meshSizeFile
|
||||||
|
if ( isOK && is > 0 )
|
||||||
|
{
|
||||||
|
_meshSizeFile.resize( is );
|
||||||
|
load.get( &_meshSizeFile[0], is+1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
isOK = static_cast<bool>(load >> val);
|
||||||
|
if (isOK)
|
||||||
|
_chordalError = val;
|
||||||
|
else
|
||||||
|
load.clear(ios::badbit | load.rdstate());
|
||||||
|
_chordalErrorEnabled = ( _chordalError > 0 );
|
||||||
|
|
||||||
|
|
||||||
|
// added for option set completion
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> is );
|
||||||
|
if ( isOK )
|
||||||
|
_nbSurfOptSteps = is;
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> is );
|
||||||
|
if ( isOK )
|
||||||
|
_nbVolOptSteps = is;
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> val );
|
||||||
|
if ( isOK )
|
||||||
|
_elemSizeWeight = val;
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> is );
|
||||||
|
if ( isOK )
|
||||||
|
_worstElemMeasure = is;
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> is );
|
||||||
|
if ( isOK )
|
||||||
|
_useDelauney = (bool) is;
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> is );
|
||||||
|
if ( isOK )
|
||||||
|
_checkOverlapping = (bool) is;
|
||||||
|
|
||||||
|
isOK = static_cast<bool>( load >> is );
|
||||||
|
if ( isOK )
|
||||||
|
_checkChartBoundary = (bool) is;
|
||||||
|
|
||||||
return load;
|
return load;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
ostream & operator <<(ostream & save, NETGENPlugin_Hypothesis & hyp)
|
|
||||||
{
|
|
||||||
return hyp.SaveTo( save );
|
|
||||||
}
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
istream & operator >>(istream & load, NETGENPlugin_Hypothesis & hyp)
|
|
||||||
{
|
|
||||||
return hyp.LoadFrom( load );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
/*!
|
/*!
|
||||||
* \brief Does nothing
|
* \brief Does nothing
|
||||||
@ -417,8 +657,8 @@ istream & operator >>(istream & load, NETGENPlugin_Hypothesis & hyp)
|
|||||||
* \retval bool - always false
|
* \retval bool - always false
|
||||||
*/
|
*/
|
||||||
//================================================================================
|
//================================================================================
|
||||||
bool NETGENPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* theMesh,
|
bool NETGENPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* /*theMesh*/,
|
||||||
const TopoDS_Shape& theShape)
|
const TopoDS_Shape& /*theShape*/)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -441,75 +681,14 @@ bool NETGENPlugin_Hypothesis::SetParametersByDefaults(const TDefaults& dflts,
|
|||||||
else if ( theMesh && theMesh->HasShapeToMesh() )
|
else if ( theMesh && theMesh->HasShapeToMesh() )
|
||||||
_minSize = NETGENPlugin_Mesher::GetDefaultMinSize( theMesh->GetShapeToMesh(), _maxSize );
|
_minSize = NETGENPlugin_Mesher::GetDefaultMinSize( theMesh->GetShapeToMesh(), _maxSize );
|
||||||
|
|
||||||
|
if ( dflts._way == SMESH_Hypothesis::BY_AVERAGE_LENGTH )
|
||||||
|
{
|
||||||
|
_minSize = dflts._elemLength / 100.;
|
||||||
|
_nbSegPerEdge = 1;
|
||||||
|
_chordalError = dflts._elemLength / 2.;
|
||||||
|
_chordalErrorEnabled = true;
|
||||||
|
_quadAllowed = dflts._quadDominated;
|
||||||
|
}
|
||||||
|
|
||||||
return _nbSegPerEdge && _maxSize > 0;
|
return _nbSegPerEdge && _maxSize > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
double NETGENPlugin_Hypothesis::GetDefaultMaxSize()
|
|
||||||
{
|
|
||||||
return 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
NETGENPlugin_Hypothesis::Fineness NETGENPlugin_Hypothesis::GetDefaultFineness()
|
|
||||||
{
|
|
||||||
return Moderate;
|
|
||||||
}
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
double NETGENPlugin_Hypothesis::GetDefaultGrowthRate()
|
|
||||||
{
|
|
||||||
return 0.3;
|
|
||||||
}
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
double NETGENPlugin_Hypothesis::GetDefaultNbSegPerEdge()
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
double NETGENPlugin_Hypothesis::GetDefaultNbSegPerRadius()
|
|
||||||
{
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
bool NETGENPlugin_Hypothesis::GetDefaultSecondOrder()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
bool NETGENPlugin_Hypothesis::GetDefaultOptimize()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -35,17 +35,16 @@
|
|||||||
#include "Utils_SALOME_Exception.hxx"
|
#include "Utils_SALOME_Exception.hxx"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
// Parameters for work of NETGEN
|
// Parameters for work of NETGEN
|
||||||
//
|
//
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis: public SMESH_Hypothesis
|
class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis: public SMESH_Hypothesis
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
NETGENPlugin_Hypothesis(int hypId, int studyId, SMESH_Gen * gen);
|
NETGENPlugin_Hypothesis(int hypId, SMESH_Gen * gen);
|
||||||
|
|
||||||
void SetMaxSize(double theSize);
|
void SetMaxSize(double theSize);
|
||||||
double GetMaxSize() const { return _maxSize; }
|
double GetMaxSize() const { return _maxSize; }
|
||||||
@ -72,7 +71,7 @@ public:
|
|||||||
void SetFineness(Fineness theFineness);
|
void SetFineness(Fineness theFineness);
|
||||||
Fineness GetFineness() const { return _fineness; }
|
Fineness GetFineness() const { return _fineness; }
|
||||||
|
|
||||||
// the following parameters are controlled by Fineness
|
// the following 3 parameters are controlled by Fineness
|
||||||
|
|
||||||
void SetGrowthRate(double theRate);
|
void SetGrowthRate(double theRate);
|
||||||
double GetGrowthRate() const { return _growthRate; }
|
double GetGrowthRate() const { return _growthRate; }
|
||||||
@ -83,32 +82,78 @@ public:
|
|||||||
void SetNbSegPerRadius(double theVal);
|
void SetNbSegPerRadius(double theVal);
|
||||||
double GetNbSegPerRadius() const { return _nbSegPerRadius; }
|
double GetNbSegPerRadius() const { return _nbSegPerRadius; }
|
||||||
|
|
||||||
|
void SetChordalErrorEnabled(bool value);
|
||||||
|
double GetChordalErrorEnabled() const { return _chordalErrorEnabled; }
|
||||||
|
void SetChordalError(double value);
|
||||||
|
double GetChordalError() const { return _chordalError; }
|
||||||
|
|
||||||
typedef std::map<std::string, double> TLocalSize;
|
typedef std::map<std::string, double> TLocalSize;
|
||||||
static TLocalSize GetDefaultLocalSize() { return TLocalSize(); }
|
|
||||||
void SetLocalSizeOnEntry(const std::string& entry, double localSize);
|
void SetLocalSizeOnEntry(const std::string& entry, double localSize);
|
||||||
double GetLocalSizeOnEntry(const std::string& entry);
|
double GetLocalSizeOnEntry(const std::string& entry);
|
||||||
const TLocalSize& GetLocalSizesAndEntries() const { return _localSize; }
|
const TLocalSize& GetLocalSizesAndEntries() const { return _localSize; }
|
||||||
void UnsetLocalSizeOnEntry(const std::string& entry);
|
void UnsetLocalSizeOnEntry(const std::string& entry);
|
||||||
|
|
||||||
|
void SetMeshSizeFile(const std::string& fileName);
|
||||||
|
const std::string& GetMeshSizeFile() const { return _meshSizeFile; }
|
||||||
|
|
||||||
void SetQuadAllowed(bool theVal);
|
void SetQuadAllowed(bool theVal);
|
||||||
bool GetQuadAllowed() const { return _quadAllowed; }
|
bool GetQuadAllowed() const { return _quadAllowed; }
|
||||||
|
|
||||||
|
void SetSurfaceCurvature(bool theVal);
|
||||||
|
bool GetSurfaceCurvature() const { return _surfaceCurvature; }
|
||||||
|
|
||||||
|
void SetFuseEdges(bool theVal);
|
||||||
|
bool GetFuseEdges() const { return _fuseEdges; }
|
||||||
|
|
||||||
|
void SetNbSurfOptSteps( int nb );
|
||||||
|
int GetNbSurfOptSteps() const { return _nbSurfOptSteps; }
|
||||||
|
|
||||||
|
void SetNbVolOptSteps( int nb );
|
||||||
|
int GetNbVolOptSteps() const { return _nbVolOptSteps; }
|
||||||
|
|
||||||
|
void SetElemSizeWeight( double size );
|
||||||
|
double GetElemSizeWeight() const { return _elemSizeWeight; }
|
||||||
|
|
||||||
|
void SetWorstElemMeasure( int val );
|
||||||
|
int GetWorstElemMeasure() const { return _worstElemMeasure; }
|
||||||
|
|
||||||
|
void SetUseDelauney( bool toUse);
|
||||||
|
bool GetUseDelauney() const { return _useDelauney; }
|
||||||
|
|
||||||
|
void SetCheckOverlapping( bool toCheck );
|
||||||
|
bool GetCheckOverlapping() const { return _checkOverlapping; }
|
||||||
|
|
||||||
|
void SetCheckChartBoundary( bool toCheck );
|
||||||
|
bool GetCheckChartBoundary() const { return _checkChartBoundary; }
|
||||||
|
|
||||||
|
void SetNbThreads( int val );
|
||||||
|
int GetNbThreads() const { return _nbThreads; }
|
||||||
|
|
||||||
// the default values (taken from NETGEN 4.5 sources)
|
// the default values (taken from NETGEN 4.5 sources)
|
||||||
|
|
||||||
static double GetDefaultMaxSize();
|
static Fineness GetDefaultFineness() { return Moderate; }
|
||||||
static Fineness GetDefaultFineness();
|
static bool GetDefaultSecondOrder() { return false; }
|
||||||
static double GetDefaultGrowthRate();
|
static bool GetDefaultQuadAllowed() { return false; }
|
||||||
static double GetDefaultNbSegPerEdge();
|
static double GetDefaultMaxSize() { return 1000; }
|
||||||
static double GetDefaultNbSegPerRadius();
|
static double GetDefaultGrowthRate() { return 0.3; }
|
||||||
static bool GetDefaultSecondOrder();
|
static double GetDefaultNbSegPerRadius() { return 2; }
|
||||||
static bool GetDefaultOptimize();
|
static double GetDefaultNbSegPerEdge() { return 1; }
|
||||||
static bool GetDefaultQuadAllowed();
|
static double GetDefaultChordalError() { return -1; } // disabled by default
|
||||||
|
static bool GetDefaultOptimize() { return true; }
|
||||||
|
static int GetDefaultNbSurfOptSteps() { return 3; }
|
||||||
|
static int GetDefaultNbVolOptSteps() { return 3; }
|
||||||
|
static double GetDefaultElemSizeWeight() { return 0.2; }
|
||||||
|
static int GetDefaultWorstElemMeasure() { return 2; }
|
||||||
|
static bool GetDefaultSurfaceCurvature() { return true; }
|
||||||
|
static bool GetDefaultUseDelauney() { return true; }
|
||||||
|
static bool GetDefaultCheckOverlapping() { return true; }
|
||||||
|
static bool GetDefaultCheckChartBoundary(){ return true; }
|
||||||
|
static bool GetDefaultFuseEdges() { return true; }
|
||||||
|
static int GetDefaultNbThreads() { return std::thread::hardware_concurrency(); }
|
||||||
|
|
||||||
// Persistence
|
// Persistence
|
||||||
virtual ostream & SaveTo(ostream & save);
|
virtual std::ostream & SaveTo (std::ostream & save);
|
||||||
virtual istream & LoadFrom(istream & load);
|
virtual std::istream & LoadFrom(std::istream & load);
|
||||||
friend NETGENPLUGIN_EXPORT ostream & operator <<(ostream & save, NETGENPlugin_Hypothesis & hyp);
|
|
||||||
friend NETGENPLUGIN_EXPORT istream & operator >>(istream & load, NETGENPlugin_Hypothesis & hyp);
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Does nothing
|
* \brief Does nothing
|
||||||
@ -125,15 +170,41 @@ public:
|
|||||||
virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0);
|
virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
double _maxSize, _minSize;
|
|
||||||
double _growthRate;
|
// General
|
||||||
double _nbSegPerEdge;
|
|
||||||
double _nbSegPerRadius;
|
|
||||||
Fineness _fineness;
|
Fineness _fineness;
|
||||||
bool _secondOrder;
|
bool _secondOrder;
|
||||||
bool _optimize;
|
|
||||||
TLocalSize _localSize;
|
|
||||||
bool _quadAllowed;
|
bool _quadAllowed;
|
||||||
|
|
||||||
|
// Mesh size
|
||||||
|
double _maxSize, _minSize;
|
||||||
|
double _growthRate;
|
||||||
|
std::string _meshSizeFile;
|
||||||
|
double _nbSegPerRadius;
|
||||||
|
double _nbSegPerEdge;
|
||||||
|
// (SALOME additions)
|
||||||
|
TLocalSize _localSize;
|
||||||
|
bool _chordalErrorEnabled;
|
||||||
|
double _chordalError;
|
||||||
|
|
||||||
|
// Optimizer
|
||||||
|
bool _optimize;
|
||||||
|
int _nbSurfOptSteps;
|
||||||
|
int _nbVolOptSteps;
|
||||||
|
double _elemSizeWeight;
|
||||||
|
int _worstElemMeasure;
|
||||||
|
|
||||||
|
// Insider
|
||||||
|
bool _surfaceCurvature;
|
||||||
|
bool _useDelauney;
|
||||||
|
bool _checkOverlapping;
|
||||||
|
bool _checkChartBoundary;
|
||||||
|
//bool _blockFilling; -- not used by netgen
|
||||||
|
// (SALOME additions)
|
||||||
|
bool _fuseEdges;
|
||||||
|
|
||||||
|
// Parallelism parameters
|
||||||
|
int _nbThreads;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -28,7 +28,10 @@
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
//
|
//
|
||||||
#include "NETGENPlugin_Hypothesis_2D.hxx"
|
#include "NETGENPlugin_Hypothesis_2D.hxx"
|
||||||
#include <utilities.h>
|
|
||||||
|
#include <SMESH_Mesh.hxx>
|
||||||
|
#include <SMESH_Group.hxx>
|
||||||
|
#include <SMESHDS_GroupBase.hxx>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -37,9 +40,9 @@ using namespace std;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
NETGENPlugin_Hypothesis_2D::NETGENPlugin_Hypothesis_2D (int hypId, int studyId,
|
NETGENPlugin_Hypothesis_2D::NETGENPlugin_Hypothesis_2D (int hypId,
|
||||||
SMESH_Gen * gen)
|
SMESH_Gen * gen)
|
||||||
: NETGENPlugin_Hypothesis(hypId, studyId, gen)/*,
|
: NETGENPlugin_Hypothesis(hypId, gen)/*,
|
||||||
_quadAllowed (GetDefaultQuadAllowed())*/
|
_quadAllowed (GetDefaultQuadAllowed())*/
|
||||||
{
|
{
|
||||||
_name = "NETGEN_Parameters_2D";
|
_name = "NETGEN_Parameters_2D";
|
||||||
@ -51,56 +54,457 @@ NETGENPlugin_Hypothesis_2D::NETGENPlugin_Hypothesis_2D (int hypId, int studyId,
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// void NETGENPlugin_Hypothesis_2D::SetQuadAllowed(bool theVal)
|
NETGENPlugin_RemesherHypothesis_2D::
|
||||||
// {
|
NETGENPlugin_RemesherHypothesis_2D (int hypId, SMESH_Gen * gen)
|
||||||
// if (theVal != _quadAllowed)
|
: NETGENPlugin_Hypothesis(hypId, gen),
|
||||||
// {
|
_ridgeAngle ( DefaultRidgeAngle() ),
|
||||||
// _quadAllowed = theVal;
|
_edgeCornerAngle ( DefaultEdgeCornerAngle() ),
|
||||||
// NotifySubMeshesHypothesisModification();
|
_chartAngle ( DefaultChartAngle() ),
|
||||||
// }
|
_outerChartAngle ( DefaultOuterChartAngle() ),
|
||||||
// }
|
_restHChartDistFactor ( DefaultRestHChartDistFactor() ),
|
||||||
|
_restHChartDistEnable ( DefaultRestHChartDistEnable() ),
|
||||||
|
_restHLineLengthFactor ( DefaultRestHLineLengthFactor() ),
|
||||||
|
_restHLineLengthEnable ( DefaultRestHLineLengthEnable() ),
|
||||||
|
_restHCloseEdgeFactor ( DefaultRestHCloseEdgeFactor() ),
|
||||||
|
_restHCloseEdgeEnable ( DefaultRestHCloseEdgeEnable() ),
|
||||||
|
_restHSurfCurvFactor ( DefaultRestHSurfCurvFactor() ),
|
||||||
|
_restHSurfCurvEnable ( DefaultRestHSurfCurvEnable() ),
|
||||||
|
_restHEdgeAngleFactor ( DefaultRestHEdgeAngleFactor() ),
|
||||||
|
_restHEdgeAngleEnable ( DefaultRestHEdgeAngleEnable() ),
|
||||||
|
_restHSurfMeshCurvFactor( DefaultRestHSurfMeshCurvFactor()),
|
||||||
|
_restHSurfMeshCurvEnable( DefaultRestHSurfMeshCurvEnable()),
|
||||||
|
_keepExistingEdges ( DefaultKeepExistingEdges() ),
|
||||||
|
_makeGroupsOfSurfaces ( DefaultMakeGroupsOfSurfaces() ),
|
||||||
|
_fixedEdgeGroupID ( -1 ),
|
||||||
|
_loadOnCancel ( false )
|
||||||
|
{
|
||||||
|
_name = "NETGEN_RemesherParameters_2D";
|
||||||
|
_param_algo_dim = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// //=============================================================================
|
//=============================================================================
|
||||||
// /*!
|
/*!
|
||||||
// *
|
*
|
||||||
// */
|
*/
|
||||||
// //=============================================================================
|
//=============================================================================
|
||||||
// bool NETGENPlugin_Hypothesis_2D::GetDefaultQuadAllowed()
|
|
||||||
// {
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// //=============================================================================
|
void NETGENPlugin_RemesherHypothesis_2D::SetRidgeAngle( double angle )
|
||||||
// /*!
|
{
|
||||||
// *
|
if ( _ridgeAngle != angle )
|
||||||
// */
|
{
|
||||||
// //=============================================================================
|
_ridgeAngle = angle;
|
||||||
// ostream & NETGENPlugin_Hypothesis_2D::SaveTo(ostream & save)
|
NotifySubMeshesHypothesisModification();
|
||||||
// {
|
}
|
||||||
// NETGENPlugin_Hypothesis::SaveTo(save);
|
}
|
||||||
|
|
||||||
// save << " " << (int)_quadAllowed;
|
//=======================================================================
|
||||||
|
//function : SetEdgeCornerAngle
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
// return save;
|
void NETGENPlugin_RemesherHypothesis_2D::SetEdgeCornerAngle( double angle )
|
||||||
// }
|
{
|
||||||
|
if ( _edgeCornerAngle != angle )
|
||||||
|
{
|
||||||
|
_edgeCornerAngle = angle;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// //=============================================================================
|
//=======================================================================
|
||||||
// /*!
|
//function : SetChartAngle
|
||||||
// *
|
//purpose :
|
||||||
// */
|
//=======================================================================
|
||||||
// //=============================================================================
|
|
||||||
// istream & NETGENPlugin_Hypothesis_2D::LoadFrom(istream & load)
|
|
||||||
// {
|
|
||||||
// NETGENPlugin_Hypothesis::LoadFrom(load);
|
|
||||||
|
|
||||||
// bool isOK = true;
|
void NETGENPlugin_RemesherHypothesis_2D::SetChartAngle( double angle )
|
||||||
// int is;
|
{
|
||||||
|
if ( _chartAngle != angle )
|
||||||
|
{
|
||||||
|
_chartAngle = angle;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// isOK = (load >> is);
|
//=======================================================================
|
||||||
// if (isOK)
|
//function : SetOuterChartAngle
|
||||||
// _quadAllowed = (bool) is;
|
//purpose :
|
||||||
// else
|
//=======================================================================
|
||||||
// load.clear(ios::badbit | load.rdstate());
|
|
||||||
|
|
||||||
// return load;
|
void NETGENPlugin_RemesherHypothesis_2D::SetOuterChartAngle( double angle )
|
||||||
// }
|
{
|
||||||
|
if ( _outerChartAngle != angle )
|
||||||
|
{
|
||||||
|
_outerChartAngle = angle;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHChartDistFactor
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHChartDistFactor( double f )
|
||||||
|
{
|
||||||
|
if ( _restHChartDistFactor != f )
|
||||||
|
{
|
||||||
|
_restHChartDistFactor = f;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHChartDistEnable
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHChartDistEnable( bool enable )
|
||||||
|
{
|
||||||
|
if ( _restHChartDistEnable != enable )
|
||||||
|
{
|
||||||
|
_restHChartDistEnable = enable;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHLineLengthFactor
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHLineLengthFactor( double f )
|
||||||
|
{
|
||||||
|
if ( _restHLineLengthFactor != f )
|
||||||
|
{
|
||||||
|
_restHLineLengthFactor = f;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHLineLengthEnable
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHLineLengthEnable( bool enable )
|
||||||
|
{
|
||||||
|
if ( _restHLineLengthEnable != enable )
|
||||||
|
{
|
||||||
|
_restHLineLengthEnable = enable;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHCloseEdgeFactor
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHCloseEdgeFactor( double f )
|
||||||
|
{
|
||||||
|
if ( _restHCloseEdgeFactor != f )
|
||||||
|
{
|
||||||
|
_restHCloseEdgeFactor = f;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHCloseEdgeEnable
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHCloseEdgeEnable( bool enable )
|
||||||
|
{
|
||||||
|
if ( _restHCloseEdgeEnable != enable )
|
||||||
|
{
|
||||||
|
_restHCloseEdgeEnable = enable;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHSurfCurvFactor
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHSurfCurvFactor( double f )
|
||||||
|
{
|
||||||
|
if ( _restHSurfCurvFactor != f )
|
||||||
|
{
|
||||||
|
_restHSurfCurvFactor = f;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHSurfCurvEnable
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHSurfCurvEnable( bool enable )
|
||||||
|
{
|
||||||
|
if ( _restHSurfCurvEnable != enable )
|
||||||
|
{
|
||||||
|
_restHSurfCurvEnable = enable;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHEdgeAngleFactor
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHEdgeAngleFactor( double f )
|
||||||
|
{
|
||||||
|
if ( _restHEdgeAngleFactor != f )
|
||||||
|
{
|
||||||
|
_restHEdgeAngleFactor = f;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHEdgeAngleEnable
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHEdgeAngleEnable( bool enable )
|
||||||
|
{
|
||||||
|
if ( _restHEdgeAngleEnable != enable )
|
||||||
|
{
|
||||||
|
_restHEdgeAngleEnable = enable;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHSurfMeshCurvFactor
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHSurfMeshCurvFactor( double f )
|
||||||
|
{
|
||||||
|
if ( _restHSurfMeshCurvFactor != f )
|
||||||
|
{
|
||||||
|
_restHSurfMeshCurvFactor = f;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetRestHSurfMeshCurvEnable
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetRestHSurfMeshCurvEnable( bool enable )
|
||||||
|
{
|
||||||
|
if ( _restHSurfMeshCurvEnable != enable )
|
||||||
|
{
|
||||||
|
_restHSurfMeshCurvEnable = enable;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetKeepExistingEdges
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetKeepExistingEdges( bool toKeep )
|
||||||
|
{
|
||||||
|
if ( _keepExistingEdges != toKeep )
|
||||||
|
{
|
||||||
|
_keepExistingEdges = toKeep;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetMakeGroupsOfSurfaces
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetMakeGroupsOfSurfaces( bool toMake )
|
||||||
|
{
|
||||||
|
if ( _makeGroupsOfSurfaces != toMake )
|
||||||
|
{
|
||||||
|
_makeGroupsOfSurfaces = toMake;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetFixedEdgeGroup
|
||||||
|
//purpose : Set a group of edges whose nodes must not be moved
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetFixedEdgeGroup( const SMESH_Group* edgeGroup )
|
||||||
|
{
|
||||||
|
int id = edgeGroup ? edgeGroup->GetID() : -1;
|
||||||
|
if ( id != _fixedEdgeGroupID )
|
||||||
|
{
|
||||||
|
_fixedEdgeGroupID = id;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : SetLoadMeshOnCancel
|
||||||
|
//purpose : allow getting a current mesh existing upon CancelCompute()
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D::SetLoadMeshOnCancel( bool toLoad )
|
||||||
|
{
|
||||||
|
if ( toLoad != _loadOnCancel )
|
||||||
|
{
|
||||||
|
_loadOnCancel = toLoad;
|
||||||
|
NotifySubMeshesHypothesisModification();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : GetFixedEdgeGroup
|
||||||
|
//purpose : Return a group of edges whose nodes must not be moved
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
SMESH_Group*
|
||||||
|
NETGENPlugin_RemesherHypothesis_2D::GetFixedEdgeGroup( const SMESH_Mesh& mesh ) const
|
||||||
|
{
|
||||||
|
SMESH_Group* group = mesh.GetGroup( _fixedEdgeGroupID );
|
||||||
|
if ( group && group->GetGroupDS()->GetType() != SMDSAbs_Edge )
|
||||||
|
group = NULL;
|
||||||
|
|
||||||
|
return group;
|
||||||
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
/*!
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//=============================================================================
|
||||||
|
|
||||||
|
std::ostream & NETGENPlugin_RemesherHypothesis_2D::SaveTo(std::ostream & save)
|
||||||
|
{
|
||||||
|
NETGENPlugin_Hypothesis::SaveTo( save );
|
||||||
|
save << " " << _ridgeAngle;
|
||||||
|
|
||||||
|
save << " " << _edgeCornerAngle ;
|
||||||
|
save << " " << _chartAngle ;
|
||||||
|
save << " " << _outerChartAngle ;
|
||||||
|
save << " " << _restHChartDistFactor ;
|
||||||
|
save << " " << _restHChartDistEnable ;
|
||||||
|
save << " " << _restHLineLengthFactor ;
|
||||||
|
save << " " << _restHLineLengthEnable ;
|
||||||
|
save << " " << _restHCloseEdgeFactor ;
|
||||||
|
save << " " << _restHCloseEdgeEnable ;
|
||||||
|
save << " " << _restHSurfCurvFactor ;
|
||||||
|
save << " " << _restHSurfCurvEnable ;
|
||||||
|
save << " " << _restHEdgeAngleFactor ;
|
||||||
|
save << " " << _restHEdgeAngleEnable ;
|
||||||
|
save << " " << _restHSurfMeshCurvFactor;
|
||||||
|
save << " " << _restHSurfMeshCurvEnable;
|
||||||
|
save << " " << _keepExistingEdges ;
|
||||||
|
save << " " << _makeGroupsOfSurfaces ;
|
||||||
|
save << " " << _fixedEdgeGroupID ;
|
||||||
|
save << " " << _loadOnCancel ;
|
||||||
|
|
||||||
|
return save;
|
||||||
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
/*!
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//=============================================================================
|
||||||
|
|
||||||
|
std::istream & NETGENPlugin_RemesherHypothesis_2D::LoadFrom(std::istream & load)
|
||||||
|
{
|
||||||
|
NETGENPlugin_Hypothesis::LoadFrom( load );
|
||||||
|
if ( !load )
|
||||||
|
load.clear(ios::badbit | load.rdstate());
|
||||||
|
|
||||||
|
load >> _ridgeAngle;
|
||||||
|
|
||||||
|
if ( !load )
|
||||||
|
_ridgeAngle = DefaultRidgeAngle();
|
||||||
|
|
||||||
|
load >> _edgeCornerAngle;
|
||||||
|
if ( !load )
|
||||||
|
_edgeCornerAngle = DefaultEdgeCornerAngle();
|
||||||
|
|
||||||
|
load >> _chartAngle;
|
||||||
|
if ( !load )
|
||||||
|
_chartAngle = DefaultChartAngle();
|
||||||
|
|
||||||
|
load >> _outerChartAngle;
|
||||||
|
if ( !load )
|
||||||
|
_outerChartAngle = DefaultOuterChartAngle();
|
||||||
|
|
||||||
|
load >> _restHChartDistFactor;
|
||||||
|
if ( !load )
|
||||||
|
_restHChartDistFactor = DefaultRestHChartDistFactor();
|
||||||
|
|
||||||
|
load >> _restHChartDistEnable;
|
||||||
|
if ( !load )
|
||||||
|
_restHChartDistEnable = DefaultRestHChartDistEnable();
|
||||||
|
|
||||||
|
load >> _restHLineLengthFactor;
|
||||||
|
if ( !load )
|
||||||
|
_restHLineLengthFactor = DefaultRestHLineLengthFactor();
|
||||||
|
|
||||||
|
load >> _restHLineLengthEnable;
|
||||||
|
if ( !load )
|
||||||
|
_restHLineLengthEnable = DefaultRestHLineLengthEnable();
|
||||||
|
|
||||||
|
load >> _restHCloseEdgeFactor;
|
||||||
|
if ( !load )
|
||||||
|
_restHCloseEdgeFactor = DefaultRestHCloseEdgeFactor();
|
||||||
|
|
||||||
|
load >> _restHCloseEdgeEnable;
|
||||||
|
if ( !load )
|
||||||
|
_restHCloseEdgeEnable = DefaultRestHCloseEdgeEnable();
|
||||||
|
|
||||||
|
load >> _restHSurfCurvFactor;
|
||||||
|
if ( !load )
|
||||||
|
_restHSurfCurvFactor = DefaultRestHSurfCurvFactor();
|
||||||
|
|
||||||
|
load >> _restHSurfCurvEnable;
|
||||||
|
if ( !load )
|
||||||
|
_restHSurfCurvEnable = DefaultRestHSurfCurvEnable();
|
||||||
|
|
||||||
|
load >> _restHEdgeAngleFactor;
|
||||||
|
if ( !load )
|
||||||
|
_restHEdgeAngleFactor = DefaultRestHEdgeAngleFactor();
|
||||||
|
|
||||||
|
load >> _restHEdgeAngleEnable;
|
||||||
|
if ( !load )
|
||||||
|
_restHEdgeAngleEnable = DefaultRestHEdgeAngleEnable();
|
||||||
|
|
||||||
|
load >> _restHSurfMeshCurvFactor;
|
||||||
|
if ( !load )
|
||||||
|
_restHSurfMeshCurvFactor = DefaultRestHSurfMeshCurvFactor();
|
||||||
|
|
||||||
|
load >> _restHSurfMeshCurvEnable;
|
||||||
|
if ( !load )
|
||||||
|
_restHSurfMeshCurvEnable = DefaultRestHSurfMeshCurvEnable();
|
||||||
|
|
||||||
|
load >> _keepExistingEdges;
|
||||||
|
if ( !load )
|
||||||
|
_keepExistingEdges = DefaultKeepExistingEdges();
|
||||||
|
|
||||||
|
load >> _makeGroupsOfSurfaces;
|
||||||
|
if ( !load )
|
||||||
|
_makeGroupsOfSurfaces = DefaultMakeGroupsOfSurfaces();
|
||||||
|
|
||||||
|
load >> _fixedEdgeGroupID;
|
||||||
|
if ( !load )
|
||||||
|
_fixedEdgeGroupID = -1;
|
||||||
|
|
||||||
|
load >> _loadOnCancel;
|
||||||
|
if ( !load )
|
||||||
|
_loadOnCancel = false;
|
||||||
|
|
||||||
|
return load;
|
||||||
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -35,7 +35,9 @@
|
|||||||
#include "NETGENPlugin_Hypothesis.hxx"
|
#include "NETGENPlugin_Hypothesis.hxx"
|
||||||
#include "Utils_SALOME_Exception.hxx"
|
#include "Utils_SALOME_Exception.hxx"
|
||||||
|
|
||||||
// Parameters for work of NETGEN.
|
class SMESH_Group;
|
||||||
|
|
||||||
|
// Parameters of NETGEN.
|
||||||
// This class is just to give 2D dimension, actually
|
// This class is just to give 2D dimension, actually
|
||||||
// it inherits all behaviour of the parent
|
// it inherits all behaviour of the parent
|
||||||
|
|
||||||
@ -43,18 +45,133 @@ class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis_2D: public NETGENPlugin_Hypot
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
NETGENPlugin_Hypothesis_2D(int hypId, int studyId, SMESH_Gen * gen);
|
NETGENPlugin_Hypothesis_2D(int hypId, SMESH_Gen * gen);
|
||||||
|
|
||||||
// void SetQuadAllowed(bool theVal);
|
|
||||||
// bool GetQuadAllowed() const { return _quadAllowed; }
|
|
||||||
// static bool GetDefaultQuadAllowed();
|
|
||||||
|
|
||||||
// Persistence
|
|
||||||
// virtual ostream & SaveTo(ostream & save);
|
|
||||||
// virtual istream & LoadFrom(istream & load);
|
|
||||||
|
|
||||||
// private:
|
// private:
|
||||||
// bool _quadAllowed;
|
// bool _quadAllowed;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// Parameters of NETGEN remesher
|
||||||
|
//
|
||||||
|
|
||||||
|
class NETGENPLUGIN_EXPORT NETGENPlugin_RemesherHypothesis_2D: public NETGENPlugin_Hypothesis
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
NETGENPlugin_RemesherHypothesis_2D(int hypId, SMESH_Gen * gen);
|
||||||
|
|
||||||
|
void SetRidgeAngle( double angle );
|
||||||
|
double GetRidgeAngle() const{ return _ridgeAngle; }
|
||||||
|
|
||||||
|
void SetEdgeCornerAngle( double angle );
|
||||||
|
double GetEdgeCornerAngle() const { return _edgeCornerAngle; }
|
||||||
|
|
||||||
|
void SetChartAngle( double angle );
|
||||||
|
double GetChartAngle() const { return _chartAngle; }
|
||||||
|
|
||||||
|
void SetOuterChartAngle( double angle );
|
||||||
|
double GetOuterChartAngle() const { return _outerChartAngle; }
|
||||||
|
|
||||||
|
void SetRestHChartDistFactor( double f );
|
||||||
|
double GetRestHChartDistFactor() const { return _restHChartDistFactor; }
|
||||||
|
|
||||||
|
void SetRestHChartDistEnable( bool enable );
|
||||||
|
bool GetRestHChartDistEnable() const { return _restHChartDistEnable; }
|
||||||
|
|
||||||
|
void SetRestHLineLengthFactor( double f );
|
||||||
|
double GetRestHLineLengthFactor() const { return _restHLineLengthFactor; }
|
||||||
|
|
||||||
|
void SetRestHLineLengthEnable( bool enable );
|
||||||
|
bool GetRestHLineLengthEnable() const { return _restHLineLengthEnable; }
|
||||||
|
|
||||||
|
void SetRestHCloseEdgeFactor( double f );
|
||||||
|
double GetRestHCloseEdgeFactor() const { return _restHCloseEdgeFactor; }
|
||||||
|
|
||||||
|
void SetRestHCloseEdgeEnable( bool enable );
|
||||||
|
bool GetRestHCloseEdgeEnable() const { return _restHCloseEdgeEnable; }
|
||||||
|
|
||||||
|
void SetRestHSurfCurvFactor( double f );
|
||||||
|
double GetRestHSurfCurvFactor() const { return _restHSurfCurvFactor; }
|
||||||
|
|
||||||
|
void SetRestHSurfCurvEnable( bool enable );
|
||||||
|
bool GetRestHSurfCurvEnable() const { return _restHSurfCurvEnable; }
|
||||||
|
|
||||||
|
void SetRestHEdgeAngleFactor( double f );
|
||||||
|
double GetRestHEdgeAngleFactor() const { return _restHEdgeAngleFactor; }
|
||||||
|
|
||||||
|
void SetRestHEdgeAngleEnable( bool enable );
|
||||||
|
bool GetRestHEdgeAngleEnable() const { return _restHEdgeAngleEnable; }
|
||||||
|
|
||||||
|
void SetRestHSurfMeshCurvFactor( double f );
|
||||||
|
double GetRestHSurfMeshCurvFactor() const { return _restHSurfMeshCurvFactor; }
|
||||||
|
|
||||||
|
void SetRestHSurfMeshCurvEnable( bool enable );
|
||||||
|
bool GetRestHSurfMeshCurvEnable() const { return _restHSurfMeshCurvEnable; }
|
||||||
|
|
||||||
|
void SetKeepExistingEdges( bool toKeep );
|
||||||
|
bool GetKeepExistingEdges() const { return _keepExistingEdges; }
|
||||||
|
|
||||||
|
void SetMakeGroupsOfSurfaces( bool toMake );
|
||||||
|
bool GetMakeGroupsOfSurfaces() const { return _makeGroupsOfSurfaces; }
|
||||||
|
|
||||||
|
void SetFixedEdgeGroup( const SMESH_Group* edgeGroup );
|
||||||
|
int GetFixedEdgeGroupID() const { return _fixedEdgeGroupID; }
|
||||||
|
SMESH_Group* GetFixedEdgeGroup( const SMESH_Mesh& mesh ) const;
|
||||||
|
|
||||||
|
void SetLoadMeshOnCancel( bool toLoad );
|
||||||
|
bool GetLoadMeshOnCancel() const { return _loadOnCancel; }
|
||||||
|
|
||||||
|
static double DefaultRidgeAngle() { return 30.; }
|
||||||
|
static double DefaultEdgeCornerAngle() { return 60.; }
|
||||||
|
static double DefaultChartAngle() { return 15.; }
|
||||||
|
static double DefaultOuterChartAngle() { return 70.; }
|
||||||
|
static double DefaultRestHChartDistFactor() { return 1.2; }
|
||||||
|
static bool DefaultRestHChartDistEnable() { return true; }
|
||||||
|
static double DefaultRestHLineLengthFactor() { return 0.5; }
|
||||||
|
static bool DefaultRestHLineLengthEnable() { return true; }
|
||||||
|
static double DefaultRestHCloseEdgeFactor() { return 1.; }
|
||||||
|
static bool DefaultRestHCloseEdgeEnable() { return true; }
|
||||||
|
static double DefaultRestHSurfCurvFactor() { return 1.; }
|
||||||
|
static bool DefaultRestHSurfCurvEnable() { return false; }
|
||||||
|
static double DefaultRestHEdgeAngleFactor() { return 1.; }
|
||||||
|
static bool DefaultRestHEdgeAngleEnable() { return false; }
|
||||||
|
static double DefaultRestHSurfMeshCurvFactor() { return 1.; }
|
||||||
|
static bool DefaultRestHSurfMeshCurvEnable() { return false; }
|
||||||
|
static bool DefaultKeepExistingEdges() { return false; }
|
||||||
|
static bool DefaultMakeGroupsOfSurfaces() { return false; }
|
||||||
|
|
||||||
|
virtual std::ostream & SaveTo(std::ostream & save);
|
||||||
|
virtual std::istream & LoadFrom(std::istream & load);
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
// STL charts
|
||||||
|
double _ridgeAngle; // yellow edges angle (in degrees)
|
||||||
|
double _edgeCornerAngle;
|
||||||
|
double _chartAngle;
|
||||||
|
double _outerChartAngle;
|
||||||
|
|
||||||
|
// Mesh size: restrict h due to ...
|
||||||
|
double _restHChartDistFactor; // chart distance
|
||||||
|
bool _restHChartDistEnable;
|
||||||
|
double _restHLineLengthFactor; // line length
|
||||||
|
bool _restHLineLengthEnable;
|
||||||
|
double _restHCloseEdgeFactor; // close edges
|
||||||
|
bool _restHCloseEdgeEnable;
|
||||||
|
double _restHSurfCurvFactor; // surface curvature
|
||||||
|
bool _restHSurfCurvEnable;
|
||||||
|
double _restHEdgeAngleFactor; // edge angle
|
||||||
|
bool _restHEdgeAngleEnable;
|
||||||
|
double _restHSurfMeshCurvFactor; // surface mesh curv
|
||||||
|
bool _restHSurfMeshCurvEnable;
|
||||||
|
|
||||||
|
// SALOME features
|
||||||
|
bool _keepExistingEdges;
|
||||||
|
bool _makeGroupsOfSurfaces;
|
||||||
|
int _fixedEdgeGroupID;
|
||||||
|
bool _loadOnCancel;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -38,15 +38,12 @@
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
NETGENPlugin_Hypothesis_2D_ONLY_i::
|
NETGENPlugin_Hypothesis_2D_ONLY_i::
|
||||||
NETGENPlugin_Hypothesis_2D_ONLY_i (PortableServer::POA_ptr thePOA,
|
NETGENPlugin_Hypothesis_2D_ONLY_i (PortableServer::POA_ptr thePOA,
|
||||||
int theStudyId,
|
|
||||||
::SMESH_Gen* theGenImpl)
|
::SMESH_Gen* theGenImpl)
|
||||||
: SALOME::GenericObj_i( thePOA ),
|
: SALOME::GenericObj_i( thePOA ),
|
||||||
SMESH_Hypothesis_i( thePOA ),
|
SMESH_Hypothesis_i( thePOA ),
|
||||||
NETGENPlugin_Hypothesis_2D_i( thePOA, theStudyId, theGenImpl )
|
NETGENPlugin_Hypothesis_2D_i( thePOA, theGenImpl )
|
||||||
{
|
{
|
||||||
MESSAGE( "NETGENPlugin_Hypothesis_2D_ONLY_i::NETGENPlugin_Hypothesis_2D_ONLY_i" );
|
|
||||||
myBaseImpl = new ::NETGENPlugin_Hypothesis_2D (theGenImpl->GetANewId(),
|
myBaseImpl = new ::NETGENPlugin_Hypothesis_2D (theGenImpl->GetANewId(),
|
||||||
theStudyId,
|
|
||||||
theGenImpl);
|
theGenImpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,7 +55,6 @@ NETGENPlugin_Hypothesis_2D_ONLY_i (PortableServer::POA_ptr thePOA,
|
|||||||
|
|
||||||
NETGENPlugin_Hypothesis_2D_ONLY_i::~NETGENPlugin_Hypothesis_2D_ONLY_i()
|
NETGENPlugin_Hypothesis_2D_ONLY_i::~NETGENPlugin_Hypothesis_2D_ONLY_i()
|
||||||
{
|
{
|
||||||
MESSAGE( "NETGENPlugin_Hypothesis_2D_ONLY_i::~NETGENPlugin_Hypothesis_2D_ONLY_i" );
|
|
||||||
}
|
}
|
||||||
//================================================================================
|
//================================================================================
|
||||||
/*!
|
/*!
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -46,7 +46,6 @@ class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis_2D_ONLY_i:
|
|||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
NETGENPlugin_Hypothesis_2D_ONLY_i (PortableServer::POA_ptr thePOA,
|
NETGENPlugin_Hypothesis_2D_ONLY_i (PortableServer::POA_ptr thePOA,
|
||||||
int theStudyId,
|
|
||||||
::SMESH_Gen* theGenImpl);
|
::SMESH_Gen* theGenImpl);
|
||||||
// Destructor
|
// Destructor
|
||||||
virtual ~NETGENPlugin_Hypothesis_2D_ONLY_i();
|
virtual ~NETGENPlugin_Hypothesis_2D_ONLY_i();
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -28,13 +28,12 @@
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
//
|
//
|
||||||
#include "NETGENPlugin_Hypothesis_2D_i.hxx"
|
#include "NETGENPlugin_Hypothesis_2D_i.hxx"
|
||||||
#include "SMESH_Gen.hxx"
|
|
||||||
#include "SMESH_PythonDump.hxx"
|
|
||||||
|
|
||||||
#include "Utils_CorbaException.hxx"
|
#include <SMESH_Gen.hxx>
|
||||||
#include "utilities.h"
|
#include <SMESH_Gen_i.hxx>
|
||||||
|
#include <SMESH_Group_i.hxx>
|
||||||
using namespace std;
|
#include <SMESH_Group.hxx>
|
||||||
|
#include <SMESH_PythonDump.hxx>
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
@ -45,17 +44,14 @@ using namespace std;
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
NETGENPlugin_Hypothesis_2D_i::
|
NETGENPlugin_Hypothesis_2D_i::
|
||||||
NETGENPlugin_Hypothesis_2D_i (PortableServer::POA_ptr thePOA,
|
NETGENPlugin_Hypothesis_2D_i (PortableServer::POA_ptr thePOA,
|
||||||
int theStudyId,
|
|
||||||
::SMESH_Gen* theGenImpl)
|
::SMESH_Gen* theGenImpl)
|
||||||
: SALOME::GenericObj_i( thePOA ),
|
: SALOME::GenericObj_i( thePOA ),
|
||||||
SMESH_Hypothesis_i( thePOA ),
|
SMESH_Hypothesis_i( thePOA ),
|
||||||
NETGENPlugin_Hypothesis_i( thePOA, theStudyId, theGenImpl )
|
NETGENPlugin_Hypothesis_i( thePOA, theGenImpl )
|
||||||
{
|
{
|
||||||
MESSAGE( "NETGENPlugin_Hypothesis_2D_i::NETGENPlugin_Hypothesis_2D_i" );
|
|
||||||
if (myBaseImpl)
|
if (myBaseImpl)
|
||||||
delete (::NETGENPlugin_Hypothesis*)myBaseImpl;
|
delete (::NETGENPlugin_Hypothesis*)myBaseImpl;
|
||||||
myBaseImpl = new ::NETGENPlugin_Hypothesis_2D (theGenImpl->GetANewId(),
|
myBaseImpl = new ::NETGENPlugin_Hypothesis_2D (theGenImpl->GetANewId(),
|
||||||
theStudyId,
|
|
||||||
theGenImpl);
|
theGenImpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,39 +64,8 @@ NETGENPlugin_Hypothesis_2D_i (PortableServer::POA_ptr thePOA,
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
NETGENPlugin_Hypothesis_2D_i::~NETGENPlugin_Hypothesis_2D_i()
|
NETGENPlugin_Hypothesis_2D_i::~NETGENPlugin_Hypothesis_2D_i()
|
||||||
{
|
{
|
||||||
MESSAGE( "NETGENPlugin_Hypothesis_2D_i::~NETGENPlugin_Hypothesis_2D_i" );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
* NETGENPlugin_Hypothesis_2D_i::SetQuadAllowed
|
|
||||||
*
|
|
||||||
* Set QuadAllowed flag
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
// void NETGENPlugin_Hypothesis_2D_i::SetQuadAllowed (CORBA::Boolean theValue)
|
|
||||||
// {
|
|
||||||
// if ( NETGENPlugin_Hypothesis_i::isToSetParameter( GetQuadAllowed(),
|
|
||||||
// theValue,
|
|
||||||
// METH_SetQuadAllowed ))
|
|
||||||
// {
|
|
||||||
// this->GetImpl()->SetQuadAllowed(theValue);
|
|
||||||
// SMESH::TPythonDump() << _this() << ".SetQuadAllowed( " << theValue << " )";
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
* NETGENPlugin_Hypothesis_2D_i::GetQuadAllowed
|
|
||||||
*
|
|
||||||
* Get QuadAllowed flag
|
|
||||||
*/
|
|
||||||
//=============================================================================
|
|
||||||
// CORBA::Boolean NETGENPlugin_Hypothesis_2D_i::GetQuadAllowed()
|
|
||||||
// {
|
|
||||||
// return this->GetImpl()->GetQuadAllowed();
|
|
||||||
// }
|
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
* NETGENPlugin_Hypothesis_2D_i::GetImpl
|
* NETGENPlugin_Hypothesis_2D_i::GetImpl
|
||||||
@ -126,3 +91,378 @@ CORBA::Boolean NETGENPlugin_Hypothesis_2D_i::IsDimSupported( SMESH::Dimension ty
|
|||||||
{
|
{
|
||||||
return type == SMESH::DIM_2D;
|
return type == SMESH::DIM_2D;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
/*!
|
||||||
|
* NETGENPlugin_RemesherHypothesis_2D_i::NETGENPlugin_RemesherHypothesis_2D_i
|
||||||
|
*
|
||||||
|
* Constructor
|
||||||
|
*/
|
||||||
|
//=============================================================================
|
||||||
|
NETGENPlugin_RemesherHypothesis_2D_i::
|
||||||
|
NETGENPlugin_RemesherHypothesis_2D_i (PortableServer::POA_ptr thePOA,
|
||||||
|
::SMESH_Gen* theGenImpl)
|
||||||
|
: SALOME::GenericObj_i( thePOA ),
|
||||||
|
SMESH_Hypothesis_i( thePOA ),
|
||||||
|
NETGENPlugin_Hypothesis_2D_i( thePOA, theGenImpl )
|
||||||
|
{
|
||||||
|
myBaseImpl = new ::NETGENPlugin_RemesherHypothesis_2D (theGenImpl->GetANewId(),
|
||||||
|
theGenImpl);
|
||||||
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Verify whether hypothesis supports given entity type
|
||||||
|
* \param type - dimension (see SMESH::Dimension enumeration)
|
||||||
|
* \retval CORBA::Boolean - TRUE if dimension is supported, FALSE otherwise
|
||||||
|
*
|
||||||
|
* Verify whether hypothesis supports given entity type (see SMESH::Dimension enumeration)
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::IsDimSupported( SMESH::Dimension type )
|
||||||
|
{
|
||||||
|
return type == SMESH::DIM_2D;
|
||||||
|
}
|
||||||
|
|
||||||
|
//=============================================================================
|
||||||
|
/*!
|
||||||
|
* NETGENPlugin_RemesherHypothesis_2D_i::GetImpl
|
||||||
|
*
|
||||||
|
* Get implementation
|
||||||
|
*/
|
||||||
|
//=============================================================================
|
||||||
|
::NETGENPlugin_RemesherHypothesis_2D* NETGENPlugin_RemesherHypothesis_2D_i::GetImpl()
|
||||||
|
{
|
||||||
|
return (::NETGENPlugin_RemesherHypothesis_2D*)myBaseImpl;
|
||||||
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Set ridge angle
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRidgeAngle( CORBA::Double angle )
|
||||||
|
{
|
||||||
|
if ( GetRidgeAngle() != angle )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRidgeAngle( angle );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRidgeAngle( " << SMESH::TVar(angle) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Return ridge angle
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetRidgeAngle()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRidgeAngle();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetEdgeCornerAngle(CORBA::Double angle )
|
||||||
|
{
|
||||||
|
if ( GetEdgeCornerAngle() != angle )
|
||||||
|
{
|
||||||
|
GetImpl()->SetEdgeCornerAngle( angle );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetEdgeCornerAngle( " << SMESH::TVar(angle) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetEdgeCornerAngle()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetEdgeCornerAngle();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetChartAngle(CORBA::Double angle )
|
||||||
|
{
|
||||||
|
if ( GetChartAngle() != angle )
|
||||||
|
{
|
||||||
|
GetImpl()->SetChartAngle( angle );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetChartAngle( " << SMESH::TVar(angle) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetChartAngle()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetChartAngle();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetOuterChartAngle(CORBA::Double angle )
|
||||||
|
{
|
||||||
|
if ( GetOuterChartAngle() != angle )
|
||||||
|
{
|
||||||
|
GetImpl()->SetOuterChartAngle( angle );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetOuterChartAngle( " << SMESH::TVar(angle) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetOuterChartAngle()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetOuterChartAngle();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHChartDistFactor(CORBA::Double f )
|
||||||
|
{
|
||||||
|
if ( GetRestHChartDistFactor() != f )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHChartDistFactor( f );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHChartDistFactor( " << SMESH::TVar(f) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetRestHChartDistFactor()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHChartDistFactor();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHChartDistEnable(CORBA::Boolean enable )
|
||||||
|
{
|
||||||
|
if ( GetRestHChartDistEnable() != enable )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHChartDistEnable( enable );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHChartDistEnable( " << enable << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::GetRestHChartDistEnable()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHChartDistEnable();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHLineLengthFactor(CORBA::Double f )
|
||||||
|
{
|
||||||
|
if ( GetRestHLineLengthFactor() != f )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHLineLengthFactor( f );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHLineLengthFactor( " << SMESH::TVar(f) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetRestHLineLengthFactor()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHLineLengthFactor();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHLineLengthEnable(CORBA::Boolean enable )
|
||||||
|
{
|
||||||
|
if ( GetRestHLineLengthEnable() != enable )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHLineLengthEnable( enable );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHLineLengthEnable( " << enable << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::GetRestHLineLengthEnable()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHLineLengthEnable();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHCloseEdgeFactor(CORBA::Double f )
|
||||||
|
{
|
||||||
|
if ( GetRestHCloseEdgeFactor() != f )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHCloseEdgeFactor( f );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHCloseEdgeFactor( " << SMESH::TVar(f) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetRestHCloseEdgeFactor()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHCloseEdgeFactor();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHCloseEdgeEnable(CORBA::Boolean enable )
|
||||||
|
{
|
||||||
|
if ( GetRestHCloseEdgeEnable() != enable )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHCloseEdgeEnable( enable );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHCloseEdgeEnable( " << enable << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::GetRestHCloseEdgeEnable()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHCloseEdgeEnable();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHSurfCurvFactor(CORBA::Double f )
|
||||||
|
{
|
||||||
|
if ( GetRestHSurfCurvFactor() != f )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHSurfCurvFactor( f );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHSurfCurvFactor( " << SMESH::TVar(f) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetRestHSurfCurvFactor()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHSurfCurvFactor();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHSurfCurvEnable(CORBA::Boolean enable )
|
||||||
|
{
|
||||||
|
if ( GetRestHSurfCurvEnable() != enable )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHSurfCurvEnable( enable );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHSurfCurvEnable( " << enable << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::GetRestHSurfCurvEnable()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHSurfCurvEnable();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHEdgeAngleFactor(CORBA::Double f )
|
||||||
|
{
|
||||||
|
if ( GetRestHEdgeAngleFactor() != f )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHEdgeAngleFactor( f );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHEdgeAngleFactor( " << SMESH::TVar(f) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetRestHEdgeAngleFactor()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHEdgeAngleFactor();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHEdgeAngleEnable(CORBA::Boolean enable )
|
||||||
|
{
|
||||||
|
if ( GetRestHEdgeAngleEnable() != enable )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHEdgeAngleEnable( enable );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHEdgeAngleEnable( " << enable << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::GetRestHEdgeAngleEnable()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHEdgeAngleEnable();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHSurfMeshCurvFactor(CORBA::Double f )
|
||||||
|
{
|
||||||
|
if ( GetRestHSurfMeshCurvFactor() != f )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHSurfMeshCurvFactor( f );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHSurfMeshCurvFactor( " << SMESH::TVar(f) << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Double NETGENPlugin_RemesherHypothesis_2D_i::GetRestHSurfMeshCurvFactor()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHSurfMeshCurvFactor();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetRestHSurfMeshCurvEnable(CORBA::Boolean enable )
|
||||||
|
{
|
||||||
|
if ( GetRestHSurfMeshCurvEnable() != enable )
|
||||||
|
{
|
||||||
|
GetImpl()->SetRestHSurfMeshCurvEnable( enable );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetRestHSurfMeshCurvEnable( " << enable << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::GetRestHSurfMeshCurvEnable()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetRestHSurfMeshCurvEnable();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetKeepExistingEdges( CORBA::Boolean toKeep )
|
||||||
|
{
|
||||||
|
if ( GetKeepExistingEdges() != toKeep )
|
||||||
|
{
|
||||||
|
GetImpl()->SetKeepExistingEdges( toKeep );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetKeepExistingEdges( " << toKeep << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::GetKeepExistingEdges()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetKeepExistingEdges();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetMakeGroupsOfSurfaces( CORBA::Boolean toMake )
|
||||||
|
{
|
||||||
|
if ( GetMakeGroupsOfSurfaces() != toMake )
|
||||||
|
{
|
||||||
|
GetImpl()->SetMakeGroupsOfSurfaces( toMake );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetMakeGroupsOfSurfaces( " << toMake << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::GetMakeGroupsOfSurfaces()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetMakeGroupsOfSurfaces();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
NETGENPlugin_RemesherHypothesis_2D_i::SetFixedEdgeGroup( SMESH::SMESH_GroupBase_ptr edgeGroup )
|
||||||
|
{
|
||||||
|
const SMESH_Group * group = 0;
|
||||||
|
if ( SMESH_GroupBase_i* group_i = SMESH::DownCast< SMESH_GroupBase_i* >( edgeGroup ))
|
||||||
|
{
|
||||||
|
if ( group_i->GetType() == SMESH::EDGE )
|
||||||
|
group = group_i->GetSmeshGroup();
|
||||||
|
}
|
||||||
|
|
||||||
|
int id = group ? group->GetID() : -1;
|
||||||
|
if ( id != GetImpl()->GetFixedEdgeGroupID() )
|
||||||
|
{
|
||||||
|
GetImpl()->SetFixedEdgeGroup( group );
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetFixedEdgeGroup( " << edgeGroup << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SMESH::SMESH_GroupBase_ptr
|
||||||
|
NETGENPlugin_RemesherHypothesis_2D_i::GetFixedEdgeGroup( SMESH::SMESH_Mesh_ptr mesh )
|
||||||
|
{
|
||||||
|
SMESH::SMESH_GroupBase_var resGroup;
|
||||||
|
if ( SMESH_Mesh_i* mesh_i = SMESH::DownCast< SMESH_Mesh_i* >( mesh ))
|
||||||
|
{
|
||||||
|
const std::map<int, SMESH::SMESH_GroupBase_ptr>& groups = mesh_i->getGroups();
|
||||||
|
std::map<int, SMESH::SMESH_GroupBase_ptr>::const_iterator i_gr =
|
||||||
|
groups.find( GetImpl()->GetFixedEdgeGroupID() );
|
||||||
|
if ( i_gr != groups.end() && i_gr->second->GetType() == SMESH::EDGE )
|
||||||
|
resGroup = SMESH::SMESH_GroupBase::_duplicate( i_gr->second );
|
||||||
|
}
|
||||||
|
return resGroup._retn();
|
||||||
|
}
|
||||||
|
|
||||||
|
void NETGENPlugin_RemesherHypothesis_2D_i::SetLoadMeshOnCancel( CORBA::Boolean toMake )
|
||||||
|
{
|
||||||
|
if ( GetLoadMeshOnCancel() != toMake )
|
||||||
|
{
|
||||||
|
GetImpl()->SetLoadMeshOnCancel( toMake );
|
||||||
|
|
||||||
|
SMESH::TPythonDump() << _this() << ".SetLoadMeshOnCancel( " << toMake << " )";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CORBA::Boolean NETGENPlugin_RemesherHypothesis_2D_i::GetLoadMeshOnCancel()
|
||||||
|
{
|
||||||
|
return GetImpl()->GetLoadMeshOnCancel();
|
||||||
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -49,7 +49,6 @@ class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis_2D_i:
|
|||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
NETGENPlugin_Hypothesis_2D_i (PortableServer::POA_ptr thePOA,
|
NETGENPlugin_Hypothesis_2D_i (PortableServer::POA_ptr thePOA,
|
||||||
int theStudyId,
|
|
||||||
::SMESH_Gen* theGenImpl);
|
::SMESH_Gen* theGenImpl);
|
||||||
// Destructor
|
// Destructor
|
||||||
virtual ~NETGENPlugin_Hypothesis_2D_i();
|
virtual ~NETGENPlugin_Hypothesis_2D_i();
|
||||||
@ -70,4 +69,83 @@ class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis_2D_i:
|
|||||||
// };
|
// };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// NETGENPlugin_Remesher_2D parameters hypothesis
|
||||||
|
|
||||||
|
class NETGENPLUGIN_EXPORT NETGENPlugin_RemesherHypothesis_2D_i:
|
||||||
|
public virtual POA_NETGENPlugin::NETGENPlugin_RemesherHypothesis_2D,
|
||||||
|
public NETGENPlugin_Hypothesis_2D_i
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
// Constructor
|
||||||
|
NETGENPlugin_RemesherHypothesis_2D_i( PortableServer::POA_ptr thePOA,
|
||||||
|
::SMESH_Gen* theGenImpl);
|
||||||
|
|
||||||
|
void SetRidgeAngle( CORBA::Double angle );
|
||||||
|
CORBA::Double GetRidgeAngle();
|
||||||
|
|
||||||
|
void SetEdgeCornerAngle( CORBA::Double angle );
|
||||||
|
CORBA::Double GetEdgeCornerAngle();
|
||||||
|
|
||||||
|
void SetChartAngle( CORBA::Double angle );
|
||||||
|
CORBA::Double GetChartAngle();
|
||||||
|
|
||||||
|
void SetOuterChartAngle( CORBA::Double angle );
|
||||||
|
CORBA::Double GetOuterChartAngle();
|
||||||
|
|
||||||
|
void SetRestHChartDistFactor( CORBA::Double f );
|
||||||
|
CORBA::Double GetRestHChartDistFactor();
|
||||||
|
|
||||||
|
void SetRestHChartDistEnable( CORBA::Boolean enable );
|
||||||
|
CORBA::Boolean GetRestHChartDistEnable();
|
||||||
|
|
||||||
|
void SetRestHLineLengthFactor( CORBA::Double f );
|
||||||
|
CORBA::Double GetRestHLineLengthFactor();
|
||||||
|
|
||||||
|
void SetRestHLineLengthEnable( CORBA::Boolean enable );
|
||||||
|
CORBA::Boolean GetRestHLineLengthEnable();
|
||||||
|
|
||||||
|
void SetRestHCloseEdgeFactor( CORBA::Double f );
|
||||||
|
CORBA::Double GetRestHCloseEdgeFactor();
|
||||||
|
|
||||||
|
void SetRestHCloseEdgeEnable( CORBA::Boolean enable );
|
||||||
|
CORBA::Boolean GetRestHCloseEdgeEnable();
|
||||||
|
|
||||||
|
void SetRestHSurfCurvFactor( CORBA::Double f );
|
||||||
|
CORBA::Double GetRestHSurfCurvFactor();
|
||||||
|
|
||||||
|
void SetRestHSurfCurvEnable( CORBA::Boolean enable );
|
||||||
|
CORBA::Boolean GetRestHSurfCurvEnable();
|
||||||
|
|
||||||
|
void SetRestHEdgeAngleFactor( CORBA::Double f );
|
||||||
|
CORBA::Double GetRestHEdgeAngleFactor();
|
||||||
|
|
||||||
|
void SetRestHEdgeAngleEnable( CORBA::Boolean enable );
|
||||||
|
CORBA::Boolean GetRestHEdgeAngleEnable();
|
||||||
|
|
||||||
|
void SetRestHSurfMeshCurvFactor( CORBA::Double f );
|
||||||
|
CORBA::Double GetRestHSurfMeshCurvFactor();
|
||||||
|
|
||||||
|
void SetRestHSurfMeshCurvEnable( CORBA::Boolean enable );
|
||||||
|
CORBA::Boolean GetRestHSurfMeshCurvEnable();
|
||||||
|
|
||||||
|
void SetKeepExistingEdges( CORBA::Boolean toKeep );
|
||||||
|
CORBA::Boolean GetKeepExistingEdges();
|
||||||
|
|
||||||
|
void SetMakeGroupsOfSurfaces( CORBA::Boolean toMake );
|
||||||
|
CORBA::Boolean GetMakeGroupsOfSurfaces();
|
||||||
|
|
||||||
|
void SetFixedEdgeGroup( SMESH::SMESH_GroupBase_ptr edgeGroup );
|
||||||
|
SMESH::SMESH_GroupBase_ptr GetFixedEdgeGroup( SMESH::SMESH_Mesh_ptr mesh );
|
||||||
|
|
||||||
|
void SetLoadMeshOnCancel( CORBA::Boolean toLoad );
|
||||||
|
CORBA::Boolean GetLoadMeshOnCancel();
|
||||||
|
|
||||||
|
|
||||||
|
// Get implementation
|
||||||
|
::NETGENPlugin_RemesherHypothesis_2D* GetImpl();
|
||||||
|
|
||||||
|
// Verify whether hypothesis supports given entity type
|
||||||
|
CORBA::Boolean IsDimSupported( SMESH::Dimension type );
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
//
|
//
|
||||||
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -6,7 +6,7 @@
|
|||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// 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.
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This library is distributed in the hope that it will be useful,
|
// This library is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -40,13 +40,12 @@ using namespace std;
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
NETGENPlugin_Hypothesis_3D_i::
|
NETGENPlugin_Hypothesis_3D_i::
|
||||||
NETGENPlugin_Hypothesis_3D_i (PortableServer::POA_ptr thePOA,
|
NETGENPlugin_Hypothesis_3D_i (PortableServer::POA_ptr thePOA,
|
||||||
int theStudyId,
|
|
||||||
::SMESH_Gen* theGenImpl)
|
::SMESH_Gen* theGenImpl)
|
||||||
: SALOME::GenericObj_i( thePOA ),
|
: SALOME::GenericObj_i( thePOA ),
|
||||||
SMESH_Hypothesis_i( thePOA ),
|
SMESH_Hypothesis_i( thePOA ),
|
||||||
NETGENPlugin_Hypothesis_i( thePOA, theStudyId, theGenImpl )
|
NETGENPlugin_Hypothesis_i( thePOA, theGenImpl )
|
||||||
{
|
{
|
||||||
MESSAGE( "NETGENPlugin_Hypothesis_3D_i::NETGENPlugin_Hypothesis_3D_i" );
|
//MESSAGE( "NETGENPlugin_Hypothesis_3D_i::NETGENPlugin_Hypothesis_3D_i" );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -56,7 +55,7 @@ NETGENPlugin_Hypothesis_3D_i (PortableServer::POA_ptr thePOA,
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
NETGENPlugin_Hypothesis_3D_i::~NETGENPlugin_Hypothesis_3D_i()
|
NETGENPlugin_Hypothesis_3D_i::~NETGENPlugin_Hypothesis_3D_i()
|
||||||
{
|
{
|
||||||
MESSAGE( "NETGENPlugin_Hypothesis_3D_i::~NETGENPlugin_Hypothesis_3D_i" );
|
//MESSAGE( "NETGENPlugin_Hypothesis_3D_i::~NETGENPlugin_Hypothesis_3D_i" );
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|