diff --git a/ocp.toml b/ocp.toml index a5b70dcc..cd7d3130 100644 --- a/ocp.toml +++ b/ocp.toml @@ -19,7 +19,6 @@ exclude_namespaces = [ ] modules = [ -"GeomLProp", "NCollection", "AIS", "Standard", @@ -1345,6 +1344,7 @@ exclude = [ "gp_Vec2f.hxx", "gp_Vec3f.hxx", "math_Array1OfValueAndWeight.hxx", +"IMeshData_Types.hxx" ] # "BVH_Box.hxx","BVH_tools.hxx" @@ -1367,12 +1367,24 @@ exclude_collection = [ "List_IVtk_PointId", "ForwardRangeIterator_TopExp_Explorer", "ForwardRangeIterator_TopoDS_Iterator", -"IndexedMap_const Graphic3d_CStructure" +"IndexedMap_const Graphic3d_CStructure", +"Array1_SelectMgr_BVHThreadPool::BVHThread", +"DynamicArray_IntPatch_BVHTraversal::TrianglePair", +"List_Poly_CoherentTriangulation::TwoIntegers", +"DataMap_TopoDS_Shape_TNaming_PtrRefShape", +"IndexedMap_Graphic3d_CView", +"IndexedDataMap_TCollection_AsciiString_Aspect_XRAction", +"DynamicArray_BRepExtrema_ProximityDistTool::ProxPnt_Status", +"DataMap_unsigned int_AIS_MouseGesture", +"DataMap_unsigned int_AIS_SelectionScheme" ] collection_pattern = "NCollection" -collection_include_header_pre = """#include -#include """ +collection_include_header_pre_top = """#include +#include + +class OpenGl_ShaderProgram; +""" module_mapping = "lambda x: Path(x).splitpath()[-1].split('.')[0].split('_')[0]" @@ -2636,3 +2648,13 @@ using rapidjson::BasicOStreamWrapper;""" [Modules.RWMesh] include_header_pre = "#include " + + [Modules.Extrema] + + exclude_typedefs = ["Extrema_ECC","Extrema_ECC2d","Extrema_EPCOfELPCOfLocateExtPC", + "Extrema_EPCOfELPCOfLocateExtPC2d","Extrema_ELPCOfLocateExtPC","Extrema_ELPCOfLocateExtPC2d" + ] + + [Modules.Bnd] + + exclude_typedefs = ["Bnd_B2d","Bnd_B2f","Bnd_B3d","Bnd_B3f"] diff --git a/pywrap b/pywrap index 455cd2a0..5032bad1 160000 --- a/pywrap +++ b/pywrap @@ -1 +1 @@ -Subproject commit 455cd2a07852fa82de881e0de464f37981da6a64 +Subproject commit 5032bad1130f1b581e79caad6db6737f6f48d923 diff --git a/tests/test_ocp.py b/tests/test_ocp.py index 935af600..91b93a63 100644 --- a/tests/test_ocp.py +++ b/tests/test_ocp.py @@ -3,7 +3,7 @@ from OCP.BRepPrimAPI import BRepPrimAPI_MakeBox from OCP.TopoDS import TopoDS_Shape -from OCP import List_TopoDS_Shape +from OCP.collections import List_TopoDS_Shape # %% TopoDS_Shape @@ -134,7 +134,7 @@ def test_roundtrip(): from OCP.BRepBuilderAPI import BRepBuilderAPI_MakeEdge from OCP.ShapeAnalysis import ShapeAnalysis_FreeBounds -from OCP import HSequence_TopoDS_Shape +from OCP.collections import HSequence_TopoDS_Shape from OCP.gp import gp_Pnt