Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HEAD ara és a 77133d2 Update to version 7.2
- Ja està al dia.
- :: Package: opencascade
- :: AUR URL: https://aur.archlinux.org/packages.php?ID=501348
- :: Content of /tmp/trizen-pol/opencascade/PKGBUILD
- # Maintainer: Gabriel Souza Franco <Z2FicmllbGZyYW5jb3NvdXphQGdtYWlsLmNvbQ==>
- # Contributor: Florian Pritz <bluewind@xinu.at>
- # Contributor: Giuseppe Borzi <gborzi@ieee.org>
- # Contributor: Brice Méalier <mealier_brice@yahoo.fr>
- # Contributor: Michele Mocciola <mickele>
- pkgname=opencascade
- pkgver=7.2.0p1
- _pkgver=V${pkgver//./_}
- pkgrel=1
- pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation"
- arch=('x86_64')
- url="http://www.opencascade.org"
- license=('custom')
- depends=('tk' 'vtk' 'gl2ps' 'ffmpeg' 'freeimage' 'intel-tbb')
- makedepends=('cmake' 'qt5-base') # VTK requires Qt5 to build
- source=("opencascade-${pkgver}.tar.gz::http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_pkgver};sf=tgz"
- 'opencascade.sh' 'fix-install-dir-references.patch'
- 'configuration-problem-glibc-2.26.patch' 'vtk7.patch')
- sha256sums=('530f9981e6026e6cc04c462ab039b4977a568f943d6086dc502262d100a07a79'
- '2064536a85d46fee368a8f1a712b2c6c77ca79c5bffcc68cba79d70d36efa2f4'
- 'afb584aa453993ae8d9e2b983594558531ede735a5892754b812be30650c9fb5'
- '2850a1551085c43f88f134466e3acad950e05e8d46ad04057ea671db0c8a8138'
- 'bd230962173a80a971c8da9d3dc07238f249544bb67ee834be7d6466391d0315')
- prepare() {
- cd "occt-${_pkgver}"
- patch -Np1 -i "$srcdir/fix-install-dir-references.patch"
- patch -Np1 -i "$srcdir/configuration-problem-glibc-2.26.patch"
- patch -Np1 -i "$srcdir/vtk7.patch"
- }
- build() {
- cd "occt-${_pkgver}"
- mkdir -p build && cd build
- cmake .. \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DUSE_GL2PS=ON \
- -DUSE_FREEIMAGE=ON \
- -DUSE_FFMPEG=ON \
- -DUSE_VTK=ON \
- -DUSE_TBB=ON
- make
- }
- package() {
- cd "occt-${_pkgver}/build"
- make DESTDIR="$pkgdir" install
- cd ..
- install -D -m 755 "$srcdir/opencascade.sh" "$pkgdir/etc/profile.d/opencascade.sh"
- install -dm755 "$pkgdir/usr/share/licenses/$pkgname/"
- mv "$pkgdir/usr/share/doc/opencascade/"* "$pkgdir/usr/share/licenses/$pkgname"
- rm -r "$pkgdir/usr/share/doc"
- rm "$pkgdir/usr/bin/"*.sh
- }
- # vim:set ts=2 sw=2 et:
- =>> Edit PKGBUILD? [y/N]:
- :: Content of /tmp/trizen-pol/opencascade/configuration-problem-glibc-2.26.patch
- From 59e353b75d51e88ac30ed37307a59b95a50146f8 Mon Sep 17 00:00:00 2001
- From: kgv <kgv@opencascade.com>
- Date: Sat, 21 Oct 2017 20:46:59 +0300
- Subject: [PATCH 1/1] 0029251: Configuration - problem compiling OCCT 7.2 with glibc 2.26
- Standard_CLocaleSentry does not include xlocale.h when using glibc anymore.
- HAVE_XLOCALE_H has been renamed to OCCT_CLOCALE_POSIX2008 to avoid confusion.
- Renamed macros OCC_CHECK_BASE_CLASS -> OCCT_CHECK_BASE_CLASS.
- ---
- src/Standard/Standard_CLocaleSentry.cxx | 10 +++++-----
- src/Standard/Standard_CLocaleSentry.hxx | 27 ++++++++++++++-------------
- src/Standard/Standard_CString.cxx | 2 +-
- src/Standard/Standard_Type.hxx | 16 ++++++++--------
- 4 files changed, 28 insertions(+), 27 deletions(-)
- diff --git a/src/Standard/Standard_CLocaleSentry.cxx b/src/Standard/Standard_CLocaleSentry.cxx
- index ce3212f..8b30c2c 100644
- --- a/src/Standard/Standard_CLocaleSentry.cxx
- +++ b/src/Standard/Standard_CLocaleSentry.cxx
- @@ -30,7 +30,7 @@ namespace
- public:
- CLocalePtr()
- - #ifdef HAVE_XLOCALE_H
- + #ifdef OCCT_CLOCALE_POSIX2008
- : myLocale (newlocale (LC_ALL_MASK, "C", NULL))
- #elif defined(_MSC_VER)
- : myLocale (_create_locale (LC_ALL, "C"))
- @@ -41,7 +41,7 @@ namespace
- ~CLocalePtr()
- {
- - #ifdef HAVE_XLOCALE_H
- + #ifdef OCCT_CLOCALE_POSIX2008
- freelocale (myLocale);
- #elif defined(_MSC_VER)
- _free_locale (myLocale);
- @@ -72,7 +72,7 @@ Standard_CLocaleSentry::clocale_t Standard_CLocaleSentry::GetCLocale()
- // purpose :
- // =======================================================================
- Standard_CLocaleSentry::Standard_CLocaleSentry()
- -#ifdef HAVE_XLOCALE_H
- +#ifdef OCCT_CLOCALE_POSIX2008
- : myPrevLocale (uselocale (theCLocale.myLocale)) // switch to C locale within this thread only using xlocale API
- #else
- : myPrevLocale (setlocale (LC_ALL, 0))
- @@ -81,7 +81,7 @@ Standard_CLocaleSentry::Standard_CLocaleSentry()
- #endif
- #endif
- {
- -#if !defined(HAVE_XLOCALE_H)
- +#if !defined(OCCT_CLOCALE_POSIX2008)
- const char* aPrevLocale = (const char* )myPrevLocale;
- if (myPrevLocale == NULL
- || (aPrevLocale[0] == 'C' && aPrevLocale[1] == '\0'))
- @@ -104,7 +104,7 @@ Standard_CLocaleSentry::Standard_CLocaleSentry()
- // =======================================================================
- Standard_CLocaleSentry::~Standard_CLocaleSentry()
- {
- -#if defined(HAVE_XLOCALE_H)
- +#if defined(OCCT_CLOCALE_POSIX2008)
- uselocale ((locale_t )myPrevLocale);
- #else
- if (myPrevLocale != NULL)
- diff --git a/src/Standard/Standard_CLocaleSentry.hxx b/src/Standard/Standard_CLocaleSentry.hxx
- index a94ade7..3b3beba 100755
- --- a/src/Standard/Standard_CLocaleSentry.hxx
- +++ b/src/Standard/Standard_CLocaleSentry.hxx
- @@ -20,24 +20,25 @@
- #include <locale.h>
- -#ifndef HAVE_XLOCALE_H
- - //! "xlocale.h" available in Mac OS X and glibc (Linux) for a long time as an extension
- - //! and become part of POSIX since '2008.
- - //! Notice that this is impossible to test (_POSIX_C_SOURCE >= 200809L)
- - //! since POSIX didn't declared such identifier.
- +#if defined(__APPLE__)
- + #include <xlocale.h>
- +#endif
- +
- +#ifndef OCCT_CLOCALE_POSIX2008
- + //! @def OCCT_CLOCALE_POSIX2008
- + //!
- + //! POSIX.1-2008 extends C locale API by providing methods like newlocale/freelocale/uselocale.
- + //! Presence of this extension cannot be checked in straightforward way (like (_POSIX_C_SOURCE >= 200809L))
- + //! due to missing such declarations in standard.
- + //! On macOS new functions are declared within "xlocale.h" header (the same is for glibc, but this header has been removed since glibc 2.26).
- #if defined(__APPLE__)
- - #define HAVE_XLOCALE_H
- + #define OCCT_CLOCALE_POSIX2008
- #endif
- //! We check _GNU_SOURCE for glibc extensions here and it is always defined by g++ compiler.
- #if defined(_GNU_SOURCE) && !defined(__ANDROID__)
- - #define HAVE_XLOCALE_H
- + #define OCCT_CLOCALE_POSIX2008
- #endif
- -#endif // ifndef HAVE_LOCALE_H
- -
- -#if defined(HAVE_XLOCALE_H) && !(defined(__GLIBC__) && (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 24))
- - // xlocale.h is actually a non-standard header file; glibc 2.26 has removed it altogether (all definition comes from locale.h)
- - #include <xlocale.h>
- #endif
- #if !defined(__ANDROID__)
- @@ -64,7 +65,7 @@ public:
- public:
- -#ifdef HAVE_XLOCALE_H
- +#ifdef OCCT_CLOCALE_POSIX2008
- typedef locale_t clocale_t;
- #elif defined(_MSC_VER)
- typedef _locale_t clocale_t;
- diff --git a/src/Standard/Standard_CString.cxx b/src/Standard/Standard_CString.cxx
- index dc0a222..d10974f 100755
- --- a/src/Standard/Standard_CString.cxx
- +++ b/src/Standard/Standard_CString.cxx
- @@ -76,7 +76,7 @@ Standard_Integer HashCodes (const Standard_CString Value,
- // and newlocale/uselocale/freelocale to switch locale within current thread only.
- // So we switch to C locale temporarily
- #define SAVE_TL() Standard_CLocaleSentry aLocaleSentry;
- - #ifndef HAVE_XLOCALE_H
- + #ifndef OCCT_CLOCALE_POSIX2008
- // glibc version for android platform use locale-independent implementation of
- // strtod, strtol, strtoll functions. For other system with locale-depended
- // implementations problems may appear if "C" locale is not set explicitly.
- --
- 1.7.2.5
- =>> Edit configuration-problem-glibc-2.26.patch? [y/N]:
- :: Content of /tmp/trizen-pol/opencascade/fix-install-dir-references.patch
- diff -aur occt-V7_1_0/CMakeLists.txt occt-V7_1_0.new/CMakeLists.txt
- --- occt-V7_1_0/CMakeLists.txt 2016-11-25 11:50:18.000000000 +0100
- +++ occt-V7_1_0.new/CMakeLists.txt 2017-03-18 08:44:10.406668714 +0100
- @@ -906,7 +906,7 @@
- endforeach()
- # install OpenCASCADE config file with compile definitions and C/C++ flags ONLY for current configuration
- install (CODE "string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWER)")
- -install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)")
- +install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)")
- foreach (OCCT_MODULE ${OCCT_MODULES})
- if (BUILD_MODULE_${OCCT_MODULE})
- diff -aur occt-V7_1_0/adm/cmake/occt_macros.cmake occt-V7_1_0.new/adm/cmake/occt_macros.cmake
- --- occt-V7_1_0/adm/cmake/occt_macros.cmake 2016-11-25 11:50:18.000000000 +0100
- +++ occt-V7_1_0.new/adm/cmake/occt_macros.cmake 2017-03-18 08:44:10.406668714 +0100
- @@ -558,7 +558,7 @@
- "cmake_policy(PUSH)
- cmake_policy(SET CMP0007 NEW)
- string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWERCASE)
- - file (GLOB ALL_OCCT_TARGET_FILES \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\")
- + file (GLOB ALL_OCCT_TARGET_FILES \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\")
- foreach(TARGET_FILENAME \${ALL_OCCT_TARGET_FILES})
- file (STRINGS \"\${TARGET_FILENAME}\" TARGET_FILE_CONTENT)
- file (REMOVE \"\${TARGET_FILENAME}\")
- =>> Edit fix-install-dir-references.patch? [y/N]:
- :: Content of /tmp/trizen-pol/opencascade/opencascade.sh
- export CASROOT=/usr
- export CSF_LANGUAGE=us
- export MMGT_CLEAR=1
- export CSF_EXCEPTION_PROMPT=1
- export CSF_OCCTResourcePath=$CASROOT/share/opencascade/resources
- export CSF_SHMessage=$CSF_OCCTResourcePath/SHMessage
- export CSF_MDTVTexturesDirectory=$CSF_OCCTResourcePath/Textures
- export CSF_ShadersDirectory=$CSF_OCCTResourcePath/Shaders
- export CSF_XSMessage=$CSF_OCCTResourcePath/XSMessage
- export CSF_TObjMessage=$CSF_OCCTResourcePath/TObj
- export CSF_StandardDefaults=$CSF_OCCTResourcePath/StdResource
- export CSF_PluginDefaults=$CSF_OCCTResourcePath/StdResource
- export CSF_XCAFDefaults=$CSF_OCCTResourcePath/StdResource
- export CSF_TObjDefaults=$CSF_OCCTResourcePath/StdResource
- export CSF_StandardLiteDefaults=$CSF_OCCTResourcePath/StdResource
- export CSF_IGESDefaults=$CSF_OCCTResourcePath/XSTEPResource
- export CSF_STEPDefaults=$CSF_OCCTResourcePath/XSTEPResource
- export CSF_XmlOcafResource=$CSF_OCCTResourcePath/XmlOcafResource
- export CSF_MIGRATION_TYPES=$CSF_OCCTResourcePath/StdResource/MigrationSheet.txt
- export CSF_DrawPluginDefaults=$CSF_OCCTResourcePath/DrawResources
- export DRAWHOME=$CSF_OCCTResourcePath/DrawResources
- export DRAWDEFAULT=$CSF_OCCTResourcePath/DrawResources/DrawDefault
- =>> Edit opencascade.sh? [y/N]:
- :: Content of /tmp/trizen-pol/opencascade/pkgbuild.cmake
- # Maintainer: Florian Pritz <bluewind@xinu.at>
- # Contributor: Giuseppe Borzi <gborzi@ieee.org>
- # Contributor: Brice M<E9>alier <mealier_brice@yahoo.fr>
- # Contributor: Michele Mocciola <mickele>
- pkgname=opencascade
- pkgver=6.9.1
- pkgrel=1
- pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation"
- arch=('i686' 'x86_64')
- url="http://www.opencascade.org"
- license=('custom')
- depends=('tk' 'mesa' 'java-runtime' 'libxmu' 'ftgl' 'vtk')
- makedepends=('java-environment' cmake)
- source=("occt-$pkgver.tar.gz::http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=V${pkgver//\./_};sf=tgz" "env.sh" "opencascade.sh" "opencascade.conf")
- md5sums=('ea47e4716791f005e40de09f5c416a87'
- 'a96f28ee7f4273ae1771ee033a2a3af3'
- 'd9368b8d348ced3ec4462012977552d2'
- '2924ecf57c95d25888f51071fdc72ad0')
- build() {
- cd "$srcdir/occt-V${pkgver//\./_}-"*
- sed -i 's#OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_modules")##' CMakeLists.txt
- sed -i 's#OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_toolkits")##' CMakeLists.txt
- sed -i 's#include (adm/cmake/occt_inc_toolkits.cmake)##' CMakeLists.txt
- cmake -DINSTALL_DIR="$pkgdir" .
- # fix for automake 1.13
- #sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
- #./build_configure
- #./configure --disable-debug --enable-production \
- #--with-java-include=/usr/lib/jvm/default/include \
- #--with-vtk-library=/usr/lib/ --with-vtk-include=/usr/include/vtk-6.1/ \
- #--prefix=/opt/$pkgname
- make
- }
- package() {
- cd "$srcdir/occt-V${pkgver//\./_}-"*
- # no DESTDIR support so use prefix. This has to suffix match the prefix in ./configure
- make prefix="$pkgdir/opt/$pkgname" install
- cp -r src/UnitsAPI/ "${pkgdir}/opt/$pkgname/src"
- install -D -m644 "${srcdir}/opencascade.conf" "${pkgdir}/etc/ld.so.conf.d/opencascade.conf"
- install -D -m 755 "${srcdir}/opencascade.sh" "${pkgdir}/etc/profile.d/opencascade.sh"
- install -m 755 "${srcdir}/env.sh" "${pkgdir}/opt/$pkgname"
- install -dm755 "$pkgdir/usr/share/licenses/$pkgname/"
- install -m644 LICENSE_LGPL_21.txt OCCT_LGPL_EXCEPTION.txt "$pkgdir/usr/share/licenses/$pkgname"
- }
- # vim:set ts=2 sw=2 et:
- =>> Edit pkgbuild.cmake? [y/N]:
- :: Content of /tmp/trizen-pol/opencascade/salome-occt-6.9.1.patch
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/drv/BRepFill/BRepFill_Pipe.jxx OCCT-6.9.1p1_SRC/drv/BRepFill/BRepFill_Pipe.jxx
- --- OCCT-6.9.1_SRC/drv/BRepFill/BRepFill_Pipe.jxx 2015-09-25 17:35:58.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/drv/BRepFill/BRepFill_Pipe.jxx 2016-04-26 16:10:42.000000000 +0300
- @@ -4,6 +4,7 @@
- #include <StdFail_NotDone.hxx>
- #include <TopoDS_Wire.hxx>
- #include <TopoDS_Shape.hxx>
- +#include <TopTools_ListOfShape.hxx>
- #include <TopoDS_Face.hxx>
- #include <TopoDS_Edge.hxx>
- #include <TopoDS_Vertex.hxx>
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/drv/BRepOffsetAPI/BRepOffsetAPI_MakePipe.jxx OCCT-6.9.1p1_SRC/drv/BRepOffsetAPI/BRepOffsetAPI_MakePipe.jxx
- --- OCCT-6.9.1_SRC/drv/BRepOffsetAPI/BRepOffsetAPI_MakePipe.jxx 2015-09-25 17:36:04.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/drv/BRepOffsetAPI/BRepOffsetAPI_MakePipe.jxx 2016-04-26 16:10:47.000000000 +0300
- @@ -1,4 +1,5 @@
- #include <TopoDS_Wire.hxx>
- #include <TopoDS_Shape.hxx>
- #include <BRepFill_Pipe.hxx>
- +#include <TopTools_ListOfShape.hxx>
- #include <BRepOffsetAPI_MakePipe.hxx>
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/inc/BRepFill_Pipe.hxx OCCT-6.9.1p1_SRC/inc/BRepFill_Pipe.hxx
- --- OCCT-6.9.1_SRC/inc/BRepFill_Pipe.hxx 2015-09-25 17:35:58.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/inc/BRepFill_Pipe.hxx 2016-04-26 16:10:42.000000000 +0300
- @@ -18,6 +18,7 @@
- #include <TopTools_MapOfShape.hxx>
- #include <BRepFill_DataMapOfShapeHArray2OfShape.hxx>
- #include <Standard_Integer.hxx>
- +#include <TopTools_DataMapOfShapeListOfShape.hxx>
- #include <GeomAbs_Shape.hxx>
- #include <GeomFill_Trihedron.hxx>
- #include <Standard_Boolean.hxx>
- @@ -28,6 +29,7 @@
- class StdFail_NotDone;
- class TopoDS_Wire;
- class TopoDS_Shape;
- +class TopTools_ListOfShape;
- class TopoDS_Face;
- class TopoDS_Edge;
- class TopoDS_Vertex;
- @@ -65,6 +67,9 @@
- Standard_EXPORT const TopoDS_Shape& LastShape() const;
- + //! Returns the list of shapes generated from the shape <S>.
- + Standard_EXPORT void Generated (const TopoDS_Shape& S, TopTools_ListOfShape& L) ;
- +
- //! Returns the face created from an edge of the spine
- //! and an edge of the profile.
- //! if the edges are not in the spine or the profile
- @@ -131,6 +136,7 @@
- Standard_Integer myCurIndexOfSectionEdge;
- TopoDS_Shape myFirst;
- TopoDS_Shape myLast;
- + TopTools_DataMapOfShapeListOfShape myGenMap;
- Standard_Integer myDegmax;
- Standard_Integer mySegmax;
- GeomAbs_Shape myContinuity;
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/inc/BRepOffsetAPI_MakePipe.hxx OCCT-6.9.1p1_SRC/inc/BRepOffsetAPI_MakePipe.hxx
- --- OCCT-6.9.1_SRC/inc/BRepOffsetAPI_MakePipe.hxx 2015-09-25 17:36:04.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/inc/BRepOffsetAPI_MakePipe.hxx 2016-04-26 16:10:47.000000000 +0300
- @@ -18,6 +18,7 @@
- class TopoDS_Wire;
- class TopoDS_Shape;
- class BRepFill_Pipe;
- +class TopTools_ListOfShape;
- //! Describes functions to build pipes.
- @@ -68,6 +69,8 @@
- //! Returns the TopoDS Shape of the top of the prism.
- Standard_EXPORT TopoDS_Shape LastShape() ;
- + Standard_EXPORT virtual const TopTools_ListOfShape& Generated (const TopoDS_Shape& S) ;
- +
- Standard_EXPORT TopoDS_Shape Generated (const TopoDS_Shape& SSpine, const TopoDS_Shape& SProfile) ;
- Standard_EXPORT Standard_Real ErrorOnSurface() const;
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/src/BRepFill/BRepFill_Pipe.cdl OCCT-6.9.1p1_SRC/src/BRepFill/BRepFill_Pipe.cdl
- --- OCCT-6.9.1_SRC/src/BRepFill/BRepFill_Pipe.cdl 2015-09-16 18:27:02.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/src/BRepFill/BRepFill_Pipe.cdl 2016-04-26 15:51:10.000000000 +0300
- @@ -15,11 +15,11 @@
- -- commercial license or contractual agreement.
- -class Pipe from BRepFill
- +class Pipe from BRepFill
- ---Purpose: Create a shape by sweeping a shape (the profile)
- -- along a wire (the spine).
- - --
- + --
- -- For each edge or vertex from the spine the user
- -- may ask for the shape generated from each subshape
- -- of the profile.
- @@ -28,38 +28,40 @@
- HArray2OfShape from TopTools,
- MapOfShape from TopTools,
- + ListOfShape from TopTools,
- DataMapOfShapeHArray2OfShape from BRepFill,
- + DataMapOfShapeListOfShape from TopTools,
- LocationLaw from BRepFill,
- Shape from TopoDS,
- Face from TopoDS,
- Wire from TopoDS,
- Edge from TopoDS,
- - Vertex from TopoDS,
- + Vertex from TopoDS,
- Pnt from gp,
- Trsf from gp,
- Shape from GeomAbs,
- Trihedron from GeomFill
- raises
- - DomainError from Standard,
- + DomainError from Standard,
- NotDone from StdFail
- is
- Create returns Pipe from BRepFill;
- -
- - Create ( Spine : Wire from TopoDS;
- +
- + Create ( Spine : Wire from TopoDS;
- Profile : Shape from TopoDS;
- aMode : Trihedron from GeomFill = GeomFill_IsCorrectedFrenet;
- ForceApproxC1 : Boolean from Standard = Standard_False;
- - GeneratePartCase : Boolean from Standard = Standard_False)
- + GeneratePartCase : Boolean from Standard = Standard_False)
- returns Pipe from BRepFill;
- -
- - Perform (me : in out; Spine : Wire from TopoDS;
- +
- + Perform (me : in out; Spine : Wire from TopoDS;
- Profile : Shape from TopoDS;
- - GeneratePartCase : Boolean from Standard = Standard_False)
- + GeneratePartCase : Boolean from Standard = Standard_False)
- is static;
- -
- +
- Spine(me) returns Shape from TopoDS
- ---C++ : return const &
- is static;
- @@ -74,7 +76,7 @@
- ErrorOnSurface (me)
- returns Real from Standard;
- -
- +
- FirstShape(me) returns Shape from TopoDS
- ---C++ : return const &
- is static;
- @@ -83,27 +85,30 @@
- ---C++ : return const &
- is static;
- + Generated(me: in out; S: Shape from TopoDS; L: in out ListOfShape from TopTools);
- + ---Purpose: Returns the list of shapes generated from the shape <S>.
- +
- Face(me : in out; ESpine, EProfile : Edge from TopoDS)
- returns Face from TopoDS
- ---Purpose: Returns the face created from an edge of the spine
- -- and an edge of the profile.
- raises
- - DomainError from Standard
- + DomainError from Standard
- ---Purpose: if the edges are not in the spine or the profile
- -
- +
- is static;
- -
- +
- Edge(me : in out; ESpine : Edge from TopoDS; VProfile : Vertex from TopoDS)
- returns Edge from TopoDS
- ---Purpose: Returns the edge created from an edge of the spine
- -- and a vertex of the profile.
- raises
- - DomainError from Standard
- + DomainError from Standard
- ---Purpose: if the edge or the vertex are not in the spine or
- -- the profile.
- -
- +
- is static;
- -
- +
- Section(me; VSpine : Vertex from TopoDS)
- returns Shape from TopoDS
- ---Purpose: Returns the shape created from the profile at the
- @@ -111,50 +116,50 @@
- raises
- DomainError from Standard
- ---Purpose: if the vertex is not in the Spine
- - is static;
- -
- -
- - PipeLine(me : in out; Point : Pnt from gp)
- + is static;
- +
- +
- + PipeLine(me : in out; Point : Pnt from gp)
- ---Purpose: Create a Wire by sweeping the Point along the <spine>
- - returns Wire from TopoDS
- + returns Wire from TopoDS
- raises
- DomainError from Standard
- - ---Purpose: if the <Spine> is undefined
- + ---Purpose: if the <Spine> is undefined
- is static;
- --
- -- Private methods
- - --
- -
- - MakeShape(me : in out; S : Shape from TopoDS;
- + --
- +
- + MakeShape(me : in out; S : Shape from TopoDS;
- FirstShape, LastShape : Shape from TopoDS)
- returns Shape from TopoDS
- ---Purpose: Auxiliary recursive method used to build the
- - -- result.
- + -- result.
- is static private;
- - FindEdge(me; S : Shape from TopoDS;
- - E : Edge from TopoDS;
- - Init : in out Integer)
- + FindEdge(me; S : Shape from TopoDS;
- + E : Edge from TopoDS;
- + Init : in out Integer)
- ---Purpose: Auxiliary recursive method used to find the edge's index
- returns Integer
- is static private;
- - FindVertex(me; S : Shape from TopoDS;
- - V : Vertex from TopoDS;
- - Init : in out Integer)
- + FindVertex(me; S : Shape from TopoDS;
- + V : Vertex from TopoDS;
- + Init : in out Integer)
- returns Integer
- - is static private;
- -
- + is static private;
- +
- DefineRealSegmax(me : in out)
- - is static private;
- -
- + is static private;
- +
- RebuildTopOrBottomFace(me; aFace: Shape from TopoDS;
- IsTop: Boolean from Standard)
- - is static private;
- -
- + is static private;
- +
- ShareFaces(me: in out; theShape: Shape from TopoDS;
- theInitialFacesLen: Integer;
- theInitialEdgesLen: Integer;
- @@ -164,30 +169,31 @@
- -- Returns the shared shape. If theShape is not modified this
- -- method returns it.
- returns Shape from TopoDS
- - is static private;
- -
- + is static private;
- +
- fields
- mySpine : Wire from TopoDS;
- myProfile : Shape from TopoDS;
- - myShape : Shape from TopoDS;
- - myTrsf : Trsf from gp;
- + myShape : Shape from TopoDS;
- + myTrsf : Trsf from gp;
- myLoc : LocationLaw from BRepFill;
- - mySections: HArray2OfShape from TopTools;
- - myFaces : HArray2OfShape from TopTools;
- - myEdges : HArray2OfShape from TopTools;
- - myReversedEdges : MapOfShape from TopTools;
- + mySections: HArray2OfShape from TopTools;
- + myFaces : HArray2OfShape from TopTools;
- + myEdges : HArray2OfShape from TopTools;
- + myReversedEdges : MapOfShape from TopTools;
- myTapes : DataMapOfShapeHArray2OfShape from BRepFill;
- myRails : DataMapOfShapeHArray2OfShape from BRepFill;
- myCurIndexOfSectionEdge : Integer from Standard;
- - myFirst : Shape from TopoDS;
- - myLast : Shape from TopoDS;
- -
- + myFirst : Shape from TopoDS;
- + myLast : Shape from TopoDS;
- + myGenMap : DataMapOfShapeListOfShape from TopTools;
- +
- myDegmax : Integer from Standard;
- mySegmax : Integer from Standard;
- myContinuity : Shape from GeomAbs;
- myMode : Trihedron from GeomFill;
- myForceApproxC1 : Boolean from Standard;
- -
- +
- myErrorOnSurf : Real from Standard;
- -
- +
- end Pipe;
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/src/BRepFill/BRepFill_Pipe.cxx OCCT-6.9.1p1_SRC/src/BRepFill/BRepFill_Pipe.cxx
- --- OCCT-6.9.1_SRC/src/BRepFill/BRepFill_Pipe.cxx 2015-09-16 18:27:02.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/src/BRepFill/BRepFill_Pipe.cxx 2016-04-26 15:51:10.000000000 +0300
- @@ -69,6 +69,38 @@
- static Standard_Boolean Affich = 0;
- #endif
- +// ---------------------------------------------------------------------------------
- +// static function: UpdateMap
- +// purpose:
- +// ---------------------------------------------------------------------------------
- +static Standard_Boolean UpdateMap(const TopoDS_Shape& theKey,
- + const TopoDS_Shape& theValue,
- + TopTools_DataMapOfShapeListOfShape& theMap)
- +{
- + if(!theMap.IsBound(theKey))
- + {
- + TopTools_ListOfShape thelist;
- + theMap.Bind(theKey, thelist);
- + }
- + TopTools_ListOfShape& aList = theMap.ChangeFind(theKey);
- + TopTools_ListIteratorOfListOfShape anIt(aList);
- + Standard_Boolean found = Standard_False;
- +
- + for(; anIt.More(); anIt.Next())
- + {
- + if(theValue.IsSame(anIt.Value()))
- + {
- + found = Standard_True;
- + break;
- + }
- + }
- +
- + if(!found)
- + aList.Append(theValue);
- +
- + return !found;
- +}
- +
- static void ReverseModifiedEdges(TopoDS_Shape& aShape,
- TopTools_MapOfShape& Emap)
- {
- @@ -374,6 +406,47 @@
- return myLast;
- }
- +//=======================================================================
- +//function : Generated
- +//purpose :
- +//=======================================================================
- +void BRepFill_Pipe::Generated(const TopoDS_Shape& theShape,
- + TopTools_ListOfShape& theList)
- +{
- + theList.Clear();
- +
- + if (theShape.IsSame(myProfile))
- + theList.Append(myShape);
- + else
- + {
- + if (theShape.ShapeType() == TopAbs_FACE ||
- + theShape.ShapeType() == TopAbs_WIRE)
- + {
- + if(myGenMap.IsBound(theShape))
- + theList = myGenMap.Find(theShape);
- + }
- + else if (theShape.ShapeType() == TopAbs_EDGE)
- + {
- + TopoDS_Iterator itw(mySpine);
- + for (; itw.More(); itw.Next())
- + {
- + const TopoDS_Edge& aSpineEdge = TopoDS::Edge(itw.Value());
- + const TopoDS_Shape& aFace = Face(aSpineEdge, TopoDS::Edge(theShape));
- + theList.Append(aFace);
- + }
- + }
- + else if (theShape.ShapeType() == TopAbs_VERTEX)
- + {
- + TopoDS_Iterator itw(mySpine);
- + for (; itw.More(); itw.Next())
- + {
- + const TopoDS_Edge& aSpineEdge = TopoDS::Edge(itw.Value());
- + const TopoDS_Shape& anEdge = Edge(aSpineEdge, TopoDS::Vertex(theShape));
- + theList.Append(anEdge);
- + }
- + }
- + }
- +}
- //=======================================================================
- //function : Face
- @@ -640,6 +713,7 @@
- MkSw.Build( myReversedEdges, myTapes, myRails,
- BRepFill_Modified, myContinuity, GeomFill_Location, myDegmax, mySegmax );
- result = MkSw.Shape();
- + UpdateMap(TheS.Located(myProfile.Location()), result, myGenMap);
- myErrorOnSurf = MkSw.ErrorOnSurface();
- Handle(TopTools_HArray2OfShape) aSections = MkSw.Sections();
- @@ -662,6 +736,7 @@
- MkSw.Build( myReversedEdges, myTapes, myRails,
- BRepFill_Modified, myContinuity, GeomFill_Location, myDegmax, mySegmax );
- result = MkSw.Shape();
- + UpdateMap(TheS.Located(myProfile.Location()), result, myGenMap);
- myErrorOnSurf = MkSw.ErrorOnSurface();
- //Correct <myFirst> and <myLast>
- ReverseModifiedEdges(myFirst, myReversedEdges);
- @@ -769,6 +844,7 @@
- BS.Add(solid,TopoDS::Shell(aLocalShape));
- // BS.Add(solid,TopoDS::Shell(result.Reversed()));
- }
- + UpdateMap(TheS.Located(myProfile.Location()), solid, myGenMap);
- return solid;
- }
- else {
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/src/BRepOffsetAPI/BRepOffsetAPI_MakePipe.cdl OCCT-6.9.1p1_SRC/src/BRepOffsetAPI/BRepOffsetAPI_MakePipe.cdl
- --- OCCT-6.9.1_SRC/src/BRepOffsetAPI/BRepOffsetAPI_MakePipe.cdl 2015-09-16 18:27:03.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/src/BRepOffsetAPI/BRepOffsetAPI_MakePipe.cdl 2016-04-26 15:51:11.000000000 +0300
- @@ -36,8 +36,8 @@
- ListOfShape from TopTools
- is
- -
- -
- +
- +
- Create( Spine : Wire from TopoDS;
- Profile : Shape from TopoDS )
- ---Purpose: Constructs a pipe by sweeping the shape Profile along
- @@ -52,7 +52,7 @@
- -- Standard_DomainError if the profile is a solid or a
- -- composite solid.
- returns MakePipe from BRepOffsetAPI;
- -
- +
- Create( Spine : Wire from TopoDS;
- Profile : Shape from TopoDS;
- aMode : Trihedron from GeomFill;
- @@ -72,7 +72,7 @@
- Build(me : in out)
- is redefined;
- ---Purpose: Builds the resulting shape (redefined from MakeShape).
- - ---Level: Public
- + ---Level: Public
- FirstShape (me : in out)
- @@ -84,6 +84,11 @@
- ---Purpose: Returns the TopoDS Shape of the top of the prism.
- returns Shape from TopoDS;
- + Generated (me: in out; S: Shape from TopoDS)
- + returns ListOfShape from TopTools
- + is redefined;
- + ---C++: return const &
- + ---Level: Public
- Generated (me: in out; SSpine, SProfile : Shape from TopoDS)
- ---Level: Public
- @@ -99,4 +104,4 @@
- myPipe : Pipe from BRepFill;
- -end MakePipe;
- +end MakePipe;
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/src/BRepOffsetAPI/BRepOffsetAPI_MakePipe.cxx OCCT-6.9.1p1_SRC/src/BRepOffsetAPI/BRepOffsetAPI_MakePipe.cxx
- --- OCCT-6.9.1_SRC/src/BRepOffsetAPI/BRepOffsetAPI_MakePipe.cxx 2015-09-16 18:27:03.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/src/BRepOffsetAPI/BRepOffsetAPI_MakePipe.cxx 2016-04-26 15:51:11.000000000 +0300
- @@ -109,14 +109,23 @@
- return myPipe.LastShape();
- }
- +//=======================================================================
- +//function : Generated
- +//purpose : standard method
- +//=======================================================================
- +const TopTools_ListOfShape& BRepOffsetAPI_MakePipe::Generated(const TopoDS_Shape& S)
- +{
- + myPipe.Generated(S, myGenerated);
- + return myGenerated;
- +}
- //=======================================================================
- //function : Generated
- -//purpose :
- +//purpose : returns generated elementary subshape
- //=======================================================================
- -TopoDS_Shape BRepOffsetAPI_MakePipe::Generated (const TopoDS_Shape& SSpine,
- - const TopoDS_Shape& SProfile)
- +TopoDS_Shape BRepOffsetAPI_MakePipe::Generated(const TopoDS_Shape& SSpine,
- + const TopoDS_Shape& SProfile)
- {
- if (SProfile.ShapeType () == TopAbs_EDGE) {
- return myPipe.Face (TopoDS::Edge (SSpine), TopoDS::Edge (SProfile));
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/src/QABugs/QABugs_19.cxx OCCT-6.9.1p1_SRC/src/QABugs/QABugs_19.cxx
- --- OCCT-6.9.1_SRC/src/QABugs/QABugs_19.cxx 2015-09-16 18:27:29.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/src/QABugs/QABugs_19.cxx 2016-04-26 15:51:28.000000000 +0300
- @@ -53,6 +53,7 @@
- #include <GeomFill_Trihedron.hxx>
- #include <BRepOffsetAPI_MakePipe.hxx>
- #include <Standard_Atomic.hxx>
- +#include <TopTools_ListIteratorOfListOfShape.hxx>
- #include <Standard_Version.hxx>
- @@ -4306,6 +4307,95 @@
- return 0;
- }
- +//========================================================================
- +//function : OCC27065
- +//purpose : Tests overloaded method "Generated" of BRepOffsetAPI_MakePipe
- +//========================================================================
- +static Standard_Integer OCC27065(Draw_Interpretor& di,
- + Standard_Integer n, const char** a)
- +{
- + if (n < 3) return 1;
- + BRep_Builder BB;
- +
- + TopoDS_Shape SpineShape = DBRep::Get(a[1],TopAbs_WIRE);
- + if ( SpineShape.IsNull()) return 1;
- + TopoDS_Wire Spine = TopoDS::Wire(SpineShape);
- +
- + TopoDS_Shape Profile = DBRep::Get(a[2]);
- + if ( Profile.IsNull()) return 1;
- +
- + BRepOffsetAPI_MakePipe aPipeBuilder(Spine, Profile);
- + if (!aPipeBuilder.IsDone())
- + {
- + di << "Error: failed to create pipe\n";
- + return 1;
- + }
- +
- + TopExp_Explorer Explo(Profile, TopAbs_SHELL);
- + TopoDS_Shape aShape;
- + TopTools_ListIteratorOfListOfShape itl;
- + if (Explo.More())
- + {
- + aShape = Explo.Current();
- + TopoDS_Compound res1;
- + BB.MakeCompound(res1);
- + itl.Initialize(aPipeBuilder.Generated(aShape));
- + for (; itl.More(); itl.Next())
- + BB.Add(res1, itl.Value());
- + DBRep::Set("res_shell", res1);
- + }
- +
- + Explo.Init(Profile, TopAbs_FACE);
- + if (Explo.More())
- + {
- + aShape = Explo.Current();
- + TopoDS_Compound res2;
- + BB.MakeCompound(res2);
- + itl.Initialize(aPipeBuilder.Generated(aShape));
- + for (; itl.More(); itl.Next())
- + BB.Add(res2, itl.Value());
- + DBRep::Set("res_face", res2);
- + }
- +
- + Explo.Init(Profile, TopAbs_WIRE);
- + if (Explo.More())
- + {
- + aShape = Explo.Current();
- + TopoDS_Compound res3;
- + BB.MakeCompound(res3);
- + itl.Initialize(aPipeBuilder.Generated(aShape));
- + for (; itl.More(); itl.Next())
- + BB.Add(res3, itl.Value());
- + DBRep::Set("res_wire", res3);
- + }
- +
- + Explo.Init(Profile, TopAbs_EDGE);
- + if (Explo.More())
- + {
- + aShape = Explo.Current();
- + TopoDS_Compound res4;
- + BB.MakeCompound(res4);
- + itl.Initialize(aPipeBuilder.Generated(aShape));
- + for (; itl.More(); itl.Next())
- + BB.Add(res4, itl.Value());
- + DBRep::Set("res_edge", res4);
- + }
- +
- + Explo.Init(Profile, TopAbs_VERTEX);
- + if (Explo.More())
- + {
- + aShape = Explo.Current();
- + TopoDS_Compound res5;
- + BB.MakeCompound(res5);
- + itl.Initialize(aPipeBuilder.Generated(aShape));
- + for (; itl.More(); itl.Next())
- + BB.Add(res5, itl.Value());
- + DBRep::Set("res_vertex", res5);
- + }
- +
- + return 0;
- +}
- +
- void QABugs::Commands_19(Draw_Interpretor& theCommands) {
- const char *group = "QABugs";
- @@ -4397,5 +4487,9 @@
- theCommands.Add ("OCC26313", "OCC26313 result shape", __FILE__, OCC26313, group);
- + theCommands.Add ("OCC27065",
- + "OCC27065 spine profile",
- + __FILE__, OCC27065, group);
- +
- return;
- }
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/src/SelectMgr/SelectMgr_SelectionManager.cxx OCCT-6.9.1p1_SRC/src/SelectMgr/SelectMgr_SelectionManager.cxx
- --- OCCT-6.9.1_SRC/src/SelectMgr/SelectMgr_SelectionManager.cxx 2015-09-16 18:27:36.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/src/SelectMgr/SelectMgr_SelectionManager.cxx 2016-04-26 15:51:32.000000000 +0300
- @@ -687,6 +687,7 @@
- for(theObject->Init(); theObject->More(); theObject->Next())
- {
- const Handle(SelectMgr_Selection)& aSelection = theObject->CurrentSelection();
- + aSelection->UpdateStatus (SelectMgr_TOU_Full);
- Standard_Integer aSelMode = aSelection->Mode();
- for (TColStd_MapIteratorOfMapOfTransient aSelectorIter (mySelectors); aSelectorIter.More(); aSelectorIter.Next())
- @@ -697,10 +698,10 @@
- ClearSelectionStructures (theObject, aSelMode, aCurSelector);
- theObject->RecomputePrimitives(aSelMode);
- RestoreSelectionStructures (theObject, aSelMode, aCurSelector);
- + aSelection->UpdateStatus (SelectMgr_TOU_None);
- + aSelection->UpdateBVHStatus (SelectMgr_TBU_None);
- }
- }
- - aSelection->UpdateStatus (SelectMgr_TOU_None);
- - aSelection->UpdateBVHStatus (SelectMgr_TBU_None);
- }
- }
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/tests/bugs/modalg_6/bug27065_1 OCCT-6.9.1p1_SRC/tests/bugs/modalg_6/bug27065_1
- --- OCCT-6.9.1_SRC/tests/bugs/modalg_6/bug27065_1 1970-01-01 03:00:00.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/tests/bugs/modalg_6/bug27065_1 2016-04-26 14:43:27.000000000 +0300
- @@ -0,0 +1,24 @@
- +puts "============"
- +puts "OCC27065"
- +puts "============"
- +puts ""
- +###############################
- +## BRepOffsetAPI_MakePipe misses definition of virtual method Generated()
- +###############################
- +
- +pload QAcommands
- +
- +restore [locate_data_file bug24840_comp.brep] sh
- +explode sh
- +OCC27065 sh_1 sh_2
- +fit
- +
- +checknbshapes res_shell -vertex 56 -edge 130 -wire 99 -face 99 -shell 24 -solid 24 -compsolid 1 -compound 1 -shape 434
- +
- +checknbshapes res_face -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1 -compsolid 0 -compound 1 -shape 35
- +
- +checknbshapes res_wire -vertex 8 -edge 12 -wire 4 -face 4 -shell 1 -solid 0 -compsolid 0 -compound 1 -shape 30
- +
- +checknbshapes res_edge -vertex 4 -edge 4 -wire 1 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 11
- +
- +checknbshapes res_vertex -vertex 2 -edge 1 -wire 0 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 4
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/tests/bugs/modalg_6/bug27065_2 OCCT-6.9.1p1_SRC/tests/bugs/modalg_6/bug27065_2
- --- OCCT-6.9.1_SRC/tests/bugs/modalg_6/bug27065_2 1970-01-01 03:00:00.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/tests/bugs/modalg_6/bug27065_2 2016-04-26 14:43:27.000000000 +0300
- @@ -0,0 +1,28 @@
- +puts "============"
- +puts "OCC27065"
- +puts "============"
- +puts ""
- +###############################
- +## BRepOffsetAPI_MakePipe misses definition of virtual method Generated()
- +###############################
- +
- +pload QAcommands
- +
- +restore [locate_data_file bug23903_base.brep] base
- +restore [locate_data_file bug23903_path.brep] sp
- +explode base
- +shape pr Sh
- +add base_1 pr
- +add base_2 pr
- +OCC27065 sp pr
- +fit
- +
- +checknbshapes res_shell -vertex 2 -edge 5 -wire 3 -face 3 -shell 2 -solid 2 -compsolid 1 -compound 1 -shape 19
- +
- +checknbshapes res_face -vertex 2 -edge 4 -wire 2 -face 2 -shell 1 -solid 1 -compsolid 0 -compound 1 -shape 13
- +
- +checknbshapes res_wire -vertex 2 -edge 4 -wire 2 -face 2 -shell 1 -solid 0 -compsolid 0 -compound 1 -shape 12
- +
- +checknbshapes res_edge -vertex 2 -edge 3 -wire 1 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 8
- +
- +checknbshapes res_vertex -vertex 1 -edge 1 -wire 0 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 3
- diff -Naur --exclude=CVS --exclude=.git --exclude=samples --exclude=cmake --exclude=Makefile.am --exclude=CMakeLists.txt --exclude=adm OCCT-6.9.1_SRC/tests/bugs/vis/bug26870 OCCT-6.9.1p1_SRC/tests/bugs/vis/bug26870
- --- OCCT-6.9.1_SRC/tests/bugs/vis/bug26870 1970-01-01 03:00:00.000000000 +0300
- +++ OCCT-6.9.1p1_SRC/tests/bugs/vis/bug26870 2016-04-26 15:52:06.000000000 +0300
- @@ -0,0 +1,37 @@
- +puts "============"
- +puts "CR26870"
- +puts "============"
- +puts ""
- +
- +##########################################################################################
- +puts "Visualization - deactivated selections are not updated after object's re-computation"
- +##########################################################################################
- +
- +pload VISUALIZATION MODELING
- +
- +vinit
- +box b 1 1 1
- +vdisplay b
- +vfit
- +
- +vselmode b 2 1
- +vselmode b 4 1
- +vselmode b 4 0
- +
- +box b 3 3 3
- +vdisplay b
- +vfit
- +
- +vselmode 4 1
- +
- +# pick a point onto previously computed face
- +vmoveto 80 265
- +if {[vreadpixel 90 206 name] == "CYAN1 1"} {
- + puts "ERROR: previously computed entities are highlighted! Selection mode 4 was not updated after redisplaying the box."
- +}
- +# pick a point onto box
- +if {[vreadpixel 29 216 name] == "YELLOW 1"} {
- + puts "ERROR: the box's face is not highlighted! Selection mode 4 was not updated after redisplaying the box."
- +}
- +
- +set only_screen 1
- =>> Edit salome-occt-6.9.1.patch? [y/N]:
- :: Content of /tmp/trizen-pol/opencascade/vtk7.patch
- --- a/src/IVtkVTK/IVtkVTK_ShapeData.cxx 2017-10-04 14:26:07.000000000 +0200
- +++ b/src/IVtkVTK/IVtkVTK_ShapeData.cxx 2018-04-07 14:43:32.920435032 +0200
- @@ -80,9 +80,9 @@
- vtkIdType aPointIdVTK = thePointId;
- myPolyData->InsertNextCell (VTK_VERTEX, 1, &aPointIdVTK);
- const vtkIdType aShapeIDVTK = theShapeID;
- - mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
- + mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
- const vtkIdType aType = theMeshType;
- - myMeshTypes->InsertNextTupleValue (&aType);
- + myMeshTypes->InsertNextTypedTuple (&aType);
- }
- //================================================================
- @@ -97,9 +97,9 @@
- vtkIdType aPoints[2] = { thePointId1, thePointId2 };
- myPolyData->InsertNextCell (VTK_LINE, 2, aPoints);
- const vtkIdType aShapeIDVTK = theShapeID;
- - mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
- + mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
- const vtkIdType aType = theMeshType;
- - myMeshTypes->InsertNextTupleValue (&aType);
- + myMeshTypes->InsertNextTypedTuple (&aType);
- }
- //================================================================
- @@ -124,9 +124,9 @@
- myPolyData->InsertNextCell (VTK_POLY_LINE, anIdList);
- const vtkIdType aShapeIDVTK = theShapeID;
- - mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
- + mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
- const vtkIdType aType = theMeshType;
- - myMeshTypes->InsertNextTupleValue (&aType);
- + myMeshTypes->InsertNextTypedTuple (&aType);
- }
- }
- @@ -143,7 +143,7 @@
- vtkIdType aPoints[3] = { thePointId1, thePointId2, thePointId3 };
- myPolyData->InsertNextCell (VTK_TRIANGLE, 3, aPoints);
- const vtkIdType aShapeIDVTK = theShapeID;
- - mySubShapeIDs->InsertNextTupleValue (&aShapeIDVTK);
- + mySubShapeIDs->InsertNextTypedTuple (&aShapeIDVTK);
- const vtkIdType aType = theMeshType;
- - myMeshTypes->InsertNextTupleValue (&aType);
- + myMeshTypes->InsertNextTypedTuple (&aType);
- }
- =>> Edit vtk7.patch? [y/N]:
- Repository : AUR
- Name : opencascade
- Version : 7.2.0p1-1
- Maintainer : gbs
- URL : http://www.opencascade.org
- AUR URL : https://aur.archlinux.org/packages.php?ID=501348
- License : custom
- Votes : 3
- Popularity : 2.6%
- Installed : Yes
- Out Of Date : No
- Depends On : tk
- vtk
- gl2ps
- ffmpeg
- freeimage
- intel-tbb
- Make Deps : cmake
- qt5-base
- Check Deps : None
- Optional Deps : None
- Provides : None
- Conflicts With : None
- Replaces : None
- Package Base : opencascade
- Last Update : Sun Apr 8 17:21:05 2018
- Description : Open CASCADE Technology, 3D modeling & numerical simulation
- ==> Fent el paquet: opencascade 7.2.0p1-1 (dg abr 8 22:57:14 CEST 2018)
- ==> Comprovant les dependències en temps d'execució ...
- ==> Comprovant de dependències per a l'assemblatge...
- ==> Recuperant els codis font...
- -> Baixant opencascade-7.2.0p1.tar.gz...
- ** Resuming transfer from byte position 3121152
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0
- curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
- ==> ERROR: Fallada mentre es baixava http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V7_2_0p1;sf=tgz
- Cancel·lant...
- :: Unable to build opencascade - makepkg exited with code: 1
- =>> Do you want to try again? [y/N]:
- =>> Do you want to exit now? [Y/n]:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement