Skip to content

Commit 692373c

Browse files
authored
Merge pull request #1160 from tpaviot/review/occt770
Port to occt770
2 parents d7a3e15 + 07f358f commit 692373c

File tree

180 files changed

+14619
-2636
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+14619
-2636
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ if(DEFINED OCE_INCLUDE_PATH)
147147
# if OCE_INCLUDE_PATH is not passed at command line,
148148
# find OCE automatically
149149
else(OCE_INCLUDE_PATH)
150-
find_package(OpenCASCADE 7.6.3 REQUIRED)
150+
find_package(OpenCASCADE 7.7.0 REQUIRED)
151151
if(OpenCASCADE_FOUND)
152152
message(STATUS "OpenCASCADE version found: " ${OpenCASCADE_MAJOR_VERSION} "." ${OpenCASCADE_MINOR_VERSION} "." ${OpenCASCADE_MAINTENANCE_VERSION})
153153
message(STATUS "OpenCASCADE include directory: " ${OpenCASCADE_INCLUDE_DIR})

INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ can compile/use it :
2121

2222
* the python programming language (<http://www.python.org>). Python 3.x is required.
2323

24-
* OpenCascade 7.6.2 (<https://dev.opencascade.org>)
24+
* OpenCascade 7.7.0 (<https://dev.opencascade.org>)
2525

2626
IMPORTANT: OpenCASCADE has to be compiled using flag -D BUILD_RELEASE_DISABLE_EXCEPTIONS=OFF
2727

28-
* SWIG 4.0.2 or higher (<http://www.swig.org>)
28+
* SWIG 4.0.2 (<http://www.swig.org>)
2929

3030
Optional
3131
--------

NEWS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Version 7.7.0 - November 2022
2+
=============================
3+
4+
This release requires opencascade-7.7.0
5+
6+
* wrapper: port to opencascade-7.7.0
7+
18
Version 7.6.2 - August 2022
29
===========================
310

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Downloads Badge](https://anaconda.org/conda-forge/pythonocc-core/badges/downloads.svg)](https://anaconda.org/conda-forge/pythonocc-core)
33
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/tpaviot/pythonocc-core.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/tpaviot/pythonocc-core/context:python)
44
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/67c121324b8d4f37bc27029464c87020)](https://www.codacy.com/app/tpaviot/pythonocc-core?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=tpaviot/pythonocc-core&amp;utm_campaign=Badge_Grade)
5-
[![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/7.6.2)
5+
[![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/7.7.0)
66
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3686916.svg)](https://doi.org/10.5281/zenodo.3686916)
77

88
pythonocc-core
@@ -13,7 +13,7 @@ About
1313

1414
pythonocc provides 3D modeling and dataexchange features. It is intended to CAD/PDM/PLM and BIM related development.
1515

16-
Latest release : [pythonocc-core 7.6.2 (August 2022)](https://github.com/tpaviot/pythonocc-core/releases/tag/7.6.2)
16+
Latest release : [pythonocc-core 7.7.0 (November 2022)](https://github.com/tpaviot/pythonocc-core/releases/tag/7.7.0)
1717

1818
Features
1919
--------
@@ -28,18 +28,18 @@ pythonocc provides the following features:
2828
Try online at mybinder
2929
----------------------
3030

31-
Click [![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/7.6.2) to open a jupyter notebook running latest pythonocc-core 7.6.2, gmesh (<http://gmsh.info/>) and latest IfcOpenshell (<https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.6.0>) dev branch.
31+
Click [![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/7.7.0) to open a jupyter notebook running latest pythonocc-core 7.7.0, gmesh (<http://gmsh.info/>) and latest IfcOpenshell (<https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.6.0>) dev branch.
3232

3333
Download/install binaries for Linux/OSX/Windows
3434
-----------------------------------------------
3535

36-
pythonocc provides precompiled [conda packages](https://anaconda.org/pythonocc/pythonocc-core) (they depend on third part libraries made available from the dlr-sc and conda-forge conda channels) for python 3.8, 3.9 and 3.10. This will get you up and running in minutes whether you run win32/win64/linux64/osx64. Here is an example for python 3.7:
36+
pythonocc provides precompiled [conda packages](https://anaconda.org/pythonocc/pythonocc-core) (they depend on third part libraries made available from the dlr-sc and conda-forge conda channels) for python 3.8, 3.9 and 3.10. This will get you up and running in minutes whether you run win32/win64/linux64/osx64. Here is an example for python 3.9:
3737

3838
```bash
3939
# first create an environment
4040
conda create --name=pyoccenv python=3.9
4141
source activate pyoccenv
42-
conda install -c conda-forge pythonocc-core=7.6.2
42+
conda install -c conda-forge pythonocc-core=7.7.0
4343
```
4444

4545
Other channels provide pythonocc-core packages, check https://anaconda.org/search?q=pythonocc-core.
@@ -70,7 +70,7 @@ We use the following online resources:
7070
pythonocc, oce and opencascade dependencies
7171
-------------------------------------------
7272

73-
pythonocc-core 7.6.2 depends on the official OpenCascade-7.6.2 library (<https://dev.opencascade.org>)
73+
pythonocc-core 7.7.0 depends on the official OpenCascade-7.7.0 library (<https://dev.opencascade.org>)
7474

7575
Former releases rely on oce (OpenCascade Community Edition), available at
7676
[oce C++ library / CAD kernel](https://github.com/tpaviot/oce).

ci/conda/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = "7.6.3" %}
1+
{% set version = "7.7.0" %}
22

33
package:
44
name: pythonocc-core
@@ -26,11 +26,11 @@ requirements:
2626

2727
host:
2828
- python {{ python }}
29-
- occt ==7.6.3
29+
- occt ==7.7.0
3030
- numpy >=1.17
3131

3232
run:
33-
- occt ==7.6.3
33+
- occt ==7.7.0
3434
- six
3535
- numpy >=1.17
3636

src/MeshDataSource/MeshDataSource.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
#include "MeshDataSource.h"
2-
#include <vector>
3-
#include <gp_Pnt.hxx>
4-
#include <gp_Vec.hxx>
5-
#include <Precision.hxx>
6-
#include <Standard_Type.hxx>
7-
#include <TColgp_SequenceOfXYZ.hxx>
8-
#include <TColStd_DataMapOfIntegerInteger.hxx>
9-
#include <TColStd_DataMapOfIntegerReal.hxx>
2+
103

114
IMPLEMENT_STANDARD_RTTIEXT(MeshDS_DataSource, MeshVS_DataSource)
125

src/MeshDataSource/MeshDataSource.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44

55
#include <algorithm>
6+
#include <vector>
67

78
#include <Standard.hxx>
89
#include <Standard_Type.hxx>
@@ -16,12 +17,20 @@
1617
#include <TColStd_Array1OfReal.hxx>
1718
#include <TColStd_Array1OfInteger.hxx>
1819
#include <TColStd_HArray1OfInteger.hxx>
20+
#include <TColStd_DataMapOfIntegerInteger.hxx>
21+
#include <TColStd_DataMapOfIntegerReal.hxx>
1922
#include <MeshVS_EntityType.hxx>
2023
#include <MeshVS_DataSource.hxx>
2124
#include <Poly_Triangulation.hxx>
22-
#include <vector>
2325
#include <gp_Pnt.hxx>
2426
#include <gp_Vec.hxx>
27+
#include <Precision.hxx>
28+
#include <Standard_Type.hxx>
29+
#include <TColgp_SequenceOfXYZ.hxx>
30+
#include <TopTools_HArray2OfShape.hxx>
31+
#include <TopTools_HArray1OfListOfShape.hxx>
32+
#include <TopTools_HArray1OfShape.hxx>
33+
2534

2635
class MeshDS_DataSource;
2736
DEFINE_STANDARD_HANDLE(MeshDS_DataSource, MeshVS_DataSource)

src/PkgBase/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PYTHONOCC_VERSION_MAJOR = 7
2-
PYTHONOCC_VERSION_MINOR = 6
3-
PYTHONOCC_VERSION_PATCH = 3
2+
PYTHONOCC_VERSION_MINOR = 7
3+
PYTHONOCC_VERSION_PATCH = 0
44

55
# Empty for official releases, set to -dev, -rc1, etc for development releases
66
PYTHONOCC_VERSION_DEVEL = ''

src/SWIG_files/common/CommonIncludes.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ along with pythonOCC. If not, see <http://www.gnu.org/licenses/>.
2323
%include cpointer.i
2424
%include carrays.i
2525
%include exception.i
26+
%include <python/std_array.i>
2627
%include <python/std_list.i>
2728
%include <python/std_string.i>
2829
%include <python/std_basic_string.i>

src/SWIG_files/common/EnumTemplates.i

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ ENUM_OUTPUT_TYPEMAPS(CSLib_DerivativeStatus);
1212
ENUM_OUTPUT_TYPEMAPS(CSLib_NormalStatus);
1313
ENUM_OUTPUT_TYPEMAPS(MeshVS_EntityType);
1414
ENUM_OUTPUT_TYPEMAPS(BRepOffset_Status);
15+
ENUM_OUTPUT_TYPEMAPS(Graphic3d_DisplayPriority);
1516
ENUM_OUTPUT_TYPEMAPS(Graphic3d_NameOfMaterial);
1617
ENUM_OUTPUT_TYPEMAPS(GeomAbs_Shape);
18+
ENUM_OUTPUT_TYPEMAPS(ProxPnt_Status);
1719
ENUM_OUTPUT_TYPEMAPS(Aspect_TypeOfLine);
1820
ENUM_OUTPUT_TYPEMAPS(PrsDim_KindOfSurface);
1921
ENUM_OUTPUT_TYPEMAPS(DsgPrs_ArrowSide);

0 commit comments

Comments
 (0)