merge master
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2012-2015 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
|
||||
@ -28,8 +28,8 @@ CMAKE_POLICY(SET CMP0003 NEW)
|
||||
STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
|
||||
|
||||
SET(${PROJECT_NAME_UC}_MAJOR_VERSION 7)
|
||||
SET(${PROJECT_NAME_UC}_MINOR_VERSION 4)
|
||||
SET(${PROJECT_NAME_UC}_PATCH_VERSION 1)
|
||||
SET(${PROJECT_NAME_UC}_MINOR_VERSION 7)
|
||||
SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
|
||||
SET(${PROJECT_NAME_UC}_VERSION
|
||||
${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
|
||||
SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
|
||||
@ -42,6 +42,8 @@ IF(EXISTS ${KERNEL_ROOT_DIR})
|
||||
INCLUDE(SalomeMacros)
|
||||
FIND_PACKAGE(SalomeKERNEL REQUIRED)
|
||||
KERNEL_WITH_CORBA() #check whether KERNEL builded with CORBA
|
||||
ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
|
||||
INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
|
||||
ELSE(EXISTS ${KERNEL_ROOT_DIR})
|
||||
MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR")
|
||||
ENDIF(EXISTS ${KERNEL_ROOT_DIR})
|
||||
@ -101,9 +103,6 @@ FIND_PACKAGE(SalomeLibXml2 REQUIRED)
|
||||
FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
|
||||
|
||||
# Other KERNEL optionals:
|
||||
IF(SALOME_USE_MPI)
|
||||
FIND_PACKAGE(SalomeMPI) # needed for doc generation by Sphinx
|
||||
ENDIF()
|
||||
IF(SALOME_BUILD_TESTS)
|
||||
ENABLE_TESTING()
|
||||
FIND_PACKAGE(SalomeCppUnit)
|
||||
@ -122,7 +121,9 @@ IF(SALOME_BUILD_GUI)
|
||||
IF(EXISTS ${GUI_ROOT_DIR})
|
||||
LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
|
||||
FIND_PACKAGE(SalomeGUI)
|
||||
FULL_GUI(TRUE) #check whether GUI builded in full mode and with CORBA
|
||||
SALOME_GUI_WITH_CORBA() #check whether GUI builded with CORBA
|
||||
SALOME_GUI_MODE(SALOME_USE_VTKVIEWER SALOME_USE_SALOMEOBJECT
|
||||
OPTIONAL SALOME_USE_PLOT2DVIEWER SALOME_USE_PYCONSOLE)
|
||||
##
|
||||
## Prerequisites From GUI:
|
||||
##
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
// Copyright (C) 2007-2015 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
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
|
||||
###############################################################
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2012-2015 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
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
|
||||
#########################################################################
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2013-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2013-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2013-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2013-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2013-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2013-2015 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
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
|
||||
#########################################################################
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
@ -41,21 +41,65 @@ ENDIF(TBB_ROOT_DIR)
|
||||
|
||||
FIND_PATH(TBB_INCLUDE_DIRS tbb/tbb.h PATH_SUFFIXES include)
|
||||
|
||||
SET(TBBKERNEL cc4.1.0_libc2.4_kernel2.6.16.21)
|
||||
|
||||
IF(MACHINE_IS_64)
|
||||
SET(LIB_SUFFIX lib/intel64/${TBBKERNEL})
|
||||
SET(PLT_SUFFIX intel64)
|
||||
ELSE(MACHINE_IS_64)
|
||||
SET(LIB_SUFFIX lib/ia32/${TBBKERNEL})
|
||||
SET(PLT_SUFFIX ia32)
|
||||
ENDIF(MACHINE_IS_64)
|
||||
|
||||
FIND_LIBRARY(TBB_LIBRARY_tbb NAMES tbb PATH_SUFFIXES "${LIB_SUFFIX}")
|
||||
FIND_LIBRARY(TBB_LIBRATY_tbbmalloc NAMES tbbmalloc PATH_SUFFIXES "${LIB_SUFFIX}")
|
||||
include(CheckCXXSourceCompiles)
|
||||
|
||||
SET(TBB_LIBRARIES
|
||||
${TBB_LIBRARY_tbb}
|
||||
${TBB_LIBRATY_tbbmalloc}
|
||||
)
|
||||
FOREACH(_kernel cc4.1.0_libc2.4_kernel2.6.16.21 gcc4.4 gcc4.1)
|
||||
|
||||
FIND_LIBRARY(_tbb_library_tbb${_kernel} NAMES tbb PATH_SUFFIXES lib/${PLT_SUFFIX}/${_kernel})
|
||||
FIND_LIBRARY(_tbb_library_tbbmalloc${_kernel} NAMES tbbmalloc PATH_SUFFIXES lib/${PLT_SUFFIX}/${_kernel})
|
||||
|
||||
SET(_tbb_libraries${_kernel} ${_tbb_library_tbb${_kernel}} ${_tbb_library_tbbmalloc${_kernel}})
|
||||
|
||||
IF(_tbb_libraries${_kernel})
|
||||
|
||||
SET(CMAKE_REQUIRED_INCLUDES_SAVE ${CMAKE_REQUIRED_INCLUDES})
|
||||
SET(CMAKE_REQUIRED_LIBRARIES_SAVE ${CMAKE_REQUIRED_LIBRARIES})
|
||||
SET(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES} ${TBB_INCLUDE_DIRS}")
|
||||
SET(CMAKE_REQUIRED_LIBRARIES "${_tbb_libraries${_kernel}}")
|
||||
|
||||
CHECK_CXX_SOURCE_COMPILES("
|
||||
#include <tbb/tbb.h>
|
||||
using namespace tbb;
|
||||
size_t testme(size_t n)
|
||||
{
|
||||
return n*n;
|
||||
}
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
parallel_for<size_t>( 1, 10, 1, testme );
|
||||
}
|
||||
"
|
||||
_tbb_link_ok${_kernel}
|
||||
)
|
||||
|
||||
SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_SAVE})
|
||||
SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_SAVE})
|
||||
|
||||
IF(_tbb_link_ok${_kernel})
|
||||
SET(_tbb_link_ok ${_tbb_link_ok${_kernel}})
|
||||
SET(TBB_LIBRARY_tbb ${_tbb_library_tbb${_kernel}} CACHE FILEPATH "Path to a library")
|
||||
SET(TBB_LIBRARY_tbbmalloc ${_tbb_library_tbbmalloc${_kernel}} CACHE FILEPATH "Path to a library")
|
||||
SET(TBB_LIBRARIES ${TBB_LIBRARY_tbb} ${TBB_LIBRARY_tbbmalloc})
|
||||
ENDIF()
|
||||
|
||||
UNSET(_tbb_link_ok${_kernel} CACHE)
|
||||
|
||||
ENDIF(_tbb_libraries${_kernel})
|
||||
|
||||
UNSET(_tbb_library_tbb${_kernel} CACHE)
|
||||
UNSET(_tbb_library_tbbmalloc${_kernel} CACHE)
|
||||
|
||||
IF(_tbb_link_ok)
|
||||
BREAK()
|
||||
ENDIF()
|
||||
|
||||
ENDFOREACH()
|
||||
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB REQUIRED_VARS TBB_INCLUDE_DIRS TBB_LIBRARY_tbb TBB_LIBRATY_tbbmalloc)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB REQUIRED_VARS TBB_INCLUDE_DIRS TBB_LIBRARY_tbb TBB_LIBRARY_tbbmalloc)
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
#########################################################################
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2012-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
dnl Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl
|
||||
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
|
@ -1,4 +1,4 @@
|
||||
dnl Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl
|
||||
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
|
@ -1,4 +1,4 @@
|
||||
dnl Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl
|
||||
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
|
@ -1,4 +1,4 @@
|
||||
dnl Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl
|
||||
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
|
@ -1,4 +1,4 @@
|
||||
dnl Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl
|
||||
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
|
@ -1,4 +1,4 @@
|
||||
dnl Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl
|
||||
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
|
@ -1,4 +1,4 @@
|
||||
dnl Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
dnl
|
||||
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2012-2015 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2012-2015 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
|
||||
@ -95,6 +95,7 @@ SET(GOOD_TESTS
|
||||
filters_ex33.py
|
||||
filters_ex34.py
|
||||
filters_ex36.py
|
||||
filters_belong2group.py
|
||||
grouping_elements_ex01.py
|
||||
grouping_elements_ex02.py
|
||||
grouping_elements_ex03.py
|
||||
@ -164,6 +165,7 @@ SET(GOOD_TESTS
|
||||
transforming_meshes_ex13.py
|
||||
use_existing_faces.py
|
||||
viewing_meshes_ex02.py
|
||||
split_biquad.py
|
||||
)
|
||||
|
||||
SET(EXAMPLES_TESTS ${BAD_TESTS} ${GOOD_TESTS} testme.py)
|
||||
@ -179,3 +181,12 @@ ENDFOREACH()
|
||||
|
||||
# install Python scripts
|
||||
SALOME_INSTALL_SCRIPTS("${EXAMPLES_TESTS}" ${SALOME_INSTALL_DOC}/examples/SMESH)
|
||||
|
||||
# Application tests
|
||||
|
||||
SET(TEST_INSTALL_DIRECTORY ${SALOME_INSTALL_SCRIPT_SCRIPTS}/test)
|
||||
INSTALL(FILES ${GOOD_TESTS} DESTINATION ${TEST_INSTALL_DIRECTORY})
|
||||
|
||||
INSTALL(FILES CTestTestfileInstall.cmake
|
||||
DESTINATION ${TEST_INSTALL_DIRECTORY}
|
||||
RENAME CTestTestfile.cmake)
|
||||
|
150
doc/salome/examples/CTestTestfileInstall.cmake
Normal file
@ -0,0 +1,150 @@
|
||||
# Copyright (C) 2015 CEA/DEN, EDF R&D
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2.1 of the License, 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
|
||||
#
|
||||
|
||||
SET(SALOME_TEST_DRIVER "$ENV{ABSOLUTE_APPLI_PATH}/bin/salome/appliskel/salome_test_driver.py")
|
||||
SET(COMPONENT_NAME SMESH)
|
||||
SET(TIMEOUT 300)
|
||||
|
||||
SET(GOOD_TESTS
|
||||
cartesian_algo
|
||||
creating_meshes_ex02
|
||||
creating_meshes_ex04
|
||||
creating_meshes_ex06
|
||||
creating_meshes_ex07
|
||||
creating_meshes_ex08
|
||||
defining_hypotheses_ex01
|
||||
defining_hypotheses_ex02
|
||||
defining_hypotheses_ex03
|
||||
defining_hypotheses_ex04
|
||||
defining_hypotheses_ex05
|
||||
defining_hypotheses_ex07
|
||||
defining_hypotheses_ex08
|
||||
defining_hypotheses_ex10
|
||||
defining_hypotheses_ex11
|
||||
defining_hypotheses_ex12
|
||||
defining_hypotheses_ex13
|
||||
defining_hypotheses_ex14
|
||||
defining_hypotheses_ex15
|
||||
defining_hypotheses_ex16
|
||||
defining_hypotheses_adaptive1d
|
||||
filters_ex01
|
||||
filters_ex03
|
||||
filters_ex04
|
||||
filters_ex05
|
||||
filters_ex06
|
||||
filters_ex07
|
||||
filters_ex09
|
||||
filters_ex10
|
||||
filters_ex11
|
||||
filters_ex12
|
||||
filters_ex13
|
||||
filters_ex14
|
||||
filters_ex15
|
||||
filters_ex16
|
||||
filters_ex17
|
||||
filters_ex18
|
||||
filters_ex19
|
||||
filters_ex20
|
||||
filters_ex21
|
||||
filters_ex22
|
||||
filters_ex26
|
||||
filters_ex27
|
||||
filters_ex28
|
||||
filters_ex29
|
||||
filters_ex30
|
||||
filters_ex31
|
||||
filters_ex33
|
||||
filters_ex34
|
||||
filters_ex36
|
||||
grouping_elements_ex01
|
||||
grouping_elements_ex02
|
||||
grouping_elements_ex03
|
||||
grouping_elements_ex04
|
||||
grouping_elements_ex05
|
||||
grouping_elements_ex06
|
||||
grouping_elements_ex07
|
||||
grouping_elements_ex08
|
||||
measurements_ex01
|
||||
measurements_ex02
|
||||
modifying_meshes_ex01
|
||||
modifying_meshes_ex02
|
||||
modifying_meshes_ex03
|
||||
modifying_meshes_ex04
|
||||
modifying_meshes_ex05
|
||||
modifying_meshes_ex06
|
||||
modifying_meshes_ex07
|
||||
modifying_meshes_ex08
|
||||
modifying_meshes_ex09
|
||||
modifying_meshes_ex10
|
||||
modifying_meshes_ex11
|
||||
modifying_meshes_ex12
|
||||
modifying_meshes_ex13
|
||||
modifying_meshes_ex14
|
||||
modifying_meshes_ex15
|
||||
modifying_meshes_ex16
|
||||
modifying_meshes_ex17
|
||||
modifying_meshes_ex18
|
||||
modifying_meshes_ex19
|
||||
modifying_meshes_ex20
|
||||
modifying_meshes_ex21
|
||||
modifying_meshes_ex22
|
||||
modifying_meshes_ex23
|
||||
modifying_meshes_ex24
|
||||
modifying_meshes_ex25
|
||||
prism_3d_algo
|
||||
quality_controls_ex01
|
||||
quality_controls_ex02
|
||||
quality_controls_ex03
|
||||
quality_controls_ex04
|
||||
quality_controls_ex05
|
||||
quality_controls_ex07
|
||||
quality_controls_ex08
|
||||
quality_controls_ex09
|
||||
quality_controls_ex10
|
||||
quality_controls_ex11
|
||||
quality_controls_ex12
|
||||
quality_controls_ex13
|
||||
quality_controls_ex14
|
||||
quality_controls_ex15
|
||||
quality_controls_ex16
|
||||
quality_controls_ex17
|
||||
quality_controls_ex18
|
||||
quality_controls_ex19
|
||||
transforming_meshes_ex01
|
||||
transforming_meshes_ex02
|
||||
transforming_meshes_ex03
|
||||
transforming_meshes_ex04
|
||||
transforming_meshes_ex05
|
||||
transforming_meshes_ex06
|
||||
transforming_meshes_ex07
|
||||
transforming_meshes_ex08
|
||||
transforming_meshes_ex09
|
||||
transforming_meshes_ex10
|
||||
transforming_meshes_ex11
|
||||
transforming_meshes_ex12
|
||||
transforming_meshes_ex13
|
||||
use_existing_faces
|
||||
viewing_meshes_ex02
|
||||
)
|
||||
|
||||
FOREACH(tfile ${GOOD_TESTS})
|
||||
SET(TEST_NAME SMESH_${tfile})
|
||||
ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} ${tfile}.py)
|
||||
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}")
|
||||
ENDFOREACH()
|
@ -1,5 +1,4 @@
|
||||
# Building a compound of meshes
|
||||
# Note: it is a copy of 'SMESH_BuildCompound.py' from SMESH_SWIG
|
||||
|
||||
import salome
|
||||
salome.salome_init()
|
||||
@ -69,11 +68,14 @@ Gsup2=Mesh_sup.Group(Fsup2, "Sup")
|
||||
Ginf2=Mesh_sup.Group(Finf2, "Inf")
|
||||
|
||||
## create compounds
|
||||
# create a compound of two meshes with renaming groups with the same names and
|
||||
# create a compound of two meshes with renaming namesake groups and
|
||||
# merging of elements with the given tolerance
|
||||
Compound1 = smesh.Concatenate([Mesh_inf.GetMesh(), Mesh_sup.GetMesh()], 0, 1, 1e-05)
|
||||
smesh.SetName(Compound1, 'Compound_with_RenamedGrps_and_MergeElems')
|
||||
# create a compound of two meshes with uniting groups with the same names and
|
||||
Compound1 = smesh.Concatenate([Mesh_inf, Mesh_sup], 0, 1, 1e-05,
|
||||
name='Compound_with_RenamedGrps_and_MergeElems')
|
||||
# create a compound of two meshes with uniting namesake groups and
|
||||
# creating groups of all elements
|
||||
Compound2 = smesh.Concatenate([Mesh_inf.GetMesh(), Mesh_sup.GetMesh()], 1, 0, 1e-05, True)
|
||||
smesh.SetName(Compound2, 'Compound_with_UniteGrps_and_GrpsOfAllElems')
|
||||
Compound2 = smesh.Concatenate([Mesh_inf, Mesh_sup], 1, 0, 1e-05, True,
|
||||
name='Compound_with_UniteGrps_and_GrpsOfAllElems')
|
||||
|
||||
if salome.sg.hasDesktop():
|
||||
salome.sg.updateObjBrowser(1)
|
||||
|
18
doc/salome/examples/filters_belong2group.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Belong to Mesh Group criterion
|
||||
|
||||
# create mesh
|
||||
from SMESH_mechanic import *
|
||||
|
||||
# create a group of all faces (quadrangles) generated on sub_face3
|
||||
faces_on_face3 = mesh.MakeGroup("faces_on_face3", SMESH.FACE, SMESH.FT_BelongToGeom,'=',sub_face3)
|
||||
print "There are %s quadrangles generated on '%s' and included in the group '%s'" % ( faces_on_face3.Size(), sub_face3.GetName(), faces_on_face3.GetName() )
|
||||
|
||||
# create a group of all the rest quadrangles, generated on other faces by combining 2 criteria:
|
||||
# - negated FT_BelongToMeshGroup to select elements not included in faces_on_face3
|
||||
# - FT_ElemGeomType to select quadrangles
|
||||
not_on_face3 = smesh.GetCriterion( SMESH.FACE, SMESH.FT_BelongToMeshGroup,'=',faces_on_face3, SMESH.FT_LogicalNOT )
|
||||
quadrangles = smesh.GetCriterion( SMESH.FACE, SMESH.FT_ElemGeomType,'=',SMESH.Geom_QUADRANGLE )
|
||||
|
||||
rest_quads = mesh.MakeGroupByCriteria("rest_quads", [ not_on_face3, quadrangles ])
|
||||
print "'%s' group includes all the rest %s quadrangles" % ( rest_quads.GetName(), rest_quads.Size() )
|
||||
|
@ -9,12 +9,12 @@ ids = mesh.GetIdsFromFilter(filter)
|
||||
print "Number of faces with aspect ratio > 1.5:", len(ids)
|
||||
|
||||
# copy the faces with aspect ratio > 1.5 to another mesh;
|
||||
# this demostrates that a filter can be used where usually a group or submesh is acceptable
|
||||
# this demostrates that a filter can be used where usually a group or sub-mesh is acceptable
|
||||
filter.SetMesh( mesh.GetMesh() )
|
||||
mesh2 = smesh.CopyMesh( filter, "AR > 1.5" )
|
||||
print "Number of copied faces with aspect ratio > 1.5:", mesh2.NbFaces()
|
||||
|
||||
# create a Group of faces with Aspect Ratio < 1.5
|
||||
# create a group (Group on Filter) of faces with Aspect Ratio < 1.5
|
||||
group = mesh.MakeGroup("AR < 1.5", SMESH.FACE, SMESH.FT_AspectRatio, '<', 1.5)
|
||||
print "Number of faces with aspect ratio < 1.5:", group.Size()
|
||||
|
||||
@ -22,7 +22,13 @@ print "Number of faces with aspect ratio < 1.5:", group.Size()
|
||||
# note that contents of a GroupOnFilter is dynamically updated as the mesh changes
|
||||
crit = [ smesh.GetCriterion( SMESH.FACE, SMESH.FT_AspectRatio, '<', 1.5, BinaryOp=SMESH.FT_LogicalAND ),
|
||||
smesh.GetCriterion( SMESH.FACE, SMESH.FT_ElemGeomType,'=', SMESH.Geom_TRIANGLE ) ]
|
||||
filter = smesh.GetFilterFromCriteria( crit )
|
||||
triaGroup = mesh.GroupOnFilter( SMESH.FACE, "Tria AR < 1.5", filter )
|
||||
triaGroup = mesh.MakeGroupByCriteria( "Tria AR < 1.5", crit )
|
||||
print "Number of triangles with aspect ratio < 1.5:", triaGroup.Size()
|
||||
|
||||
# get range of values of Aspect Ratio of all faces in the mesh
|
||||
aspects = mesh.GetMinMax( SMESH.FT_AspectRatio )
|
||||
print "MESH: Min aspect = %s, Max aspect = %s" % ( aspects[0], aspects[1] )
|
||||
|
||||
# get max value of Aspect Ratio of faces in triaGroup
|
||||
grAspects = mesh.GetMinMax( SMESH.FT_AspectRatio, triaGroup )
|
||||
print "GROUP: Max aspect = %s" % grAspects[1]
|
||||
|
@ -1,13 +1,17 @@
|
||||
# Combine filters with Criterion structures using of "criteria".
|
||||
# Combine several criteria into a filter
|
||||
|
||||
# create mesh
|
||||
from SMESH_mechanic import *
|
||||
|
||||
# get all the quadrangle faces ...
|
||||
criterion1 = smesh.GetCriterion(SMESH.FACE, SMESH.FT_ElemGeomType, SMESH.Geom_QUADRANGLE, SMESH.FT_LogicalAND)
|
||||
# ... AND do NOT get those from sub_face3
|
||||
# ... but those from sub_face3
|
||||
criterion2 = smesh.GetCriterion(SMESH.FACE, SMESH.FT_BelongToGeom, sub_face3, SMESH.FT_LogicalNOT)
|
||||
filter = smesh.CreateFilterManager().CreateFilter()
|
||||
filter.SetCriteria([criterion1,criterion2])
|
||||
ids = mesh.GetIdsFromFilter(filter)
|
||||
|
||||
myGroup = mesh.MakeGroupByIds("Quads_on_cylindrical_faces",SMESH.FACE,ids)
|
||||
quadFilter = smesh.GetFilterFromCriteria([criterion1,criterion2])
|
||||
|
||||
# get faces satisfying the criteria
|
||||
ids = mesh.GetIdsFromFilter(quadFilter)
|
||||
|
||||
# create a group of faces satisfying the criteria
|
||||
myGroup = mesh.GroupOnFilter(SMESH.FACE,"Quads_on_cylindrical_faces",quadFilter)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Creating groups of entities from existing groups of superior dimensions
|
||||
# Creating groups of entities basing on nodes of other groups
|
||||
|
||||
import SMESH_mechanic
|
||||
import SMESH
|
||||
@ -10,22 +10,17 @@ salome = SMESH_mechanic.salome
|
||||
# Criterion : AREA > 100
|
||||
aFilter = smesh.GetFilter(SMESH.FACE, SMESH.FT_Area, SMESH.FT_MoreThan, 100.)
|
||||
|
||||
anIds = mesh.GetIdsFromFilter(aFilter)
|
||||
|
||||
print "Criterion: Area > 100, Nb = ", len(anIds)
|
||||
|
||||
# create a group by adding elements with area > 100
|
||||
aSrcGroup1 = mesh.MakeGroupByIds("Area > 100", SMESH.FACE, anIds)
|
||||
aSrcGroup1 = mesh.GroupOnFilter(SMESH.FACE, "Area > 100", aFilter)
|
||||
print "Criterion: Area > 100, Nb = ", aSrcGroup1.Size()
|
||||
|
||||
# Criterion : AREA < 30
|
||||
aFilter = smesh.GetFilter(SMESH.FACE, SMESH.FT_Area, SMESH.FT_LessThan, 30.)
|
||||
|
||||
anIds = mesh.GetIdsFromFilter(aFilter)
|
||||
|
||||
print "Criterion: Area < 30, Nb = ", len(anIds)
|
||||
|
||||
# create a group by adding elements with area < 30
|
||||
aSrcGroup2 = mesh.MakeGroupByIds("Area < 30", SMESH.FACE, anIds)
|
||||
aSrcGroup2 = mesh.GroupOnFilter(SMESH.FACE, "Area < 30", aFilter)
|
||||
print "Criterion: Area < 30, Nb = ", aSrcGroup2.Size()
|
||||
|
||||
|
||||
# Create group of edges using source groups of faces
|
||||
aGrp = mesh.CreateDimGroup( [aSrcGroup1, aSrcGroup2], SMESH.EDGE, "Edges" )
|
||||
|
37
doc/salome/examples/split_biquad.py
Normal file
@ -0,0 +1,37 @@
|
||||
# Split bi-quadratic to linear
|
||||
|
||||
import salome
|
||||
salome.salome_init()
|
||||
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
|
||||
from salome.smesh import smeshBuilder
|
||||
smesh = smeshBuilder.New(salome.myStudy)
|
||||
|
||||
# make a shape consisting of two quadranges
|
||||
OY = geompy.MakeVectorDXDYDZ(0, 1, 0)
|
||||
OY1 = geompy.MakeTranslation( OY, 1, 0, 0 )
|
||||
OY2 = geompy.MakeTranslation( OY, 2, 0, 0 )
|
||||
q1 = geompy.MakeQuad2Edges( OY, OY1 )
|
||||
q2 = geompy.MakeQuad2Edges( OY1, OY2 )
|
||||
|
||||
shape = geompy.Partition( [q1,q2], theName='shape' )
|
||||
ff = geompy.SubShapeAll( shape, geompy.ShapeType["FACE"], theName="quad" )
|
||||
|
||||
# mesh one quadrange with quadrangless and the other with triangles
|
||||
mesh = smesh.Mesh( shape )
|
||||
mesh.Segment().NumberOfSegments(1)
|
||||
mesh.Quadrangle()
|
||||
mesh.Triangle( ff[1] )
|
||||
mesh.Compute()
|
||||
|
||||
# make group of quadrangles and extrude them into a hexahedron
|
||||
quadGroup = mesh.Group( ff[0], "quads")
|
||||
mesh.ExtrusionSweepObject2D( quadGroup, [0,0,1], 1 )
|
||||
|
||||
# make the mesh bi-quadratic
|
||||
mesh.ConvertToQuadratic( theToBiQuad=True )
|
||||
|
||||
# split all elements into linear ones
|
||||
mesh.SplitBiQuadraticIntoLinear()
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
@ -24,11 +24,21 @@ import unittest, sys, os
|
||||
class SalomeSession(object):
|
||||
def __init__(self, script):
|
||||
import runSalome
|
||||
sys.argv = ["runSalome.py"]
|
||||
run_script = "runSalome.py"
|
||||
if sys.platform == 'win32':
|
||||
module_dir = os.getenv("KERNEL_ROOT_DIR")
|
||||
if module_dir: run_script = os.path.join(module_dir, "bin", "salome", run_script)
|
||||
pass
|
||||
sys.argv = [run_script]
|
||||
sys.argv += ["--terminal"]
|
||||
sys.argv += ["--modules=GEOM,MED,SMESH"]
|
||||
sys.argv += ["%s" % script]
|
||||
if sys.platform == 'win32':
|
||||
main_module_path = sys.modules['__main__'].__file__
|
||||
sys.modules['__main__'].__file__ = ''
|
||||
clt, d = runSalome.main()
|
||||
if sys.platform == 'win32':
|
||||
sys.modules['__main__'].__file__ = main_module_path
|
||||
return
|
||||
|
||||
def __del__(self):
|
||||
|
@ -1,16 +1,11 @@
|
||||
# Translation
|
||||
|
||||
import SMESH_mechanic
|
||||
import SMESH
|
||||
|
||||
smesh = SMESH_mechanic.smesh
|
||||
mesh = SMESH_mechanic.mesh
|
||||
|
||||
# define translation vector
|
||||
point = SMESH.PointStruct(-150., -150., 0.)
|
||||
vector =SMESH.DirStruct(point)
|
||||
vector = [-150., -150., 0.]
|
||||
|
||||
# translate a mesh
|
||||
doCopy = 1
|
||||
|
||||
mesh.Translate([], vector, doCopy)
|
||||
# make a translated copy of all elements of the mesh
|
||||
mesh.TranslateObject(mesh, vector, Copy=True)
|
||||
|
@ -1,10 +1,14 @@
|
||||
# Merging Nodes
|
||||
|
||||
import SMESH_mechanic
|
||||
import SMESH_mechanic, SMESH
|
||||
mesh = SMESH_mechanic.mesh
|
||||
|
||||
# merge nodes
|
||||
Tolerance = 25.0
|
||||
Tolerance = 4.0
|
||||
|
||||
# prevent nodes located on geom edges from removal during merge:
|
||||
# create a group including all nodes on edges
|
||||
allSegs = mesh.MakeGroup( "all segments", SMESH.EDGE, SMESH.FT_ElemGeomType,'=', SMESH.Geom_EDGE )
|
||||
|
||||
GroupsOfNodes = mesh.FindCoincidentNodes(Tolerance)
|
||||
mesh.MergeNodes(GroupsOfNodes)
|
||||
mesh.MergeNodes(GroupsOfNodes, NodesToKeep=allSegs)
|
||||
|
@ -11,35 +11,40 @@ import SMESH, SALOMEDS
|
||||
from salome.smesh import smeshBuilder
|
||||
smesh = smeshBuilder.New(salome.myStudy)
|
||||
|
||||
# create two faces of the box
|
||||
box1 = geompy.MakeBox(0., 0., 0., 20., 20., 15.)
|
||||
facesList1 = geompy.SubShapeAll(box1, geompy.ShapeType["FACE"])
|
||||
face1 = facesList1[2]
|
||||
# make two not sewed quadranges
|
||||
OY0 = geompy.MakeVectorDXDYDZ(0, 1, 0)
|
||||
OY1 = geompy.MakeTranslation( OY0, 1, 0, 0, theName="OY1" )
|
||||
OY2 = geompy.MakeTranslation( OY0, 1.01, 0, 0, theName="OY2" )
|
||||
OY3 = geompy.MakeTranslation( OY0, 2, 0, 0 )
|
||||
q1 = geompy.MakeQuad2Edges( OY0, OY1 )
|
||||
q2 = geompy.MakeQuad2Edges( OY2, OY3 )
|
||||
|
||||
box2 = geompy.MakeBox(0., 5., 0., 20., 20., 15.)
|
||||
facesList2 = geompy.SubShapeAll(box2, geompy.ShapeType["FACE"])
|
||||
face2 = facesList2[1]
|
||||
|
||||
edgesList = geompy.SubShapeAll(face2, geompy.ShapeType["EDGE"])
|
||||
edge1 = edgesList[2]
|
||||
|
||||
aComp = geompy.MakeCompound([face1, face2])
|
||||
geompy.addToStudy(aComp, "Two faces")
|
||||
|
||||
# create a mesh on two faces
|
||||
mesh = smesh.Mesh(aComp, "Two faces : quadrangle mesh")
|
||||
|
||||
algo1D = mesh.Segment()
|
||||
algo1D.NumberOfSegments(4)
|
||||
algo2D = mesh.Quadrangle()
|
||||
|
||||
algo_local = mesh.Segment(edge1)
|
||||
algo_local.Arithmetic1D(1, 4)
|
||||
algo_local.Propagation()
|
||||
shape = geompy.MakeCompound( [q1,q2], theName='shape' )
|
||||
|
||||
# make a non-uniform quadrangle mesh on two faces
|
||||
mesh = smesh.Mesh(shape, "Two faces : quadrangle mesh")
|
||||
mesh.Segment().Arithmetic1D( 0.1, 0.4 )
|
||||
mesh.Segment(q1).NumberOfSegments( 5 )
|
||||
mesh.Quadrangle()
|
||||
mesh.Compute()
|
||||
|
||||
# sew free borders
|
||||
# FirstNodeID1, SecondNodeID1, LastNodeID1,
|
||||
# FirstNodeID2, SecondNodeID2, LastNodeID2, CreatePolygons, CreatePolyedrs
|
||||
mesh.SewFreeBorders(6, 21, 5, 1, 12, 3, 0, 0)
|
||||
|
||||
segs1 = mesh.GetSubMeshElementsId( OY1 ) # mesh segments generated on borders
|
||||
segs2 = mesh.GetSubMeshElementsId( OY2 )
|
||||
|
||||
FirstNodeID1 = mesh.GetElemNode( segs1[0], 0 )
|
||||
SecondNodeID1 = mesh.GetElemNode( segs1[0], 1 )
|
||||
LastNodeID1 = mesh.GetElemNode( segs1[-1], 1 )
|
||||
FirstNodeID2 = mesh.GetElemNode( segs2[0], 0 )
|
||||
SecondNodeID2 = mesh.GetElemNode( segs2[0], 1 )
|
||||
LastNodeID2 = mesh.GetElemNode( segs2[-1], 1 )
|
||||
CreatePolygons = True
|
||||
CreatePolyedrs = False
|
||||
|
||||
res = mesh.SewFreeBorders(FirstNodeID1, SecondNodeID1, LastNodeID1,
|
||||
FirstNodeID2, SecondNodeID2, LastNodeID2,
|
||||
CreatePolygons, CreatePolyedrs )
|
||||
print res
|
||||
print "nb polygons:", mesh.NbPolygons()
|
||||
|
||||
|
@ -20,7 +20,7 @@ aComp = geompy.MakeCompound([box1, box2])
|
||||
geompy.addToStudy(aComp, "Two boxes")
|
||||
|
||||
# create a mesh on two boxes
|
||||
mesh = smesh.Mesh(aComp, "Two faces : quadrangle mesh")
|
||||
mesh = smesh.Mesh(aComp, "Sew Side Elements")
|
||||
|
||||
algo1D = mesh.Segment()
|
||||
algo1D.NumberOfSegments(2)
|
||||
@ -33,6 +33,31 @@ algo_local.Propagation()
|
||||
mesh.Compute()
|
||||
|
||||
# sew side elements
|
||||
# IDsOfSide1Elements, IDsOfSide2Elements,
|
||||
# NodeID1OfSide1ToMerge, NodeID1OfSide2ToMerge, NodeID2OfSide1ToMerge, NodeID2OfSide2ToMerge
|
||||
mesh.SewSideElements([69, 70, 71, 72], [91, 92, 89, 90], 8, 38, 23, 58)
|
||||
|
||||
# find elements to sew
|
||||
face1 = geompy.GetFaceNearPoint( aComp, geompy.MakeVertex( 5, 10, 5 ))
|
||||
IDsOfSide1Elements = mesh.GetSubMeshElementsId( face1 )
|
||||
print "side faces 1:",IDsOfSide1Elements
|
||||
|
||||
face1Translated = geompy.MakeTranslation( face1, 0,5,0 )
|
||||
faceFilter = smesh.GetFilter( SMESH.FACE, SMESH.FT_BelongToGeom,'=', face1Translated )
|
||||
IDsOfSide2Elements = mesh.GetIdsFromFilter( faceFilter )
|
||||
print "side faces 2:",IDsOfSide2Elements
|
||||
|
||||
# find corresponding nodes on sides
|
||||
edge1 = geompy.GetEdgeNearPoint( aComp, geompy.MakeVertex( 0, 10, 5 ))
|
||||
segs1 = mesh.GetSubMeshElementsId( edge1 ) # mesh segments generated on edge1
|
||||
NodeID1OfSide1ToMerge = mesh.GetElemNode( segs1[0], 0 )
|
||||
NodeID2OfSide1ToMerge = mesh.GetElemNode( segs1[0], 1 )
|
||||
print "nodes of side1:", [NodeID1OfSide1ToMerge,NodeID2OfSide1ToMerge]
|
||||
|
||||
edge2 = geompy.GetEdgeNearPoint( aComp, geompy.MakeVertex( 0, 15, 5 ))
|
||||
segs2 = mesh.GetSubMeshElementsId( edge2 ) # mesh segments generated on edge2
|
||||
NodeID1OfSide2ToMerge = mesh.GetElemNode( segs2[0], 0 )
|
||||
NodeID2OfSide2ToMerge = mesh.GetElemNode( segs2[0], 1 )
|
||||
print "nodes of side2:", [NodeID1OfSide2ToMerge,NodeID2OfSide2ToMerge]
|
||||
|
||||
res = mesh.SewSideElements(IDsOfSide1Elements, IDsOfSide2Elements,
|
||||
NodeID1OfSide1ToMerge, NodeID1OfSide2ToMerge,
|
||||
NodeID2OfSide1ToMerge, NodeID2OfSide2ToMerge)
|
||||
print res
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2012-2015 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2012-2015 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
@ -41,7 +41,7 @@ WARNINGS = YES
|
||||
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/input @CMAKE_SOURCE_DIR@/src/Tools/padder/doc/input $(GEOM_ROOT_DIR)/share/doc/salome/gui/GEOM/input
|
||||
FILE_PATTERNS = *.doc
|
||||
EXCLUDE =
|
||||
IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/images @CMAKE_SOURCE_DIR@/src/Tools/padder/doc/images $(GEOM_ROOT_DIR)/share/doc/salome/gui/GEOM
|
||||
IMAGE_PATH = $(GEOM_ROOT_DIR)/share/doc/salome/gui/GEOM @CMAKE_SOURCE_DIR@/src/Tools/padder/doc/images @CMAKE_CURRENT_SOURCE_DIR@/images
|
||||
EXAMPLE_PATH = @CMAKE_SOURCE_DIR@/doc/salome/examples @CMAKE_SOURCE_DIR@/src/SMESH_SWIG
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
# Copyright (C) 2007-2015 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
|
||||
|
BIN
doc/salome/gui/SMESH/images/2d_from_3d_example.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
doc/salome/gui/SMESH/images/a-arithmetic1d.png
Executable file → Normal file
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 29 KiB |
BIN
doc/salome/gui/SMESH/images/a-creategroup.png
Executable file → Normal file
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 24 KiB |
BIN
doc/salome/gui/SMESH/images/a-nbsegments2.png
Executable file → Normal file
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 32 KiB |
BIN
doc/salome/gui/SMESH/images/a-startendlength.png
Executable file → Normal file
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 30 KiB |
BIN
doc/salome/gui/SMESH/images/b-flection1d.png
Executable file → Normal file
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 4.8 KiB |
BIN
doc/salome/gui/SMESH/images/buildcompound.png
Executable file → Normal file
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 23 KiB |
BIN
doc/salome/gui/SMESH/images/buildcompound_groups.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 43 KiB |
BIN
doc/salome/gui/SMESH/images/extru_rib_segs.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 44 KiB |
BIN
doc/salome/gui/SMESH/images/extrusion_box.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
doc/salome/gui/SMESH/images/extrusion_groups.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
doc/salome/gui/SMESH/images/extrusion_groups_res.png
Normal file
After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 8.9 KiB |
BIN
doc/salome/gui/SMESH/images/extrusionalongaline3.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
doc/salome/gui/SMESH/images/extrusionbynormal_alongavgnorm.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
doc/salome/gui/SMESH/images/extrusionbynormal_useonly.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
doc/salome/gui/SMESH/images/free_borders1.png
Executable file → Normal file
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
doc/salome/gui/SMESH/images/groups_in_OB.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
doc/salome/gui/SMESH/images/hexa_ijk_mesh.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
doc/salome/gui/SMESH/images/hypo_fixedpnt_dlg.png
Executable file → Normal file
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 32 KiB |
BIN
doc/salome/gui/SMESH/images/image152.png
Executable file → Normal file
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 25 KiB |
BIN
doc/salome/gui/SMESH/images/image160.gif
Executable file → Normal file
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 3.5 KiB |
BIN
doc/salome/gui/SMESH/images/image58.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
doc/salome/gui/SMESH/images/image59.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
doc/salome/gui/SMESH/images/image75.jpg
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
doc/salome/gui/SMESH/images/image76.jpg
Executable file → Normal file
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 6.4 KiB |
BIN
doc/salome/gui/SMESH/images/image77.jpg
Executable file → Normal file
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 20 KiB |
BIN
doc/salome/gui/SMESH/images/image88.jpg
Executable file → Normal file
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 9.3 KiB |
BIN
doc/salome/gui/SMESH/images/image90.jpg
Executable file → Normal file
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 20 KiB |
BIN
doc/salome/gui/SMESH/images/mergeelems.png
Executable file → Normal file
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 13 KiB |
BIN
doc/salome/gui/SMESH/images/mergenodes.png
Executable file → Normal file
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 28 KiB |
BIN
doc/salome/gui/SMESH/images/merging_nodes1.png
Executable file → Normal file
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 9.8 KiB |
BIN
doc/salome/gui/SMESH/images/merging_nodes2.png
Executable file → Normal file
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 8.8 KiB |
BIN
doc/salome/gui/SMESH/images/propagation_chain.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
doc/salome/gui/SMESH/images/quad_from_ma_medial_axis.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
doc/salome/gui/SMESH/images/quad_from_ma_mesh.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
doc/salome/gui/SMESH/images/quad_mesh_invalid.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
doc/salome/gui/SMESH/images/quad_meshes.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
doc/salome/gui/SMESH/images/rev_edges_helper_dlg.png
Normal file
After Width: | Height: | Size: 20 KiB |