diff --git a/.bumpversion.toml b/.bumpversion.toml new file mode 100644 index 000000000..0cb6dc788 --- /dev/null +++ b/.bumpversion.toml @@ -0,0 +1,67 @@ +[tool.bumpversion] +current_version = "7.9.3" +commit = true +tag = false +tag_name = "{new_major}.{new_minor}.{new_patch}" + +[[tool.bumpversion.files]] +filename = "README.md" +search = "pythonocc-binderhub/{current_version}" +replace = "pythonocc-binderhub/{new_version}" + + +[[tool.bumpversion.files]] +filename = "README.md" +regex = true +search = "Latest release: \\[pythonocc-core {current_version} \\(\\d{{4}}-\\d{{2}}-\\d{{2}}\\)\\]\\(https://github\\.com/tpaviot/pythonocc-core/releases/tag/{current_version}\\)" +replace = "Latest release: [pythonocc-core {new_version} ({now:%Y-%m-%d})](https://github.com/tpaviot/pythonocc-core/releases/tag/{new_version})" + +[[tool.bumpversion.files]] +filename = "README.md" +search = "to open a jupyter notebook running the latest pythonocc-core {current_version}." +replace = "to open a jupyter notebook running the latest pythonocc-core {new_version}." + +[[tool.bumpversion.files]] +filename = "README.md" +search = "conda install -c conda-forge pythonocc-core={current_version}" +replace = "conda install -c conda-forge pythonocc-core={new_version}" + +[[tool.bumpversion.files]] +filename = "CMakeLists.txt" +search = "VERSION_MAJOR {current_major}" +replace = "VERSION_MAJOR {new_major}" + +[[tool.bumpversion.files]] +filename = "CMakeLists.txt" +search = "VERSION_MINOR {current_minor}" +replace = "VERSION_MINOR {new_minor}" + +[[tool.bumpversion.files]] +filename = "CMakeLists.txt" +search = "VERSION_PATCH {current_patch}" +replace = "VERSION_PATCH {new_patch}" + +[[tool.bumpversion.files]] +filename = "src/PkgBase/__init__.py" +search = "PYTHONOCC_VERSION_MAJOR = {current_major}" +replace = "PYTHONOCC_VERSION_MAJOR = {new_major}" + +[[tool.bumpversion.files]] +filename = "src/PkgBase/__init__.py" +search = "PYTHONOCC_VERSION_MINOR = {current_minor}" +replace = "PYTHONOCC_VERSION_MINOR = {new_minor}" + +[[tool.bumpversion.files]] +filename = "src/PkgBase/__init__.py" +search = "PYTHONOCC_VERSION_PATCH = {current_patch}" +replace = "PYTHONOCC_VERSION_PATCH = {new_patch}" + +[[tool.bumpversion.files]] +filename = "ci/conda/meta.yaml" +search = "set version = \"{current_version}\"" +replace = "set version = \"{new_version}\"" + +[[tool.bumpversion.files]] +filename = "ci/conda/meta.yaml" +search = "- occt =={current_version}" +replace = "- occt =={new_version}" \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index c1e127469..678dfba00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,15 +22,15 @@ project(PYTHONOCC) # set pythonOCC version set(PYTHONOCC_VERSION_MAJOR 7) set(PYTHONOCC_VERSION_MINOR 9) -set(PYTHONOCC_VERSION_PATCH 0) +set(PYTHONOCC_VERSION_PATCH 3) # Empty for official releases, set to -dev, -rc1, etc for development releases -set(PYTHONOCC_VERSION_DEVEL) +set(PYTHONOCC_VERSION_DEVEL ) # set OCCT version set(OCCT_VERSION_MAJOR 7) set(OCCT_VERSION_MINOR 9) -set(OCCT_VERSION_PATCH 0) +set(OCCT_VERSION_PATCH 3) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) @@ -45,8 +45,8 @@ if (POLICY CMP0086) cmake_policy(SET CMP0086 NEW) endif(POLICY CMP0086) -# Force C++ 11 -set(CMAKE_CXX_STANDARD 11) +# Force C++ 17 +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(BUILD_SHARED_LIBS ON) @@ -71,7 +71,7 @@ endmacro(option_with_default OPTION_NAME OPTION_STRING OPTION_DEFAULT) # OpenGL. If available, enable compilation for Visualization module # ##################################################################### find_package(OpenGL) -include_directories(OPENGL_INCLUDE_DIR) +include_directories(${OPENGL_INCLUDE_DIR}) ################# # Build options # @@ -96,7 +96,7 @@ option_with_default(PYTHONOCC_MESHDS_NUMPY "Enable using numpy to speed up mesh set(Python3_FIND_STRATEGY LOCATION) set(Python3_FIND_FRAMEWORK NEVER) if(PYTHONOCC_MESHDS_NUMPY) - find_package(Python3 3.9 COMPONENTS Interpreter Development NumPy REQUIRED) + find_package(Python3 COMPONENTS Interpreter Development NumPy REQUIRED) include_directories(${Python3_NumPy_INCLUDE_DIRS}) message(STATUS "Numpy include directory: ${Python3_NumPy_INCLUDE_DIRS}") set(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_FLAGS} -DBUILD_MESHDS_NUMPY) @@ -110,7 +110,7 @@ message(STATUS "Python library release: ${Python3_LIBRARY_RELEASE}") ######## # SWIG # ######## -find_package(SWIG 4.2.1...4.3.0 REQUIRED) +find_package(SWIG 4.2.1...4.4.1 REQUIRED) message(STATUS "SWIG version found: ${SWIG_VERSION}") include(${SWIG_USE_FILE}) set(SWIG_FILES_PATH src/SWIG_files/wrapper) @@ -196,7 +196,10 @@ if(NOT DEFINED PYTHONOCC_INSTALL_DIRECTORY) message(STATUS "conda-build running, using $ENV{SP_DIR} as install dir") set(PYTHONOCC_INSTALL_DIRECTORY $ENV{SP_DIR}/OCC CACHE PATH "pythonocc install directory") else(DEFINED ENV{SP_DIR} AND WIN32) - execute_process(COMMAND ${Python3_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; from os.path import relpath; print(relpath(get_python_lib(1,prefix='${CMAKE_INSTALL_PREFIX}'),'${CMAKE_INSTALL_PREFIX}'))" OUTPUT_VARIABLE python_lib OUTPUT_STRIP_TRAILING_WHITESPACE) + execute_process( + COMMAND ${Python3_EXECUTABLE} -c "import sysconfig, os, sys; print(os.path.relpath(sysconfig.get_path('platlib'), sys.prefix))" + OUTPUT_VARIABLE python_lib + OUTPUT_STRIP_TRAILING_WHITESPACE) set(PYTHONOCC_INSTALL_DIRECTORY ${python_lib}/OCC CACHE PATH "pythonocc install directory") endif(DEFINED ENV{SP_DIR} AND WIN32) endif(NOT DEFINED PYTHONOCC_INSTALL_DIRECTORY) @@ -292,7 +295,7 @@ foreach(OCCT_MODULE ${OCCT_TOOLKIT_MODEL}) set(FILE ${SWIG_FILES_PATH}/${OCCT_MODULE}.i) set_source_files_properties(${FILE} PROPERTIES CPLUSPLUS ON) swig_add_library (${OCCT_MODULE} LANGUAGE python SOURCES ${FILE} TYPE MODULE) - swig_link_libraries(${OCCT_MODULE} ${OCCT_MODEL_LIBRARIES} Python3::Module) + target_link_libraries(${OCCT_MODULE} ${OCCT_MODEL_LIBRARIES} Python3::Module) endforeach(OCCT_MODULE) ############### @@ -306,7 +309,7 @@ set(TESSELATOR_SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/Tesselator/ShapeTesselator.cpp) swig_add_library(Tesselator LANGUAGE python SOURCES ${TESSELATOR_SOURCE_FILES} TYPE MODULE) -swig_link_libraries(Tesselator ${OCCT_MODEL_LIBRARIES} Python3::Module) +target_link_libraries(Tesselator ${OCCT_MODEL_LIBRARIES} Python3::Module) ################# # Visualisation # @@ -316,13 +319,13 @@ if(PYTHONOCC_WRAP_VISU) if(OPENGL_FOUND) message(STATUS "OpenGL found; Visualization support enabled") endif() - include_directories(OPENGL_INCLUDE_DIR) + include_directories(${OPENGL_INCLUDE_DIR}) foreach(OCCT_MODULE ${OCCT_TOOLKIT_VISUALIZATION}) set(FILE ${SWIG_FILES_PATH}/${OCCT_MODULE}.i) set_source_files_properties(${FILE} PROPERTIES CPLUSPLUS ON) swig_add_library (${OCCT_MODULE} LANGUAGE python SOURCES ${FILE} TYPE MODULE) - swig_link_libraries(${OCCT_MODULE} ${OCCT_MODEL_LIBRARIES} ${OCCT_VISUALIZATION_LIBRARIES} Python3::Module) + target_link_libraries(${OCCT_MODULE} ${OCCT_MODEL_LIBRARIES} ${OCCT_VISUALIZATION_LIBRARIES} Python3::Module) endforeach(OCCT_MODULE) # Build third part modules @@ -335,12 +338,12 @@ if(PYTHONOCC_WRAP_VISU) ${CMAKE_CURRENT_SOURCE_DIR}/src/Visualization/Display3d.cpp) swig_add_library(Visualization LANGUAGE python SOURCES ${VISUALIZATION_SOURCE_FILES} TYPE MODULE) - swig_link_libraries(Visualization ${OCCT_MODEL_LIBRARIES} ${OCCT_VISUALIZATION_LIBRARIES} Python3::Module) + target_link_libraries(Visualization ${OCCT_MODEL_LIBRARIES} ${OCCT_VISUALIZATION_LIBRARIES} Python3::Module) if(APPLE) # on OSX, always add /System/Library/Frameworks/Cocoa.framework, even # if GLX is enabled - swig_link_libraries(Visualization /System/Library/Frameworks/Cocoa.framework) + target_link_libraries(Visualization /System/Library/Frameworks/Cocoa.framework) endif(APPLE) ########################## @@ -355,7 +358,7 @@ if(PYTHONOCC_WRAP_VISU) ${CMAKE_CURRENT_SOURCE_DIR}/src/MeshDataSource/MeshDataSource.cpp) swig_add_library(MeshDS LANGUAGE python SOURCES ${MESHDATASOURCE_SOURCE_FILES} TYPE MODULE) - swig_link_libraries(MeshDS ${OCCT_MODEL_LIBRARIES} ${OCCT_VISUALIZATION_LIBRARIES} Python3::Module) + target_link_libraries(MeshDS ${OCCT_MODEL_LIBRARIES} ${OCCT_VISUALIZATION_LIBRARIES} Python3::Module) endif(PYTHONOCC_WRAP_VISU) @@ -367,7 +370,7 @@ if(PYTHONOCC_WRAP_DATAEXCHANGE) set(FILE ${SWIG_FILES_PATH}/${OCCT_MODULE}.i) set_source_files_properties(${FILE} PROPERTIES CPLUSPLUS ON) swig_add_library(${OCCT_MODULE} LANGUAGE python SOURCES ${FILE} TYPE MODULE) - swig_link_libraries(${OCCT_MODULE} ${OCCT_MODEL_LIBRARIES} ${OCCT_DATAEXCHANGE_LIBRARIES} Python3::Module) + target_link_libraries(${OCCT_MODULE} ${OCCT_MODEL_LIBRARIES} ${OCCT_DATAEXCHANGE_LIBRARIES} Python3::Module) endforeach(OCCT_MODULE) endif(PYTHONOCC_WRAP_DATAEXCHANGE) @@ -379,26 +382,28 @@ if(PYTHONOCC_WRAP_OCAF) set(FILE ${SWIG_FILES_PATH}/${OCCT_MODULE}.i) set_source_files_properties(${FILE} PROPERTIES CPLUSPLUS ON) swig_add_library(${OCCT_MODULE} LANGUAGE python SOURCES ${FILE} TYPE MODULE) - swig_link_libraries(${OCCT_MODULE} ${OCCT_MODEL_LIBRARIES} ${OCCT_OCAF_LIBRARIES} Python3::Module) + target_link_libraries(${OCCT_MODULE} ${OCCT_MODEL_LIBRARIES} ${OCCT_OCAF_LIBRARIES} Python3::Module) endforeach(OCCT_MODULE) endif(PYTHONOCC_WRAP_OCAF) ########## # Addons # ########## -execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory src/Addons) -set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/Addons.i PROPERTIES CPLUSPLUS ON) -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/Addons) -set(ADDONS_SOURCE_FILES -${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/Addons.i -${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/Font3d.cpp -#${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/TextItem.cpp -#${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/LineItem.cpp -#${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/TextureItem.cpp -) - -swig_add_library(Addons LANGUAGE python SOURCES ${ADDONS_SOURCE_FILES} TYPE MODULE) -swig_link_libraries(Addons ${OCCT_MODEL_LIBRARIES} ${OCCT_VISUALIZATION_LIBRARIES} Python3::Module) +if(PYTHONOCC_WRAP_VISU) + execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory src/Addons) + set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/Addons.i PROPERTIES CPLUSPLUS ON) + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/Addons) + set(ADDONS_SOURCE_FILES + ${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/Addons.i + ${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/Font3d.cpp + #${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/TextItem.cpp + #${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/LineItem.cpp + #${CMAKE_CURRENT_SOURCE_DIR}/src/Addons/TextureItem.cpp + ) + + swig_add_library(Addons LANGUAGE python SOURCES ${ADDONS_SOURCE_FILES} TYPE MODULE) + target_link_libraries(Addons ${OCCT_MODEL_LIBRARIES} ${OCCT_VISUALIZATION_LIBRARIES} Python3::Module) +endif(PYTHONOCC_WRAP_VISU) ################ # Installation # @@ -461,8 +466,10 @@ if(PYTHONOCC_WRAP_VISU) endif(PYTHONOCC_WRAP_VISU) # install addons -install(FILES ${BUILD_DIR}/Addons.py DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}/Core ) -install(TARGETS Addons DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}/Core ) +if(PYTHONOCC_WRAP_VISU) + install(FILES ${BUILD_DIR}/Addons.py DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}/Core ) + install(TARGETS Addons DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}/Core ) +endif(PYTHONOCC_WRAP_VISU) # install Display install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/Display DESTINATION ${PYTHONOCC_INSTALL_DIRECTORY}) diff --git a/INSTALL.md b/INSTALL.md index accd5b2bf..b2a3915d2 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -90,7 +90,7 @@ Download and extract OpenCascade 7.9.0: ```bash wget https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_9_0.tar.gz tar -xvzf V7_9_0.tar.gz -cd OCCT-7.9.0 +cd OCCT-7_9_0 mkdir cmake-build cd cmake-build ``` @@ -142,6 +142,12 @@ echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/occt790/lib' >> ~/.bashrc source ~/.bashrc ``` +Note: if you're running a conda environment on a recent linux distribution, you migh have to + +```bash +conda update -c conda-forge libstdcxx-ng libgcc-ng +``` + # Windows Build Guide ## Prerequisites (Windows) diff --git a/NEWS b/NEWS index 2abe5b12f..580cc81d5 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,67 @@ +Version 7.9.3 - February 2026 +============================= + +This release requires opencascade-7.9.3 + +Highlights: +- OpenCASCADE 7.9.3 and SWIG 4.4.1 +- C++17 standard +- Python 3.13 and 3.14 support (Python 3.9 dropped) +- Tesselator performance: up to 37% faster exports, 50% less memory +- OpenGL Core Profile API for Qt6 integration +- Several memory leak fixes in SWIG typemaps and handle management +- Type stubs (.pyi) for Display and Extend packages + +* wrapper: upgrade to OpenCASCADE 7.9.3, bump SWIG to 4.4.1 + +* wrapper: bump C++ standard to C++17 + +* wrapper: add support for Python 3.13 and 3.14, drop Python 3.9 + +* wrapper: fix memory leak in TopoDS_Shape output typemaps + +* wrapper: fix memory leaks in SWIG wrappers (FunctionTransformers, OccHandle) + +* wrapper: add template for non-const byref handles, #1443 + +* wrapper: use Delete() method for occ handles + +* wrapper: use builtin SWIG_Python_AppendOutput + +* wrapper: refactored IOStream and exception catcher + +* wrapper: wrap NCollection_List iterator + +* wrapper: improve wrapper for NCollection_Sequence, __iter__ method added + +* wrapper: add docstrings and stubs (.pyi) for Display and Extend packages + +* wrapper: fix type hints for Display and Extend packages + +* wrapper: overall blackification (code formatting) + +* tesselator: optimize ShapeTesselator speed and memory with C++17 idioms + +* tesselator: switch from double to float for mesh vertices and normals, halving memory usage + +* display: add OpenGL Core Profile API to Display3d + +* display: add SetSRGBDisabled() to disable sRGB framebuffer + +* display: extend selection mode with wires and shells + +* display: don't draw seam edges in OCCViewer, #1413 + +* data exchange: add sew and make_solid options to STL importer for solid construction from 2d triangular mesh + +* build: add DEBUG_MEMORY compilation mode + +* build: fix macOS build (std::to_chars float compatibility) + +* build: fix conda build issues (sysroot, OpenGL path, dylib warnings) + +* ci/cd: use Windows 2022 in Azure pipelines + Version 7.9.0 - April 2025 ========================== diff --git a/README.md b/README.md index cb8b19513..6c0bb30b3 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Azure Build Status](https://dev.azure.com/tpaviot/pythonocc-core/_apis/build/status/tpaviot.pythonocc-core?branchName=master)](https://dev.azure.com/tpaviot/pythonocc-core/_build?definitionId=2) [![Downloads Badge](https://anaconda.org/conda-forge/pythonocc-core/badges/downloads.svg)](https://anaconda.org/conda-forge/pythonocc-core) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/67c121324b8d4f37bc27029464c87020)](https://www.codacy.com/app/tpaviot/pythonocc-core?utm_source=github.com&utm_medium=referral&utm_content=tpaviot/pythonocc-core&utm_campaign=Badge_Grade) -[![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/7.9.0) +[![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/7.9.3) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3605364.svg)](https://doi.org/10.5281/zenodo.3605364) pythonocc-core @@ -12,7 +12,7 @@ About ----- pythonocc provides 3D modeling and dataexchange features. It is intended for CAD/PDM/PLM/BIM development. It is based on the OpenCascade Technology modeling kernel. -Latest release: [pythonocc-core 7.9.0 (April 2025)](https://github.com/tpaviot/pythonocc-core/releases/tag/7.9.0) +Latest release: [pythonocc-core 7.9.3 (2026-02-12)](https://github.com/tpaviot/pythonocc-core/releases/tag/7.9.3) Features -------- @@ -27,17 +27,17 @@ pythonocc provides the following features: Try online at mybinder ---------------------- -Click [![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/7.9.0) to open a jupyter notebook running the latest pythonocc-core 7.9.0. +Click [![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/tpaviot/pythonocc-binderhub/7.9.3) to open a jupyter notebook running the latest pythonocc-core 7.9.3. Install with conda ------------------ -pythonocc provides precompiled [conda packages](https://anaconda.org/pythonocc/pythonocc-core) (they depend on third part libraries made available from the conda-forge channel) for python 3.9, 3.10, 3.11 and 3.12. This will get you up and running in minutes whether you run win32/win64/linux64/osx64. Here is an example for python 3.10: +pythonocc provides precompiled [conda packages](https://anaconda.org/pythonocc/pythonocc-core) (they depend on third part libraries made available from the conda-forge channel) for python 3.10, 3.11, 3.12, 3.13 and 3.14. This will get you up and running in minutes whether you run win32/win64/linux64/osx64. Here is an example for python 3.12: ```bash # first create an environment -conda create --name=pyoccenv python=3.10 +conda create --name=pyoccenv python=3.12 conda activate pyoccenv -conda install -c conda-forge pythonocc-core=7.9.0 +conda install -c conda-forge pythonocc-core=7.9.3 ``` Other conda channels may provide pythonocc-core packages, check [search Anaconda](https://anaconda.org/search?q=pythonocc-core) @@ -46,15 +46,21 @@ Build from source ----------------- Read the [INSTALL.md](https://github.com/tpaviot/pythonocc-core/blob/master/INSTALL.md) instructions where you find compilation instructions for all platforms. +Use cases +--------- +pythonocc is widely used in industrial and academic communities, with over 400 scientific citations covering a broad range of domains [Google Scholar pythonocc page](https://scholar.google.com/scholar?as_vis=1&q=pythonocc&hl=fr&as_sdt=0,5) + +Many pythonocc-related projects are available as [github repositories](https://github.com/search?q=pythonocc&type=repositories&p=3) + Cite as ------- -pythonocc is widely used in the industrial and academic communities. It is registered as a [Zenodo open access softwar](https://zenodo.org/record/7471333) and should be cited as: +pythonocc is registered as a [Zenodo open access software](https://zenodo.org/record/7471333) and should be cited as: Paviot, T. (2022). "pythonocc". Zenodo. https://doi.org/10.5281/zenodo.3605364 -Professional support --------------------- -pythonocc is backed by [meeDIA](https://meedia.ai/pythonocc-en), a company co-founded by pythonocc's creator and lead maintainer. For professional support inquiries, please contact us. +Support +------- +pythonocc is backed by [meeDIA](https://meedia.ai/pythonocc-en), a french company co-founded by pythonocc's creator and lead maintainer. For professional support inquiries, please contact us at contact@meedia.ai meeDIA logo diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a2a758c49..5be7ad252 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,91 +15,105 @@ schedules: jobs: - template: conda-build.yml parameters: - name: Ubuntu_22_04_python39 - vmImage: 'ubuntu-22.04' + name: Ubuntu_24_04_python310 + vmImage: 'ubuntu-24.04' py_maj: 3 - py_min: 9 + py_min: 10 - template: conda-build.yml parameters: - name: macOS_12_python39 + name: macOS_12_python310 vmImage: 'macOS-latest' py_maj: 3 - py_min: 9 + py_min: 10 - template: conda-build.yml parameters: - name: Windows_VS2019_python39 - vmImage: 'windows-2019' + name: Windows_VS2022_python310 + vmImage: 'windows-2022' py_maj: 3 - py_min: 9 + py_min: 10 - template: conda-build.yml parameters: - name: Ubuntu_22_04_python310 - vmImage: 'ubuntu-22.04' + name: Ubuntu_24_04_python311 + vmImage: 'ubuntu-24.04' py_maj: 3 - py_min: 10 + py_min: 11 + +- template: conda-build.yml + parameters: + name: macOS_12_python311 + vmImage: 'macOS-latest' + py_maj: 3 + py_min: 11 + +- template: conda-build.yml + parameters: + name: Windows_VS2022_python311 + vmImage: 'windows-2022' + py_maj: 3 + py_min: 11 - template: conda-build.yml parameters: - name: Ubuntu_24_04_python310 + name: Ubuntu_24_04_python312 vmImage: 'ubuntu-24.04' py_maj: 3 - py_min: 10 + py_min: 12 - template: conda-build.yml parameters: - name: macOS_12_python310 + name: macOS_12_python312 vmImage: 'macOS-latest' py_maj: 3 - py_min: 10 + py_min: 12 - template: conda-build.yml parameters: - name: Windows_VS2019_python310 - vmImage: 'windows-2019' + name: Windows_VS2022_python312 + vmImage: 'windows-2022' py_maj: 3 - py_min: 10 + py_min: 12 - template: conda-build.yml parameters: - name: Ubuntu_22_04_python311 - vmImage: 'ubuntu-22.04' + name: Ubuntu_24_04_python313 + vmImage: 'ubuntu-24.04' py_maj: 3 - py_min: 11 + py_min: 13 - template: conda-build.yml parameters: - name: macOS_12_python311 + name: macOS_12_python313 vmImage: 'macOS-latest' py_maj: 3 - py_min: 11 + py_min: 13 - template: conda-build.yml parameters: - name: Windows_VS2019_python311 - vmImage: 'windows-2019' + name: Windows_VS2022_python313 + vmImage: 'windows-2022' py_maj: 3 - py_min: 11 + py_min: 13 - template: conda-build.yml parameters: - name: Ubuntu_22_04_python312 - vmImage: 'ubuntu-22.04' + name: Ubuntu_24_04_python314 + vmImage: 'ubuntu-24.04' py_maj: 3 - py_min: 12 + py_min: 14 - template: conda-build.yml parameters: - name: macOS_12_python312 + name: macOS_12_python314 vmImage: 'macOS-latest' py_maj: 3 - py_min: 12 + py_min: 14 - template: conda-build.yml parameters: - name: Windows_VS2019_python312 - vmImage: 'windows-2019' + name: Windows_VS2022_python314 + vmImage: 'windows-2022' py_maj: 3 - py_min: 12 + py_min: 14 diff --git a/ci/conda/build.sh b/ci/conda/build.sh index 5a9b913dd..662ef3e55 100644 --- a/ci/conda/build.sh +++ b/ci/conda/build.sh @@ -1,7 +1,11 @@ #!/bin/bash -# make an in source build do to some problems with install # Configure step +EXTRA_CMAKE_ARGS="" +if [ "$(uname)" == "Darwin" ]; then + EXTRA_CMAKE_ARGS="-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13" +fi + cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_PREFIX_PATH=$PREFIX \ @@ -12,17 +16,11 @@ cmake -G Ninja \ -DPython3_FIND_STRATEGY=LOCATION \ -DPython3_FIND_FRAMEWORK=NEVER \ -DSWIG_HIDE_WARNINGS=ON \ - -DPYTHONOCC_MESHDS_NUMPY=ON + -DPYTHONOCC_MESHDS_NUMPY=ON \ + $EXTRA_CMAKE_ARGS # Build step ninja # Install step ninja install - -# fix rpaths -#if [ $(uname) == Darwin ]; then -# for lib in $(ls $SP_DIR/OCC/_*.so); do -# install_name_tool -rpath $PREFIX/lib @loader_path/../../../ $lib -# done -#fi diff --git a/ci/conda/meta.yaml b/ci/conda/meta.yaml index d11622bb1..8777f1332 100644 --- a/ci/conda/meta.yaml +++ b/ci/conda/meta.yaml @@ -1,4 +1,4 @@ -{% set version = "7.9.0" %} +{% set version = "7.9.3" %} package: name: pythonocc-core @@ -22,16 +22,21 @@ requirements: - {{ cdt('libxi-devel') }} # [linux] - ninja - cmake - - swig ==4.3.0 + - swig ==4.4.1 + - sysroot_linux-64 >=2.28 # [linux] host: - python {{ python }} - - occt ==7.9.0 + - python_abi * *_cp313 [py==313] + - python_abi * *_cp314 [py==314] + - occt ==7.9.3 - numpy >=1.17 run: - - occt ==7.9.0 + - occt ==7.9.3 - numpy >=1.17 + - python_abi * *_cp313 [py==313] + - python_abi * *_cp314 [py==314] test: imports: @@ -39,12 +44,12 @@ test: - OCC.Core.BRepPrimAPI - OCC.Core.Tesselator requires: - - pyqt >=5 + - pyqt5-sip # [win] + - pyside6 >=6.10 # [win] + - wxpython >=4.2 # [win] + - svgwrite >=1.4 - mypy - pytest - - svgwrite - - wxpython >=4 - - pyside6 about: home: https://github.com/tpaviot/pythonocc-core diff --git a/conda-build.yml b/conda-build.yml index b6b81ffcf..287a74ad8 100644 --- a/conda-build.yml +++ b/conda-build.yml @@ -3,7 +3,6 @@ parameters: vmImage: 'ubuntu-22.04' py_maj: '3' py_min: '9' - jobs: - job: ${{ parameters.name }} timeoutInMinutes: 360 @@ -31,7 +30,6 @@ jobs: - ${{ if contains(parameters.vmImage, 'win') }}: - powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" displayName: 'Add conda to PATH' - # Ubuntu install opengl items and remove swig packages that conflict with anaconda - ${{ if contains(parameters.vmImage, 'ubuntu') }}: - bash: | @@ -40,38 +38,39 @@ jobs: sudo apt list --installed && \ sudo apt remove swig swig4.0 displayName: 'Install OpenGL headers' - - bash: | conda config --set always_yes yes --set changeps1 no && \ conda update -q conda && \ conda info -a && \ conda config --add channels https://conda.anaconda.org/conda-forge displayName: 'Conda config and info' - - - ${{ if eq(parameters.vmImage, 'windows-2019') }}: - - script: | - call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat" - displayName: 'Set Windows environment' - env: - CXX: "cl.exe" - + - bash: conda create --yes --quiet --name build_env conda-build conda-verify libarchive python=3.12 anaconda-client + displayName: 'Create Anaconda environment' - ${{ if eq(parameters.vmImage, 'windows-2022') }}: - script: | call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat" - displayName: 'Set Windows environment' + echo "PATH=%PATH%" + where cl.exe + set CC=cl.exe + set CXX=cl.exe + call activate build_env + conda-build --python ${{ parameters.py_maj }}.${{ parameters.py_min }} --no-remove-work-dir --dirty ci/conda + displayName: 'Set Windows environment and build' env: CXX: "cl.exe" - - - bash: conda create --yes --quiet --name build_env conda-build conda-verify libarchive python=${{ parameters.py_maj }}.${{ parameters.py_min }} anaconda-client - displayName: 'Create Anaconda environment' - - - bash: | - source activate build_env && \ - conda-build --no-remove-work-dir --dirty ci/conda - displayName: 'Run conda build' - failOnStderr: false - env: - PYTHONBUFFERED: 1 - PYTHON_VERSION: ${{ parameters.py_maj }}.${{ parameters.py_min }} - PACKAGE_VERSION: $(Build.SourceBranchName) - TOKEN: $(anaconda.TOKEN) + CC: "cl.exe" + PYTHONBUFFERED: 1 + PYTHON_VERSION: ${{ parameters.py_maj }}.${{ parameters.py_min }} + PACKAGE_VERSION: $(Build.SourceBranchName) + TOKEN: $(anaconda.TOKEN) + - ${{ if not(contains(parameters.vmImage, 'win')) }}: + - bash: | + source activate build_env && \ + conda-build --python ${{ parameters.py_maj }}.${{ parameters.py_min }} --no-remove-work-dir --dirty ci/conda + displayName: 'Run conda build' + failOnStderr: false + env: + PYTHONBUFFERED: 1 + PYTHON_VERSION: ${{ parameters.py_maj }}.${{ parameters.py_min }} + PACKAGE_VERSION: $(Build.SourceBranchName) + TOKEN: $(anaconda.TOKEN) diff --git a/src/Display/OCCViewer.py b/src/Display/OCCViewer.py index e773960ac..674ec7cfd 100644 --- a/src/Display/OCCViewer.py +++ b/src/Display/OCCViewer.py @@ -22,6 +22,7 @@ import os import sys import time +from typing import Any, Callable, List, Optional, Tuple, Union import OCC from OCC.Core.Aspect import Aspect_GFM_VER @@ -39,12 +40,14 @@ BRepBuilderAPI_MakeFace, ) from OCC.Core.TopAbs import ( - TopAbs_FACE, - TopAbs_EDGE, TopAbs_VERTEX, + TopAbs_EDGE, + TopAbs_WIRE, + TopAbs_FACE, TopAbs_SHELL, TopAbs_SOLID, ) +from OCC.Core.GeomAbs import GeomAbs_G2 from OCC.Core.Geom import Geom_Curve, Geom_Surface from OCC.Core.Geom2d import Geom2d_Curve from OCC.Core.Visualization import Display3d @@ -87,7 +90,12 @@ Graphic3d_GraduatedTrihedron, Graphic3d_NameOfMaterial, ) -from OCC.Core.Aspect import Aspect_TOTP_RIGHT_LOWER, Aspect_FM_STRETCH, Aspect_FM_NONE +from OCC.Core.Aspect import ( + Aspect_TOTP_RIGHT_LOWER, + Aspect_FM_STRETCH, + Aspect_FM_NONE, + Aspect_FillMethod, +) if sys.platform == "win32": if "CASROOT" in os.environ: @@ -113,11 +121,11 @@ os.environ["CASROOT"] = casroot_path -def rgb_color(r, g, b): +def rgb_color(r: float, g: float, b: float) -> Quantity_Color: return Quantity_Color(r, g, b, Quantity_TOC_RGB) -def get_color_from_name(color_name): +def get_color_from_name(color_name: str) -> Quantity_Color: """from the string 'WHITE', returns Quantity_Color WHITE. color_name is the color name, case insensitive. @@ -134,14 +142,24 @@ def get_color_from_name(color_name): return Quantity_Color(color_num) -# some thing we'll need later -modes = itertools.cycle( - [TopAbs_FACE, TopAbs_EDGE, TopAbs_VERTEX, TopAbs_SHELL, TopAbs_SOLID] +TOPOLOGY_MODES = itertools.cycle( + [TopAbs_SOLID, TopAbs_SHELL, TopAbs_FACE, TopAbs_WIRE, TopAbs_EDGE, TopAbs_VERTEX] ) class Viewer3d(Display3d): - def __init__(self): + """ + A 3D viewer for pythonOCC. + + This class provides a 3D viewer for displaying OpenCASCADE shapes. + It is based on the `OCC.Core.Visualization.Display3d` class and provides + a higher-level API for interacting with the viewer. + """ + + def __init__(self) -> None: + """ + Initializes the Viewer3d. + """ Display3d.__init__(self) self._parent = None # the parent opengl GUI container @@ -157,48 +175,93 @@ def __init__(self): self.default_drawer = None self._is_offscreen = None - self.selected_shapes = [] - self._select_callbacks = [] - self._overlay_items = [] + self.selected_shapes: List[AIS_Shape] = [] + self._select_callbacks: List[Callable] = [] + self._overlay_items: List[Any] = [] + + self._window_handle: Optional[Any] = None - self._window_handle = None + def get_parent(self) -> Any: + """ + Returns the parent of the viewer. - def get_parent(self): + Returns: + The parent of the viewer. + """ return self._parent - def register_overlay_item(self, overlay_item): + def register_overlay_item(self, overlay_item: Any) -> None: + """ + Registers an overlay item to be drawn on top of the 3D view. + + Args: + overlay_item: The overlay item to register. + """ self._overlay_items.append(overlay_item) self.View.MustBeResized() self.View.Redraw() - def register_select_callback(self, callback): - """Adds a callback that will be called each time a shape s selected""" + def register_select_callback(self, callback: Callable) -> None: + """ + Adds a callback that will be called each time a shape is selected. + + Args: + callback: The callback function to register. The callback will be + called with the selected shapes as argument. + """ if not callable(callback): raise AssertionError("You must provide a callable to register the callback") self._select_callbacks.append(callback) - def unregister_callback(self, callback): - """Remove a callback from the callback list""" + def unregister_callback(self, callback: Callable) -> None: + """ + Remove a callback from the callback list. + + Args: + callback: The callback function to unregister. + """ if callback not in self._select_callbacks: raise AssertionError("This callback is not registered") self._select_callbacks.remove(callback) - def MoveTo(self, X, Y): + def MoveTo(self, X: int, Y: int) -> None: + """ + Moves the mouse to the given coordinates. + + Args: + X (int): The x-coordinate. + Y (int): The y-coordinate. + """ self.Context.MoveTo(X, Y, self.View, True) - def FitAll(self): + def FitAll(self) -> None: + """ + Fits all objects in the view. + """ self.View.ZFitAll() self.View.FitAll() def Create( self, - window_handle=None, - parent=None, - create_default_lights=True, - draw_face_boundaries=True, - phong_shading=True, - display_glinfo=True, - ): + window_handle: Optional[Any] = None, + parent: Optional[Any] = None, + create_default_lights: bool = True, + draw_face_boundaries: bool = True, + phong_shading: bool = True, + display_glinfo: bool = True, + ) -> None: + """ + Creates the viewer. + + Args: + window_handle: The handle of the window to create the viewer in. + If None, an offscreen renderer will be created. + parent: The parent of the viewer. + create_default_lights (bool): Whether to create default lights. + draw_face_boundaries (bool): Whether to draw face boundaries. + phong_shading (bool): Whether to use Phong shading. + display_glinfo (bool): Whether to display OpenGL information. + """ self._window_handle = window_handle self._parent = parent @@ -222,6 +285,8 @@ def Create( # draw black contour edges, like other famous CAD packages if draw_face_boundaries: self.default_drawer.SetFaceBoundaryDraw(True) + # Don't draw seam edges + self.default_drawer.SetFaceBoundaryUpperContinuity(GeomAbs_G2) # turn up tessellation defaults, which are too conversative... chord_dev = self.default_drawer.MaximalChordialDeviation() / 10.0 @@ -234,70 +299,123 @@ def Create( # turn self._inited flag to True self._inited = True - def OnResize(self): + def OnResize(self) -> None: + """ + Called when the view is resized. + """ self.View.MustBeResized() - def ResetView(self): + def ResetView(self) -> None: + """ + Resets the view. + """ self.View.Reset() - def Repaint(self): + def Repaint(self) -> None: + """ + Repaints the view. + """ self.Viewer.Redraw() - def SetModeWireFrame(self): + def SetModeWireFrame(self) -> None: + """ + Sets the display mode to wireframe. + """ self.View.SetComputedMode(False) self.Context.SetDisplayMode(AIS_WireFrame, True) - def SetModeShaded(self): + def SetModeShaded(self) -> None: + """ + Sets the display mode to shaded. + """ self.View.SetComputedMode(False) self.Context.SetDisplayMode(AIS_Shaded, True) - def SetModeHLR(self): + def SetModeHLR(self) -> None: + """ + Sets the display mode to hidden line removal. + """ self.View.SetComputedMode(True) - def SetOrthographicProjection(self): + def SetOrthographicProjection(self) -> None: + """ + Sets the projection to orthographic. + """ self.camera.SetProjectionType(Graphic3d_Camera.Projection_Orthographic) - def SetPerspectiveProjection(self): + def SetPerspectiveProjection(self) -> None: + """ + Sets the projection to perspective. + """ self.camera.SetProjectionType(Graphic3d_Camera.Projection_Perspective) - def View_Top(self): + def View_Top(self) -> None: + """ + Sets the view to top. + """ self.View.SetProj(V3d_Zpos) - def View_Bottom(self): + def View_Bottom(self) -> None: + """ + Sets the view to bottom. + """ self.View.SetProj(V3d_Zneg) - def View_Left(self): + def View_Left(self) -> None: + """ + Sets the view to left. + """ self.View.SetProj(V3d_Xneg) - def View_Right(self): + def View_Right(self) -> None: + """ + Sets the view to right. + """ self.View.SetProj(V3d_Xpos) - def View_Front(self): + def View_Front(self) -> None: + """ + Sets the view to front. + """ self.View.SetProj(V3d_Yneg) - def View_Rear(self): + def View_Rear(self) -> None: + """ + Sets the view to rear. + """ self.View.SetProj(V3d_Ypos) - def View_Iso(self): + def View_Iso(self) -> None: + """ + Sets the view to isometric. + """ self.View.SetProj(V3d_XposYnegZpos) - def EnableTextureEnv(self, name_of_texture=Graphic3d_NOT_ENV_CLOUDS): - """enable environment mapping. Possible modes are - Graphic3d_NOT_ENV_CLOUDS - Graphic3d_NOT_ENV_CV - Graphic3d_NOT_ENV_MEDIT - Graphic3d_NOT_ENV_PEARL - Graphic3d_NOT_ENV_SKY1 - Graphic3d_NOT_ENV_SKY2 - Graphic3d_NOT_ENV_LINES - Graphic3d_NOT_ENV_ROAD - Graphic3d_NOT_ENV_UNKNOWN + def EnableTextureEnv(self, name_of_texture: int = Graphic3d_NOT_ENV_CLOUDS) -> None: + """ + Enables environment mapping. + + Args: + name_of_texture: The name of the texture to use. Possible values + are: + - Graphic3d_NOT_ENV_CLOUDS + - Graphic3d_NOT_ENV_CV + - Graphic3d_NOT_ENV_MEDIT + - Graphic3d_NOT_ENV_PEARL + - Graphic3d_NOT_ENV_SKY1 + - Graphic3d_NOT_ENV_SKY2 + - Graphic3d_NOT_ENV_LINES + - Graphic3d_NOT_ENV_ROAD + - Graphic3d_NOT_ENV_UNKNOWN """ texture_env = Graphic3d_TextureEnv(name_of_texture) self.View.SetTextureEnv(texture_env) self.View.Redraw() - def DisableTextureEnv(self): + def DisableTextureEnv(self) -> None: + """ + Disables environment mapping. + """ a_null_texture = Handle_Graphic3d_TextureEnv_Create() self.View.SetTextureEnv( a_null_texture @@ -306,26 +424,29 @@ def DisableTextureEnv(self): def SetRenderingParams( self, - Method=Graphic3d_RM_RASTERIZATION, - RaytracingDepth=3, - IsShadowEnabled=True, - IsReflectionEnabled=False, - IsAntialiasingEnabled=False, - IsTransparentShadowEnabled=False, - StereoMode=Graphic3d_StereoMode_QuadBuffer, - AnaglyphFilter=Graphic3d_RenderingParams.Anaglyph_RedCyan_Optimized, - ToReverseStereo=False, - ): - """Default values are : - Method=Graphic3d_RM_RASTERIZATION, - RaytracingDepth=3, - IsShadowEnabled=True, - IsReflectionEnabled=False, - IsAntialiasingEnabled=False, - IsTransparentShadowEnabled=False, - StereoMode=Graphic3d_StereoMode_QuadBuffer, - AnaglyphFilter=Graphic3d_RenderingParams.Anaglyph_RedCyan_Optimized, - ToReverseStereo=False) + Method: int = Graphic3d_RM_RASTERIZATION, + RaytracingDepth: int = 3, + IsShadowEnabled: bool = True, + IsReflectionEnabled: bool = False, + IsAntialiasingEnabled: bool = False, + IsTransparentShadowEnabled: bool = False, + StereoMode: int = Graphic3d_StereoMode_QuadBuffer, + AnaglyphFilter: "Graphic3d_RenderingParams.Anaglyph" = Graphic3d_RenderingParams.Anaglyph_RedCyan_Optimized, + ToReverseStereo: bool = False, + ) -> None: + """ + Sets the rendering parameters. + + Args: + Method: The rendering method to use. + RaytracingDepth (int): The ray tracing depth. + IsShadowEnabled (bool): Whether to enable shadows. + IsReflectionEnabled (bool): Whether to enable reflections. + IsAntialiasingEnabled (bool): Whether to enable anti-aliasing. + IsTransparentShadowEnabled (bool): Whether to enable transparent shadows. + StereoMode: The stereo mode to use. + AnaglyphFilter: The anaglyph filter to use. + ToReverseStereo (bool): Whether to reverse stereo. """ self.ChangeRenderingParams( Method, @@ -339,14 +460,19 @@ def SetRenderingParams( ToReverseStereo, ) - def SetRasterizationMode(self): - """to enable rasterization mode, just call the SetRenderingParams - with default values + def SetRasterizationMode(self) -> None: + """ + Sets the rendering mode to rasterization. """ self.SetRenderingParams() - def SetRaytracingMode(self, depth=3): - """enables the raytracing mode""" + def SetRaytracingMode(self, depth: int = 3) -> None: + """ + Enables the raytracing mode. + + Args: + depth (int): The ray tracing depth. + """ self.SetRenderingParams( Method=Graphic3d_RM_RAYTRACING, RaytracingDepth=depth, @@ -356,15 +482,26 @@ def SetRaytracingMode(self, depth=3): IsTransparentShadowEnabled=True, ) - def ExportToImage(self, image_filename): + def ExportToImage(self, image_filename: str) -> None: + """ + Exports the view to an image file. + + Args: + image_filename (str): The name of the image file. + """ self.View.Dump(image_filename) - def display_graduated_trihedron(self): + def display_graduated_trihedron(self) -> None: + """ + Displays a graduated trihedron. + """ a_trihedron_data = Graphic3d_GraduatedTrihedron() self.View.GraduatedTrihedronDisplay(a_trihedron_data) - def display_triedron(self): - """Show a black triedron in lower right corner""" + def display_triedron(self) -> None: + """ + Shows a black triedron in lower right corner. + """ self.View.TriedronDisplay( Aspect_TOTP_RIGHT_LOWER, Quantity_Color(Quantity_NOC_BLACK), @@ -372,17 +509,36 @@ def display_triedron(self): V3d_ZBUFFER, ) - def hide_triedron(self): - """Show a black triedron in lower right corner""" + def hide_triedron(self) -> None: + """ + Hides the triedron. + """ self.View.TriedronErase() - def set_bg_gradient_color(self, color1, color2, fill_method=Aspect_GFM_VER): - """set a bg vertical gradient color. - color1 is [R1, G1, B1], each being bytes or an instance of Quantity_Color - color2 is [R2, G2, B2], each being bytes or an instance of Quantity_Color - fill_method is one of Aspect_GFM_VER value Aspect_GFM_NONE, Aspect_GFM_HOR, - Aspect_GFM_VER, Aspect_GFM_DIAG1, Aspect_GFM_DIAG2, Aspect_GFM_CORNER1, Aspect_GFM_CORNER2, - Aspect_GFM_CORNER3, Aspect_GFM_CORNER4 + def set_bg_gradient_color( + self, + color1: Union[List[float], Quantity_Color], + color2: Union[List[float], Quantity_Color], + fill_method: Aspect_FillMethod = Aspect_GFM_VER, + ) -> None: + """ + Sets a background vertical gradient color. + + Args: + color1: The first color. Can be a list of 3 floats (R, G, B) or a + Quantity_Color. + color2: The second color. Can be a list of 3 floats (R, G, B) or a + Quantity_Color. + fill_method: The fill method to use. Can be one of: + - Aspect_GFM_NONE + - Aspect_GFM_HOR + - Aspect_GFM_VER + - Aspect_GFM_DIAG1 + - Aspect_GFM_DIAG2 + - Aspect_GFM_CORNER1 + - Aspect_GFM_CORNER2 + - Aspect_GFM_CORNER3 + - Aspect_GFM_CORNER4 """ if isinstance(color1, list) and isinstance(color2, list): R1, G1, B1 = color1 @@ -397,8 +553,14 @@ def set_bg_gradient_color(self, color1, color2, fill_method=Aspect_GFM_VER): ) self.View.SetBgGradientColors(color1, color2, fill_method, True) - def SetBackgroundImage(self, image_filename, stretch=True): - """displays a background image (jpg, png etc.)""" + def SetBackgroundImage(self, image_filename: str, stretch: bool = True) -> None: + """ + Displays a background image (jpg, png etc.). + + Args: + image_filename (str): The name of the image file. + stretch (bool): Whether to stretch the image to fit the view. + """ if not os.path.isfile(image_filename): raise IOError(f"image file {image_filename} not found.") if stretch: @@ -406,8 +568,20 @@ def SetBackgroundImage(self, image_filename, stretch=True): else: self.View.SetBackgroundImage(image_filename, Aspect_FM_NONE, True) - def DisplayVector(self, vec, pnt, update=False): - """displays a vector as an arrow""" + def DisplayVector( + self, vec: gp_Vec, pnt: gp_Pnt, update: bool = False + ) -> Optional[Graphic3d_Structure]: + """ + Displays a vector as an arrow. + + Args: + vec (gp_Vec): The vector to display. + pnt (gp_Pnt): The starting point of the vector. + update (bool): Whether to update the view. + + Returns: + The created structure. + """ if self._inited: aStructure = Graphic3d_Structure(self.struc_mgr) @@ -428,20 +602,30 @@ def DisplayVector(self, vec, pnt, update=False): if update: self.Repaint() return aStructure + return None def DisplayMessage( self, - point, - text_to_write, - height=14.0, - message_color=(0.0, 0.0, 0.0), - update=False, - ): - """ - :point: a gp_Pnt or gp_Pnt2d instance - :text_to_write: a string - :height: font height, 12 by defaults - :message_color: triple with the range 0-1, default to black + point: Union[gp_Pnt, gp_Pnt2d], + text_to_write: str, + height: float = 14.0, + message_color: Tuple[float, float, float] = (0.0, 0.0, 0.0), + update: bool = False, + ) -> Graphic3d_Structure: + """ + Displays a message at the given point. + + Args: + point: The point where to display the message. Can be a gp_Pnt or + a gp_Pnt2d. + text_to_write (str): The text to display. + height (float): The font height. + message_color (tuple): The color of the message, as a tuple of 3 + floats (R, G, B). + update (bool): Whether to update the view. + + Returns: + The created structure. """ aStructure = Graphic3d_Structure(self.struc_mgr) @@ -461,15 +645,29 @@ def DisplayMessage( def DisplayShape( self, - shapes, - material=None, - texture=None, - color=None, - transparency=None, - update=False, - ): - """display one or a set of displayable objects""" - ais_shapes = [] # the list of all displayed shapes + shapes: Any, + material: Optional[Any] = None, + texture: Optional[Any] = None, + color: Optional[Union[str, int, Quantity_Color]] = None, + transparency: Optional[float] = None, + update: bool = False, + ) -> List[AIS_Shape]: + """ + Displays one or a set of displayable objects. + + Args: + shapes: The shape(s) to display. Can be a single shape or a list of + shapes. + material: The material to use for the shape. + texture: The texture to use for the shape. + color: The color to use for the shape. + transparency (float): The transparency to use for the shape (0.0 to 1.0). + update (bool): Whether to update the view. + + Returns: + A list of the displayed AIS_Shape objects. + """ + ais_shapes: List[AIS_Shape] = [] # the list of all displayed shapes if issubclass(shapes.__class__, gp_Pnt): # if a gp_Pnt is passed, first convert to vertex @@ -566,10 +764,21 @@ def DisplayShape( def DisplayColoredShape( self, - shapes, - color="YELLOW", - update=False, - ): + shapes: Any, + color: Union[str, Quantity_Color] = "YELLOW", + update: bool = False, + ) -> List[AIS_Shape]: + """ + Displays a shape with the given color. + + Args: + shapes: The shape(s) to display. + color (str or Quantity_Color): The color to use. + update (bool): Whether to update the view. + + Returns: + A list of the displayed AIS_Shape objects. + """ if isinstance(color, str): dict_color = { "WHITE": Quantity_NOC_WHITE, @@ -591,52 +800,136 @@ def DisplayColoredShape( return self.DisplayShape(shapes, color=clr, update=update) - def EnableAntiAliasing(self): + def EnableAntiAliasing(self) -> None: + """ + Enables anti-aliasing. + """ self.SetNbMsaaSample(4) - def DisableAntiAliasing(self): + def DisableAntiAliasing(self) -> None: + """ + Disables anti-aliasing. + """ self.SetNbMsaaSample(0) - def EraseAll(self): + def EraseAll(self) -> None: + """ + Erases all objects from the view. + """ self.Context.EraseAll(True) - def Tumble(self, num_images, animation=True): + def Tumble(self, num_images: int, animation: bool = True) -> None: + """ + Tumbles the view. + + Args: + num_images (int): The number of images to generate. + animation (bool): Whether to animate the tumble. + """ self.View.Tumble(num_images, animation) - def Pan(self, dx, dy): + def Pan(self, dx: int, dy: int) -> None: + """ + Pans the view. + + Args: + dx (int): The horizontal panning distance. + dy (int): The vertical panning distance. + """ self.View.Pan(dx, dy) - def SetSelectionMode(self, mode=None): + def SetSelectionMode(self, mode: Optional[int] = None) -> None: + """ + Sets the selection mode. + + Args: + mode: The selection mode to use. If None, cycles through the + available modes. + """ self.Context.Deactivate() - topo_level = next(modes) if mode is None: + topo_level = next(TOPOLOGY_MODES) self.Context.Activate(AIS_Shape.SelectionMode(topo_level), True) else: self.Context.Activate(AIS_Shape.SelectionMode(mode), True) self.Context.UpdateSelected(True) - def SetSelectionModeVertex(self): + def SetSelectionModeVertex(self) -> None: + """ + Sets the selection mode to vertex. + """ self.SetSelectionMode(TopAbs_VERTEX) - def SetSelectionModeEdge(self): + def SetSelectionModeEdge(self) -> None: + """ + Sets the selection mode to edge. + """ self.SetSelectionMode(TopAbs_EDGE) - def SetSelectionModeFace(self): + def SetSelectionModeWire(self) -> None: + """ + Sets the selection mode to wire. + """ + self.SetSelectionMode(TopAbs_WIRE) + + def SetSelectionModeFace(self) -> None: + """ + Sets the selection mode to face. + """ self.SetSelectionMode(TopAbs_FACE) - def SetSelectionModeShape(self): + def SetSelectionModeShell(self) -> None: + """ + Sets the selection mode to shell. + """ + self.SetSelectionMode(TopAbs_SHELL) + + def SetSelectionModeSolid(self) -> None: + """ + Sets the selection mode to solid. + """ + self.SetSelectionMode(TopAbs_SOLID) + + def SetSelectionModeShape(self) -> None: + """ + Sets the selection mode to shape. + """ self.Context.Deactivate() - def SetSelectionModeNeutral(self): + def SetSelectionModeNeutral(self) -> None: + """ + Sets the selection mode to neutral. + """ self.Context.Deactivate() - def GetSelectedShapes(self): + def GetSelectedShapes(self) -> List[AIS_Shape]: + """ + Returns the selected shapes. + + Returns: + A list of the selected shapes. + """ return self.selected_shapes - def GetSelectedShape(self): + def GetSelectedShape(self) -> AIS_Shape: + """ + Returns the selected shape. + + Returns: + The selected shape. + """ return self.Context.SelectedShape() - def SelectArea(self, Xmin, Ymin, Xmax, Ymax): + def SelectArea(self, Xmin: int, Ymin: int, Xmax: int, Ymax: int) -> None: + """ + Selects objects within the given area. + + Args: + Xmin (int): The minimum x-coordinate of the selection area. + Ymin (int): The minimum y-coordinate of the selection area. + Xmax (int): The maximum x-coordinate of the selection area. + Ymax (int): The maximum y-coordinate of the selection area. + """ self.Context.Select(Xmin, Ymin, Xmax, Ymax, self.View, True) self.Context.InitSelected() # reinit the selected_shapes list @@ -649,7 +942,14 @@ def SelectArea(self, Xmin, Ymin, Xmax, Ymax): for callback in self._select_callbacks: callback(self.selected_shapes, Xmin, Ymin, Xmax, Ymax) - def Select(self, X, Y): + def Select(self, X: int, Y: int) -> None: + """ + Selects the object at the given coordinates. + + Args: + X (int): The x-coordinate. + Y (int): The y-coordinate. + """ self.Context.Select(True) self.Context.InitSelected() @@ -661,7 +961,14 @@ def Select(self, X, Y): for callback in self._select_callbacks: callback(self.selected_shapes, X, Y) - def ShiftSelect(self, X, Y): + def ShiftSelect(self, X: int, Y: int) -> None: + """ + Adds the object at the given coordinates to the selection. + + Args: + X (int): The x-coordinate. + Y (int): The y-coordinate. + """ self.Context.ShiftSelect(True) self.Context.InitSelected() @@ -676,32 +983,86 @@ def ShiftSelect(self, X, Y): for callback in self._select_callbacks: callback(self.selected_shapes, X, Y) - def Rotation(self, X, Y): + def Rotation(self, X: int, Y: int) -> None: + """ + Rotates the view. + + Args: + X (int): The x-coordinate. + Y (int): The y-coordinate. + """ self.View.Rotation(X, Y) - def DynamicZoom(self, X1, Y1, X2, Y2): + def DynamicZoom(self, X1: int, Y1: int, X2: int, Y2: int) -> None: + """ + Zooms the view dynamically. + + Args: + X1 (int): The first x-coordinate. + Y1 (int): The first y-coordinate. + X2 (int): The second x-coordinate. + Y2 (int): The second y-coordinate. + """ self.View.Zoom(X1, Y1, X2, Y2) - def ZoomFactor(self, zoom_factor): + def ZoomFactor(self, zoom_factor: float) -> None: + """ + Sets the zoom factor. + + Args: + zoom_factor (float): The zoom factor. + """ self.View.SetZoom(zoom_factor) - def ZoomArea(self, X1, Y1, X2, Y2): + def ZoomArea(self, X1: int, Y1: int, X2: int, Y2: int) -> None: + """ + Zooms to the given area. + + Args: + X1 (int): The first x-coordinate. + Y1 (int): The first y-coordinate. + X2 (int): The second x-coordinate. + Y2 (int): The second y-coordinate. + """ self.View.WindowFit(X1, Y1, X2, Y2) - def Zoom(self, X, Y): + def Zoom(self, X: int, Y: int) -> None: + """ + Zooms the view. + + Args: + X (int): The x-coordinate. + Y (int): The y-coordinate. + """ self.View.Zoom(X, Y) - def StartRotation(self, X, Y): + def StartRotation(self, X: int, Y: int) -> None: + """ + Starts the rotation. + + Args: + X (int): The x-coordinate. + Y (int): The y-coordinate. + """ self.View.StartRotation(X, Y) class OffscreenRenderer(Viewer3d): - """The offscreen renderer is inherited from Viewer3d. + """ + An offscreen renderer for pythonOCC. + + The offscreen renderer is inherited from Viewer3d. The DisplayShape method is overridden to export to image each time it is called. """ - def __init__(self, screen_size=(640, 480)): + def __init__(self, screen_size: Tuple[int, int] = (640, 480)) -> None: + """ + Initializes the OffscreenRenderer. + + Args: + screen_size (tuple): The size of the screen (width, height). + """ Viewer3d.__init__(self) # create the renderer self.Create() @@ -713,16 +1074,33 @@ def __init__(self, screen_size=(640, 480)): def DisplayShape( self, - shapes, - material=None, - texture=None, - color=None, - transparency=None, - update=True, - dump_image=True, - dump_image_path=None, - dump_image_filename=None, - ): + shapes: Any, + material: Optional[Any] = None, + texture: Optional[Any] = None, + color: Optional[Union[str, int, Quantity_Color]] = None, + transparency: Optional[float] = None, + update: bool = True, + dump_image: bool = True, + dump_image_path: Optional[str] = None, + dump_image_filename: Optional[str] = None, + ) -> List[AIS_Shape]: + """ + Displays a shape and dumps the view to an image file. + + Args: + shapes: The shape(s) to display. + material: The material to use for the shape. + texture: The texture to use for the shape. + color: The color to use for the shape. + transparency (float): The transparency to use for the shape (0.0 to 1.0). + update (bool): Whether to update the view. + dump_image (bool): Whether to dump the view to an image file. + dump_image_path (str): The path where to save the image file. + dump_image_filename (str): The name of the image file. + + Returns: + A list of the displayed AIS_Shape objects. + """ # call the "original" DisplayShape method r = super(OffscreenRenderer, self).DisplayShape( shapes, material, texture, color, transparency, update diff --git a/src/Display/OCCViewer.pyi b/src/Display/OCCViewer.pyi new file mode 100644 index 000000000..3540d004e --- /dev/null +++ b/src/Display/OCCViewer.pyi @@ -0,0 +1,136 @@ +from typing import Any, Callable, List, Optional, Tuple, Union + +from OCC.Core.AIS import AIS_Shape +from OCC.Core.Graphic3d import Graphic3d_Structure +from OCC.Core.gp import gp_Pnt, gp_Pnt2d, gp_Vec +from OCC.Core.Quantity import Quantity_Color +from OCC.Core.Visualization import Display3d + +def rgb_color(r: float, g: float, b: float) -> Quantity_Color: ... +def get_color_from_name(color_name: str) -> Quantity_Color: ... + +class Viewer3d(Display3d): + def __init__(self) -> None: ... + def get_parent(self) -> Any: ... + def register_overlay_item(self, overlay_item: Any) -> None: ... + def register_select_callback(self, callback: Callable) -> None: ... + def unregister_callback(self, callback: Callable) -> None: ... + def MoveTo(self, X: int, Y: int) -> None: ... + def FitAll(self) -> None: ... + def Create( + self, + window_handle: Optional[Any] = None, + parent: Optional[Any] = None, + create_default_lights: bool = True, + draw_face_boundaries: bool = True, + phong_shading: bool = True, + display_glinfo: bool = True, + ) -> None: ... + def OnResize(self) -> None: ... + def ResetView(self) -> None: ... + def Repaint(self) -> None: ... + def SetModeWireFrame(self) -> None: ... + def SetModeShaded(self) -> None: ... + def SetModeHLR(self) -> None: ... + def SetOrthographicProjection(self) -> None: ... + def SetPerspectiveProjection(self) -> None: ... + def View_Top(self) -> None: ... + def View_Bottom(self) -> None: ... + def View_Left(self) -> None: ... + def View_Right(self) -> None: ... + def View_Front(self) -> None: ... + def View_Rear(self) -> None: ... + def View_Iso(self) -> None: ... + def EnableTextureEnv(self, name_of_texture: int = ...) -> None: ... + def DisableTextureEnv(self) -> None: ... + def SetRenderingParams( + self, + Method: int = ..., + RaytracingDepth: int = 3, + IsShadowEnabled: bool = True, + IsReflectionEnabled: bool = False, + IsAntialiasingEnabled: bool = False, + IsTransparentShadowEnabled: bool = False, + StereoMode: int = ..., + AnaglyphFilter: int = ..., + ToReverseStereo: bool = False, + ) -> None: ... + def SetRasterizationMode(self) -> None: ... + def SetRaytracingMode(self, depth: int = 3) -> None: ... + def ExportToImage(self, image_filename: str) -> None: ... + def display_graduated_trihedron(self) -> None: ... + def display_triedron(self) -> None: ... + def hide_triedron(self) -> None: ... + def set_bg_gradient_color( + self, + color1: Union[List[float], Quantity_Color], + color2: Union[List[float], Quantity_Color], + fill_method: int = ..., + ) -> None: ... + def SetBackgroundImage(self, image_filename: str, stretch: bool = True) -> None: ... + def DisplayVector( + self, vec: gp_Vec, pnt: gp_Pnt, update: bool = False + ) -> Optional[Graphic3d_Structure]: ... + def DisplayMessage( + self, + point: Union[gp_Pnt, gp_Pnt2d], + text_to_write: str, + height: float = 14.0, + message_color: Tuple[float, float, float] = ..., + update: bool = False, + ) -> Graphic3d_Structure: ... + def DisplayShape( + self, + shapes: Any, + material: Optional[Any] = None, + texture: Optional[Any] = None, + color: Optional[Union[str, int, Quantity_Color]] = None, + transparency: Optional[float] = None, + update: bool = False, + ) -> List[AIS_Shape]: ... + def DisplayColoredShape( + self, + shapes: Any, + color: Union[str, Quantity_Color] = "YELLOW", + update: bool = False, + ) -> List[AIS_Shape]: ... + def EnableAntiAliasing(self) -> None: ... + def DisableAntiAliasing(self) -> None: ... + def EraseAll(self) -> None: ... + def Tumble(self, num_images: int, animation: bool = True) -> None: ... + def Pan(self, dx: int, dy: int) -> None: ... + def SetSelectionMode(self, mode: Optional[int] = None) -> None: ... + def SetSelectionModeVertex(self) -> None: ... + def SetSelectionModeEdge(self) -> None: ... + def SetSelectionModeWire(self) -> None: ... + def SetSelectionModeFace(self) -> None: ... + def SetSelectionModeShell(self) -> None: ... + def SetSelectionModeSolid(self) -> None: ... + def SetSelectionModeShape(self) -> None: ... + def SetSelectionModeNeutral(self) -> None: ... + def GetSelectedShapes(self) -> List[AIS_Shape]: ... + def GetSelectedShape(self) -> AIS_Shape: ... + def SelectArea(self, Xmin: int, Ymin: int, Xmax: int, Ymax: int) -> None: ... + def Select(self, X: int, Y: int) -> None: ... + def ShiftSelect(self, X: int, Y: int) -> None: ... + def Rotation(self, X: int, Y: int) -> None: ... + def DynamicZoom(self, X1: int, Y1: int, X2: int, Y2: int) -> None: ... + def ZoomFactor(self, zoom_factor: float) -> None: ... + def ZoomArea(self, X1: int, Y1: int, X2: int, Y2: int) -> None: ... + def Zoom(self, X: int, Y: int) -> None: ... + def StartRotation(self, X: int, Y: int) -> None: ... + +class OffscreenRenderer(Viewer3d): + def __init__(self, screen_size: Tuple[int, int] = ...) -> None: ... + def DisplayShape( + self, + shapes: Any, + material: Optional[Any] = None, + texture: Optional[Any] = None, + color: Optional[Union[str, int, Quantity_Color]] = None, + transparency: Optional[float] = None, + update: bool = True, + dump_image: bool = True, + dump_image_path: Optional[str] = None, + dump_image_filename: Optional[str] = None, + ) -> List[AIS_Shape]: ... diff --git a/src/Display/SimpleGui.py b/src/Display/SimpleGui.py index 678faab36..659865abe 100644 --- a/src/Display/SimpleGui.py +++ b/src/Display/SimpleGui.py @@ -24,12 +24,21 @@ from OCC import VERSION from OCC.Display.backend import get_qt_modules, load_backend -from OCC.Display.OCCViewer import OffscreenRenderer +from OCC.Display.OCCViewer import OffscreenRenderer, Viewer3d log = logging.getLogger(__name__) def check_callable(_callable: Callable) -> None: + """ + Checks if the given object is callable. + + Args: + _callable: The object to check. + + Raises: + AssertionError: If the object is not callable. + """ if not callable(_callable): raise AssertionError("The function supplied is not callable") @@ -40,21 +49,31 @@ def init_display( display_triedron: Optional[bool] = True, background_gradient_color1: Optional[List[int]] = [206, 215, 222], background_gradient_color2: Optional[List[int]] = [128, 128, 128], -): - """This function loads and initialize a GUI using either wx, pyqt5, pyqt6, pyside2 or pyside6. - If ever the environment variable PYTHONOCC_OFFSCREEN_RENDERER, then the GUI is simply - ignored and an offscreen renderer is returned. - init_display returns 4 objects : - * display : an instance of Viewer3d ; - * start_display : a function (the GUI mainloop) ; - * add_menu : a function that creates a menu in the GUI - * add_function_to_menu : adds a menu option - - In case an offscreen renderer is returned, start_display and add_menu are ignored, i.e. - an empty function is returned (named do_nothing). add_function_to_menu just execute the - function taken as a parameter. - - Note : the offscreen renderer is used on the travis side. +) -> Tuple[Viewer3d, Callable, Callable, Callable]: + """ + Initializes a GUI for the 3D viewer. + + This function loads and initializes a GUI using either wx, pyqt5, pyqt6, + pyside2 or pyside6. If the environment variable + PYTHONOCC_OFFSCREEN_RENDERER is set to "1", the GUI is ignored and an + offscreen renderer is returned instead. + + Args: + backend_str (str, optional): The backend to use. If not specified, + it will be automatically detected. + size (tuple, optional): The size of the window. + display_triedron (bool, optional): Whether to display the triedron. + background_gradient_color1 (list, optional): The first color of the + background gradient. + background_gradient_color2 (list, optional): The second color of the + background gradient. + + Returns: + A tuple containing: + - display: An instance of Viewer3d. + - start_display: A function to start the GUI main loop. + - add_menu: A function to add a menu to the GUI. + - add_function_to_menu: A function to add a function to a menu. """ if size is None: # prevent size to being None (mypy) raise AssertionError("window size cannot be None") @@ -63,11 +82,11 @@ def init_display( # create the offscreen renderer offscreen_renderer = OffscreenRenderer() - def do_nothing(*kargs: Any, **kwargs: Any) -> None: + def do_nothing(*args: Any, **kwargs: Any) -> None: """takes as many parameters as you want, and does nothing""" return None - def call_function(s, func: Callable) -> None: + def call_function(s: str, func: Callable) -> None: """A function that calls another function. Helpful to bypass add_function_to_menu. s should be a string """ @@ -122,7 +141,7 @@ def add_function_to_menu(menu_name: str, _callable: Callable) -> None: print("wxPython backend - ", wx.version()) class AppFrame(wx.Frame): - def __init__(self, parent): + def __init__(self, parent: Any) -> None: wx.Frame.__init__( self, parent, @@ -161,10 +180,10 @@ def add_function_to_menu(self, menu_name: str, _callable: Callable) -> None: app.SetTopWindow(win) display = win.canva._display - def add_menu(*args, **kwargs) -> None: + def add_menu(*args: Any, **kwargs: Any) -> None: win.add_menu(*args, **kwargs) - def add_function_to_menu(*args, **kwargs) -> None: + def add_function_to_menu(*args: Any, **kwargs: Any) -> None: win.add_function_to_menu(*args, **kwargs) def start_display() -> None: @@ -239,10 +258,10 @@ def add_function_to_menu(self, menu_name: str, _callable: Callable) -> None: win.canva.qApp = app display = win.canva._display - def add_menu(*args, **kwargs) -> None: + def add_menu(*args: Any, **kwargs: Any) -> None: win.add_menu(*args, **kwargs) - def add_function_to_menu(*args, **kwargs) -> None: + def add_function_to_menu(*args: Any, **kwargs: Any) -> None: win.add_function_to_menu(*args, **kwargs) def start_display() -> None: diff --git a/src/Display/SimpleGui.pyi b/src/Display/SimpleGui.pyi new file mode 100644 index 000000000..01df7cd2d --- /dev/null +++ b/src/Display/SimpleGui.pyi @@ -0,0 +1,12 @@ +from typing import Callable, List, Optional, Tuple + +from OCC.Display.OCCViewer import Viewer3d + +def check_callable(_callable: Callable) -> None: ... +def init_display( + backend_str: Optional[str] = None, + size: Optional[Tuple[int, int]] = (1024, 768), + display_triedron: Optional[bool] = True, + background_gradient_color1: Optional[List[int]] = [206, 215, 222], + background_gradient_color2: Optional[List[int]] = [128, 128, 128], +) -> Tuple[Viewer3d, Callable, Callable, Callable]: ... diff --git a/src/Display/WebGl/flask_server.py b/src/Display/WebGl/flask_server.py index 727844deb..c85a3fb91 100644 --- a/src/Display/WebGl/flask_server.py +++ b/src/Display/WebGl/flask_server.py @@ -2,6 +2,7 @@ import sys import uuid +from typing import Any, Dict, Optional, Tuple from threejs_renderer import ( ThreejsRenderer, @@ -14,7 +15,7 @@ from OCC.Core.Tesselator import ShapeTesselator # Import following for building vertex (or point cloud) in WebGL -from OCC.Core.gp import gp_Pnt, gp_Vec +from OCC.Core.gp import gp_Pnt from OCC.Core.BRep import BRep_Builder from OCC.Core.TopoDS import TopoDS_Compound from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakeVertex @@ -22,37 +23,79 @@ from flask import Flask, render_template -def format_color(r, g, b): +def format_color(r: int, g: int, b: int) -> str: + """ + Formats a color from RGB to a hex string. + + Args: + r (int): The red component (0-255). + g (int): The green component (0-255). + b (int): The blue component (0-255). + + Returns: + str: The color as a hex string. + """ return "0x%02x%02x%02x" % (r, g, b) class RenderWraper(ThreejsRenderer): + """ + A wrapper for the ThreejsRenderer that adds support for Flask. + """ + def __init__( self, - path=None, - default_shape_color=format_color(166, 166, 166), # light grey - default_edge_color=format_color(32, 32, 32), # dark grey - default_vertex_color=format_color(8, 8, 8), - ): # darker gray + path: Optional[str] = None, + default_shape_color: str = format_color(166, 166, 166), # light grey + default_edge_color: str = format_color(32, 32, 32), # dark grey + default_vertex_color: str = format_color(8, 8, 8), + ) -> None: # darker gray + """ + Initializes the RenderWraper. + + Args: + path (str, optional): The path to the templates. + default_shape_color (str, optional): The default color for shapes. + default_edge_color (str, optional): The default color for edges. + default_vertex_color (str, optional): The default color for vertices. + """ super().__init__(path) - self._3js_vertex = {} + self._3js_vertex: Dict[str, Any] = {} self._default_shape_color = default_shape_color self._default_edge_color = default_edge_color self._default_vertex_color = default_vertex_color def convert_shape( self, - shape, - export_edges=False, - color=(0.65, 0.65, 0.7), - specular_color=(0.2, 0.2, 0.2), - shininess=0.9, - transparency=0.0, - line_color=(0, 0.0, 0.0), - line_width=1.0, - point_size=1.0, - mesh_quality=1.0, - ): + shape: Any, + export_edges: bool = False, + color: Tuple[float, float, float] = (0.65, 0.65, 0.7), + specular_color: Tuple[float, float, float] = (0.2, 0.2, 0.2), + shininess: float = 0.9, + transparency: float = 0.0, + line_color: Tuple[float, float, float] = (0, 0.0, 0.0), + line_width: float = 1.0, + point_size: float = 1.0, + mesh_quality: float = 1.0, + ) -> Tuple[Dict[str, Any], Dict[str, Any], Dict[str, Any]]: + """ + Converts a shape to a format that can be rendered by Three.js. + + Args: + shape: The shape to convert. + export_edges (bool, optional): Whether to export the edges of the shape. + color (tuple, optional): The color of the shape. + specular_color (tuple, optional): The specular color of the shape. + shininess (float, optional): The shininess of the shape. + transparency (float, optional): The transparency of the shape. + line_color (tuple, optional): The color of the lines. + line_width (float, optional): The width of the lines. + point_size (float, optional): The size of the points. + mesh_quality (float, optional): The quality of the mesh. + + Returns: + A tuple containing the shapes, edges, and vertices. + """ # if the shape is an edge or a wire, use the related functions color = color_to_hex(color) specular_color = color_to_hex(specular_color) @@ -140,14 +183,28 @@ def convert_shape( class RenderConfig: + """ + Configuration for the renderer. + """ + def __init__( self, - bg_gradient_color1="#ced7de", - bg_gradient_color2="#808080", - vertex_shader=None, - fragment_shader=None, - uniforms=None, - ): + bg_gradient_color1: str = "#ced7de", + bg_gradient_color2: str = "#808080", + vertex_shader: Optional[str] = None, + fragment_shader: Optional[str] = None, + uniforms: Optional[Dict[str, Any]] = None, + ) -> None: + """ + Initializes the RenderConfig. + + Args: + bg_gradient_color1 (str, optional): The first color of the background gradient. + bg_gradient_color2 (str, optional): The second color of the background gradient. + vertex_shader (str, optional): The vertex shader to use. + fragment_shader (str, optional): The fragment shader to use. + uniforms (dict, optional): The uniforms to use. + """ self._occ_version = OCC_VERSION self._3js_version = THREEJS_RELEASE self._bg_gradient_color1 = bg_gradient_color1 @@ -166,7 +223,7 @@ def __init__( @app.route("/") @app.route("/index") - def index(): + def index() -> str: """PythonOCC Demo Page""" # remove shapes from previous (avoid duplicate shape after F5 refresh) my_ren._3js_shapes = {} @@ -176,10 +233,13 @@ def index(): # import additional modules for building a box and a torus. from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox, BRepPrimAPI_MakeTorus from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_Transform - from OCC.Core.gp import gp_Trsf + from OCC.Core.gp import gp_Trsf, gp_Vec + from OCC.Core.TopoDS import TopoDS_Shape import time - def translate_shp(shp, vec, copy=False): + def translate_shp( + shp: TopoDS_Shape, vec: gp_Vec, copy: bool = False + ) -> TopoDS_Shape: trns = gp_Trsf() trns.SetTranslation(vec) brep_trns = BRepBuilderAPI_Transform(shp, trns, copy) diff --git a/src/Display/WebGl/flask_server.pyi b/src/Display/WebGl/flask_server.pyi new file mode 100644 index 000000000..f33aac813 --- /dev/null +++ b/src/Display/WebGl/flask_server.pyi @@ -0,0 +1,37 @@ +from typing import Any, Dict, Optional, Tuple + +from threejs_renderer import ThreejsRenderer + +def format_color(r: int, g: int, b: int) -> str: ... + +class RenderWraper(ThreejsRenderer): + def __init__( + self, + path: Optional[str] = None, + default_shape_color: str = "0xa6a6a6", + default_edge_color: str = "0x202020", + default_vertex_color: str = "0x80808", + ) -> None: ... + def convert_shape( + self, + shape: Any, + export_edges: bool = False, + color: Tuple[float, float, float] = (0.65, 0.65, 0.7), + specular_color: Tuple[float, float, float] = (0.2, 0.2, 0.2), + shininess: float = 0.9, + transparency: float = 0.0, + line_color: Tuple[float, float, float] = (0.0, 0.0, 0.0), + line_width: float = 1.0, + point_size: float = 1.0, + mesh_quality: float = 1.0, + ) -> Tuple[Dict[str, Any], Dict[str, Any], Dict[str, Any]]: ... + +class RenderConfig: + def __init__( + self, + bg_gradient_color1: str = "#ced7de", + bg_gradient_color2: str = "#808080", + vertex_shader: Optional[str] = None, + fragment_shader: Optional[str] = None, + uniforms: Optional[Dict[str, Any]] = None, + ) -> None: ... diff --git a/src/Display/WebGl/jupyter_renderer.py b/src/Display/WebGl/jupyter_renderer.py index 254acd556..29a664dc9 100644 --- a/src/Display/WebGl/jupyter_renderer.py +++ b/src/Display/WebGl/jupyter_renderer.py @@ -21,6 +21,7 @@ import math import uuid import sys +from typing import Any, Callable, Dict, List, Optional, Tuple, Union # pythreejs try: @@ -88,31 +89,38 @@ # # Util mathematical functions # -def _add(vec1, vec2): +def _add(vec1: List[float], vec2: List[float]) -> List[float]: + """Adds two vectors.""" return [v1 + v2 for v1, v2 in zip(vec1, vec2)] -def _explode(edge_list): +def _explode(edge_list: List[List[float]]) -> List[List[List[float]]]: + """Explodes a list of edges into a list of segments.""" return [[edge_list[i], edge_list[i + 1]] for i in range(len(edge_list) - 1)] -def _flatten(nested_dict): +def _flatten(nested_dict: Dict[Any, Any]) -> List[Any]: + """Flattens a nested dictionary.""" return [y for x in nested_dict for y in x] -def format_color(r, g, b): +def format_color(r: int, g: int, b: int) -> str: + """Formats a color from RGB to a hex string.""" return "#%02x%02x%02x" % (r, g, b) -def _distance(v1, v2): +def _distance(v1: List[float], v2: List[float]) -> float: + """Computes the distance between two vectors.""" return np.linalg.norm([x - y for x, y in zip(v1, v2)]) -def _bool_or_new(val): +def _bool_or_new(val: Union[bool, Dict[str, Any]]) -> bool: + """Returns the value of a boolean or a new value.""" return val if isinstance(val, bool) else val["new"] -def _opt(b1, b2): +def _opt(b1: Tuple[float, ...], b2: Tuple[float, ...]) -> Tuple[float, ...]: + """Returns the union of two bounding boxes.""" return ( min(b1[0], b2[0]), max(b1[1], b2[1]), @@ -123,12 +131,23 @@ def _opt(b1, b2): ) -def _shift(v, offset): +def _shift(v: List[float], offset: List[float]) -> List[float]: + """Shifts a vector by an offset.""" return [x + o for x, o in zip(v, offset)] # https://stackoverflow.com/questions/4947682/intelligently-calculating-chart-tick-positions -def _nice_number(value, round_=False): +def _nice_number(value: float, round_: bool = False) -> float: + """ + Returns a "nice" number approximately equal to value. + + Args: + value (float): The value to make nice. + round_ (bool, optional): Whether to round the number. Defaults to False. + + Returns: + float: The nice number. + """ exponent = math.floor(math.log(value, 10)) fraction = value / 10**exponent @@ -153,7 +172,20 @@ def _nice_number(value, round_=False): return nice_fraction * 10**exponent -def _nice_bounds(axis_start, axis_end, num_ticks=10): +def _nice_bounds( + axis_start: float, axis_end: float, num_ticks: int = 10 +) -> Tuple[float, float, float]: + """ + Returns "nice" bounds for a given axis. + + Args: + axis_start (float): The start of the axis. + axis_end (float): The end of the axis. + num_ticks (int, optional): The number of ticks. Defaults to 10. + + Returns: + A tuple containing the nice start, nice end, and nice tick. + """ axis_width = axis_end - axis_start if axis_width == 0: nice_tick = 0 @@ -170,20 +202,57 @@ def _nice_bounds(axis_start, axis_end, num_ticks=10): # Helpers # class Helpers: - def __init__(self, bb_center): + """ + A base class for helpers. + """ + + def __init__(self, bb_center: Tuple[float, float, float]) -> None: + """ + Initializes the Helpers. + + Args: + bb_center: The center of the bounding box. + """ self.bb_center = bb_center self.center = (0, 0, 0) - def _center(self, zero=True): + def _center(self, zero: bool = True) -> Tuple[float, float, float]: + """ + Returns the center of the bounding box. + + Args: + zero (bool, optional): Whether to return the origin. Defaults to True. + + Returns: + The center of the bounding box. + """ return self.center if zero else self.bb_center - def set_position(self, position): + def set_position(self, position: Tuple[float, float, float]) -> None: + """ + Sets the position of the helper. + + Args: + position: The position to set. + """ raise NotImplementedError() - def set_visibility(self, change): + def set_visibility(self, change: bool) -> None: + """ + Sets the visibility of the helper. + + Args: + change: The visibility to set. + """ raise NotImplementedError() - def set_center(self, change): + def set_center(self, change: bool) -> None: + """ + Sets the center of the helper. + + Args: + change: The center to set. + """ self.set_position(self._center(change)) @@ -191,14 +260,28 @@ def set_center(self, change): # Grid helper # class Grid(Helpers): + """ + A grid helper. + """ + def __init__( self, - bb_center=None, - maximum=5, - ticks=10, - colorCenterLine="#aaa", - colorGrid="#ddd", - ): + bb_center: Optional[Tuple[float, float, float]] = None, + maximum: int = 5, + ticks: int = 10, + colorCenterLine: str = "#aaa", + colorGrid: str = "#ddd", + ) -> None: + """ + Initializes the Grid. + + Args: + bb_center (tuple, optional): The center of the bounding box. + maximum (int, optional): The maximum size of the grid. + ticks (int, optional): The number of ticks in the grid. + colorCenterLine (str, optional): The color of the center line. + colorGrid (str, optional): The color of the grid. + """ Helpers.__init__(self, bb_center) axis_start, axis_end, nice_tick = _nice_bounds(-maximum, maximum, 2 * ticks) self.step = nice_tick @@ -211,13 +294,31 @@ def __init__( ) self.set_center(True) - def set_position(self, position): + def set_position(self, position: Tuple[float, float, float]) -> None: + """ + Sets the position of the grid. + + Args: + position: The position to set. + """ self.grid.position = position - def set_visibility(self, change): + def set_visibility(self, change: bool) -> None: + """ + Sets the visibility of the grid. + + Args: + change: The visibility to set. + """ self.grid.visible = change - def set_rotation(self, rotation): + def set_rotation(self, rotation: Tuple[float, float, float, str]) -> None: + """ + Sets the rotation of the grid. + + Args: + rotation: The rotation to set. + """ self.grid.rotation = rotation @@ -225,16 +326,33 @@ def set_rotation(self, rotation): # Axes helper # class Axes(Helpers): - """X, Y and Z axis - X is red - Y is green - Z is blue """ + An axes helper. + + - X is red + - Y is green + - Z is blue + """ + + def __init__( + self, + bb_center: Tuple[float, float, float], + length: int = 1, + width: int = 3, + display_labels: bool = False, + ) -> None: + """ + Initializes the Axes. - def __init__(self, bb_center, length=1, width=3, display_labels=False): + Args: + bb_center: The center of the bounding box. + length (int, optional): The length of the axes. Defaults to 1. + width (int, optional): The width of the axes. Defaults to 3. + display_labels (bool, optional): Whether to display labels. + """ Helpers.__init__(self, bb_center) - self.axes = [] + self.axes: List[Any] = [] self.axes.extend( LineSegments2( LineSegmentsGeometry( @@ -257,11 +375,23 @@ def __init__(self, bb_center, length=1, width=3, display_labels=False): self.axes.append(y_text) self.axes.append(z_text) - def set_position(self, position): + def set_position(self, position: Tuple[float, float, float]) -> None: + """ + Sets the position of the axes. + + Args: + position: The position to set. + """ for i in range(3): self.axes[i].position = position - def set_visibility(self, change): + def set_visibility(self, change: bool) -> None: + """ + Sets the visibility of the axes. + + Args: + change: The visibility to set. + """ for i in range(3): self.axes[i].visible = change @@ -270,7 +400,17 @@ def set_visibility(self, change): # Custom Material helper # class CustomMaterial(ShaderMaterial): - def __init__(self, typ): + """ + A custom material helper. + """ + + def __init__(self, typ: str) -> None: + """ + Initializes the CustomMaterial. + + Args: + typ: The type of the material. + """ self.types = { "diffuse": "c", "uvTransform": "m3", @@ -306,22 +446,35 @@ def __init__(self, typ): self.lights = True @property - def color(self): + def color(self) -> str: + """ + The color of the material. + """ return self.uniforms["diffuse"]["value"] @color.setter - def color(self, value): + def color(self, value: str) -> None: self.update("diffuse", value) @property - def alpha(self): + def alpha(self) -> float: + """ + The alpha of the material. + """ return self.uniforms["alpha"]["value"] @alpha.setter - def alpha(self, value): + def alpha(self, value: float) -> None: self.update("alpha", value) - def update(self, key, value): + def update(self, key: str, value: Any) -> None: + """ + Updates a uniform. + + Args: + key: The key of the uniform to update. + value: The value to set. + """ uniforms = dict(**self.uniforms) if self.types.get(key) is None: uniforms[key] = {"value": value} @@ -335,7 +488,18 @@ def update(self, key, value): # Bounding Box # class BoundingBox: - def __init__(self, objects, tol=1e-5): + """ + A bounding box helper. + """ + + def __init__(self, objects: List[Any], tol: float = 1e-5) -> None: + """ + Initializes the BoundingBox. + + Args: + objects: The objects to compute the bounding box for. + tol (float, optional): The tolerance. Defaults to 1e-5. + """ self.tol = tol bbox = reduce(_opt, [self._bbox(obj) for obj in objects]) @@ -350,7 +514,10 @@ def __init__(self, objects, tol=1e-5): ) self.max = reduce(lambda a, b: max(abs(a), abs(b)), bbox) - def _max_dist_from_center(self): + def _max_dist_from_center(self) -> float: + """ + Returns the maximum distance from the center. + """ return max( _distance(self.center, v) for v in itertools.product( @@ -360,7 +527,10 @@ def _max_dist_from_center(self): ) ) - def _max_dist_from_origin(self): + def _max_dist_from_origin(self) -> float: + """ + Returns the maximum distance from the origin. + """ return max( np.linalg.norm(v) for v in itertools.product( @@ -370,17 +540,23 @@ def _max_dist_from_origin(self): ) ) - def _bounding_box(self, obj, tol=1e-5): + def _bounding_box(self, obj: Any, tol: float = 1e-5) -> Tuple[float, ...]: + """ + Computes the bounding box of an object. + """ bbox = Bnd_Box() bbox.SetGap(self.tol) brepbndlib.Add(obj, bbox, True) values = bbox.Get() return (values[0], values[3], values[1], values[4], values[2], values[5]) - def _bbox(self, objects): + def _bbox(self, objects: List[Any]) -> Tuple[float, ...]: + """ + Computes the bounding box of a list of objects. + """ return reduce(_opt, [self._bounding_box(obj) for obj in objects]) - def __repr__(self): + def __repr__(self) -> str: return "[x(%f .. %f), y(%f .. %f), z(%f .. %f)]" % ( self.xmin, self.xmax, @@ -397,32 +573,31 @@ class NORMAL(enum.Enum): class JupyterRenderer: + """ + A renderer for Jupyter notebooks. + """ + def __init__( self, - size=(640, 480), - compute_normals_mode=NORMAL.SERVER_SIDE, - default_shape_color=format_color(166, 166, 166), # light grey - default_edge_color=format_color(32, 32, 32), # dark grey - default_vertex_color=format_color(8, 8, 8), # darker grey - pick_color=format_color(232, 176, 36), # orange - background_color="white", - ): - """Creates a jupyter renderer. - size: a tuple (width, height). Must be a square, or shapes will look like deformed - compute_normals_mode: optional, set to SERVER_SIDE by default. This flag lets you choose the - way normals are computed. If SERVER_SIDE is selected (default value), then normals - will be computed by the Tesselator, packed as a python tuple, and send as a json structure - to the client. If, on the other hand, CLIENT_SIDE is chose, then the computer only compute vertex - indices, and let the normals be computed by the client (the web js machine embedded in the webrowser). - - * SERVER_SIDE: higher server load, loading time increased, lower client load. Poor performance client will - choose this option (mobile terminals for instance) - * CLIENT_SIDE: lower server load, loading time decreased, higher client load. Higher performance clients will - choose this option (laptops, desktop machines). - * default_shape_color - * default_e1dge_color: - * default_pick_color: - * background_color: + size: Tuple[int, int] = (640, 480), + compute_normals_mode: int = NORMAL.SERVER_SIDE, + default_shape_color: str = format_color(166, 166, 166), # light grey + default_edge_color: str = format_color(32, 32, 32), # dark grey + default_vertex_color: str = format_color(8, 8, 8), # darker grey + pick_color: str = format_color(232, 176, 36), # orange + background_color: str = "white", + ) -> None: + """ + Initializes the JupyterRenderer. + + Args: + size (tuple, optional): The size of the renderer. + compute_normals_mode (NORMAL, optional): The mode for computing normals. + default_shape_color (str, optional): The default color for shapes. + default_edge_color (str, optional): The default color for edges. + default_vertex_color (str, optional): The default color for vertices. + pick_color (str, optional): The color for picked objects. + background_color (str, optional): The background color. """ self._default_shape_color = default_shape_color self._default_edge_color = default_edge_color @@ -434,7 +609,9 @@ def __init__( self._size = size self._compute_normals_mode = compute_normals_mode - self._bb = None # the bounding box, necessary to compute camera position + self._bb: Optional[BoundingBox] = ( + None # the bounding box, necessary to compute camera position + ) # the default camera object self._camera_target = [0.0, 0.0, 0.0] # the point to look at @@ -445,10 +622,10 @@ def __init__( # a dictionary of all the shapes belonging to the renderer # each element is a key 'mesh_id:shape' - self._shapes = {} + self._shapes: Dict[str, Any] = {} # we save the renderer so that is can be accessed - self._renderer = None + self._renderer: Optional[Renderer] = None # the group of 3d and 2d objects to render self._displayed_pickable_objects = Group() @@ -457,15 +634,15 @@ def __init__( self._displayed_non_pickable_objects = Group() # event manager/selection manager - self._picker = None + self._picker: Optional[Picker] = None - self._current_shape_selection = None - self._current_mesh_selection = None - self._savestate = None + self._current_shape_selection: Optional[Any] = None + self._current_mesh_selection: Optional[Mesh] = None + self._savestate: Optional[Tuple[Any, Any]] = None self._selection_color = format_color(232, 176, 36) - self._select_callbacks = ( + self._select_callbacks: List[Callable] = ( [] ) # a list of all functions called after an object is selected @@ -506,7 +683,21 @@ def __init__( ] self.html = HTML("") - def create_button(self, description, tooltip, disabled, handler): + def create_button( + self, description: str, tooltip: str, disabled: bool, handler: Callable + ) -> Button: + """ + Creates a button. + + Args: + description (str): The description of the button. + tooltip (str): The tooltip of the button. + disabled (bool): Whether the button is disabled. + handler: The handler for the button. + + Returns: + The created button. + """ button = Button( disabled=disabled, tooltip=tooltip, @@ -516,20 +707,40 @@ def create_button(self, description, tooltip, disabled, handler): button.on_click(handler) return button - def create_checkbox(self, kind, description, value, handler): + def create_checkbox( + self, kind: str, description: str, value: bool, handler: Callable + ) -> Checkbox: + """ + Creates a checkbox. + + Args: + kind (str): The kind of the checkbox. + description (str): The description of the checkbox. + value (bool): The value of the checkbox. + handler: The handler for the checkbox. + + Returns: + The created checkbox. + """ checkbox = Checkbox(value=value, description=description, layout=self.layout) checkbox.observe(handler, "value") checkbox.add_class(f"view_{kind}") return checkbox - def remove_shape(self, *kargs): + def remove_shape(self, *kargs: Any) -> None: + """ + Removes the selected shape. + """ self.clicked_obj.visible = not self.clicked_obj.visible # remove shape from the mapping dict cur_id = self.clicked_obj.name del self._shapes[cur_id] self._remove_shp_button.disabled = True - def on_compute_change(self, change): + def on_compute_change(self, change: Dict[str, Any]) -> None: + """ + Called when the compute dropdown changes. + """ if change["type"] != "change" or change["name"] != "value": return selection = change["new"] @@ -617,18 +828,32 @@ def on_compute_change(self, change): ) self.html.value = output - def toggle_shape_visibility(self, *kargs): + def toggle_shape_visibility(self, *kargs: Any) -> None: + """ + Toggles the visibility of the selected shape. + """ self.clicked_obj.visible = not self.clicked_obj.visible - def toggle_axes_visibility(self, change): + def toggle_axes_visibility(self, change: Dict[str, Any]) -> None: + """ + Toggles the visibility of the axes. + """ self.axes.set_visibility(_bool_or_new(change)) - def toggle_grid_visibility(self, change): + def toggle_grid_visibility(self, change: Dict[str, Any]) -> None: + """ + Toggles the visibility of the grid. + """ self.horizontal_grid.set_visibility(_bool_or_new(change)) self.vertical_grid.set_visibility(_bool_or_new(change)) - def click(self, value): - """called whenever a shape or edge is clicked""" + def click(self, value: Any) -> None: + """ + Called whenever a shape or edge is clicked. + + Args: + value: The clicked object. + """ obj = value.owner.object self.clicked_obj = obj if self._current_mesh_selection != obj: @@ -669,33 +894,56 @@ def click(self, value): for callback in self._select_callbacks: callback(self._current_shape_selection) - def register_select_callback(self, callback): - """Adds a callback that will be called each time a shape is selected""" + def register_select_callback(self, callback: Callable) -> None: + """ + Adds a callback that will be called each time a shape is selected. + + Args: + callback: The callback to add. + """ if not callable(callback): raise AssertionError("You must provide a callable to register the callback") else: self._select_callbacks.append(callback) - def unregister_callback(self, callback): - """Remove a callback from the callback list""" + def unregister_callback(self, callback: Callable) -> None: + """ + Removes a callback from the callback list. + + Args: + callback: The callback to remove. + """ if callback not in self._select_callbacks: raise AssertionError("This callback is not registered") else: self._select_callbacks.remove(callback) - def GetSelectedShape(self): - """Returns the selected shape""" + def GetSelectedShape(self) -> Any: + """ + Returns the selected shape. + """ return self._current_shape_selection def DisplayShapeAsSVG( self, - shp, - export_hidden_edges=True, - location=gp_Pnt(0, 0, 0), - direction=gp_Dir(1, 1, 1), - color="black", - line_width=0.5, - ): + shp: Any, + export_hidden_edges: bool = True, + location: gp_Pnt = gp_Pnt(0, 0, 0), + direction: gp_Dir = gp_Dir(1, 1, 1), + color: str = "black", + line_width: float = 0.5, + ) -> None: + """ + Displays a shape as an SVG. + + Args: + shp: The shape to display. + export_hidden_edges (bool, optional): Whether to export hidden edges. + location (gp_Pnt, optional): The location of the camera. + direction (gp_Dir, optional): The direction of the camera. + color (str, optional): The color of the shape. + line_width (float, optional): The width of the lines. + """ svg_string = export_shape_to_svg( shp, export_hidden_edges=export_hidden_edges, @@ -711,37 +959,35 @@ def DisplayShapeAsSVG( def DisplayShape( self, - shp, - shape_color=None, - render_edges=False, - edge_color=None, - edge_deflection=0.05, - vertex_color=None, - quality=1.0, - transparency=False, - opacity=1.0, - topo_level="default", - update=False, - selectable=True, - ): - """Displays a topods_shape in the renderer instance. - shp: the TopoDS_Shape to render - shape_color: the shape color, in html corm, eg '#abe000' - render_edges: optional, False by default. If True, compute and display all - edges as a linear interpolation of segments. - edge_color: optional, black by default. The color used for edge rendering, - in html form eg '#ff00ee' - edge_deflection: optional, 0.05 by default - vertex_color: optional - quality: optional, 1.0 by default. If set to something lower than 1.0, - mesh will be more precise. If set to something higher than 1.0, - mesh will be less precise, i.e. lower number of triangles. - transparency: optional, False by default (opaque). - opacity: optional, float, by default to 1 (opaque). if transparency is set to True, - 1. is fully opaque, 0. is fully transparent. - topo_level: "default" by default. The value should be either "compound", "shape", "vertex". - update: optional, False by default. If True, render all the shapes. - selectable: if True, can be doubleclicked from the 3d window + shp: Any, + shape_color: Optional[str] = None, + render_edges: bool = False, + edge_color: Optional[str] = None, + edge_deflection: float = 0.05, + vertex_color: Optional[str] = None, + quality: float = 1.0, + transparency: bool = False, + opacity: float = 1.0, + topo_level: str = "default", + update: bool = False, + selectable: bool = True, + ) -> None: + """ + Displays a shape in the renderer. + + Args: + shp: The shape to display. + shape_color (str, optional): The color of the shape. + render_edges (bool, optional): Whether to render the edges. + edge_color (str, optional): The color of the edges. + edge_deflection (float, optional): The deflection of the edges. + vertex_color (str, optional): The color of the vertices. + quality (float, optional): The quality of the mesh. + transparency (bool, optional): Whether the shape is transparent. + opacity (float, optional): The opacity of the shape. + topo_level (str, optional): The topological level to display. + update (bool, optional): Whether to update the renderer. + selectable (bool, optional): Whether the shape is selectable. """ if edge_color is None: edge_color = self._default_edge_color @@ -750,7 +996,7 @@ def DisplayShape( if vertex_color is None: vertex_color = self._default_vertex_color - output = [] # a list of all geometries created from the shape + output: List[Any] = [] # a list of all geometries created from the shape # is it list of gp_Pnt ? if isinstance(shp, list) and isinstance(shp[0], gp_Pnt): result = self.AddVerticesToScene(shp, vertex_color) @@ -800,9 +1046,21 @@ def DisplayShape( if update: self.Display() - def AddVerticesToScene(self, pnt_list, vertex_color, vertex_width=5): - """shp is a list of gp_Pnt""" - vertices_list = [] # will be passed to pythreejs + def AddVerticesToScene( + self, pnt_list: List[gp_Pnt], vertex_color: str, vertex_width: int = 5 + ) -> Points: + """ + Adds a list of vertices to the scene. + + Args: + pnt_list (list): A list of gp_Pnt objects. + vertex_color (str): The color of the vertices. + vertex_width (int, optional): The width of the vertices. Defaults to 5. + + Returns: + The created Points object. + """ + vertices_list: List[List[float]] = [] # will be passed to pythreejs BB = BRep_Builder() compound = TopoDS_Compound() BB.MakeCompound(compound) @@ -817,16 +1075,26 @@ def AddVerticesToScene(self, pnt_list, vertex_color, vertex_width=5): point_cloud_id = f"{uuid.uuid4().hex}" self._shapes[point_cloud_id] = compound - vertices_list = np.array(vertices_list, dtype=np.float32) - attributes = {"position": BufferAttribute(vertices_list, normalized=False)} + np_vertices_list = np.array(vertices_list, dtype=np.float32) + attributes = {"position": BufferAttribute(np_vertices_list, normalized=False)} mat = PointsMaterial( color=vertex_color, sizeAttenuation=True, size=vertex_width ) geom = BufferGeometry(attributes=attributes) return Points(geometry=geom, material=mat, name=point_cloud_id) - def AddCurveToScene(self, shp, edge_color, deflection): - """shp is either a TopoDS_Wire or a TopodS_Edge.""" + def AddCurveToScene(self, shp: Any, edge_color: str, deflection: float) -> Line: + """ + Adds a curve to the scene. + + Args: + shp: The curve to add. + edge_color (str): The color of the curve. + deflection (float): The deflection of the curve. + + Returns: + The created Line object. + """ if is_edge(shp): pnts = discretize_edge(shp, deflection) elif is_wire(shp): @@ -851,15 +1119,31 @@ def AddCurveToScene(self, shp, edge_color, deflection): def AddShapeToScene( self, - shp, - shape_color=None, # the default - render_edges=False, - edge_color=None, - vertex_color=None, - quality=1.0, - transparency=False, - opacity=1.0, - ): + shp: Any, + shape_color: Optional[str] = None, # the default + render_edges: bool = False, + edge_color: Optional[str] = None, + vertex_color: Optional[str] = None, + quality: float = 1.0, + transparency: bool = False, + opacity: float = 1.0, + ) -> Any: + """ + Adds a shape to the scene. + + Args: + shp: The shape to add. + shape_color (str, optional): The color of the shape. + render_edges (bool, optional): Whether to render the edges. + edge_color (str, optional): The color of the edges. + vertex_color (str, optional): The color of the vertices. + quality (float, optional): The quality of the mesh. + transparency (bool, optional): Whether the shape is transparent. + opacity (float, optional): The opacity of the shape. + + Returns: + The created Mesh object. + """ # first, compute the tessellation tess = ShapeTesselator(shp) tess.Compute(compute_edges=render_edges, mesh_quality=quality, parallel=True) @@ -937,12 +1221,20 @@ def AddShapeToScene( return shape_mesh - def _scale(self, vec): + def _scale(self, vec: List[float]) -> List[float]: + """ + Scales a vector. + """ r = self._bb._max_dist_from_center() * self._camera_distance_factor n = np.linalg.norm(vec) return [v / n * r for v in vec] - def _material(self, color, transparent=False, opacity=1.0): + def _material( + self, color: str, transparent: bool = False, opacity: float = 1.0 + ) -> CustomMaterial: + """ + Creates a material. + """ # material = MeshPhongMaterial() material = CustomMaterial("standard") material.color = color @@ -958,7 +1250,10 @@ def _material(self, color, transparent=False, opacity=1.0): material.update("roughness", 0.8) return material - def EraseAll(self): + def EraseAll(self) -> None: + """ + Erases all shapes from the renderer. + """ self._shapes = {} self._displayed_pickable_objects = Group() self._current_shape_selection = None @@ -966,12 +1261,23 @@ def EraseAll(self): self._current_selection_material = None self._renderer.scene = Scene(children=[]) - def Display(self, position=None, rotation=None): + def Display( + self, + position: Optional[Tuple[float, float, float]] = None, + rotation: Optional[Tuple[float, float, float]] = None, + ) -> None: + """ + Displays the renderer. + + Args: + position (tuple, optional): The position of the camera. + rotation (tuple, optional): The rotation of the camera. + """ # Get the overall bounding box if self._shapes: - self._bb = BoundingBox([self._shapes.values()]) + self._bb = BoundingBox(list(self._shapes.values())) else: # if nothing registered yet, create a fake bb - self._bb = BoundingBox([[BRepPrimAPI_MakeSphere(5.0).Shape()]]) + self._bb = BoundingBox([BRepPrimAPI_MakeSphere(5.0).Shape()]) bb_max = self._bb.max orbit_radius = 1.5 * self._bb._max_dist_from_center() @@ -1068,18 +1374,30 @@ def Display(self, position=None, rotation=None): # then display both 3d widgets and webui display(HBox([VBox([HBox(self._controls), self._renderer]), self.html])) - def ExportToHTML(self, filename): + def ExportToHTML(self, filename: str) -> None: + """ + Exports the renderer to an HTML file. + + Args: + filename (str): The name of the file to export to. + """ embed.embed_minimal_html(filename, views=self._renderer, title="pythonocc") - def _reset(self, *kargs): + def _reset(self, *kargs: Any) -> None: + """ + Resets the camera. + """ self._camera.rotation, self._controller.target = self._savestate self._camera.position = _add(self._bb.center, self._scale((1, 1, 1))) self._camera.zoom = self._camera_initial_zoom self._update() - def _update(self): + def _update(self) -> None: + """ + Updates the controller. + """ self._controller.exec_three_obj_method("update") - def __repr__(self): + def __repr__(self) -> str: self.Display() return "" diff --git a/src/Display/WebGl/jupyter_renderer.pyi b/src/Display/WebGl/jupyter_renderer.pyi new file mode 100644 index 000000000..e1e167108 --- /dev/null +++ b/src/Display/WebGl/jupyter_renderer.pyi @@ -0,0 +1,158 @@ +from typing import Any, Callable, Dict, List, Optional, Tuple, Union + +from OCC.Core.gp import gp_Dir, gp_Pnt +from pythreejs import ( + Button, + Checkbox, + Line, + Points, + ShaderMaterial, +) + +def _add(vec1: List[float], vec2: List[float]) -> List[float]: ... +def _explode(edge_list: List[List[float]]) -> List[List[List[float]]]: ... +def _flatten(nested_dict: Dict[Any, Any]) -> List[Any]: ... +def format_color(r: int, g: int, b: int) -> str: ... +def _distance(v1: List[float], v2: List[float]) -> float: ... +def _bool_or_new(val: Union[bool, Dict[str, Any]]) -> bool: ... +def _opt(b1: Tuple[float, ...], b2: Tuple[float, ...]) -> Tuple[float, ...]: ... +def _shift(v: List[float], offset: List[float]) -> List[float]: ... +def _nice_number(value: float, round_: bool = False) -> float: ... +def _nice_bounds( + axis_start: float, axis_end: float, num_ticks: int = 10 +) -> Tuple[float, float, float]: ... + +class Helpers: + def __init__(self, bb_center: Tuple[float, float, float]) -> None: ... + def _center(self, zero: bool = True) -> Tuple[float, float, float]: ... + def set_position(self, position: Tuple[float, float, float]) -> None: ... + def set_visibility(self, change: bool) -> None: ... + def set_center(self, change: bool) -> None: ... + +class Grid(Helpers): + def __init__( + self, + bb_center: Optional[Tuple[float, float, float]] = None, + maximum: int = 5, + ticks: int = 10, + colorCenterLine: str = "#aaa", + colorGrid: str = "#ddd", + ) -> None: ... + def set_position(self, position: Tuple[float, float, float]) -> None: ... + def set_visibility(self, change: bool) -> None: ... + def set_rotation(self, rotation: Tuple[float, float, float, str]) -> None: ... + +class Axes(Helpers): + def __init__( + self, + bb_center: Tuple[float, float, float], + length: int = 1, + width: int = 3, + display_labels: bool = False, + ) -> None: ... + def set_position(self, position: Tuple[float, float, float]) -> None: ... + def set_visibility(self, change: bool) -> None: ... + +class CustomMaterial(ShaderMaterial): + def __init__(self, typ: str) -> None: ... + @property + def color(self) -> str: ... + @color.setter + def color(self, value: str) -> None: ... + @property + def alpha(self) -> float: ... + @alpha.setter + def alpha(self, value: float) -> None: ... + def update(self, key: str, value: Any) -> None: ... + +class BoundingBox: + def __init__(self, objects: List[Any], tol: float = 1e-5) -> None: ... + def _max_dist_from_center(self) -> float: ... + def _max_dist_from_origin(self) -> float: ... + def _bounding_box(self, obj: Any, tol: float = 1e-5) -> Tuple[float, ...]: ... + def _bbox(self, objects: List[Any]) -> Tuple[float, ...]: ... + def __repr__(self) -> str: ... + +class NORMAL: + SERVER_SIDE: int + CLIENT_SIDE: int + +class JupyterRenderer: + def __init__( + self, + size: Tuple[int, int] = (640, 480), + compute_normals_mode: int = ..., + default_shape_color: str = ..., + default_edge_color: str = ..., + default_vertex_color: str = ..., + pick_color: str = ..., + background_color: str = "white", + ) -> None: ... + def create_button( + self, description: str, tooltip: str, disabled: bool, handler: Callable + ) -> Button: ... + def create_checkbox( + self, kind: str, description: str, value: bool, handler: Callable + ) -> Checkbox: ... + def remove_shape(self, *kargs: Any) -> None: ... + def on_compute_change(self, change: Dict[str, Any]) -> None: ... + def toggle_shape_visibility(self, *kargs: Any) -> None: ... + def toggle_axes_visibility(self, change: Dict[str, Any]) -> None: ... + def toggle_grid_visibility(self, change: Dict[str, Any]) -> None: ... + def click(self, value: Any) -> None: ... + def register_select_callback(self, callback: Callable) -> None: ... + def unregister_callback(self, callback: Callable) -> None: ... + def GetSelectedShape(self) -> Any: ... + def DisplayShapeAsSVG( + self, + shp: Any, + export_hidden_edges: bool = True, + location: gp_Pnt = ..., + direction: gp_Dir = ..., + color: str = "black", + line_width: float = 0.5, + ) -> None: ... + def DisplayShape( + self, + shp: Any, + shape_color: Optional[str] = None, + render_edges: bool = False, + edge_color: Optional[str] = None, + edge_deflection: float = 0.05, + vertex_color: Optional[str] = None, + quality: float = 1.0, + transparency: bool = False, + opacity: float = 1.0, + topo_level: str = "default", + update: bool = False, + selectable: bool = True, + ) -> None: ... + def AddVerticesToScene( + self, pnt_list: List[gp_Pnt], vertex_color: str, vertex_width: int = 5 + ) -> Points: ... + def AddCurveToScene(self, shp: Any, edge_color: str, deflection: float) -> Line: ... + def AddShapeToScene( + self, + shp: Any, + shape_color: Optional[str] = None, + render_edges: bool = False, + edge_color: Optional[str] = None, + vertex_color: Optional[str] = None, + quality: float = 1.0, + transparency: bool = False, + opacity: float = 1.0, + ) -> Any: ... + def _scale(self, vec: List[float]) -> List[float]: ... + def _material( + self, color: str, transparent: bool = False, opacity: float = 1.0 + ) -> CustomMaterial: ... + def EraseAll(self) -> None: ... + def Display( + self, + position: Optional[Tuple[float, float, float]] = None, + rotation: Optional[Tuple[float, float, float]] = None, + ) -> None: ... + def ExportToHTML(self, filename: str) -> None: ... + def _reset(self, *kargs: Any) -> None: ... + def _update(self) -> None: ... + def __repr__(self) -> str: ... diff --git a/src/Display/WebGl/simple_server.py b/src/Display/WebGl/simple_server.py index 2134b5c7e..cdaff653c 100644 --- a/src/Display/WebGl/simple_server.py +++ b/src/Display/WebGl/simple_server.py @@ -23,14 +23,23 @@ import errno -def get_available_port(port): - """sometimes, the python webserver is closed but the - port is not made available for a further call. So let's find - any available port to prevent such issue. This function: - * takes a port number (an integer), above 1024 - * check if it is available - * if not, take another one - * returns the port number +def get_available_port(port: int) -> int: + """ + Gets an available port. + + Sometimes, the python webserver is closed but the port is not made + available for a further call. So let's find any available port to + prevent such issue. This function: + - takes a port number (an integer), above 1024 + - check if it is available + - if not, take another one + - returns the port number + + Args: + port (int): The port to check. + + Returns: + int: An available port. """ if port <= 1024: raise AssertionError("port number should be > 1024") @@ -52,10 +61,17 @@ def get_available_port(port): def get_interface_ip(family: socket.AddressFamily) -> str: - """Get the IP address of an external interface. Used when binding to - 0.0.0.0 or ::1 to show a more useful URL. Inspire of `werkzeug`. + """ + Get the IP address of an external interface. - :meta private: + Used when binding to 0.0.0.0 or ::1 to show a more useful URL. + Inspired by `werkzeug`. + + Args: + family (socket.AddressFamily): The address family. + + Returns: + str: The IP address. """ # arbitrary private address host = "2001:db8::1" if family == socket.AF_INET6 else "192.0.2.1" @@ -69,12 +85,23 @@ def get_interface_ip(family: socket.AddressFamily) -> str: return s.getsockname()[0] # type: ignore -def start_server(addr="127.0.0.1", port=8080, x3d_path=".", open_webbrowser=False): - """starts the server if the PYTHONOCC_SHUNT_WEB_SERVER - env var is not set - * port: the port number to use (if available) ; - * path: where thehtml files are located - * open_webbrower: if True, open the web browser to the correct url +def start_server( + addr: str = "127.0.0.1", + port: int = 8080, + x3d_path: str = ".", + open_webbrowser: bool = False, +) -> None: + """ + Starts a simple web server. + + The server is started if the PYTHONOCC_SHUNT_WEB_SERVER environment + variable is not set. + + Args: + addr (str, optional): The address to bind to. + port (int, optional): The port to use. + x3d_path (str, optional): The path to the HTML files. + open_webbrowser (bool, optional): Whether to open a web browser. """ if os.getenv("PYTHONOCC_SHUNT_WEB_SERVER") == "1": return False diff --git a/src/Display/WebGl/simple_server.pyi b/src/Display/WebGl/simple_server.pyi new file mode 100644 index 000000000..6cf35c6d3 --- /dev/null +++ b/src/Display/WebGl/simple_server.pyi @@ -0,0 +1,10 @@ +import socket + +def get_available_port(port: int) -> int: ... +def get_interface_ip(family: socket.AddressFamily) -> str: ... +def start_server( + addr: str = "127.0.0.1", + port: int = 8080, + x3d_path: str = ".", + open_webbrowser: bool = False, +) -> None: ... diff --git a/src/Display/WebGl/threejs_renderer.py b/src/Display/WebGl/threejs_renderer.py index ae5905e43..167905b82 100644 --- a/src/Display/WebGl/threejs_renderer.py +++ b/src/Display/WebGl/threejs_renderer.py @@ -21,6 +21,7 @@ import sys import tempfile import uuid +from typing import Any, Dict, Generator, List, Optional, Tuple from OCC.Core.gp import gp_Vec from OCC.Core.Tesselator import ShapeTesselator @@ -30,14 +31,23 @@ from OCC.Display.WebGl.simple_server import start_server -def spinning_cursor(): +def spinning_cursor() -> Generator[str, None, None]: + """ + A spinning cursor generator. + """ while True: yield from "|/-\\" -def color_to_hex(rgb_color): - """Takes a tuple with 3 floats between 0 and 1. - Returns a hex. Useful to convert occ colors to web color code +def color_to_hex(rgb_color: Tuple[float, float, float]) -> str: + """ + Converts a color from RGB to a hex string. + + Args: + rgb_color (tuple): A tuple of 3 floats (R, G, B) between 0 and 1. + + Returns: + str: The color as a hex string. """ r, g, b = rgb_color if not (0 <= r <= 1.0 and 0 <= g <= 1.0 and 0 <= b <= 1.0): @@ -48,8 +58,17 @@ def color_to_hex(rgb_color): return "0x%.02x%.02x%.02x" % (rh, gh, bh) -def export_edgedata_to_json(edge_hash, point_set): - """Export a set of points to a LineSegment buffergeometry""" +def export_edgedata_to_json(edge_hash: str, point_set: List[List[float]]) -> str: + """ + Exports a set of points to a LineSegment buffergeometry. + + Args: + edge_hash (str): The hash of the edge. + point_set (list): A list of points. + + Returns: + str: The JSON string. + """ # first build the array of point coordinates # edges are built as follows: # points_coordinates =[P0x, P0y, P0z, P1x, P1y, P1z, P2x, P2y, etc.] @@ -380,11 +399,27 @@ def export_edgedata_to_json(edge_hash, point_set): class HTMLHeader: - def __init__(self, bg_gradient_color1="#ced7de", bg_gradient_color2="#808080"): + """ + A class to generate the HTML header. + """ + + def __init__( + self, bg_gradient_color1: str = "#ced7de", bg_gradient_color2: str = "#808080" + ) -> None: + """ + Initializes the HTMLHeader. + + Args: + bg_gradient_color1 (str, optional): The first color of the background gradient. + bg_gradient_color2 (str, optional): The second color of the background gradient. + """ self._bg_gradient_color1 = bg_gradient_color1 self._bg_gradient_color2 = bg_gradient_color2 - def get_str(self): + def get_str(self) -> str: + """ + Returns the HTML header as a string. + """ return HEADER_TEMPLATE.substitute( { "bg_gradient_color1": f"{self._bg_gradient_color1}", @@ -395,27 +430,56 @@ def get_str(self): class ThreejsRenderer: - def __init__(self, path=None): + """ + A renderer that uses three.js to display shapes in a web browser. + """ + + def __init__(self, path: Optional[str] = None) -> None: + """ + Initializes the ThreejsRenderer. + + Args: + path (str, optional): The path to the directory where the HTML + and JavaScript files will be created. If not specified, a + temporary directory will be created. + """ self._path = tempfile.mkdtemp() if not path else path self._html_filename = os.path.join(self._path, "index.html") self._main_js_filename = os.path.join(self._path, "main.js") - self._3js_shapes = {} - self._3js_edges = {} + self._3js_shapes: Dict[str, Any] = {} + self._3js_edges: Dict[str, Any] = {} self.spinning_cursor = spinning_cursor() print("## threejs renderer") def DisplayShape( self, - shape, - export_edges=False, - color=(0.65, 0.65, 0.7), - specular_color=(0.2, 0.2, 0.2), - shininess=0.9, - transparency=0.0, - line_color=(0, 0.0, 0.0), - line_width=1.0, - mesh_quality=1.0, - ): + shape: Any, + export_edges: bool = False, + color: Tuple[float, float, float] = (0.65, 0.65, 0.7), + specular_color: Tuple[float, float, float] = (0.2, 0.2, 0.2), + shininess: float = 0.9, + transparency: float = 0.0, + line_color: Tuple[float, float, float] = (0, 0.0, 0.0), + line_width: float = 1.0, + mesh_quality: float = 1.0, + ) -> Tuple[Dict[str, Any], Dict[str, Any]]: + """ + Displays a shape. + + Args: + shape: The shape to display. + export_edges (bool, optional): Whether to export the edges of the shape. + color (tuple, optional): The color of the shape. + specular_color (tuple, optional): The specular color of the shape. + shininess (float, optional): The shininess of the shape. + transparency (float, optional): The transparency of the shape. + line_color (tuple, optional): The color of the lines. + line_width (float, optional): The width of the lines. + mesh_quality (float, optional): The quality of the mesh. + + Returns: + A tuple containing the shapes and edges. + """ # if the shape is an edge or a wire, use the related functions if is_edge(shape): print("discretize an edge") @@ -491,8 +555,10 @@ def DisplayShape( self._3js_edges[edge_hash] = [(0, 0, 0), line_width] return self._3js_shapes, self._3js_edges - def generate_html_file(self): - """Generate the HTML file to be rendered by the web browser""" + def generate_html_file(self) -> None: + """ + Generates the HTML file to be rendered by the web browser. + """ global BODY_TEMPLATE # loop over shapes to generate html shapes stuff # the following line is a list that will help generating the string @@ -584,8 +650,20 @@ def generate_html_file(self): fp.write(body) fp.write("\n") - def render(self, addr="localhost", server_port=8080, open_webbrowser=False): - """render the scene into the browser.""" + def render( + self, + addr: str = "localhost", + server_port: int = 8080, + open_webbrowser: bool = False, + ) -> None: + """ + Renders the scene in the browser. + + Args: + addr (str, optional): The address to bind the server to. + server_port (int, optional): The port to use for the server. + open_webbrowser (bool, optional): Whether to open a web browser. + """ # generate HTML file self.generate_html_file() # then create a simple web server @@ -595,10 +673,13 @@ def render(self, addr="localhost", server_port=8080, open_webbrowser=False): if __name__ == "__main__": from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox, BRepPrimAPI_MakeTorus from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_Transform - from OCC.Core.gp import gp_Trsf + from OCC.Core.gp import gp_Trsf, gp_Vec + from OCC.Core.TopoDS import TopoDS_Shape import time - def translate_shp(shp, vec, copy=False): + def translate_shp( + shp: TopoDS_Shape, vec: gp_Vec, copy: bool = False + ) -> TopoDS_Shape: trns = gp_Trsf() trns.SetTranslation(vec) brep_trns = BRepBuilderAPI_Transform(shp, trns, copy) diff --git a/src/Display/WebGl/threejs_renderer.pyi b/src/Display/WebGl/threejs_renderer.pyi new file mode 100644 index 000000000..16b2d4ad4 --- /dev/null +++ b/src/Display/WebGl/threejs_renderer.pyi @@ -0,0 +1,33 @@ +from typing import Any, Dict, Generator, List, Optional, Tuple + +def spinning_cursor() -> Generator[str, None, None]: ... +def color_to_hex(rgb_color: Tuple[float, float, float]) -> str: ... +def export_edgedata_to_json(edge_hash: str, point_set: List[List[float]]) -> str: ... + +class HTMLHeader: + def __init__( + self, bg_gradient_color1: str = "#ced7de", bg_gradient_color2: str = "#808080" + ) -> None: ... + def get_str(self) -> str: ... + +class ThreejsRenderer: + def __init__(self, path: Optional[str] = None) -> None: ... + def DisplayShape( + self, + shape: Any, + export_edges: bool = False, + color: Tuple[float, float, float] = ..., + specular_color: Tuple[float, float, float] = ..., + shininess: float = 0.9, + transparency: float = 0.0, + line_color: Tuple[float, float, float] = ..., + line_width: float = 1.0, + mesh_quality: float = 1.0, + ) -> Tuple[Dict[str, Any], Dict[str, Any]]: ... + def generate_html_file(self) -> None: ... + def render( + self, + addr: str = "localhost", + server_port: int = 8080, + open_webbrowser: bool = False, + ) -> None: ... diff --git a/src/Display/WebGl/x3dom_renderer.py b/src/Display/WebGl/x3dom_renderer.py index 220eca72f..09d0e9199 100644 --- a/src/Display/WebGl/x3dom_renderer.py +++ b/src/Display/WebGl/x3dom_renderer.py @@ -20,6 +20,7 @@ from string import Template import tempfile import uuid +from typing import Any, Dict, Generator, List, Optional, Tuple from xml.etree import ElementTree from OCC.Core.Tesselator import ShapeTesselator @@ -29,7 +30,10 @@ from OCC.Display.WebGl.simple_server import start_server -def spinning_cursor(): +def spinning_cursor() -> Generator[str, None, None]: + """ + A spinning cursor generator. + """ while True: yield from "|/-\\" @@ -171,7 +175,16 @@ def spinning_cursor(): ) -def export_edge_to_indexed_lineset(edge_point_set): +def export_edge_to_indexed_lineset(edge_point_set: List[List[float]]) -> str: + """ + Exports an edge to an IndexedLineSet string. + + Args: + edge_point_set (list): A list of points. + + Returns: + str: The IndexedLineSet string. + """ str_x3d_to_return = f"\t" str_x3d_to_return += "\n\t\t\n" nb_shape = len(self._x3d_shapes) @@ -267,18 +327,34 @@ class X3DExporter: def __init__( self, - shape, # the TopoDS shape to mesh - vertex_shader, # the vertex_shader, passed as a string - fragment_shader, # the fragment shader, passed as a string - export_edges, # if yes, edges are exported to IndexedLineSet (might be SLOWW) - color, # the default shape color - specular_color, # shape specular color (white by default) - shininess, # shape shininess - transparency, # shape transparency - line_color, # edge color - line_width, # edge liewidth, - mesh_quality, # mesh quality default is 1., good is <1, bad is >1 - ): + shape: Any, + vertex_shader: Optional[str], + fragment_shader: Optional[str], + export_edges: bool, + color: Tuple[float, float, float], + specular_color: Tuple[float, float, float], + shininess: float, + transparency: float, + line_color: Tuple[float, float, float], + line_width: float, + mesh_quality: float, + ) -> None: + """ + Initializes the X3DExporter. + + Args: + shape: The shape to export. + vertex_shader: The vertex shader to use. + fragment_shader: The fragment shader to use. + export_edges: Whether to export edges. + color: The color of the shape. + specular_color: The specular color of the shape. + shininess: The shininess of the shape. + transparency: The transparency of the shape. + line_color: The color of the lines. + line_width: The width of the lines. + mesh_quality: The quality of the mesh. + """ self._shape = shape self._vs = vertex_shader self._fs = fragment_shader @@ -291,11 +367,14 @@ def __init__( # the list of indexed face sets that compose the shape # if ever the map_faces_to_mesh option is enabled, this list # maybe composed of dozains of TriangleSet - self._triangle_sets = [] - self._line_sets = [] + self._triangle_sets: List[str] = [] + self._line_sets: List[str] = [] self._x3d_string = "" # the string that contains the x3d description - def compute(self): + def compute(self) -> None: + """ + Computes the tessellation of the shape. + """ shape_tesselator = ShapeTesselator(self._shape) if shape_tesselator.GetDeviation() <= 0: @@ -320,7 +399,16 @@ def compute(self): ils = export_edge_to_indexed_lineset(edge_point_set) self._line_sets.append(ils) - def to_x3dfile_string(self, shape_id): + def to_x3dfile_string(self, shape_id: int) -> str: + """ + Converts the shape to an X3D string. + + Args: + shape_id (int): The ID of the shape. + + Returns: + str: The X3D string. + """ x3dfile_str = X3DFILE_HEADER_TEMPLATE.substitute({"VERSION": f"{VERSION}"}) for triangle_set in self._triangle_sets: x3dfile_str += "" @@ -365,17 +453,43 @@ def to_x3dfile_string(self, shape_id): xml_et = ElementTree.fromstring(x3dfile_str) return ElementTree.tostring(xml_et, encoding="utf8").decode("utf8") - def write_to_file(self, filename, shape_id): + def write_to_file(self, filename: str, shape_id: int) -> None: + """ + Writes the X3D string to a file. + + Args: + filename (str): The name of the file to write to. + shape_id (int): The ID of the shape. + """ with open(filename, "w") as f: f.write(self.to_x3dfile_string(shape_id)) class X3DomRenderer: - def __init__(self, path=None, display_axes_plane=True, axes_plane_zoom_factor=1.0): + """ + A renderer that uses x3dom to display shapes in a web browser. + """ + + def __init__( + self, + path: Optional[str] = None, + display_axes_plane: bool = True, + axes_plane_zoom_factor: float = 1.0, + ) -> None: + """ + Initializes the X3DomRenderer. + + Args: + path (str, optional): The path to the directory where the HTML + and JavaScript files will be created. If not specified, a + temporary directory will be created. + display_axes_plane (bool, optional): Whether to display the axes plane. + axes_plane_zoom_factor (float, optional): The zoom factor for the axes plane. + """ self._path = tempfile.mkdtemp() if not path else path self._html_filename = os.path.join(self._path, "index.html") - self._x3d_shapes = {} - self._x3d_edges = {} + self._x3d_shapes: Dict[str, Any] = {} + self._x3d_edges: Dict[str, Any] = {} self._axes_plane = ( display_axes_plane # display the small RVB axes and the plane ) @@ -387,19 +501,39 @@ def __init__(self, path=None, display_axes_plane=True, axes_plane_zoom_factor=1. def DisplayShape( self, - shape, - vertex_shader=None, - fragment_shader=None, - export_edges=False, - color=(0.65, 0.65, 0.7), - specular_color=(0.2, 0.2, 0.2), - shininess=0.9, - transparency=0.0, - line_color=(0, 0.0, 0.0), - line_width=2.0, - mesh_quality=1.0, - ): - """Adds a shape to the rendering buffer. This class computes the x3d file""" + shape: Any, + vertex_shader: Optional[str] = None, + fragment_shader: Optional[str] = None, + export_edges: bool = False, + color: Tuple[float, float, float] = (0.65, 0.65, 0.7), + specular_color: Tuple[float, float, float] = (0.2, 0.2, 0.2), + shininess: float = 0.9, + transparency: float = 0.0, + line_color: Tuple[float, float, float] = (0.0, 0.0, 0.0), + line_width: float = 2.0, + mesh_quality: float = 1.0, + ) -> Tuple[Dict[str, Any], Dict[str, Any]]: + """ + Adds a shape to the rendering buffer. + + This class computes the x3d file. + + Args: + shape: The shape to display. + vertex_shader (str, optional): The vertex shader to use. + fragment_shader (str, optional): The fragment shader to use. + export_edges (bool, optional): Whether to export the edges of the shape. + color (tuple, optional): The color of the shape. + specular_color (tuple, optional): The specular color of the shape. + shininess (float, optional): The shininess of the shape. + transparency (float, optional): The transparency of the shape. + line_color (tuple, optional): The color of the lines. + line_width (float, optional): The width of the lines. + mesh_quality (float, optional): The quality of the mesh. + + Returns: + A tuple containing the shapes and edges. + """ # if the shape is an edge or a wire, use the related functions if is_edge(shape): print("X3D exporter, discretize an edge") @@ -463,16 +597,29 @@ def DisplayShape( ] return self._x3d_shapes, self._x3d_edges - def render(self, addr="localhost", server_port=8080, open_webbrowser=False): - """Call the render() method to display the X3D scene.""" + def render( + self, + addr: str = "localhost", + server_port: int = 8080, + open_webbrowser: bool = False, + ) -> None: + """ + Renders the scene in the browser. + """ # first generate the HTML root file self.generate_html_file(self._axes_plane, self._axes_plane_zoom_factor) # then create a simple web server start_server(addr, server_port, self._path, open_webbrowser) - def generate_html_file(self, axes_plane, axes_plane_zoom_factor): - """Generate the HTML file to be rendered wy the web browser - axes_plane: a boolean, tells whether or not display axes + def generate_html_file( + self, axes_plane: bool, axes_plane_zoom_factor: float + ) -> None: + """ + Generates the HTML file to be rendered by the web browser. + + Args: + axes_plane (bool): Whether to display the axes plane. + axes_plane_zoom_factor (float): The zoom factor for the axes plane. """ with open(self._html_filename, "w") as html_file: html_file.write("\n") diff --git a/src/Display/WebGl/x3dom_renderer.pyi b/src/Display/WebGl/x3dom_renderer.pyi new file mode 100644 index 000000000..683099822 --- /dev/null +++ b/src/Display/WebGl/x3dom_renderer.pyi @@ -0,0 +1,75 @@ +from typing import Any, Dict, Generator, List, Optional, Tuple + +def spinning_cursor() -> Generator[str, None, None]: ... +def export_edge_to_indexed_lineset(edge_point_set: List[List[float]]) -> str: ... +def indexed_lineset_to_x3d_string( + str_linesets: List[str], + header: bool = True, + footer: bool = True, + ils_id: int = 0, +) -> str: ... + +class HTMLHeader: + def __init__( + self, bg_gradient_color1: str = "#ced7de", bg_gradient_color2: str = "#808080" + ) -> None: ... + def get_str(self) -> str: ... + +class HTMLBody: + def __init__( + self, + x3d_shapes: List[str], + axes_plane: bool, + axes_plane_zoom_factor: float = 1.0, + ) -> None: ... + def get_str(self) -> str: ... + +class X3DExporter: + def __init__( + self, + shape: Any, + vertex_shader: Optional[str], + fragment_shader: Optional[str], + export_edges: bool, + color: Tuple[float, float, float], + specular_color: Tuple[float, float, float], + shininess: float, + transparency: float, + line_color: Tuple[float, float, float], + line_width: float, + mesh_quality: float, + ) -> None: ... + def compute(self) -> None: ... + def to_x3dfile_string(self, shape_id: int) -> str: ... + def write_to_file(self, filename: str, shape_id: int) -> None: ... + +class X3DomRenderer: + def __init__( + self, + path: Optional[str] = None, + display_axes_plane: bool = True, + axes_plane_zoom_factor: float = 1.0, + ) -> None: ... + def DisplayShape( + self, + shape: Any, + vertex_shader: Optional[str] = None, + fragment_shader: Optional[str] = None, + export_edges: bool = False, + color: Tuple[float, float, float] = (0.65, 0.65, 0.7), + specular_color: Tuple[float, float, float] = (0.2, 0.2, 0.2), + shininess: float = 0.9, + transparency: float = 0.0, + line_color: Tuple[float, float, float] = (0.0, 0.0, 0.0), + line_width: float = 2.0, + mesh_quality: float = 1.0, + ) -> Tuple[Dict[str, Any], Dict[str, Any]]: ... + def render( + self, + addr: str = "localhost", + server_port: int = 8080, + open_webbrowser: bool = False, + ) -> None: ... + def generate_html_file( + self, axes_plane: bool, axes_plane_zoom_factor: float + ) -> None: ... diff --git a/src/Display/backend.py b/src/Display/backend.py index 0524b513f..30b128d50 100644 --- a/src/Display/backend.py +++ b/src/Display/backend.py @@ -18,6 +18,7 @@ import logging import os import sys +from typing import Any, Optional, Tuple # backend constants WX = "wx" @@ -44,16 +45,25 @@ log.setLevel(logging.DEBUG) -def qt6_force_xcb_on_linux(): - """Force QT_QPA_PLATFORM to 'xcb' on Linux for Qt6. wayland implementation - prevents winId to provide with the correct x11 windows id""" +def qt6_force_xcb_on_linux() -> None: + """ + Force QT_QPA_PLATFORM to 'xcb' on Linux for Qt6. + + Wayland implementation prevents winId to provide with the correct x11 + windows id. + """ if sys.platform == "linux" and "XDG_SESSION_TYPE" in os.environ: if os.environ["XDG_SESSION_TYPE"] == "wayland": os.environ["QT_QPA_PLATFORM"] = "xcb" -def load_pyqt5(): - """Return True is PyQt5 found, else False""" +def load_pyqt5() -> bool: + """ + Loads the PyQt5 backend. + + Returns: + bool: True if PyQt5 is found, False otherwise. + """ global HAVE_PYQT5, QtCore, QtGui, QtWidgets, QtOpenGL # backend already loaded, dont load another one @@ -68,8 +78,13 @@ def load_pyqt5(): return HAVE_PYQT5 -def load_pyside2(): - """Return True is PySide2 found, else False""" +def load_pyside2() -> bool: + """ + Loads the PySide2 backend. + + Returns: + bool: True if PySide2 is found, False otherwise. + """ global HAVE_PYSIDE2, QtCore, QtGui, QtWidgets, QtOpenGL # backend already loaded, dont load another one @@ -84,8 +99,13 @@ def load_pyside2(): return HAVE_PYSIDE2 -def load_pyqt6(): - """Return True is PyQt5 found, else False""" +def load_pyqt6() -> bool: + """ + Loads the PyQt6 backend. + + Returns: + bool: True if PyQt6 is found, False otherwise. + """ global HAVE_PYQT6, QtCore, QtGui, QtWidgets, QtOpenGL # backend already loaded, dont load another one @@ -101,8 +121,13 @@ def load_pyqt6(): return HAVE_PYQT6 -def load_pyside6(): - """Return True is PyQt5 found, else False""" +def load_pyside6() -> bool: + """ + Loads the PySide6 backend. + + Returns: + bool: True if PySide6 is found, False otherwise. + """ global HAVE_PYSIDE6, QtCore, QtGui, QtWidgets, QtOpenGL # backend already loaded, dont load another one @@ -118,8 +143,13 @@ def load_pyside6(): return HAVE_PYSIDE6 -def load_wx(): - """Return True is wxPython found, else False""" +def load_wx() -> bool: + """ + Loads the wxPython backend. + + Returns: + bool: True if wxPython is found, False otherwise. + """ # backend already loaded, dont load another one if loaded_backend(): @@ -134,17 +164,31 @@ def load_wx(): return HAVE_WX -def loaded_backend(): +def loaded_backend() -> bool: + """ + Returns True if a backend is loaded, False otherwise. + """ return HAVE_BACKEND -def get_loaded_backend(): +def get_loaded_backend() -> str: + """ + Returns the name of the loaded backend. + """ return BACKEND_MODULE -def load_any_qt_backend(): - """Load any qt based backend. First try to load - PyQt5, then PyQt6. Raise an exception if none of them are available +def load_any_qt_backend() -> bool: + """ + Loads any Qt-based backend. + + It first tries to load PyQt5, then PyQt6. + + Returns: + bool: True if a Qt backend was loaded, False otherwise. + + Raises: + AssertionError: If no Qt backend can be loaded. """ pyqt5_loaded = False # by default, load PyQt5 @@ -156,7 +200,7 @@ def load_any_qt_backend(): return True -def load_backend(backend_str=None): +def load_backend(backend_str: Optional[str] = None) -> str: """Load a GUI backend If no Qt backend is found (PyQt5 or PySide), wx is loaded @@ -275,7 +319,7 @@ def load_backend(backend_str=None): return "tk" -def get_qt_modules(): +def get_qt_modules() -> Tuple[Any, Any, Any, Any]: """ Returns diff --git a/src/Display/backend.pyi b/src/Display/backend.pyi new file mode 100644 index 000000000..a636a8303 --- /dev/null +++ b/src/Display/backend.pyi @@ -0,0 +1,13 @@ +from typing import Any, Optional, Tuple + +def qt6_force_xcb_on_linux() -> None: ... +def load_pyqt5() -> bool: ... +def load_pyside2() -> bool: ... +def load_pyqt6() -> bool: ... +def load_pyside6() -> bool: ... +def load_wx() -> bool: ... +def loaded_backend() -> bool: ... +def get_loaded_backend() -> str: ... +def load_any_qt_backend() -> bool: ... +def load_backend(backend_str: Optional[str] = None) -> str: ... +def get_qt_modules() -> Tuple[Any, Any, Any, Any]: ... diff --git a/src/Display/qtDisplay.py b/src/Display/qtDisplay.py index 848157186..f91ed4fef 100644 --- a/src/Display/qtDisplay.py +++ b/src/Display/qtDisplay.py @@ -19,6 +19,7 @@ import logging import os +from typing import Any, Callable, Dict, List, Optional from OCC.Core.AIS import AIS_Manipulator from OCC.Core.gp import gp_Trsf @@ -32,9 +33,17 @@ class qtBaseViewer(QtWidgets.QWidget): - """The base Qt Widget for an OCC viewer""" + """ + The base Qt Widget for an OCC viewer. + """ - def __init__(self, parent=None): + def __init__(self, parent: Optional[Any] = None) -> None: + """ + Initializes the qtBaseViewer. + + Args: + parent (QWidget, optional): The parent widget. + """ super(qtBaseViewer, self).__init__(parent) self._display = OCCViewer.Viewer3d() self._inited = False @@ -51,15 +60,25 @@ def __init__(self, parent=None): self.setAutoFillBackground(False) - def resizeEvent(self, event): + def resizeEvent(self, event: Any) -> None: + """ + Called when the widget is resized. + """ super(qtBaseViewer, self).resizeEvent(event) self._display.View.MustBeResized() - def paintEngine(self): + def paintEngine(self) -> None: + """ + Returns the paint engine. + """ return None class qtViewer3d(qtBaseViewer): + """ + A Qt Widget for an OCC viewer. + """ + # emit signal when selection is changed # is a list of TopoDS_* if hasattr(QtCore, "pyqtSignal"): # PyQt5 @@ -69,7 +88,10 @@ class qtViewer3d(qtBaseViewer): else: raise IOError("no signal") - def __init__(self, *kargs): + def __init__(self, *kargs: Any) -> None: + """ + Initializes the qtViewer3d. + """ qtBaseViewer.__init__(self, *kargs) self.setObjectName("qt_viewer_3d") @@ -84,20 +106,25 @@ def __init__(self, *kargs): self._selection = None self._drawtext = True self._qApp = QtWidgets.QApplication.instance() - self._key_map = {} + self._key_map: Dict[int, Callable] = {} self._current_cursor = "arrow" - self._available_cursors = {} + self._available_cursors: Dict[str, QtGui.QCursor] = {} @property - def qApp(self): - # reference to QApplication instance + def qApp(self) -> Any: + """ + A reference to the QApplication instance. + """ return self._qApp @qApp.setter - def qApp(self, value): + def qApp(self, value: Any) -> None: self._qApp = value - def InitDriver(self): + def InitDriver(self) -> None: + """ + Initializes the driver. + """ self._display.Create(window_handle=int(self.winId()), parent=self) # background gradient self._display.SetModeShaded() @@ -114,7 +141,10 @@ def InitDriver(self): } self.createCursors() - def createCursors(self): + def createCursors(self) -> None: + """ + Creates the cursors. + """ module_pth = os.path.abspath(os.path.dirname(__file__)) icon_pth = os.path.join(module_pth, "icons") @@ -135,7 +165,10 @@ def createCursors(self): self._current_cursor = "arrow" - def keyPressEvent(self, event): + def keyPressEvent(self, event: Any) -> None: + """ + Called when a key is pressed. + """ super(qtViewer3d, self).keyPressEvent(event) code = event.key() if code in self._key_map: @@ -147,15 +180,24 @@ def keyPressEvent(self, event): else: log.info("key: code %i not mapped to any function" % code) - def focusInEvent(self, event): + def focusInEvent(self, event: Any) -> None: + """ + Called when the widget gains focus. + """ if self._inited: self._display.Repaint() - def focusOutEvent(self, event): + def focusOutEvent(self, event: Any) -> None: + """ + Called when the widget loses focus. + """ if self._inited: self._display.Repaint() - def paintEvent(self, event): + def paintEvent(self, event: Any) -> None: + """ + Called when the widget is painted. + """ if not self._inited: self.InitDriver() @@ -167,17 +209,23 @@ def paintEvent(self, event): rect = QtCore.QRect(*self._drawbox) painter.drawRect(rect) - def wheelEvent(self, event): + def wheelEvent(self, event: Any) -> None: + """ + Called when the mouse wheel is scrolled. + """ delta = event.angleDelta().y() zoom_factor = 2.0 if delta > 0 else 0.5 self._display.ZoomFactor(zoom_factor) @property - def cursor(self): + def cursor(self) -> str: + """ + The current cursor. + """ return self._current_cursor @cursor.setter - def cursor(self, value): + def cursor(self, value: str) -> None: if self._current_cursor != value: self._current_cursor = value if cursor := self._available_cursors.get(value): @@ -185,14 +233,20 @@ def cursor(self, value): else: self.qApp.restoreOverrideCursor() - def mousePressEvent(self, event): + def mousePressEvent(self, event: Any) -> None: + """ + Called when a mouse button is pressed. + """ self.setFocus() ev = event.pos() self.dragStartPosX = ev.x() self.dragStartPosY = ev.y() self._display.StartRotation(self.dragStartPosX, self.dragStartPosY) - def mouseReleaseEvent(self, event): + def mouseReleaseEvent(self, event: Any) -> None: + """ + Called when a mouse button is released. + """ pt = event.pos() modifiers = event.modifiers() @@ -218,7 +272,10 @@ def mouseReleaseEvent(self, event): self.cursor = "arrow" - def DrawBox(self, event): + def DrawBox(self, event: Any) -> None: + """ + Draws a selection box. + """ tolerance = 2 pt = event.pos() dx = pt.x() - self.dragStartPosX @@ -227,7 +284,10 @@ def DrawBox(self, event): return self._drawbox = [self.dragStartPosX, self.dragStartPosY, dx, dy] - def mouseMoveEvent(self, evt): + def mouseMoveEvent(self, evt: Any) -> None: + """ + Called when the mouse is moved. + """ pt = evt.pos() # buttons = int(evt.buttons()) buttons = evt.buttons() @@ -279,6 +339,10 @@ def mouseMoveEvent(self, evt): class qtViewer3dWithManipulator(qtViewer3d): + """ + A Qt Widget for an OCC viewer with a manipulator. + """ + # emit signal when selection is changed # is a list of TopoDS_* if hasattr(QtCore, "pyqtSignal"): # PyQt5 @@ -286,7 +350,10 @@ class qtViewer3dWithManipulator(qtViewer3d): elif hasattr(QtCore, "Signal"): sig_topods_selected = QtCore.Signal(list) - def __init__(self, *kargs): + def __init__(self, *kargs: Any) -> None: + """ + Initializes the qtViewer3dWithManipulator. + """ qtBaseViewer.__init__(self, *kargs) self.setObjectName("qt_viewer_3d") @@ -301,28 +368,30 @@ def __init__(self, *kargs): self._selection = None self._drawtext = True self._qApp = QtWidgets.QApplication.instance() - self._key_map = {} + self._key_map: Dict[int, Callable] = {} self._current_cursor = "arrow" - self._available_cursors = {} + self._available_cursors: Dict[str, QtGui.QCursor] = {} # create empty manipulator self.manipulator = AIS_Manipulator() - self.trsf_manip = [] + self.trsf_manip: List[gp_Trsf] = [] self.manip_moved = False - def set_manipulator(self, manipulator): - r""" - Define the manipulator to reference + def set_manipulator(self, manipulator: AIS_Manipulator) -> None: + """ + Sets the manipulator to use. - Returns: - ---- - none + Args: + manipulator: The manipulator to use. """ self.trsf_manip = [] self.manipulator = manipulator self.manip_moved = False - def mousePressEvent(self, event): + def mousePressEvent(self, event: Any) -> None: + """ + Called when a mouse button is pressed. + """ self.setFocus() ev = event.pos() self.dragStartPosX = ev.x() @@ -334,7 +403,10 @@ def mousePressEvent(self, event): else: self._display.StartRotation(self.dragStartPosX, self.dragStartPosY) - def mouseMoveEvent(self, evt): + def mouseMoveEvent(self, evt: Any) -> None: + """ + Called when the mouse is moved. + """ pt = evt.pos() buttons = int(evt.buttons()) modifiers = evt.modifiers() @@ -390,20 +462,19 @@ def mouseMoveEvent(self, evt): self._display.MoveTo(pt.x(), pt.y()) self.cursor = "arrow" - def get_trsf_from_manip(self): - r""" - Get the transformations done with the manipulator - - Returns: - ---- - gp_Trsf + def get_trsf_from_manip(self) -> gp_Trsf: + """ + Returns the transformation from the manipulator. """ trsf = gp_Trsf() for t in self.trsf_manip: trsf.Multiply(t) return trsf - def mouseReleaseEvent(self, event): + def mouseReleaseEvent(self, event: Any) -> None: + """ + Called when a mouse button is released. + """ pt = event.pos() modifiers = event.modifiers() if event.button() == QtCore.Qt.MouseButton.LeftButton: diff --git a/src/Display/qtDisplay.pyi b/src/Display/qtDisplay.pyi new file mode 100644 index 000000000..dbe76dcbf --- /dev/null +++ b/src/Display/qtDisplay.pyi @@ -0,0 +1,46 @@ +from typing import Any, Optional + +from OCC.Core.AIS import AIS_Manipulator +from OCC.Core.gp import gp_Trsf +from OCC.Display.backend import get_qt_modules + +QtCore, QtGui, QtWidgets, QtOpenGL = get_qt_modules() + +class qtBaseViewer(QtWidgets.QWidget): + def __init__(self, parent: Optional[Any] = None) -> None: ... + def resizeEvent(self, event: Any) -> None: ... + def paintEngine(self) -> None: ... + +class qtViewer3d(qtBaseViewer): + sig_topods_selected: Any + + def __init__(self, *kargs: Any) -> None: ... + @property + def qApp(self) -> Any: ... + @qApp.setter + def qApp(self, value: Any) -> None: ... + def InitDriver(self) -> None: ... + def createCursors(self) -> None: ... + def keyPressEvent(self, event: Any) -> None: ... + def focusInEvent(self, event: Any) -> None: ... + def focusOutEvent(self, event: Any) -> None: ... + def paintEvent(self, event: Any) -> None: ... + def wheelEvent(self, event: Any) -> None: ... + @property + def cursor(self) -> str: ... + @cursor.setter + def cursor(self, value: str) -> None: ... + def mousePressEvent(self, event: Any) -> None: ... + def mouseReleaseEvent(self, event: Any) -> None: ... + def DrawBox(self, event: Any) -> None: ... + def mouseMoveEvent(self, evt: Any) -> None: ... + +class qtViewer3dWithManipulator(qtViewer3d): + sig_topods_selected: Any + + def __init__(self, *kargs: Any) -> None: ... + def set_manipulator(self, manipulator: AIS_Manipulator) -> None: ... + def mousePressEvent(self, event: Any) -> None: ... + def mouseMoveEvent(self, evt: Any) -> None: ... + def get_trsf_from_manip(self) -> gp_Trsf: ... + def mouseReleaseEvent(self, event: Any) -> None: ... diff --git a/src/Display/tkDisplay.py b/src/Display/tkDisplay.py index b79e495cf..b01b77981 100644 --- a/src/Display/tkDisplay.py +++ b/src/Display/tkDisplay.py @@ -21,7 +21,18 @@ class tkViewer3d(tk.Frame): - def __init__(self, parent, default=""): + """ + A Tkinter widget for an OCC viewer. + """ + + def __init__(self, parent: "tk.Widget", default: str = "") -> None: + """ + Initializes the tkViewer3d. + + Args: + parent: The parent widget. + default (str, optional): The default value. + """ tk.Frame.__init__(self, parent, width=1024, height=768) self.bind("", self.Map) self.bind("", self.Resize) @@ -39,22 +50,34 @@ def __init__(self, parent, default=""): self.drag_pos_y = self.drag_pos_x = 0 - def LeftDown(self, event): + def LeftDown(self, event: "tk.Event") -> None: + """ + Called when the left mouse button is pressed. + """ self.drag_pos_x = event.x self.drag_pos_y = event.y self._display.StartRotation(self.drag_pos_x, self.drag_pos_y) - def Rotate(self, event): + def Rotate(self, event: "tk.Event") -> None: + """ + Called when the mouse is moved with the left button pressed. + """ self._display.Rotation(event.x, event.y) - def Pan(self, event): + def Pan(self, event: "tk.Event") -> None: + """ + Called when the mouse is moved with the middle button pressed. + """ dx = event.x - self.drag_pos_x dy = event.y - self.drag_pos_y self.drag_pos_x = event.x self.drag_pos_y = event.y self._display.Pan(dx, -dy) - def Zoom(self, event): + def Zoom(self, event: "tk.Event") -> None: + """ + Called when the mouse wheel is scrolled. + """ # Linux if event.num == 4 or event.delta > 0: # zoom in zoom_factor = 2.0 @@ -67,11 +90,17 @@ def Zoom(self, event): zoom_factor = 1.2 self._display.ZoomFactor(zoom_factor) - def Resize(self, event): + def Resize(self, event: "tk.Event") -> None: + """ + Called when the widget is resized. + """ if self._inited: self._display.Repaint() - def Map(self, event): + def Map(self, event: "tk.Event") -> None: + """ + Called when the widget is mapped. + """ if not self._inited: self._display = OCCViewer.Viewer3d() self._display.Create(window_handle=self.winfo_id(), parent=self) diff --git a/src/Display/tkDisplay.pyi b/src/Display/tkDisplay.pyi new file mode 100644 index 000000000..1fa0a2d0f --- /dev/null +++ b/src/Display/tkDisplay.pyi @@ -0,0 +1,11 @@ +import tkinter as tk +from typing import Any + +class tkViewer3d(tk.Frame): + def __init__(self, parent: Any, default: str = "") -> None: ... + def LeftDown(self, event: Any) -> None: ... + def Rotate(self, event: Any) -> None: ... + def Pan(self, event: Any) -> None: ... + def Zoom(self, event: Any) -> None: ... + def Resize(self, event: Any) -> None: ... + def Map(self, event: Any) -> None: ... diff --git a/src/Display/wxDisplay.py b/src/Display/wxDisplay.py index 1d44837e6..70ddf1acc 100644 --- a/src/Display/wxDisplay.py +++ b/src/Display/wxDisplay.py @@ -20,6 +20,7 @@ from __future__ import print_function import time +from typing import Any, Callable, Dict, Optional try: import wx @@ -29,7 +30,17 @@ class wxBaseViewer(wx.Panel): - def __init__(self, parent=None): + """ + The base wx.Panel for an OCC viewer. + """ + + def __init__(self, parent: Optional[Any] = None) -> None: + """ + Initializes the wxBaseViewer. + + Args: + parent (wx.Window, optional): The parent window. + """ wx.Panel.__init__(self, parent) self.Bind(wx.EVT_SIZE, self.OnSize) self.Bind(wx.EVT_IDLE, self.OnIdle) @@ -47,21 +58,15 @@ def __init__(self, parent=None): self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown) self.Bind(wx.EVT_MOUSEWHEEL, self.OnWheelScroll) - self._display = None + self._display: Optional[OCCViewer.Viewer3d] = None self._inited = False - def GetWinId(self): - """Returns the windows Id as an integer. - issue with GetHandle on Linux for wx versions - >3 or 4. Window must be displayed before GetHandle is - called. For that, just wait for a few milliseconds/seconds - before calling InitDriver - a solution is given here - see https://github.com/cztomczak/cefpython/issues/349 - but raises an issue with wxPython 4.x - finally, it seems that the sleep function does the job - reported as a pythonocc issue - https://github.com/tpaviot/pythonocc-core/476 + def GetWinId(self) -> int: + """ + Returns the windows Id as an integer. + + On Linux, the window must be displayed before GetHandle is called. + For that, we wait for a few milliseconds/seconds before calling InitDriver. """ timeout = 10 # 10 seconds win_id = self.GetHandle() @@ -79,52 +84,101 @@ def GetWinId(self): # otherwise returns the window Id return win_id - def OnSize(self, event): + def OnSize(self, event: Any) -> None: + """ + Called when the widget is resized. + """ if self._inited: self._display.OnResize() - def OnIdle(self, event): + def OnIdle(self, event: Any) -> None: + """ + Called when the application is idle. + """ pass - def OnMove(self, event): + def OnMove(self, event: Any) -> None: + """ + Called when the widget is moved. + """ pass - def OnFocus(self, event): + def OnFocus(self, event: Any) -> None: + """ + Called when the widget gains focus. + """ pass - def OnLostFocus(self, event): + def OnLostFocus(self, event: Any) -> None: + """ + Called when the widget loses focus. + """ pass - def OnMaximize(self, event): + def OnMaximize(self, event: Any) -> None: + """ + Called when the widget is maximized. + """ pass - def OnLeftDown(self, event): + def OnLeftDown(self, event: Any) -> None: + """ + Called when the left mouse button is pressed. + """ pass - def OnRightDown(self, event): + def OnRightDown(self, event: Any) -> None: + """ + Called when the right mouse button is pressed. + """ pass - def OnMiddleDown(self, event): + def OnMiddleDown(self, event: Any) -> None: + """ + Called when the middle mouse button is pressed. + """ pass - def OnLeftUp(self, event): + def OnLeftUp(self, event: Any) -> None: + """ + Called when the left mouse button is released. + """ pass - def OnRightUp(self, event): + def OnRightUp(self, event: Any) -> None: + """ + Called when the right mouse button is released. + """ pass - def OnMiddleUp(self, event): + def OnMiddleUp(self, event: Any) -> None: + """ + Called when the middle mouse button is released. + """ pass - def OnMotion(self, event): + def OnMotion(self, event: Any) -> None: + """ + Called when the mouse is moved. + """ pass - def OnKeyDown(self, event): + def OnKeyDown(self, event: Any) -> None: + """ + Called when a key is pressed. + """ pass class wxViewer3d(wxBaseViewer): - def __init__(self, *kargs): + """ + A wx.Panel for an OCC viewer. + """ + + def __init__(self, *kargs: Any) -> None: + """ + Initializes the wxViewer3d. + """ wxBaseViewer.__init__(self, *kargs) self._drawbox = False @@ -136,10 +190,13 @@ def __init__(self, *kargs): self._rightisdown = False self._selection = None self._scrollwheel = False - self._key_map = {} + self._key_map: Dict[int, Callable] = {} self.dragStartPos = None - def InitDriver(self): + def InitDriver(self) -> None: + """ + Initializes the driver. + """ self._display = OCCViewer.Viewer3d() self._display.Create(window_handle=self.GetWinId(), parent=self) @@ -149,7 +206,11 @@ def InitDriver(self): # dict mapping keys to functions self._SetupKeyMap() - def _SetupKeyMap(self): + def _SetupKeyMap(self) -> None: + """ + Sets up the key map. + """ + def set_shade_mode(): self._display.DisableAntiAliasing() self._display.SetModeShaded() @@ -164,7 +225,10 @@ def set_shade_mode(): 306: lambda: print("Shift pressed"), } - def OnKeyDown(self, evt): + def OnKeyDown(self, evt: Any) -> None: + """ + Called when a key is pressed. + """ code = evt.GetKeyCode() try: self._key_map[code]() @@ -172,49 +236,82 @@ def OnKeyDown(self, evt): except KeyError: print("Unrecognized key pressed %i" % code) - def OnMaximize(self, event): + def OnMaximize(self, event: Any) -> None: + """ + Called when the widget is maximized. + """ if self._inited: self._display.Repaint() - def OnMove(self, event): + def OnMove(self, event: Any) -> None: + """ + Called when the widget is moved. + """ if self._inited: self._display.Repaint() - def OnIdle(self, event): + def OnIdle(self, event: Any) -> None: + """ + Called when the application is idle. + """ if self._drawbox: pass elif self._inited: self._display.Repaint() - def Test(self): + def Test(self) -> None: + """ + Runs a test. + """ if self._inited: self._display.Test() - def OnFocus(self, event): + def OnFocus(self, event: Any) -> None: + """ + Called when the widget gains focus. + """ if self._inited: self._display.Repaint() - def OnLostFocus(self, event): + def OnLostFocus(self, event: Any) -> None: + """ + Called when the widget loses focus. + """ if self._inited: self._display.Repaint() - def OnPaint(self, event): + def OnPaint(self, event: Any) -> None: + """ + Called when the widget is painted. + """ if self._inited: self._display.Repaint() - def ZoomAll(self, evt): + def ZoomAll(self, evt: Any) -> None: + """ + Zooms to fit all objects in the view. + """ self._display.FitAll() - def Repaint(self, evt): + def Repaint(self, evt: Any) -> None: + """ + Repaints the view. + """ if self._inited: self._display.Repaint() - def OnLeftDown(self, evt): + def OnLeftDown(self, evt: Any) -> None: + """ + Called when the left mouse button is pressed. + """ self.SetFocus() self.dragStartPos = evt.GetPosition() self._display.StartRotation(self.dragStartPos.x, self.dragStartPos.y) - def OnLeftUp(self, evt): + def OnLeftUp(self, evt: Any) -> None: + """ + Called when the left mouse button is released. + """ pt = evt.GetPosition() if self._select_area: [Xmin, Ymin, dx, dy] = self._drawbox @@ -223,30 +320,48 @@ def OnLeftUp(self, evt): else: self._display.Select(pt.x, pt.y) - def OnRightUp(self, evt): + def OnRightUp(self, evt: Any) -> None: + """ + Called when the right mouse button is released. + """ if self._zoom_area: [Xmin, Ymin, dx, dy] = self._drawbox self._display.ZoomArea(Xmin, Ymin, Xmin + dx, Ymin + dy) self._zoom_area = False - def OnMiddleUp(self, evt): + def OnMiddleUp(self, evt: Any) -> None: + """ + Called when the middle mouse button is released. + """ pass - def OnRightDown(self, evt): + def OnRightDown(self, evt: Any) -> None: + """ + Called when the right mouse button is pressed. + """ self.dragStartPos = evt.GetPosition() self._display.StartRotation(self.dragStartPos.x, self.dragStartPos.y) - def OnMiddleDown(self, evt): + def OnMiddleDown(self, evt: Any) -> None: + """ + Called when the middle mouse button is pressed. + """ self.dragStartPos = evt.GetPosition() self._display.StartRotation(self.dragStartPos.x, self.dragStartPos.y) - def OnWheelScroll(self, evt): + def OnWheelScroll(self, evt: Any) -> None: + """ + Called when the mouse wheel is scrolled. + """ # Zooming by wheel zoom_factor = 2.0 if evt.GetWheelRotation() > 0 else 0.5 self._display.Repaint() self._display.ZoomFactor(zoom_factor) - def DrawBox(self, event): + def DrawBox(self, event: Any) -> None: + """ + Draws a selection box. + """ tolerance = 2 pt = event.GetPosition() dx = pt.x - self.dragStartPos.x @@ -264,7 +379,10 @@ def DrawBox(self, event): dc.DrawRectangle(r) self._drawbox = [self.dragStartPos.x, self.dragStartPos.y, dx, dy] - def OnMotion(self, evt): + def OnMotion(self, evt: Any) -> None: + """ + Called when the mouse is moved. + """ pt = evt.GetPosition() # ROTATE @@ -300,9 +418,13 @@ def OnMotion(self, evt): self._display.MoveTo(pt.x, pt.y) -def TestWxDisplay(): +def TestWxDisplay() -> None: + """ + A test function for the wxViewer3d. + """ + class AppFrame(wx.Frame): - def __init__(self, parent): + def __init__(self, parent: Optional[Any]) -> None: wx.Frame.__init__( self, parent, @@ -313,7 +435,7 @@ def __init__(self, parent): ) self.canva = wxViewer3d(self) - def runTests(self): + def runTests(self) -> None: self.canva._display.Test() app = wx.App(False) diff --git a/src/Display/wxDisplay.pyi b/src/Display/wxDisplay.pyi new file mode 100644 index 000000000..f66c1eeb9 --- /dev/null +++ b/src/Display/wxDisplay.pyi @@ -0,0 +1,47 @@ +from typing import Any, Optional + +import wx + +class wxBaseViewer(wx.Panel): + def __init__(self, parent: Optional[Any] = None) -> None: ... + def GetWinId(self) -> int: ... + def OnSize(self, event: Any) -> None: ... + def OnIdle(self, event: Any) -> None: ... + def OnMove(self, event: Any) -> None: ... + def OnFocus(self, event: Any) -> None: ... + def OnLostFocus(self, event: Any) -> None: ... + def OnMaximize(self, event: Any) -> None: ... + def OnLeftDown(self, event: Any) -> None: ... + def OnRightDown(self, event: Any) -> None: ... + def OnMiddleDown(self, event: Any) -> None: ... + def OnLeftUp(self, event: Any) -> None: ... + def OnRightUp(self, event: Any) -> None: ... + def OnMiddleUp(self, event: Any) -> None: ... + def OnMotion(self, event: Any) -> None: ... + def OnKeyDown(self, event: Any) -> None: ... + +class wxViewer3d(wxBaseViewer): + def __init__(self, *kargs: Any) -> None: ... + def InitDriver(self) -> None: ... + def _SetupKeyMap(self) -> None: ... + def OnKeyDown(self, evt: Any) -> None: ... + def OnMaximize(self, event: Any) -> None: ... + def OnMove(self, event: Any) -> None: ... + def OnIdle(self, event: Any) -> None: ... + def Test(self) -> None: ... + def OnFocus(self, event: Any) -> None: ... + def OnLostFocus(self, event: Any) -> None: ... + def OnPaint(self, event: Any) -> None: ... + def ZoomAll(self, evt: Any) -> None: ... + def Repaint(self, evt: Any) -> None: ... + def OnLeftDown(self, evt: Any) -> None: ... + def OnLeftUp(self, evt: Any) -> None: ... + def OnRightUp(self, evt: Any) -> None: ... + def OnMiddleUp(self, evt: Any) -> None: ... + def OnRightDown(self, evt: Any) -> None: ... + def OnMiddleDown(self, evt: Any) -> None: ... + def OnWheelScroll(self, evt: Any) -> None: ... + def DrawBox(self, event: Any) -> None: ... + def OnMotion(self, evt: Any) -> None: ... + +def TestWxDisplay() -> None: ... diff --git a/src/Extend/DataExchange.py b/src/Extend/DataExchange.py index 4ceae09f9..817bbae0f 100644 --- a/src/Extend/DataExchange.py +++ b/src/Extend/DataExchange.py @@ -16,7 +16,7 @@ ##along with pythonOCC. If not, see . import os -from typing import Union, List +from typing import Union, List, Dict, Tuple, Any from OCC.Core.TopoDS import TopoDS_Compound, TopoDS_Edge, TopoDS_Shape from OCC.Core.BRepTools import breptools @@ -46,7 +46,12 @@ from OCC.Core.TDF import TDF_LabelSequence, TDF_Label from OCC.Core.Quantity import Quantity_Color, Quantity_TOC_RGB from OCC.Core.TopLoc import TopLoc_Location -from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_Transform +from OCC.Core.BRepBuilderAPI import ( + BRepBuilderAPI_Transform, + BRepBuilderAPI_Sewing, + BRepBuilderAPI_MakeSolid, +) + from OCC.Core.TColStd import TColStd_IndexedDataMapOfStringString from OCC.Core.TCollection import TCollection_AsciiString from OCC.Core.RWPly import RWPly_CafWriter @@ -186,9 +191,19 @@ def write_step_file( raise IOError(f"{filename} not saved to filesystem.") -def read_step_file_with_names_colors(filename: str): - """Returns list of tuples (topods_shape, label, color) - Use OCAF. +def read_step_file_with_names_colors( + filename: str, +) -> Dict[TopoDS_Shape, List[Union[str, Quantity_Color]]]: + """ + Reads a STEP file and extracts shapes with their names and colors using OCAF. + + This function processes a STEP file, including its assembly structure, + and returns a dictionary mapping each shape to its name and color. + + :param filename: The path to the STEP file. + :return: A dictionary where keys are TopoDS_Shape objects and values are + lists containing the shape's name and its Quantity_Color. + :raises FileNotFoundError: If the specified file does not exist. """ if not os.path.isfile(filename): raise FileNotFoundError(f"{filename} not found.") @@ -368,25 +383,22 @@ def write_stl_file( linear_deflection: float = 0.9, angular_deflection: float = 0.5, ) -> None: - """Export a shape to STL format. + """ + Export a shape to STL format. The shape is first meshed using the specified deflection parameters before export. - Args: - shape: The shape to export - filename: Target STL file path - mode: Export format, either "ascii" or "binary". - Defaults to "ascii". - linear_deflection: Maximum distance between mesh and actual surface. - Lower values produce more accurate but larger meshes. - Defaults to 0.9 - angular_deflection: Maximum angle between mesh elements in radians. - Lower values produce smoother meshes. - Defaults to 0.5 - - Raises: - AssertionError: If shape is null or meshing fails - IOError: If export fails + :param shape: The shape to export. + :param filename: Target STL file path. + :param mode: Export format, either "ascii" or "binary". Defaults to "ascii". + :param linear_deflection: Maximum distance between mesh and actual surface. + Lower values produce more accurate but larger meshes. + Defaults to 0.9. + :param angular_deflection: Maximum angle between mesh elements in radians. + Lower values produce smoother meshes. + Defaults to 0.5. + :raises AssertionError: If shape is null or meshing fails. + :raises IOError: If export fails. """ if shape.IsNull(): raise AssertionError("Shape is null.") @@ -414,17 +426,43 @@ def write_stl_file( raise IOError("File not written to disk.") -def read_stl_file(filename: str): - """open a stl file, reads the content, and returns a BRep topods_shape object""" +def read_stl_file( + filename: str, sew_shape: bool = False, make_solid: bool = False +) -> TopoDS_Shape: + """ + Reads an STL file and returns a TopoDS_Shape. + + :param filename: The path to the STL file. + :param sew_shape: sew all triangular faces after loading + :param make_solid: fill the surfacic mesh to return a TopoDS_Solid + :return: The shape read from the file. + :raises FileNotFoundError: If the specified file does not exist. + :raises AssertionError: If the shape in the file is null. + """ if not os.path.isfile(filename): raise FileNotFoundError(f"{filename} not found.") + if not sew_shape and make_solid: + raise AssertionError("Please enable sew_shape in order to make solid.") + the_shape = TopoDS_Shape() stlapi.Read(the_shape, filename) if the_shape.IsNull(): raise AssertionError("Shape is null.") + if sew_shape: + sewer = BRepBuilderAPI_Sewing() + sewer.Add(the_shape) + sewer.Perform() + sewed_shape = sewer.SewedShape() + + if make_solid: + return BRepBuilderAPI_MakeSolid(sewed_shape).Shape() + + # Return the sewed shape + return sewed_shape + return the_shape @@ -436,12 +474,19 @@ def read_iges_file( return_as_shapes: bool = False, verbosity: bool = False, visible_only: bool = False, -): - """read the IGES file and returns a compound - filename: the file path - return_as_shapes: optional, False by default. If True returns a list of shapes, - else returns a single compound - verbosity: optionl, False by default. +) -> List[TopoDS_Shape]: + """ + Reads an IGES file and returns the shapes. + + :param filename: The path to the IGES file. + :param return_as_shapes: If True, returns a list of shapes. Otherwise, returns + a single compound shape. Defaults to False. + :param verbosity: If True, prints detailed information during import. + Defaults to False. + :param visible_only: If True, only reads visible entities. Defaults to False. + :return: A list of shapes or a single compound shape. + :raises FileNotFoundError: If the specified file does not exist. + :raises IOError: If the file cannot be read. """ if not os.path.isfile(filename): raise FileNotFoundError(f"{filename} not found.") @@ -482,10 +527,13 @@ def read_iges_file( def write_iges_file(a_shape: TopoDS_Shape, filename: str): - """exports a shape to a STEP file - a_shape: the topods_shape to export (a compound, a solid etc.) - filename: the filename - application protocol: "AP203" or "AP214" + """ + Exports a shape to an IGES file. + + :param a_shape: The TopoDS_Shape to export. + :param filename: The path to the output IGES file. + :raises AssertionError: If the shape is null or the export fails. + :raises IOError: If the file cannot be written to disk. """ # a few checks if a_shape.IsNull(): @@ -506,8 +554,17 @@ def write_iges_file(a_shape: TopoDS_Shape, filename: str): ############## # SVG export # ############## -def edge_to_svg_polyline(topods_edge: TopoDS_Edge, tol: float = 0.1, unit: str = "mm"): - """Returns a svgwrite.Path for the edge, and the 2d bounding box""" +def edge_to_svg_polyline( + topods_edge: TopoDS_Edge, tol: float = 0.1, unit: str = "mm" +) -> Tuple[Any, Bnd_Box2d]: + """ + Converts a TopoDS_Edge to an SVG polyline. + + :param topods_edge: The edge to convert. + :param tol: The tolerance for discretization. Defaults to 0.1. + :param unit: The unit of the coordinates ('mm' or 'm'). Defaults to 'mm'. + :return: A tuple containing the svgwrite.shapes.Polyline and the 2D bounding box. + """ check_svgwrite_installed() unit_factor = 1 # by default @@ -544,17 +601,24 @@ def export_shape_to_svg( color: str = "black", line_width: str = "1px", unit: str = "mm", -): - """export a single shape to an svg file and/or string. - shape: the TopoDS_Shape to export - filename (optional): if provided, save to an svg file - width, height (optional): integers, specify the canvas size in pixels - margin_left, margin_top (optional): integers, in pixel - export_hidden_edges (optional): whether or not draw hidden edges using a dashed line - location (optional): a gp_Pnt, the lookat - direction (optional): to set up the projector direction - color (optional), "default to "black". - line_width (optional, default to 1): an integer +) -> Union[bool, str]: + """ + Exports a shape to an SVG file or string. + + :param shape: The TopoDS_Shape to export. + :param filename: If provided, the path to save the SVG file. + :param width: The width of the SVG canvas in pixels. + :param height: The height of the SVG canvas in pixels. + :param margin_left: The left margin in pixels. + :param margin_top: The top margin in pixels. + :param export_hidden_edges: If True, hidden edges are drawn with a dashed line. + :param location: The viewpoint location for HLR. + :param direction: The view direction for HLR. + :param color: The color of the lines. + :param line_width: The width of the lines. + :param unit: The unit of the coordinates ('mm' or 'm'). + :return: The SVG content as a string if no filename is provided, otherwise True. + :raises AssertionError: If the shape is null or the export fails. """ check_svgwrite_installed() @@ -629,7 +693,12 @@ def export_shape_to_svg( # ply export (write not avaiable from upstream) # ################################################# def write_ply_file(a_shape: TopoDS_Shape, ply_filename: str): - """ocaf based ply exporter""" + """ + Exports a shape to a PLY file using OCAF. + + :param a_shape: The TopoDS_Shape to export. + :param ply_filename: The path to the output PLY file. + """ # create a document doc = TDocStd_Document("pythonocc-doc-ply-export") shape_tool = XCAFDoc_DocumentTool.ShapeTool(doc.Main()) @@ -662,7 +731,12 @@ def write_ply_file(a_shape: TopoDS_Shape, ply_filename: str): # Obj export (write not avaiable from upstream) # ################################################# def write_obj_file(a_shape: TopoDS_Shape, obj_filename: str): - """ocaf based ply exporter""" + """ + Exports a shape to an OBJ file using OCAF. + + :param a_shape: The TopoDS_Shape to export. + :param obj_filename: The path to the output OBJ file. + """ # create a document doc = TDocStd_Document("pythonocc-doc-obj-export") shape_tool = XCAFDoc_DocumentTool.ShapeTool(doc.Main()) @@ -707,7 +781,21 @@ def read_gltf_file( keep_late_data: bool = True, verbose: bool = False, load_all_scenes: bool = False, -): +) -> List[TopoDS_Shape]: + """ + Reads a glTF file and returns the shape. + + :param filename: The path to the glTF file. + :param is_parallel: If True, uses parallel processing. Defaults to False. + :param is_double_precision: If True, uses double precision. Defaults to False. + :param skip_late_data_loading: If True, skips loading late data. Defaults to False. + :param keep_late_data: If True, keeps late data. Defaults to True. + :param verbose: If True, prints debug messages. Defaults to False. + :param load_all_scenes: If True, loads all scenes. Defaults to False. + :return: A list containing the read shape. + :raises FileNotFoundError: If the specified file does not exist. + :raises IOError: If the file cannot be read. + """ if not os.path.isfile(filename): raise FileNotFoundError(f"{filename} not found.") @@ -729,7 +817,14 @@ def read_gltf_file( def write_gltf_file(a_shape: TopoDS_Shape, gltf_filename: str, binary=True): - """ocaf based ply exporter""" + """ + Exports a shape to a glTF file using OCAF. + + :param a_shape: The TopoDS_Shape to export. + :param gltf_filename: The path to the output glTF file. + :param binary: If True, exports to a binary glTF (.glb) file. Defaults to True. + :raises IOError: If the export fails. + """ # create a document doc = TDocStd_Document("pythonocc-doc-gltf-export") shape_tool = XCAFDoc_DocumentTool.ShapeTool(doc.Main()) diff --git a/src/Extend/DataExchange.pyi b/src/Extend/DataExchange.pyi new file mode 100644 index 000000000..e9e7e737f --- /dev/null +++ b/src/Extend/DataExchange.pyi @@ -0,0 +1,67 @@ +from typing import Any, Dict, List, Tuple, Union + +from OCC.Core.Bnd import Bnd_Box2d +from OCC.Core.gp import gp_Dir, gp_Pnt +from OCC.Core.Quantity import Quantity_Color +from OCC.Core.TopoDS import TopoDS_Edge, TopoDS_Shape + +HAVE_SVGWRITE: bool + +def check_svgwrite_installed() -> None: ... +def read_step_file( + filename: str, as_compound: bool = True, verbosity: bool = False +) -> Union[TopoDS_Shape, List[TopoDS_Shape]]: ... +def write_step_file( + shape: TopoDS_Shape, filename: str, application_protocol: str = "AP203" +) -> None: ... +def read_step_file_with_names_colors( + filename: str, +) -> Dict[TopoDS_Shape, List[Union[str, Quantity_Color]]]: ... +def write_stl_file( + shape: TopoDS_Shape, + filename: str, + mode: str = "ascii", + linear_deflection: float = 0.9, + angular_deflection: float = 0.5, +) -> None: ... +def read_stl_file( + filename: str, sew_shape: bool = False, make_solid: bool = False +) -> TopoDS_Shape: ... +def read_iges_file( + filename: str, + return_as_shapes: bool = False, + verbosity: bool = False, + visible_only: bool = False, +) -> List[TopoDS_Shape]: ... +def write_iges_file(a_shape: TopoDS_Shape, filename: str) -> None: ... +def edge_to_svg_polyline( + topods_edge: TopoDS_Edge, tol: float = 0.1, unit: str = "mm" +) -> Tuple[Any, Bnd_Box2d]: ... +def export_shape_to_svg( + shape: TopoDS_Shape, + filename: str = None, + width: int = 800, + height: int = 600, + margin_left: int = 10, + margin_top: int = 30, + export_hidden_edges: bool = True, + location: gp_Pnt = ..., + direction: gp_Dir = ..., + color: str = "black", + line_width: str = "1px", + unit: str = "mm", +) -> Union[bool, str]: ... +def write_ply_file(a_shape: TopoDS_Shape, ply_filename: str) -> None: ... +def write_obj_file(a_shape: TopoDS_Shape, obj_filename: str) -> None: ... +def read_gltf_file( + filename: str, + is_parallel: bool = False, + is_double_precision: bool = False, + skip_late_data_loading: bool = False, + keep_late_data: bool = True, + verbose: bool = False, + load_all_scenes: bool = False, +) -> List[TopoDS_Shape]: ... +def write_gltf_file( + a_shape: TopoDS_Shape, gltf_filename: str, binary: bool = True +) -> None: ... diff --git a/src/Extend/LayerManager.py b/src/Extend/LayerManager.py index 764545ce5..6537e430c 100644 --- a/src/Extend/LayerManager.py +++ b/src/Extend/LayerManager.py @@ -15,48 +15,55 @@ ##You should have received a copy of the GNU Lesser General Public License ##along with pythonOCC. If not, see . -from OCC.Core.Graphic3d import Graphic3d_NOM_DEFAULT +from typing import Dict, List, Tuple, Optional + +from OCC.Core.AIS import AIS_InteractiveContext, AIS_Shape from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_Transform +from OCC.Core.gp import gp_Trsf +from OCC.Core.Graphic3d import Graphic3d_NameOfMaterial +from OCC.Core.TopoDS import TopoDS_Shape class Layer: + """ + Manages a collection of shapes as a layer in a 3D viewer. + + A layer holds a set of TopoDS_Shape objects and controls their visual + properties like color, transparency, and material. It provides methods + to add, remove, and manipulate these shapes. + """ + def __init__( self, - from_display, - shape=None, - color=0, - transparency=0.0, - material=Graphic3d_NOM_DEFAULT, - ): - r""" - Parameters - ---------- - from_display: the display from the main code - shape: TopoDS_Shape - color: Quantity color - transparency: from 0.0 to 1.0 - - Returns - ------- - None - """ - self.clear() - self.color = color - self.display = from_display - self.transparency = transparency - self.material = material + from_display: AIS_InteractiveContext, + shape: Optional[TopoDS_Shape] = None, + color: int = 0, + transparency: float = 0.0, + material: Graphic3d_NameOfMaterial = Graphic3d_NameOfMaterial.Graphic3d_NOM_DEFAULT, + ) -> None: + """ + Initializes a new Layer. + + :param from_display: The display object from the main application. + :param shape: A shape to add to the layer upon creation. Defaults to None. + :param color: The color of the shapes in the layer. Defaults to 0 (black). + :param transparency: The transparency of the shapes, from 0.0 (opaque) to 1.0 (fully transparent). Defaults to 0.0. + :param material: The material of the shapes. Defaults to Graphic3d_NOM_DEFAULT. + """ + self.element_to_display: Dict[int, Tuple[TopoDS_Shape, AIS_Shape]] = {} + self.count: int = 0 + self.color: int = color + self.display: AIS_InteractiveContext = from_display + self.transparency: float = transparency + self.material: Graphic3d_NameOfMaterial = material if shape is not None: self.add_shape(shape) - def add_shape(self, shape): - r""" - Parameters - ---------- - shape: TopoDS_Shape + def add_shape(self, shape: TopoDS_Shape) -> None: + """ + Adds a shape to the layer. - Returns - ------- - None + :param shape: The TopoDS_Shape to add. """ to_display = self.display.DisplayShape( shape, color=self.color, material=self.material @@ -66,16 +73,12 @@ def add_shape(self, shape): self.count += 1 self.display.Context.Erase(to_display, False) - def replace_shape(self, shape, index): - r""" - Parameters - ---------- - shape: TopoDS_Shape - index: The index of the shape to replace + def replace_shape(self, shape: TopoDS_Shape, index: int) -> None: + """ + Replaces a shape in the layer at a specific index. - Returns - ------- - None + :param shape: The new TopoDS_Shape. + :param index: The index of the shape to replace. """ self.display.Context.Erase(self.element_to_display[index][1], False) self.element_to_display.pop(index) @@ -86,76 +89,62 @@ def replace_shape(self, shape, index): self.element_to_display[index] = (shape, to_display) # self.display.Context.Erase(to_display, False) - def update_trsf_shape(self, shape, index, transformations): - r""" - Parameters - ---------- - shape: TopoDS_Shape - index: The index of the shape to update and replace - transformations: gp_Trsf + def update_trsf_shape( + self, shape: TopoDS_Shape, index: int, transformations: gp_Trsf + ) -> None: + """ + Applies a transformation to a shape and updates it in the layer. - Returns - ------- - None + :param shape: The TopoDS_Shape to transform. + :param index: The index of the shape to update. + :param transformations: The gp_Trsf transformation to apply. """ shape_moved = BRepBuilderAPI_Transform(shape, transformations, True).Shape() self.replace_shape(shape_moved, index) - def merge(self, layer, clear=False): - r""" - Parameters - ---------- - layer: name of the layer to merge to the main one - clear: bool to clear the layer + def merge(self, layer: "Layer", clear: bool = False) -> None: + """ + Merges another layer into this one. - Returns - ------- - None + :param layer: The Layer to merge from. + :param clear: If True, the source layer is cleared after merging. Defaults to False. """ for shape in layer.get_shapes(): self.add_shape(shape) if clear is True: layer.clear() - def delete_shape_with_index(self, index): - r""" - Parameters - ---------- - index: index of the shape to delete from layer + def delete_shape_with_index(self, index: int) -> None: + """ + Deletes a shape from the layer by its index. - Returns - ------- - None + :param index: The index of the shape to delete. """ self.element_to_display.pop(index) - def delete_shape(self, shape_to_del): - r""" - Parameters - ---------- - shape: the TopoDS_Shape to delete from layer + def delete_shape(self, shape_to_del: TopoDS_Shape) -> None: + """ + Deletes a shape from the layer. - Returns - ------- - None + :param shape_to_del: The TopoDS_Shape to delete. """ for index, element in self.element_to_display.items(): shape, ais_shape = element if shape_to_del == shape: self.element_to_display.pop(index) - def clear(self): - r""" - Clear the layer from its shapes + def clear(self) -> None: + """ + Removes all shapes from the layer. """ self.element_to_display = {} self.count = 0 - def get_shapes(self): - r""" - Returns - ------- - List of TopoDS_Shape + def get_shapes(self) -> List[TopoDS_Shape]: + """ + Gets all the shapes in the layer. + + :return: A list of TopoDS_Shape objects. """ topods_shapes = [] for index, element in self.element_to_display.items(): @@ -163,33 +152,33 @@ def get_shapes(self): topods_shapes.append(shape) return topods_shapes - def get_aisshape_from_topodsshape(self, topshape): - r""" - Parameters - ---------- - topshape: the TopoDS_Shape linked to the AIS_Shape to retrieve + def get_aisshape_from_topodsshape( + self, topshape: TopoDS_Shape + ) -> Optional[Tuple[AIS_Shape, int]]: + """ + Gets the displayed AIS_Shape corresponding to a TopoDS_Shape. - Returns - ------- - AIS_Shape, index of shape + :param topshape: The TopoDS_Shape to find the AIS_Shape for. + :return: A tuple containing the AIS_Shape and its index, or None if not found. """ for index, element in self.element_to_display.items(): shape, ais_shape = element if shape == topshape: return ais_shape, index + return None - def hide(self): - r""" - hide the layer from display + def hide(self) -> None: + """ + Hides the layer from the display. """ for index, element in self.element_to_display.items(): shape, ais_shape = element self.display.Context.Erase(ais_shape, False) self.display.View.Redraw() - def show(self): - r""" - Show the layer to display + def show(self) -> None: + """ + Shows the layer in the display. """ for index, element in self.element_to_display.items(): shape, ais = element diff --git a/src/Extend/LayerManager.pyi b/src/Extend/LayerManager.pyi new file mode 100644 index 000000000..48d651b42 --- /dev/null +++ b/src/Extend/LayerManager.pyi @@ -0,0 +1,38 @@ +from typing import Dict, List, Optional, Tuple + +from OCC.Core.AIS import AIS_InteractiveContext, AIS_Shape +from OCC.Core.gp import gp_Trsf +from OCC.Core.Graphic3d import Graphic3d_NameOfMaterial +from OCC.Core.TopoDS import TopoDS_Shape + +class Layer: + color: int + display: AIS_InteractiveContext + transparency: float + material: Graphic3d_NameOfMaterial + element_to_display: Dict[int, Tuple[TopoDS_Shape, AIS_Shape]] + count: int + + def __init__( + self, + from_display: AIS_InteractiveContext, + shape: Optional[TopoDS_Shape] = None, + color: int = 0, + transparency: float = 0.0, + material: Graphic3d_NameOfMaterial = Graphic3d_NameOfMaterial.Graphic3d_NOM_DEFAULT, + ) -> None: ... + def add_shape(self, shape: TopoDS_Shape) -> None: ... + def replace_shape(self, shape: TopoDS_Shape, index: int) -> None: ... + def update_trsf_shape( + self, shape: TopoDS_Shape, index: int, transformations: gp_Trsf + ) -> None: ... + def merge(self, layer: "Layer", clear: bool = False) -> None: ... + def delete_shape_with_index(self, index: int) -> None: ... + def delete_shape(self, shape_to_del: TopoDS_Shape) -> None: ... + def clear(self) -> None: ... + def get_shapes(self) -> List[TopoDS_Shape]: ... + def get_aisshape_from_topodsshape( + self, topshape: TopoDS_Shape + ) -> Optional[Tuple[AIS_Shape, int]]: ... + def hide(self) -> None: ... + def show(self) -> None: ... diff --git a/src/Extend/ShapeFactory.py b/src/Extend/ShapeFactory.py index 166159002..3dd0a4cb5 100644 --- a/src/Extend/ShapeFactory.py +++ b/src/Extend/ShapeFactory.py @@ -16,6 +16,7 @@ ##along with pythonOCC. If not, see . from math import radians +from typing import Any, List, Tuple, Union from OCC.Core.BRepBndLib import brepbndlib from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox, BRepPrimAPI_MakePrism @@ -26,11 +27,12 @@ BRepBuilderAPI_MakeFace, BRepBuilderAPI_MakeEdge2d, BRepBuilderAPI_Transform, + BRepBuilderAPI_GTransform, ) -from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_GTransform from OCC.Core.BRepFill import BRepFill_Filling from OCC.Core.Bnd import Bnd_Box, Bnd_OBB from OCC.Core.GeomAbs import ( + GeomAbs_Shape, GeomAbs_C0, GeomAbs_Plane, GeomAbs_Cylinder, @@ -45,16 +47,24 @@ GeomAbs_OtherSurface, ) from OCC.Core.BRepAdaptor import BRepAdaptor_Surface, BRepAdaptor_Curve +from OCC.Core.Geom import Geom_BSplineCurve, Geom_BezierCurve, Geom_Surface from OCC.Core.GeomAPI import GeomAPI_PointsToBSpline from OCC.Core.GProp import GProp_GProps from OCC.Core.BRepGProp import brepgprop from OCC.Core.TColgp import TColgp_Array1OfPnt -from OCC.Core.TopoDS import TopoDS_Face +from OCC.Core.TopoDS import ( + TopoDS_Face, + TopoDS_Shape, + TopoDS_Vertex, + TopoDS_Edge, + TopoDS_Wire, +) from OCC.Core.gp import ( gp, gp_Vec, gp_Pnt, gp_Trsf, + gp_Ax1, gp_Ax2, gp_Dir, gp_GTrsf, @@ -69,17 +79,25 @@ # # assert utils # -def assert_shape_not_null(shp): +def assert_shape_not_null(shp: TopoDS_Shape) -> None: + """Checks if a shape is not None.""" if shp is None: raise AssertionError("Shape is Null.") -def assert_isdone(inst, message): +def assert_isdone(inst: Any, message: str) -> None: + """Checks if a BRepBuilderAPI algorithm has completed successfully.""" if not inst.IsDone(): raise AssertionError(message) -def point_list_to_TColgp_Array1OfPnt(li): +def point_list_to_TColgp_Array1OfPnt(li: List[gp_Pnt]) -> TColgp_Array1OfPnt: + """ + Converts a list of gp_Pnt to a TColgp_Array1OfPnt. + + :param li: A list of gp_Pnt. + :return: A TColgp_Array1OfPnt containing the points. + """ pts = TColgp_Array1OfPnt(0, len(li) - 1) for n, i in enumerate(li): pts.SetValue(n, i) @@ -88,28 +106,61 @@ def point_list_to_TColgp_Array1OfPnt(li): # # 0D -def make_vertex(*args): +def make_vertex(*args: Union[gp_Pnt, float]) -> TopoDS_Vertex: + """ + Creates a TopoDS_Vertex from a point. + + :param args: A gp_Pnt or the coordinates (x, y, z) of the point. + :return: The created TopoDS_Vertex. + """ vert = BRepBuilderAPI_MakeVertex(*args) - assert_isdone(vert, "failed to produce edge") + assert_isdone(vert, "failed to produce vertex") return vert.Vertex() # # 1D # -def make_edge(*args): +def make_edge(*args: Any) -> TopoDS_Edge: + """ + Creates a TopoDS_Edge from various inputs. + + Can create an edge from: + - Two gp_Pnt + - A TopoDS_Vertex and a gp_Pnt + - Two TopoDS_Vertex + - A Geom_Curve + + :param args: The input geometry to create the edge from. + :return: The created TopoDS_Edge. + """ edge = BRepBuilderAPI_MakeEdge(*args) assert_isdone(edge, "failed to produce edge") return edge.Edge() -def make_edge2d(*args): +def make_edge2d(*args: Any) -> TopoDS_Edge: + """ + Creates a 2D TopoDS_Edge. + + :param args: Arguments for BRepBuilderAPI_MakeEdge2d. + :return: The created 2D TopoDS_Edge. + """ edge = BRepBuilderAPI_MakeEdge2d(*args) assert_isdone(edge, "failed to produce edge") return edge.Edge() -def make_wire(*args): +def make_wire(*args: Union[List[TopoDS_Edge], TopoDS_Edge]) -> TopoDS_Wire: + """ + Creates a TopoDS_Wire from a list of edges or by connecting edges. + + If the first argument is a list or tuple of edges, it creates a wire from them. + Otherwise, it can take multiple TopoDS_Edge arguments and connect them. + + :param args: A list of edges or a sequence of edges. + :return: The created TopoDS_Wire. + """ # if we get an iterable, than add all edges to wire builder if isinstance(args[0], (list, tuple)): wire = BRepBuilderAPI_MakeWire() @@ -122,7 +173,13 @@ def make_wire(*args): return wire.Wire() -def points_to_bspline(pnts): +def points_to_bspline(pnts: List[gp_Pnt]) -> Geom_BSplineCurve: + """ + Creates a BSpline curve from a list of points. + + :param pnts: A list of gp_Pnt. + :return: A Geom_BSplineCurve. + """ pts = TColgp_Array1OfPnt(0, len(pnts) - 1) for n, i in enumerate(pnts): pts.SetValue(n, i) @@ -130,12 +187,17 @@ def points_to_bspline(pnts): return crv.Curve() -def edge_to_bezier(topods_edge): - """take an edge and returns: - * a bool is_bezier - * the bezier curve - * degrees - * poles +def edge_to_bezier( + topods_edge: TopoDS_Edge, +) -> Tuple[bool, Geom_BezierCurve, int]: + """ + Converts a TopoDS_Edge to a Bezier curve if possible. + + :param topods_edge: The edge to convert. + :return: A tuple containing: + - A boolean indicating if the conversion was successful. + - The Geom_BezierCurve if successful, otherwise None. + - The degree of the Bezier curve if successful, otherwise None. """ ad = BRepAdaptor_Curve(topods_edge) if ad.IsRational(): @@ -146,7 +208,16 @@ def edge_to_bezier(topods_edge): # # 2D # -def make_n_sided(edges, continuity=GeomAbs_C0): +def make_n_sided( + edges: List[TopoDS_Edge], continuity: GeomAbs_Shape = GeomAbs_C0 +) -> TopoDS_Face: + """ + Creates an n-sided face from a list of edges. + + :param edges: A list of TopoDS_Edge that form a closed boundary. + :param continuity: The continuity of the surface. Defaults to GeomAbs_C0. + :return: The created TopoDS_Face. + """ n_sided = BRepFill_Filling() for edg in edges: n_sided.Add(edg, continuity) @@ -155,34 +226,36 @@ def make_n_sided(edges, continuity=GeomAbs_C0): return n_sided.Face() -def make_face(*args): +def make_face(*args: Union[TopoDS_Wire, Geom_Surface]) -> TopoDS_Face: + """ + Creates a TopoDS_Face from various inputs. + + Can create a face from: + - A TopoDS_Wire + - A Geom_Surface + + :param args: The input geometry to create the face from. + :return: The created TopoDS_Face. + """ face = BRepBuilderAPI_MakeFace(*args) assert_isdone(face, "failed to produce face") return face.Face() -def get_aligned_boundingbox(shape, tol=1e-6, optimal_BB=True): - """return the bounding box of the TopoDS_Shape `shape` - - Parameters - ---------- - - shape : TopoDS_Shape or a subclass such as TopoDS_Face - the shape to compute the bounding box from - - tol: float - tolerance of the computed boundingbox - - use_triangulation : bool, True by default - This makes the computation more accurate - - Returns - ------- - if `as_pnt` is True, return a tuple of gp_Pnt instances - for the lower and another for the upper X,Y,Z values representing the bounding box - - if `as_pnt` is False, return a tuple of lower and then upper X,Y,Z values - representing the bounding box +def get_aligned_boundingbox( + shape: TopoDS_Shape, tol: float = 1e-6, optimal_BB: bool = True +) -> Tuple[gp_Pnt, List[float], TopoDS_Shape]: + """ + Computes the axis-aligned bounding box of a shape. + + :param shape: The TopoDS_Shape to compute the bounding box from. + :param tol: The tolerance of the bounding box. Defaults to 1e-6. + :param optimal_BB: If True, computes the optimal (tightest) bounding box. + Defaults to True. + :return: A tuple containing: + - The center of the bounding box (gp_Pnt). + - A list of the dimensions [dx, dy, dz] of the bounding box. + - A TopoDS_Shape representing the bounding box. """ bbox = Bnd_Box() bbox.SetGap(tol) @@ -205,22 +278,19 @@ def get_aligned_boundingbox(shape, tol=1e-6, optimal_BB=True): return center, [dx, dy, dz], box_shp -def get_oriented_boundingbox(shape, optimal_OBB=True): - """return the oriented bounding box of the TopoDS_Shape `shape` - - Parameters - ---------- - - shape : TopoDS_Shape or a subclass such as TopoDS_Face - the shape to compute the bounding box from - optimal_OBB : bool, True by default. If set to True, compute the - optimal (i.e. the smallest oriented bounding box). Optimal OBB is - a bit longer. - Returns - ------- - a list with center, x, y and z sizes - - a shape +def get_oriented_boundingbox( + shape: TopoDS_Shape, optimal_OBB: bool = True +) -> Tuple[gp_Pnt, List[float], TopoDS_Shape]: + """ + Computes the oriented bounding box of a shape. + + :param shape: The TopoDS_Shape to compute the bounding box from. + :param optimal_OBB: If True, computes the smallest possible oriented + bounding box. This can be slower. Defaults to True. + :return: A tuple containing: + - The center of the bounding box (gp_Pnt). + - A list of the half-dimensions [hx, hy, hz] of the bounding box. + - A TopoDS_Shape representing the bounding box. """ obb = Bnd_OBB() if optimal_OBB: @@ -254,19 +324,13 @@ def get_oriented_boundingbox(shape, optimal_OBB=True): return bary_center, [a_half_x, a_half_y, a_half_z], a_box -def midpoint(point_A, point_B): - """computes the point that lies in the middle between pntA and pntB - - Parameters - ---------- - - pntA, pntB : gp_Pnt - - Returns - ------- - - gp_Pnt +def midpoint(point_A: gp_Pnt, point_B: gp_Pnt) -> gp_Pnt: + """ + Computes the midpoint between two points. + :param point_A: The first point (gp_Pnt). + :param point_B: The second point (gp_Pnt). + :return: The midpoint (gp_Pnt). """ vec_1 = gp_Vec(point_A.XYZ()) vec_2 = gp_Vec(point_B.XYZ()) @@ -274,35 +338,28 @@ def midpoint(point_A, point_B): return gp_Pnt(mid.XYZ()) -def center_boundingbox(shape): - """compute the center point of a TopoDS_Shape, based on its bounding box - - Parameters - ---------- - - shape : TopoDS_Shape instance or a subclass like TopoDS_Face - - Returns - ------- - - gp_Pnt +def center_boundingbox(shape: TopoDS_Shape) -> gp_Pnt: + """ + Computes the center of the bounding box of a shape. + :param shape: The TopoDS_Shape to compute the center of. + :return: The center point (gp_Pnt). """ xmin, ymin, zmin, xmax, ymax, zmax = get_boundingbox(shape, 1e-6) return midpoint(gp_Pnt(xmin, ymin, zmin), gp_Pnt(xmax, ymax, zmax)) -def get_boundingbox(shape, tol=1e-6, use_mesh=True): - """return the bounding box of the TopoDS_Shape `shape` - Parameters - ---------- - shape : TopoDS_Shape or a subclass such as TopoDS_Face - the shape to compute the bounding box from - tol: float - tolerance of the computed boundingbox - use_mesh : bool - a flag that tells whether or not the shape has first to be meshed before the bbox - computation. This produces more accurate results +def get_boundingbox( + shape: TopoDS_Shape, tol: float = 1e-6, use_mesh: bool = True +) -> Tuple[float, float, float, float, float, float]: + """ + Computes the axis-aligned bounding box of a shape. + + :param shape: The TopoDS_Shape to compute the bounding box from. + :param tol: The tolerance of the bounding box. Defaults to 1e-6. + :param use_mesh: If True, the shape is meshed before computing the + bounding box for better accuracy. Defaults to True. + :return: A tuple of the min and max coordinates (xmin, ymin, zmin, xmax, ymax, zmax). """ bbox = Bnd_Box() bbox.SetGap(tol) @@ -319,7 +376,15 @@ def get_boundingbox(shape, tol=1e-6, use_mesh=True): return xmin, ymin, zmin, xmax, ymax, zmax -def translate_shp(shp, vec, copy=False): +def translate_shp(shp: TopoDS_Shape, vec: gp_Vec, copy: bool = False) -> TopoDS_Shape: + """ + Translates a shape by a vector. + + :param shp: The TopoDS_Shape to translate. + :param vec: The translation vector (gp_Vec). + :param copy: If True, a new shape is created. Otherwise, the original shape is modified. Defaults to False. + :return: The translated TopoDS_Shape. + """ trns = gp_Trsf() trns.SetTranslation(vec) brep_trns = BRepBuilderAPI_Transform(shp, trns, copy) @@ -327,15 +392,17 @@ def translate_shp(shp, vec, copy=False): return brep_trns.Shape() -def rotate_shape(shape, axis, angle, unite="deg"): - """Rotate a shape around an axis, with a given angle. - - @param shape : the shape to rotate - @point : the origin of the axis - @vector : the axis direction - @angle : the value of the rotation +def rotate_shape( + shape: TopoDS_Shape, axis: gp_Ax1, angle: float, unite: str = "deg" +) -> TopoDS_Shape: + """ + Rotates a shape around an axis by a given angle. - @return: the rotated shape. + :param shape: The TopoDS_Shape to rotate. + :param axis: The axis of rotation (gp_Ax1). + :param angle: The angle of rotation. + :param unite: The unit of the angle, either "deg" for degrees or "rad" for radians. Defaults to "deg". + :return: The rotated TopoDS_Shape. """ assert_shape_not_null(shape) if unite == "deg": # convert angle to radians @@ -347,14 +414,18 @@ def rotate_shape(shape, axis, angle, unite="deg"): return brep_trns.Shape() -def rotate_shp_3_axis(shape, rx, ry, rz, unity="deg"): - """Rotate a shape around (O,x), (O,y) and (O,z). - - @param rx_degree : rotation around (O,x) - @param ry_degree : rotation around (O,y) - @param rz_degree : rotation around (O,z) - - @return : the rotated shape. +def rotate_shp_3_axis( + shape: TopoDS_Shape, rx: float, ry: float, rz: float, unity: str = "deg" +) -> TopoDS_Shape: + """ + Rotates a shape around the X, Y, and Z axes. + + :param shape: The TopoDS_Shape to rotate. + :param rx: The rotation angle around the X-axis. + :param ry: The rotation angle around the Y-axis. + :param rz: The rotation angle around the Z-axis. + :param unity: The unit of the angles, either "deg" for degrees or "rad" for radians. Defaults to "deg". + :return: The rotated TopoDS_Shape. """ assert_shape_not_null(shape) if unity == "deg": # convert angle to radians @@ -371,13 +442,15 @@ def rotate_shp_3_axis(shape, rx, ry, rz, unity="deg"): return brep_trns.Shape() -def scale_shape(shape, fx, fy, fz): - """Scale a shape along the 3 directions - @param fx : scale factor in the x direction - @param fy : scale factor in the y direction - @param fz : scale factor in the z direction +def scale_shape(shape: TopoDS_Shape, fx: float, fy: float, fz: float) -> TopoDS_Shape: + """ + Scales a shape along the X, Y, and Z axes. - @return : the scaled shape + :param shape: The TopoDS_Shape to scale. + :param fx: The scaling factor along the X-axis. + :param fy: The scaling factor along the Y-axis. + :param fz: The scaling factor along the Z-axis. + :return: The scaled TopoDS_Shape. """ assert_shape_not_null(shape) scale_trsf = gp_GTrsf() @@ -386,11 +459,16 @@ def scale_shape(shape, fx, fy, fz): return BRepBuilderAPI_GTransform(shape, scale_trsf).Shape() -def make_extrusion(face, length, vector=None): - """creates a extrusion from a face, along the vector vector. - with a distance length. Note that the normal vector does not - necessary be normalized. - By default, the extrusion is along the z axis. +def make_extrusion( + face: TopoDS_Face, length: float, vector: gp_Vec = None +) -> TopoDS_Shape: + """ + Creates an extrusion from a face along a vector. + + :param face: The TopoDS_Face to extrude. + :param length: The length of the extrusion. + :param vector: The direction of the extrusion (gp_Vec). If None, the Z-axis is used. Defaults to None. + :return: The extruded TopoDS_Shape (a solid). """ if vector is None: vector = gp_Vec(0.0, 0.0, 1.0) @@ -404,8 +482,18 @@ def make_extrusion(face, length, vector=None): ################################## # Recognize functions ################################## -def recognize_face(topods_face): - """returns True if the TopoDS_Face is a planar surface""" +def recognize_face( + topods_face: TopoDS_Face, +) -> Tuple[str, gp_Pnt, gp_Dir]: + """ + Recognizes the type of a TopoDS_Face and returns its properties. + + :param topods_face: The face to recognize. + :return: A tuple containing: + - The type of the face as a string (e.g., "Plane", "Cylinder"). + - The location of the surface (e.g., a point on the plane or axis). + - The normal or axis of the surface. + """ if not isinstance(topods_face, TopoDS_Face): return "Not a face", None, None surf = BRepAdaptor_Surface(topods_face, True) @@ -461,17 +549,30 @@ def recognize_face(topods_face): ############################################################################## # Measure functions ############################################################################## -def measure_shape_volume(shape): - """Returns shape volume""" +def measure_shape_volume(shape: TopoDS_Shape) -> float: + """ + Measures the volume of a shape. + + :param shape: The TopoDS_Shape to measure. + :return: The volume of the shape. + """ inertia_props = GProp_GProps() brepgprop.VolumeProperties(shape, inertia_props) return inertia_props.Mass() -def measure_shape_mass_center_of_gravity(shape): - """Returns the shape center of gravity - Returns a gp_Pnt if requested (set as_Pnt to True) - or a list of 3 coordinates, by default.""" +def measure_shape_mass_center_of_gravity( + shape: TopoDS_Shape, +) -> Tuple[gp_Pnt, float, str]: + """ + Measures the mass, center of gravity, and the property used for mass calculation (Length, Area, or Volume). + + :param shape: The TopoDS_Shape to measure. + :return: A tuple containing: + - The center of gravity (gp_Pnt). + - The mass (a float). + - The mass property as a string ("Length", "Area", or "Volume"). + """ inertia_props = GProp_GProps() if is_edge(shape): brepgprop.LinearProperties(shape, inertia_props) diff --git a/src/Extend/ShapeFactory.pyi b/src/Extend/ShapeFactory.pyi new file mode 100644 index 000000000..0805dea89 --- /dev/null +++ b/src/Extend/ShapeFactory.pyi @@ -0,0 +1,60 @@ +from typing import Any, List, Tuple, Union + +from OCC.Core.Geom import Geom_BSplineCurve, Geom_BezierCurve, Geom_Surface +from OCC.Core.GeomAbs import GeomAbs_Shape +from OCC.Core.gp import gp_Ax1, gp_Dir, gp_Pnt, gp_Vec +from OCC.Core.TColgp import TColgp_Array1OfPnt +from OCC.Core.TopoDS import ( + TopoDS_Edge, + TopoDS_Face, + TopoDS_Shape, + TopoDS_Vertex, + TopoDS_Wire, +) + +def assert_shape_not_null(shp: TopoDS_Shape) -> None: ... +def assert_isdone(inst: Any, message: str) -> None: ... +def point_list_to_TColgp_Array1OfPnt(li: List[gp_Pnt]) -> TColgp_Array1OfPnt: ... +def make_vertex(*args: Union[gp_Pnt, float]) -> TopoDS_Vertex: ... +def make_edge(*args: Any) -> TopoDS_Edge: ... +def make_edge2d(*args: Any) -> TopoDS_Edge: ... +def make_wire(*args: Union[List[TopoDS_Edge], TopoDS_Edge]) -> TopoDS_Wire: ... +def points_to_bspline(pnts: List[gp_Pnt]) -> Geom_BSplineCurve: ... +def edge_to_bezier( + topods_edge: TopoDS_Edge, +) -> Tuple[bool, Geom_BezierCurve, int]: ... +def make_n_sided( + edges: List[TopoDS_Edge], continuity: GeomAbs_Shape = ... +) -> TopoDS_Face: ... +def make_face(*args: Union[TopoDS_Wire, Geom_Surface]) -> TopoDS_Face: ... +def get_aligned_boundingbox( + shape: TopoDS_Shape, tol: float = 1e-06, optimal_BB: bool = True +) -> Tuple[gp_Pnt, List[float], TopoDS_Shape]: ... +def get_oriented_boundingbox( + shape: TopoDS_Shape, optimal_OBB: bool = True +) -> Tuple[gp_Pnt, List[float], TopoDS_Shape]: ... +def midpoint(point_A: gp_Pnt, point_B: gp_Pnt) -> gp_Pnt: ... +def center_boundingbox(shape: TopoDS_Shape) -> gp_Pnt: ... +def get_boundingbox( + shape: TopoDS_Shape, tol: float = 1e-06, use_mesh: bool = True +) -> Tuple[float, float, float, float, float, float]: ... +def translate_shp( + shp: TopoDS_Shape, vec: gp_Vec, copy: bool = False +) -> TopoDS_Shape: ... +def rotate_shape( + shape: TopoDS_Shape, axis: gp_Ax1, angle: float, unite: str = "deg" +) -> TopoDS_Shape: ... +def rotate_shp_3_axis( + shape: TopoDS_Shape, rx: float, ry: float, rz: float, unity: str = "deg" +) -> TopoDS_Shape: ... +def scale_shape( + shape: TopoDS_Shape, fx: float, fy: float, fz: float +) -> TopoDS_Shape: ... +def make_extrusion( + face: TopoDS_Face, length: float, vector: gp_Vec = None +) -> TopoDS_Shape: ... +def recognize_face(topods_face: TopoDS_Face) -> Tuple[str, gp_Pnt, gp_Dir]: ... +def measure_shape_volume(shape: TopoDS_Shape) -> float: ... +def measure_shape_mass_center_of_gravity( + shape: TopoDS_Shape, +) -> Tuple[gp_Pnt, float, str]: ... diff --git a/src/Extend/TopologyUtils.py b/src/Extend/TopologyUtils.py index 22483c142..d0cbad9f9 100644 --- a/src/Extend/TopologyUtils.py +++ b/src/Extend/TopologyUtils.py @@ -17,7 +17,7 @@ ##You should have received a copy of the GNU Lesser General Public License ##along with pythonOCC. If not, see . -from typing import Any, Iterable, Iterator, List, Optional, Tuple +from typing import Any, Dict, Iterable, Iterator, List, Optional, Tuple from OCC.Core.BRep import BRep_Tool, BRep_Builder from OCC.Core.BRepTools import BRepTools_WireExplorer @@ -68,27 +68,49 @@ ) from OCC.Core.BRepAdaptor import BRepAdaptor_Curve +# Available discretization algorithms for edges and wires +DISCRETIZATION_ALGORITHMS = { + "UniformAbscissa": GCPnts_UniformAbscissa, + "QuasiUniformDeflection": GCPnts_QuasiUniformDeflection, + "UniformDeflection": GCPnts_UniformDeflection, +} + def _number_of_topo(iterable: Iterable) -> int: + """Counts the number of items in an iterable.""" return sum(1 for _ in iterable) def ordered_vertices_from_wire(wire: TopoDS_Wire) -> Iterator[TopoDS_Vertex]: + """ + Get an iterator over the vertices of a wire in connection order. + :param wire: The wire to explore. + :return: An iterator of vertices. + """ wire_exp = WireExplorer(wire) return wire_exp.ordered_vertices() def ordered_edges_from_wire(wire: TopoDS_Wire) -> Iterator[TopoDS_Edge]: + """ + Get an iterator over the edges of a wire in connection order. + :param wire: The wire to explore. + :return: An iterator of edges. + """ wire_exp = WireExplorer(wire) return wire_exp.ordered_edges() class WireExplorer: """ - Wire traversal + A class to explore a TopoDS_Wire, providing access to its vertices and edges in order. """ def __init__(self, wire: TopoDS_Wire) -> None: + """ + Initializes the WireExplorer. + :param wire: The wire to explore. + """ if not isinstance(wire, TopoDS_Wire): raise AssertionError("not a TopoDS_Wire") self.wire = wire @@ -96,10 +118,16 @@ def __init__(self, wire: TopoDS_Wire) -> None: self.done = False def _reinitialize(self) -> None: + """Re-initializes the underlying BRepTools_WireExplorer.""" self.wire_explorer = BRepTools_WireExplorer(self.wire) self.done = False def _loop_topo(self, edges: Optional[bool] = True) -> Iterator[Any]: + """ + Internal loop to traverse the wire's topology. + :param edges: If True, iterates over edges, otherwise iterates over vertices. + :return: An iterator of edges or vertices. + """ if self.done: self._reinitialize() topology_type = Edge if edges else Vertex @@ -119,45 +147,38 @@ def _loop_topo(self, edges: Optional[bool] = True) -> Iterator[Any]: return iter(seq) def ordered_edges(self) -> Iterator[TopoDS_Edge]: + """ + Returns an iterator over the edges of the wire in connection order. + """ return self._loop_topo(edges=True) def ordered_vertices(self) -> Iterator[TopoDS_Vertex]: + """ + Returns an iterator over the vertices of the wire in connection order. + """ return self._loop_topo(edges=False) class TopologyExplorer: """ - Topology traversal + A class to explore the topology of a TopoDS_Shape. + This class allows for traversing the topological hierarchy of a shape, + providing methods to access sub-shapes like faces, edges, and vertices. + It can also be used to find relationships between different topological entities, + for example, finding all faces connected to a specific edge. """ def __init__( self, my_shape: TopoDS_Shape, ignore_orientation: Optional[bool] = True ) -> None: """ - implements topology traversal from any TopoDS_Shape - this class lets you find how various topological entities are connected from one to another - find the faces connected to an edge, find the vertices this edge is made from, get all faces connected to - a vertex, and find out how many topological elements are connected from a source - - *note* when traversing TopoDS_Wire entities, its advised to use the specialized - ``WireExplorer`` class, which will return the vertices / edges in the expected order - - :param my_shape: the shape which topology will be traversed - - :param ignore_orientation: filter out TopoDS_* entities of similar TShape but different Orientation - - for instance, a cube has 24 edges, 4 edges for each of 6 faces - - that results in 48 vertices, while there are only 8 vertices that have a unique - geometric coordinate - - in certain cases ( computing a graph from the topology ) its preferable to return - topological entities that share similar geometry, though differ in orientation - by setting the ``ignore_orientation`` variable - to True, in case of a cube, just 12 edges and only 8 vertices will be returned - - for further reference see TopoDS_Shape IsEqual / IsSame methods - + Initializes the TopologyExplorer. + :param my_shape: The shape which topology will be traversed. + :param ignore_orientation: If True, filters out topological entities + that have the same geometry but different orientations. For example, + a cube has 12 unique geometric edges, but 24 edges when considering + orientation. Setting this to True will return 12 edges. + Defaults to True. """ self.my_shape = my_shape self.ignore_orientation = ignore_orientation @@ -182,10 +203,13 @@ def _loop_topo( topology_type_to_avoid=None, ) -> Iterator[Any]: """ - this could be a faces generator for a python TopoShape class - that way you can just do: - for face in srf.faces: - processFace(face) + Generic method to iterate over sub-shapes of a given type. + :param topology_type: The type of sub-shapes to iterate over (e.g., TopAbs_FACE). + :param topological_entity: The shape to explore. If None, explores the shape + provided in the constructor. Defaults to None. + :param topology_type_to_avoid: A type of sub-shape to avoid during traversal. + Defaults to None. + :return: An iterator of the found sub-shapes. """ topo_types = { TopAbs_VERTEX: TopoDS_Vertex, @@ -244,90 +268,110 @@ def _loop_topo( def faces(self) -> Iterator[TopoDS_Face]: """ - loops over all faces + Returns an iterator over all faces in the shape. """ return self._loop_topo(TopAbs_FACE) def number_of_faces(self) -> int: + """Returns the number of faces in the shape.""" return _number_of_topo(self.faces()) def vertices(self) -> Iterator[TopoDS_Vertex]: """ - loops over all vertices + Returns an iterator over all vertices in the shape. """ return self._loop_topo(TopAbs_VERTEX) def number_of_vertices(self) -> int: + """Returns the number of vertices in the shape.""" return _number_of_topo(self.vertices()) def edges(self) -> Iterator[TopoDS_Edge]: """ - loops over all edges + Returns an iterator over all edges in the shape. """ return self._loop_topo(TopAbs_EDGE) def number_of_edges(self) -> int: + """Returns the number of edges in the shape.""" return _number_of_topo(self.edges()) def wires(self) -> Iterator[TopoDS_Wire]: """ - loops over all wires + Returns an iterator over all wires in the shape. """ return self._loop_topo(TopAbs_WIRE) def number_of_wires(self) -> int: + """Returns the number of wires in the shape.""" return _number_of_topo(self.wires()) def shells(self) -> Iterator[TopoDS_Shell]: """ - loops over all shells + Returns an iterator over all shells in the shape. """ return self._loop_topo(TopAbs_SHELL, None) def number_of_shells(self) -> int: + """Returns the number of shells in the shape.""" return _number_of_topo(self.shells()) def solids(self) -> Iterator[TopoDS_Solid]: """ - loops over all solids + Returns an iterator over all solids in the shape. """ return self._loop_topo(TopAbs_SOLID, None) def number_of_solids(self) -> int: + """Returns the number of solids in the shape.""" return _number_of_topo(self.solids()) def comp_solids(self) -> Iterator[TopoDS_CompSolid]: """ - loops over all compound solids + Returns an iterator over all composite solids in the shape. """ return self._loop_topo(TopAbs_COMPSOLID) def number_of_comp_solids(self) -> int: + """Returns the number of composite solids in the shape.""" return _number_of_topo(self.comp_solids()) def compounds(self) -> Iterator[TopoDS_Compound]: """ - loops over all compounds + Returns an iterator over all compounds in the shape. """ return self._loop_topo(TopAbs_COMPOUND) def number_of_compounds(self) -> int: + """Returns the number of compounds in the shape.""" return _number_of_topo(self.compounds()) def number_of_ordered_vertices_from_wire(self, wire: TopoDS_Wire) -> int: + """ + Returns the number of vertices in a wire, in connection order. + :param wire: The wire to query. + :return: The number of ordered vertices. + """ return _number_of_topo(ordered_vertices_from_wire(wire)) def number_of_ordered_edges_from_wire(self, wire: TopoDS_Wire) -> int: + """ + Returns the number of edges in a wire, in connection order. + :param wire: The wire to query. + :return: The number of ordered edges. + """ return _number_of_topo(ordered_edges_from_wire(wire)) def _map_shapes_and_ancestors( self, topology_type_1, topology_type_2, topological_entity ): """ - using the same method - @param topoTypeA: - @param topoTypeB: - @param topological_entity: + Maps shapes to their ancestors of a different type. + For example, can be used to find all faces (ancestors, type 2) that an edge (shape, type 1) belongs to. + :param topology_type_1: The TopAbs_ShapeEnum of the entity. + :param topology_type_2: The TopAbs_ShapeEnum of the ancestors to find. + :param topological_entity: The topological entity itself. + :return: An iterator of the ancestor shapes. """ topo_set = set() topo_set_hash_codes = {} @@ -368,16 +412,32 @@ def _map_shapes_and_ancestors( topo_set.add(topo_entity) topology_iterator.Next() + def get_topology_summary(self) -> Dict[str, int]: + """ + Returns a dictionary with a summary of the number of topological elements in the shape. + """ + return { + "number_of_vertices": self.number_of_vertices(), + "number_of_edges": self.number_of_edges(), + "number_of_wires": self.number_of_wires(), + "number_of_faces": self.number_of_faces(), + "number_of_shells": self.number_of_shells(), + "number_of_solids": self.number_of_solids(), + "number_of_compounds": self.number_of_compounds(), + "number_of_comp_solids": self.number_of_comp_solids(), + } + def _number_shapes_ancestors( self, topology_type_1, topology_type_2, topological_entity ): - """returns the number of shape ancestors - If you want to know how many edges a faces has: - _number_shapes_ancestors(self, TopAbs_EDGE, TopAbs_FACE, edg) - will return the number of edges a faces has - @param topoTypeA: - @param topoTypeB: - @param topological_entity: + """ + Returns the number of ancestors of a given type for a topological entity. + For example, to find out how many faces an edge belongs to: + _number_shapes_ancestors(TopAbs_EDGE, TopAbs_FACE, edge) + :param topology_type_1: The TopAbs_ShapeEnum of the entity. + :param topology_type_2: The TopAbs_ShapeEnum of the ancestors to count. + :param topological_entity: The topological entity itself. + :return: The number of ancestor shapes. """ topo_set = set() _map = TopTools_IndexedDataMapOfShapeListOfShape() @@ -396,117 +456,302 @@ def _number_shapes_ancestors( # ====================================================================== # EDGE <-> FACE # ====================================================================== - def faces_from_edge(self, edge: TopoDS_Edge): + def faces_from_edge(self, edge: TopoDS_Edge) -> Iterator[TopoDS_Face]: """ - - :param edge: - :return: + Get the faces connected to an edge. + :param edge: The edge to query. + :return: An iterator of faces connected to the edge. """ return self._map_shapes_and_ancestors(TopAbs_EDGE, TopAbs_FACE, edge) def number_of_faces_from_edge(self, edge: TopoDS_Edge) -> int: """ - - :param edge: - :return: + Get the number of faces connected to an edge. + :param edge: The edge to query. + :return: The number of faces connected to the edge. """ return self._number_shapes_ancestors(TopAbs_EDGE, TopAbs_FACE, edge) def edges_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Edge]: """ - - :param face: - :return: + Get the edges that make up a face. + :param face: The face to query. + :return: An iterator of edges. """ return self._loop_topo(TopAbs_EDGE, face) def number_of_edges_from_face(self, face: TopoDS_Face) -> int: + """ + Get the number of edges that make up a face. + :param face: The face to query. + :return: The number of edges. + """ return sum(1 for _ in self._loop_topo(TopAbs_EDGE, face)) # ====================================================================== # VERTEX <-> EDGE # ====================================================================== def vertices_from_edge(self, edge: TopoDS_Edge) -> Iterator[TopoDS_Vertex]: + """ + Get the vertices that make up an edge. + :param edge: The edge to query. + :return: An iterator of vertices. + """ return self._loop_topo(TopAbs_VERTEX, edge) def number_of_vertices_from_edge(self, edge: TopoDS_Edge) -> int: + """ + Get the number of vertices that make up an edge. + :param edge: The edge to query. + :return: The number of vertices. + """ return sum(1 for _ in self._loop_topo(TopAbs_VERTEX, edge)) - def edges_from_vertex(self, vertex): + def edges_from_vertex(self, vertex: TopoDS_Vertex) -> Iterator[TopoDS_Edge]: + """ + Get the edges connected to a vertex. + :param vertex: The vertex to query. + :return: An iterator of edges connected to the vertex. + """ return self._map_shapes_and_ancestors(TopAbs_VERTEX, TopAbs_EDGE, vertex) def number_of_edges_from_vertex(self, vertex: TopoDS_Vertex) -> int: + """ + Get the number of edges connected to a vertex. + :param vertex: The vertex to query. + :return: The number of edges connected to the vertex. + """ return self._number_shapes_ancestors(TopAbs_VERTEX, TopAbs_EDGE, vertex) # ====================================================================== # WIRE <-> EDGE # ====================================================================== def edges_from_wire(self, wire: TopoDS_Wire) -> Iterator[TopoDS_Edge]: + """ + Get the edges that make up a wire. + :param wire: The wire to query. + :return: An iterator of edges. + """ return self._loop_topo(TopAbs_EDGE, wire) def number_of_edges_from_wire(self, wire: TopoDS_Wire) -> int: + """ + Get the number of edges that make up a wire. + :param wire: The wire to query. + :return: The number of edges. + """ return sum(1 for _ in self._loop_topo(TopAbs_EDGE, wire)) - def wires_from_edge(self, edg): + def wires_from_edge(self, edg: TopoDS_Edge) -> Iterator[TopoDS_Wire]: + """ + Get the wires an edge belongs to. + :param edg: The edge to query. + :return: An iterator of wires. + """ return self._map_shapes_and_ancestors(TopAbs_EDGE, TopAbs_WIRE, edg) - def wires_from_vertex(self, edg): + def wires_from_vertex(self, edg: TopoDS_Vertex) -> Iterator[TopoDS_Wire]: + """ + Get the wires connected to a vertex. + :param edg: The vertex to query. + :return: An iterator of wires. + """ return self._map_shapes_and_ancestors(TopAbs_VERTEX, TopAbs_WIRE, edg) - def number_of_wires_from_edge(self, edg): + def number_of_wires_from_edge(self, edg: TopoDS_Edge) -> int: + """ + Get the number of wires an edge belongs to. + :param edg: The edge to query. + :return: The number of wires. + """ return self._number_shapes_ancestors(TopAbs_EDGE, TopAbs_WIRE, edg) # ====================================================================== # WIRE <-> FACE # ====================================================================== def wires_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Wire]: + """ + Get the wires that make up a face. + :param face: The face to query. + :return: An iterator of wires. + """ return self._loop_topo(TopAbs_WIRE, face) def number_of_wires_from_face(self, face: TopoDS_Face) -> int: + """ + Get the number of wires that make up a face. + :param face: The face to query. + :return: The number of wires. + """ return sum(1 for _ in self._loop_topo(TopAbs_WIRE, face)) - def faces_from_wire(self, wire): + def faces_from_wire(self, wire: TopoDS_Wire) -> Iterator[TopoDS_Face]: + """ + Get the faces a wire belongs to. + :param wire: The wire to query. + :return: An iterator of faces. + """ return self._map_shapes_and_ancestors(TopAbs_WIRE, TopAbs_FACE, wire) - def number_of_faces_from_wires(self, wire): + def number_of_faces_from_wires(self, wire: TopoDS_Wire) -> int: + """ + Get the number of faces a wire belongs to. + :param wire: The wire to query. + :return: The number of faces. + """ return self._number_shapes_ancestors(TopAbs_WIRE, TopAbs_FACE, wire) # ====================================================================== # VERTEX <-> FACE # ====================================================================== - def faces_from_vertex(self, vertex): + def faces_from_vertex(self, vertex: TopoDS_Vertex) -> Iterator[TopoDS_Face]: + """ + Get the faces connected to a vertex. + :param vertex: The vertex to query. + :return: An iterator of faces. + """ return self._map_shapes_and_ancestors(TopAbs_VERTEX, TopAbs_FACE, vertex) - def number_of_faces_from_vertex(self, vertex): + def number_of_faces_from_vertex(self, vertex: TopoDS_Vertex) -> int: + """ + Get the number of faces connected to a vertex. + :param vertex: The vertex to query. + :return: The number of faces. + """ return self._number_shapes_ancestors(TopAbs_VERTEX, TopAbs_FACE, vertex) def vertices_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Vertex]: + """ + Get the vertices that make up a face. + :param face: The face to query. + :return: An iterator of vertices. + """ return self._loop_topo(TopAbs_VERTEX, face) def number_of_vertices_from_face(self, face: TopoDS_Face) -> int: + """ + Get the number of vertices that make up a face. + :param face: The face to query. + :return: The number of vertices. + """ return sum(1 for _ in self._loop_topo(TopAbs_VERTEX, face)) # ====================================================================== # FACE <-> SOLID # ====================================================================== - def solids_from_face(self, face): + def solids_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Solid]: + """ + Get the solids a face belongs to. + :param face: The face to query. + :return: An iterator of solids. + """ return self._map_shapes_and_ancestors(TopAbs_FACE, TopAbs_SOLID, face) - def number_of_solids_from_face(self, face): + def number_of_solids_from_face(self, face: TopoDS_Face) -> int: + """ + Get the number of solids a face belongs to. + :param face: The face to query. + :return: The number of solids. + """ return self._number_shapes_ancestors(TopAbs_FACE, TopAbs_SOLID, face) def faces_from_solids(self, solid: TopoDS_Solid) -> Iterator[TopoDS_Face]: + """ + Get the faces that make up a solid. + :param solid: The solid to query. + :return: An iterator of faces. + """ return self._loop_topo(TopAbs_FACE, solid) def number_of_faces_from_solids(self, solid: TopoDS_Solid) -> int: + """ + Get the number of faces that make up a solid. + :param solid: The solid to query. + :return: The number of faces. + """ return sum(1 for _ in self._loop_topo(TopAbs_FACE, solid)) + # ====================================================================== + # FACE <-> SHELL + # ====================================================================== + def shells_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Shell]: + """ + Get the shells a face belongs to. + :param face: The face to query. + :return: An iterator of shells. + """ + return self._map_shapes_and_ancestors(TopAbs_FACE, TopAbs_SHELL, face) + + def number_of_shells_from_face(self, face: TopoDS_Face) -> int: + """ + Get the number of shells a face belongs to. + :param face: The face to query. + :return: The number of shells. + """ + return self._number_shapes_ancestors(TopAbs_FACE, TopAbs_SHELL, face) + + def faces_from_shell(self, shell: TopoDS_Shell) -> Iterator[TopoDS_Face]: + """ + Get the faces that make up a shell. + :param shell: The shell to query. + :return: An iterator of faces. + """ + return self._loop_topo(TopAbs_FACE, shell) + + def number_of_faces_from_shell(self, shell: TopoDS_Shell) -> int: + """ + Get the number of faces that make up a shell. + :param shell: The shell to query. + :return: The number of faces. + """ + return sum(1 for _ in self._loop_topo(TopAbs_FACE, shell)) + + # ====================================================================== + # SHELL <-> SOLID + # ====================================================================== + def solids_from_shell(self, shell: TopoDS_Shell) -> Iterator[TopoDS_Solid]: + """ + Get the solids a shell belongs to. + :param shell: The shell to query. + :return: An iterator of solids. + """ + return self._map_shapes_and_ancestors(TopAbs_SHELL, TopAbs_SOLID, shell) + + def number_of_solids_from_shell(self, shell: TopoDS_Shell) -> int: + """ + Get the number of solids a shell belongs to. + :param shell: The shell to query. + :return: The number of solids. + """ + return self._number_shapes_ancestors(TopAbs_FACE, TopAbs_SOLID, shell) + + def shells_from_solid(self, solid: TopoDS_Solid) -> Iterator[TopoDS_Shell]: + """ + Get the shells that make up a solid. + :param solid: The solid to query. + :return: An iterator of shells. + """ + return self._loop_topo(TopAbs_SHELL, solid) + + def number_of_shells_from_solid(self, solid: TopoDS_Solid) -> int: + """ + Get the number of shells that make up a solid. + :param solid: The solid to query. + :return: The number of shells. + """ + return sum(1 for _ in self._loop_topo(TopAbs_SHELL, solid)) + def dump_topology_to_string( shape: TopoDS_Shape, level: Optional[int] = 0, buffer: Optional[str] = "" ) -> None: """ - Return the details of an object from the top down + Prints the topological structure of a shape to the console. + Recursively iterates through the shape's sub-shapes and prints their type and hash. + For vertices, it also prints their coordinates. + :param shape: The shape to dump. + :param level: The current recursion level, used for indentation. + :param buffer: A string buffer (not currently used). """ brt = BRep_Tool() s = shape.ShapeType() @@ -529,29 +774,61 @@ def dump_topology_to_string( def discretize_wire( - a_wire: TopoDS_Wire, deflection: Optional[int] = 0.5 + a_wire: TopoDS_Wire, + deflection: float = 0.5, + algorithm: str = "QuasiUniformDeflection", ) -> List[gp_Pnt]: - """Returns a set of points""" + """ + Discretizes a wire into a list of points. + This function takes a TopoDS_Wire and generates a sequence of points + that approximate the wire's geometry. The precision of the discretization + is controlled by the `deflection` parameter. + :param a_wire: The wire to discretize. + :param deflection: The maximum allowed deviation between the wire and the + discretized points. A smaller value results in a more accurate + approximation and more points. Defaults to 0.5. + :param algorithm: The discretization algorithm to use. Can be one of + "UniformAbscissa", "QuasiUniformDeflection", or "UniformDeflection". + Defaults to "QuasiUniformDeflection". + :return: A list of gp_Pnt objects representing the discretized wire. + """ if not is_wire(a_wire): raise AssertionError( "You must provide a TopoDS_Wire to the discretize_wire function." ) + + if algorithm not in DISCRETIZATION_ALGORITHMS: + raise AssertionError( + f"Algorithm must be one of {list(DISCRETIZATION_ALGORITHMS.keys())}" + ) + wire_explorer = WireExplorer(a_wire) wire_pnts = [] # loop over ordered edges for edg in wire_explorer.ordered_edges(): - edg_pnts = discretize_edge(edg, deflection) - wire_pnts += edg_pnts + edg_pnts = discretize_edge(edg, deflection, algorithm) + wire_pnts.extend(edg_pnts) return wire_pnts def discretize_edge( - a_edge: TopoDS_Edge, deflection=0.2, algorithm="QuasiUniformDeflection" -): - """Take a TopoDS_Edge and returns a list of points - The more deflection is small, the more the discretization is precise, - i.e. the more points you get in the returned points - algorithm: to choose in ["UniformAbscissa", "QuasiUniformDeflection"] + a_edge: TopoDS_Edge, + deflection: float = 0.2, + algorithm: str = "QuasiUniformDeflection", +) -> List[Tuple[float, float, float]]: + """ + Discretizes an edge into a list of points. + This function takes a TopoDS_Edge and generates a sequence of points + that approximate the edge's geometry. The precision of the discretization + is controlled by the `deflection` parameter. + :param a_edge: The edge to discretize. + :param deflection: The maximum allowed deviation between the edge and the + discretized points. A smaller value results in a more accurate + approximation and more points. Defaults to 0.2. + :param algorithm: The discretization algorithm to use. Can be one of + "UniformAbscissa", "QuasiUniformDeflection", or "UniformDeflection". + Defaults to "QuasiUniformDeflection". + :return: A list of gp_Pnt objects representing the discretized edge. """ if not is_edge(a_edge): raise AssertionError( @@ -562,22 +839,21 @@ def discretize_edge( "Warning : TopoDS_Edge is null. discretize_edge will return an empty list of points." ) return [] + if algorithm not in DISCRETIZATION_ALGORITHMS: + raise AssertionError( + f"Algorithm must be one of {list(DISCRETIZATION_ALGORITHMS.keys())}" + ) + curve_adaptator = BRepAdaptor_Curve(a_edge) first = curve_adaptator.FirstParameter() last = curve_adaptator.LastParameter() - if algorithm == "QuasiUniformDeflection": - discretizer = GCPnts_QuasiUniformDeflection() - elif algorithm == "UniformAbscissa": - discretizer = GCPnts_UniformAbscissa() - elif algorithm == "UniformDeflection": - discretizer = GCPnts_UniformDeflection() - else: - raise AssertionError("Unknown algorithm") + discretizer_class = DISCRETIZATION_ALGORITHMS[algorithm] + discretizer = discretizer_class() discretizer.Initialize(curve_adaptator, deflection, first, last) if not discretizer.IsDone(): - raise AssertionError("Discretizer not done.") + raise RuntimeError("Discretizer not done.") if discretizer.NbPoints() <= 0: raise AssertionError("Discretizer nb points not > 0.") @@ -596,55 +872,54 @@ def discretize_edge( # TopoDS_Shape type utils # def is_vertex(shape: TopoDS_Shape) -> bool: - if not hasattr(shape, "ShapeType"): - return False - return shape.ShapeType() == TopAbs_VERTEX + """Checks if a shape is a TopoDS_Vertex.""" + return hasattr(shape, "ShapeType") and shape.ShapeType() == TopAbs_VERTEX -def is_solid(shape: TopoDS_Shape) -> bool: - if not hasattr(shape, "ShapeType"): - return False - return shape.ShapeType() == TopAbs_SOLID +def is_edge(shape: TopoDS_Shape) -> bool: + """Checks if a shape is a TopoDS_Edge.""" + return hasattr(shape, "ShapeType") and shape.ShapeType() == TopAbs_EDGE -def is_edge(shape: TopoDS_Shape) -> bool: - if not hasattr(shape, "ShapeType"): - return False - return shape.ShapeType() == TopAbs_EDGE +def is_wire(shape: TopoDS_Shape) -> bool: + """Checks if a shape is a TopoDS_Wire.""" + return hasattr(shape, "ShapeType") and shape.ShapeType() == TopAbs_WIRE def is_face(shape: TopoDS_Shape) -> bool: + """Checks if a shape is a TopoDS_Face.""" if not hasattr(shape, "ShapeType"): return False return shape.ShapeType() == TopAbs_FACE def is_shell(shape: TopoDS_Shape) -> bool: - if not hasattr(shape, "ShapeType"): - return False - return shape.ShapeType() == TopAbs_SHELL + """Checks if a shape is a TopoDS_Shell.""" + return hasattr(shape, "ShapeType") and shape.ShapeType() == TopAbs_SHELL -def is_wire(shape: TopoDS_Shape) -> bool: +def is_solid(shape: TopoDS_Shape) -> bool: + """Checks if a shape is a TopoDS_Solid.""" if not hasattr(shape, "ShapeType"): return False - return shape.ShapeType() == TopAbs_WIRE + return shape.ShapeType() == TopAbs_SOLID def is_compound(shape: TopoDS_Shape) -> bool: - if not hasattr(shape, "ShapeType"): - return False - return shape.ShapeType() == TopAbs_COMPOUND + """Checks if a shape is a TopoDS_Compound.""" + return hasattr(shape, "ShapeType") and shape.ShapeType() == TopAbs_COMPOUND def is_compsolid(shape: TopoDS_Shape) -> bool: - if not hasattr(shape, "ShapeType"): - return False - return shape.ShapeType() == TopAbs_COMPSOLID + """Checks if a shape is a TopoDS_CompSolid.""" + return hasattr(shape, "ShapeType") and shape.ShapeType() == TopAbs_COMPSOLID def get_type_as_string(shape: TopoDS_Shape) -> str: - """just get the type string, remove TopAbs_ and lowercas all ending letters""" + """ + Returns the type of a TopoDS_Shape as a string. + For example, for a TopoDS_Shape of type TopAbs_VERTEX, it returns "Vertex". + """ types = { TopAbs_VERTEX: "Vertex", TopAbs_WIRE: "Wire", @@ -654,7 +929,7 @@ def get_type_as_string(shape: TopoDS_Shape) -> str: TopAbs_COMPOUND: "Compound", TopAbs_COMPSOLID: "CompSolid", } - return types[shape.ShapeType()] + return types.get(shape.ShapeType(), "Unknown") def get_sorted_hlr_edges( @@ -663,7 +938,18 @@ def get_sorted_hlr_edges( direction: Optional[gp_Dir] = None, export_hidden_edges: Optional[bool] = True, ) -> Tuple[List, List]: - """Return hidden and visible edges as two lists of edges""" + """ + Performs Hidden Line Removal (HLR) on a shape and returns the visible and hidden edges. + :param shape: The shape to process. + :param position: The viewpoint position for the HLR algorithm. + Defaults to the origin (0, 0, 0). + :param direction: The view direction for the HLR algorithm. + Defaults to the Z-axis (0, 0, 1). + :param export_hidden_edges: If True, the hidden edges are also computed and returned. + Defaults to True. + :return: A tuple containing two lists: the first list contains the visible edges, + and the second list contains the hidden edges. + """ if position is None: position = gp_Pnt() if not isinstance(position, gp_Pnt): @@ -692,9 +978,6 @@ def get_sorted_hlr_edges( visible += list(TopologyExplorer(visible_smooth_edges_as_compound).edges()) if visible_contour_edges_as_compound := hlr_shapes.OutLineVCompound(): visible += list(TopologyExplorer(visible_contour_edges_as_compound).edges()) - # visible_isoparameter_edges_as_compound = hlr_shapes.IsoLineVCompound() - # if visible_isoparameter_edges_as_compound: - # visible += list(TopologyExplorer(visible_isoparameter_edges_as_compound).edges()) # hidden edges hidden = [] if export_hidden_edges: @@ -709,9 +992,13 @@ def get_sorted_hlr_edges( def list_of_shapes_to_compound( list_of_shapes: List[TopoDS_Shape], ) -> Tuple[TopoDS_Compound, bool]: - """takes a list of shape in input, gather all shapes into one compound - returns the compound and a boolean, True if all shapes were added to the compound, - False otherwise + """ + Takes a list of shapes and gathers them into a single compound shape. + :param list_of_shapes: A list of TopoDS_Shape objects. + :return: A tuple containing: + - The resulting TopoDS_Compound. + - A boolean that is True if all shapes were successfully added to the compound, + and False if any of the shapes were null and could not be added. """ all_shapes_converted = True the_compound = TopoDS_Compound() diff --git a/src/Extend/TopologyUtils.pyi b/src/Extend/TopologyUtils.pyi new file mode 100644 index 000000000..2ad172923 --- /dev/null +++ b/src/Extend/TopologyUtils.pyi @@ -0,0 +1,137 @@ +from typing import Dict, Iterator, List, Optional, Tuple, Type, Union + +from OCC.Core.BRepTools import BRepTools_WireExplorer +from OCC.Core.GCPnts import ( + GCPnts_QuasiUniformDeflection, + GCPnts_UniformAbscissa, + GCPnts_UniformDeflection, +) +from OCC.Core.gp import gp_Dir, gp_Pnt +from OCC.Core.TopAbs import TopAbs_ShapeEnum +from OCC.Core.TopoDS import ( + TopoDS_CompSolid, + TopoDS_Compound, + TopoDS_Edge, + TopoDS_Face, + TopoDS_Shape, + TopoDS_Shell, + TopoDS_Solid, + TopoDS_Vertex, + TopoDS_Wire, +) + +DISCRETIZATION_ALGORITHMS: Dict[ + str, + Type[ + Union[ + GCPnts_UniformAbscissa, + GCPnts_QuasiUniformDeflection, + GCPnts_UniformDeflection, + ] + ], +] + +def ordered_vertices_from_wire(wire: TopoDS_Wire) -> Iterator[TopoDS_Vertex]: ... +def ordered_edges_from_wire(wire: TopoDS_Wire) -> Iterator[TopoDS_Edge]: ... + +class WireExplorer: + wire: TopoDS_Wire + wire_explorer: BRepTools_WireExplorer + done: bool + + def __init__(self, wire: TopoDS_Wire) -> None: ... + def ordered_edges(self) -> Iterator[TopoDS_Edge]: ... + def ordered_vertices(self) -> Iterator[TopoDS_Vertex]: ... + +class TopologyExplorer: + my_shape: TopoDS_Shape + ignore_orientation: bool + topology_factory: Dict[TopAbs_ShapeEnum, Type[TopoDS_Shape]] + + def __init__( + self, my_shape: TopoDS_Shape, ignore_orientation: Optional[bool] = True + ) -> None: ... + def faces(self) -> Iterator[TopoDS_Face]: ... + def number_of_faces(self) -> int: ... + def vertices(self) -> Iterator[TopoDS_Vertex]: ... + def number_of_vertices(self) -> int: ... + def edges(self) -> Iterator[TopoDS_Edge]: ... + def number_of_edges(self) -> int: ... + def wires(self) -> Iterator[TopoDS_Wire]: ... + def number_of_wires(self) -> int: ... + def shells(self) -> Iterator[TopoDS_Shell]: ... + def number_of_shells(self) -> int: ... + def solids(self) -> Iterator[TopoDS_Solid]: ... + def number_of_solids(self) -> int: ... + def comp_solids(self) -> Iterator[TopoDS_CompSolid]: ... + def number_of_comp_solids(self) -> int: ... + def compounds(self) -> Iterator[TopoDS_Compound]: ... + def number_of_compounds(self) -> int: ... + def number_of_ordered_vertices_from_wire(self, wire: TopoDS_Wire) -> int: ... + def number_of_ordered_edges_from_wire(self, wire: TopoDS_Wire) -> int: ... + def get_topology_summary(self) -> Dict[str, int]: ... + def faces_from_edge(self, edge: TopoDS_Edge) -> Iterator[TopoDS_Face]: ... + def number_of_faces_from_edge(self, edge: TopoDS_Edge) -> int: ... + def edges_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Edge]: ... + def number_of_edges_from_face(self, face: TopoDS_Face) -> int: ... + def vertices_from_edge(self, edge: TopoDS_Edge) -> Iterator[TopoDS_Vertex]: ... + def number_of_vertices_from_edge(self, edge: TopoDS_Edge) -> int: ... + def edges_from_vertex(self, vertex: TopoDS_Vertex) -> Iterator[TopoDS_Edge]: ... + def number_of_edges_from_vertex(self, vertex: TopoDS_Vertex) -> int: ... + def edges_from_wire(self, wire: TopoDS_Wire) -> Iterator[TopoDS_Edge]: ... + def number_of_edges_from_wire(self, wire: TopoDS_Wire) -> int: ... + def wires_from_edge(self, edg: TopoDS_Edge) -> Iterator[TopoDS_Wire]: ... + def wires_from_vertex(self, edg: TopoDS_Vertex) -> Iterator[TopoDS_Wire]: ... + def number_of_wires_from_edge(self, edg: TopoDS_Edge) -> int: ... + def wires_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Wire]: ... + def number_of_wires_from_face(self, face: TopoDS_Face) -> int: ... + def faces_from_wire(self, wire: TopoDS_Wire) -> Iterator[TopoDS_Face]: ... + def number_of_faces_from_wires(self, wire: TopoDS_Wire) -> int: ... + def faces_from_vertex(self, vertex: TopoDS_Vertex) -> Iterator[TopoDS_Face]: ... + def number_of_faces_from_vertex(self, vertex: TopoDS_Vertex) -> int: ... + def vertices_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Vertex]: ... + def number_of_vertices_from_face(self, face: TopoDS_Face) -> int: ... + def solids_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Solid]: ... + def number_of_solids_from_face(self, face: TopoDS_Face) -> int: ... + def faces_from_solids(self, solid: TopoDS_Solid) -> Iterator[TopoDS_Face]: ... + def number_of_faces_from_solids(self, solid: TopoDS_Solid) -> int: ... + def shells_from_face(self, face: TopoDS_Face) -> Iterator[TopoDS_Shell]: ... + def number_of_shells_from_face(self, face: TopoDS_Face) -> int: ... + def faces_from_shell(self, shell: TopoDS_Shell) -> Iterator[TopoDS_Face]: ... + def number_of_faces_from_shell(self, shell: TopoDS_Shell) -> int: ... + def solids_from_shell(self, shell: TopoDS_Shell) -> Iterator[TopoDS_Solid]: ... + def number_of_solids_from_shell(self, shell: TopoDS_Shell) -> int: ... + def shells_from_solid(self, solid: TopoDS_Solid) -> Iterator[TopoDS_Shell]: ... + def number_of_shells_from_solid(self, solid: TopoDS_Solid) -> int: ... + +def dump_topology_to_string( + shape: TopoDS_Shape, level: Optional[int] = 0, buffer: Optional[str] = "" +) -> None: ... +def discretize_wire( + a_wire: TopoDS_Wire, + deflection: float = 0.5, + algorithm: str = "QuasiUniformDeflection", +) -> List[gp_Pnt]: ... +def discretize_edge( + a_edge: TopoDS_Edge, + deflection: float = 0.2, + algorithm: str = "QuasiUniformDeflection", +) -> List[Tuple[float, float, float]]: ... +def is_vertex(shape: TopoDS_Shape) -> bool: ... +def is_edge(shape: TopoDS_Shape) -> bool: ... +def is_wire(shape: TopoDS_Shape) -> bool: ... +def is_face(shape: TopoDS_Shape) -> bool: ... +def is_shell(shape: TopoDS_Shape) -> bool: ... +def is_solid(shape: TopoDS_Shape) -> bool: ... +def is_compound(shape: TopoDS_Shape) -> bool: ... +def is_compsolid(shape: TopoDS_Shape) -> bool: ... +def get_type_as_string(shape: TopoDS_Shape) -> str: ... +def get_sorted_hlr_edges( + shape: TopoDS_Shape, + position: Optional[gp_Pnt] = None, + direction: Optional[gp_Dir] = None, + export_hidden_edges: Optional[bool] = True, +) -> Tuple[List, List]: ... +def list_of_shapes_to_compound( + list_of_shapes: List[TopoDS_Shape], +) -> Tuple[TopoDS_Compound, bool]: ... diff --git a/src/PkgBase/__init__.py b/src/PkgBase/__init__.py index d6c5e0b7e..ef8990f6f 100644 --- a/src/PkgBase/__init__.py +++ b/src/PkgBase/__init__.py @@ -5,7 +5,7 @@ # Version number PYTHONOCC_VERSION_MAJOR = 7 PYTHONOCC_VERSION_MINOR = 9 -PYTHONOCC_VERSION_PATCH = 0 +PYTHONOCC_VERSION_PATCH = 3 # Empty for official releases, set to -dev, -rc1, etc for development releases PYTHONOCC_VERSION_DEVEL = "" diff --git a/src/SWIG_files/common/ExceptionCatcher.i b/src/SWIG_files/common/ExceptionCatcher.i index f6b50ada3..5104795b6 100644 --- a/src/SWIG_files/common/ExceptionCatcher.i +++ b/src/SWIG_files/common/ExceptionCatcher.i @@ -22,28 +22,145 @@ along with pythonOCC. If not, see . %{ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include %} %inline %{ -void process_exception(const Standard_Failure& error, const std::string& method_name, const std::string& class_name) { + +// Configuration for debugging (can be enabled/disabled) +#ifndef PYTHONOCC_DEBUG_EXCEPTIONS +#define PYTHONOCC_DEBUG_EXCEPTIONS 0 +#endif + +// Utility function to get a readable class name +std::string get_readable_class_name(const std::string& class_name) { + if (class_name.empty() || class_name == "$parentclassname") { + return "Unknown"; + } + return class_name; +} + +// Utility function to get a readable method name +std::string get_readable_method_name(const std::string& method_name) { + if (method_name.empty() || method_name == "$name") { + return "Unknown"; + } + return method_name; +} + +// Mapping OpenCASCADE exceptions to appropriate Python exceptions +PyObject* get_exception_type(const Standard_Failure& error) { + const Handle(Standard_Type)& error_type = error.DynamicType(); + const std::string type_name = error_type->Name(); + + // Specific error type mapping + if (type_name.find("OutOfRange") != std::string::npos || + type_name.find("RangeError") != std::string::npos) { + return PyExc_IndexError; + } + else if (type_name.find("OutOfMemory") != std::string::npos) { + return PyExc_MemoryError; + } + else if (type_name.find("NullObject") != std::string::npos || + type_name.find("NullValue") != std::string::npos) { + return PyExc_ValueError; + } + else if (type_name.find("TypeMismatch") != std::string::npos) { + return PyExc_TypeError; + } + else if (type_name.find("NotImplemented") != std::string::npos) { + return PyExc_NotImplementedError; + } + else if (type_name.find("NoSuchObject") != std::string::npos) { + return PyExc_KeyError; + } + else if (type_name.find("DimensionError") != std::string::npos || + type_name.find("DomainError") != std::string::npos) { + return PyExc_ValueError; + } + else if (type_name.find("NumericError") != std::string::npos || + type_name.find("Overflow") != std::string::npos || + type_name.find("Underflow") != std::string::npos) { + return PyExc_ArithmeticError; + } + else if (type_name.find("TooManyUsers") != std::string::npos) { + return PyExc_ResourceWarning; + } + + // Default to RuntimeError + return PyExc_RuntimeError; +} + +// Main function for processing OpenCASCADE exceptions +void process_opencascade_exception(const Standard_Failure& error, + const std::string& method_name, + const std::string& class_name) { std::ostringstream oss; - oss << error.DynamicType()->Name() << ": " << error.GetMessageString() - << " raised from method " << method_name << " of class " << class_name; - PyErr_SetString(PyExc_RuntimeError, oss.str().c_str()); + + // Basic error information + const std::string error_type = error.DynamicType()->Name(); + const std::string error_message = error.GetMessageString(); + const std::string readable_class = get_readable_class_name(class_name); + const std::string readable_method = get_readable_method_name(method_name); + + // Error message construction + oss << "OpenCASCADE Error [" << error_type << "]"; + + if (!error_message.empty()) { + oss << ": " << error_message; + } + + oss << " (in " << readable_class; + if (readable_method != "Unknown") { + oss << "::" << readable_method; + } + oss << ")"; + + // Debug information if enabled + #if PYTHONOCC_DEBUG_EXCEPTIONS + std::cerr << "[pythonOCC Debug] " << oss.str() << std::endl; + #endif + + // Set Python exception with appropriate type + PyObject* exception_type = get_exception_type(error); + PyErr_SetString(exception_type, oss.str().c_str()); } + %} +// Enhanced exception macro with hierarchical exception handling %exception { try { + // Capture system signals if macro is defined OCC_CATCH_SIGNALS $action - } + } catch(const Standard_Failure& error) { - process_exception(error, "$name", "$parentclassname"); + process_opencascade_exception(error, "$name", "$parentclassname"); + SWIG_fail; + } + catch(const std::bad_alloc& e) + { + PyErr_SetString(PyExc_MemoryError, "Memory allocation failed in OpenCASCADE operation"); SWIG_fail; } } diff --git a/src/SWIG_files/common/FunctionTransformers.i b/src/SWIG_files/common/FunctionTransformers.i index a5802ad88..837fa4d86 100644 --- a/src/SWIG_files/common/FunctionTransformers.i +++ b/src/SWIG_files/common/FunctionTransformers.i @@ -41,7 +41,7 @@ Standard_CString parameter transformation $1 = PyUnicode_Check($input) ? 1 : 0; } %typemap(out) Standard_CString { - $result = PyString_FromString($1); + $result = PyUnicode_FromString($1); } /* @@ -72,31 +72,15 @@ TCollection_AsciiString parameter transformation $1 = PyUnicode_Check($input) ? 1 : 0; } %typemap(out) TCollection_AsciiString { - $result = PyString_FromString($1.ToCString()); + $result = PyUnicode_FromString($1.ToCString()); } /* TCollection_HAsciiString output by ref parameter transformation */ %typemap(argout) opencascade::handle &OutValue { - PyObject *o, *o2, *o3; - opencascade::handle thas = new TCollection_HAsciiString(*$1); - o = PyString_FromString(thas->ToCString()); - if ((!$result) || ($result == Py_None)) { - $result = o; - } else { - if (!PyTuple_Check($result)) { - PyObject *o2 = $result; - $result = PyTuple_New(1); - PyTuple_SetItem($result,0,o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3,0,o); - o2 = $result; - $result = PySequence_Concat(o2,o3); - Py_DECREF(o2); - Py_DECREF(o3); - } + PyObject *o = PyUnicode_FromString((*$1)->ToCString()); + $result = SWIG_AppendOutput($result, o); } %typemap(in,numinputs=0) opencascade::handle &OutValue(opencascade::handle temp) { @@ -107,23 +91,8 @@ TCollection_HAsciiString output by ref parameter transformation Standard_ShortReal & function transformation */ %typemap(argout) Standard_ShortReal &OutValue { - PyObject *o, *o2, *o3; - o = PyFloat_FromDouble(*$1); - if ((!$result) || ($result == Py_None)) { - $result = o; - } else { - if (!PyTuple_Check($result)) { - PyObject *o2 = $result; - $result = PyTuple_New(1); - PyTuple_SetItem($result,0,o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3,0,o); - o2 = $result; - $result = PySequence_Concat(o2,o3); - Py_DECREF(o2); - Py_DECREF(o3); - } + PyObject *o = PyFloat_FromDouble(*$1); + $result = SWIG_AppendOutput($result, o); } %typemap(in,numinputs=0) Standard_ShortReal &OutValue(Standard_ShortReal temp) { @@ -134,23 +103,8 @@ Standard_ShortReal & function transformation Standard_Real & function transformation */ %typemap(argout) Standard_Real &OutValue { - PyObject *o, *o2, *o3; - o = PyFloat_FromDouble(*$1); - if ((!$result) || ($result == Py_None)) { - $result = o; - } else { - if (!PyTuple_Check($result)) { - PyObject *o2 = $result; - $result = PyTuple_New(1); - PyTuple_SetItem($result,0,o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3,0,o); - o2 = $result; - $result = PySequence_Concat(o2,o3); - Py_DECREF(o2); - Py_DECREF(o3); - } + PyObject *o = PyFloat_FromDouble(*$1); + $result = SWIG_AppendOutput($result, o); } %typemap(in,numinputs=0) Standard_Real &OutValue(Standard_Real temp) { @@ -161,23 +115,8 @@ Standard_Real & function transformation Standard_Integer & function transformation */ %typemap(argout) Standard_Integer &OutValue { - PyObject *o, *o2, *o3; - o = PyInt_FromLong(*$1); - if ((!$result) || ($result == Py_None)) { - $result = o; - } else { - if (!PyTuple_Check($result)) { - PyObject *o2 = $result; - $result = PyTuple_New(1); - PyTuple_SetItem($result,0,o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3,0,o); - o2 = $result; - $result = PySequence_Concat(o2,o3); - Py_DECREF(o2); - Py_DECREF(o3); - } + PyObject *o = PyLong_FromLong(*$1); + $result = SWIG_AppendOutput($result, o); } %typemap(in,numinputs=0) Standard_Integer &OutValue(Standard_Integer temp) { @@ -188,23 +127,8 @@ Standard_Integer & function transformation Standard_Boolean & function transformation */ %typemap(argout) Standard_Boolean &OutValue { - PyObject *o, *o2, *o3; - o = PyBool_FromLong(*$1); - if ((!$result) || ($result == Py_None)) { - $result = o; - } else { - if (!PyTuple_Check($result)) { - PyObject *o2 = $result; - $result = PyTuple_New(1); - PyTuple_SetItem($result,0,o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3,0,o); - o2 = $result; - $result = PySequence_Concat(o2,o3); - Py_DECREF(o2); - Py_DECREF(o3); - } + PyObject *o = PyBool_FromLong(*$1); + $result = SWIG_AppendOutput($result, o); } %typemap(in,numinputs=0) Standard_Boolean &OutValue(Standard_Boolean temp) { @@ -214,80 +138,130 @@ Standard_Boolean & function transformation %typemap(out) TopoDS_Shape { TopoDS_Shape* sh = &$1; if (!sh || sh->IsNull()) { - Py_RETURN_NONE; + // Use $result instead of Py_RETURN_NONE to allow SWIG cleanup code to run + $result = Py_None; + Py_INCREF(Py_None); } - PyObject *resultobj = nullptr; - TopAbs_ShapeEnum shape_type = sh->ShapeType(); - switch (shape_type) - { - case TopAbs_COMPOUND: - resultobj = SWIG_NewPointerObj(new TopoDS_Compound(TopoDS::Compound(*sh)), SWIGTYPE_p_TopoDS_Compound, SWIG_POINTER_OWN | 0); - break; - case TopAbs_COMPSOLID: - resultobj = SWIG_NewPointerObj(new TopoDS_CompSolid(TopoDS::CompSolid(*sh)), SWIGTYPE_p_TopoDS_CompSolid, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_SOLID: - resultobj = SWIG_NewPointerObj(new TopoDS_Solid(TopoDS::Solid(*sh)), SWIGTYPE_p_TopoDS_Solid, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_SHELL: - resultobj = SWIG_NewPointerObj(new TopoDS_Shell(TopoDS::Shell(*sh)), SWIGTYPE_p_TopoDS_Shell, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_FACE: - resultobj = SWIG_NewPointerObj(new TopoDS_Face(TopoDS::Face(*sh)), SWIGTYPE_p_TopoDS_Face, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_WIRE: - resultobj = SWIG_NewPointerObj(new TopoDS_Wire(TopoDS::Wire(*sh)), SWIGTYPE_p_TopoDS_Wire, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_EDGE: - resultobj = SWIG_NewPointerObj(new TopoDS_Edge(TopoDS::Edge(*sh)), SWIGTYPE_p_TopoDS_Edge, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_VERTEX: - resultobj = SWIG_NewPointerObj(new TopoDS_Vertex(TopoDS::Vertex(*sh)), SWIGTYPE_p_TopoDS_Vertex, SWIG_POINTER_OWN | 0 ); - break; - default: - break; + else { + switch (sh->ShapeType()) + { + case TopAbs_COMPOUND: { + TopoDS_Compound* ptr = new TopoDS_Compound(TopoDS::Compound(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Compound, SWIG_POINTER_OWN | 0); + if (!$result) delete ptr; + break; + } + case TopAbs_COMPSOLID: { + TopoDS_CompSolid* ptr = new TopoDS_CompSolid(TopoDS::CompSolid(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_CompSolid, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_SOLID: { + TopoDS_Solid* ptr = new TopoDS_Solid(TopoDS::Solid(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Solid, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_SHELL: { + TopoDS_Shell* ptr = new TopoDS_Shell(TopoDS::Shell(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Shell, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_FACE: { + TopoDS_Face* ptr = new TopoDS_Face(TopoDS::Face(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Face, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_WIRE: { + TopoDS_Wire* ptr = new TopoDS_Wire(TopoDS::Wire(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Wire, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_EDGE: { + TopoDS_Edge* ptr = new TopoDS_Edge(TopoDS::Edge(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Edge, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_VERTEX: { + TopoDS_Vertex* ptr = new TopoDS_Vertex(TopoDS::Vertex(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Vertex, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + default: + break; + } } - return resultobj; } // Return TopoDS_Shapes by copy, as we could get lifetimes errors %typemap(out) const TopoDS_Shape& { TopoDS_Shape* sh = $1; if (!sh || sh->IsNull()) { - Py_RETURN_NONE; + // Use $result instead of Py_RETURN_NONE to allow SWIG cleanup code to run + $result = Py_None; + Py_INCREF(Py_None); } - PyObject *resultobj = nullptr; - TopAbs_ShapeEnum shape_type = sh->ShapeType(); - switch (shape_type) - { - case TopAbs_COMPOUND: - resultobj = SWIG_NewPointerObj(new TopoDS_Compound(TopoDS::Compound(*sh)), SWIGTYPE_p_TopoDS_Compound, SWIG_POINTER_OWN | 0); - break; - case TopAbs_COMPSOLID: - resultobj = SWIG_NewPointerObj(new TopoDS_CompSolid(TopoDS::CompSolid(*sh)), SWIGTYPE_p_TopoDS_CompSolid, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_SOLID: - resultobj = SWIG_NewPointerObj(new TopoDS_Solid(TopoDS::Solid(*sh)), SWIGTYPE_p_TopoDS_Solid, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_SHELL: - resultobj = SWIG_NewPointerObj(new TopoDS_Shell(TopoDS::Shell(*sh)), SWIGTYPE_p_TopoDS_Shell, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_FACE: - resultobj = SWIG_NewPointerObj(new TopoDS_Face(TopoDS::Face(*sh)), SWIGTYPE_p_TopoDS_Face, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_WIRE: - resultobj = SWIG_NewPointerObj(new TopoDS_Wire(TopoDS::Wire(*sh)), SWIGTYPE_p_TopoDS_Wire, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_EDGE: - resultobj = SWIG_NewPointerObj(new TopoDS_Edge(TopoDS::Edge(*sh)), SWIGTYPE_p_TopoDS_Edge, SWIG_POINTER_OWN | 0 ); - break; - case TopAbs_VERTEX: - resultobj = SWIG_NewPointerObj(new TopoDS_Vertex(TopoDS::Vertex(*sh)), SWIGTYPE_p_TopoDS_Vertex, SWIG_POINTER_OWN | 0 ); - break; - default: - break; + else { + switch (sh->ShapeType()) + { + case TopAbs_COMPOUND: { + TopoDS_Compound* ptr = new TopoDS_Compound(TopoDS::Compound(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Compound, SWIG_POINTER_OWN | 0); + if (!$result) delete ptr; + break; + } + case TopAbs_COMPSOLID: { + TopoDS_CompSolid* ptr = new TopoDS_CompSolid(TopoDS::CompSolid(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_CompSolid, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_SOLID: { + TopoDS_Solid* ptr = new TopoDS_Solid(TopoDS::Solid(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Solid, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_SHELL: { + TopoDS_Shell* ptr = new TopoDS_Shell(TopoDS::Shell(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Shell, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_FACE: { + TopoDS_Face* ptr = new TopoDS_Face(TopoDS::Face(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Face, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_WIRE: { + TopoDS_Wire* ptr = new TopoDS_Wire(TopoDS::Wire(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Wire, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_EDGE: { + TopoDS_Edge* ptr = new TopoDS_Edge(TopoDS::Edge(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Edge, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + case TopAbs_VERTEX: { + TopoDS_Vertex* ptr = new TopoDS_Vertex(TopoDS::Vertex(*sh)); + $result = SWIG_NewPointerObj(ptr, SWIGTYPE_p_TopoDS_Vertex, SWIG_POINTER_OWN | 0 ); + if (!$result) delete ptr; + break; + } + default: + break; + } } - return resultobj; } @@ -298,22 +272,7 @@ Standard_Boolean & function transformation } %typemap(argout) TYPE &OutValue { - PyObject *o, *o2, *o3; - o = PyInt_FromLong(*$1); - if ((!$result) || ($result == Py_None)) { - $result = o; - } else { - if (!PyTuple_Check($result)) { - PyObject *o2 = $result; - $result = PyTuple_New(1); - PyTuple_SetItem($result,0,o2); - } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3,0,o); - o2 = $result; - $result = PySequence_Concat(o2,o3); - Py_DECREF(o2); - Py_DECREF(o3); - } + PyObject *o = PyLong_FromLong(static_cast(*$1)); + $result = SWIG_AppendOutput($result, o); } %enddef diff --git a/src/SWIG_files/common/IOStream.i b/src/SWIG_files/common/IOStream.i index c8ddd6249..268d82414 100644 --- a/src/SWIG_files/common/IOStream.i +++ b/src/SWIG_files/common/IOStream.i @@ -1,75 +1,172 @@ /* - Copyright 2020 Thomas Paviot (tpaviot@gmail.com) - This file is part of pythonOCC. - pythonOCC is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - pythonOCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along with pythonOCC. If not, see . +Refactored for Python 3 only - No Python 2 support */ %include %include -// Standard_IStream +//============================================================================= +// Input stream conversion: Python str/bytes -> std::istream& +//============================================================================= %typemap(in) std::istream& { - PyObject* temp_bytes = PyUnicode_AsEncodedString($input, "UTF-8", "strict"); - std::string data(PyBytes_AsString(temp_bytes)); - std::stringstream* ss = new std::stringstream(data); - $1 = ss; + if (!PyUnicode_Check($input) && !PyBytes_Check($input)) { + PyErr_SetString(PyExc_TypeError, "Expected str or bytes object"); + SWIG_fail; + } + + PyObject* encoded_bytes = nullptr; + const char* data_ptr = nullptr; + + if (PyUnicode_Check($input)) { + encoded_bytes = PyUnicode_AsEncodedString($input, "UTF-8", "strict"); + if (!encoded_bytes) { + PyErr_SetString(PyExc_UnicodeError, "Failed to encode string as UTF-8"); + SWIG_fail; + } + data_ptr = PyBytes_AsString(encoded_bytes); + } else { + // Input is already bytes + data_ptr = PyBytes_AsString($input); + encoded_bytes = $input; + Py_INCREF(encoded_bytes); + } + + if (!data_ptr) { + Py_XDECREF(encoded_bytes); + PyErr_SetString(PyExc_ValueError, "Failed to extract string data"); + SWIG_fail; + } + + std::string cpp_data(data_ptr); + Py_DECREF(encoded_bytes); + + std::stringstream* stream = new std::stringstream(cpp_data); + $1 = stream; } %typemap(freearg) std::istream& { - delete $1; + delete static_cast($1); } -// Standard_SStream -%typemap(in) std::stringstream & { - PyObject* temp_bytes = PyUnicode_AsEncodedString($input, "UTF-8", "strict"); - std::string data(PyBytes_AsString(temp_bytes)); - std::stringstream* ss = new std::stringstream(data); - $1 = ss; +//============================================================================= +// String stream conversion: Python str/bytes -> std::stringstream& +//============================================================================= +%typemap(in) std::stringstream& { + if (!PyUnicode_Check($input) && !PyBytes_Check($input)) { + PyErr_SetString(PyExc_TypeError, "Expected str or bytes object"); + SWIG_fail; + } + + PyObject* encoded_bytes = nullptr; + const char* data_ptr = nullptr; + + if (PyUnicode_Check($input)) { + encoded_bytes = PyUnicode_AsEncodedString($input, "UTF-8", "strict"); + if (!encoded_bytes) { + PyErr_SetString(PyExc_UnicodeError, "Failed to encode string as UTF-8"); + SWIG_fail; + } + data_ptr = PyBytes_AsString(encoded_bytes); + } else { + // Input is already bytes + data_ptr = PyBytes_AsString($input); + encoded_bytes = $input; + Py_INCREF(encoded_bytes); + } + + if (!data_ptr) { + Py_XDECREF(encoded_bytes); + PyErr_SetString(PyExc_ValueError, "Failed to extract string data"); + SWIG_fail; + } + + std::string cpp_data(data_ptr); + Py_DECREF(encoded_bytes); + + std::stringstream* stream = new std::stringstream(cpp_data); + $1 = stream; } -%typemap(freearg) std::stringstream & { - delete $1; +%typemap(freearg) std::stringstream& { + delete static_cast($1); } -%typemap(argout) std::ostream &OutValue { - PyObject *o, *o2, *o3; +//============================================================================= +// Output stream conversion: std::ostream& -> Python str (as return value) +//============================================================================= +%typemap(argout) std::ostream& OutValue { + // Extract content from the stringstream + std::stringstream* ss = static_cast($1); + std::string content = ss->str(); - std::string str = ((std::stringstream*)$1)->str(); - o = PyUnicode_FromString(str.c_str()); + // Convert to Python Unicode string + PyObject* py_str = PyUnicode_FromStringAndSize(content.c_str(), content.size()); + if (!py_str) { + PyErr_SetString(PyExc_UnicodeError, "Failed to create Python string from stream content"); + SWIG_fail; + } - if ((!$result) || ($result == Py_None)) { - $result = o; + // Handle return value combination + if (!$result || $result == Py_None) { + // No existing return value or None - use our string as the result + Py_XDECREF($result); + $result = py_str; } else { - if (!PyTuple_Check($result)) { - PyObject *o2 = $result; + // Existing return value - combine into tuple + PyObject* current_result = $result; + + if (!PyTuple_Check(current_result)) { + // Convert single value to tuple $result = PyTuple_New(1); - PyTuple_SetItem($result,0,o2); + if (!$result) { + Py_DECREF(py_str); + Py_DECREF(current_result); + SWIG_fail; + } + PyTuple_SET_ITEM($result, 0, current_result); + current_result = $result; } - o3 = PyTuple_New(1); - PyTuple_SetItem(o3,0,o); - o2 = $result; - $result = PySequence_Concat(o2,o3); - Py_DECREF(o2); - Py_DECREF(o3); + + // Create new tuple with additional string + Py_ssize_t old_size = PyTuple_GET_SIZE(current_result); + PyObject* new_tuple = PyTuple_New(old_size + 1); + if (!new_tuple) { + Py_DECREF(py_str); + Py_DECREF(current_result); + SWIG_fail; + } + + // Copy existing items + for (Py_ssize_t i = 0; i < old_size; ++i) { + PyObject* item = PyTuple_GET_ITEM(current_result, i); + Py_INCREF(item); + PyTuple_SET_ITEM(new_tuple, i, item); + } + + // Add our string + PyTuple_SET_ITEM(new_tuple, old_size, py_str); + + Py_DECREF(current_result); + $result = new_tuple; } } -%typemap(in, numinputs=0) std::ostream &OutValue (std::stringstream temp) { - $1 = &temp; +//============================================================================= +// Output stream input parameter: Create temporary stringstream +//============================================================================= +%typemap(in, numinputs=0) std::ostream& OutValue (std::stringstream temp_stream) { + $1 = &temp_stream; } - diff --git a/src/SWIG_files/common/OccHandle.i b/src/SWIG_files/common/OccHandle.i index 5e5b22468..ea52e6972 100644 --- a/src/SWIG_files/common/OccHandle.i +++ b/src/SWIG_files/common/OccHandle.i @@ -55,50 +55,148 @@ template class handle{}; #define DEFINE_STANDARD_HANDLE(C1,C2) +// global counter for dbug (enabled using DEBUG_MEMORY flag) +#ifdef DEBUG_MEMORY +%inline %{ + static int handle_creation_count = 0; + static int handle_deletion_count = 0; + + void reset_handle_counters() { + handle_creation_count = 0; + handle_deletion_count = 0; + } + + void print_handle_stats() { + printf("Handles created: %d, deleted: %d, delta: %d\n", + handle_creation_count, handle_deletion_count, + handle_creation_count - handle_deletion_count); + } +%} +#endif + %define WRAP_OCC_TRANSIENT(CONST, TYPE) %typemap(out) opencascade::handle { - TYPE * presult = !$1.IsNull() ? $1.get() : 0; - if (presult) presult->IncrementRefCounter(); - %set_output(SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN)); + TYPE * presult = nullptr; + if (!$1.IsNull()) { + presult = $1.get(); + if (presult) { + presult->IncrementRefCounter(); +#ifdef DEBUG_MEMORY + handle_creation_count++; +#endif + } + } + PyObject * obj = SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN); + if (!obj && presult) { + presult->DecrementRefCounter(); + SWIG_fail; + } + %set_output(obj); } %typemap(out) Handle_ ## TYPE { - TYPE * presult = !$1.IsNull() ? $1.get() : 0; - if (presult) presult->IncrementRefCounter(); - %set_output(SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN)); + TYPE * presult = nullptr; + if (!$1.IsNull()) { + presult = $1.get(); + if (presult) { + presult->IncrementRefCounter(); +#ifdef DEBUG_MEMORY + handle_creation_count++; +#endif + } + } + PyObject * obj = SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN); + if (!obj && presult) { + presult->DecrementRefCounter(); + SWIG_fail; + } + %set_output(obj); } +// avoid useless copy for const objects %typemap(out) CONST TYPE { - TYPE * presult = new TYPE(static_cast< CONST TYPE& >($1)); - presult->IncrementRefCounter(); - %set_output(SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN)); + TYPE * presult = new TYPE(const_cast< CONST TYPE& >($1)); + if (presult) { + presult->IncrementRefCounter(); +#ifdef DEBUG_MEMORY + handle_creation_count++; +#endif + } + PyObject * obj = SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN); + if (!obj && presult) { + presult->DecrementRefCounter(); + SWIG_fail; + } + %set_output(obj); } + %typemap(out) CONST opencascade::handle& { - TYPE * presult = !$1->IsNull() ? $1->get() : 0; - if (presult) presult->IncrementRefCounter(); - %set_output(SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN)); + TYPE * presult = nullptr; + if ($1 && !$1->IsNull()) { + presult = $1->get(); + if (presult) { + presult->IncrementRefCounter(); +#ifdef DEBUG_MEMORY + handle_creation_count++; +#endif + } + } + PyObject * obj = SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN); + if (!obj && presult) { + presult->DecrementRefCounter(); + SWIG_fail; + } + %set_output(obj); } %typemap(out) CONST Handle_ ## TYPE& { - TYPE * presult = !$1->IsNull() ? $1->get() : 0; - if (presult) presult->IncrementRefCounter(); - %set_output(SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN)); + TYPE * presult = nullptr; + if ($1 && !$1->IsNull()) { + presult = $1->get(); + if (presult) { + presult->IncrementRefCounter(); +#ifdef DEBUG_MEMORY + handle_creation_count++; +#endif + } + } + PyObject * obj = SWIG_NewPointerObj(%as_voidptr(presult), $descriptor(TYPE *), SWIG_POINTER_OWN); + if (!obj && presult) { + presult->DecrementRefCounter(); + SWIG_fail; + } + %set_output(obj); } %typemap(out) CONST TYPE&, CONST TYPE* { - if ($1) $1->IncrementRefCounter(); - %set_output(SWIG_NewPointerObj(%as_voidptr($1), $descriptor(TYPE *), SWIG_POINTER_OWN)); + if ($1) { + // check that object is not on the stack + $1->IncrementRefCounter(); +#ifdef DEBUG_MEMORY + handle_creation_count++; +#endif + } + PyObject * obj = SWIG_NewPointerObj(%as_voidptr($1), $descriptor(TYPE *), SWIG_POINTER_OWN); + if (!obj && $1) { + $1->DecrementRefCounter(); + SWIG_fail; + } + %set_output(obj); } -%typemap(in) opencascade::handle< TYPE > (void *argp, int res = 0) { +%typemap(in) opencascade::handle (void *argp, int res = 0) { int newmem = 0; res = SWIG_ConvertPtrAndOwn($input, &argp, $descriptor(TYPE *), %convertptr_flags, &newmem); if (!SWIG_IsOK(res)) { %argument_fail(res, "$type", $symname, $argnum); } - if (argp) $1 = opencascade::handle< TYPE >(%reinterpret_cast(argp, TYPE*)); + if (argp) { + $1 = opencascade::handle< TYPE >(%reinterpret_cast(argp, TYPE*)); + } else { + $1 = opencascade::handle< TYPE >(); // explicit null Handle + } } // shared_ptr by reference @@ -108,8 +206,12 @@ template class handle{}; if (!SWIG_IsOK(res)) { %argument_fail(res, "$type", $symname, $argnum); } - - if (argp) tempshared = opencascade::handle< TYPE >(%reinterpret_cast(argp, TYPE*)); + if (argp) { + TYPE* typed_ptr = %reinterpret_cast(argp, TYPE*); + if (typed_ptr) { + tempshared = opencascade::handle< TYPE >(typed_ptr); + } + } $1 = &tempshared; } @@ -121,10 +223,82 @@ template class handle{}; %argument_fail(res, "$type", $symname, $argnum); } - if (argp) tempshared = opencascade::handle< TYPE >(%reinterpret_cast(argp, TYPE*)); + if (argp) { + TYPE* typed_ptr = %reinterpret_cast(argp, TYPE*); + if (typed_ptr) { + tempshared = opencascade::handle< TYPE >(typed_ptr); + } + } $1 = &tempshared; } +// HANDLE REFERENCE PARAMETER HANDLING +// ==================================== +// These typemaps handle the special case where OpenCASCADE functions take +// handle& parameters that they modify in-place. In C++, these modifications +// affect the passed handle directly, but in Python we need to return the +// modified handle as a return value. +// +// Example C++ function: +// void GeomLib::ExtendCurveToPoint(opencascade::handle& Curve, ...) +// +// Desired Python interface: +// modified_curve = GeomLib_ExtendCurveToPoint(original_curve, ...) + +// CONST REFERENCE TYPEMAP - Do nothing for const references +// ---------------------------------------------------------- +// Const references cannot be modified by the function, so we don't need +// to return them. This empty typemap ensures that const handle& parameters +// are treated as input-only parameters. +// This typemap has higher priority than the non-const version below. +%typemap(argout) const opencascade::handle & { + // Intentionally empty - const references are read-only parameters + // Example: GeomAPI_Interpolate(const handle& Points, ...) + // The Points parameter is input-only and won't be returned +} + +// NON-CONST REFERENCE TYPEMAP - Return the modified handle +// --------------------------------------------------------- +// Non-const references can be modified by the function. This typemap +// extracts the modified handle and returns it to Python, replacing +// the default void return value. +%typemap(argout) opencascade::handle & { + TYPE * presult = nullptr; + + // Check if the handle is valid (not null) + if ($1 && !$1->IsNull()) { + // Extract the raw pointer from the handle using get() + // CRITICAL: We must use get() to retrieve the managed object pointer, + // not &$1 which would give us the address of the handle itself + presult = $1->get(); + + if (presult) { + // Increment reference counter to prevent the object from being + // deleted when the C++ handle goes out of scope + // This ensures Python owns a valid reference to the object + presult->IncrementRefCounter(); + +#ifdef DEBUG_MEMORY + // Track handle creation for memory debugging + handle_creation_count++; +#endif + } + } + + // Replace the default void return value with our handle + // Py_XDECREF safely decrements the reference count of the old result (if any) + Py_XDECREF($result); + + // Create a new Python object wrapping the modified handle + // SWIGTYPE_p_##TYPE is the SWIG type descriptor for this specific type + // SWIG_POINTER_OWN tells SWIG that Python owns this object and should + // decrement its reference count when the Python object is garbage collected + $result = SWIG_NewPointerObj(SWIG_as_voidptr(presult), SWIGTYPE_p_ ## TYPE, SWIG_POINTER_OWN); +} + +// Note: Similar typemaps should be added for Handle_TYPE & syntax if needed +// for backward compatibility with older OpenCASCADE code + %typemap(typecheck,precedence=SWIG_TYPECHECK_POINTER,noblock=1) TYPE CONST, TYPE CONST &, @@ -134,7 +308,8 @@ template class handle{}; CONST opencascade::handle &, CONST opencascade::handle *, CONST opencascade::handle *& { - int res = SWIG_ConvertPtr($input, 0, $descriptor(TYPE *), 0); + void *ptr = 0; + int res = SWIG_ConvertPtr($input, &ptr, $descriptor(TYPE *), 0); $1 = SWIG_CheckState(res); } @@ -166,18 +341,35 @@ typedef opencascade::handle< TYPE > Handle_ ## TYPE; WRAP_OCC_TRANSIENT(SWIGEMPTYHACK, TYPE) WRAP_OCC_TRANSIENT(const, TYPE) -%feature("unref") TYPE "if($this && $this->DecrementRefCounter()==0) delete $this;" +%feature("unref") TYPE %{ + if($this) { +#ifdef DEBUG_MEMORY + handle_deletion_count++; +#endif + if($this->DecrementRefCounter() == 0) { + $this->Delete(); + } + } +%} %inline %{ opencascade::handle Handle_ ## TYPE ## _Create() { return opencascade::handle(); } - opencascade::handle Handle_ ## TYPE ## _DownCast(const opencascade::handle& t) { + opencascade::handle Handle_ ## TYPE ## _DownCast(const opencascade::handle& t) { + if (t.IsNull()) { + return opencascade::handle(); + } + opencascade::handle downcasted_handle = opencascade::handle::DownCast(t); if (downcasted_handle.IsNull()) { - PyErr_SetString(PyExc_RuntimeError, "Failed to downcast to TYPE."); - return nullptr; + // Plus d'information dans l'erreur + PyErr_Format(PyExc_TypeError, + "Failed to downcast %s to %s", + t->DynamicType()->Name(), + #TYPE); + return opencascade::handle(); } return downcasted_handle; } @@ -185,6 +377,15 @@ WRAP_OCC_TRANSIENT(const, TYPE) bool Handle_ ## TYPE ## _IsNull(const opencascade::handle & t) { return t.IsNull(); } + + void Handle_ ## TYPE ## _ForceRelease(opencascade::handle & t) { + t.Nullify(); + } + + int Handle_ ## TYPE ## _GetRefCount(const opencascade::handle & t) { + if (t.IsNull()) return 0; + return t->GetRefCount(); + } %} // These two functions are just for backwards compatibility diff --git a/src/SWIG_files/headers/AIS_module.hxx b/src/SWIG_files/headers/AIS_module.hxx index 6c52abff7..5086accfb 100644 --- a/src/SWIG_files/headers/AIS_module.hxx +++ b/src/SWIG_files/headers/AIS_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/APIHeaderSection_module.hxx b/src/SWIG_files/headers/APIHeaderSection_module.hxx index 0349cfc90..eb6b472a0 100644 --- a/src/SWIG_files/headers/APIHeaderSection_module.hxx +++ b/src/SWIG_files/headers/APIHeaderSection_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Adaptor2d_module.hxx b/src/SWIG_files/headers/Adaptor2d_module.hxx index a678c8dec..fee0b9bef 100644 --- a/src/SWIG_files/headers/Adaptor2d_module.hxx +++ b/src/SWIG_files/headers/Adaptor2d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Adaptor3d_module.hxx b/src/SWIG_files/headers/Adaptor3d_module.hxx index aa3fbd2aa..cfb94c851 100644 --- a/src/SWIG_files/headers/Adaptor3d_module.hxx +++ b/src/SWIG_files/headers/Adaptor3d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/AdvApp2Var_module.hxx b/src/SWIG_files/headers/AdvApp2Var_module.hxx index e04da8a60..ad2dc8e39 100644 --- a/src/SWIG_files/headers/AdvApp2Var_module.hxx +++ b/src/SWIG_files/headers/AdvApp2Var_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/AdvApprox_module.hxx b/src/SWIG_files/headers/AdvApprox_module.hxx index ce82cc70a..860b42483 100644 --- a/src/SWIG_files/headers/AdvApprox_module.hxx +++ b/src/SWIG_files/headers/AdvApprox_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/AppBlend_module.hxx b/src/SWIG_files/headers/AppBlend_module.hxx index 22402a934..86df33fa6 100644 --- a/src/SWIG_files/headers/AppBlend_module.hxx +++ b/src/SWIG_files/headers/AppBlend_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/AppCont_module.hxx b/src/SWIG_files/headers/AppCont_module.hxx index 13616b12c..af11e44e7 100644 --- a/src/SWIG_files/headers/AppCont_module.hxx +++ b/src/SWIG_files/headers/AppCont_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/AppDef_module.hxx b/src/SWIG_files/headers/AppDef_module.hxx index f8862b6bc..a77b75d30 100644 --- a/src/SWIG_files/headers/AppDef_module.hxx +++ b/src/SWIG_files/headers/AppDef_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/AppParCurves_module.hxx b/src/SWIG_files/headers/AppParCurves_module.hxx index 9a75676c7..0c4b6ea87 100644 --- a/src/SWIG_files/headers/AppParCurves_module.hxx +++ b/src/SWIG_files/headers/AppParCurves_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/AppStdL_module.hxx b/src/SWIG_files/headers/AppStdL_module.hxx index f2c2e3fcb..8a0f956a6 100644 --- a/src/SWIG_files/headers/AppStdL_module.hxx +++ b/src/SWIG_files/headers/AppStdL_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/AppStd_module.hxx b/src/SWIG_files/headers/AppStd_module.hxx index 3784b65c9..5df2e3c7d 100644 --- a/src/SWIG_files/headers/AppStd_module.hxx +++ b/src/SWIG_files/headers/AppStd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ApproxInt_module.hxx b/src/SWIG_files/headers/ApproxInt_module.hxx index 92d8bd8bf..b7b05d13c 100644 --- a/src/SWIG_files/headers/ApproxInt_module.hxx +++ b/src/SWIG_files/headers/ApproxInt_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Approx_module.hxx b/src/SWIG_files/headers/Approx_module.hxx index fd3d3bda3..1d7183732 100644 --- a/src/SWIG_files/headers/Approx_module.hxx +++ b/src/SWIG_files/headers/Approx_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Aspect_module.hxx b/src/SWIG_files/headers/Aspect_module.hxx index 53f52fa0c..cf3ec875f 100644 --- a/src/SWIG_files/headers/Aspect_module.hxx +++ b/src/SWIG_files/headers/Aspect_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BOPAlgo_module.hxx b/src/SWIG_files/headers/BOPAlgo_module.hxx index 3d539e3b2..1e88107b5 100644 --- a/src/SWIG_files/headers/BOPAlgo_module.hxx +++ b/src/SWIG_files/headers/BOPAlgo_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BOPDS_module.hxx b/src/SWIG_files/headers/BOPDS_module.hxx index cb8419c75..cfa08b88e 100644 --- a/src/SWIG_files/headers/BOPDS_module.hxx +++ b/src/SWIG_files/headers/BOPDS_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BOPTools_module.hxx b/src/SWIG_files/headers/BOPTools_module.hxx index be6b5075b..80dc7b555 100644 --- a/src/SWIG_files/headers/BOPTools_module.hxx +++ b/src/SWIG_files/headers/BOPTools_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepAdaptor_module.hxx b/src/SWIG_files/headers/BRepAdaptor_module.hxx index a1c7c4191..571c0a416 100644 --- a/src/SWIG_files/headers/BRepAdaptor_module.hxx +++ b/src/SWIG_files/headers/BRepAdaptor_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepAlgoAPI_module.hxx b/src/SWIG_files/headers/BRepAlgoAPI_module.hxx index cef89d002..49180820f 100644 --- a/src/SWIG_files/headers/BRepAlgoAPI_module.hxx +++ b/src/SWIG_files/headers/BRepAlgoAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepAlgo_module.hxx b/src/SWIG_files/headers/BRepAlgo_module.hxx index 5b8b7bf4a..1ca5290c4 100644 --- a/src/SWIG_files/headers/BRepAlgo_module.hxx +++ b/src/SWIG_files/headers/BRepAlgo_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepApprox_module.hxx b/src/SWIG_files/headers/BRepApprox_module.hxx index dcb32c491..88ba0854c 100644 --- a/src/SWIG_files/headers/BRepApprox_module.hxx +++ b/src/SWIG_files/headers/BRepApprox_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepBlend_module.hxx b/src/SWIG_files/headers/BRepBlend_module.hxx index b91b305be..c6f02b55c 100644 --- a/src/SWIG_files/headers/BRepBlend_module.hxx +++ b/src/SWIG_files/headers/BRepBlend_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepBndLib_module.hxx b/src/SWIG_files/headers/BRepBndLib_module.hxx index 7b4c2be82..2b2fc8f6b 100644 --- a/src/SWIG_files/headers/BRepBndLib_module.hxx +++ b/src/SWIG_files/headers/BRepBndLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepBuilderAPI_module.hxx b/src/SWIG_files/headers/BRepBuilderAPI_module.hxx index e4fbfe1d4..326112e28 100644 --- a/src/SWIG_files/headers/BRepBuilderAPI_module.hxx +++ b/src/SWIG_files/headers/BRepBuilderAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepCheck_module.hxx b/src/SWIG_files/headers/BRepCheck_module.hxx index 0f429ef6c..1d098fc8f 100644 --- a/src/SWIG_files/headers/BRepCheck_module.hxx +++ b/src/SWIG_files/headers/BRepCheck_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepClass3d_module.hxx b/src/SWIG_files/headers/BRepClass3d_module.hxx index ea0a7e4df..408664b4a 100644 --- a/src/SWIG_files/headers/BRepClass3d_module.hxx +++ b/src/SWIG_files/headers/BRepClass3d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepClass_module.hxx b/src/SWIG_files/headers/BRepClass_module.hxx index 38557a75e..8d3b36856 100644 --- a/src/SWIG_files/headers/BRepClass_module.hxx +++ b/src/SWIG_files/headers/BRepClass_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepExtrema_module.hxx b/src/SWIG_files/headers/BRepExtrema_module.hxx index 2ac7085ab..0976fe237 100644 --- a/src/SWIG_files/headers/BRepExtrema_module.hxx +++ b/src/SWIG_files/headers/BRepExtrema_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepFeat_module.hxx b/src/SWIG_files/headers/BRepFeat_module.hxx index 045db1eaa..4844a0ad5 100644 --- a/src/SWIG_files/headers/BRepFeat_module.hxx +++ b/src/SWIG_files/headers/BRepFeat_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepFill_module.hxx b/src/SWIG_files/headers/BRepFill_module.hxx index b69778b6f..a73df1b08 100644 --- a/src/SWIG_files/headers/BRepFill_module.hxx +++ b/src/SWIG_files/headers/BRepFill_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepFilletAPI_module.hxx b/src/SWIG_files/headers/BRepFilletAPI_module.hxx index ed030e9d8..86ba0df3c 100644 --- a/src/SWIG_files/headers/BRepFilletAPI_module.hxx +++ b/src/SWIG_files/headers/BRepFilletAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepGProp_module.hxx b/src/SWIG_files/headers/BRepGProp_module.hxx index e53cc782c..6f40e705c 100644 --- a/src/SWIG_files/headers/BRepGProp_module.hxx +++ b/src/SWIG_files/headers/BRepGProp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepIntCurveSurface_module.hxx b/src/SWIG_files/headers/BRepIntCurveSurface_module.hxx index c302f833a..1b46b5e1d 100644 --- a/src/SWIG_files/headers/BRepIntCurveSurface_module.hxx +++ b/src/SWIG_files/headers/BRepIntCurveSurface_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepLProp_module.hxx b/src/SWIG_files/headers/BRepLProp_module.hxx index af3832679..5813c3f07 100644 --- a/src/SWIG_files/headers/BRepLProp_module.hxx +++ b/src/SWIG_files/headers/BRepLProp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepLib_module.hxx b/src/SWIG_files/headers/BRepLib_module.hxx index c26c5c72b..486a34e7f 100644 --- a/src/SWIG_files/headers/BRepLib_module.hxx +++ b/src/SWIG_files/headers/BRepLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepMAT2d_module.hxx b/src/SWIG_files/headers/BRepMAT2d_module.hxx index c2409f22b..c7d263b2a 100644 --- a/src/SWIG_files/headers/BRepMAT2d_module.hxx +++ b/src/SWIG_files/headers/BRepMAT2d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepMeshData_module.hxx b/src/SWIG_files/headers/BRepMeshData_module.hxx index e6b6049a7..19d242777 100644 --- a/src/SWIG_files/headers/BRepMeshData_module.hxx +++ b/src/SWIG_files/headers/BRepMeshData_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepMesh_module.hxx b/src/SWIG_files/headers/BRepMesh_module.hxx index 06d0dc5f5..bf9250705 100644 --- a/src/SWIG_files/headers/BRepMesh_module.hxx +++ b/src/SWIG_files/headers/BRepMesh_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepOffsetAPI_module.hxx b/src/SWIG_files/headers/BRepOffsetAPI_module.hxx index 3faf7cadf..76616c959 100644 --- a/src/SWIG_files/headers/BRepOffsetAPI_module.hxx +++ b/src/SWIG_files/headers/BRepOffsetAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepOffset_module.hxx b/src/SWIG_files/headers/BRepOffset_module.hxx index 0e1bfe581..b4ca9fde3 100644 --- a/src/SWIG_files/headers/BRepOffset_module.hxx +++ b/src/SWIG_files/headers/BRepOffset_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepPrimAPI_module.hxx b/src/SWIG_files/headers/BRepPrimAPI_module.hxx index e7260ff64..a29eb1e9c 100644 --- a/src/SWIG_files/headers/BRepPrimAPI_module.hxx +++ b/src/SWIG_files/headers/BRepPrimAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepPrim_module.hxx b/src/SWIG_files/headers/BRepPrim_module.hxx index ab4b56ef2..104ab09c9 100644 --- a/src/SWIG_files/headers/BRepPrim_module.hxx +++ b/src/SWIG_files/headers/BRepPrim_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepProj_module.hxx b/src/SWIG_files/headers/BRepProj_module.hxx index b254270a3..5eb8d8082 100644 --- a/src/SWIG_files/headers/BRepProj_module.hxx +++ b/src/SWIG_files/headers/BRepProj_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepSweep_module.hxx b/src/SWIG_files/headers/BRepSweep_module.hxx index f9fef9541..34b5001c8 100644 --- a/src/SWIG_files/headers/BRepSweep_module.hxx +++ b/src/SWIG_files/headers/BRepSweep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepTools_module.hxx b/src/SWIG_files/headers/BRepTools_module.hxx index eb2fba391..b7eadd536 100644 --- a/src/SWIG_files/headers/BRepTools_module.hxx +++ b/src/SWIG_files/headers/BRepTools_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRepTopAdaptor_module.hxx b/src/SWIG_files/headers/BRepTopAdaptor_module.hxx index a8174b80b..3646fb555 100644 --- a/src/SWIG_files/headers/BRepTopAdaptor_module.hxx +++ b/src/SWIG_files/headers/BRepTopAdaptor_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BRep_module.hxx b/src/SWIG_files/headers/BRep_module.hxx index 5893cfae1..ef170fda5 100644 --- a/src/SWIG_files/headers/BRep_module.hxx +++ b/src/SWIG_files/headers/BRep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BSplCLib_module.hxx b/src/SWIG_files/headers/BSplCLib_module.hxx index 026293610..ec27fe140 100644 --- a/src/SWIG_files/headers/BSplCLib_module.hxx +++ b/src/SWIG_files/headers/BSplCLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BSplSLib_module.hxx b/src/SWIG_files/headers/BSplSLib_module.hxx index 2cb9445c1..281d8a415 100644 --- a/src/SWIG_files/headers/BSplSLib_module.hxx +++ b/src/SWIG_files/headers/BSplSLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BVH_module.hxx b/src/SWIG_files/headers/BVH_module.hxx index 528b51494..9aad1ee81 100644 --- a/src/SWIG_files/headers/BVH_module.hxx +++ b/src/SWIG_files/headers/BVH_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BiTgte_module.hxx b/src/SWIG_files/headers/BiTgte_module.hxx index 19a816ecf..caa343d05 100644 --- a/src/SWIG_files/headers/BiTgte_module.hxx +++ b/src/SWIG_files/headers/BiTgte_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinDrivers_module.hxx b/src/SWIG_files/headers/BinDrivers_module.hxx index 6c675753d..9926a0d14 100644 --- a/src/SWIG_files/headers/BinDrivers_module.hxx +++ b/src/SWIG_files/headers/BinDrivers_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinLDrivers_module.hxx b/src/SWIG_files/headers/BinLDrivers_module.hxx index 6ca6112a2..92b59b16d 100644 --- a/src/SWIG_files/headers/BinLDrivers_module.hxx +++ b/src/SWIG_files/headers/BinLDrivers_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinMDF_module.hxx b/src/SWIG_files/headers/BinMDF_module.hxx index 45aa06419..bce5a2dbf 100644 --- a/src/SWIG_files/headers/BinMDF_module.hxx +++ b/src/SWIG_files/headers/BinMDF_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinMDataStd_module.hxx b/src/SWIG_files/headers/BinMDataStd_module.hxx index 352d1bb1f..61df408d6 100644 --- a/src/SWIG_files/headers/BinMDataStd_module.hxx +++ b/src/SWIG_files/headers/BinMDataStd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinMDataXtd_module.hxx b/src/SWIG_files/headers/BinMDataXtd_module.hxx index 63cd18822..bb590a3f5 100644 --- a/src/SWIG_files/headers/BinMDataXtd_module.hxx +++ b/src/SWIG_files/headers/BinMDataXtd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinMDocStd_module.hxx b/src/SWIG_files/headers/BinMDocStd_module.hxx index e4eb3958c..60e496ce9 100644 --- a/src/SWIG_files/headers/BinMDocStd_module.hxx +++ b/src/SWIG_files/headers/BinMDocStd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinMFunction_module.hxx b/src/SWIG_files/headers/BinMFunction_module.hxx index 78f424243..38b6e4f56 100644 --- a/src/SWIG_files/headers/BinMFunction_module.hxx +++ b/src/SWIG_files/headers/BinMFunction_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinMNaming_module.hxx b/src/SWIG_files/headers/BinMNaming_module.hxx index 76a0a13bf..b25c9f701 100644 --- a/src/SWIG_files/headers/BinMNaming_module.hxx +++ b/src/SWIG_files/headers/BinMNaming_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinMXCAFDoc_module.hxx b/src/SWIG_files/headers/BinMXCAFDoc_module.hxx index 36b3abec4..597c4ac62 100644 --- a/src/SWIG_files/headers/BinMXCAFDoc_module.hxx +++ b/src/SWIG_files/headers/BinMXCAFDoc_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinObjMgt_module.hxx b/src/SWIG_files/headers/BinObjMgt_module.hxx index ca536ccba..bf9423988 100644 --- a/src/SWIG_files/headers/BinObjMgt_module.hxx +++ b/src/SWIG_files/headers/BinObjMgt_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinTObjDrivers_module.hxx b/src/SWIG_files/headers/BinTObjDrivers_module.hxx index 97a35f1b7..874b9a8dc 100644 --- a/src/SWIG_files/headers/BinTObjDrivers_module.hxx +++ b/src/SWIG_files/headers/BinTObjDrivers_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinTools_module.hxx b/src/SWIG_files/headers/BinTools_module.hxx index 7c12d44b0..183bd1807 100644 --- a/src/SWIG_files/headers/BinTools_module.hxx +++ b/src/SWIG_files/headers/BinTools_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BinXCAFDrivers_module.hxx b/src/SWIG_files/headers/BinXCAFDrivers_module.hxx index b22e88354..faf1e4d7c 100644 --- a/src/SWIG_files/headers/BinXCAFDrivers_module.hxx +++ b/src/SWIG_files/headers/BinXCAFDrivers_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Bisector_module.hxx b/src/SWIG_files/headers/Bisector_module.hxx index 3a679cf95..a49d84e76 100644 --- a/src/SWIG_files/headers/Bisector_module.hxx +++ b/src/SWIG_files/headers/Bisector_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BlendFunc_module.hxx b/src/SWIG_files/headers/BlendFunc_module.hxx index 129205ebd..005a74336 100644 --- a/src/SWIG_files/headers/BlendFunc_module.hxx +++ b/src/SWIG_files/headers/BlendFunc_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Blend_module.hxx b/src/SWIG_files/headers/Blend_module.hxx index 73cbe8b77..88460c92f 100644 --- a/src/SWIG_files/headers/Blend_module.hxx +++ b/src/SWIG_files/headers/Blend_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/BndLib_module.hxx b/src/SWIG_files/headers/BndLib_module.hxx index eafc50be3..14a388b84 100644 --- a/src/SWIG_files/headers/BndLib_module.hxx +++ b/src/SWIG_files/headers/BndLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Bnd_module.hxx b/src/SWIG_files/headers/Bnd_module.hxx index 0b8754e3d..4ff07dbac 100644 --- a/src/SWIG_files/headers/Bnd_module.hxx +++ b/src/SWIG_files/headers/Bnd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/CDF_module.hxx b/src/SWIG_files/headers/CDF_module.hxx index a3e1f44bd..6fa21c07a 100644 --- a/src/SWIG_files/headers/CDF_module.hxx +++ b/src/SWIG_files/headers/CDF_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/CDM_module.hxx b/src/SWIG_files/headers/CDM_module.hxx index 9cb3ee998..91fa07843 100644 --- a/src/SWIG_files/headers/CDM_module.hxx +++ b/src/SWIG_files/headers/CDM_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/CPnts_module.hxx b/src/SWIG_files/headers/CPnts_module.hxx index 67852c910..5b1d3114b 100644 --- a/src/SWIG_files/headers/CPnts_module.hxx +++ b/src/SWIG_files/headers/CPnts_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/CSLib_module.hxx b/src/SWIG_files/headers/CSLib_module.hxx index 7ceddd455..65a93d328 100644 --- a/src/SWIG_files/headers/CSLib_module.hxx +++ b/src/SWIG_files/headers/CSLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ChFi2d_module.hxx b/src/SWIG_files/headers/ChFi2d_module.hxx index 1c37d8a26..4bc61bcc1 100644 --- a/src/SWIG_files/headers/ChFi2d_module.hxx +++ b/src/SWIG_files/headers/ChFi2d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ChFi3d_module.hxx b/src/SWIG_files/headers/ChFi3d_module.hxx index e36fe1ff7..aa358890e 100644 --- a/src/SWIG_files/headers/ChFi3d_module.hxx +++ b/src/SWIG_files/headers/ChFi3d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ChFiDS_module.hxx b/src/SWIG_files/headers/ChFiDS_module.hxx index 22bab5b3a..3c09c61fb 100644 --- a/src/SWIG_files/headers/ChFiDS_module.hxx +++ b/src/SWIG_files/headers/ChFiDS_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ChFiKPart_module.hxx b/src/SWIG_files/headers/ChFiKPart_module.hxx index 1605cf780..716a4011f 100644 --- a/src/SWIG_files/headers/ChFiKPart_module.hxx +++ b/src/SWIG_files/headers/ChFiKPart_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Contap_module.hxx b/src/SWIG_files/headers/Contap_module.hxx index 3076c69f6..2018d5b60 100644 --- a/src/SWIG_files/headers/Contap_module.hxx +++ b/src/SWIG_files/headers/Contap_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Convert_module.hxx b/src/SWIG_files/headers/Convert_module.hxx index b00fad6ce..675b464ca 100644 --- a/src/SWIG_files/headers/Convert_module.hxx +++ b/src/SWIG_files/headers/Convert_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/DEBRepCascade_module.hxx b/src/SWIG_files/headers/DEBRepCascade_module.hxx index 068f18321..3e61d1937 100644 --- a/src/SWIG_files/headers/DEBRepCascade_module.hxx +++ b/src/SWIG_files/headers/DEBRepCascade_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/DEXCAFCascade_module.hxx b/src/SWIG_files/headers/DEXCAFCascade_module.hxx index 842017f03..5444fe5da 100644 --- a/src/SWIG_files/headers/DEXCAFCascade_module.hxx +++ b/src/SWIG_files/headers/DEXCAFCascade_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/DE_module.hxx b/src/SWIG_files/headers/DE_module.hxx index 8efb357ab..9295c409f 100644 --- a/src/SWIG_files/headers/DE_module.hxx +++ b/src/SWIG_files/headers/DE_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Draft_module.hxx b/src/SWIG_files/headers/Draft_module.hxx index b96773909..dea0c512c 100644 --- a/src/SWIG_files/headers/Draft_module.hxx +++ b/src/SWIG_files/headers/Draft_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/DsgPrs_module.hxx b/src/SWIG_files/headers/DsgPrs_module.hxx index c32ac5137..2b49cd988 100644 --- a/src/SWIG_files/headers/DsgPrs_module.hxx +++ b/src/SWIG_files/headers/DsgPrs_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ElCLib_module.hxx b/src/SWIG_files/headers/ElCLib_module.hxx index 1fe982011..bcd94ce4c 100644 --- a/src/SWIG_files/headers/ElCLib_module.hxx +++ b/src/SWIG_files/headers/ElCLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ElSLib_module.hxx b/src/SWIG_files/headers/ElSLib_module.hxx index 233efa4d1..8f8ff7f99 100644 --- a/src/SWIG_files/headers/ElSLib_module.hxx +++ b/src/SWIG_files/headers/ElSLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ExprIntrp_module.hxx b/src/SWIG_files/headers/ExprIntrp_module.hxx index 29bf516f1..7f26e8412 100644 --- a/src/SWIG_files/headers/ExprIntrp_module.hxx +++ b/src/SWIG_files/headers/ExprIntrp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Expr_module.hxx b/src/SWIG_files/headers/Expr_module.hxx index 70d8c7d4e..5e4ad1635 100644 --- a/src/SWIG_files/headers/Expr_module.hxx +++ b/src/SWIG_files/headers/Expr_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Extrema_module.hxx b/src/SWIG_files/headers/Extrema_module.hxx index 6cdb4923c..5058900bf 100644 --- a/src/SWIG_files/headers/Extrema_module.hxx +++ b/src/SWIG_files/headers/Extrema_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/FEmTool_module.hxx b/src/SWIG_files/headers/FEmTool_module.hxx index d012a09d3..57aac3ad2 100644 --- a/src/SWIG_files/headers/FEmTool_module.hxx +++ b/src/SWIG_files/headers/FEmTool_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/FSD_module.hxx b/src/SWIG_files/headers/FSD_module.hxx index a430e88de..a034e9e11 100644 --- a/src/SWIG_files/headers/FSD_module.hxx +++ b/src/SWIG_files/headers/FSD_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/FairCurve_module.hxx b/src/SWIG_files/headers/FairCurve_module.hxx index 86cf3f9ac..12b052a70 100644 --- a/src/SWIG_files/headers/FairCurve_module.hxx +++ b/src/SWIG_files/headers/FairCurve_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/FilletSurf_module.hxx b/src/SWIG_files/headers/FilletSurf_module.hxx index ad8c93546..23ae0ca4f 100644 --- a/src/SWIG_files/headers/FilletSurf_module.hxx +++ b/src/SWIG_files/headers/FilletSurf_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GCE2d_module.hxx b/src/SWIG_files/headers/GCE2d_module.hxx index fa0c5a0e3..5e7a48c5b 100644 --- a/src/SWIG_files/headers/GCE2d_module.hxx +++ b/src/SWIG_files/headers/GCE2d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GCPnts_module.hxx b/src/SWIG_files/headers/GCPnts_module.hxx index 742762eb6..2de25d5f9 100644 --- a/src/SWIG_files/headers/GCPnts_module.hxx +++ b/src/SWIG_files/headers/GCPnts_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GC_module.hxx b/src/SWIG_files/headers/GC_module.hxx index 0c73009f2..83744fd19 100644 --- a/src/SWIG_files/headers/GC_module.hxx +++ b/src/SWIG_files/headers/GC_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GProp_module.hxx b/src/SWIG_files/headers/GProp_module.hxx index 622934ce1..b80c31e22 100644 --- a/src/SWIG_files/headers/GProp_module.hxx +++ b/src/SWIG_files/headers/GProp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GccAna_module.hxx b/src/SWIG_files/headers/GccAna_module.hxx index eb5d20703..9c54512c4 100644 --- a/src/SWIG_files/headers/GccAna_module.hxx +++ b/src/SWIG_files/headers/GccAna_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GccEnt_module.hxx b/src/SWIG_files/headers/GccEnt_module.hxx index 1d0d73dd3..a273fcc3b 100644 --- a/src/SWIG_files/headers/GccEnt_module.hxx +++ b/src/SWIG_files/headers/GccEnt_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GccInt_module.hxx b/src/SWIG_files/headers/GccInt_module.hxx index 86f601043..67123a8f9 100644 --- a/src/SWIG_files/headers/GccInt_module.hxx +++ b/src/SWIG_files/headers/GccInt_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom2dAPI_module.hxx b/src/SWIG_files/headers/Geom2dAPI_module.hxx index 139164a38..84295582a 100644 --- a/src/SWIG_files/headers/Geom2dAPI_module.hxx +++ b/src/SWIG_files/headers/Geom2dAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom2dAdaptor_module.hxx b/src/SWIG_files/headers/Geom2dAdaptor_module.hxx index 80d12287a..1c555589e 100644 --- a/src/SWIG_files/headers/Geom2dAdaptor_module.hxx +++ b/src/SWIG_files/headers/Geom2dAdaptor_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom2dConvert_module.hxx b/src/SWIG_files/headers/Geom2dConvert_module.hxx index 9f325fd2a..158b8fcf8 100644 --- a/src/SWIG_files/headers/Geom2dConvert_module.hxx +++ b/src/SWIG_files/headers/Geom2dConvert_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom2dEvaluator_module.hxx b/src/SWIG_files/headers/Geom2dEvaluator_module.hxx index 4a52e380d..1c2aa19f2 100644 --- a/src/SWIG_files/headers/Geom2dEvaluator_module.hxx +++ b/src/SWIG_files/headers/Geom2dEvaluator_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom2dGcc_module.hxx b/src/SWIG_files/headers/Geom2dGcc_module.hxx index fa15d0f79..75bb63c3f 100644 --- a/src/SWIG_files/headers/Geom2dGcc_module.hxx +++ b/src/SWIG_files/headers/Geom2dGcc_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom2dHatch_module.hxx b/src/SWIG_files/headers/Geom2dHatch_module.hxx index 1bf8f4fae..072b0db7d 100644 --- a/src/SWIG_files/headers/Geom2dHatch_module.hxx +++ b/src/SWIG_files/headers/Geom2dHatch_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom2dInt_module.hxx b/src/SWIG_files/headers/Geom2dInt_module.hxx index c8511b739..856d0e02a 100644 --- a/src/SWIG_files/headers/Geom2dInt_module.hxx +++ b/src/SWIG_files/headers/Geom2dInt_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom2dLProp_module.hxx b/src/SWIG_files/headers/Geom2dLProp_module.hxx index f60eaa05b..605578e04 100644 --- a/src/SWIG_files/headers/Geom2dLProp_module.hxx +++ b/src/SWIG_files/headers/Geom2dLProp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom2d_module.hxx b/src/SWIG_files/headers/Geom2d_module.hxx index bdce88231..c76756530 100644 --- a/src/SWIG_files/headers/Geom2d_module.hxx +++ b/src/SWIG_files/headers/Geom2d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomAPI_module.hxx b/src/SWIG_files/headers/GeomAPI_module.hxx index 19f5ff991..9d8c8e242 100644 --- a/src/SWIG_files/headers/GeomAPI_module.hxx +++ b/src/SWIG_files/headers/GeomAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomAbs_module.hxx b/src/SWIG_files/headers/GeomAbs_module.hxx index 4502a72eb..d61bfd5d8 100644 --- a/src/SWIG_files/headers/GeomAbs_module.hxx +++ b/src/SWIG_files/headers/GeomAbs_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomAdaptor_module.hxx b/src/SWIG_files/headers/GeomAdaptor_module.hxx index 91b7cf1df..b8a188dbf 100644 --- a/src/SWIG_files/headers/GeomAdaptor_module.hxx +++ b/src/SWIG_files/headers/GeomAdaptor_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomConvert_module.hxx b/src/SWIG_files/headers/GeomConvert_module.hxx index 8c48406ca..511927285 100644 --- a/src/SWIG_files/headers/GeomConvert_module.hxx +++ b/src/SWIG_files/headers/GeomConvert_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomEvaluator_module.hxx b/src/SWIG_files/headers/GeomEvaluator_module.hxx index 5d4aad610..d89f0988f 100644 --- a/src/SWIG_files/headers/GeomEvaluator_module.hxx +++ b/src/SWIG_files/headers/GeomEvaluator_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomFill_module.hxx b/src/SWIG_files/headers/GeomFill_module.hxx index 7839c1610..5af5a9e8a 100644 --- a/src/SWIG_files/headers/GeomFill_module.hxx +++ b/src/SWIG_files/headers/GeomFill_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomInt_module.hxx b/src/SWIG_files/headers/GeomInt_module.hxx index 1694f96c2..027cd239d 100644 --- a/src/SWIG_files/headers/GeomInt_module.hxx +++ b/src/SWIG_files/headers/GeomInt_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomLProp_module.hxx b/src/SWIG_files/headers/GeomLProp_module.hxx index 5694f4ca1..6866ea5e3 100644 --- a/src/SWIG_files/headers/GeomLProp_module.hxx +++ b/src/SWIG_files/headers/GeomLProp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomLib_module.hxx b/src/SWIG_files/headers/GeomLib_module.hxx index a8aa74e5d..dc0908fff 100644 --- a/src/SWIG_files/headers/GeomLib_module.hxx +++ b/src/SWIG_files/headers/GeomLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomPlate_module.hxx b/src/SWIG_files/headers/GeomPlate_module.hxx index 1610f1a48..c45175f3c 100644 --- a/src/SWIG_files/headers/GeomPlate_module.hxx +++ b/src/SWIG_files/headers/GeomPlate_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomProjLib_module.hxx b/src/SWIG_files/headers/GeomProjLib_module.hxx index 721ab146a..820251347 100644 --- a/src/SWIG_files/headers/GeomProjLib_module.hxx +++ b/src/SWIG_files/headers/GeomProjLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomToStep_module.hxx b/src/SWIG_files/headers/GeomToStep_module.hxx index 9ec7f4a77..e136f72ff 100644 --- a/src/SWIG_files/headers/GeomToStep_module.hxx +++ b/src/SWIG_files/headers/GeomToStep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/GeomTools_module.hxx b/src/SWIG_files/headers/GeomTools_module.hxx index 19390fd08..da2a2db6d 100644 --- a/src/SWIG_files/headers/GeomTools_module.hxx +++ b/src/SWIG_files/headers/GeomTools_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Geom_module.hxx b/src/SWIG_files/headers/Geom_module.hxx index bbb6d1832..33add97ce 100644 --- a/src/SWIG_files/headers/Geom_module.hxx +++ b/src/SWIG_files/headers/Geom_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Graphic3d_module.hxx b/src/SWIG_files/headers/Graphic3d_module.hxx index dc3f962e0..d72e460da 100644 --- a/src/SWIG_files/headers/Graphic3d_module.hxx +++ b/src/SWIG_files/headers/Graphic3d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/HLRAlgo_module.hxx b/src/SWIG_files/headers/HLRAlgo_module.hxx index 17c40024f..82cfdc469 100644 --- a/src/SWIG_files/headers/HLRAlgo_module.hxx +++ b/src/SWIG_files/headers/HLRAlgo_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/HLRAppli_module.hxx b/src/SWIG_files/headers/HLRAppli_module.hxx index bfa9eb0bf..3e059ec41 100644 --- a/src/SWIG_files/headers/HLRAppli_module.hxx +++ b/src/SWIG_files/headers/HLRAppli_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/HLRBRep_module.hxx b/src/SWIG_files/headers/HLRBRep_module.hxx index 5079ef632..9c1d0a919 100644 --- a/src/SWIG_files/headers/HLRBRep_module.hxx +++ b/src/SWIG_files/headers/HLRBRep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/HLRTopoBRep_module.hxx b/src/SWIG_files/headers/HLRTopoBRep_module.hxx index a51b85c2c..baf8ef63b 100644 --- a/src/SWIG_files/headers/HLRTopoBRep_module.hxx +++ b/src/SWIG_files/headers/HLRTopoBRep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/HatchGen_module.hxx b/src/SWIG_files/headers/HatchGen_module.hxx index bb043e59e..0622bfe66 100644 --- a/src/SWIG_files/headers/HatchGen_module.hxx +++ b/src/SWIG_files/headers/HatchGen_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Hatch_module.hxx b/src/SWIG_files/headers/Hatch_module.hxx index c9317492b..bcd7ad077 100644 --- a/src/SWIG_files/headers/Hatch_module.hxx +++ b/src/SWIG_files/headers/Hatch_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/HeaderSection_module.hxx b/src/SWIG_files/headers/HeaderSection_module.hxx index 74d106f31..89b1551df 100644 --- a/src/SWIG_files/headers/HeaderSection_module.hxx +++ b/src/SWIG_files/headers/HeaderSection_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Hermit_module.hxx b/src/SWIG_files/headers/Hermit_module.hxx index efca86430..cde745509 100644 --- a/src/SWIG_files/headers/Hermit_module.hxx +++ b/src/SWIG_files/headers/Hermit_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IFSelect_module.hxx b/src/SWIG_files/headers/IFSelect_module.hxx index 2dc24bf80..2f653ebdf 100644 --- a/src/SWIG_files/headers/IFSelect_module.hxx +++ b/src/SWIG_files/headers/IFSelect_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IGESCAFControl_module.hxx b/src/SWIG_files/headers/IGESCAFControl_module.hxx index f53e0ed27..be9f43b81 100644 --- a/src/SWIG_files/headers/IGESCAFControl_module.hxx +++ b/src/SWIG_files/headers/IGESCAFControl_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IGESControl_module.hxx b/src/SWIG_files/headers/IGESControl_module.hxx index 7d0ef7d3f..3bdad8d09 100644 --- a/src/SWIG_files/headers/IGESControl_module.hxx +++ b/src/SWIG_files/headers/IGESControl_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IGESData_module.hxx b/src/SWIG_files/headers/IGESData_module.hxx index 1983d61fe..f775b30f6 100644 --- a/src/SWIG_files/headers/IGESData_module.hxx +++ b/src/SWIG_files/headers/IGESData_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IGESToBRep_module.hxx b/src/SWIG_files/headers/IGESToBRep_module.hxx index 91f6233ef..e02fe0620 100644 --- a/src/SWIG_files/headers/IGESToBRep_module.hxx +++ b/src/SWIG_files/headers/IGESToBRep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IMeshData_module.hxx b/src/SWIG_files/headers/IMeshData_module.hxx index 9666deb91..0cd4ae593 100644 --- a/src/SWIG_files/headers/IMeshData_module.hxx +++ b/src/SWIG_files/headers/IMeshData_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IMeshTools_module.hxx b/src/SWIG_files/headers/IMeshTools_module.hxx index f8fd1d938..1d4348ca0 100644 --- a/src/SWIG_files/headers/IMeshTools_module.hxx +++ b/src/SWIG_files/headers/IMeshTools_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IVtkOCC_module.hxx b/src/SWIG_files/headers/IVtkOCC_module.hxx index 89b580193..a8a65232d 100644 --- a/src/SWIG_files/headers/IVtkOCC_module.hxx +++ b/src/SWIG_files/headers/IVtkOCC_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IVtkTools_module.hxx b/src/SWIG_files/headers/IVtkTools_module.hxx index 793cfcc96..fc5dfd0fc 100644 --- a/src/SWIG_files/headers/IVtkTools_module.hxx +++ b/src/SWIG_files/headers/IVtkTools_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IVtkVTK_module.hxx b/src/SWIG_files/headers/IVtkVTK_module.hxx index 45ad0fb6e..cde9d12e4 100644 --- a/src/SWIG_files/headers/IVtkVTK_module.hxx +++ b/src/SWIG_files/headers/IVtkVTK_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IVtk_module.hxx b/src/SWIG_files/headers/IVtk_module.hxx index 9babe841e..36138694d 100644 --- a/src/SWIG_files/headers/IVtk_module.hxx +++ b/src/SWIG_files/headers/IVtk_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Image_module.hxx b/src/SWIG_files/headers/Image_module.hxx index 22f8f56b8..7880967f0 100644 --- a/src/SWIG_files/headers/Image_module.hxx +++ b/src/SWIG_files/headers/Image_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntAna2d_module.hxx b/src/SWIG_files/headers/IntAna2d_module.hxx index 6fe9214d8..330d8ef23 100644 --- a/src/SWIG_files/headers/IntAna2d_module.hxx +++ b/src/SWIG_files/headers/IntAna2d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntAna_module.hxx b/src/SWIG_files/headers/IntAna_module.hxx index be3baa4b9..d027cf553 100644 --- a/src/SWIG_files/headers/IntAna_module.hxx +++ b/src/SWIG_files/headers/IntAna_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntCurveSurface_module.hxx b/src/SWIG_files/headers/IntCurveSurface_module.hxx index b99ad7444..a5d78e488 100644 --- a/src/SWIG_files/headers/IntCurveSurface_module.hxx +++ b/src/SWIG_files/headers/IntCurveSurface_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntCurve_module.hxx b/src/SWIG_files/headers/IntCurve_module.hxx index 612bb0324..efa4a042a 100644 --- a/src/SWIG_files/headers/IntCurve_module.hxx +++ b/src/SWIG_files/headers/IntCurve_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntCurvesFace_module.hxx b/src/SWIG_files/headers/IntCurvesFace_module.hxx index 6463efa0b..d0fc6b225 100644 --- a/src/SWIG_files/headers/IntCurvesFace_module.hxx +++ b/src/SWIG_files/headers/IntCurvesFace_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntImpParGen_module.hxx b/src/SWIG_files/headers/IntImpParGen_module.hxx index e66e48ed0..4513ba0bf 100644 --- a/src/SWIG_files/headers/IntImpParGen_module.hxx +++ b/src/SWIG_files/headers/IntImpParGen_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntImp_module.hxx b/src/SWIG_files/headers/IntImp_module.hxx index d5fb66329..4efb3f846 100644 --- a/src/SWIG_files/headers/IntImp_module.hxx +++ b/src/SWIG_files/headers/IntImp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntPatch_module.hxx b/src/SWIG_files/headers/IntPatch_module.hxx index 1b678d089..f37923e0b 100644 --- a/src/SWIG_files/headers/IntPatch_module.hxx +++ b/src/SWIG_files/headers/IntPatch_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntPolyh_module.hxx b/src/SWIG_files/headers/IntPolyh_module.hxx index d71c3658c..264941b21 100644 --- a/src/SWIG_files/headers/IntPolyh_module.hxx +++ b/src/SWIG_files/headers/IntPolyh_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntRes2d_module.hxx b/src/SWIG_files/headers/IntRes2d_module.hxx index 841efa396..6c99c5bc1 100644 --- a/src/SWIG_files/headers/IntRes2d_module.hxx +++ b/src/SWIG_files/headers/IntRes2d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntStart_module.hxx b/src/SWIG_files/headers/IntStart_module.hxx index 9e73fd701..36ab3a7bb 100644 --- a/src/SWIG_files/headers/IntStart_module.hxx +++ b/src/SWIG_files/headers/IntStart_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntSurf_module.hxx b/src/SWIG_files/headers/IntSurf_module.hxx index 57374d8c3..55ccd391c 100644 --- a/src/SWIG_files/headers/IntSurf_module.hxx +++ b/src/SWIG_files/headers/IntSurf_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntTools_module.hxx b/src/SWIG_files/headers/IntTools_module.hxx index d21c34a83..c58ea14ed 100644 --- a/src/SWIG_files/headers/IntTools_module.hxx +++ b/src/SWIG_files/headers/IntTools_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/IntWalk_module.hxx b/src/SWIG_files/headers/IntWalk_module.hxx index adee7686a..fbf5e84f4 100644 --- a/src/SWIG_files/headers/IntWalk_module.hxx +++ b/src/SWIG_files/headers/IntWalk_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/InterfaceGraphic_module.hxx b/src/SWIG_files/headers/InterfaceGraphic_module.hxx index 70c1a19ab..79fd051c4 100644 --- a/src/SWIG_files/headers/InterfaceGraphic_module.hxx +++ b/src/SWIG_files/headers/InterfaceGraphic_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Interface_module.hxx b/src/SWIG_files/headers/Interface_module.hxx index eb96750c7..47ab46a60 100644 --- a/src/SWIG_files/headers/Interface_module.hxx +++ b/src/SWIG_files/headers/Interface_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Intf_module.hxx b/src/SWIG_files/headers/Intf_module.hxx index 5d63a1da1..3cbd7d001 100644 --- a/src/SWIG_files/headers/Intf_module.hxx +++ b/src/SWIG_files/headers/Intf_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Intrv_module.hxx b/src/SWIG_files/headers/Intrv_module.hxx index 3e5aef5c5..387954de8 100644 --- a/src/SWIG_files/headers/Intrv_module.hxx +++ b/src/SWIG_files/headers/Intrv_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/LDOM_module.hxx b/src/SWIG_files/headers/LDOM_module.hxx index 7fb0fe589..de58b8e87 100644 --- a/src/SWIG_files/headers/LDOM_module.hxx +++ b/src/SWIG_files/headers/LDOM_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/LProp3d_module.hxx b/src/SWIG_files/headers/LProp3d_module.hxx index a5c24bb46..955c9fa5b 100644 --- a/src/SWIG_files/headers/LProp3d_module.hxx +++ b/src/SWIG_files/headers/LProp3d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/LProp_module.hxx b/src/SWIG_files/headers/LProp_module.hxx index e15c1917f..e3c1a63a5 100644 --- a/src/SWIG_files/headers/LProp_module.hxx +++ b/src/SWIG_files/headers/LProp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Law_module.hxx b/src/SWIG_files/headers/Law_module.hxx index 4fbb5bdc3..61eeb83f4 100644 --- a/src/SWIG_files/headers/Law_module.hxx +++ b/src/SWIG_files/headers/Law_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/LocOpe_module.hxx b/src/SWIG_files/headers/LocOpe_module.hxx index 529bb2f05..3939cc574 100644 --- a/src/SWIG_files/headers/LocOpe_module.hxx +++ b/src/SWIG_files/headers/LocOpe_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/LocalAnalysis_module.hxx b/src/SWIG_files/headers/LocalAnalysis_module.hxx index be531463d..3a0a3cbde 100644 --- a/src/SWIG_files/headers/LocalAnalysis_module.hxx +++ b/src/SWIG_files/headers/LocalAnalysis_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/MAT2d_module.hxx b/src/SWIG_files/headers/MAT2d_module.hxx index 629bf9a9a..f5e9209fc 100644 --- a/src/SWIG_files/headers/MAT2d_module.hxx +++ b/src/SWIG_files/headers/MAT2d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/MAT_module.hxx b/src/SWIG_files/headers/MAT_module.hxx index f9c031828..622f40d3c 100644 --- a/src/SWIG_files/headers/MAT_module.hxx +++ b/src/SWIG_files/headers/MAT_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Media_module.hxx b/src/SWIG_files/headers/Media_module.hxx index 38862c8b8..48d186d86 100644 --- a/src/SWIG_files/headers/Media_module.hxx +++ b/src/SWIG_files/headers/Media_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/MeshVS_module.hxx b/src/SWIG_files/headers/MeshVS_module.hxx index cfed97b30..1a5b72535 100644 --- a/src/SWIG_files/headers/MeshVS_module.hxx +++ b/src/SWIG_files/headers/MeshVS_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Message_module.hxx b/src/SWIG_files/headers/Message_module.hxx index e15ed3844..c7df23199 100644 --- a/src/SWIG_files/headers/Message_module.hxx +++ b/src/SWIG_files/headers/Message_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/MoniTool_module.hxx b/src/SWIG_files/headers/MoniTool_module.hxx index ae3606086..ce554e5d6 100644 --- a/src/SWIG_files/headers/MoniTool_module.hxx +++ b/src/SWIG_files/headers/MoniTool_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/NCollection_module.hxx b/src/SWIG_files/headers/NCollection_module.hxx index 7910f6b6f..503030187 100644 --- a/src/SWIG_files/headers/NCollection_module.hxx +++ b/src/SWIG_files/headers/NCollection_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/NLPlate_module.hxx b/src/SWIG_files/headers/NLPlate_module.hxx index cf319597c..7e6c70913 100644 --- a/src/SWIG_files/headers/NLPlate_module.hxx +++ b/src/SWIG_files/headers/NLPlate_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/OSD_module.hxx b/src/SWIG_files/headers/OSD_module.hxx index 9db7f118f..986aa0d07 100644 --- a/src/SWIG_files/headers/OSD_module.hxx +++ b/src/SWIG_files/headers/OSD_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/PCDM_module.hxx b/src/SWIG_files/headers/PCDM_module.hxx index 9b24dccd5..e41ac2da0 100644 --- a/src/SWIG_files/headers/PCDM_module.hxx +++ b/src/SWIG_files/headers/PCDM_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/PLib_module.hxx b/src/SWIG_files/headers/PLib_module.hxx index ef34347f5..41120be23 100644 --- a/src/SWIG_files/headers/PLib_module.hxx +++ b/src/SWIG_files/headers/PLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Plate_module.hxx b/src/SWIG_files/headers/Plate_module.hxx index e6147aa43..13f2fe43c 100644 --- a/src/SWIG_files/headers/Plate_module.hxx +++ b/src/SWIG_files/headers/Plate_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Plugin_module.hxx b/src/SWIG_files/headers/Plugin_module.hxx index 2c49e267c..769463fcd 100644 --- a/src/SWIG_files/headers/Plugin_module.hxx +++ b/src/SWIG_files/headers/Plugin_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Poly_module.hxx b/src/SWIG_files/headers/Poly_module.hxx index 22b55de4a..76017e5ca 100644 --- a/src/SWIG_files/headers/Poly_module.hxx +++ b/src/SWIG_files/headers/Poly_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Precision_module.hxx b/src/SWIG_files/headers/Precision_module.hxx index 8a7634645..0dfe201e8 100644 --- a/src/SWIG_files/headers/Precision_module.hxx +++ b/src/SWIG_files/headers/Precision_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ProjLib_module.hxx b/src/SWIG_files/headers/ProjLib_module.hxx index 7066b25b6..ea1dfc651 100644 --- a/src/SWIG_files/headers/ProjLib_module.hxx +++ b/src/SWIG_files/headers/ProjLib_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Prs3d_module.hxx b/src/SWIG_files/headers/Prs3d_module.hxx index 839539752..d21efc63d 100644 --- a/src/SWIG_files/headers/Prs3d_module.hxx +++ b/src/SWIG_files/headers/Prs3d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/PrsDim_module.hxx b/src/SWIG_files/headers/PrsDim_module.hxx index bea401ae0..95d6157a1 100644 --- a/src/SWIG_files/headers/PrsDim_module.hxx +++ b/src/SWIG_files/headers/PrsDim_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/PrsMgr_module.hxx b/src/SWIG_files/headers/PrsMgr_module.hxx index 77a273960..b7446405a 100644 --- a/src/SWIG_files/headers/PrsMgr_module.hxx +++ b/src/SWIG_files/headers/PrsMgr_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Quantity_module.hxx b/src/SWIG_files/headers/Quantity_module.hxx index bc9c9ed38..06c13ba6c 100644 --- a/src/SWIG_files/headers/Quantity_module.hxx +++ b/src/SWIG_files/headers/Quantity_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWGltf_module.hxx b/src/SWIG_files/headers/RWGltf_module.hxx index b5b7b9f6b..33d88e671 100644 --- a/src/SWIG_files/headers/RWGltf_module.hxx +++ b/src/SWIG_files/headers/RWGltf_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWHeaderSection_module.hxx b/src/SWIG_files/headers/RWHeaderSection_module.hxx index 1818de453..8148fca7c 100644 --- a/src/SWIG_files/headers/RWHeaderSection_module.hxx +++ b/src/SWIG_files/headers/RWHeaderSection_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWMesh_module.hxx b/src/SWIG_files/headers/RWMesh_module.hxx index 78321a3ea..8737571b0 100644 --- a/src/SWIG_files/headers/RWMesh_module.hxx +++ b/src/SWIG_files/headers/RWMesh_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWObj_module.hxx b/src/SWIG_files/headers/RWObj_module.hxx index 66f5e8147..448e00b84 100644 --- a/src/SWIG_files/headers/RWObj_module.hxx +++ b/src/SWIG_files/headers/RWObj_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWPly_module.hxx b/src/SWIG_files/headers/RWPly_module.hxx index 33da751d0..d1fbb6761 100644 --- a/src/SWIG_files/headers/RWPly_module.hxx +++ b/src/SWIG_files/headers/RWPly_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepAP203_module.hxx b/src/SWIG_files/headers/RWStepAP203_module.hxx index 3399eddea..732863c45 100644 --- a/src/SWIG_files/headers/RWStepAP203_module.hxx +++ b/src/SWIG_files/headers/RWStepAP203_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepAP214_module.hxx b/src/SWIG_files/headers/RWStepAP214_module.hxx index b1e5cebe0..fdf4724fa 100644 --- a/src/SWIG_files/headers/RWStepAP214_module.hxx +++ b/src/SWIG_files/headers/RWStepAP214_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepAP242_module.hxx b/src/SWIG_files/headers/RWStepAP242_module.hxx index 4cff83217..e8ba84b76 100644 --- a/src/SWIG_files/headers/RWStepAP242_module.hxx +++ b/src/SWIG_files/headers/RWStepAP242_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepBasic_module.hxx b/src/SWIG_files/headers/RWStepBasic_module.hxx index 2f4254fe3..a12589525 100644 --- a/src/SWIG_files/headers/RWStepBasic_module.hxx +++ b/src/SWIG_files/headers/RWStepBasic_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepDimTol_module.hxx b/src/SWIG_files/headers/RWStepDimTol_module.hxx index f83a7622f..50d1626e6 100644 --- a/src/SWIG_files/headers/RWStepDimTol_module.hxx +++ b/src/SWIG_files/headers/RWStepDimTol_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepElement_module.hxx b/src/SWIG_files/headers/RWStepElement_module.hxx index a31ff85d4..25356ff4d 100644 --- a/src/SWIG_files/headers/RWStepElement_module.hxx +++ b/src/SWIG_files/headers/RWStepElement_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepFEA_module.hxx b/src/SWIG_files/headers/RWStepFEA_module.hxx index a19e6493e..89cee62c6 100644 --- a/src/SWIG_files/headers/RWStepFEA_module.hxx +++ b/src/SWIG_files/headers/RWStepFEA_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepGeom_module.hxx b/src/SWIG_files/headers/RWStepGeom_module.hxx index 8365a4dd5..2adeb0054 100644 --- a/src/SWIG_files/headers/RWStepGeom_module.hxx +++ b/src/SWIG_files/headers/RWStepGeom_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepKinematics_module.hxx b/src/SWIG_files/headers/RWStepKinematics_module.hxx index c722ae5e0..428f08f97 100644 --- a/src/SWIG_files/headers/RWStepKinematics_module.hxx +++ b/src/SWIG_files/headers/RWStepKinematics_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepRepr_module.hxx b/src/SWIG_files/headers/RWStepRepr_module.hxx index e893a4a66..58ac1ac52 100644 --- a/src/SWIG_files/headers/RWStepRepr_module.hxx +++ b/src/SWIG_files/headers/RWStepRepr_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepShape_module.hxx b/src/SWIG_files/headers/RWStepShape_module.hxx index 6ad258a85..89fd9cb6b 100644 --- a/src/SWIG_files/headers/RWStepShape_module.hxx +++ b/src/SWIG_files/headers/RWStepShape_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStepVisual_module.hxx b/src/SWIG_files/headers/RWStepVisual_module.hxx index 43b009621..5777e583b 100644 --- a/src/SWIG_files/headers/RWStepVisual_module.hxx +++ b/src/SWIG_files/headers/RWStepVisual_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/RWStl_module.hxx b/src/SWIG_files/headers/RWStl_module.hxx index 4f629147b..48aaf9378 100644 --- a/src/SWIG_files/headers/RWStl_module.hxx +++ b/src/SWIG_files/headers/RWStl_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Resource_module.hxx b/src/SWIG_files/headers/Resource_module.hxx index 4d608b204..ba79a8c17 100644 --- a/src/SWIG_files/headers/Resource_module.hxx +++ b/src/SWIG_files/headers/Resource_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/STEPCAFControl_module.hxx b/src/SWIG_files/headers/STEPCAFControl_module.hxx index 8e4408411..f686d33c7 100644 --- a/src/SWIG_files/headers/STEPCAFControl_module.hxx +++ b/src/SWIG_files/headers/STEPCAFControl_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/STEPConstruct_module.hxx b/src/SWIG_files/headers/STEPConstruct_module.hxx index 6a9da5c40..d4037bc0a 100644 --- a/src/SWIG_files/headers/STEPConstruct_module.hxx +++ b/src/SWIG_files/headers/STEPConstruct_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/STEPControl_module.hxx b/src/SWIG_files/headers/STEPControl_module.hxx index 1a9f0dbe1..492cce2c6 100644 --- a/src/SWIG_files/headers/STEPControl_module.hxx +++ b/src/SWIG_files/headers/STEPControl_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/STEPEdit_module.hxx b/src/SWIG_files/headers/STEPEdit_module.hxx index 3cd7f3fe9..e26892895 100644 --- a/src/SWIG_files/headers/STEPEdit_module.hxx +++ b/src/SWIG_files/headers/STEPEdit_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/STEPSelections_module.hxx b/src/SWIG_files/headers/STEPSelections_module.hxx index be37fd0fc..80c6d1061 100644 --- a/src/SWIG_files/headers/STEPSelections_module.hxx +++ b/src/SWIG_files/headers/STEPSelections_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Select3D_module.hxx b/src/SWIG_files/headers/Select3D_module.hxx index ac010a25e..d631b1a07 100644 --- a/src/SWIG_files/headers/Select3D_module.hxx +++ b/src/SWIG_files/headers/Select3D_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/SelectBasics_module.hxx b/src/SWIG_files/headers/SelectBasics_module.hxx index 19077370e..da3c59e91 100644 --- a/src/SWIG_files/headers/SelectBasics_module.hxx +++ b/src/SWIG_files/headers/SelectBasics_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/SelectMgr_module.hxx b/src/SWIG_files/headers/SelectMgr_module.hxx index 769c972c3..9b4170639 100644 --- a/src/SWIG_files/headers/SelectMgr_module.hxx +++ b/src/SWIG_files/headers/SelectMgr_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeAlgo_module.hxx b/src/SWIG_files/headers/ShapeAlgo_module.hxx index 2b70e4299..b84495dcd 100644 --- a/src/SWIG_files/headers/ShapeAlgo_module.hxx +++ b/src/SWIG_files/headers/ShapeAlgo_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeAnalysis_module.hxx b/src/SWIG_files/headers/ShapeAnalysis_module.hxx index 9114d613e..ea42ea9fe 100644 --- a/src/SWIG_files/headers/ShapeAnalysis_module.hxx +++ b/src/SWIG_files/headers/ShapeAnalysis_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeBuild_module.hxx b/src/SWIG_files/headers/ShapeBuild_module.hxx index 538bc76bb..161fd518f 100644 --- a/src/SWIG_files/headers/ShapeBuild_module.hxx +++ b/src/SWIG_files/headers/ShapeBuild_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeConstruct_module.hxx b/src/SWIG_files/headers/ShapeConstruct_module.hxx index 7d78a89c3..70ca7d840 100644 --- a/src/SWIG_files/headers/ShapeConstruct_module.hxx +++ b/src/SWIG_files/headers/ShapeConstruct_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeCustom_module.hxx b/src/SWIG_files/headers/ShapeCustom_module.hxx index 84f0dbe13..e821e06e9 100644 --- a/src/SWIG_files/headers/ShapeCustom_module.hxx +++ b/src/SWIG_files/headers/ShapeCustom_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeExtend_module.hxx b/src/SWIG_files/headers/ShapeExtend_module.hxx index 79f4e61fa..b9791fe35 100644 --- a/src/SWIG_files/headers/ShapeExtend_module.hxx +++ b/src/SWIG_files/headers/ShapeExtend_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeFix_module.hxx b/src/SWIG_files/headers/ShapeFix_module.hxx index 764dee81a..a1381777b 100644 --- a/src/SWIG_files/headers/ShapeFix_module.hxx +++ b/src/SWIG_files/headers/ShapeFix_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeProcessAPI_module.hxx b/src/SWIG_files/headers/ShapeProcessAPI_module.hxx index eb94f019f..31de1b549 100644 --- a/src/SWIG_files/headers/ShapeProcessAPI_module.hxx +++ b/src/SWIG_files/headers/ShapeProcessAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeProcess_module.hxx b/src/SWIG_files/headers/ShapeProcess_module.hxx index ac6d588a2..4d038f961 100644 --- a/src/SWIG_files/headers/ShapeProcess_module.hxx +++ b/src/SWIG_files/headers/ShapeProcess_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/ShapeUpgrade_module.hxx b/src/SWIG_files/headers/ShapeUpgrade_module.hxx index 9af26b2b9..f43095772 100644 --- a/src/SWIG_files/headers/ShapeUpgrade_module.hxx +++ b/src/SWIG_files/headers/ShapeUpgrade_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Standard_module.hxx b/src/SWIG_files/headers/Standard_module.hxx index fc0af64aa..3b352bad6 100644 --- a/src/SWIG_files/headers/Standard_module.hxx +++ b/src/SWIG_files/headers/Standard_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StdFail_module.hxx b/src/SWIG_files/headers/StdFail_module.hxx index 6d456ea94..523ee2b1f 100644 --- a/src/SWIG_files/headers/StdFail_module.hxx +++ b/src/SWIG_files/headers/StdFail_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StdPrs_module.hxx b/src/SWIG_files/headers/StdPrs_module.hxx index 6f2bf1e03..b6c3c500d 100644 --- a/src/SWIG_files/headers/StdPrs_module.hxx +++ b/src/SWIG_files/headers/StdPrs_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StdSelect_module.hxx b/src/SWIG_files/headers/StdSelect_module.hxx index 98e599cbc..1868bfad1 100644 --- a/src/SWIG_files/headers/StdSelect_module.hxx +++ b/src/SWIG_files/headers/StdSelect_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepAP203_module.hxx b/src/SWIG_files/headers/StepAP203_module.hxx index 6344460e1..557fb5bd2 100644 --- a/src/SWIG_files/headers/StepAP203_module.hxx +++ b/src/SWIG_files/headers/StepAP203_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepAP209_module.hxx b/src/SWIG_files/headers/StepAP209_module.hxx index 0b59ab661..e0004c505 100644 --- a/src/SWIG_files/headers/StepAP209_module.hxx +++ b/src/SWIG_files/headers/StepAP209_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepAP214_module.hxx b/src/SWIG_files/headers/StepAP214_module.hxx index ae645cb29..358f4d9bc 100644 --- a/src/SWIG_files/headers/StepAP214_module.hxx +++ b/src/SWIG_files/headers/StepAP214_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepAP242_module.hxx b/src/SWIG_files/headers/StepAP242_module.hxx index 694bcf6f3..8d4aadee4 100644 --- a/src/SWIG_files/headers/StepAP242_module.hxx +++ b/src/SWIG_files/headers/StepAP242_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepBasic_module.hxx b/src/SWIG_files/headers/StepBasic_module.hxx index 10ce15c42..e07286555 100644 --- a/src/SWIG_files/headers/StepBasic_module.hxx +++ b/src/SWIG_files/headers/StepBasic_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepData_module.hxx b/src/SWIG_files/headers/StepData_module.hxx index b1cfad606..f653a4983 100644 --- a/src/SWIG_files/headers/StepData_module.hxx +++ b/src/SWIG_files/headers/StepData_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepDimTol_module.hxx b/src/SWIG_files/headers/StepDimTol_module.hxx index b1b5a164c..0de273262 100644 --- a/src/SWIG_files/headers/StepDimTol_module.hxx +++ b/src/SWIG_files/headers/StepDimTol_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepElement_module.hxx b/src/SWIG_files/headers/StepElement_module.hxx index 921cc9a7e..356c3b626 100644 --- a/src/SWIG_files/headers/StepElement_module.hxx +++ b/src/SWIG_files/headers/StepElement_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepFEA_module.hxx b/src/SWIG_files/headers/StepFEA_module.hxx index f10898aba..42719d085 100644 --- a/src/SWIG_files/headers/StepFEA_module.hxx +++ b/src/SWIG_files/headers/StepFEA_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepGeom_module.hxx b/src/SWIG_files/headers/StepGeom_module.hxx index d9412206d..ca4310f65 100644 --- a/src/SWIG_files/headers/StepGeom_module.hxx +++ b/src/SWIG_files/headers/StepGeom_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepKinematics_module.hxx b/src/SWIG_files/headers/StepKinematics_module.hxx index 039b0f1dc..0aea07d03 100644 --- a/src/SWIG_files/headers/StepKinematics_module.hxx +++ b/src/SWIG_files/headers/StepKinematics_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepRepr_module.hxx b/src/SWIG_files/headers/StepRepr_module.hxx index 4f6f920dd..f044976d2 100644 --- a/src/SWIG_files/headers/StepRepr_module.hxx +++ b/src/SWIG_files/headers/StepRepr_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepShape_module.hxx b/src/SWIG_files/headers/StepShape_module.hxx index d1abaa284..2c9ac70ff 100644 --- a/src/SWIG_files/headers/StepShape_module.hxx +++ b/src/SWIG_files/headers/StepShape_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepToGeom_module.hxx b/src/SWIG_files/headers/StepToGeom_module.hxx index 3c749840e..7da3b94b1 100644 --- a/src/SWIG_files/headers/StepToGeom_module.hxx +++ b/src/SWIG_files/headers/StepToGeom_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepToTopoDS_module.hxx b/src/SWIG_files/headers/StepToTopoDS_module.hxx index a5b0c9933..3556bc7af 100644 --- a/src/SWIG_files/headers/StepToTopoDS_module.hxx +++ b/src/SWIG_files/headers/StepToTopoDS_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StepVisual_module.hxx b/src/SWIG_files/headers/StepVisual_module.hxx index 463e0951f..2b7e0cb54 100644 --- a/src/SWIG_files/headers/StepVisual_module.hxx +++ b/src/SWIG_files/headers/StepVisual_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/StlAPI_module.hxx b/src/SWIG_files/headers/StlAPI_module.hxx index 999712f5d..daa235e39 100644 --- a/src/SWIG_files/headers/StlAPI_module.hxx +++ b/src/SWIG_files/headers/StlAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Storage_module.hxx b/src/SWIG_files/headers/Storage_module.hxx index af8b6b1a9..d5886dab0 100644 --- a/src/SWIG_files/headers/Storage_module.hxx +++ b/src/SWIG_files/headers/Storage_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Sweep_module.hxx b/src/SWIG_files/headers/Sweep_module.hxx index c80488087..84b3f2ed2 100644 --- a/src/SWIG_files/headers/Sweep_module.hxx +++ b/src/SWIG_files/headers/Sweep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TColGeom2d_module.hxx b/src/SWIG_files/headers/TColGeom2d_module.hxx index de97900db..b958aad43 100644 --- a/src/SWIG_files/headers/TColGeom2d_module.hxx +++ b/src/SWIG_files/headers/TColGeom2d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TColGeom_module.hxx b/src/SWIG_files/headers/TColGeom_module.hxx index 1aed94b3b..3682e0500 100644 --- a/src/SWIG_files/headers/TColGeom_module.hxx +++ b/src/SWIG_files/headers/TColGeom_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TColQuantity_module.hxx b/src/SWIG_files/headers/TColQuantity_module.hxx index d58cf4c71..1607b9dfd 100644 --- a/src/SWIG_files/headers/TColQuantity_module.hxx +++ b/src/SWIG_files/headers/TColQuantity_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TColStd_module.hxx b/src/SWIG_files/headers/TColStd_module.hxx index 56c95f08d..50322d3a5 100644 --- a/src/SWIG_files/headers/TColStd_module.hxx +++ b/src/SWIG_files/headers/TColStd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TColgp_module.hxx b/src/SWIG_files/headers/TColgp_module.hxx index 7d39afd26..4bc7c8415 100644 --- a/src/SWIG_files/headers/TColgp_module.hxx +++ b/src/SWIG_files/headers/TColgp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TCollection_module.hxx b/src/SWIG_files/headers/TCollection_module.hxx index 4173d3339..52aa8df1f 100644 --- a/src/SWIG_files/headers/TCollection_module.hxx +++ b/src/SWIG_files/headers/TCollection_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TDF_module.hxx b/src/SWIG_files/headers/TDF_module.hxx index ccf45c419..231315ddf 100644 --- a/src/SWIG_files/headers/TDF_module.hxx +++ b/src/SWIG_files/headers/TDF_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TDataStd_module.hxx b/src/SWIG_files/headers/TDataStd_module.hxx index 75f0e9461..36c99afb1 100644 --- a/src/SWIG_files/headers/TDataStd_module.hxx +++ b/src/SWIG_files/headers/TDataStd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TDataXtd_module.hxx b/src/SWIG_files/headers/TDataXtd_module.hxx index f28e3c7a5..3cd45b98f 100644 --- a/src/SWIG_files/headers/TDataXtd_module.hxx +++ b/src/SWIG_files/headers/TDataXtd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TDocStd_module.hxx b/src/SWIG_files/headers/TDocStd_module.hxx index 44fd91e94..5aad935f6 100644 --- a/src/SWIG_files/headers/TDocStd_module.hxx +++ b/src/SWIG_files/headers/TDocStd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TFunction_module.hxx b/src/SWIG_files/headers/TFunction_module.hxx index fefcb366d..08f4b7265 100644 --- a/src/SWIG_files/headers/TFunction_module.hxx +++ b/src/SWIG_files/headers/TFunction_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TNaming_module.hxx b/src/SWIG_files/headers/TNaming_module.hxx index 0a919dceb..740db670b 100644 --- a/src/SWIG_files/headers/TNaming_module.hxx +++ b/src/SWIG_files/headers/TNaming_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TObj_module.hxx b/src/SWIG_files/headers/TObj_module.hxx index 6d818a845..bb3ae0efa 100644 --- a/src/SWIG_files/headers/TObj_module.hxx +++ b/src/SWIG_files/headers/TObj_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TPrsStd_module.hxx b/src/SWIG_files/headers/TPrsStd_module.hxx index e17ec7728..554b34b9b 100644 --- a/src/SWIG_files/headers/TPrsStd_module.hxx +++ b/src/SWIG_files/headers/TPrsStd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TShort_module.hxx b/src/SWIG_files/headers/TShort_module.hxx index 77cf46843..34721ea58 100644 --- a/src/SWIG_files/headers/TShort_module.hxx +++ b/src/SWIG_files/headers/TShort_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopAbs_module.hxx b/src/SWIG_files/headers/TopAbs_module.hxx index f775eaeb9..ae964e530 100644 --- a/src/SWIG_files/headers/TopAbs_module.hxx +++ b/src/SWIG_files/headers/TopAbs_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopBas_module.hxx b/src/SWIG_files/headers/TopBas_module.hxx index ff40b31bd..38ec4b33c 100644 --- a/src/SWIG_files/headers/TopBas_module.hxx +++ b/src/SWIG_files/headers/TopBas_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopClass_module.hxx b/src/SWIG_files/headers/TopClass_module.hxx index fe088d87a..6cf947d18 100644 --- a/src/SWIG_files/headers/TopClass_module.hxx +++ b/src/SWIG_files/headers/TopClass_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopCnx_module.hxx b/src/SWIG_files/headers/TopCnx_module.hxx index 99d6729f6..dbb7fecaa 100644 --- a/src/SWIG_files/headers/TopCnx_module.hxx +++ b/src/SWIG_files/headers/TopCnx_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopExp_module.hxx b/src/SWIG_files/headers/TopExp_module.hxx index f38d8d67c..2cfe2fda8 100644 --- a/src/SWIG_files/headers/TopExp_module.hxx +++ b/src/SWIG_files/headers/TopExp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopLoc_module.hxx b/src/SWIG_files/headers/TopLoc_module.hxx index 972a1806f..7720725db 100644 --- a/src/SWIG_files/headers/TopLoc_module.hxx +++ b/src/SWIG_files/headers/TopLoc_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopOpeBRepBuild_module.hxx b/src/SWIG_files/headers/TopOpeBRepBuild_module.hxx index bdf46951c..04c3cd8b2 100644 --- a/src/SWIG_files/headers/TopOpeBRepBuild_module.hxx +++ b/src/SWIG_files/headers/TopOpeBRepBuild_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopOpeBRepDS_module.hxx b/src/SWIG_files/headers/TopOpeBRepDS_module.hxx index eed9961d5..6ae7756bb 100644 --- a/src/SWIG_files/headers/TopOpeBRepDS_module.hxx +++ b/src/SWIG_files/headers/TopOpeBRepDS_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopOpeBRepTool_module.hxx b/src/SWIG_files/headers/TopOpeBRepTool_module.hxx index ec300f2c3..e4d386b39 100644 --- a/src/SWIG_files/headers/TopOpeBRepTool_module.hxx +++ b/src/SWIG_files/headers/TopOpeBRepTool_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopOpeBRep_module.hxx b/src/SWIG_files/headers/TopOpeBRep_module.hxx index 88fce1127..1523312fd 100644 --- a/src/SWIG_files/headers/TopOpeBRep_module.hxx +++ b/src/SWIG_files/headers/TopOpeBRep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopTools_module.hxx b/src/SWIG_files/headers/TopTools_module.hxx index e9ab0041a..0db7db37e 100644 --- a/src/SWIG_files/headers/TopTools_module.hxx +++ b/src/SWIG_files/headers/TopTools_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopTrans_module.hxx b/src/SWIG_files/headers/TopTrans_module.hxx index 176a73be1..a421b860e 100644 --- a/src/SWIG_files/headers/TopTrans_module.hxx +++ b/src/SWIG_files/headers/TopTrans_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopoDSToStep_module.hxx b/src/SWIG_files/headers/TopoDSToStep_module.hxx index a63941da8..8b7630ac0 100644 --- a/src/SWIG_files/headers/TopoDSToStep_module.hxx +++ b/src/SWIG_files/headers/TopoDSToStep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TopoDS_module.hxx b/src/SWIG_files/headers/TopoDS_module.hxx index e91e32a96..b89ec7813 100644 --- a/src/SWIG_files/headers/TopoDS_module.hxx +++ b/src/SWIG_files/headers/TopoDS_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/TransferBRep_module.hxx b/src/SWIG_files/headers/TransferBRep_module.hxx index 89d4492dc..a28e939df 100644 --- a/src/SWIG_files/headers/TransferBRep_module.hxx +++ b/src/SWIG_files/headers/TransferBRep_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Transfer_module.hxx b/src/SWIG_files/headers/Transfer_module.hxx index a90686251..0812f7331 100644 --- a/src/SWIG_files/headers/Transfer_module.hxx +++ b/src/SWIG_files/headers/Transfer_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/UTL_module.hxx b/src/SWIG_files/headers/UTL_module.hxx index 6ae217f35..3f4f37fbe 100644 --- a/src/SWIG_files/headers/UTL_module.hxx +++ b/src/SWIG_files/headers/UTL_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/UnitsAPI_module.hxx b/src/SWIG_files/headers/UnitsAPI_module.hxx index aa42975ec..51c7abfd1 100644 --- a/src/SWIG_files/headers/UnitsAPI_module.hxx +++ b/src/SWIG_files/headers/UnitsAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/UnitsMethods_module.hxx b/src/SWIG_files/headers/UnitsMethods_module.hxx index 07752581a..ea25dccb7 100644 --- a/src/SWIG_files/headers/UnitsMethods_module.hxx +++ b/src/SWIG_files/headers/UnitsMethods_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Units_module.hxx b/src/SWIG_files/headers/Units_module.hxx index 94a320f8c..b4a088335 100644 --- a/src/SWIG_files/headers/Units_module.hxx +++ b/src/SWIG_files/headers/Units_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/V3d_module.hxx b/src/SWIG_files/headers/V3d_module.hxx index 807978249..0219ba006 100644 --- a/src/SWIG_files/headers/V3d_module.hxx +++ b/src/SWIG_files/headers/V3d_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/VrmlAPI_module.hxx b/src/SWIG_files/headers/VrmlAPI_module.hxx index 7bc08e9a3..9d6d54ad6 100644 --- a/src/SWIG_files/headers/VrmlAPI_module.hxx +++ b/src/SWIG_files/headers/VrmlAPI_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/VrmlConverter_module.hxx b/src/SWIG_files/headers/VrmlConverter_module.hxx index 3100acd24..5f68d63ce 100644 --- a/src/SWIG_files/headers/VrmlConverter_module.hxx +++ b/src/SWIG_files/headers/VrmlConverter_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/VrmlData_module.hxx b/src/SWIG_files/headers/VrmlData_module.hxx index 2e8fc0a5d..d27b84078 100644 --- a/src/SWIG_files/headers/VrmlData_module.hxx +++ b/src/SWIG_files/headers/VrmlData_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/Vrml_module.hxx b/src/SWIG_files/headers/Vrml_module.hxx index 3020044dd..fa2204e7c 100644 --- a/src/SWIG_files/headers/Vrml_module.hxx +++ b/src/SWIG_files/headers/Vrml_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XBRepMesh_module.hxx b/src/SWIG_files/headers/XBRepMesh_module.hxx index 1a643baec..d68c47a7b 100644 --- a/src/SWIG_files/headers/XBRepMesh_module.hxx +++ b/src/SWIG_files/headers/XBRepMesh_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XCAFApp_module.hxx b/src/SWIG_files/headers/XCAFApp_module.hxx index fe813f8f9..c4f2d85df 100644 --- a/src/SWIG_files/headers/XCAFApp_module.hxx +++ b/src/SWIG_files/headers/XCAFApp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XCAFDimTolObjects_module.hxx b/src/SWIG_files/headers/XCAFDimTolObjects_module.hxx index 20c9ba65b..5b060f836 100644 --- a/src/SWIG_files/headers/XCAFDimTolObjects_module.hxx +++ b/src/SWIG_files/headers/XCAFDimTolObjects_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XCAFDoc_module.hxx b/src/SWIG_files/headers/XCAFDoc_module.hxx index 1c648bb87..8fa1f8961 100644 --- a/src/SWIG_files/headers/XCAFDoc_module.hxx +++ b/src/SWIG_files/headers/XCAFDoc_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XCAFNoteObjects_module.hxx b/src/SWIG_files/headers/XCAFNoteObjects_module.hxx index 068cf18c3..c409101f1 100644 --- a/src/SWIG_files/headers/XCAFNoteObjects_module.hxx +++ b/src/SWIG_files/headers/XCAFNoteObjects_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XCAFPrs_module.hxx b/src/SWIG_files/headers/XCAFPrs_module.hxx index 204780109..5c2caa39c 100644 --- a/src/SWIG_files/headers/XCAFPrs_module.hxx +++ b/src/SWIG_files/headers/XCAFPrs_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XCAFView_module.hxx b/src/SWIG_files/headers/XCAFView_module.hxx index 8d75c62f5..ec4df0ad6 100644 --- a/src/SWIG_files/headers/XCAFView_module.hxx +++ b/src/SWIG_files/headers/XCAFView_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XSControl_module.hxx b/src/SWIG_files/headers/XSControl_module.hxx index c684ac658..7b9f6d304 100644 --- a/src/SWIG_files/headers/XSControl_module.hxx +++ b/src/SWIG_files/headers/XSControl_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlDrivers_module.hxx b/src/SWIG_files/headers/XmlDrivers_module.hxx index 0d4fee8b9..5494b7400 100644 --- a/src/SWIG_files/headers/XmlDrivers_module.hxx +++ b/src/SWIG_files/headers/XmlDrivers_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlLDrivers_module.hxx b/src/SWIG_files/headers/XmlLDrivers_module.hxx index a679a6dcf..49860b6c3 100644 --- a/src/SWIG_files/headers/XmlLDrivers_module.hxx +++ b/src/SWIG_files/headers/XmlLDrivers_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlMDF_module.hxx b/src/SWIG_files/headers/XmlMDF_module.hxx index 7446e4d4b..2135a79ee 100644 --- a/src/SWIG_files/headers/XmlMDF_module.hxx +++ b/src/SWIG_files/headers/XmlMDF_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlMDataStd_module.hxx b/src/SWIG_files/headers/XmlMDataStd_module.hxx index 1ae46747b..214e523d6 100644 --- a/src/SWIG_files/headers/XmlMDataStd_module.hxx +++ b/src/SWIG_files/headers/XmlMDataStd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlMDataXtd_module.hxx b/src/SWIG_files/headers/XmlMDataXtd_module.hxx index e037c5c00..6d3e38a8e 100644 --- a/src/SWIG_files/headers/XmlMDataXtd_module.hxx +++ b/src/SWIG_files/headers/XmlMDataXtd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlMDocStd_module.hxx b/src/SWIG_files/headers/XmlMDocStd_module.hxx index 8f1f8c077..db3dd59ec 100644 --- a/src/SWIG_files/headers/XmlMDocStd_module.hxx +++ b/src/SWIG_files/headers/XmlMDocStd_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlMFunction_module.hxx b/src/SWIG_files/headers/XmlMFunction_module.hxx index 396ed69ba..b80019198 100644 --- a/src/SWIG_files/headers/XmlMFunction_module.hxx +++ b/src/SWIG_files/headers/XmlMFunction_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlMNaming_module.hxx b/src/SWIG_files/headers/XmlMNaming_module.hxx index 5ae8828ac..25010679d 100644 --- a/src/SWIG_files/headers/XmlMNaming_module.hxx +++ b/src/SWIG_files/headers/XmlMNaming_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlMXCAFDoc_module.hxx b/src/SWIG_files/headers/XmlMXCAFDoc_module.hxx index 7d8ae7ae6..965177368 100644 --- a/src/SWIG_files/headers/XmlMXCAFDoc_module.hxx +++ b/src/SWIG_files/headers/XmlMXCAFDoc_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlObjMgt_module.hxx b/src/SWIG_files/headers/XmlObjMgt_module.hxx index f55f04895..439fa7dcd 100644 --- a/src/SWIG_files/headers/XmlObjMgt_module.hxx +++ b/src/SWIG_files/headers/XmlObjMgt_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlTObjDrivers_module.hxx b/src/SWIG_files/headers/XmlTObjDrivers_module.hxx index 7b943d401..a843f910b 100644 --- a/src/SWIG_files/headers/XmlTObjDrivers_module.hxx +++ b/src/SWIG_files/headers/XmlTObjDrivers_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/XmlXCAFDrivers_module.hxx b/src/SWIG_files/headers/XmlXCAFDrivers_module.hxx index 8a74b0a3f..d25c04fa8 100644 --- a/src/SWIG_files/headers/XmlXCAFDrivers_module.hxx +++ b/src/SWIG_files/headers/XmlXCAFDrivers_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/gce_module.hxx b/src/SWIG_files/headers/gce_module.hxx index 1c0d47f7e..7992d06fe 100644 --- a/src/SWIG_files/headers/gce_module.hxx +++ b/src/SWIG_files/headers/gce_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/gp_module.hxx b/src/SWIG_files/headers/gp_module.hxx index 204f91059..d0f66a4b4 100644 --- a/src/SWIG_files/headers/gp_module.hxx +++ b/src/SWIG_files/headers/gp_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/headers/math_module.hxx b/src/SWIG_files/headers/math_module.hxx index 84c8f6cc3..7d0e677c0 100644 --- a/src/SWIG_files/headers/math_module.hxx +++ b/src/SWIG_files/headers/math_module.hxx @@ -1,5 +1,5 @@ /* -Copyright 2008-2024 Thomas Paviot (tpaviot@gmail.com) +Copyright 2008-2025 Thomas Paviot (tpaviot@gmail.com) This file is part of pythonOCC. pythonOCC is free software: you can redistribute it and/or modify diff --git a/src/SWIG_files/wrapper/AIS.i b/src/SWIG_files/wrapper/AIS.i index 8e9561ba2..3def7aa43 100644 --- a/src/SWIG_files/wrapper/AIS.i +++ b/src/SWIG_files/wrapper/AIS.i @@ -619,6 +619,12 @@ AIS_WalkRotation_Roll = AIS_WalkRotation.AIS_WalkRotation_Roll %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = AIS_ListIteratorOfListOfInteractive(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(AIS_MouseGestureMap) NCollection_DataMap; @@ -632,6 +638,12 @@ Array1ExtendIter(opencascade::handle) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = AIS_ListIteratorOfNListOfEntityOwner(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/AIS.pyi b/src/SWIG_files/wrapper/AIS.pyi index be2628d05..759caa82a 100644 --- a/src/SWIG_files/wrapper/AIS.pyi +++ b/src/SWIG_files/wrapper/AIS.pyi @@ -30,18 +30,18 @@ AIS_AnimationTimer = NewType("AIS_AnimationTimer", Media_Timer) AIS_DisplayStatus = NewType("AIS_DisplayStatus", PrsMgr_DisplayStatus) class AIS_ListOfInteractive: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: AIS_ListOfInteractive) -> AIS_ListOfInteractive: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class AIS_NArray1OfEntityOwner: @overload @@ -68,18 +68,18 @@ class AIS_NArray1OfEntityOwner: def SetValue(self, theIndex: int, theValue: False) -> None: ... class AIS_NListOfEntityOwner: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: AIS_NListOfEntityOwner) -> AIS_NListOfEntityOwner: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class AIS_DisplayMode(IntEnum): AIS_WireFrame: int = ... @@ -122,7 +122,9 @@ AIS_KindOfInteractive_Shape = AIS_KindOfInteractive.AIS_KindOfInteractive_Shape AIS_KindOfInteractive_Object = AIS_KindOfInteractive.AIS_KindOfInteractive_Object AIS_KindOfInteractive_Relation = AIS_KindOfInteractive.AIS_KindOfInteractive_Relation AIS_KindOfInteractive_Dimension = AIS_KindOfInteractive.AIS_KindOfInteractive_Dimension -AIS_KindOfInteractive_LightSource = AIS_KindOfInteractive.AIS_KindOfInteractive_LightSource +AIS_KindOfInteractive_LightSource = ( + AIS_KindOfInteractive.AIS_KindOfInteractive_LightSource +) AIS_KOI_None = AIS_KindOfInteractive.AIS_KOI_None AIS_KOI_Datum = AIS_KindOfInteractive.AIS_KOI_Datum AIS_KOI_Shape = AIS_KindOfInteractive.AIS_KOI_Shape @@ -172,9 +174,12 @@ class AIS_NavigationMode(IntEnum): AIS_NavigationMode_FirstPersonWalk: int = ... AIS_NavigationMode_Orbit = AIS_NavigationMode.AIS_NavigationMode_Orbit -AIS_NavigationMode_FirstPersonFlight = AIS_NavigationMode.AIS_NavigationMode_FirstPersonFlight -AIS_NavigationMode_FirstPersonWalk = AIS_NavigationMode.AIS_NavigationMode_FirstPersonWalk - +AIS_NavigationMode_FirstPersonFlight = ( + AIS_NavigationMode.AIS_NavigationMode_FirstPersonFlight +) +AIS_NavigationMode_FirstPersonWalk = ( + AIS_NavigationMode.AIS_NavigationMode_FirstPersonWalk +) class AIS_RotationMode(IntEnum): AIS_RotationMode_BndBoxActive: int = ... @@ -189,7 +194,6 @@ AIS_RotationMode_PickCenter = AIS_RotationMode.AIS_RotationMode_PickCenter AIS_RotationMode_CameraAt = AIS_RotationMode.AIS_RotationMode_CameraAt AIS_RotationMode_BndBoxScene = AIS_RotationMode.AIS_RotationMode_BndBoxScene - class AIS_SelectStatus(IntEnum): AIS_SS_Added: int = ... AIS_SS_Removed: int = ... @@ -204,9 +208,15 @@ class AIS_SelectionModesConcurrency(IntEnum): AIS_SelectionModesConcurrency_GlobalOrLocal: int = ... AIS_SelectionModesConcurrency_Multiple: int = ... -AIS_SelectionModesConcurrency_Single = AIS_SelectionModesConcurrency.AIS_SelectionModesConcurrency_Single -AIS_SelectionModesConcurrency_GlobalOrLocal = AIS_SelectionModesConcurrency.AIS_SelectionModesConcurrency_GlobalOrLocal -AIS_SelectionModesConcurrency_Multiple = AIS_SelectionModesConcurrency.AIS_SelectionModesConcurrency_Multiple +AIS_SelectionModesConcurrency_Single = ( + AIS_SelectionModesConcurrency.AIS_SelectionModesConcurrency_Single +) +AIS_SelectionModesConcurrency_GlobalOrLocal = ( + AIS_SelectionModesConcurrency.AIS_SelectionModesConcurrency_GlobalOrLocal +) +AIS_SelectionModesConcurrency_Multiple = ( + AIS_SelectionModesConcurrency.AIS_SelectionModesConcurrency_Multiple +) class AIS_SelectionScheme(IntEnum): AIS_SelectionScheme_UNKNOWN: int = ... @@ -261,10 +271,18 @@ class AIS_TrihedronSelectionMode(IntEnum): AIS_TrihedronSelectionMode_Axes: int = ... AIS_TrihedronSelectionMode_MainPlanes: int = ... -AIS_TrihedronSelectionMode_EntireObject = AIS_TrihedronSelectionMode.AIS_TrihedronSelectionMode_EntireObject -AIS_TrihedronSelectionMode_Origin = AIS_TrihedronSelectionMode.AIS_TrihedronSelectionMode_Origin -AIS_TrihedronSelectionMode_Axes = AIS_TrihedronSelectionMode.AIS_TrihedronSelectionMode_Axes -AIS_TrihedronSelectionMode_MainPlanes = AIS_TrihedronSelectionMode.AIS_TrihedronSelectionMode_MainPlanes +AIS_TrihedronSelectionMode_EntireObject = ( + AIS_TrihedronSelectionMode.AIS_TrihedronSelectionMode_EntireObject +) +AIS_TrihedronSelectionMode_Origin = ( + AIS_TrihedronSelectionMode.AIS_TrihedronSelectionMode_Origin +) +AIS_TrihedronSelectionMode_Axes = ( + AIS_TrihedronSelectionMode.AIS_TrihedronSelectionMode_Axes +) +AIS_TrihedronSelectionMode_MainPlanes = ( + AIS_TrihedronSelectionMode.AIS_TrihedronSelectionMode_MainPlanes +) class AIS_TypeOfAttribute(IntEnum): AIS_TOA_Line: int = ... @@ -339,9 +357,13 @@ class AIS_ViewSelectionTool(IntEnum): AIS_ViewSelectionTool_ZoomWindow: int = ... AIS_ViewSelectionTool_Picking = AIS_ViewSelectionTool.AIS_ViewSelectionTool_Picking -AIS_ViewSelectionTool_RubberBand = AIS_ViewSelectionTool.AIS_ViewSelectionTool_RubberBand +AIS_ViewSelectionTool_RubberBand = ( + AIS_ViewSelectionTool.AIS_ViewSelectionTool_RubberBand +) AIS_ViewSelectionTool_Polygon = AIS_ViewSelectionTool.AIS_ViewSelectionTool_Polygon -AIS_ViewSelectionTool_ZoomWindow = AIS_ViewSelectionTool.AIS_ViewSelectionTool_ZoomWindow +AIS_ViewSelectionTool_ZoomWindow = ( + AIS_ViewSelectionTool.AIS_ViewSelectionTool_ZoomWindow +) class AIS_ViewInputBufferType(IntEnum): AIS_ViewInputBufferType_UI: int = ... @@ -386,13 +408,21 @@ class AIS_Animation(Standard_Transient): def OwnDuration(self) -> float: ... def Pause(self) -> None: ... def Remove(self, theAnimation: AIS_Animation) -> bool: ... - def Replace(self, theAnimationOld: AIS_Animation, theAnimationNew: AIS_Animation) -> bool: ... + def Replace( + self, theAnimationOld: AIS_Animation, theAnimationNew: AIS_Animation + ) -> bool: ... def SetOwnDuration(self, theDuration: float) -> None: ... def SetStartPts(self, thePtsStart: float) -> None: ... def SetTimer(self, theTimer: Media_Timer) -> None: ... def Start(self, theToUpdate: bool) -> None: ... def StartPts(self) -> float: ... - def StartTimer(self, theStartPts: float, thePlaySpeed: float, theToUpdate: bool, theToStopTimer: Optional[bool] = False) -> None: ... + def StartTimer( + self, + theStartPts: float, + thePlaySpeed: float, + theToUpdate: bool, + theToStopTimer: Optional[bool] = False, + ) -> None: ... def Stop(self) -> None: ... def Timer(self) -> Media_Timer: ... def Update(self, thePts: float) -> bool: ... @@ -448,23 +478,38 @@ class AIS_ExclusionFilter(SelectMgr_Filter): @overload def __init__(self, ExclusionFlagOn: Optional[bool] = True) -> None: ... @overload - def __init__(self, TypeToExclude: AIS_KindOfInteractive, ExclusionFlagOn: Optional[bool] = True) -> None: ... + def __init__( + self, + TypeToExclude: AIS_KindOfInteractive, + ExclusionFlagOn: Optional[bool] = True, + ) -> None: ... @overload - def __init__(self, TypeToExclude: AIS_KindOfInteractive, SignatureInType: int, ExclusionFlagOn: Optional[bool] = True) -> None: ... + def __init__( + self, + TypeToExclude: AIS_KindOfInteractive, + SignatureInType: int, + ExclusionFlagOn: Optional[bool] = True, + ) -> None: ... @overload def Add(self, TypeToExclude: AIS_KindOfInteractive) -> bool: ... @overload - def Add(self, TypeToExclude: AIS_KindOfInteractive, SignatureInType: int) -> bool: ... + def Add( + self, TypeToExclude: AIS_KindOfInteractive, SignatureInType: int + ) -> bool: ... def Clear(self) -> None: ... def IsExclusionFlagOn(self) -> bool: ... def IsOk(self, anObj: SelectMgr_EntityOwner) -> bool: ... def IsStored(self, aType: AIS_KindOfInteractive) -> bool: ... - def ListOfSignature(self, aType: AIS_KindOfInteractive, TheStoredList: TColStd_ListOfInteger) -> None: ... + def ListOfSignature( + self, aType: AIS_KindOfInteractive, TheStoredList: TColStd_ListOfInteger + ) -> None: ... def ListOfStoredTypes(self, TheList: TColStd_ListOfInteger) -> None: ... @overload def Remove(self, TypeToExclude: AIS_KindOfInteractive) -> bool: ... @overload - def Remove(self, TypeToExclude: AIS_KindOfInteractive, SignatureInType: int) -> bool: ... + def Remove( + self, TypeToExclude: AIS_KindOfInteractive, SignatureInType: int + ) -> bool: ... def SetExclusionFlag(self, theStatus: bool) -> None: ... class AIS_GlobalStatus(Standard_Transient): @@ -491,33 +536,58 @@ class AIS_GraphicTool: @staticmethod def GetInteriorColor(aDrawer: Prs3d_Drawer, aColor: Quantity_Color) -> None: ... @staticmethod - def GetLineAtt(aDrawer: Prs3d_Drawer, TheTypeOfAttributes: AIS_TypeOfAttribute) -> Tuple[Quantity_NameOfColor, float, Aspect_TypeOfLine]: ... + def GetLineAtt( + aDrawer: Prs3d_Drawer, TheTypeOfAttributes: AIS_TypeOfAttribute + ) -> Tuple[Quantity_NameOfColor, float, Aspect_TypeOfLine]: ... @overload @staticmethod - def GetLineColor(aDrawer: Prs3d_Drawer, TheTypeOfAttributes: AIS_TypeOfAttribute) -> Quantity_NameOfColor: ... + def GetLineColor( + aDrawer: Prs3d_Drawer, TheTypeOfAttributes: AIS_TypeOfAttribute + ) -> Quantity_NameOfColor: ... @overload @staticmethod - def GetLineColor(aDrawer: Prs3d_Drawer, TheTypeOfAttributes: AIS_TypeOfAttribute, TheLineColor: Quantity_Color) -> None: ... + def GetLineColor( + aDrawer: Prs3d_Drawer, + TheTypeOfAttributes: AIS_TypeOfAttribute, + TheLineColor: Quantity_Color, + ) -> None: ... @staticmethod - def GetLineType(aDrawer: Prs3d_Drawer, TheTypeOfAttributes: AIS_TypeOfAttribute) -> Aspect_TypeOfLine: ... + def GetLineType( + aDrawer: Prs3d_Drawer, TheTypeOfAttributes: AIS_TypeOfAttribute + ) -> Aspect_TypeOfLine: ... @staticmethod - def GetLineWidth(aDrawer: Prs3d_Drawer, TheTypeOfAttributes: AIS_TypeOfAttribute) -> float: ... + def GetLineWidth( + aDrawer: Prs3d_Drawer, TheTypeOfAttributes: AIS_TypeOfAttribute + ) -> float: ... @staticmethod def GetMaterial(aDrawer: Prs3d_Drawer) -> Graphic3d_MaterialAspect: ... class AIS_InteractiveContext(Standard_Transient): def __init__(self, MainViewer: V3d_Viewer) -> None: ... @overload - def Activate(self, theObj: AIS_InteractiveObject, theMode: Optional[int] = 0, theIsForce: Optional[bool] = False) -> None: ... + def Activate( + self, + theObj: AIS_InteractiveObject, + theMode: Optional[int] = 0, + theIsForce: Optional[bool] = False, + ) -> None: ... @overload def Activate(self, theMode: int, theIsForce: Optional[bool] = False) -> None: ... - def ActivatedModes(self, anIobj: AIS_InteractiveObject, theList: TColStd_ListOfInteger) -> None: ... + def ActivatedModes( + self, anIobj: AIS_InteractiveObject, theList: TColStd_ListOfInteger + ) -> None: ... def AddFilter(self, theFilter: SelectMgr_Filter) -> None: ... - def AddOrRemoveCurrentObject(self, theObj: AIS_InteractiveObject, theIsToUpdateViewer: bool) -> None: ... + def AddOrRemoveCurrentObject( + self, theObj: AIS_InteractiveObject, theIsToUpdateViewer: bool + ) -> None: ... @overload - def AddOrRemoveSelected(self, theObject: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... + def AddOrRemoveSelected( + self, theObject: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... @overload - def AddOrRemoveSelected(self, theOwner: SelectMgr_EntityOwner, theToUpdateViewer: bool) -> None: ... + def AddOrRemoveSelected( + self, theOwner: SelectMgr_EntityOwner, theToUpdateViewer: bool + ) -> None: ... @overload def AddSelect(self, theObject: SelectMgr_EntityOwner) -> AIS_StatusOfPick: ... @overload @@ -532,7 +602,9 @@ class AIS_InteractiveContext(Standard_Transient): def ClearActiveSensitive(self, aView: V3d_View) -> None: ... def ClearCurrents(self, theToUpdateViewer: bool) -> None: ... def ClearDetected(self, theToRedrawImmediate: Optional[bool] = False) -> bool: ... - def ClearPrs(self, theIObj: AIS_InteractiveObject, theMode: int, theToUpdateViewer: bool) -> None: ... + def ClearPrs( + self, theIObj: AIS_InteractiveObject, theMode: int, theToUpdateViewer: bool + ) -> None: ... def ClearSelected(self, theToUpdateViewer: bool) -> None: ... def Color(self, aniobj: AIS_InteractiveObject, acolor: Quantity_Color) -> None: ... def Current(self) -> AIS_InteractiveObject: ... @@ -555,45 +627,84 @@ class AIS_InteractiveContext(Standard_Transient): def DeviationAngle(self) -> float: ... def DeviationCoefficient(self) -> float: ... def DisableDrawHiddenLine(self) -> None: ... - def Disconnect(self, theAssembly: AIS_InteractiveObject, theObjToDisconnect: Optional[AIS_InteractiveObject] = None) -> None: ... - @overload - def Display(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... - @overload - def Display(self, theIObj: AIS_InteractiveObject, theDispMode: int, theSelectionMode: int, theToUpdateViewer: bool, theDispStatus: Optional[PrsMgr_DisplayStatus] = PrsMgr_DisplayStatus_None) -> None: ... - @overload - def Display(self, theIObj: AIS_InteractiveObject, theDispMode: int, theSelectionMode: int, theToUpdateViewer: bool, theToAllowDecomposition: bool, theDispStatus: Optional[PrsMgr_DisplayStatus] = PrsMgr_DisplayStatus_None) -> None: ... + def Disconnect( + self, + theAssembly: AIS_InteractiveObject, + theObjToDisconnect: Optional[AIS_InteractiveObject] = None, + ) -> None: ... + @overload + def Display( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... + @overload + def Display( + self, + theIObj: AIS_InteractiveObject, + theDispMode: int, + theSelectionMode: int, + theToUpdateViewer: bool, + theDispStatus: Optional[PrsMgr_DisplayStatus] = PrsMgr_DisplayStatus_None, + ) -> None: ... + @overload + def Display( + self, + theIObj: AIS_InteractiveObject, + theDispMode: int, + theSelectionMode: int, + theToUpdateViewer: bool, + theToAllowDecomposition: bool, + theDispStatus: Optional[PrsMgr_DisplayStatus] = PrsMgr_DisplayStatus_None, + ) -> None: ... @overload def DisplayActiveSensitive(self, aView: V3d_View) -> None: ... @overload - def DisplayActiveSensitive(self, anObject: AIS_InteractiveObject, aView: V3d_View) -> None: ... + def DisplayActiveSensitive( + self, anObject: AIS_InteractiveObject, aView: V3d_View + ) -> None: ... def DisplayAll(self, theToUpdateViewer: bool) -> None: ... def DisplayMode(self) -> int: ... - def DisplayPriority(self, theIObj: AIS_InteractiveObject) -> Graphic3d_DisplayPriority: ... + def DisplayPriority( + self, theIObj: AIS_InteractiveObject + ) -> Graphic3d_DisplayPriority: ... def DisplaySelected(self, theToUpdateViewer: bool) -> None: ... def DisplayStatus(self, anIobj: AIS_InteractiveObject) -> PrsMgr_DisplayStatus: ... @overload def DisplayedObjects(self, aListOfIO: AIS_ListOfInteractive) -> None: ... @overload - def DisplayedObjects(self, theWhichKind: AIS_KindOfInteractive, theWhichSignature: int, theListOfIO: AIS_ListOfInteractive) -> None: ... + def DisplayedObjects( + self, + theWhichKind: AIS_KindOfInteractive, + theWhichSignature: int, + theListOfIO: AIS_ListOfInteractive, + ) -> None: ... def DrawHiddenLine(self) -> bool: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EnableDrawHiddenLine(self) -> None: ... @overload def EndImmediateDraw(self, theView: V3d_View) -> bool: ... @overload def EndImmediateDraw(self) -> bool: ... - def Erase(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... + def Erase( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... def EraseAll(self, theToUpdateViewer: bool) -> None: ... def EraseSelected(self, theToUpdateViewer: bool) -> None: ... @overload def ErasedObjects(self, theListOfIO: AIS_ListOfInteractive) -> None: ... @overload - def ErasedObjects(self, theWhichKind: AIS_KindOfInteractive, theWhichSignature: int, theListOfIO: AIS_ListOfInteractive) -> None: ... + def ErasedObjects( + self, + theWhichKind: AIS_KindOfInteractive, + theWhichSignature: int, + theListOfIO: AIS_ListOfInteractive, + ) -> None: ... def FilterType(self) -> SelectMgr_FilterType: ... def Filters(self) -> SelectMgr_ListOfFilter: ... def FirstSelectedObject(self) -> AIS_InteractiveObject: ... @overload - def FitSelected(self, theView: V3d_View, theMargin: float, theToUpdate: bool) -> None: ... + def FitSelected( + self, theView: V3d_View, theMargin: float, theToUpdate: bool + ) -> None: ... @overload def FitSelected(self, theView: V3d_View) -> None: ... def GetAutoActivateSelection(self) -> bool: ... @@ -614,16 +725,33 @@ class AIS_InteractiveContext(Standard_Transient): @overload def HighlightStyle(self) -> Prs3d_Drawer: ... @overload - def HighlightStyle(self, theObj: AIS_InteractiveObject, theStyle: Prs3d_Drawer) -> bool: ... + def HighlightStyle( + self, theObj: AIS_InteractiveObject, theStyle: Prs3d_Drawer + ) -> bool: ... @overload - def HighlightStyle(self, theOwner: SelectMgr_EntityOwner, theStyle: Prs3d_Drawer) -> bool: ... - def Hilight(self, theObj: AIS_InteractiveObject, theIsToUpdateViewer: bool) -> None: ... + def HighlightStyle( + self, theOwner: SelectMgr_EntityOwner, theStyle: Prs3d_Drawer + ) -> bool: ... + def Hilight( + self, theObj: AIS_InteractiveObject, theIsToUpdateViewer: bool + ) -> None: ... def HilightCurrents(self, theToUpdateViewer: bool) -> None: ... - def HilightNextDetected(self, theView: V3d_View, theToRedrawImmediate: Optional[bool] = True) -> int: ... - def HilightPreviousDetected(self, theView: V3d_View, theToRedrawImmediate: Optional[bool] = True) -> int: ... + def HilightNextDetected( + self, theView: V3d_View, theToRedrawImmediate: Optional[bool] = True + ) -> int: ... + def HilightPreviousDetected( + self, theView: V3d_View, theToRedrawImmediate: Optional[bool] = True + ) -> int: ... def HilightSelected(self, theToUpdateViewer: bool) -> None: ... - def HilightWithColor(self, theObj: AIS_InteractiveObject, theStyle: Prs3d_Drawer, theToUpdateViewer: bool) -> None: ... - def ImmediateAdd(self, theObj: AIS_InteractiveObject, theMode: Optional[int] = 0) -> bool: ... + def HilightWithColor( + self, + theObj: AIS_InteractiveObject, + theStyle: Prs3d_Drawer, + theToUpdateViewer: bool, + ) -> None: ... + def ImmediateAdd( + self, theObj: AIS_InteractiveObject, theMode: Optional[int] = 0 + ) -> bool: ... def InitCurrent(self) -> None: ... def InitDetected(self) -> None: ... def InitSelected(self) -> None: ... @@ -647,14 +775,18 @@ class AIS_InteractiveContext(Standard_Transient): @overload def IsoOnPlane(self) -> bool: ... @overload - def IsoOnTriangulation(self, theIsEnabled: bool, theObject: AIS_InteractiveObject) -> None: ... + def IsoOnTriangulation( + self, theIsEnabled: bool, theObject: AIS_InteractiveObject + ) -> None: ... @overload def IsoOnTriangulation(self, theToSwitchOn: bool) -> None: ... @overload def IsoOnTriangulation(self) -> bool: ... def LastActiveView(self) -> V3d_View: ... @overload - def Load(self, theObj: AIS_InteractiveObject, theSelectionMode: Optional[int] = -1) -> None: ... + def Load( + self, theObj: AIS_InteractiveObject, theSelectionMode: Optional[int] = -1 + ) -> None: ... def Location(self, theObject: AIS_InteractiveObject) -> TopLoc_Location: ... def MainPrsMgr(self) -> PrsMgr_PresentationManager: ... def MainSelector(self) -> StdSelect_ViewerSelector3d: ... @@ -662,9 +794,13 @@ class AIS_InteractiveContext(Standard_Transient): def MoreDetected(self) -> bool: ... def MoreSelected(self) -> bool: ... @overload - def MoveTo(self, theXPix: int, theYPix: int, theView: V3d_View, theToRedrawOnUpdate: bool) -> AIS_StatusOfDetection: ... + def MoveTo( + self, theXPix: int, theYPix: int, theView: V3d_View, theToRedrawOnUpdate: bool + ) -> AIS_StatusOfDetection: ... @overload - def MoveTo(self, theAxis: gp_Ax1, theView: V3d_View, theToRedrawOnUpdate: bool) -> AIS_StatusOfDetection: ... + def MoveTo( + self, theAxis: gp_Ax1, theView: V3d_View, theToRedrawOnUpdate: bool + ) -> AIS_StatusOfDetection: ... def NbCurrents(self) -> int: ... def NbSelected(self) -> int: ... def NextCurrent(self) -> None: ... @@ -672,124 +808,304 @@ class AIS_InteractiveContext(Standard_Transient): def NextSelected(self) -> None: ... def ObjectIterator(self) -> AIS_DataMapIteratorOfDataMapOfIOStatus: ... @overload - def ObjectsByDisplayStatus(self, theStatus: PrsMgr_DisplayStatus, theListOfIO: AIS_ListOfInteractive) -> None: ... - @overload - def ObjectsByDisplayStatus(self, WhichKind: AIS_KindOfInteractive, WhichSignature: int, theStatus: PrsMgr_DisplayStatus, theListOfIO: AIS_ListOfInteractive) -> None: ... - def ObjectsForView(self, theListOfIO: AIS_ListOfInteractive, theView: V3d_View, theIsVisibleInView: bool, theStatus: Optional[PrsMgr_DisplayStatus] = PrsMgr_DisplayStatus_None) -> None: ... - def ObjectsInside(self, aListOfIO: AIS_ListOfInteractive, WhichKind: Optional[AIS_KindOfInteractive] = AIS_KindOfInteractive_None, WhichSignature: Optional[int] = -1) -> None: ... + def ObjectsByDisplayStatus( + self, theStatus: PrsMgr_DisplayStatus, theListOfIO: AIS_ListOfInteractive + ) -> None: ... + @overload + def ObjectsByDisplayStatus( + self, + WhichKind: AIS_KindOfInteractive, + WhichSignature: int, + theStatus: PrsMgr_DisplayStatus, + theListOfIO: AIS_ListOfInteractive, + ) -> None: ... + def ObjectsForView( + self, + theListOfIO: AIS_ListOfInteractive, + theView: V3d_View, + theIsVisibleInView: bool, + theStatus: Optional[PrsMgr_DisplayStatus] = PrsMgr_DisplayStatus_None, + ) -> None: ... + def ObjectsInside( + self, + aListOfIO: AIS_ListOfInteractive, + WhichKind: Optional[AIS_KindOfInteractive] = AIS_KindOfInteractive_None, + WhichSignature: Optional[int] = -1, + ) -> None: ... def PickingStrategy(self) -> SelectMgr_PickingStrategy: ... def PixelTolerance(self) -> int: ... def PlaneSize(self) -> Tuple[bool, float, float]: ... - def PolygonOffsets(self, anObj: AIS_InteractiveObject) -> Tuple[int, float, float]: ... + def PolygonOffsets( + self, anObj: AIS_InteractiveObject + ) -> Tuple[int, float, float]: ... def RebuildSelectionStructs(self) -> None: ... - def RecomputePrsOnly(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool, theAllModes: Optional[bool] = False) -> None: ... + def RecomputePrsOnly( + self, + theIObj: AIS_InteractiveObject, + theToUpdateViewer: bool, + theAllModes: Optional[bool] = False, + ) -> None: ... def RecomputeSelectionOnly(self, anIObj: AIS_InteractiveObject) -> None: ... @overload - def Redisplay(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool, theAllModes: Optional[bool] = False) -> None: ... - @overload - def Redisplay(self, theTypeOfObject: AIS_KindOfInteractive, theSignature: int, theToUpdateViewer: bool) -> None: ... + def Redisplay( + self, + theIObj: AIS_InteractiveObject, + theToUpdateViewer: bool, + theAllModes: Optional[bool] = False, + ) -> None: ... + @overload + def Redisplay( + self, + theTypeOfObject: AIS_KindOfInteractive, + theSignature: int, + theToUpdateViewer: bool, + ) -> None: ... def RedrawImmediate(self, theViewer: V3d_Viewer) -> None: ... - def Remove(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... + def Remove( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... def RemoveAll(self, theToUpdateViewer: bool) -> None: ... def RemoveFilter(self, theFilter: SelectMgr_Filter) -> None: ... def RemoveFilters(self) -> None: ... def ResetLocation(self, theObject: AIS_InteractiveObject) -> None: ... @overload - def Select(self, theOwners: AIS_NArray1OfEntityOwner, theSelScheme: AIS_SelectionScheme) -> AIS_StatusOfPick: ... - @overload - def Select(self, theXPMin: int, theYPMin: int, theXPMax: int, theYPMax: int, theView: V3d_View, theToUpdateViewer: bool) -> AIS_StatusOfPick: ... - @overload - def Select(self, thePolyline: TColgp_Array1OfPnt2d, theView: V3d_View, theToUpdateViewer: bool) -> AIS_StatusOfPick: ... + def Select( + self, theOwners: AIS_NArray1OfEntityOwner, theSelScheme: AIS_SelectionScheme + ) -> AIS_StatusOfPick: ... + @overload + def Select( + self, + theXPMin: int, + theYPMin: int, + theXPMax: int, + theYPMax: int, + theView: V3d_View, + theToUpdateViewer: bool, + ) -> AIS_StatusOfPick: ... + @overload + def Select( + self, + thePolyline: TColgp_Array1OfPnt2d, + theView: V3d_View, + theToUpdateViewer: bool, + ) -> AIS_StatusOfPick: ... @overload def Select(self, theToUpdateViewer: bool) -> AIS_StatusOfPick: ... - def SelectDetected(self, theSelScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace) -> AIS_StatusOfPick: ... - def SelectPoint(self, thePnt: Graphic3d_Vec2i, theView: V3d_View, theSelScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace) -> AIS_StatusOfPick: ... - def SelectPolygon(self, thePolyline: TColgp_Array1OfPnt2d, theView: V3d_View, theSelScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace) -> AIS_StatusOfPick: ... - def SelectRectangle(self, thePntMin: Graphic3d_Vec2i, thePntMax: Graphic3d_Vec2i, theView: V3d_View, theSelScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace) -> AIS_StatusOfPick: ... + def SelectDetected( + self, theSelScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace + ) -> AIS_StatusOfPick: ... + def SelectPoint( + self, + thePnt: Graphic3d_Vec2i, + theView: V3d_View, + theSelScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace, + ) -> AIS_StatusOfPick: ... + def SelectPolygon( + self, + thePolyline: TColgp_Array1OfPnt2d, + theView: V3d_View, + theSelScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace, + ) -> AIS_StatusOfPick: ... + def SelectRectangle( + self, + thePntMin: Graphic3d_Vec2i, + thePntMax: Graphic3d_Vec2i, + theView: V3d_View, + theSelScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace, + ) -> AIS_StatusOfPick: ... def SelectedInteractive(self) -> AIS_InteractiveObject: ... def SelectedOwner(self) -> SelectMgr_EntityOwner: ... def SelectedShape(self) -> TopoDS_Shape: ... def Selection(self) -> AIS_Selection: ... def SelectionManager(self) -> SelectMgr_SelectionManager: ... def SelectionStyle(self) -> Prs3d_Drawer: ... - def SetAngleAndDeviation(self, theIObj: AIS_InteractiveObject, theAngle: float, theToUpdateViewer: bool) -> None: ... + def SetAngleAndDeviation( + self, theIObj: AIS_InteractiveObject, theAngle: float, theToUpdateViewer: bool + ) -> None: ... def SetAutoActivateSelection(self, theIsAuto: bool) -> None: ... def SetAutomaticHilight(self, theStatus: bool) -> None: ... - def SetColor(self, theIObj: AIS_InteractiveObject, theColor: Quantity_Color, theToUpdateViewer: bool) -> None: ... - def SetCurrentFacingModel(self, aniobj: AIS_InteractiveObject, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE) -> None: ... - def SetCurrentObject(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... + def SetColor( + self, + theIObj: AIS_InteractiveObject, + theColor: Quantity_Color, + theToUpdateViewer: bool, + ) -> None: ... + def SetCurrentFacingModel( + self, + aniobj: AIS_InteractiveObject, + aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE, + ) -> None: ... + def SetCurrentObject( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... def SetDefaultDrawer(self, theDrawer: Prs3d_Drawer) -> None: ... @overload - def SetDeviationAngle(self, theIObj: AIS_InteractiveObject, theAngle: float, theToUpdateViewer: bool) -> None: ... + def SetDeviationAngle( + self, theIObj: AIS_InteractiveObject, theAngle: float, theToUpdateViewer: bool + ) -> None: ... @overload def SetDeviationAngle(self, theAngle: float) -> None: ... @overload - def SetDeviationCoefficient(self, theIObj: AIS_InteractiveObject, theCoefficient: float, theToUpdateViewer: bool) -> None: ... + def SetDeviationCoefficient( + self, + theIObj: AIS_InteractiveObject, + theCoefficient: float, + theToUpdateViewer: bool, + ) -> None: ... @overload def SetDeviationCoefficient(self, theCoefficient: float) -> None: ... @overload def SetDisplayMode(self, theMode: int, theToUpdateViewer: bool) -> None: ... @overload - def SetDisplayMode(self, theIObj: AIS_InteractiveObject, theMode: int, theToUpdateViewer: bool) -> None: ... + def SetDisplayMode( + self, theIObj: AIS_InteractiveObject, theMode: int, theToUpdateViewer: bool + ) -> None: ... @overload - def SetDisplayPriority(self, theIObj: AIS_InteractiveObject, thePriority: Graphic3d_DisplayPriority) -> None: ... + def SetDisplayPriority( + self, theIObj: AIS_InteractiveObject, thePriority: Graphic3d_DisplayPriority + ) -> None: ... @overload - def SetDisplayPriority(self, theIObj: AIS_InteractiveObject, thePriority: int) -> None: ... + def SetDisplayPriority( + self, theIObj: AIS_InteractiveObject, thePriority: int + ) -> None: ... def SetFilterType(self, theFilterType: SelectMgr_FilterType) -> None: ... def SetHiddenLineAspect(self, theAspect: Prs3d_LineAspect) -> None: ... @overload - def SetHighlightStyle(self, theStyleType: Prs3d_TypeOfHighlight, theStyle: Prs3d_Drawer) -> None: ... + def SetHighlightStyle( + self, theStyleType: Prs3d_TypeOfHighlight, theStyle: Prs3d_Drawer + ) -> None: ... @overload def SetHighlightStyle(self, theStyle: Prs3d_Drawer) -> None: ... - def SetIsoNumber(self, NbIsos: int, WhichIsos: Optional[AIS_TypeOfIso] = AIS_TOI_Both) -> None: ... - def SetLocalAttributes(self, theIObj: AIS_InteractiveObject, theDrawer: Prs3d_Drawer, theToUpdateViewer: bool) -> None: ... - def SetLocation(self, theObject: AIS_InteractiveObject, theLocation: TopLoc_Location) -> None: ... - def SetMaterial(self, theIObj: AIS_InteractiveObject, theMaterial: Graphic3d_MaterialAspect, theToUpdateViewer: bool) -> None: ... + def SetIsoNumber( + self, NbIsos: int, WhichIsos: Optional[AIS_TypeOfIso] = AIS_TOI_Both + ) -> None: ... + def SetLocalAttributes( + self, + theIObj: AIS_InteractiveObject, + theDrawer: Prs3d_Drawer, + theToUpdateViewer: bool, + ) -> None: ... + def SetLocation( + self, theObject: AIS_InteractiveObject, theLocation: TopLoc_Location + ) -> None: ... + def SetMaterial( + self, + theIObj: AIS_InteractiveObject, + theMaterial: Graphic3d_MaterialAspect, + theToUpdateViewer: bool, + ) -> None: ... def SetPickingStrategy(self, theStrategy: SelectMgr_PickingStrategy) -> None: ... def SetPixelTolerance(self, thePrecision: Optional[int] = 2) -> None: ... @overload - def SetPlaneSize(self, theSizeX: float, theSizeY: float, theToUpdateViewer: bool) -> None: ... + def SetPlaneSize( + self, theSizeX: float, theSizeY: float, theToUpdateViewer: bool + ) -> None: ... @overload def SetPlaneSize(self, theSize: float, theToUpdateViewer: bool) -> None: ... - def SetPolygonOffsets(self, theIObj: AIS_InteractiveObject, theMode: int, theFactor: float, theUnits: float, theToUpdateViewer: bool) -> None: ... - @overload - def SetSelected(self, theOwners: SelectMgr_EntityOwner, theToUpdateViewer: bool) -> None: ... - @overload - def SetSelected(self, theObject: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... - def SetSelectedAspect(self, theAspect: Prs3d_BasicAspect, theToUpdateViewer: bool) -> None: ... - def SetSelectedState(self, theOwner: SelectMgr_EntityOwner, theIsSelected: bool) -> bool: ... + def SetPolygonOffsets( + self, + theIObj: AIS_InteractiveObject, + theMode: int, + theFactor: float, + theUnits: float, + theToUpdateViewer: bool, + ) -> None: ... + @overload + def SetSelected( + self, theOwners: SelectMgr_EntityOwner, theToUpdateViewer: bool + ) -> None: ... + @overload + def SetSelected( + self, theObject: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... + def SetSelectedAspect( + self, theAspect: Prs3d_BasicAspect, theToUpdateViewer: bool + ) -> None: ... + def SetSelectedState( + self, theOwner: SelectMgr_EntityOwner, theIsSelected: bool + ) -> bool: ... def SetSelection(self, theSelection: AIS_Selection) -> None: ... - def SetSelectionModeActive(self, theObj: AIS_InteractiveObject, theMode: int, theToActivate: bool, theConcurrency: Optional[AIS_SelectionModesConcurrency] = AIS_SelectionModesConcurrency_Multiple, theIsForce: Optional[bool] = False) -> None: ... - def SetSelectionSensitivity(self, theObject: AIS_InteractiveObject, theMode: int, theNewSensitivity: int) -> None: ... + def SetSelectionModeActive( + self, + theObj: AIS_InteractiveObject, + theMode: int, + theToActivate: bool, + theConcurrency: Optional[ + AIS_SelectionModesConcurrency + ] = AIS_SelectionModesConcurrency_Multiple, + theIsForce: Optional[bool] = False, + ) -> None: ... + def SetSelectionSensitivity( + self, theObject: AIS_InteractiveObject, theMode: int, theNewSensitivity: int + ) -> None: ... def SetSelectionStyle(self, theStyle: Prs3d_Drawer) -> None: ... def SetSubIntensityColor(self, theColor: Quantity_Color) -> None: ... def SetToHilightSelected(self, toHilight: bool) -> None: ... - def SetTransformPersistence(self, theObject: AIS_InteractiveObject, theTrsfPers: Graphic3d_TransformPers) -> None: ... - def SetTransparency(self, theIObj: AIS_InteractiveObject, theValue: float, theToUpdateViewer: bool) -> None: ... + def SetTransformPersistence( + self, theObject: AIS_InteractiveObject, theTrsfPers: Graphic3d_TransformPers + ) -> None: ... + def SetTransparency( + self, theIObj: AIS_InteractiveObject, theValue: float, theToUpdateViewer: bool + ) -> None: ... def SetTrihedronSize(self, theSize: float, theToUpdateViewer: bool) -> None: ... - def SetViewAffinity(self, theIObj: AIS_InteractiveObject, theView: V3d_View, theIsVisible: bool) -> None: ... - def SetWidth(self, theIObj: AIS_InteractiveObject, theValue: float, theToUpdateViewer: bool) -> None: ... + def SetViewAffinity( + self, theIObj: AIS_InteractiveObject, theView: V3d_View, theIsVisible: bool + ) -> None: ... + def SetWidth( + self, theIObj: AIS_InteractiveObject, theValue: float, theToUpdateViewer: bool + ) -> None: ... def SetZLayer(self, theIObj: AIS_InteractiveObject, theLayerId: int) -> None: ... @overload def ShiftSelect(self, theToUpdateViewer: bool) -> AIS_StatusOfPick: ... @overload - def ShiftSelect(self, thePolyline: TColgp_Array1OfPnt2d, theView: V3d_View, theToUpdateViewer: bool) -> AIS_StatusOfPick: ... - @overload - def ShiftSelect(self, theXPMin: int, theYPMin: int, theXPMax: int, theYPMax: int, theView: V3d_View, theToUpdateViewer: bool) -> AIS_StatusOfPick: ... + def ShiftSelect( + self, + thePolyline: TColgp_Array1OfPnt2d, + theView: V3d_View, + theToUpdateViewer: bool, + ) -> AIS_StatusOfPick: ... + @overload + def ShiftSelect( + self, + theXPMin: int, + theYPMin: int, + theXPMax: int, + theYPMax: int, + theView: V3d_View, + theToUpdateViewer: bool, + ) -> AIS_StatusOfPick: ... def SubIntensityColor(self) -> Quantity_Color: ... - def SubIntensityOff(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... - def SubIntensityOn(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... + def SubIntensityOff( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... + def SubIntensityOn( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... def ToHilightSelected(self) -> bool: ... def TrihedronSize(self) -> float: ... - def Unhilight(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... + def Unhilight( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... def UnhilightCurrents(self, theToUpdateViewer: bool) -> None: ... def UnhilightSelected(self, theToUpdateViewer: bool) -> None: ... - def UnsetColor(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... - def UnsetDisplayMode(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... - def UnsetLocalAttributes(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... - def UnsetMaterial(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... - def UnsetTransparency(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... - def UnsetWidth(self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool) -> None: ... + def UnsetColor( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... + def UnsetDisplayMode( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... + def UnsetLocalAttributes( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... + def UnsetMaterial( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... + def UnsetTransparency( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... + def UnsetWidth( + self, theIObj: AIS_InteractiveObject, theToUpdateViewer: bool + ) -> None: ... def Update(self, theIObj: AIS_InteractiveObject, theUpdateViewer: bool) -> None: ... def UpdateCurrent(self) -> None: ... def UpdateCurrentViewer(self) -> None: ... @@ -798,7 +1114,7 @@ class AIS_InteractiveContext(Standard_Transient): class AIS_InteractiveObject(SelectMgr_SelectableObject): def ClearOwner(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetContext(self) -> AIS_InteractiveContext: ... def GetOwner(self) -> Standard_Transient: ... def HasInteractiveContext(self) -> bool: ... @@ -806,7 +1122,15 @@ class AIS_InteractiveObject(SelectMgr_SelectableObject): def HasPresentation(self) -> bool: ... def InteractiveContext(self) -> AIS_InteractiveContext: ... def Presentation(self) -> Prs3d_Presentation: ... - def ProcessDragging(self, theCtx: AIS_InteractiveContext, theView: V3d_View, theOwner: SelectMgr_EntityOwner, theDragFrom: Graphic3d_Vec2i, theDragTo: Graphic3d_Vec2i, theAction: AIS_DragAction) -> bool: ... + def ProcessDragging( + self, + theCtx: AIS_InteractiveContext, + theView: V3d_View, + theOwner: SelectMgr_EntityOwner, + theDragFrom: Graphic3d_Vec2i, + theDragTo: Graphic3d_Vec2i, + theAction: AIS_DragAction, + ) -> bool: ... def Redisplay(self, AllModes: Optional[bool] = False) -> None: ... def SetAspect(self, anAspect: Prs3d_BasicAspect) -> None: ... def SetContext(self, aCtx: AIS_InteractiveContext) -> None: ... @@ -815,14 +1139,35 @@ class AIS_InteractiveObject(SelectMgr_SelectableObject): def Type(self) -> AIS_KindOfInteractive: ... class AIS_LightSourceOwner(SelectMgr_EntityOwner): - def __init__(self, theObject: AIS_LightSource, thePriority: Optional[int] = 5) -> None: ... - def HandleMouseClick(self, thePoint: Graphic3d_Vec2i, theButton: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsDoubleClick: bool) -> bool: ... - def HilightWithColor(self, thePrsMgr: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int) -> None: ... + def __init__( + self, theObject: AIS_LightSource, thePriority: Optional[int] = 5 + ) -> None: ... + def HandleMouseClick( + self, + thePoint: Graphic3d_Vec2i, + theButton: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsDoubleClick: bool, + ) -> bool: ... + def HilightWithColor( + self, + thePrsMgr: PrsMgr_PresentationManager, + theStyle: Prs3d_Drawer, + theMode: int, + ) -> None: ... def IsForcedHilight(self) -> bool: ... class AIS_ManipulatorOwner(SelectMgr_EntityOwner): - def __init__(self, theSelObject: SelectMgr_SelectableObject, theIndex: int, theMode: AIS_ManipulatorMode, thePriority: Optional[int] = 0) -> None: ... - def HilightWithColor(self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int) -> None: ... + def __init__( + self, + theSelObject: SelectMgr_SelectableObject, + theIndex: int, + theMode: AIS_ManipulatorMode, + thePriority: Optional[int] = 0, + ) -> None: ... + def HilightWithColor( + self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int + ) -> None: ... def Index(self) -> int: ... def IsHilighted(self, thePM: PrsMgr_PresentationManager, theMode: int) -> bool: ... def Mode(self) -> AIS_ManipulatorMode: ... @@ -832,16 +1177,28 @@ class AIS_PointCloudOwner(SelectMgr_EntityOwner): def __init__(self, theOrigin: AIS_PointCloud) -> None: ... def Clear(self, thePrsMgr: PrsMgr_PresentationManager, theMode: int) -> None: ... def DetectedPoints(self) -> TColStd_HPackedMapOfInteger: ... - def HilightWithColor(self, thePrsMgr: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int) -> None: ... + def HilightWithColor( + self, + thePrsMgr: PrsMgr_PresentationManager, + theStyle: Prs3d_Drawer, + theMode: int, + ) -> None: ... def IsForcedHilight(self) -> bool: ... def SelectedPoints(self) -> TColStd_HPackedMapOfInteger: ... - def Unhilight(self, thePrsMgr: PrsMgr_PresentationManager, theMode: int) -> None: ... + def Unhilight( + self, thePrsMgr: PrsMgr_PresentationManager, theMode: int + ) -> None: ... class AIS_Selection(Standard_Transient): def __init__(self) -> None: ... def AddSelect(self, theObject: SelectMgr_EntityOwner) -> AIS_SelectStatus: ... def Clear(self) -> None: ... - def ClearAndSelect(self, theObject: SelectMgr_EntityOwner, theFilter: SelectMgr_Filter, theIsDetected: bool) -> None: ... + def ClearAndSelect( + self, + theObject: SelectMgr_EntityOwner, + theFilter: SelectMgr_Filter, + theIsDetected: bool, + ) -> None: ... def Extent(self) -> int: ... def Init(self) -> None: ... def IsEmpty(self) -> bool: ... @@ -849,14 +1206,33 @@ class AIS_Selection(Standard_Transient): def More(self) -> bool: ... def Next(self) -> None: ... def Objects(self) -> AIS_NListOfEntityOwner: ... - def Select(self, theOwner: SelectMgr_EntityOwner, theFilter: SelectMgr_Filter, theSelScheme: AIS_SelectionScheme, theIsDetected: bool) -> AIS_SelectStatus: ... - def SelectOwners(self, thePickedOwners: AIS_NArray1OfEntityOwner, theSelScheme: AIS_SelectionScheme, theToAllowSelOverlap: bool, theFilter: SelectMgr_Filter) -> None: ... + def Select( + self, + theOwner: SelectMgr_EntityOwner, + theFilter: SelectMgr_Filter, + theSelScheme: AIS_SelectionScheme, + theIsDetected: bool, + ) -> AIS_SelectStatus: ... + def SelectOwners( + self, + thePickedOwners: AIS_NArray1OfEntityOwner, + theSelScheme: AIS_SelectionScheme, + theToAllowSelOverlap: bool, + theFilter: SelectMgr_Filter, + ) -> None: ... def Value(self) -> SelectMgr_EntityOwner: ... class AIS_TrihedronOwner(SelectMgr_EntityOwner): - def __init__(self, theSelObject: SelectMgr_SelectableObject, theDatumPart: Prs3d_DatumParts, thePriority: int) -> None: ... + def __init__( + self, + theSelObject: SelectMgr_SelectableObject, + theDatumPart: Prs3d_DatumParts, + thePriority: int, + ) -> None: ... def DatumPart(self) -> Prs3d_DatumParts: ... - def HilightWithColor(self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int) -> None: ... + def HilightWithColor( + self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int + ) -> None: ... def IsHilighted(self, thePM: PrsMgr_PresentationManager, theMode: int) -> bool: ... def Unhilight(self, thePM: PrsMgr_PresentationManager, theMode: int) -> None: ... @@ -867,20 +1243,46 @@ class AIS_TypeFilter(SelectMgr_Filter): class AIS_ViewController(Aspect_WindowInputListener): def __init__(self) -> None: ... def AbortViewAnimation(self) -> None: ... - def AddTouchPoint(self, theId: int, thePnt: Graphic3d_Vec2d, theClearBefore: Optional[bool] = false) -> None: ... - def ChangeInputBuffer(self, theType: AIS_ViewInputBufferType) -> AIS_ViewInputBuffer: ... + def AddTouchPoint( + self, + theId: int, + thePnt: Graphic3d_Vec2d, + theClearBefore: Optional[bool] = false, + ) -> None: ... + def ChangeInputBuffer( + self, theType: AIS_ViewInputBufferType + ) -> AIS_ViewInputBuffer: ... def ChangeMouseGestureMap(self) -> AIS_MouseGestureMap: ... def ChangeMouseSelectionSchemes(self) -> AIS_MouseSelectionSchemeMap: ... - def FetchNavigationKeys(self, theCrouchRatio: float, theRunRatio: float) -> AIS_WalkDelta: ... + def FetchNavigationKeys( + self, theCrouchRatio: float, theRunRatio: float + ) -> AIS_WalkDelta: ... def FitAllAuto(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def FlushViewEvents(self, theCtx: AIS_InteractiveContext, theView: V3d_View, theToHandle: Optional[bool] = False) -> None: ... - def GravityPoint(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> gp_Pnt: ... - def HandleViewEvents(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... + def FlushViewEvents( + self, + theCtx: AIS_InteractiveContext, + theView: V3d_View, + theToHandle: Optional[bool] = False, + ) -> None: ... + def GravityPoint( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> gp_Pnt: ... + def HandleViewEvents( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... def HasPreviousMoveTo(self) -> bool: ... def InputBuffer(self, theType: AIS_ViewInputBufferType) -> AIS_ViewInputBuffer: ... def IsContinuousRedraw(self) -> bool: ... - def KeyDown(self, theKey: Aspect_VKey, theTime: float, thePressure: Optional[float] = 1.0) -> None: ... - def KeyFromAxis(self, theNegative: Aspect_VKey, thePositive: Aspect_VKey, theTime: float, thePressure: float) -> None: ... + def KeyDown( + self, theKey: Aspect_VKey, theTime: float, thePressure: Optional[float] = 1.0 + ) -> None: ... + def KeyFromAxis( + self, + theNegative: Aspect_VKey, + thePositive: Aspect_VKey, + theTime: float, + thePressure: float, + ) -> None: ... def KeyUp(self, theKey: Aspect_VKey, theTime: float) -> None: ... def MinZoomDistance(self) -> float: ... def MouseAcceleration(self) -> float: ... @@ -889,24 +1291,52 @@ class AIS_ViewController(Aspect_WindowInputListener): def MouseSelectionSchemes(self) -> AIS_MouseSelectionSchemeMap: ... def NavigationMode(self) -> AIS_NavigationMode: ... def ObjectsAnimation(self) -> AIS_Animation: ... - def OnObjectDragged(self, theCtx: AIS_InteractiveContext, theView: V3d_View, theAction: AIS_DragAction) -> None: ... - def OnSelectionChanged(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def OnSubviewChanged(self, theCtx: AIS_InteractiveContext, theOldView: V3d_View, theNewView: V3d_View) -> None: ... + def OnObjectDragged( + self, + theCtx: AIS_InteractiveContext, + theView: V3d_View, + theAction: AIS_DragAction, + ) -> None: ... + def OnSelectionChanged( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... + def OnSubviewChanged( + self, theCtx: AIS_InteractiveContext, theOldView: V3d_View, theNewView: V3d_View + ) -> None: ... def OrbitAcceleration(self) -> float: ... - def PickAxis(self, theTopPnt: gp_Pnt, theCtx: AIS_InteractiveContext, theView: V3d_View, theAxis: gp_Ax1) -> bool: ... - def PickPoint(self, thePnt: gp_Pnt, theCtx: AIS_InteractiveContext, theView: V3d_View, theCursor: Graphic3d_Vec2i, theToStickToPickRay: bool) -> bool: ... + def PickAxis( + self, + theTopPnt: gp_Pnt, + theCtx: AIS_InteractiveContext, + theView: V3d_View, + theAxis: gp_Ax1, + ) -> bool: ... + def PickPoint( + self, + thePnt: gp_Pnt, + theCtx: AIS_InteractiveContext, + theView: V3d_View, + theCursor: Graphic3d_Vec2i, + theToStickToPickRay: bool, + ) -> bool: ... def PreviousMoveTo(self) -> Graphic3d_Vec2i: ... def ProcessClose(self) -> None: ... def ProcessConfigure(self, theIsResized: bool) -> None: ... def ProcessExpose(self) -> None: ... def ProcessFocus(self, theIsActivated: bool) -> None: ... def ProcessInput(self) -> None: ... - def RemoveTouchPoint(self, theId: int, theClearSelectPnts: Optional[bool] = false) -> bool: ... + def RemoveTouchPoint( + self, theId: int, theClearSelectPnts: Optional[bool] = false + ) -> bool: ... def ResetPreviousMoveTo(self) -> None: ... def ResetViewInput(self) -> None: ... def RotationMode(self) -> AIS_RotationMode: ... @overload - def SelectInViewer(self, thePnt: Graphic3d_Vec2i, theScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace) -> None: ... + def SelectInViewer( + self, + thePnt: Graphic3d_Vec2i, + theScheme: Optional[AIS_SelectionScheme] = AIS_SelectionScheme_Replace, + ) -> None: ... def SetAllowDragging(self, theToEnable: bool) -> None: ... def SetAllowHighlight(self, theToEnable: bool) -> None: ... def SetAllowPanning(self, theToEnable: bool) -> None: ... @@ -954,37 +1384,102 @@ class AIS_ViewController(Aspect_WindowInputListener): def ToStickToRayOnRotation(self) -> bool: ... def ToStickToRayOnZoom(self) -> bool: ... def TouchToleranceScale(self) -> float: ... - def UpdateMouseButtons(self, thePoint: Graphic3d_Vec2i, theButtons: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsEmulated: bool) -> bool: ... - def UpdateMouseClick(self, thePoint: Graphic3d_Vec2i, theButton: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsDoubleClick: bool) -> bool: ... - def UpdateMousePosition(self, thePoint: Graphic3d_Vec2i, theButtons: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsEmulated: bool) -> bool: ... + def UpdateMouseButtons( + self, + thePoint: Graphic3d_Vec2i, + theButtons: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsEmulated: bool, + ) -> bool: ... + def UpdateMouseClick( + self, + thePoint: Graphic3d_Vec2i, + theButton: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsDoubleClick: bool, + ) -> bool: ... + def UpdateMousePosition( + self, + thePoint: Graphic3d_Vec2i, + theButtons: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsEmulated: bool, + ) -> bool: ... def UpdateMouseScroll(self, theDelta: Aspect_ScrollDelta) -> bool: ... - def UpdatePolySelection(self, thePnt: Graphic3d_Vec2i, theToAppend: bool) -> None: ... - def UpdateRubberBand(self, thePntFrom: Graphic3d_Vec2i, thePntTo: Graphic3d_Vec2i) -> None: ... + def UpdatePolySelection( + self, thePnt: Graphic3d_Vec2i, theToAppend: bool + ) -> None: ... + def UpdateRubberBand( + self, thePntFrom: Graphic3d_Vec2i, thePntTo: Graphic3d_Vec2i + ) -> None: ... def UpdateTouchPoint(self, theId: int, thePnt: Graphic3d_Vec2d) -> None: ... - def UpdateViewOrientation(self, theOrientation: V3d_TypeOfOrientation, theToFitAll: bool) -> None: ... + def UpdateViewOrientation( + self, theOrientation: V3d_TypeOfOrientation, theToFitAll: bool + ) -> None: ... def UpdateZRotation(self, theAngle: float) -> bool: ... def UpdateZoom(self, theDelta: Aspect_ScrollDelta) -> bool: ... def ViewAnimation(self) -> AIS_AnimationCamera: ... def WalkSpeedAbsolute(self) -> float: ... def WalkSpeedRelative(self) -> float: ... - def handleCameraActions(self, theCtx: AIS_InteractiveContext, theView: V3d_View, theWalk: AIS_WalkDelta) -> None: ... - def handleMoveTo(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def handleNavigationKeys(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> AIS_WalkDelta: ... - def handleOrbitRotation(self, theView: V3d_View, thePnt: gp_Pnt, theToLockZUp: bool) -> None: ... + def handleCameraActions( + self, theCtx: AIS_InteractiveContext, theView: V3d_View, theWalk: AIS_WalkDelta + ) -> None: ... + def handleMoveTo( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... + def handleNavigationKeys( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> AIS_WalkDelta: ... + def handleOrbitRotation( + self, theView: V3d_View, thePnt: gp_Pnt, theToLockZUp: bool + ) -> None: ... def handlePanning(self, theView: V3d_View) -> None: ... - def handleViewOrientationKeys(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def handleViewRedraw(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def handleViewRotation(self, theView: V3d_View, theYawExtra: float, thePitchExtra: float, theRoll: float, theToRestartOnIncrement: bool) -> None: ... - def handleXRHighlight(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def handleXRInput(self, theCtx: AIS_InteractiveContext, theView: V3d_View, theWalk: AIS_WalkDelta) -> None: ... - def handleXRMoveTo(self, theCtx: AIS_InteractiveContext, theView: V3d_View, thePose: gp_Trsf, theToHighlight: bool) -> int: ... - def handleXRPicking(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def handleXRPresentations(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def handleXRTeleport(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def handleXRTurnPad(self, theCtx: AIS_InteractiveContext, theView: V3d_View) -> None: ... - def handleZFocusScroll(self, theView: V3d_View, theParams: Aspect_ScrollDelta) -> None: ... + def handleViewOrientationKeys( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... + def handleViewRedraw( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... + def handleViewRotation( + self, + theView: V3d_View, + theYawExtra: float, + thePitchExtra: float, + theRoll: float, + theToRestartOnIncrement: bool, + ) -> None: ... + def handleXRHighlight( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... + def handleXRInput( + self, theCtx: AIS_InteractiveContext, theView: V3d_View, theWalk: AIS_WalkDelta + ) -> None: ... + def handleXRMoveTo( + self, + theCtx: AIS_InteractiveContext, + theView: V3d_View, + thePose: gp_Trsf, + theToHighlight: bool, + ) -> int: ... + def handleXRPicking( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... + def handleXRPresentations( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... + def handleXRTeleport( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... + def handleXRTurnPad( + self, theCtx: AIS_InteractiveContext, theView: V3d_View + ) -> None: ... + def handleZFocusScroll( + self, theView: V3d_View, theParams: Aspect_ScrollDelta + ) -> None: ... def handleZRotate(self, theView: V3d_View) -> None: ... - def handleZoom(self, theView: V3d_View, theParams: Aspect_ScrollDelta, thePnt: gp_Pnt) -> None: ... + def handleZoom( + self, theView: V3d_View, theParams: Aspect_ScrollDelta, thePnt: gp_Pnt + ) -> None: ... def hasPanningAnchorPoint(self) -> bool: ... def panningAnchorPoint(self) -> gp_Pnt: ... def setAskNextFrame(self, theToDraw: Optional[bool] = true) -> None: ... @@ -992,14 +1487,31 @@ class AIS_ViewController(Aspect_WindowInputListener): def toAskNextFrame(self) -> bool: ... class AIS_ViewCubeOwner(SelectMgr_EntityOwner): - def __init__(self, theObject: AIS_ViewCube, theOrient: V3d_TypeOfOrientation, thePriority: Optional[int] = 5) -> None: ... - def HandleMouseClick(self, thePoint: Graphic3d_Vec2i, theButton: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsDoubleClick: bool) -> bool: ... + def __init__( + self, + theObject: AIS_ViewCube, + theOrient: V3d_TypeOfOrientation, + thePriority: Optional[int] = 5, + ) -> None: ... + def HandleMouseClick( + self, + thePoint: Graphic3d_Vec2i, + theButton: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsDoubleClick: bool, + ) -> bool: ... def IsForcedHilight(self) -> bool: ... def MainOrientation(self) -> V3d_TypeOfOrientation: ... class AIS_ViewCubeSensitive(Select3D_SensitivePrimitiveArray): - def __init__(self, theOwner: SelectMgr_EntityOwner, theTris: Graphic3d_ArrayOfTriangles) -> None: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def __init__( + self, theOwner: SelectMgr_EntityOwner, theTris: Graphic3d_ArrayOfTriangles + ) -> None: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... class AIS_ViewInputBuffer: def __init__(self) -> None: ... @@ -1036,7 +1548,9 @@ class AIS_Axis(AIS_InteractiveObject): @overload def __init__(self, aComponent: Geom_Line) -> None: ... @overload - def __init__(self, aComponent: Geom_Axis2Placement, anAxisType: AIS_TypeOfAxis) -> None: ... + def __init__( + self, aComponent: Geom_Axis2Placement, anAxisType: AIS_TypeOfAxis + ) -> None: ... @overload def __init__(self, anAxis: Geom_Axis1Placement) -> None: ... @overload @@ -1046,7 +1560,9 @@ class AIS_Axis(AIS_InteractiveObject): def Component(self) -> Geom_Line: ... def IsXYZAxis(self) -> bool: ... def SetAxis1Placement(self, anAxis: Geom_Axis1Placement) -> None: ... - def SetAxis2Placement(self, aComponent: Geom_Axis2Placement, anAxisType: AIS_TypeOfAxis) -> None: ... + def SetAxis2Placement( + self, aComponent: Geom_Axis2Placement, anAxisType: AIS_TypeOfAxis + ) -> None: ... def SetColor(self, aColor: Quantity_Color) -> None: ... def SetComponent(self, aComponent: Geom_Line) -> None: ... def SetDisplayAspect(self, theNewDatumAspect: Prs3d_LineAspect) -> None: ... @@ -1073,7 +1589,13 @@ class AIS_Circle(AIS_InteractiveObject): @overload def __init__(self, aCircle: Geom_Circle) -> None: ... @overload - def __init__(self, theCircle: Geom_Circle, theUStart: float, theUEnd: float, theIsFilledCircleSens: Optional[bool] = False) -> None: ... + def __init__( + self, + theCircle: Geom_Circle, + theUStart: float, + theUEnd: float, + theIsFilledCircleSens: Optional[bool] = False, + ) -> None: ... def Circle(self) -> Geom_Circle: ... def IsFilledCircleSens(self) -> bool: ... def Parameters(self) -> Tuple[float, float]: ... @@ -1091,14 +1613,35 @@ class AIS_Circle(AIS_InteractiveObject): class AIS_ColorScale(AIS_InteractiveObject): def __init__(self) -> None: ... def AcceptDisplayMode(self, theMode: int) -> bool: ... - def ColorRange(self, theMinColor: Quantity_Color, theMaxColor: Quantity_Color) -> None: ... - def Compute(self, thePrsMgr: PrsMgr_PresentationManager, thePresentation: Prs3d_Presentation, theMode: int) -> None: ... + def ColorRange( + self, theMinColor: Quantity_Color, theMaxColor: Quantity_Color + ) -> None: ... + def Compute( + self, + thePrsMgr: PrsMgr_PresentationManager, + thePresentation: Prs3d_Presentation, + theMode: int, + ) -> None: ... @overload @staticmethod - def FindColor(theValue: float, theMin: float, theMax: float, theColorsCount: int, theColorHlsMin: Graphic3d_Vec3d, theColorHlsMax: Graphic3d_Vec3d, theColor: Quantity_Color) -> bool: ... + def FindColor( + theValue: float, + theMin: float, + theMax: float, + theColorsCount: int, + theColorHlsMin: Graphic3d_Vec3d, + theColorHlsMax: Graphic3d_Vec3d, + theColor: Quantity_Color, + ) -> bool: ... @overload @staticmethod - def FindColor(theValue: float, theMin: float, theMax: float, theColorsCount: int, theColor: Quantity_Color) -> bool: ... + def FindColor( + theValue: float, + theMin: float, + theMax: float, + theColorsCount: int, + theColor: Quantity_Color, + ) -> bool: ... @overload def FindColor(self, theValue: float, theColor: Quantity_Color) -> bool: ... def Format(self) -> str: ... @@ -1135,9 +1678,13 @@ class AIS_ColorScale(AIS_InteractiveObject): def IsSmoothTransition(self) -> bool: ... def Labels(self) -> TColStd_SequenceOfExtendedString: ... @staticmethod - def MakeUniformColors(theNbColors: int, theLightness: float, theHueFrom: float, theHueTo: float) -> Aspect_SequenceOfColor: ... + def MakeUniformColors( + theNbColors: int, theLightness: float, theHueFrom: float, theHueTo: float + ) -> Aspect_SequenceOfColor: ... def SetBreadth(self, theBreadth: int) -> None: ... - def SetColorRange(self, theMinColor: Quantity_Color, theMaxColor: Quantity_Color) -> None: ... + def SetColorRange( + self, theMinColor: Quantity_Color, theMaxColor: Quantity_Color + ) -> None: ... def SetColorType(self, theType: Aspect_TypeOfColorScaleData) -> None: ... def SetColors(self, theSeq: Aspect_SequenceOfColor) -> None: ... def SetFormat(self, theFormat: str) -> None: ... @@ -1161,7 +1708,9 @@ class AIS_ColorScale(AIS_InteractiveObject): def SetTextHeight(self, theHeight: int) -> None: ... def SetTitle(self, theTitle: str) -> None: ... def SetTitlePosition(self, thePos: Aspect_TypeOfColorScalePosition) -> None: ... - def SetUniformColors(self, theLightness: float, theHueFrom: float, theHueTo: float) -> None: ... + def SetUniformColors( + self, theLightness: float, theHueFrom: float, theHueTo: float + ) -> None: ... def SetXPosition(self, theX: int) -> None: ... def SetYPosition(self, theY: int) -> None: ... def TextHeight(self, theText: str) -> int: ... @@ -1171,15 +1720,24 @@ class AIS_ColorScale(AIS_InteractiveObject): def hueToValidRange(theHue: float) -> float: ... class AIS_ConnectedInteractive(AIS_InteractiveObject): - def __init__(self, aTypeOfPresentation3d: Optional[PrsMgr_TypeOfPresentation3d] = PrsMgr_TOP_AllView) -> None: ... + def __init__( + self, + aTypeOfPresentation3d: Optional[ + PrsMgr_TypeOfPresentation3d + ] = PrsMgr_TOP_AllView, + ) -> None: ... def AcceptDisplayMode(self, theMode: int) -> bool: ... def AcceptShapeDecomposition(self) -> bool: ... @overload def Connect(self, theAnotherObj: AIS_InteractiveObject) -> None: ... @overload - def Connect(self, theAnotherObj: AIS_InteractiveObject, theLocation: gp_Trsf) -> None: ... + def Connect( + self, theAnotherObj: AIS_InteractiveObject, theLocation: gp_Trsf + ) -> None: ... @overload - def Connect(self, theAnotherObj: AIS_InteractiveObject, theLocation: TopLoc_Datum3D) -> None: ... + def Connect( + self, theAnotherObj: AIS_InteractiveObject, theLocation: TopLoc_Datum3D + ) -> None: ... def ConnectedTo(self) -> AIS_InteractiveObject: ... def Disconnect(self) -> None: ... def HasConnection(self) -> bool: ... @@ -1201,8 +1759,12 @@ class AIS_LightSource(AIS_InteractiveObject): def SetDisplayRange(self, theToDisplay: bool) -> None: ... def SetDraggable(self, theIsDraggable: bool) -> None: ... def SetLight(self, theLight: Graphic3d_CLight) -> None: ... - def SetMarkerImage(self, theImage: Graphic3d_MarkerImage, theIsEnabled: bool) -> None: ... - def SetMarkerType(self, theType: Aspect_TypeOfMarker, theIsEnabled: bool) -> None: ... + def SetMarkerImage( + self, theImage: Graphic3d_MarkerImage, theIsEnabled: bool + ) -> None: ... + def SetMarkerType( + self, theType: Aspect_TypeOfMarker, theIsEnabled: bool + ) -> None: ... def SetNbArrows(self, theNbArrows: int) -> None: ... def SetNbSplitsArrow(self, theNbSplits: int) -> None: ... def SetNbSplitsQuadric(self, theNbSplits: int) -> None: ... @@ -1239,15 +1801,29 @@ class AIS_Manipulator(AIS_InteractiveObject): def ActiveAxisIndex(self) -> int: ... def ActiveMode(self) -> AIS_ManipulatorMode: ... def ClearSelected(self) -> None: ... - def Compute(self, thePrsMgr: PrsMgr_PresentationManager, thePrs: Prs3d_Presentation, theMode: Optional[int] = 0) -> None: ... - def ComputeSelection(self, theSelection: SelectMgr_Selection, theMode: int) -> None: ... + def Compute( + self, + thePrsMgr: PrsMgr_PresentationManager, + thePrs: Prs3d_Presentation, + theMode: Optional[int] = 0, + ) -> None: ... + def ComputeSelection( + self, theSelection: SelectMgr_Selection, theMode: int + ) -> None: ... def DeactivateCurrentMode(self) -> None: ... def Detach(self) -> None: ... def EnableMode(self, theMode: AIS_ManipulatorMode) -> None: ... def HasActiveMode(self) -> bool: ... def HasActiveTransformation(self) -> bool: ... - def HilightOwnerWithColor(self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theOwner: SelectMgr_EntityOwner) -> None: ... - def HilightSelected(self, thePM: PrsMgr_PresentationManager, theSeq: SelectMgr_SequenceOfOwner) -> None: ... + def HilightOwnerWithColor( + self, + thePM: PrsMgr_PresentationManager, + theStyle: Prs3d_Drawer, + theOwner: SelectMgr_EntityOwner, + ) -> None: ... + def HilightSelected( + self, thePM: PrsMgr_PresentationManager, theSeq: SelectMgr_SequenceOfOwner + ) -> None: ... def IsAttached(self) -> bool: ... def IsAutoHilight(self) -> bool: ... def IsModeActivationOnDetection(self) -> bool: ... @@ -1255,16 +1831,28 @@ class AIS_Manipulator(AIS_InteractiveObject): def Object(self) -> AIS_InteractiveObject: ... @overload def Object(self, theIndex: int) -> AIS_InteractiveObject: ... - def ObjectTransformation(self, theX: int, theY: int, theView: V3d_View, theTrsf: gp_Trsf) -> bool: ... + def ObjectTransformation( + self, theX: int, theY: int, theView: V3d_View, theTrsf: gp_Trsf + ) -> bool: ... def Objects(self) -> AIS_ManipulatorObjectSequence: ... def Position(self) -> gp_Ax2: ... - def ProcessDragging(self, theCtx: AIS_InteractiveContext, theView: V3d_View, theOwner: SelectMgr_EntityOwner, theDragFrom: Graphic3d_Vec2i, theDragTo: Graphic3d_Vec2i, theAction: AIS_DragAction) -> bool: ... + def ProcessDragging( + self, + theCtx: AIS_InteractiveContext, + theView: V3d_View, + theOwner: SelectMgr_EntityOwner, + theDragFrom: Graphic3d_Vec2i, + theDragTo: Graphic3d_Vec2i, + theAction: AIS_DragAction, + ) -> bool: ... def RecomputeSelection(self, theMode: AIS_ManipulatorMode) -> None: ... def RecomputeTransformation(self, theCamera: Graphic3d_Camera) -> None: ... def SetGap(self, theValue: float) -> None: ... def SetModeActivationOnDetection(self, theToEnable: bool) -> None: ... @overload - def SetPart(self, theAxisIndex: int, theMode: AIS_ManipulatorMode, theIsEnabled: bool) -> None: ... + def SetPart( + self, theAxisIndex: int, theMode: AIS_ManipulatorMode, theIsEnabled: bool + ) -> None: ... @overload def SetPart(self, theMode: AIS_ManipulatorMode, theIsEnabled: bool) -> None: ... def SetPosition(self, thePosition: gp_Ax2) -> None: ... @@ -1291,20 +1879,36 @@ class AIS_MediaPlayer(AIS_InteractiveObject): def OpenInput(self, thePath: str, theToWait: bool) -> None: ... def PlayPause(self) -> None: ... def PlayerContext(self) -> Media_PlayerContext: ... - def PresentFrame(self, theLeftCorner: Graphic3d_Vec2i, theMaxSize: Graphic3d_Vec2i) -> bool: ... + def PresentFrame( + self, theLeftCorner: Graphic3d_Vec2i, theMaxSize: Graphic3d_Vec2i + ) -> bool: ... def SetClosePlayer(self) -> None: ... class AIS_MultipleConnectedInteractive(AIS_InteractiveObject): def __init__(self) -> None: ... def AcceptShapeDecomposition(self) -> bool: ... @overload - def Connect(self, theAnotherObj: AIS_InteractiveObject, theLocation: TopLoc_Datum3D, theTrsfPers: Graphic3d_TransformPers) -> AIS_InteractiveObject: ... - @overload - def Connect(self, theAnotherObj: AIS_InteractiveObject) -> AIS_InteractiveObject: ... - @overload - def Connect(self, theAnotherObj: AIS_InteractiveObject, theLocation: gp_Trsf) -> AIS_InteractiveObject: ... - @overload - def Connect(self, theAnotherObj: AIS_InteractiveObject, theLocation: gp_Trsf, theTrsfPers: Graphic3d_TransformPers) -> AIS_InteractiveObject: ... + def Connect( + self, + theAnotherObj: AIS_InteractiveObject, + theLocation: TopLoc_Datum3D, + theTrsfPers: Graphic3d_TransformPers, + ) -> AIS_InteractiveObject: ... + @overload + def Connect( + self, theAnotherObj: AIS_InteractiveObject + ) -> AIS_InteractiveObject: ... + @overload + def Connect( + self, theAnotherObj: AIS_InteractiveObject, theLocation: gp_Trsf + ) -> AIS_InteractiveObject: ... + @overload + def Connect( + self, + theAnotherObj: AIS_InteractiveObject, + theLocation: gp_Trsf, + theTrsfPers: Graphic3d_TransformPers, + ) -> AIS_InteractiveObject: ... def Disconnect(self, theInteractive: AIS_InteractiveObject) -> None: ... def DisconnectAll(self) -> None: ... def GetAssemblyOwner(self) -> SelectMgr_EntityOwner: ... @@ -1316,36 +1920,65 @@ class AIS_MultipleConnectedInteractive(AIS_InteractiveObject): class AIS_Plane(AIS_InteractiveObject): @overload - def __init__(self, aComponent: Geom_Plane, aCurrentMode: Optional[bool] = False) -> None: ... - @overload - def __init__(self, aComponent: Geom_Plane, aCenter: gp_Pnt, aCurrentMode: Optional[bool] = False) -> None: ... - @overload - def __init__(self, aComponent: Geom_Plane, aCenter: gp_Pnt, aPmin: gp_Pnt, aPmax: gp_Pnt, aCurrentMode: Optional[bool] = False) -> None: ... - @overload - def __init__(self, aComponent: Geom_Axis2Placement, aPlaneType: AIS_TypeOfPlane, aCurrentMode: Optional[bool] = False) -> None: ... + def __init__( + self, aComponent: Geom_Plane, aCurrentMode: Optional[bool] = False + ) -> None: ... + @overload + def __init__( + self, + aComponent: Geom_Plane, + aCenter: gp_Pnt, + aCurrentMode: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + aComponent: Geom_Plane, + aCenter: gp_Pnt, + aPmin: gp_Pnt, + aPmax: gp_Pnt, + aCurrentMode: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + aComponent: Geom_Axis2Placement, + aPlaneType: AIS_TypeOfPlane, + aCurrentMode: Optional[bool] = False, + ) -> None: ... def AcceptDisplayMode(self, aMode: int) -> bool: ... def Axis2Placement(self) -> Geom_Axis2Placement: ... def Center(self) -> gp_Pnt: ... def Component(self) -> Geom_Plane: ... - def ComputeSelection(self, theSelection: SelectMgr_Selection, theMode: int) -> None: ... + def ComputeSelection( + self, theSelection: SelectMgr_Selection, theMode: int + ) -> None: ... def CurrentMode(self) -> bool: ... def HasMinimumSize(self) -> bool: ... def HasOwnSize(self) -> bool: ... def IsXYZPlane(self) -> bool: ... - def PlaneAttributes(self, aComponent: Geom_Plane, aCenter: gp_Pnt, aPmin: gp_Pnt, aPmax: gp_Pnt) -> bool: ... - def SetAxis2Placement(self, aComponent: Geom_Axis2Placement, aPlaneType: AIS_TypeOfPlane) -> None: ... + def PlaneAttributes( + self, aComponent: Geom_Plane, aCenter: gp_Pnt, aPmin: gp_Pnt, aPmax: gp_Pnt + ) -> bool: ... + def SetAxis2Placement( + self, aComponent: Geom_Axis2Placement, aPlaneType: AIS_TypeOfPlane + ) -> None: ... def SetCenter(self, theCenter: gp_Pnt) -> None: ... def SetColor(self, aColor: Quantity_Color) -> None: ... def SetComponent(self, aComponent: Geom_Plane) -> None: ... def SetContext(self, aCtx: AIS_InteractiveContext) -> None: ... def SetCurrentMode(self, theCurrentMode: bool) -> None: ... def SetMinimumSize(self, theValue: float) -> None: ... - def SetPlaneAttributes(self, aComponent: Geom_Plane, aCenter: gp_Pnt, aPmin: gp_Pnt, aPmax: gp_Pnt) -> None: ... + def SetPlaneAttributes( + self, aComponent: Geom_Plane, aCenter: gp_Pnt, aPmin: gp_Pnt, aPmax: gp_Pnt + ) -> None: ... @overload def SetSize(self, aValue: float) -> None: ... @overload def SetSize(self, Xval: float, YVal: float) -> None: ... - def SetTypeOfSensitivity(self, theTypeOfSensitivity: Select3D_TypeOfSensitivity) -> None: ... + def SetTypeOfSensitivity( + self, theTypeOfSensitivity: Select3D_TypeOfSensitivity + ) -> None: ... def Signature(self) -> int: ... def Size(self) -> Tuple[bool, float, float]: ... def Type(self) -> AIS_KindOfInteractive: ... @@ -1394,7 +2027,12 @@ class AIS_PointCloud(AIS_InteractiveObject): @overload def SetPoints(self, thePoints: Graphic3d_ArrayOfPoints) -> None: ... @overload - def SetPoints(self, theCoords: TColgp_HArray1OfPnt, theColors: Optional[Quantity_HArray1OfColor] = None, theNormals: Optional[TColgp_HArray1OfDir] = None) -> None: ... + def SetPoints( + self, + theCoords: TColgp_HArray1OfPnt, + theColors: Optional[Quantity_HArray1OfColor] = None, + theNormals: Optional[TColgp_HArray1OfDir] = None, + ) -> None: ... def UnsetColor(self) -> None: ... def UnsetMaterial(self) -> None: ... @@ -1402,9 +2040,23 @@ class AIS_RubberBand(AIS_InteractiveObject): @overload def __init__(self) -> None: ... @overload - def __init__(self, theLineColor: Quantity_Color, theType: Aspect_TypeOfLine, theLineWidth: Optional[float] = 1.0, theIsPolygonClosed: Optional[bool] = True) -> None: ... - @overload - def __init__(self, theLineColor: Quantity_Color, theType: Aspect_TypeOfLine, theFillColor: Quantity_Color, theTransparency: Optional[float] = 1.0, theLineWidth: Optional[float] = 1.0, theIsPolygonClosed: Optional[bool] = True) -> None: ... + def __init__( + self, + theLineColor: Quantity_Color, + theType: Aspect_TypeOfLine, + theLineWidth: Optional[float] = 1.0, + theIsPolygonClosed: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + theLineColor: Quantity_Color, + theType: Aspect_TypeOfLine, + theFillColor: Quantity_Color, + theTransparency: Optional[float] = 1.0, + theLineWidth: Optional[float] = 1.0, + theIsPolygonClosed: Optional[bool] = True, + ) -> None: ... def AddPoint(self, thePoint: Graphic3d_Vec2i) -> None: ... def ClearPoints(self) -> None: ... def FillColor(self) -> Quantity_Color: ... @@ -1426,7 +2078,9 @@ class AIS_RubberBand(AIS_InteractiveObject): def SetLineType(self, theType: Aspect_TypeOfLine) -> None: ... def SetLineWidth(self, theWidth: float) -> None: ... def SetPolygonClosed(self, theIsPolygonClosed: bool) -> None: ... - def SetRectangle(self, theMinX: int, theMinY: int, theMaxX: int, theMaxY: int) -> None: ... + def SetRectangle( + self, theMinX: int, theMinY: int, theMaxX: int, theMaxY: int + ) -> None: ... class AIS_Shape(AIS_InteractiveObject): def __init__(self, shap: TopoDS_Shape) -> None: ... @@ -1434,7 +2088,7 @@ class AIS_Shape(AIS_InteractiveObject): def AcceptShapeDecomposition(self) -> bool: ... def BoundingBox(self) -> Bnd_Box: ... def Color(self, aColor: Quantity_Color) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Material(self) -> Graphic3d_NameOfMaterial: ... def OwnDeviationAngle(self) -> Tuple[bool, float, float]: ... def OwnDeviationCoefficient(self) -> Tuple[bool, float, float]: ... @@ -1475,10 +2129,17 @@ class AIS_Shape(AIS_InteractiveObject): def UnsetWidth(self) -> None: ... def UserAngle(self) -> float: ... @staticmethod - def computeHlrPresentation(theProjector: Graphic3d_Camera, thePrs: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer) -> None: ... + def computeHlrPresentation( + theProjector: Graphic3d_Camera, + thePrs: Prs3d_Presentation, + theShape: TopoDS_Shape, + theDrawer: Prs3d_Drawer, + ) -> None: ... class AIS_SignatureFilter(AIS_TypeFilter): - def __init__(self, aGivenKind: AIS_KindOfInteractive, aGivenSignature: int) -> None: ... + def __init__( + self, aGivenKind: AIS_KindOfInteractive, aGivenSignature: int + ) -> None: ... def IsOk(self, anobj: SelectMgr_EntityOwner) -> bool: ... class AIS_TextLabel(AIS_InteractiveObject): @@ -1497,7 +2158,9 @@ class AIS_TextLabel(AIS_InteractiveObject): def SetDisplayType(self, theDisplayType: Aspect_TypeOfDisplayText) -> None: ... def SetFlipping(self, theIsFlipping: bool) -> None: ... def SetFont(self, theFont: str) -> None: ... - def SetHJustification(self, theHJust: Graphic3d_HorizontalTextAlignment) -> None: ... + def SetHJustification( + self, theHJust: Graphic3d_HorizontalTextAlignment + ) -> None: ... def SetHeight(self, theHeight: float) -> None: ... def SetOrientation3D(self, theOrientation: gp_Ax2) -> None: ... def SetOwnAnchorPoint(self, theOwnAnchorPoint: bool) -> None: ... @@ -1532,28 +2195,43 @@ class AIS_Trihedron(AIS_InteractiveObject): def HasArrowColor(self) -> bool: ... def HasOwnSize(self) -> bool: ... def HasTextColor(self) -> bool: ... - def HilightOwnerWithColor(self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theOwner: SelectMgr_EntityOwner) -> None: ... - def HilightSelected(self, thePM: PrsMgr_PresentationManager, theOwners: SelectMgr_SequenceOfOwner) -> None: ... + def HilightOwnerWithColor( + self, + thePM: PrsMgr_PresentationManager, + theStyle: Prs3d_Drawer, + theOwner: SelectMgr_EntityOwner, + ) -> None: ... + def HilightSelected( + self, thePM: PrsMgr_PresentationManager, theOwners: SelectMgr_SequenceOfOwner + ) -> None: ... def Label(self, thePart: Prs3d_DatumParts) -> str: ... def SelectionPriority(self, thePart: Prs3d_DatumParts) -> int: ... @overload def SetArrowColor(self, theColor: Quantity_Color) -> None: ... @overload - def SetArrowColor(self, thePart: Prs3d_DatumParts, theColor: Quantity_Color) -> None: ... + def SetArrowColor( + self, thePart: Prs3d_DatumParts, theColor: Quantity_Color + ) -> None: ... def SetAxisColor(self, theColor: Quantity_Color) -> None: ... def SetColor(self, theColor: Quantity_Color) -> None: ... def SetComponent(self, theComponent: Geom_Axis2Placement) -> None: ... def SetDatumDisplayMode(self, theMode: Prs3d_DatumMode) -> None: ... - def SetDatumPartColor(self, thePart: Prs3d_DatumParts, theColor: Quantity_Color) -> None: ... + def SetDatumPartColor( + self, thePart: Prs3d_DatumParts, theColor: Quantity_Color + ) -> None: ... def SetDrawArrows(self, theToDraw: bool) -> None: ... def SetLabel(self, thePart: Prs3d_DatumParts, theName: str) -> None: ... def SetOriginColor(self, theColor: Quantity_Color) -> None: ... - def SetSelectionPriority(self, thePart: Prs3d_DatumParts, thePriority: int) -> None: ... + def SetSelectionPriority( + self, thePart: Prs3d_DatumParts, thePriority: int + ) -> None: ... def SetSize(self, theValue: float) -> None: ... @overload def SetTextColor(self, theColor: Quantity_Color) -> None: ... @overload - def SetTextColor(self, thePart: Prs3d_DatumParts, theColor: Quantity_Color) -> None: ... + def SetTextColor( + self, thePart: Prs3d_DatumParts, theColor: Quantity_Color + ) -> None: ... def SetXAxisColor(self, theColor: Quantity_Color) -> None: ... def SetYAxisColor(self, theColor: Quantity_Color) -> None: ... def Signature(self) -> int: ... @@ -1583,16 +2261,30 @@ class AIS_ViewCube(AIS_InteractiveObject): def BoxSideStyle(self) -> Prs3d_ShadingAspect: ... def BoxTransparency(self) -> float: ... def ClearSelected(self) -> None: ... - def Compute(self, thePrsMgr: PrsMgr_PresentationManager, thePrs: Prs3d_Presentation, theMode: Optional[int] = 0) -> None: ... - def ComputeSelection(self, theSelection: SelectMgr_Selection, theMode: int) -> None: ... + def Compute( + self, + thePrsMgr: PrsMgr_PresentationManager, + thePrs: Prs3d_Presentation, + theMode: Optional[int] = 0, + ) -> None: ... + def ComputeSelection( + self, theSelection: SelectMgr_Selection, theMode: int + ) -> None: ... def Duration(self) -> float: ... def Font(self) -> str: ... def FontHeight(self) -> float: ... def GlobalSelOwner(self) -> SelectMgr_EntityOwner: ... def HandleClick(self, theOwner: AIS_ViewCubeOwner) -> None: ... def HasAnimation(self) -> bool: ... - def HilightOwnerWithColor(self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theOwner: SelectMgr_EntityOwner) -> None: ... - def HilightSelected(self, thePM: PrsMgr_PresentationManager, theSeq: SelectMgr_SequenceOfOwner) -> None: ... + def HilightOwnerWithColor( + self, + thePM: PrsMgr_PresentationManager, + theStyle: Prs3d_Drawer, + theOwner: SelectMgr_EntityOwner, + ) -> None: ... + def HilightSelected( + self, thePM: PrsMgr_PresentationManager, theSeq: SelectMgr_SequenceOfOwner + ) -> None: ... def InnerColor(self) -> Quantity_Color: ... def IsAutoHilight(self) -> bool: ... @staticmethod @@ -1616,7 +2308,9 @@ class AIS_ViewCube(AIS_InteractiveObject): def SetBoxEdgeGap(self, theValue: float) -> None: ... def SetBoxEdgeMinSize(self, theValue: float) -> None: ... def SetBoxFacetExtension(self, theValue: float) -> None: ... - def SetBoxSideLabel(self, theSide: V3d_TypeOfOrientation, theLabel: str) -> None: ... + def SetBoxSideLabel( + self, theSide: V3d_TypeOfOrientation, theLabel: str + ) -> None: ... def SetBoxTransparency(self, theValue: float) -> None: ... def SetColor(self, theColor: Quantity_Color) -> None: ... def SetDrawAxes(self, theValue: bool) -> None: ... @@ -1631,11 +2325,15 @@ class AIS_ViewCube(AIS_InteractiveObject): def SetMaterial(self, theMat: Graphic3d_MaterialAspect) -> None: ... def SetResetCamera(self, theToReset: bool) -> None: ... def SetRoundRadius(self, theValue: float) -> None: ... - def SetSize(self, theValue: float, theToAdaptAnother: Optional[bool] = true) -> None: ... + def SetSize( + self, theValue: float, theToAdaptAnother: Optional[bool] = true + ) -> None: ... def SetTextColor(self, theColor: Quantity_Color) -> None: ... def SetTransparency(self, theValue: float) -> None: ... def SetViewAnimation(self, theAnimation: AIS_AnimationCamera) -> None: ... - def SetYup(self, theIsYup: bool, theToUpdateLabels: Optional[bool] = True) -> None: ... + def SetYup( + self, theIsYup: bool, theToUpdateLabels: Optional[bool] = True + ) -> None: ... def Size(self) -> float: ... def StartAnimation(self, theOwner: AIS_ViewCubeOwner) -> None: ... def TextColor(self) -> Quantity_Color: ... @@ -1655,7 +2353,9 @@ class AIS_ViewCube(AIS_InteractiveObject): class AIS_XRTrackedDevice(AIS_InteractiveObject): @overload - def __init__(self, theTris: Graphic3d_ArrayOfTriangles, theTexture: Image_Texture) -> None: ... + def __init__( + self, theTris: Graphic3d_ArrayOfTriangles, theTexture: Image_Texture + ) -> None: ... @overload def __init__(self) -> None: ... def LaserColor(self) -> Quantity_Color: ... @@ -1668,10 +2368,25 @@ class AIS_XRTrackedDevice(AIS_InteractiveObject): def UnitFactor(self) -> float: ... class AIS_AnimationAxisRotation(AIS_BaseAnimationObject): - def __init__(self, theAnimationName: str, theContext: AIS_InteractiveContext, theObject: AIS_InteractiveObject, theAxis: gp_Ax1, theAngleStart: float, theAngleEnd: float) -> None: ... + def __init__( + self, + theAnimationName: str, + theContext: AIS_InteractiveContext, + theObject: AIS_InteractiveObject, + theAxis: gp_Ax1, + theAngleStart: float, + theAngleEnd: float, + ) -> None: ... class AIS_AnimationObject(AIS_BaseAnimationObject): - def __init__(self, theAnimationName: str, theContext: AIS_InteractiveContext, theObject: AIS_InteractiveObject, theTrsfStart: gp_Trsf, theTrsfEnd: gp_Trsf) -> None: ... + def __init__( + self, + theAnimationName: str, + theContext: AIS_InteractiveContext, + theObject: AIS_InteractiveObject, + theTrsfStart: gp_Trsf, + theTrsfEnd: gp_Trsf, + ) -> None: ... class AIS_ColoredShape(AIS_Shape): @overload @@ -1683,13 +2398,19 @@ class AIS_ColoredShape(AIS_Shape): def CustomAspects(self, theShape: TopoDS_Shape) -> AIS_ColoredDrawer: ... def CustomAspectsMap(self) -> AIS_DataMapOfShapeDrawer: ... def SetColor(self, theColor: Quantity_Color) -> None: ... - def SetCustomColor(self, theShape: TopoDS_Shape, theColor: Quantity_Color) -> None: ... - def SetCustomTransparency(self, theShape: TopoDS_Shape, theTransparency: float) -> None: ... + def SetCustomColor( + self, theShape: TopoDS_Shape, theColor: Quantity_Color + ) -> None: ... + def SetCustomTransparency( + self, theShape: TopoDS_Shape, theTransparency: float + ) -> None: ... def SetCustomWidth(self, theShape: TopoDS_Shape, theLineWidth: float) -> None: ... def SetMaterial(self, theAspect: Graphic3d_MaterialAspect) -> None: ... def SetTransparency(self, theValue: float) -> None: ... def SetWidth(self, theLineWidth: float) -> None: ... - def UnsetCustomAspects(self, theShape: TopoDS_Shape, theToUnregister: Optional[bool] = False) -> None: ... + def UnsetCustomAspects( + self, theShape: TopoDS_Shape, theToUnregister: Optional[bool] = False + ) -> None: ... def UnsetTransparency(self) -> None: ... def UnsetWidth(self) -> None: ... @@ -1703,10 +2424,25 @@ class AIS_TexturedShape(AIS_Shape): def SetTextureFileName(self, theTextureFileName: str) -> None: ... def SetTextureMapOff(self) -> None: ... def SetTextureMapOn(self) -> None: ... - def SetTextureOrigin(self, theToSetTextureOrigin: bool, theUOrigin: Optional[float] = 0.0, theVOrigin: Optional[float] = 0.0) -> None: ... + def SetTextureOrigin( + self, + theToSetTextureOrigin: bool, + theUOrigin: Optional[float] = 0.0, + theVOrigin: Optional[float] = 0.0, + ) -> None: ... def SetTexturePixMap(self, theTexturePixMap: Image_PixMap) -> None: ... - def SetTextureRepeat(self, theToRepeat: bool, theURepeat: Optional[float] = 1.0, theVRepeat: Optional[float] = 1.0) -> None: ... - def SetTextureScale(self, theToSetTextureScale: bool, theScaleU: Optional[float] = 1.0, theScaleV: Optional[float] = 1.0) -> None: ... + def SetTextureRepeat( + self, + theToRepeat: bool, + theURepeat: Optional[float] = 1.0, + theVRepeat: Optional[float] = 1.0, + ) -> None: ... + def SetTextureScale( + self, + theToSetTextureScale: bool, + theScaleU: Optional[float] = 1.0, + theScaleV: Optional[float] = 1.0, + ) -> None: ... def TextureFile(self) -> str: ... def TextureMapState(self) -> bool: ... def TextureModulate(self) -> bool: ... @@ -1727,4 +2463,3 @@ class AIS_TexturedShape(AIS_Shape): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/APIHeaderSection.pyi b/src/SWIG_files/wrapper/APIHeaderSection.pyi index c5ef9e426..a0df449d4 100644 --- a/src/SWIG_files/wrapper/APIHeaderSection.pyi +++ b/src/SWIG_files/wrapper/APIHeaderSection.pyi @@ -9,21 +9,34 @@ from OCC.Core.TCollection import * from OCC.Core.StepData import * from OCC.Core.HeaderSection import * - class APIHeaderSection_EditHeader(IFSelect_Editor): def __init__(self) -> None: ... - def Apply(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Apply( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def Label(self) -> str: ... - def Load(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Load( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def Recognize(self, form: IFSelect_EditForm) -> bool: ... - def StringValue(self, form: IFSelect_EditForm, num: int) -> TCollection_HAsciiString: ... + def StringValue( + self, form: IFSelect_EditForm, num: int + ) -> TCollection_HAsciiString: ... class APIHeaderSection_MakeHeader: @overload def __init__(self, shapetype: Optional[int] = 0) -> None: ... @overload def __init__(self, model: StepData_StepModel) -> None: ... - def AddSchemaIdentifier(self, aSchemaIdentifier: TCollection_HAsciiString) -> None: ... + def AddSchemaIdentifier( + self, aSchemaIdentifier: TCollection_HAsciiString + ) -> None: ... def Apply(self, model: StepData_StepModel) -> None: ... def Author(self) -> Interface_HArray1OfHAsciiString: ... def AuthorValue(self, num: int) -> TCollection_HAsciiString: ... @@ -55,19 +68,34 @@ class APIHeaderSection_MakeHeader: def SetAuthorValue(self, num: int, aAuthor: TCollection_HAsciiString) -> None: ... def SetAuthorisation(self, aAuthorisation: TCollection_HAsciiString) -> None: ... def SetDescription(self, aDescription: Interface_HArray1OfHAsciiString) -> None: ... - def SetDescriptionValue(self, num: int, aDescription: TCollection_HAsciiString) -> None: ... - def SetImplementationLevel(self, aImplementationLevel: TCollection_HAsciiString) -> None: ... + def SetDescriptionValue( + self, num: int, aDescription: TCollection_HAsciiString + ) -> None: ... + def SetImplementationLevel( + self, aImplementationLevel: TCollection_HAsciiString + ) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... - def SetOrganization(self, aOrganization: Interface_HArray1OfHAsciiString) -> None: ... - def SetOrganizationValue(self, num: int, aOrganization: TCollection_HAsciiString) -> None: ... - def SetOriginatingSystem(self, aOriginatingSystem: TCollection_HAsciiString) -> None: ... - def SetPreprocessorVersion(self, aPreprocessorVersion: TCollection_HAsciiString) -> None: ... - def SetSchemaIdentifiers(self, aSchemaIdentifiers: Interface_HArray1OfHAsciiString) -> None: ... - def SetSchemaIdentifiersValue(self, num: int, aSchemaIdentifier: TCollection_HAsciiString) -> None: ... + def SetOrganization( + self, aOrganization: Interface_HArray1OfHAsciiString + ) -> None: ... + def SetOrganizationValue( + self, num: int, aOrganization: TCollection_HAsciiString + ) -> None: ... + def SetOriginatingSystem( + self, aOriginatingSystem: TCollection_HAsciiString + ) -> None: ... + def SetPreprocessorVersion( + self, aPreprocessorVersion: TCollection_HAsciiString + ) -> None: ... + def SetSchemaIdentifiers( + self, aSchemaIdentifiers: Interface_HArray1OfHAsciiString + ) -> None: ... + def SetSchemaIdentifiersValue( + self, num: int, aSchemaIdentifier: TCollection_HAsciiString + ) -> None: ... def SetTimeStamp(self, aTimeStamp: TCollection_HAsciiString) -> None: ... def TimeStamp(self) -> TCollection_HAsciiString: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Adaptor2d.pyi b/src/SWIG_files/wrapper/Adaptor2d.pyi index 87a2ec05b..7fee51d0c 100644 --- a/src/SWIG_files/wrapper/Adaptor2d.pyi +++ b/src/SWIG_files/wrapper/Adaptor2d.pyi @@ -8,7 +8,6 @@ from OCC.Core.gp import * from OCC.Core.GeomAbs import * from OCC.Core.TColStd import * - class Adaptor2d_Curve2d(Standard_Transient): def BSpline(self) -> Geom2d_BSplineCurve: ... def Bezier(self) -> Geom2d_BezierCurve: ... @@ -17,7 +16,9 @@ class Adaptor2d_Curve2d(Standard_Transient): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Degree(self) -> int: ... def Ellipse(self) -> gp_Elips2d: ... @@ -45,7 +46,9 @@ class Adaptor2d_Line2d(Adaptor2d_Curve2d): @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, D: gp_Dir2d, UFirst: float, ULast: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, D: gp_Dir2d, UFirst: float, ULast: float + ) -> None: ... def BSpline(self) -> Geom2d_BSplineCurve: ... def Bezier(self) -> Geom2d_BezierCurve: ... def Circle(self) -> gp_Circ2d: ... @@ -53,7 +56,9 @@ class Adaptor2d_Line2d(Adaptor2d_Curve2d): def D0(self, X: float, P: gp_Pnt2d) -> None: ... def D1(self, X: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... def D2(self, X: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, X: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, X: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Degree(self) -> int: ... def Ellipse(self) -> gp_Elips2d: ... @@ -88,7 +93,9 @@ class Adaptor2d_OffsetCurve(Adaptor2d_Curve2d): @overload def __init__(self, C: Adaptor2d_Curve2d, Offset: float) -> None: ... @overload - def __init__(self, C: Adaptor2d_Curve2d, Offset: float, WFirst: float, WLast: float) -> None: ... + def __init__( + self, C: Adaptor2d_Curve2d, Offset: float, WFirst: float, WLast: float + ) -> None: ... def BSpline(self) -> Geom2d_BSplineCurve: ... def Bezier(self) -> Geom2d_BezierCurve: ... def Circle(self) -> gp_Circ2d: ... @@ -97,7 +104,9 @@ class Adaptor2d_OffsetCurve(Adaptor2d_Curve2d): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Degree(self) -> int: ... def Ellipse(self) -> gp_Elips2d: ... @@ -131,4 +140,3 @@ class Adaptor2d_OffsetCurve(Adaptor2d_Curve2d): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Adaptor3d.pyi b/src/SWIG_files/wrapper/Adaptor3d.pyi index c8b018d4c..bb485c9a1 100644 --- a/src/SWIG_files/wrapper/Adaptor3d.pyi +++ b/src/SWIG_files/wrapper/Adaptor3d.pyi @@ -11,7 +11,6 @@ from OCC.Core.TopAbs import * from OCC.Core.Adaptor2d import * from OCC.Core.math import * - class Adaptor3d_Curve(Standard_Transient): def BSpline(self) -> Geom_BSplineCurve: ... def Bezier(self) -> Geom_BezierCurve: ... @@ -60,15 +59,50 @@ class Adaptor3d_HSurfaceTool: @staticmethod def Cylinder(theSurf: Adaptor3d_Surface) -> gp_Cylinder: ... @staticmethod - def D0(theSurf: Adaptor3d_Surface, theU: float, theV: float, thePnt: gp_Pnt) -> None: ... - @staticmethod - def D1(theSurf: Adaptor3d_Surface, theU: float, theV: float, thePnt: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec) -> None: ... - @staticmethod - def D2(theSurf: Adaptor3d_Surface, theU: float, theV: float, thePnt: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec) -> None: ... - @staticmethod - def D3(theSurf: Adaptor3d_Surface, theU: float, theV: float, thePnt: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec, theD3U: gp_Vec, theD3V: gp_Vec, theD3UUV: gp_Vec, theD3UVV: gp_Vec) -> None: ... - @staticmethod - def DN(theSurf: Adaptor3d_Surface, theU: float, theV: float, theNU: int, theNV: int) -> gp_Vec: ... + def D0( + theSurf: Adaptor3d_Surface, theU: float, theV: float, thePnt: gp_Pnt + ) -> None: ... + @staticmethod + def D1( + theSurf: Adaptor3d_Surface, + theU: float, + theV: float, + thePnt: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + ) -> None: ... + @staticmethod + def D2( + theSurf: Adaptor3d_Surface, + theU: float, + theV: float, + thePnt: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + ) -> None: ... + @staticmethod + def D3( + theSurf: Adaptor3d_Surface, + theU: float, + theV: float, + thePnt: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + theD3U: gp_Vec, + theD3V: gp_Vec, + theD3UUV: gp_Vec, + theD3UVV: gp_Vec, + ) -> None: ... + @staticmethod + def DN( + theSurf: Adaptor3d_Surface, theU: float, theV: float, theNU: int, theNV: int + ) -> gp_Vec: ... @staticmethod def Direction(theSurf: Adaptor3d_Surface) -> gp_Dir: ... @staticmethod @@ -78,7 +112,11 @@ class Adaptor3d_HSurfaceTool: @staticmethod def GetType(theSurf: Adaptor3d_Surface) -> GeomAbs_SurfaceType: ... @staticmethod - def IsSurfG1(theSurf: Adaptor3d_Surface, theAlongU: bool, theAngTol: Optional[float] = Precision.Angular()) -> bool: ... + def IsSurfG1( + theSurf: Adaptor3d_Surface, + theAlongU: bool, + theAngTol: Optional[float] = Precision.Angular(), + ) -> bool: ... @staticmethod def IsUClosed(theSurf: Adaptor3d_Surface) -> bool: ... @staticmethod @@ -113,21 +151,29 @@ class Adaptor3d_HSurfaceTool: @staticmethod def Torus(theSurf: Adaptor3d_Surface) -> gp_Torus: ... @staticmethod - def UIntervals(theSurf: Adaptor3d_Surface, theTab: TColStd_Array1OfReal, theSh: GeomAbs_Shape) -> None: ... + def UIntervals( + theSurf: Adaptor3d_Surface, theTab: TColStd_Array1OfReal, theSh: GeomAbs_Shape + ) -> None: ... @staticmethod def UPeriod(theSurf: Adaptor3d_Surface) -> float: ... @staticmethod def UResolution(theSurf: Adaptor3d_Surface, theR3d: float) -> float: ... @staticmethod - def UTrim(theSurf: Adaptor3d_Surface, theFirst: float, theLast: float, theTol: float) -> Adaptor3d_Surface: ... + def UTrim( + theSurf: Adaptor3d_Surface, theFirst: float, theLast: float, theTol: float + ) -> Adaptor3d_Surface: ... @staticmethod - def VIntervals(theSurf: Adaptor3d_Surface, theTab: TColStd_Array1OfReal, theSh: GeomAbs_Shape) -> None: ... + def VIntervals( + theSurf: Adaptor3d_Surface, theTab: TColStd_Array1OfReal, theSh: GeomAbs_Shape + ) -> None: ... @staticmethod def VPeriod(theSurf: Adaptor3d_Surface) -> float: ... @staticmethod def VResolution(theSurf: Adaptor3d_Surface, theR3d: float) -> float: ... @staticmethod - def VTrim(theSurf: Adaptor3d_Surface, theFirst: float, theLast: float, theTol: float) -> Adaptor3d_Surface: ... + def VTrim( + theSurf: Adaptor3d_Surface, theFirst: float, theLast: float, theTol: float + ) -> Adaptor3d_Surface: ... @staticmethod def Value(theSurf: Adaptor3d_Surface, theU: float, theV: float) -> gp_Pnt: ... @@ -135,7 +181,9 @@ class Adaptor3d_HVertex(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, Ori: TopAbs_Orientation, Resolution: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, Ori: TopAbs_Orientation, Resolution: float + ) -> None: ... def IsSame(self, Other: Adaptor3d_HVertex) -> bool: ... def Orientation(self) -> TopAbs_Orientation: ... def Parameter(self, C: Adaptor2d_Curve2d) -> float: ... @@ -158,8 +206,32 @@ class Adaptor3d_Surface(Standard_Transient): def Cylinder(self) -> gp_Cylinder: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... def Direction(self) -> gp_Dir: ... def FirstUParameter(self) -> float: ... @@ -204,7 +276,9 @@ class Adaptor3d_TopolTool(Standard_Transient): @overload def __init__(self, Surface: Adaptor3d_Surface) -> None: ... def BSplSamplePnts(self, theDefl: float, theNUmin: int, theNVmin: int) -> None: ... - def Classify(self, P: gp_Pnt2d, Tol: float, ReacdreOnPeriodic: Optional[bool] = True) -> TopAbs_State: ... + def Classify( + self, P: gp_Pnt2d, Tol: float, ReacdreOnPeriodic: Optional[bool] = True + ) -> TopAbs_State: ... def ComputeSamplePoints(self) -> None: ... def DomainIsInfinite(self) -> bool: ... def Edge(self) -> None: ... @@ -220,7 +294,9 @@ class Adaptor3d_TopolTool(Standard_Transient): def Initialize(self, S: Adaptor3d_Surface) -> None: ... @overload def Initialize(self, Curve: Adaptor2d_Curve2d) -> None: ... - def IsThePointOn(self, P: gp_Pnt2d, Tol: float, ReacdreOnPeriodic: Optional[bool] = True) -> bool: ... + def IsThePointOn( + self, P: gp_Pnt2d, Tol: float, ReacdreOnPeriodic: Optional[bool] = True + ) -> bool: ... def IsUniformSampling(self) -> bool: ... def More(self) -> bool: ... def MoreVertex(self) -> bool: ... @@ -298,9 +374,18 @@ class Adaptor3d_IsoCurve(Adaptor3d_Curve): @overload def __init__(self, S: Adaptor3d_Surface) -> None: ... @overload - def __init__(self, S: Adaptor3d_Surface, Iso: GeomAbs_IsoType, Param: float) -> None: ... + def __init__( + self, S: Adaptor3d_Surface, Iso: GeomAbs_IsoType, Param: float + ) -> None: ... @overload - def __init__(self, S: Adaptor3d_Surface, Iso: GeomAbs_IsoType, Param: float, WFirst: float, WLast: float) -> None: ... + def __init__( + self, + S: Adaptor3d_Surface, + Iso: GeomAbs_IsoType, + Param: float, + WFirst: float, + WLast: float, + ) -> None: ... def BSpline(self) -> Geom_BSplineCurve: ... def Bezier(self) -> Geom_BezierCurve: ... def Circle(self) -> gp_Circ: ... @@ -327,7 +412,9 @@ class Adaptor3d_IsoCurve(Adaptor3d_Curve): @overload def Load(self, Iso: GeomAbs_IsoType, Param: float) -> None: ... @overload - def Load(self, Iso: GeomAbs_IsoType, Param: float, WFirst: float, WLast: float) -> None: ... + def Load( + self, Iso: GeomAbs_IsoType, Param: float, WFirst: float, WLast: float + ) -> None: ... def NbIntervals(self, S: GeomAbs_Shape) -> int: ... def NbKnots(self) -> int: ... def NbPoles(self) -> int: ... @@ -343,4 +430,3 @@ class Adaptor3d_IsoCurve(Adaptor3d_Curve): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/AdvApp2Var.pyi b/src/SWIG_files/wrapper/AdvApp2Var.pyi index 3d6bee684..8a890da1f 100644 --- a/src/SWIG_files/wrapper/AdvApp2Var.pyi +++ b/src/SWIG_files/wrapper/AdvApp2Var.pyi @@ -37,64 +37,88 @@ uinteger = NewType("uinteger", int) ulongint = NewType("ulongint", int) class AdvApp2Var_SequenceOfNode: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class AdvApp2Var_SequenceOfPatch: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class AdvApp2Var_SequenceOfPatch: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class AdvApp2Var_SequenceOfStrip: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class AdvApp2Var_SequenceOfStrip: + def Assign(self, theItem: AdvApp2Var_Strip) -> AdvApp2Var_Strip: ... def Clear(self) -> None: ... def First(self) -> AdvApp2Var_Strip: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> AdvApp2Var_Strip: ... def Length(self) -> int: ... - def Append(self, theItem: AdvApp2Var_Strip) -> AdvApp2Var_Strip: ... + def Lower(self) -> int: ... def Prepend(self, theItem: AdvApp2Var_Strip) -> AdvApp2Var_Strip: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> AdvApp2Var_Strip: ... def SetValue(self, theIndex: int, theValue: AdvApp2Var_Strip) -> None: ... - -class AdvApp2Var_Strip: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> AdvApp2Var_Strip: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class AdvApp2Var_Strip: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class AdvApp2Var_CriterionRepartition(IntEnum): AdvApp2Var_Regular: int = ... @@ -112,9 +136,60 @@ AdvApp2Var_Relative = AdvApp2Var_CriterionType.AdvApp2Var_Relative class AdvApp2Var_ApproxAFunc2Var: @overload - def __init__(self, Num1DSS: int, Num2DSS: int, Num3DSS: int, OneDTol: TColStd_HArray1OfReal, TwoDTol: TColStd_HArray1OfReal, ThreeDTol: TColStd_HArray1OfReal, OneDTolFr: TColStd_HArray2OfReal, TwoDTolFr: TColStd_HArray2OfReal, ThreeDTolFr: TColStd_HArray2OfReal, FirstInU: float, LastInU: float, FirstInV: float, LastInV: float, FavorIso: GeomAbs_IsoType, ContInU: GeomAbs_Shape, ContInV: GeomAbs_Shape, PrecisCode: int, MaxDegInU: int, MaxDegInV: int, MaxPatch: int, Func: AdvApp2Var_EvaluatorFunc2Var, UChoice: AdvApprox_Cutting, VChoice: AdvApprox_Cutting) -> None: ... + def __init__( + self, + Num1DSS: int, + Num2DSS: int, + Num3DSS: int, + OneDTol: TColStd_HArray1OfReal, + TwoDTol: TColStd_HArray1OfReal, + ThreeDTol: TColStd_HArray1OfReal, + OneDTolFr: TColStd_HArray2OfReal, + TwoDTolFr: TColStd_HArray2OfReal, + ThreeDTolFr: TColStd_HArray2OfReal, + FirstInU: float, + LastInU: float, + FirstInV: float, + LastInV: float, + FavorIso: GeomAbs_IsoType, + ContInU: GeomAbs_Shape, + ContInV: GeomAbs_Shape, + PrecisCode: int, + MaxDegInU: int, + MaxDegInV: int, + MaxPatch: int, + Func: AdvApp2Var_EvaluatorFunc2Var, + UChoice: AdvApprox_Cutting, + VChoice: AdvApprox_Cutting, + ) -> None: ... @overload - def __init__(self, Num1DSS: int, Num2DSS: int, Num3DSS: int, OneDTol: TColStd_HArray1OfReal, TwoDTol: TColStd_HArray1OfReal, ThreeDTol: TColStd_HArray1OfReal, OneDTolFr: TColStd_HArray2OfReal, TwoDTolFr: TColStd_HArray2OfReal, ThreeDTolFr: TColStd_HArray2OfReal, FirstInU: float, LastInU: float, FirstInV: float, LastInV: float, FavorIso: GeomAbs_IsoType, ContInU: GeomAbs_Shape, ContInV: GeomAbs_Shape, PrecisCode: int, MaxDegInU: int, MaxDegInV: int, MaxPatch: int, Func: AdvApp2Var_EvaluatorFunc2Var, Crit: AdvApp2Var_Criterion, UChoice: AdvApprox_Cutting, VChoice: AdvApprox_Cutting) -> None: ... + def __init__( + self, + Num1DSS: int, + Num2DSS: int, + Num3DSS: int, + OneDTol: TColStd_HArray1OfReal, + TwoDTol: TColStd_HArray1OfReal, + ThreeDTol: TColStd_HArray1OfReal, + OneDTolFr: TColStd_HArray2OfReal, + TwoDTolFr: TColStd_HArray2OfReal, + ThreeDTolFr: TColStd_HArray2OfReal, + FirstInU: float, + LastInU: float, + FirstInV: float, + LastInV: float, + FavorIso: GeomAbs_IsoType, + ContInU: GeomAbs_Shape, + ContInV: GeomAbs_Shape, + PrecisCode: int, + MaxDegInU: int, + MaxDegInV: int, + MaxPatch: int, + Func: AdvApp2Var_EvaluatorFunc2Var, + Crit: AdvApp2Var_Criterion, + UChoice: AdvApprox_Cutting, + VChoice: AdvApprox_Cutting, + ) -> None: ... @overload def AverageError(self, Dimension: int) -> TColStd_HArray1OfReal: ... @overload @@ -142,15 +217,127 @@ class AdvApp2Var_ApproxAFunc2Var: class AdvApp2Var_ApproxF2var: @staticmethod - def mma2cdi_(ndimen: int, nbpntu: int, urootl: float, nbpntv: int, vrootl: float, iordru: int, iordrv: int, contr1: float, contr2: float, contr3: float, contr4: float, sotbu1: float, sotbu2: float, ditbu1: float, ditbu2: float, sotbv1: float, sotbv2: float, ditbv1: float, ditbv2: float, sosotb: float, soditb: float, disotb: float, diditb: float, iercod: int) -> int: ... - @staticmethod - def mma2ce1_(numdec: int, ndimen: int, nbsesp: int, ndimse: int, ndminu: int, ndminv: int, ndguli: int, ndgvli: int, ndjacu: int, ndjacv: int, iordru: int, iordrv: int, nbpntu: int, nbpntv: int, epsapr: float, sosotb: float, disotb: float, soditb: float, diditb: float, patjac: float, errmax: float, errmoy: float, ndegpu: int, ndegpv: int, itydec: int, iercod: int) -> int: ... - @staticmethod - def mma2ds1_(ndimen: int, uintfn: float, vintfn: float, foncnp: AdvApp2Var_EvaluatorFunc2Var, nbpntu: int, nbpntv: int, urootb: float, vrootb: float, isofav: int, sosotb: float, disotb: float, soditb: float, diditb: float, fpntab: float, ttable: float, iercod: int) -> int: ... - @staticmethod - def mma2fnc_(ndimen: int, nbsesp: int, ndimse: int, uvfonc: float, foncnp: AdvApp2Var_EvaluatorFunc2Var, tconst: float, isofav: int, nbroot: int, rootlg: float, iordre: int, ideriv: int, ndgjac: int, nbcrmx: int, ncflim: int, epsapr: float, ncoeff: int, courbe: float, nbcrbe: int, somtab: float, diftab: float, contr1: float, contr2: float, tabdec: float, errmax: float, errmoy: float, iercod: int) -> int: ... - @staticmethod - def mma2fx6_(ncfmxu: int, ncfmxv: int, ndimen: int, nbsesp: int, ndimse: int, nbupat: int, nbvpat: int, iordru: int, iordrv: int, epsapr: float, epsfro: float, patcan: float, errmax: float, ncoefu: int, ncoefv: int) -> int: ... + def mma2cdi_( + ndimen: int, + nbpntu: int, + urootl: float, + nbpntv: int, + vrootl: float, + iordru: int, + iordrv: int, + contr1: float, + contr2: float, + contr3: float, + contr4: float, + sotbu1: float, + sotbu2: float, + ditbu1: float, + ditbu2: float, + sotbv1: float, + sotbv2: float, + ditbv1: float, + ditbv2: float, + sosotb: float, + soditb: float, + disotb: float, + diditb: float, + iercod: int, + ) -> int: ... + @staticmethod + def mma2ce1_( + numdec: int, + ndimen: int, + nbsesp: int, + ndimse: int, + ndminu: int, + ndminv: int, + ndguli: int, + ndgvli: int, + ndjacu: int, + ndjacv: int, + iordru: int, + iordrv: int, + nbpntu: int, + nbpntv: int, + epsapr: float, + sosotb: float, + disotb: float, + soditb: float, + diditb: float, + patjac: float, + errmax: float, + errmoy: float, + ndegpu: int, + ndegpv: int, + itydec: int, + iercod: int, + ) -> int: ... + @staticmethod + def mma2ds1_( + ndimen: int, + uintfn: float, + vintfn: float, + foncnp: AdvApp2Var_EvaluatorFunc2Var, + nbpntu: int, + nbpntv: int, + urootb: float, + vrootb: float, + isofav: int, + sosotb: float, + disotb: float, + soditb: float, + diditb: float, + fpntab: float, + ttable: float, + iercod: int, + ) -> int: ... + @staticmethod + def mma2fnc_( + ndimen: int, + nbsesp: int, + ndimse: int, + uvfonc: float, + foncnp: AdvApp2Var_EvaluatorFunc2Var, + tconst: float, + isofav: int, + nbroot: int, + rootlg: float, + iordre: int, + ideriv: int, + ndgjac: int, + nbcrmx: int, + ncflim: int, + epsapr: float, + ncoeff: int, + courbe: float, + nbcrbe: int, + somtab: float, + diftab: float, + contr1: float, + contr2: float, + tabdec: float, + errmax: float, + errmoy: float, + iercod: int, + ) -> int: ... + @staticmethod + def mma2fx6_( + ncfmxu: int, + ncfmxv: int, + ndimen: int, + nbsesp: int, + ndimse: int, + nbupat: int, + nbvpat: int, + iordru: int, + iordrv: int, + epsapr: float, + epsfro: float, + patcan: float, + errmax: float, + ncoefu: int, + ncoefv: int, + ) -> int: ... @staticmethod def mma2jmx_(ndgjac: int, iordre: int, xjacmx: float) -> int: ... @staticmethod @@ -160,7 +347,24 @@ class AdvApp2Var_Context: @overload def __init__(self) -> None: ... @overload - def __init__(self, ifav: int, iu: int, iv: int, nlimu: int, nlimv: int, iprecis: int, nb1Dss: int, nb2Dss: int, nb3Dss: int, tol1D: TColStd_HArray1OfReal, tol2D: TColStd_HArray1OfReal, tol3D: TColStd_HArray1OfReal, tof1D: TColStd_HArray2OfReal, tof2D: TColStd_HArray2OfReal, tof3D: TColStd_HArray2OfReal) -> None: ... + def __init__( + self, + ifav: int, + iu: int, + iv: int, + nlimu: int, + nlimv: int, + iprecis: int, + nb1Dss: int, + nb2Dss: int, + nb3Dss: int, + tol1D: TColStd_HArray1OfReal, + tol2D: TColStd_HArray1OfReal, + tol3D: TColStd_HArray1OfReal, + tof1D: TColStd_HArray2OfReal, + tof2D: TColStd_HArray2OfReal, + tof3D: TColStd_HArray2OfReal, + ) -> None: ... def CToler(self) -> TColStd_HArray2OfReal: ... def FToler(self) -> TColStd_HArray2OfReal: ... def FavorIso(self) -> int: ... @@ -215,13 +419,24 @@ class AdvApp2Var_Framework: @overload def __init__(self) -> None: ... @overload - def __init__(self, Frame: AdvApp2Var_SequenceOfNode, UFrontier: AdvApp2Var_SequenceOfStrip, VFrontier: AdvApp2Var_SequenceOfStrip) -> None: ... - def ChangeIso(self, IndexIso: int, IndexStrip: int, anIso: AdvApp2Var_Iso) -> None: ... - def FirstNode(self, Type: GeomAbs_IsoType, IndexIso: int, IndexStrip: int) -> int: ... + def __init__( + self, + Frame: AdvApp2Var_SequenceOfNode, + UFrontier: AdvApp2Var_SequenceOfStrip, + VFrontier: AdvApp2Var_SequenceOfStrip, + ) -> None: ... + def ChangeIso( + self, IndexIso: int, IndexStrip: int, anIso: AdvApp2Var_Iso + ) -> None: ... + def FirstNode( + self, Type: GeomAbs_IsoType, IndexIso: int, IndexStrip: int + ) -> int: ... def FirstNotApprox(self) -> Tuple[AdvApp2Var_Iso, int, int]: ... def IsoU(self, U: float, V0: float, V1: float) -> AdvApp2Var_Iso: ... def IsoV(self, U0: float, U1: float, V: float) -> AdvApp2Var_Iso: ... - def LastNode(self, Type: GeomAbs_IsoType, IndexIso: int, IndexStrip: int) -> int: ... + def LastNode( + self, Type: GeomAbs_IsoType, IndexIso: int, IndexStrip: int + ) -> int: ... @overload def Node(self, IndexNode: int) -> AdvApp2Var_Node: ... @overload @@ -235,57 +450,214 @@ class AdvApp2Var_MathBase: @staticmethod def mdsptpt_(ndimen: int, point1: float, point2: float, distan: float) -> int: ... @staticmethod - def mmaperx_(ncofmx: int, ndimen: int, ncoeff: int, iordre: int, crvjac: float, ncfnew: int, ycvmax: float, errmax: float, iercod: int) -> int: ... - @staticmethod - def mmarcin_(ndimax: int, ndim: int, ncoeff: int, crvold: float, u0: float, u1: float, crvnew: float, iercod: int) -> int: ... + def mmaperx_( + ncofmx: int, + ndimen: int, + ncoeff: int, + iordre: int, + crvjac: float, + ncfnew: int, + ycvmax: float, + errmax: float, + iercod: int, + ) -> int: ... + @staticmethod + def mmarcin_( + ndimax: int, + ndim: int, + ncoeff: int, + crvold: float, + u0: float, + u1: float, + crvnew: float, + iercod: int, + ) -> int: ... @staticmethod def mmbulld_(nbcoln: int, nblign: int, dtabtr: float, numcle: int) -> int: ... @staticmethod - def mmcdriv_(ndimen: int, ncoeff: int, courbe: float, ideriv: int, ncofdv: int, crvdrv: float) -> int: ... - @staticmethod - def mmcglc1_(ndimax: int, ndimen: int, ncoeff: int, courbe: float, tdebut: float, tfinal: float, epsiln: float, xlongc: float, erreur: float, iercod: int) -> int: ... - @staticmethod - def mmcvctx_(ndimen: int, ncofmx: int, nderiv: int, ctrtes: float, crvres: float, tabaux: float, xmatri: float, iercod: int) -> int: ... - @staticmethod - def mmcvinv_(ndimax: int, ncoef: int, ndim: int, curveo: float, curve: float) -> int: ... - @staticmethod - def mmdrvck_(ncoeff: int, ndimen: int, courbe: float, ideriv: int, tparam: float, pntcrb: float) -> int: ... + def mmcdriv_( + ndimen: int, ncoeff: int, courbe: float, ideriv: int, ncofdv: int, crvdrv: float + ) -> int: ... + @staticmethod + def mmcglc1_( + ndimax: int, + ndimen: int, + ncoeff: int, + courbe: float, + tdebut: float, + tfinal: float, + epsiln: float, + xlongc: float, + erreur: float, + iercod: int, + ) -> int: ... + @staticmethod + def mmcvctx_( + ndimen: int, + ncofmx: int, + nderiv: int, + ctrtes: float, + crvres: float, + tabaux: float, + xmatri: float, + iercod: int, + ) -> int: ... + @staticmethod + def mmcvinv_( + ndimax: int, ncoef: int, ndim: int, curveo: float, curve: float + ) -> int: ... + @staticmethod + def mmdrvck_( + ncoeff: int, + ndimen: int, + courbe: float, + ideriv: int, + tparam: float, + pntcrb: float, + ) -> int: ... @staticmethod def mmeps1_(epsilo: float) -> int: ... @staticmethod - def mmfmca8_(ndimen: int, ncoefu: int, ncoefv: int, ndimax: int, ncfumx: int, ncfvmx: int, tabini: float, tabres: float) -> int: ... - @staticmethod - def mmfmcar_(ndimen: int, ncofmx: int, ncoefu: int, ncoefv: int, patold: float, upara1: float, upara2: float, vpara1: float, vpara2: float, patnew: float, iercod: int) -> int: ... - @staticmethod - def mmfmtb1_(maxsz1: int, table1: float, isize1: int, jsize1: int, maxsz2: int, table2: float, isize2: int, jsize2: int, iercod: int) -> int: ... - @staticmethod - def mmhjcan_(ndimen: int, ncourb: int, ncftab: int, orcont: int, ncflim: int, tcbold: float, tdecop: float, tcbnew: float, iercod: int) -> int: ... - @staticmethod - def mminltt_(ncolmx: int, nlgnmx: int, tabtri: float, nbrcol: int, nbrlgn: int, ajoute: float, epseg: float, iercod: int) -> int: ... + def mmfmca8_( + ndimen: int, + ncoefu: int, + ncoefv: int, + ndimax: int, + ncfumx: int, + ncfvmx: int, + tabini: float, + tabres: float, + ) -> int: ... + @staticmethod + def mmfmcar_( + ndimen: int, + ncofmx: int, + ncoefu: int, + ncoefv: int, + patold: float, + upara1: float, + upara2: float, + vpara1: float, + vpara2: float, + patnew: float, + iercod: int, + ) -> int: ... + @staticmethod + def mmfmtb1_( + maxsz1: int, + table1: float, + isize1: int, + jsize1: int, + maxsz2: int, + table2: float, + isize2: int, + jsize2: int, + iercod: int, + ) -> int: ... + @staticmethod + def mmhjcan_( + ndimen: int, + ncourb: int, + ncftab: int, + orcont: int, + ncflim: int, + tcbold: float, + tdecop: float, + tcbnew: float, + iercod: int, + ) -> int: ... + @staticmethod + def mminltt_( + ncolmx: int, + nlgnmx: int, + tabtri: float, + nbrcol: int, + nbrlgn: int, + ajoute: float, + epseg: float, + iercod: int, + ) -> int: ... @staticmethod def mmjacan_(ideriv: int, ndeg: int, poljac: float, polcan: float) -> int: ... @staticmethod - def mmjaccv_(ncoef: int, ndim: int, ider: int, crvlgd: float, polaux: float, crvcan: float) -> int: ... - @staticmethod - def mmmpocur_(ncofmx: int, ndim: int, ndeg: int, courbe: float, tparam: float, tabval: float) -> int: ... - @staticmethod - def mmmrslwd_(normax: int, nordre: int, ndim: int, amat: float, bmat: float, epspiv: float, aaux: float, xmat: float, iercod: int) -> int: ... - @staticmethod - def mmpobas_(tparam: float, iordre: int, ncoeff: int, nderiv: int, valbas: float, iercod: int) -> int: ... - @staticmethod - def mmpocrb_(ndimax: int, ncoeff: int, courbe: float, ndim: int, tparam: float, pntcrb: float) -> int: ... - @staticmethod - def mmposui_(dimmat: int, nistoc: int, aposit: int, posuiv: int, iercod: int) -> int: ... - @staticmethod - def mmresol_(hdimen: int, gdimen: int, hnstoc: int, gnstoc: int, mnstoc: int, matsyh: float, matsyg: float, vecsyh: float, vecsyg: float, hposit: int, hposui: int, gposit: int, mmposui: int, mposit: int, vecsol: float, iercod: int) -> int: ... + def mmjaccv_( + ncoef: int, ndim: int, ider: int, crvlgd: float, polaux: float, crvcan: float + ) -> int: ... + @staticmethod + def mmmpocur_( + ncofmx: int, ndim: int, ndeg: int, courbe: float, tparam: float, tabval: float + ) -> int: ... + @staticmethod + def mmmrslwd_( + normax: int, + nordre: int, + ndim: int, + amat: float, + bmat: float, + epspiv: float, + aaux: float, + xmat: float, + iercod: int, + ) -> int: ... + @staticmethod + def mmpobas_( + tparam: float, iordre: int, ncoeff: int, nderiv: int, valbas: float, iercod: int + ) -> int: ... + @staticmethod + def mmpocrb_( + ndimax: int, ncoeff: int, courbe: float, ndim: int, tparam: float, pntcrb: float + ) -> int: ... + @staticmethod + def mmposui_( + dimmat: int, nistoc: int, aposit: int, posuiv: int, iercod: int + ) -> int: ... + @staticmethod + def mmresol_( + hdimen: int, + gdimen: int, + hnstoc: int, + gnstoc: int, + mnstoc: int, + matsyh: float, + matsyg: float, + vecsyh: float, + vecsyg: float, + hposit: int, + hposui: int, + gposit: int, + mmposui: int, + mposit: int, + vecsol: float, + iercod: int, + ) -> int: ... @staticmethod def mmrtptt_(ndglgd: int, rtlegd: float) -> int: ... @staticmethod - def mmsrre2_(tparam: float, nbrval: int, tablev: float, epsil: float, numint: int, itypen: int, iercod: int) -> int: ... - @staticmethod - def mmtrpjj_(ncofmx: int, ndimen: int, ncoeff: int, epsi3d: float, iordre: int, crvlgd: float, ycvmax: float, errmax: float, ncfnew: int) -> int: ... - @staticmethod - def mmunivt_(ndimen: int, vector: float, vecnrm: float, epsiln: float, iercod: int) -> int: ... + def mmsrre2_( + tparam: float, + nbrval: int, + tablev: float, + epsil: float, + numint: int, + itypen: int, + iercod: int, + ) -> int: ... + @staticmethod + def mmtrpjj_( + ncofmx: int, + ndimen: int, + ncoeff: int, + epsi3d: float, + iordre: int, + crvlgd: float, + ycvmax: float, + errmax: float, + ncfnew: int, + ) -> int: ... + @staticmethod + def mmunivt_( + ndimen: int, vector: float, vecnrm: float, epsiln: float, iercod: int + ) -> int: ... @staticmethod def mmveps3_(eps03: float) -> int: ... @staticmethod @@ -303,7 +675,12 @@ class AdvApp2Var_Network: @overload def __init__(self) -> None: ... @overload - def __init__(self, Net: AdvApp2Var_SequenceOfPatch, TheU: TColStd_SequenceOfReal, TheV: TColStd_SequenceOfReal) -> None: ... + def __init__( + self, + Net: AdvApp2Var_SequenceOfPatch, + TheU: TColStd_SequenceOfReal, + TheV: TColStd_SequenceOfReal, + ) -> None: ... def ChangePatch(self, Index: int) -> AdvApp2Var_Patch: ... def FirstNotApprox(self) -> Tuple[bool, int]: ... def NbPatch(self) -> int: ... @@ -336,29 +713,47 @@ class AdvApp2Var_Patch(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, U0: float, U1: float, V0: float, V1: float, iu: int, iv: int) -> None: ... - def AddConstraints(self, Conditions: AdvApp2Var_Context, Constraints: AdvApp2Var_Framework) -> None: ... + def __init__( + self, U0: float, U1: float, V0: float, V1: float, iu: int, iv: int + ) -> None: ... + def AddConstraints( + self, Conditions: AdvApp2Var_Context, Constraints: AdvApp2Var_Framework + ) -> None: ... def AddErrors(self, Constraints: AdvApp2Var_Framework) -> None: ... def AverageErrors(self) -> TColStd_HArray1OfReal: ... def ChangeDomain(self, a: float, b: float, c: float, d: float) -> None: ... def ChangeNbCoeff(self, NbCoeffU: int, NbCoeffV: int) -> None: ... - def Coefficients(self, SSPIndex: int, Conditions: AdvApp2Var_Context) -> TColStd_HArray1OfReal: ... + def Coefficients( + self, SSPIndex: int, Conditions: AdvApp2Var_Context + ) -> TColStd_HArray1OfReal: ... def CritValue(self) -> float: ... @overload def CutSense(self) -> int: ... @overload def CutSense(self, Crit: AdvApp2Var_Criterion, NumDec: int) -> int: ... - def Discretise(self, Conditions: AdvApp2Var_Context, Constraints: AdvApp2Var_Framework, func: AdvApp2Var_EvaluatorFunc2Var) -> None: ... + def Discretise( + self, + Conditions: AdvApp2Var_Context, + Constraints: AdvApp2Var_Framework, + func: AdvApp2Var_EvaluatorFunc2Var, + ) -> None: ... def HasResult(self) -> bool: ... def IsApproximated(self) -> bool: ... def IsDiscretised(self) -> bool: ... def IsoErrors(self) -> TColStd_HArray2OfReal: ... - def MakeApprox(self, Conditions: AdvApp2Var_Context, Constraints: AdvApp2Var_Framework, NumDec: int) -> None: ... + def MakeApprox( + self, + Conditions: AdvApp2Var_Context, + Constraints: AdvApp2Var_Framework, + NumDec: int, + ) -> None: ... def MaxErrors(self) -> TColStd_HArray1OfReal: ... def NbCoeffInU(self) -> int: ... def NbCoeffInV(self) -> int: ... def OverwriteApprox(self) -> None: ... - def Poles(self, SSPIndex: int, Conditions: AdvApp2Var_Context) -> TColgp_HArray2OfPnt: ... + def Poles( + self, SSPIndex: int, Conditions: AdvApp2Var_Context + ) -> TColgp_HArray2OfPnt: ... def ResetApprox(self) -> None: ... def SetCritValue(self, dist: float) -> None: ... def U0(self) -> float: ... @@ -392,13 +787,12 @@ class AdvApp2Var_SysBase: @staticmethod def mvriraz_(taille: int, adt: None) -> None: ... -#classnotwrapped +# classnotwrapped class AdvApp2Var_EvaluatorFunc2Var: ... -#classnotwrapped +# classnotwrapped class AdvApp2Var_Iso: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/AdvApprox.pyi b/src/SWIG_files/wrapper/AdvApprox.pyi index 29eec8d20..bef8e43e5 100644 --- a/src/SWIG_files/wrapper/AdvApprox.pyi +++ b/src/SWIG_files/wrapper/AdvApprox.pyi @@ -8,14 +8,60 @@ from OCC.Core.GeomAbs import * from OCC.Core.TColgp import * from OCC.Core.PLib import * - class AdvApprox_ApproxAFunction: @overload - def __init__(self, Num1DSS: int, Num2DSS: int, Num3DSS: int, OneDTol: TColStd_HArray1OfReal, TwoDTol: TColStd_HArray1OfReal, ThreeDTol: TColStd_HArray1OfReal, First: float, Last: float, Continuity: GeomAbs_Shape, MaxDeg: int, MaxSeg: int, Func: AdvApprox_EvaluatorFunction) -> None: ... + def __init__( + self, + Num1DSS: int, + Num2DSS: int, + Num3DSS: int, + OneDTol: TColStd_HArray1OfReal, + TwoDTol: TColStd_HArray1OfReal, + ThreeDTol: TColStd_HArray1OfReal, + First: float, + Last: float, + Continuity: GeomAbs_Shape, + MaxDeg: int, + MaxSeg: int, + Func: AdvApprox_EvaluatorFunction, + ) -> None: ... @overload - def __init__(self, Num1DSS: int, Num2DSS: int, Num3DSS: int, OneDTol: TColStd_HArray1OfReal, TwoDTol: TColStd_HArray1OfReal, ThreeDTol: TColStd_HArray1OfReal, First: float, Last: float, Continuity: GeomAbs_Shape, MaxDeg: int, MaxSeg: int, Func: AdvApprox_EvaluatorFunction, CutTool: AdvApprox_Cutting) -> None: ... + def __init__( + self, + Num1DSS: int, + Num2DSS: int, + Num3DSS: int, + OneDTol: TColStd_HArray1OfReal, + TwoDTol: TColStd_HArray1OfReal, + ThreeDTol: TColStd_HArray1OfReal, + First: float, + Last: float, + Continuity: GeomAbs_Shape, + MaxDeg: int, + MaxSeg: int, + Func: AdvApprox_EvaluatorFunction, + CutTool: AdvApprox_Cutting, + ) -> None: ... @staticmethod - def Approximation(TotalDimension: int, TotalNumSS: int, LocalDimension: TColStd_Array1OfInteger, First: float, Last: float, Evaluator: AdvApprox_EvaluatorFunction, CutTool: AdvApprox_Cutting, ContinuityOrder: int, NumMaxCoeffs: int, MaxSegments: int, TolerancesArray: TColStd_Array1OfReal, code_precis: int, NumCoeffPerCurveArray: TColStd_Array1OfInteger, LocalCoefficientArray: TColStd_Array1OfReal, IntervalsArray: TColStd_Array1OfReal, ErrorMaxArray: TColStd_Array1OfReal, AverageErrorArray: TColStd_Array1OfReal) -> Tuple[int, int]: ... + def Approximation( + TotalDimension: int, + TotalNumSS: int, + LocalDimension: TColStd_Array1OfInteger, + First: float, + Last: float, + Evaluator: AdvApprox_EvaluatorFunction, + CutTool: AdvApprox_Cutting, + ContinuityOrder: int, + NumMaxCoeffs: int, + MaxSegments: int, + TolerancesArray: TColStd_Array1OfReal, + code_precis: int, + NumCoeffPerCurveArray: TColStd_Array1OfInteger, + LocalCoefficientArray: TColStd_Array1OfReal, + IntervalsArray: TColStd_Array1OfReal, + ErrorMaxArray: TColStd_Array1OfReal, + AverageErrorArray: TColStd_Array1OfReal, + ) -> Tuple[int, int]: ... @overload def AverageError(self, Dimension: int) -> TColStd_HArray1OfReal: ... @overload @@ -50,7 +96,16 @@ class AdvApprox_Cutting: def Value(self, a: float, b: float) -> Tuple[bool, float]: ... class AdvApprox_SimpleApprox: - def __init__(self, TotalDimension: int, TotalNumSS: int, Continuity: GeomAbs_Shape, WorkDegree: int, NbGaussPoints: int, JacobiBase: PLib_JacobiPolynomial, Func: AdvApprox_EvaluatorFunction) -> None: ... + def __init__( + self, + TotalDimension: int, + TotalNumSS: int, + Continuity: GeomAbs_Shape, + WorkDegree: int, + NbGaussPoints: int, + JacobiBase: PLib_JacobiPolynomial, + Func: AdvApprox_EvaluatorFunction, + ) -> None: ... def AverageError(self, Index: int) -> float: ... def Coefficients(self) -> TColStd_HArray1OfReal: ... def Degree(self) -> int: ... @@ -60,7 +115,14 @@ class AdvApprox_SimpleApprox: def IsDone(self) -> bool: ... def LastConstr(self) -> TColStd_HArray2OfReal: ... def MaxError(self, Index: int) -> float: ... - def Perform(self, LocalDimension: TColStd_Array1OfInteger, LocalTolerancesArray: TColStd_Array1OfReal, First: float, Last: float, MaxDegree: int) -> None: ... + def Perform( + self, + LocalDimension: TColStd_Array1OfInteger, + LocalTolerancesArray: TColStd_Array1OfReal, + First: float, + Last: float, + MaxDegree: int, + ) -> None: ... def SomTab(self) -> TColStd_HArray1OfReal: ... class AdvApprox_DichoCutting(AdvApprox_Cutting): @@ -68,17 +130,21 @@ class AdvApprox_DichoCutting(AdvApprox_Cutting): def Value(self, a: float, b: float) -> Tuple[bool, float]: ... class AdvApprox_PrefAndRec(AdvApprox_Cutting): - def __init__(self, RecomendedCut: TColStd_Array1OfReal, PrefferedCut: TColStd_Array1OfReal, Weight: Optional[float] = 5) -> None: ... + def __init__( + self, + RecomendedCut: TColStd_Array1OfReal, + PrefferedCut: TColStd_Array1OfReal, + Weight: Optional[float] = 5, + ) -> None: ... def Value(self, a: float, b: float) -> Tuple[bool, float]: ... class AdvApprox_PrefCutting(AdvApprox_Cutting): def __init__(self, CutPnts: TColStd_Array1OfReal) -> None: ... def Value(self, a: float, b: float) -> Tuple[bool, float]: ... -#classnotwrapped +# classnotwrapped class AdvApprox_EvaluatorFunction: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/AppBlend.pyi b/src/SWIG_files/wrapper/AppBlend.pyi index 5de08e608..5ca78d918 100644 --- a/src/SWIG_files/wrapper/AppBlend.pyi +++ b/src/SWIG_files/wrapper/AppBlend.pyi @@ -6,9 +6,14 @@ from OCC.Core.NCollection import * from OCC.Core.TColgp import * from OCC.Core.TColStd import * - class AppBlend_Approx: - def Curve2d(self, Index: int, TPoles: TColgp_Array1OfPnt2d, TKnots: TColStd_Array1OfReal, TMults: TColStd_Array1OfInteger) -> None: ... + def Curve2d( + self, + Index: int, + TPoles: TColgp_Array1OfPnt2d, + TKnots: TColStd_Array1OfReal, + TMults: TColStd_Array1OfInteger, + ) -> None: ... def Curve2dPoles(self, Index: int) -> TColgp_Array1OfPnt2d: ... def Curves2dDegree(self) -> int: ... def Curves2dKnots(self) -> TColStd_Array1OfReal: ... @@ -23,7 +28,15 @@ class AppBlend_Approx: def SurfVKnots(self) -> TColStd_Array1OfReal: ... def SurfVMults(self) -> TColStd_Array1OfInteger: ... def SurfWeights(self) -> TColStd_Array2OfReal: ... - def Surface(self, TPoles: TColgp_Array2OfPnt, TWeights: TColStd_Array2OfReal, TUKnots: TColStd_Array1OfReal, TVKnots: TColStd_Array1OfReal, TUMults: TColStd_Array1OfInteger, TVMults: TColStd_Array1OfInteger) -> None: ... + def Surface( + self, + TPoles: TColgp_Array2OfPnt, + TWeights: TColStd_Array2OfReal, + TUKnots: TColStd_Array1OfReal, + TVKnots: TColStd_Array1OfReal, + TUMults: TColStd_Array1OfInteger, + TVMults: TColStd_Array1OfInteger, + ) -> None: ... def TolCurveOnSurf(self, Index: int) -> float: ... def TolReached(self) -> Tuple[float, float]: ... def UDegree(self) -> int: ... @@ -32,4 +45,3 @@ class AppBlend_Approx: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/AppCont.pyi b/src/SWIG_files/wrapper/AppCont.pyi index ac8304e56..545820c12 100644 --- a/src/SWIG_files/wrapper/AppCont.pyi +++ b/src/SWIG_files/wrapper/AppCont.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.AppParCurves import * - class AppCont_Function: def FirstParameter(self) -> float: ... def GetNbOf2dPoints(self) -> int: ... @@ -14,7 +13,16 @@ class AppCont_Function: def LastParameter(self) -> float: ... class AppCont_LeastSquare: - def __init__(self, SSP: AppCont_Function, U0: float, U1: float, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Deg: int, NbPoints: int) -> None: ... + def __init__( + self, + SSP: AppCont_Function, + U0: float, + U1: float, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Deg: int, + NbPoints: int, + ) -> None: ... def Error(self) -> Tuple[float, float, float]: ... def IsDone(self) -> bool: ... def Value(self) -> AppParCurves_MultiCurve: ... @@ -22,4 +30,3 @@ class AppCont_LeastSquare: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/AppDef.pyi b/src/SWIG_files/wrapper/AppDef.pyi index 34f791b49..55dcfa98e 100644 --- a/src/SWIG_files/wrapper/AppDef.pyi +++ b/src/SWIG_files/wrapper/AppDef.pyi @@ -12,7 +12,6 @@ from OCC.Core.gp import * from OCC.Core.FEmTool import * from OCC.Core.GeomAbs import * - class AppDef_Array1OfMultiPointConstraint: @overload def __init__(self) -> None: ... @@ -35,22 +34,48 @@ class AppDef_Array1OfMultiPointConstraint: def First(self) -> AppDef_MultiPointConstraint: ... def Last(self) -> AppDef_MultiPointConstraint: ... def Value(self, theIndex: int) -> AppDef_MultiPointConstraint: ... - def SetValue(self, theIndex: int, theValue: AppDef_MultiPointConstraint) -> None: ... + def SetValue( + self, theIndex: int, theValue: AppDef_MultiPointConstraint + ) -> None: ... class AppDef_BSpGradient_BFGSOfMyBSplGradientOfBSplineCompute(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... -class AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NbPol: int) -> None: ... +class AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute( + math_MultipleVarFunctionWithGradient +): + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NbPol: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiBSpCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def FunctionMatrix(self) -> math_Matrix: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... def Index(self) -> math_IntegerVector: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -62,13 +87,51 @@ class AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute(math_MultipleVarFunc class AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute: @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -85,34 +148,106 @@ class AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class AppDef_BSplineCompute: @overload - def __init__(self, Line: AppDef_MultiLine, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-3, Tolerance2d: Optional[float] = 1.0e-6, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Line: AppDef_MultiLine, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def __init__( + self, + Line: AppDef_MultiLine, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-3, + Tolerance2d: Optional[float] = 1.0e-6, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Line: AppDef_MultiLine, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def ChangeValue(self) -> AppParCurves_MultiBSpCurve: ... def Error(self) -> Tuple[float, float]: ... - def Init(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def Init( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def Interpol(self, Line: AppDef_MultiLine) -> None: ... def IsAllApproximated(self) -> bool: ... def IsToleranceReached(self) -> bool: ... def Parameters(self) -> TColStd_Array1OfReal: ... def Perform(self, Line: AppDef_MultiLine) -> None: ... - def SetConstraints(self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint) -> None: ... + def SetConstraints( + self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint + ) -> None: ... def SetContinuity(self, C: int) -> None: ... def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... def SetKnots(self, Knots: TColStd_Array1OfReal) -> None: ... - def SetKnotsAndMultiplicities(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> None: ... + def SetKnotsAndMultiplicities( + self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger + ) -> None: ... def SetParameters(self, ThePar: math_Vector) -> None: ... def SetPeriodic(self, thePeriodic: bool) -> None: ... def SetTolerances(self, Tolerance3d: float, Tolerance2d: float) -> None: ... @@ -120,38 +255,116 @@ class AppDef_BSplineCompute: class AppDef_Compute: @overload - def __init__(self, Line: AppDef_MultiLine, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-3, Tolerance2d: Optional[float] = 1.0e-6, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Line: AppDef_MultiLine, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def __init__( + self, + Line: AppDef_MultiLine, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-3, + Tolerance2d: Optional[float] = 1.0e-6, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Line: AppDef_MultiLine, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def ChangeValue(self, Index: Optional[int] = 1) -> AppParCurves_MultiCurve: ... def Error(self, Index: int) -> Tuple[float, float]: ... - def Init(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def Init( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def IsAllApproximated(self) -> bool: ... def IsToleranceReached(self) -> bool: ... def NbMultiCurves(self) -> int: ... def Parameters(self, Index: Optional[int] = 1) -> TColStd_Array1OfReal: ... def Parametrization(self) -> Approx_ParametrizationType: ... def Perform(self, Line: AppDef_MultiLine) -> None: ... - def SetConstraints(self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint) -> None: ... + def SetConstraints( + self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint + ) -> None: ... def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... def SetTolerances(self, Tolerance3d: float, Tolerance2d: float) -> None: ... def SplineValue(self) -> AppParCurves_MultiBSpCurve: ... def Value(self, Index: Optional[int] = 1) -> AppParCurves_MultiCurve: ... class AppDef_Gradient_BFGSOfMyGradientOfCompute(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... class AppDef_Gradient_BFGSOfMyGradientbisOfBSplineCompute(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... class AppDef_Gradient_BFGSOfTheGradient(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... class AppDef_MultiLine: @@ -181,19 +394,49 @@ class AppDef_MultiPointConstraint(AppParCurves_MultiPoint): @overload def __init__(self, tabP: TColgp_Array1OfPnt2d) -> None: ... @overload - def __init__(self, tabP: TColgp_Array1OfPnt, tabP2d: TColgp_Array1OfPnt2d) -> None: ... - @overload - def __init__(self, tabP: TColgp_Array1OfPnt, tabP2d: TColgp_Array1OfPnt2d, tabVec: TColgp_Array1OfVec, tabVec2d: TColgp_Array1OfVec2d, tabCur: TColgp_Array1OfVec, tabCur2d: TColgp_Array1OfVec2d) -> None: ... - @overload - def __init__(self, tabP: TColgp_Array1OfPnt, tabP2d: TColgp_Array1OfPnt2d, tabVec: TColgp_Array1OfVec, tabVec2d: TColgp_Array1OfVec2d) -> None: ... - @overload - def __init__(self, tabP: TColgp_Array1OfPnt, tabVec: TColgp_Array1OfVec, tabCur: TColgp_Array1OfVec) -> None: ... - @overload - def __init__(self, tabP: TColgp_Array1OfPnt, tabVec: TColgp_Array1OfVec) -> None: ... - @overload - def __init__(self, tabP2d: TColgp_Array1OfPnt2d, tabVec2d: TColgp_Array1OfVec2d) -> None: ... - @overload - def __init__(self, tabP2d: TColgp_Array1OfPnt2d, tabVec2d: TColgp_Array1OfVec2d, tabCur2d: TColgp_Array1OfVec2d) -> None: ... + def __init__( + self, tabP: TColgp_Array1OfPnt, tabP2d: TColgp_Array1OfPnt2d + ) -> None: ... + @overload + def __init__( + self, + tabP: TColgp_Array1OfPnt, + tabP2d: TColgp_Array1OfPnt2d, + tabVec: TColgp_Array1OfVec, + tabVec2d: TColgp_Array1OfVec2d, + tabCur: TColgp_Array1OfVec, + tabCur2d: TColgp_Array1OfVec2d, + ) -> None: ... + @overload + def __init__( + self, + tabP: TColgp_Array1OfPnt, + tabP2d: TColgp_Array1OfPnt2d, + tabVec: TColgp_Array1OfVec, + tabVec2d: TColgp_Array1OfVec2d, + ) -> None: ... + @overload + def __init__( + self, + tabP: TColgp_Array1OfPnt, + tabVec: TColgp_Array1OfVec, + tabCur: TColgp_Array1OfVec, + ) -> None: ... + @overload + def __init__( + self, tabP: TColgp_Array1OfPnt, tabVec: TColgp_Array1OfVec + ) -> None: ... + @overload + def __init__( + self, tabP2d: TColgp_Array1OfPnt2d, tabVec2d: TColgp_Array1OfVec2d + ) -> None: ... + @overload + def __init__( + self, + tabP2d: TColgp_Array1OfPnt2d, + tabVec2d: TColgp_Array1OfVec2d, + tabCur2d: TColgp_Array1OfVec2d, + ) -> None: ... def Curv(self, Index: int) -> gp_Vec: ... def Curv2d(self, Index: int) -> gp_Vec2d: ... def Dump(self) -> str: ... @@ -208,9 +451,37 @@ class AppDef_MultiPointConstraint(AppParCurves_MultiPoint): class AppDef_MyBSplGradientOfBSplineCompute: @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 1) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Deg: int, Tol3d: float, Tol2d: float, NbIterations: int, lambda1: float, lambda2: float) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 1, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: int, + lambda1: float, + lambda2: float, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -219,7 +490,18 @@ class AppDef_MyBSplGradientOfBSplineCompute: def Value(self) -> AppParCurves_MultiBSpCurve: ... class AppDef_MyGradientOfCompute: - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -228,7 +510,18 @@ class AppDef_MyGradientOfCompute: def Value(self) -> AppParCurves_MultiCurve: ... class AppDef_MyGradientbisOfBSplineCompute: - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -239,53 +532,96 @@ class AppDef_MyGradientbisOfBSplineCompute: class AppDef_MyLineTool: @overload @staticmethod - def Curvature(ML: AppDef_MultiLine, MPointIndex: int, tabV: TColgp_Array1OfVec) -> bool: ... + def Curvature( + ML: AppDef_MultiLine, MPointIndex: int, tabV: TColgp_Array1OfVec + ) -> bool: ... @overload @staticmethod - def Curvature(ML: AppDef_MultiLine, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Curvature( + ML: AppDef_MultiLine, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d + ) -> bool: ... @overload @staticmethod - def Curvature(ML: AppDef_MultiLine, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Curvature( + ML: AppDef_MultiLine, + MPointIndex: int, + tabV: TColgp_Array1OfVec, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @staticmethod def FirstPoint(ML: AppDef_MultiLine) -> int: ... @staticmethod def LastPoint(ML: AppDef_MultiLine) -> int: ... @staticmethod - def MakeMLBetween(ML: AppDef_MultiLine, I1: int, I2: int, NbPMin: int) -> AppDef_MultiLine: ... + def MakeMLBetween( + ML: AppDef_MultiLine, I1: int, I2: int, NbPMin: int + ) -> AppDef_MultiLine: ... @staticmethod - def MakeMLOneMorePoint(ML: AppDef_MultiLine, I1: int, I2: int, indbad: int, OtherLine: AppDef_MultiLine) -> bool: ... + def MakeMLOneMorePoint( + ML: AppDef_MultiLine, I1: int, I2: int, indbad: int, OtherLine: AppDef_MultiLine + ) -> bool: ... @staticmethod def NbP2d(ML: AppDef_MultiLine) -> int: ... @staticmethod def NbP3d(ML: AppDef_MultiLine) -> int: ... @overload @staticmethod - def Tangency(ML: AppDef_MultiLine, MPointIndex: int, tabV: TColgp_Array1OfVec) -> bool: ... + def Tangency( + ML: AppDef_MultiLine, MPointIndex: int, tabV: TColgp_Array1OfVec + ) -> bool: ... @overload @staticmethod - def Tangency(ML: AppDef_MultiLine, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Tangency( + ML: AppDef_MultiLine, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d + ) -> bool: ... @overload @staticmethod - def Tangency(ML: AppDef_MultiLine, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Tangency( + ML: AppDef_MultiLine, + MPointIndex: int, + tabV: TColgp_Array1OfVec, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @overload @staticmethod - def Value(ML: AppDef_MultiLine, MPointIndex: int, tabPt: TColgp_Array1OfPnt) -> None: ... + def Value( + ML: AppDef_MultiLine, MPointIndex: int, tabPt: TColgp_Array1OfPnt + ) -> None: ... @overload @staticmethod - def Value(ML: AppDef_MultiLine, MPointIndex: int, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... + def Value( + ML: AppDef_MultiLine, MPointIndex: int, tabPt2d: TColgp_Array1OfPnt2d + ) -> None: ... @overload @staticmethod - def Value(ML: AppDef_MultiLine, MPointIndex: int, tabPt: TColgp_Array1OfPnt, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... + def Value( + ML: AppDef_MultiLine, + MPointIndex: int, + tabPt: TColgp_Array1OfPnt, + tabPt2d: TColgp_Array1OfPnt2d, + ) -> None: ... @staticmethod def WhatStatus(ML: AppDef_MultiLine, I1: int, I2: int) -> Approx_Status: ... class AppDef_ParFunctionOfMyGradientOfCompute(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiCurve: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -293,13 +629,27 @@ class AppDef_ParFunctionOfMyGradientOfCompute(math_MultipleVarFunctionWithGradie def Value(self, X: math_Vector) -> Tuple[bool, float]: ... def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... -class AppDef_ParFunctionOfMyGradientbisOfBSplineCompute(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int) -> None: ... +class AppDef_ParFunctionOfMyGradientbisOfBSplineCompute( + math_MultipleVarFunctionWithGradient +): + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiCurve: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -308,12 +658,24 @@ class AppDef_ParFunctionOfMyGradientbisOfBSplineCompute(math_MultipleVarFunction def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... class AppDef_ParFunctionOfTheGradient(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiCurve: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -323,13 +685,51 @@ class AppDef_ParFunctionOfTheGradient(math_MultipleVarFunctionWithGradient): class AppDef_ParLeastSquareOfMyGradientOfCompute: @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -346,21 +746,75 @@ class AppDef_ParLeastSquareOfMyGradientOfCompute: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class AppDef_ParLeastSquareOfMyGradientbisOfBSplineCompute: @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -377,21 +831,75 @@ class AppDef_ParLeastSquareOfMyGradientbisOfBSplineCompute: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class AppDef_ParLeastSquareOfTheGradient: @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -408,31 +916,83 @@ class AppDef_ParLeastSquareOfTheGradient: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class AppDef_ResConstraintOfMyGradientOfCompute: - def __init__(self, SSP: AppDef_MultiLine, SCurv: AppParCurves_MultiCurve, FirstPoint: int, LastPoint: int, Constraints: AppParCurves_HArray1OfConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance: Optional[float] = 1.0e-10) -> None: ... - def ConstraintDerivative(self, SSP: AppDef_MultiLine, Parameters: math_Vector, Deg: int, DA: math_Matrix) -> math_Matrix: ... + def __init__( + self, + SSP: AppDef_MultiLine, + SCurv: AppParCurves_MultiCurve, + FirstPoint: int, + LastPoint: int, + Constraints: AppParCurves_HArray1OfConstraintCouple, + Bern: math_Matrix, + DerivativeBern: math_Matrix, + Tolerance: Optional[float] = 1.0e-10, + ) -> None: ... + def ConstraintDerivative( + self, SSP: AppDef_MultiLine, Parameters: math_Vector, Deg: int, DA: math_Matrix + ) -> math_Matrix: ... def ConstraintMatrix(self) -> math_Matrix: ... def Duale(self) -> math_Vector: ... def InverseMatrix(self) -> math_Matrix: ... def IsDone(self) -> bool: ... class AppDef_ResConstraintOfMyGradientbisOfBSplineCompute: - def __init__(self, SSP: AppDef_MultiLine, SCurv: AppParCurves_MultiCurve, FirstPoint: int, LastPoint: int, Constraints: AppParCurves_HArray1OfConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance: Optional[float] = 1.0e-10) -> None: ... - def ConstraintDerivative(self, SSP: AppDef_MultiLine, Parameters: math_Vector, Deg: int, DA: math_Matrix) -> math_Matrix: ... + def __init__( + self, + SSP: AppDef_MultiLine, + SCurv: AppParCurves_MultiCurve, + FirstPoint: int, + LastPoint: int, + Constraints: AppParCurves_HArray1OfConstraintCouple, + Bern: math_Matrix, + DerivativeBern: math_Matrix, + Tolerance: Optional[float] = 1.0e-10, + ) -> None: ... + def ConstraintDerivative( + self, SSP: AppDef_MultiLine, Parameters: math_Vector, Deg: int, DA: math_Matrix + ) -> math_Matrix: ... def ConstraintMatrix(self) -> math_Matrix: ... def Duale(self) -> math_Vector: ... def InverseMatrix(self) -> math_Matrix: ... def IsDone(self) -> bool: ... class AppDef_ResConstraintOfTheGradient: - def __init__(self, SSP: AppDef_MultiLine, SCurv: AppParCurves_MultiCurve, FirstPoint: int, LastPoint: int, Constraints: AppParCurves_HArray1OfConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance: Optional[float] = 1.0e-10) -> None: ... - def ConstraintDerivative(self, SSP: AppDef_MultiLine, Parameters: math_Vector, Deg: int, DA: math_Matrix) -> math_Matrix: ... + def __init__( + self, + SSP: AppDef_MultiLine, + SCurv: AppParCurves_MultiCurve, + FirstPoint: int, + LastPoint: int, + Constraints: AppParCurves_HArray1OfConstraintCouple, + Bern: math_Matrix, + DerivativeBern: math_Matrix, + Tolerance: Optional[float] = 1.0e-10, + ) -> None: ... + def ConstraintDerivative( + self, SSP: AppDef_MultiLine, Parameters: math_Vector, Deg: int, DA: math_Matrix + ) -> math_Matrix: ... def ConstraintMatrix(self) -> math_Matrix: ... def Duale(self) -> math_Vector: ... def InverseMatrix(self) -> math_Matrix: ... @@ -447,24 +1007,47 @@ class AppDef_SmoothCriterion(Standard_Transient): def GetEstimation(self) -> Tuple[float, float, float]: ... def GetWeight(self) -> Tuple[float, float]: ... def Gradient(self, Element: int, Dimension: int, G: math_Vector) -> None: ... - def Hessian(self, Element: int, Dimension1: int, Dimension2: int, H: math_Matrix) -> None: ... + def Hessian( + self, Element: int, Dimension1: int, Dimension2: int, H: math_Matrix + ) -> None: ... def InputVector(self, X: math_Vector, AssTable: FEmTool_HAssemblyTable) -> None: ... - def QualityValues(self, J1min: float, J2min: float, J3min: float) -> Tuple[int, float, float, float]: ... + def QualityValues( + self, J1min: float, J2min: float, J3min: float + ) -> Tuple[int, float, float, float]: ... def SetCurve(self, C: FEmTool_Curve) -> None: ... def SetEstimation(self, E1: float, E2: float, E3: float) -> None: ... def SetParameters(self, Parameters: TColStd_HArray1OfReal) -> None: ... @overload - def SetWeight(self, QuadraticWeight: float, QualityWeight: float, percentJ1: float, percentJ2: float, percentJ3: float) -> None: ... + def SetWeight( + self, + QuadraticWeight: float, + QualityWeight: float, + percentJ1: float, + percentJ2: float, + percentJ3: float, + ) -> None: ... @overload def SetWeight(self, Weight: TColStd_Array1OfReal) -> None: ... class AppDef_TheFunction(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiCurve: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -473,7 +1056,18 @@ class AppDef_TheFunction(math_MultipleVarFunctionWithGradient): def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... class AppDef_TheGradient: - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -483,13 +1077,51 @@ class AppDef_TheGradient: class AppDef_TheLeastSquares: @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: AppDef_MultiLine, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: AppDef_MultiLine, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -506,22 +1138,63 @@ class AppDef_TheLeastSquares: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class AppDef_TheResol: - def __init__(self, SSP: AppDef_MultiLine, SCurv: AppParCurves_MultiCurve, FirstPoint: int, LastPoint: int, Constraints: AppParCurves_HArray1OfConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance: Optional[float] = 1.0e-10) -> None: ... - def ConstraintDerivative(self, SSP: AppDef_MultiLine, Parameters: math_Vector, Deg: int, DA: math_Matrix) -> math_Matrix: ... + def __init__( + self, + SSP: AppDef_MultiLine, + SCurv: AppParCurves_MultiCurve, + FirstPoint: int, + LastPoint: int, + Constraints: AppParCurves_HArray1OfConstraintCouple, + Bern: math_Matrix, + DerivativeBern: math_Matrix, + Tolerance: Optional[float] = 1.0e-10, + ) -> None: ... + def ConstraintDerivative( + self, SSP: AppDef_MultiLine, Parameters: math_Vector, Deg: int, DA: math_Matrix + ) -> math_Matrix: ... def ConstraintMatrix(self) -> math_Matrix: ... def Duale(self) -> math_Vector: ... def InverseMatrix(self) -> math_Matrix: ... def IsDone(self) -> bool: ... class AppDef_Variational: - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, MaxDegree: Optional[int] = 14, MaxSegment: Optional[int] = 100, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, WithMinMax: Optional[bool] = False, WithCutting: Optional[bool] = True, Tolerance: Optional[float] = 1.0, NbIterations: Optional[int] = 2) -> None: ... + def __init__( + self, + SSP: AppDef_MultiLine, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + MaxDegree: Optional[int] = 14, + MaxSegment: Optional[int] = 100, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + WithMinMax: Optional[bool] = False, + WithCutting: Optional[bool] = True, + Tolerance: Optional[float] = 1.0, + NbIterations: Optional[int] = 2, + ) -> None: ... def Approximate(self) -> None: ... def AverageError(self) -> float: ... def Continuity(self) -> GeomAbs_Shape: ... @@ -540,10 +1213,14 @@ class AppDef_Variational: def NbIterations(self) -> int: ... def Parameters(self) -> TColStd_HArray1OfReal: ... def QuadraticError(self) -> float: ... - def SetConstraints(self, aConstrainst: AppParCurves_HArray1OfConstraintCouple) -> bool: ... + def SetConstraints( + self, aConstrainst: AppParCurves_HArray1OfConstraintCouple + ) -> bool: ... def SetContinuity(self, C: GeomAbs_Shape) -> bool: ... @overload - def SetCriteriumWeight(self, Percent1: float, Percent2: float, Percent3: float) -> None: ... + def SetCriteriumWeight( + self, Percent1: float, Percent2: float, Percent3: float + ) -> None: ... @overload def SetCriteriumWeight(self, Order: int, Percent: float) -> None: ... def SetKnots(self, knots: TColStd_HArray1OfReal) -> bool: ... @@ -560,7 +1237,9 @@ class AppDef_Variational: def WithMinMax(self) -> bool: ... class AppDef_LinearCriteria(AppDef_SmoothCriterion): - def __init__(self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int) -> None: ... + def __init__( + self, SSP: AppDef_MultiLine, FirstPoint: int, LastPoint: int + ) -> None: ... def AssemblyTable(self) -> FEmTool_HAssemblyTable: ... def DependenceTable(self) -> TColStd_HArray2OfInteger: ... def ErrorValues(self) -> Tuple[float, float, float]: ... @@ -570,23 +1249,35 @@ class AppDef_LinearCriteria(AppDef_SmoothCriterion): def GetEstimation(self) -> Tuple[float, float, float]: ... def GetWeight(self) -> Tuple[float, float]: ... def Gradient(self, Element: int, Dimension: int, G: math_Vector) -> None: ... - def Hessian(self, Element: int, Dimension1: int, Dimension2: int, H: math_Matrix) -> None: ... + def Hessian( + self, Element: int, Dimension1: int, Dimension2: int, H: math_Matrix + ) -> None: ... def InputVector(self, X: math_Vector, AssTable: FEmTool_HAssemblyTable) -> None: ... - def QualityValues(self, J1min: float, J2min: float, J3min: float) -> Tuple[int, float, float, float]: ... + def QualityValues( + self, J1min: float, J2min: float, J3min: float + ) -> Tuple[int, float, float, float]: ... def SetCurve(self, C: FEmTool_Curve) -> None: ... def SetEstimation(self, E1: float, E2: float, E3: float) -> None: ... def SetParameters(self, Parameters: TColStd_HArray1OfReal) -> None: ... @overload - def SetWeight(self, QuadraticWeight: float, QualityWeight: float, percentJ1: float, percentJ2: float, percentJ3: float) -> None: ... + def SetWeight( + self, + QuadraticWeight: float, + QualityWeight: float, + percentJ1: float, + percentJ2: float, + percentJ3: float, + ) -> None: ... @overload def SetWeight(self, Weight: TColStd_Array1OfReal) -> None: ... # harray1 classes -class AppDef_HArray1OfMultiPointConstraint(AppDef_Array1OfMultiPointConstraint, Standard_Transient): +class AppDef_HArray1OfMultiPointConstraint( + AppDef_Array1OfMultiPointConstraint, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> AppDef_Array1OfMultiPointConstraint: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/AppParCurves.pyi b/src/SWIG_files/wrapper/AppParCurves.pyi index 9d91d4a7a..4e2a73fca 100644 --- a/src/SWIG_files/wrapper/AppParCurves.pyi +++ b/src/SWIG_files/wrapper/AppParCurves.pyi @@ -8,7 +8,6 @@ from OCC.Core.TColgp import * from OCC.Core.gp import * from OCC.Core.TColStd import * - class AppParCurves_Array1OfConstraintCouple: @overload def __init__(self) -> None: ... @@ -31,7 +30,9 @@ class AppParCurves_Array1OfConstraintCouple: def First(self) -> AppParCurves_ConstraintCouple: ... def Last(self) -> AppParCurves_ConstraintCouple: ... def Value(self, theIndex: int) -> AppParCurves_ConstraintCouple: ... - def SetValue(self, theIndex: int, theValue: AppParCurves_ConstraintCouple) -> None: ... + def SetValue( + self, theIndex: int, theValue: AppParCurves_ConstraintCouple + ) -> None: ... class AppParCurves_Array1OfMultiBSpCurve: @overload @@ -106,34 +107,50 @@ class AppParCurves_Array1OfMultiPoint: def SetValue(self, theIndex: int, theValue: AppParCurves_MultiPoint) -> None: ... class AppParCurves_SequenceOfMultiBSpCurve: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign( + self, theItem: AppParCurves_MultiBSpCurve + ) -> AppParCurves_MultiBSpCurve: ... def Clear(self) -> None: ... def First(self) -> AppParCurves_MultiBSpCurve: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> AppParCurves_MultiBSpCurve: ... def Length(self) -> int: ... - def Append(self, theItem: AppParCurves_MultiBSpCurve) -> AppParCurves_MultiBSpCurve: ... - def Prepend(self, theItem: AppParCurves_MultiBSpCurve) -> AppParCurves_MultiBSpCurve: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: AppParCurves_MultiBSpCurve + ) -> AppParCurves_MultiBSpCurve: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> AppParCurves_MultiBSpCurve: ... def SetValue(self, theIndex: int, theValue: AppParCurves_MultiBSpCurve) -> None: ... - -class AppParCurves_SequenceOfMultiCurve: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> AppParCurves_MultiBSpCurve: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class AppParCurves_SequenceOfMultiCurve: + def Assign(self, theItem: AppParCurves_MultiCurve) -> AppParCurves_MultiCurve: ... def Clear(self) -> None: ... def First(self) -> AppParCurves_MultiCurve: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> AppParCurves_MultiCurve: ... def Length(self) -> int: ... - def Append(self, theItem: AppParCurves_MultiCurve) -> AppParCurves_MultiCurve: ... + def Lower(self) -> int: ... def Prepend(self, theItem: AppParCurves_MultiCurve) -> AppParCurves_MultiCurve: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> AppParCurves_MultiCurve: ... def SetValue(self, theIndex: int, theValue: AppParCurves_MultiCurve) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> AppParCurves_MultiCurve: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class AppParCurves_Constraint(IntEnum): AppParCurves_NoConstraint: int = ... @@ -148,13 +165,23 @@ AppParCurves_CurvaturePoint = AppParCurves_Constraint.AppParCurves_CurvaturePoin class appparcurves: @staticmethod - def Bernstein(NbPoles: int, U: math_Vector, A: math_Matrix, DA: math_Matrix) -> None: ... + def Bernstein( + NbPoles: int, U: math_Vector, A: math_Matrix, DA: math_Matrix + ) -> None: ... @staticmethod def BernsteinMatrix(NbPoles: int, U: math_Vector, A: math_Matrix) -> None: ... @staticmethod def SecondDerivativeBernstein(U: float, DDA: math_Vector) -> None: ... @staticmethod - def SplineFunction(NbPoles: int, Degree: int, Parameters: math_Vector, FlatKnots: math_Vector, A: math_Matrix, DA: math_Matrix, Index: math_IntegerVector) -> None: ... + def SplineFunction( + NbPoles: int, + Degree: int, + Parameters: math_Vector, + FlatKnots: math_Vector, + A: math_Matrix, + DA: math_Matrix, + Index: math_IntegerVector, + ) -> None: ... class AppParCurves_ConstraintCouple: @overload @@ -182,9 +209,13 @@ class AppParCurves_MultiCurve: @overload def D1(self, CuIndex: int, U: float, Pt: gp_Pnt2d, V1: gp_Vec2d) -> None: ... @overload - def D2(self, CuIndex: int, U: float, Pt: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def D2( + self, CuIndex: int, U: float, Pt: gp_Pnt, V1: gp_Vec, V2: gp_Vec + ) -> None: ... @overload - def D2(self, CuIndex: int, U: float, Pt: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + self, CuIndex: int, U: float, Pt: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... def Degree(self) -> int: ... def Dimension(self, CuIndex: int) -> int: ... def Dump(self) -> str: ... @@ -194,8 +225,19 @@ class AppParCurves_MultiCurve: def Pole2d(self, CuIndex: int, Nieme: int) -> gp_Pnt2d: ... def SetNbPoles(self, nbPoles: int) -> None: ... def SetValue(self, Index: int, MPoint: AppParCurves_MultiPoint) -> None: ... - def Transform(self, CuIndex: int, x: float, dx: float, y: float, dy: float, z: float, dz: float) -> None: ... - def Transform2d(self, CuIndex: int, x: float, dx: float, y: float, dy: float) -> None: ... + def Transform( + self, + CuIndex: int, + x: float, + dx: float, + y: float, + dy: float, + z: float, + dz: float, + ) -> None: ... + def Transform2d( + self, CuIndex: int, x: float, dx: float, y: float, dy: float + ) -> None: ... @overload def Value(self, Index: int) -> AppParCurves_MultiPoint: ... @overload @@ -213,7 +255,9 @@ class AppParCurves_MultiPoint: @overload def __init__(self, tabP2d: TColgp_Array1OfPnt2d) -> None: ... @overload - def __init__(self, tabP: TColgp_Array1OfPnt, tabP2d: TColgp_Array1OfPnt2d) -> None: ... + def __init__( + self, tabP: TColgp_Array1OfPnt, tabP2d: TColgp_Array1OfPnt2d + ) -> None: ... def Dimension(self, Index: int) -> int: ... def Dump(self) -> str: ... def NbPoints(self) -> int: ... @@ -222,8 +266,19 @@ class AppParCurves_MultiPoint: def Point2d(self, Index: int) -> gp_Pnt2d: ... def SetPoint(self, Index: int, Point: gp_Pnt) -> None: ... def SetPoint2d(self, Index: int, Point: gp_Pnt2d) -> None: ... - def Transform(self, CuIndex: int, x: float, dx: float, y: float, dy: float, z: float, dz: float) -> None: ... - def Transform2d(self, CuIndex: int, x: float, dx: float, y: float, dy: float) -> None: ... + def Transform( + self, + CuIndex: int, + x: float, + dx: float, + y: float, + dy: float, + z: float, + dz: float, + ) -> None: ... + def Transform2d( + self, CuIndex: int, x: float, dx: float, y: float, dy: float + ) -> None: ... class AppParCurves_MultiBSpCurve(AppParCurves_MultiCurve): @overload @@ -231,17 +286,31 @@ class AppParCurves_MultiBSpCurve(AppParCurves_MultiCurve): @overload def __init__(self, NbPol: int) -> None: ... @overload - def __init__(self, tabMU: AppParCurves_Array1OfMultiPoint, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> None: ... + def __init__( + self, + tabMU: AppParCurves_Array1OfMultiPoint, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ) -> None: ... @overload - def __init__(self, SC: AppParCurves_MultiCurve, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> None: ... + def __init__( + self, + SC: AppParCurves_MultiCurve, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ) -> None: ... @overload def D1(self, CuIndex: int, U: float, Pt: gp_Pnt, V1: gp_Vec) -> None: ... @overload def D1(self, CuIndex: int, U: float, Pt: gp_Pnt2d, V1: gp_Vec2d) -> None: ... @overload - def D2(self, CuIndex: int, U: float, Pt: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def D2( + self, CuIndex: int, U: float, Pt: gp_Pnt, V1: gp_Vec, V2: gp_Vec + ) -> None: ... @overload - def D2(self, CuIndex: int, U: float, Pt: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + self, CuIndex: int, U: float, Pt: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... def Degree(self) -> int: ... def Dump(self) -> str: ... def Knots(self) -> TColStd_Array1OfReal: ... @@ -255,25 +324,29 @@ class AppParCurves_MultiBSpCurve(AppParCurves_MultiCurve): # harray1 classes -class AppParCurves_HArray1OfConstraintCouple(AppParCurves_Array1OfConstraintCouple, Standard_Transient): +class AppParCurves_HArray1OfConstraintCouple( + AppParCurves_Array1OfConstraintCouple, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> AppParCurves_Array1OfConstraintCouple: ... - -class AppParCurves_HArray1OfMultiBSpCurve(AppParCurves_Array1OfMultiBSpCurve, Standard_Transient): +class AppParCurves_HArray1OfMultiBSpCurve( + AppParCurves_Array1OfMultiBSpCurve, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> AppParCurves_Array1OfMultiBSpCurve: ... - -class AppParCurves_HArray1OfMultiCurve(AppParCurves_Array1OfMultiCurve, Standard_Transient): +class AppParCurves_HArray1OfMultiCurve( + AppParCurves_Array1OfMultiCurve, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> AppParCurves_Array1OfMultiCurve: ... - -class AppParCurves_HArray1OfMultiPoint(AppParCurves_Array1OfMultiPoint, Standard_Transient): +class AppParCurves_HArray1OfMultiPoint( + AppParCurves_Array1OfMultiPoint, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> AppParCurves_Array1OfMultiPoint: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/AppStd.pyi b/src/SWIG_files/wrapper/AppStd.pyi index aa2be3a73..b945842ca 100644 --- a/src/SWIG_files/wrapper/AppStd.pyi +++ b/src/SWIG_files/wrapper/AppStd.pyi @@ -5,12 +5,10 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.TDocStd import * - class AppStd_Application(TDocStd_Application): - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ResourcesName(self) -> str: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/AppStdL.pyi b/src/SWIG_files/wrapper/AppStdL.pyi index 05c1da490..31812bb1e 100644 --- a/src/SWIG_files/wrapper/AppStdL.pyi +++ b/src/SWIG_files/wrapper/AppStdL.pyi @@ -5,12 +5,10 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.TDocStd import * - class AppStdL_Application(TDocStd_Application): - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ResourcesName(self) -> str: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Approx.pyi b/src/SWIG_files/wrapper/Approx.pyi index fd03f7f3f..ace52e2ff 100644 --- a/src/SWIG_files/wrapper/Approx.pyi +++ b/src/SWIG_files/wrapper/Approx.pyi @@ -14,7 +14,6 @@ from OCC.Core.AppParCurves import * from OCC.Core.TColgp import * from OCC.Core.gp import * - class Approx_Array1OfAdHSurface: @overload def __init__(self) -> None: ... @@ -64,19 +63,25 @@ class Approx_Array1OfGTrsf2d: def SetValue(self, theIndex: int, theValue: gp_GTrsf2d) -> None: ... class Approx_SequenceOfHArray1OfReal: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Approx_ParametrizationType(IntEnum): Approx_ChordLength: int = ... @@ -97,7 +102,17 @@ Approx_NoPointsAdded = Approx_Status.Approx_NoPointsAdded Approx_NoApproximation = Approx_Status.Approx_NoApproximation class Approx_Curve2d: - def __init__(self, C2D: Adaptor2d_Curve2d, First: float, Last: float, TolU: float, TolV: float, Continuity: GeomAbs_Shape, MaxDegree: int, MaxSegments: int) -> None: ... + def __init__( + self, + C2D: Adaptor2d_Curve2d, + First: float, + Last: float, + TolU: float, + TolV: float, + Continuity: GeomAbs_Shape, + MaxDegree: int, + MaxSegments: int, + ) -> None: ... def Curve(self) -> Geom2d_BSplineCurve: ... def HasResult(self) -> bool: ... def IsDone(self) -> bool: ... @@ -105,7 +120,14 @@ class Approx_Curve2d: def MaxError2dV(self) -> float: ... class Approx_Curve3d: - def __init__(self, Curve: Adaptor3d_Curve, Tol3d: float, Order: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> None: ... + def __init__( + self, + Curve: Adaptor3d_Curve, + Tol3d: float, + Order: GeomAbs_Shape, + MaxSegments: int, + MaxDegree: int, + ) -> None: ... def Curve(self) -> Geom_BSplineCurve: ... def Dump(self) -> str: ... def HasResult(self) -> bool: ... @@ -114,9 +136,28 @@ class Approx_Curve3d: class Approx_CurveOnSurface: @overload - def __init__(self, C2D: Adaptor2d_Curve2d, Surf: Adaptor3d_Surface, First: float, Last: float, Tol: float, Continuity: GeomAbs_Shape, MaxDegree: int, MaxSegments: int, Only3d: Optional[bool] = False, Only2d: Optional[bool] = False) -> None: ... + def __init__( + self, + C2D: Adaptor2d_Curve2d, + Surf: Adaptor3d_Surface, + First: float, + Last: float, + Tol: float, + Continuity: GeomAbs_Shape, + MaxDegree: int, + MaxSegments: int, + Only3d: Optional[bool] = False, + Only2d: Optional[bool] = False, + ) -> None: ... @overload - def __init__(self, theC2D: Adaptor2d_Curve2d, theSurf: Adaptor3d_Surface, theFirst: float, theLast: float, theTol: float) -> None: ... + def __init__( + self, + theC2D: Adaptor2d_Curve2d, + theSurf: Adaptor3d_Surface, + theFirst: float, + theLast: float, + theTol: float, + ) -> None: ... def Curve2d(self) -> Geom2d_BSplineCurve: ... def Curve3d(self) -> Geom_BSplineCurve: ... def HasResult(self) -> bool: ... @@ -124,15 +165,47 @@ class Approx_CurveOnSurface: def MaxError2dU(self) -> float: ... def MaxError2dV(self) -> float: ... def MaxError3d(self) -> float: ... - def Perform(self, theMaxSegments: int, theMaxDegree: int, theContinuity: GeomAbs_Shape, theOnly3d: Optional[bool] = False, theOnly2d: Optional[bool] = False) -> None: ... + def Perform( + self, + theMaxSegments: int, + theMaxDegree: int, + theContinuity: GeomAbs_Shape, + theOnly3d: Optional[bool] = False, + theOnly2d: Optional[bool] = False, + ) -> None: ... class Approx_CurvilinearParameter: @overload - def __init__(self, C3D: Adaptor3d_Curve, Tol: float, Order: GeomAbs_Shape, MaxDegree: int, MaxSegments: int) -> None: ... + def __init__( + self, + C3D: Adaptor3d_Curve, + Tol: float, + Order: GeomAbs_Shape, + MaxDegree: int, + MaxSegments: int, + ) -> None: ... @overload - def __init__(self, C2D: Adaptor2d_Curve2d, Surf: Adaptor3d_Surface, Tol: float, Order: GeomAbs_Shape, MaxDegree: int, MaxSegments: int) -> None: ... + def __init__( + self, + C2D: Adaptor2d_Curve2d, + Surf: Adaptor3d_Surface, + Tol: float, + Order: GeomAbs_Shape, + MaxDegree: int, + MaxSegments: int, + ) -> None: ... @overload - def __init__(self, C2D1: Adaptor2d_Curve2d, Surf1: Adaptor3d_Surface, C2D2: Adaptor2d_Curve2d, Surf2: Adaptor3d_Surface, Tol: float, Order: GeomAbs_Shape, MaxDegree: int, MaxSegments: int) -> None: ... + def __init__( + self, + C2D1: Adaptor2d_Curve2d, + Surf1: Adaptor3d_Surface, + C2D2: Adaptor2d_Curve2d, + Surf2: Adaptor3d_Surface, + Tol: float, + Order: GeomAbs_Shape, + MaxDegree: int, + MaxSegments: int, + ) -> None: ... def Curve2d1(self) -> Geom2d_BSplineCurve: ... def Curve2d2(self) -> Geom2d_BSplineCurve: ... def Curve3d(self) -> Geom_BSplineCurve: ... @@ -147,16 +220,27 @@ class Approx_CurvlinFunc(Standard_Transient): @overload def __init__(self, C: Adaptor3d_Curve, Tol: float) -> None: ... @overload - def __init__(self, C2D: Adaptor2d_Curve2d, S: Adaptor3d_Surface, Tol: float) -> None: ... + def __init__( + self, C2D: Adaptor2d_Curve2d, S: Adaptor3d_Surface, Tol: float + ) -> None: ... @overload - def __init__(self, C2D1: Adaptor2d_Curve2d, C2D2: Adaptor2d_Curve2d, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, Tol: float) -> None: ... + def __init__( + self, + C2D1: Adaptor2d_Curve2d, + C2D2: Adaptor2d_Curve2d, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + Tol: float, + ) -> None: ... def EvalCase1(self, S: float, Order: int, Result: TColStd_Array1OfReal) -> bool: ... def EvalCase2(self, S: float, Order: int, Result: TColStd_Array1OfReal) -> bool: ... def EvalCase3(self, S: float, Order: int, Result: TColStd_Array1OfReal) -> bool: ... def FirstParameter(self) -> float: ... def GetLength(self) -> float: ... def GetSParameter(self, U: float) -> float: ... - def GetUParameter(self, C: Adaptor3d_Curve, S: float, NumberOfCurve: int) -> float: ... + def GetUParameter( + self, C: Adaptor3d_Curve, S: float, NumberOfCurve: int + ) -> float: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def LastParameter(self) -> float: ... @overload @@ -169,16 +253,37 @@ class Approx_CurvlinFunc(Standard_Transient): class Approx_FitAndDivide: @overload - def __init__(self, Line: AppCont_Function, degreemin: Optional[int] = 3, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-5, Tolerance2d: Optional[float] = 1.0e-5, cutting: Optional[bool] = False, FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint) -> None: ... + def __init__( + self, + Line: AppCont_Function, + degreemin: Optional[int] = 3, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-5, + Tolerance2d: Optional[float] = 1.0e-5, + cutting: Optional[bool] = False, + FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + ) -> None: ... @overload - def __init__(self, degreemin: Optional[int] = 3, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-05, Tolerance2d: Optional[float] = 1.0e-05, cutting: Optional[bool] = False, FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint) -> None: ... + def __init__( + self, + degreemin: Optional[int] = 3, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-05, + Tolerance2d: Optional[float] = 1.0e-05, + cutting: Optional[bool] = False, + FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + ) -> None: ... def Error(self, Index: int) -> Tuple[float, float]: ... def IsAllApproximated(self) -> bool: ... def IsToleranceReached(self) -> bool: ... def NbMultiCurves(self) -> int: ... def Parameters(self, Index: int) -> Tuple[float, float]: ... def Perform(self, Line: AppCont_Function) -> None: ... - def SetConstraints(self, FirstC: AppParCurves_Constraint, LastC: AppParCurves_Constraint) -> None: ... + def SetConstraints( + self, FirstC: AppParCurves_Constraint, LastC: AppParCurves_Constraint + ) -> None: ... def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... def SetHangChecking(self, theHangChecking: bool) -> None: ... def SetInvOrder(self, theInvOrder: bool) -> None: ... @@ -188,16 +293,37 @@ class Approx_FitAndDivide: class Approx_FitAndDivide2d: @overload - def __init__(self, Line: AppCont_Function, degreemin: Optional[int] = 3, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-5, Tolerance2d: Optional[float] = 1.0e-5, cutting: Optional[bool] = False, FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint) -> None: ... + def __init__( + self, + Line: AppCont_Function, + degreemin: Optional[int] = 3, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-5, + Tolerance2d: Optional[float] = 1.0e-5, + cutting: Optional[bool] = False, + FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + ) -> None: ... @overload - def __init__(self, degreemin: Optional[int] = 3, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-05, Tolerance2d: Optional[float] = 1.0e-05, cutting: Optional[bool] = False, FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint) -> None: ... + def __init__( + self, + degreemin: Optional[int] = 3, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-05, + Tolerance2d: Optional[float] = 1.0e-05, + cutting: Optional[bool] = False, + FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + ) -> None: ... def Error(self, Index: int) -> Tuple[float, float]: ... def IsAllApproximated(self) -> bool: ... def IsToleranceReached(self) -> bool: ... def NbMultiCurves(self) -> int: ... def Parameters(self, Index: int) -> Tuple[float, float]: ... def Perform(self, Line: AppCont_Function) -> None: ... - def SetConstraints(self, FirstC: AppParCurves_Constraint, LastC: AppParCurves_Constraint) -> None: ... + def SetConstraints( + self, FirstC: AppParCurves_Constraint, LastC: AppParCurves_Constraint + ) -> None: ... def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... def SetHangChecking(self, theHangChecking: bool) -> None: ... def SetInvOrder(self, theInvOrder: bool) -> None: ... @@ -218,11 +344,21 @@ class Approx_MCurvesToBSpCurve: class Approx_SameParameter: @overload - def __init__(self, C3D: Geom_Curve, C2D: Geom2d_Curve, S: Geom_Surface, Tol: float) -> None: ... + def __init__( + self, C3D: Geom_Curve, C2D: Geom2d_Curve, S: Geom_Surface, Tol: float + ) -> None: ... @overload - def __init__(self, C3D: Adaptor3d_Curve, C2D: Geom2d_Curve, S: Adaptor3d_Surface, Tol: float) -> None: ... + def __init__( + self, C3D: Adaptor3d_Curve, C2D: Geom2d_Curve, S: Adaptor3d_Surface, Tol: float + ) -> None: ... @overload - def __init__(self, C3D: Adaptor3d_Curve, C2D: Adaptor2d_Curve2d, S: Adaptor3d_Surface, Tol: float) -> None: ... + def __init__( + self, + C3D: Adaptor3d_Curve, + C2D: Adaptor2d_Curve2d, + S: Adaptor3d_Surface, + Tol: float, + ) -> None: ... def Curve2d(self) -> Geom2d_Curve: ... def Curve3d(self) -> Adaptor3d_Curve: ... def CurveOnSurface(self) -> Adaptor3d_CurveOnSurface: ... @@ -234,19 +370,38 @@ class Approx_SweepApproximation: def __init__(self, Func: Approx_SweepFunction) -> None: ... def Average2dError(self, Index: int) -> float: ... def AverageErrorOnSurf(self) -> float: ... - def Curve2d(self, Index: int, TPoles: TColgp_Array1OfPnt2d, TKnots: TColStd_Array1OfReal, TMults: TColStd_Array1OfInteger) -> None: ... + def Curve2d( + self, + Index: int, + TPoles: TColgp_Array1OfPnt2d, + TKnots: TColStd_Array1OfReal, + TMults: TColStd_Array1OfInteger, + ) -> None: ... def Curve2dPoles(self, Index: int) -> TColgp_Array1OfPnt2d: ... def Curves2dDegree(self) -> int: ... def Curves2dKnots(self) -> TColStd_Array1OfReal: ... def Curves2dMults(self) -> TColStd_Array1OfInteger: ... def Curves2dShape(self) -> Tuple[int, int, int]: ... def Dump(self) -> str: ... - def Eval(self, Parameter: float, DerivativeRequest: int, First: float, Last: float) -> Tuple[int, float]: ... + def Eval( + self, Parameter: float, DerivativeRequest: int, First: float, Last: float + ) -> Tuple[int, float]: ... def IsDone(self) -> bool: ... def Max2dError(self, Index: int) -> float: ... def MaxErrorOnSurf(self) -> float: ... def NbCurves2d(self) -> int: ... - def Perform(self, First: float, Last: float, Tol3d: float, BoundTol: float, Tol2d: float, TolAngular: float, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C0, Degmax: Optional[int] = 11, Segmax: Optional[int] = 50) -> None: ... + def Perform( + self, + First: float, + Last: float, + Tol3d: float, + BoundTol: float, + Tol2d: float, + TolAngular: float, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C0, + Degmax: Optional[int] = 11, + Segmax: Optional[int] = 50, + ) -> None: ... def SurfPoles(self) -> TColgp_Array2OfPnt: ... def SurfShape(self) -> Tuple[int, int, int, int, int, int]: ... def SurfUKnots(self) -> TColStd_Array1OfReal: ... @@ -254,18 +409,65 @@ class Approx_SweepApproximation: def SurfVKnots(self) -> TColStd_Array1OfReal: ... def SurfVMults(self) -> TColStd_Array1OfInteger: ... def SurfWeights(self) -> TColStd_Array2OfReal: ... - def Surface(self, TPoles: TColgp_Array2OfPnt, TWeights: TColStd_Array2OfReal, TUKnots: TColStd_Array1OfReal, TVKnots: TColStd_Array1OfReal, TUMults: TColStd_Array1OfInteger, TVMults: TColStd_Array1OfInteger) -> None: ... + def Surface( + self, + TPoles: TColgp_Array2OfPnt, + TWeights: TColStd_Array2OfReal, + TUKnots: TColStd_Array1OfReal, + TVKnots: TColStd_Array1OfReal, + TUMults: TColStd_Array1OfInteger, + TVMults: TColStd_Array1OfInteger, + ) -> None: ... def TolCurveOnSurf(self, Index: int) -> float: ... def UDegree(self) -> int: ... def VDegree(self) -> int: ... class Approx_SweepFunction(Standard_Transient): def BarycentreOfSurf(self) -> gp_Pnt: ... - def D0(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> bool: ... - def D1(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - def D2(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def D0( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> bool: ... + def D1( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + def D2( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: TColStd_Array1OfReal) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: TColStd_Array1OfReal, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... @@ -284,11 +486,9 @@ class Approx_HArray1OfAdHSurface(Approx_Array1OfAdHSurface, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Approx_Array1OfAdHSurface: ... - class Approx_HArray1OfGTrsf2d(Approx_Array1OfGTrsf2d, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Approx_Array1OfGTrsf2d: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ApproxInt.pyi b/src/SWIG_files/wrapper/ApproxInt.pyi index f599de8d6..8910a2846 100644 --- a/src/SWIG_files/wrapper/ApproxInt.pyi +++ b/src/SWIG_files/wrapper/ApproxInt.pyi @@ -11,22 +11,37 @@ from OCC.Core.Approx import * from OCC.Core.gp import * from OCC.Core.IntSurf import * - class ApproxInt_KnotTools: @staticmethod - def DefineParType(theWL: IntPatch_WLine, theFpar: int, theLpar: int, theApproxXYZ: bool, theApproxU1V1: bool, theApproxU2V2: bool) -> Approx_ParametrizationType: ... + def DefineParType( + theWL: IntPatch_WLine, + theFpar: int, + theLpar: int, + theApproxXYZ: bool, + theApproxU1V1: bool, + theApproxU2V2: bool, + ) -> Approx_ParametrizationType: ... class ApproxInt_SvSurfaces: - def Compute(self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d) -> Tuple[bool, float, float, float, float]: ... + def Compute( + self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d + ) -> Tuple[bool, float, float, float, float]: ... def GetUseSolver(self) -> bool: ... def Pnt(self, u1: float, v1: float, u2: float, v2: float, P: gp_Pnt) -> None: ... - def SeekPoint(self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S) -> bool: ... + def SeekPoint( + self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S + ) -> bool: ... def SetUseSolver(self, theUseSol: bool) -> None: ... - def Tangency(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec) -> bool: ... - def TangencyOnSurf1(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... - def TangencyOnSurf2(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... + def Tangency( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec + ) -> bool: ... + def TangencyOnSurf1( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... + def TangencyOnSurf2( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Aspect.pyi b/src/SWIG_files/wrapper/Aspect.pyi index ba4a037e6..f8ce0c52c 100644 --- a/src/SWIG_files/wrapper/Aspect.pyi +++ b/src/SWIG_files/wrapper/Aspect.pyi @@ -28,19 +28,25 @@ GLXFBConfig = NewType("GLXFBConfig", Any) HANDLE = NewType("HANDLE", None) class Aspect_SequenceOfColor: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: Quantity_Color) -> Quantity_Color: ... def Clear(self) -> None: ... def First(self) -> Quantity_Color: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Quantity_Color: ... def Length(self) -> int: ... - def Append(self, theItem: Quantity_Color) -> Quantity_Color: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Quantity_Color) -> Quantity_Color: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Quantity_Color: ... def SetValue(self, theIndex: int, theValue: Quantity_Color) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Quantity_Color: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Aspect_TrackedDevicePoseArray: @overload @@ -112,16 +118,36 @@ class Aspect_GradientFillMethod(IntEnum): Aspect_GFM_CORNER3: int = ... Aspect_GFM_CORNER4: int = ... -Aspect_GradientFillMethod_None = Aspect_GradientFillMethod.Aspect_GradientFillMethod_None -Aspect_GradientFillMethod_Horizontal = Aspect_GradientFillMethod.Aspect_GradientFillMethod_Horizontal -Aspect_GradientFillMethod_Vertical = Aspect_GradientFillMethod.Aspect_GradientFillMethod_Vertical -Aspect_GradientFillMethod_Diagonal1 = Aspect_GradientFillMethod.Aspect_GradientFillMethod_Diagonal1 -Aspect_GradientFillMethod_Diagonal2 = Aspect_GradientFillMethod.Aspect_GradientFillMethod_Diagonal2 -Aspect_GradientFillMethod_Corner1 = Aspect_GradientFillMethod.Aspect_GradientFillMethod_Corner1 -Aspect_GradientFillMethod_Corner2 = Aspect_GradientFillMethod.Aspect_GradientFillMethod_Corner2 -Aspect_GradientFillMethod_Corner3 = Aspect_GradientFillMethod.Aspect_GradientFillMethod_Corner3 -Aspect_GradientFillMethod_Corner4 = Aspect_GradientFillMethod.Aspect_GradientFillMethod_Corner4 -Aspect_GradientFillMethod_Elliptical = Aspect_GradientFillMethod.Aspect_GradientFillMethod_Elliptical +Aspect_GradientFillMethod_None = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_None +) +Aspect_GradientFillMethod_Horizontal = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_Horizontal +) +Aspect_GradientFillMethod_Vertical = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_Vertical +) +Aspect_GradientFillMethod_Diagonal1 = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_Diagonal1 +) +Aspect_GradientFillMethod_Diagonal2 = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_Diagonal2 +) +Aspect_GradientFillMethod_Corner1 = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_Corner1 +) +Aspect_GradientFillMethod_Corner2 = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_Corner2 +) +Aspect_GradientFillMethod_Corner3 = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_Corner3 +) +Aspect_GradientFillMethod_Corner4 = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_Corner4 +) +Aspect_GradientFillMethod_Elliptical = ( + Aspect_GradientFillMethod.Aspect_GradientFillMethod_Elliptical +) Aspect_GFM_NONE = Aspect_GradientFillMethod.Aspect_GFM_NONE Aspect_GFM_HOR = Aspect_GradientFillMethod.Aspect_GFM_HOR Aspect_GFM_VER = Aspect_GradientFillMethod.Aspect_GFM_VER @@ -352,8 +378,12 @@ Aspect_TOR_RIGHT_BORDER = Aspect_TypeOfResize.Aspect_TOR_RIGHT_BORDER Aspect_TOR_BOTTOM_BORDER = Aspect_TypeOfResize.Aspect_TOR_BOTTOM_BORDER Aspect_TOR_LEFT_BORDER = Aspect_TypeOfResize.Aspect_TOR_LEFT_BORDER Aspect_TOR_TOP_AND_RIGHT_BORDER = Aspect_TypeOfResize.Aspect_TOR_TOP_AND_RIGHT_BORDER -Aspect_TOR_RIGHT_AND_BOTTOM_BORDER = Aspect_TypeOfResize.Aspect_TOR_RIGHT_AND_BOTTOM_BORDER -Aspect_TOR_BOTTOM_AND_LEFT_BORDER = Aspect_TypeOfResize.Aspect_TOR_BOTTOM_AND_LEFT_BORDER +Aspect_TOR_RIGHT_AND_BOTTOM_BORDER = ( + Aspect_TypeOfResize.Aspect_TOR_RIGHT_AND_BOTTOM_BORDER +) +Aspect_TOR_BOTTOM_AND_LEFT_BORDER = ( + Aspect_TypeOfResize.Aspect_TOR_BOTTOM_AND_LEFT_BORDER +) Aspect_TOR_LEFT_AND_TOP_BORDER = Aspect_TypeOfResize.Aspect_TOR_LEFT_AND_TOP_BORDER class Aspect_TypeOfStyleText(IntEnum): @@ -673,9 +703,6 @@ Aspect_VKey_NavThrustStop = Aspect_VKeyBasic.Aspect_VKey_NavThrustStop Aspect_VKey_NavSpeedIncrease = Aspect_VKeyBasic.Aspect_VKey_NavSpeedIncrease Aspect_VKey_NavSpeedDecrease = Aspect_VKeyBasic.Aspect_VKey_NavSpeedDecrease - - - class Aspect_WidthOfLine(IntEnum): Aspect_WOL_THIN: int = ... Aspect_WOL_MEDIUM: int = ... @@ -704,7 +731,9 @@ class Aspect_XRActionType(IntEnum): Aspect_XRActionType_InputDigital = Aspect_XRActionType.Aspect_XRActionType_InputDigital Aspect_XRActionType_InputAnalog = Aspect_XRActionType.Aspect_XRActionType_InputAnalog Aspect_XRActionType_InputPose = Aspect_XRActionType.Aspect_XRActionType_InputPose -Aspect_XRActionType_InputSkeletal = Aspect_XRActionType.Aspect_XRActionType_InputSkeletal +Aspect_XRActionType_InputSkeletal = ( + Aspect_XRActionType.Aspect_XRActionType_InputSkeletal +) Aspect_XRActionType_OutputHaptic = Aspect_XRActionType.Aspect_XRActionType_OutputHaptic class Aspect_XRGenericAction(IntEnum): @@ -726,24 +755,57 @@ class Aspect_XRGenericAction(IntEnum): Aspect_XRGenericAction_InputPoseFingerTip: int = ... Aspect_XRGenericAction_OutputHaptic: int = ... -Aspect_XRGenericAction_IsHeadsetOn = Aspect_XRGenericAction.Aspect_XRGenericAction_IsHeadsetOn -Aspect_XRGenericAction_InputAppMenu = Aspect_XRGenericAction.Aspect_XRGenericAction_InputAppMenu -Aspect_XRGenericAction_InputSysMenu = Aspect_XRGenericAction.Aspect_XRGenericAction_InputSysMenu -Aspect_XRGenericAction_InputTriggerPull = Aspect_XRGenericAction.Aspect_XRGenericAction_InputTriggerPull -Aspect_XRGenericAction_InputTriggerClick = Aspect_XRGenericAction.Aspect_XRGenericAction_InputTriggerClick -Aspect_XRGenericAction_InputGripClick = Aspect_XRGenericAction.Aspect_XRGenericAction_InputGripClick -Aspect_XRGenericAction_InputTrackPadPosition = Aspect_XRGenericAction.Aspect_XRGenericAction_InputTrackPadPosition -Aspect_XRGenericAction_InputTrackPadTouch = Aspect_XRGenericAction.Aspect_XRGenericAction_InputTrackPadTouch -Aspect_XRGenericAction_InputTrackPadClick = Aspect_XRGenericAction.Aspect_XRGenericAction_InputTrackPadClick -Aspect_XRGenericAction_InputThumbstickPosition = Aspect_XRGenericAction.Aspect_XRGenericAction_InputThumbstickPosition -Aspect_XRGenericAction_InputThumbstickTouch = Aspect_XRGenericAction.Aspect_XRGenericAction_InputThumbstickTouch -Aspect_XRGenericAction_InputThumbstickClick = Aspect_XRGenericAction.Aspect_XRGenericAction_InputThumbstickClick -Aspect_XRGenericAction_InputPoseBase = Aspect_XRGenericAction.Aspect_XRGenericAction_InputPoseBase -Aspect_XRGenericAction_InputPoseFront = Aspect_XRGenericAction.Aspect_XRGenericAction_InputPoseFront -Aspect_XRGenericAction_InputPoseHandGrip = Aspect_XRGenericAction.Aspect_XRGenericAction_InputPoseHandGrip -Aspect_XRGenericAction_InputPoseFingerTip = Aspect_XRGenericAction.Aspect_XRGenericAction_InputPoseFingerTip -Aspect_XRGenericAction_OutputHaptic = Aspect_XRGenericAction.Aspect_XRGenericAction_OutputHaptic - +Aspect_XRGenericAction_IsHeadsetOn = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_IsHeadsetOn +) +Aspect_XRGenericAction_InputAppMenu = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputAppMenu +) +Aspect_XRGenericAction_InputSysMenu = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputSysMenu +) +Aspect_XRGenericAction_InputTriggerPull = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputTriggerPull +) +Aspect_XRGenericAction_InputTriggerClick = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputTriggerClick +) +Aspect_XRGenericAction_InputGripClick = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputGripClick +) +Aspect_XRGenericAction_InputTrackPadPosition = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputTrackPadPosition +) +Aspect_XRGenericAction_InputTrackPadTouch = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputTrackPadTouch +) +Aspect_XRGenericAction_InputTrackPadClick = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputTrackPadClick +) +Aspect_XRGenericAction_InputThumbstickPosition = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputThumbstickPosition +) +Aspect_XRGenericAction_InputThumbstickTouch = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputThumbstickTouch +) +Aspect_XRGenericAction_InputThumbstickClick = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputThumbstickClick +) +Aspect_XRGenericAction_InputPoseBase = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputPoseBase +) +Aspect_XRGenericAction_InputPoseFront = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputPoseFront +) +Aspect_XRGenericAction_InputPoseHandGrip = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputPoseHandGrip +) +Aspect_XRGenericAction_InputPoseFingerTip = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_InputPoseFingerTip +) +Aspect_XRGenericAction_OutputHaptic = ( + Aspect_XRGenericAction.Aspect_XRGenericAction_OutputHaptic +) class Aspect_XRTrackedDeviceRole(IntEnum): Aspect_XRTrackedDeviceRole_Head: int = ... @@ -751,11 +813,18 @@ class Aspect_XRTrackedDeviceRole(IntEnum): Aspect_XRTrackedDeviceRole_RightHand: int = ... Aspect_XRTrackedDeviceRole_Other: int = ... -Aspect_XRTrackedDeviceRole_Head = Aspect_XRTrackedDeviceRole.Aspect_XRTrackedDeviceRole_Head -Aspect_XRTrackedDeviceRole_LeftHand = Aspect_XRTrackedDeviceRole.Aspect_XRTrackedDeviceRole_LeftHand -Aspect_XRTrackedDeviceRole_RightHand = Aspect_XRTrackedDeviceRole.Aspect_XRTrackedDeviceRole_RightHand -Aspect_XRTrackedDeviceRole_Other = Aspect_XRTrackedDeviceRole.Aspect_XRTrackedDeviceRole_Other - +Aspect_XRTrackedDeviceRole_Head = ( + Aspect_XRTrackedDeviceRole.Aspect_XRTrackedDeviceRole_Head +) +Aspect_XRTrackedDeviceRole_LeftHand = ( + Aspect_XRTrackedDeviceRole.Aspect_XRTrackedDeviceRole_LeftHand +) +Aspect_XRTrackedDeviceRole_RightHand = ( + Aspect_XRTrackedDeviceRole.Aspect_XRTrackedDeviceRole_RightHand +) +Aspect_XRTrackedDeviceRole_Other = ( + Aspect_XRTrackedDeviceRole.Aspect_XRTrackedDeviceRole_Other +) class Aspect_Background: @overload @@ -763,7 +832,7 @@ class Aspect_Background: @overload def __init__(self, AColor: Quantity_Color) -> None: ... def Color(self) -> Quantity_Color: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def SetColor(self, AColor: Quantity_Color) -> None: ... class Aspect_DisplayConnection(Standard_Transient): @@ -777,7 +846,7 @@ class Aspect_GenId: @overload def __init__(self, theLow: int, theUpper: int) -> None: ... def Available(self) -> int: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Free(self) -> None: ... @overload @@ -797,7 +866,7 @@ class Aspect_Grid(Standard_Transient): def Deactivate(self) -> None: ... def Display(self) -> None: ... def DrawMode(self) -> Aspect_GridDrawMode: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Erase(self) -> None: ... def Hit(self, X: float, Y: float) -> Tuple[float, float]: ... def Init(self) -> None: ... @@ -805,7 +874,9 @@ class Aspect_Grid(Standard_Transient): def IsDisplayed(self) -> bool: ... def Rotate(self, anAngle: float) -> None: ... def RotationAngle(self) -> float: ... - def SetColors(self, aColor: Quantity_Color, aTenthColor: Quantity_Color) -> None: ... + def SetColors( + self, aColor: Quantity_Color, aTenthColor: Quantity_Color + ) -> None: ... def SetDrawMode(self, aDrawMode: Aspect_GridDrawMode) -> None: ... def SetRotationAngle(self, anAngle: float) -> None: ... def SetXOrigin(self, anOrigin: float) -> None: ... @@ -818,7 +889,11 @@ class Aspect_ScrollDelta: @overload def __init__(self) -> None: ... @overload - def __init__(self, theValue: float, theFlags: Optional[Aspect_VKeyFlags] = Aspect_VKeyFlags_NONE) -> None: ... + def __init__( + self, + theValue: float, + theFlags: Optional[Aspect_VKeyFlags] = Aspect_VKeyFlags_NONE, + ) -> None: ... def HasPoint(self) -> bool: ... def ResetPoint(self) -> None: ... @@ -826,9 +901,16 @@ class Aspect_SkydomeBackground: @overload def __init__(self) -> None: ... @overload - def __init__(self, theSunDirection: gp_Dir, theCloudiness: float, theTime: float, theFogginess: float, theSize: int) -> None: ... + def __init__( + self, + theSunDirection: gp_Dir, + theCloudiness: float, + theTime: float, + theFogginess: float, + theSize: int, + ) -> None: ... def Cloudiness(self) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Fogginess(self) -> float: ... def SetCloudiness(self, theCloudiness: float) -> None: ... def SetFogginess(self, theFogginess: float) -> None: ... @@ -854,8 +936,16 @@ class Aspect_VKeySet(Standard_Transient): def DownTime(self, theKey: Aspect_VKey) -> float: ... def IsFreeKey(self, theKey: Aspect_VKey) -> bool: ... def IsKeyDown(self, theKey: Aspect_VKey) -> bool: ... - def KeyDown(self, theKey: Aspect_VKey, theTime: float, thePressure: Optional[float] = 1.0) -> None: ... - def KeyFromAxis(self, theNegative: Aspect_VKey, thePositive: Aspect_VKey, theTime: float, thePressure: float) -> None: ... + def KeyDown( + self, theKey: Aspect_VKey, theTime: float, thePressure: Optional[float] = 1.0 + ) -> None: ... + def KeyFromAxis( + self, + theNegative: Aspect_VKey, + thePositive: Aspect_VKey, + theTime: float, + thePressure: float, + ) -> None: ... def KeyUp(self, theKey: Aspect_VKey, theTime: float) -> None: ... def Modifiers(self) -> Aspect_VKeyFlags: ... def Mutex(self) -> Standard_Mutex: ... @@ -872,7 +962,7 @@ class Aspect_Window(Standard_Transient): def DisplayConnection(self) -> Aspect_DisplayConnection: ... def DoMapping(self) -> bool: ... def DoResize(self) -> Aspect_TypeOfResize: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GradientBackground(self) -> Aspect_GradientBackground: ... def InvalidateContent(self, theDisp: Aspect_DisplayConnection) -> None: ... def IsMapped(self) -> bool: ... @@ -888,7 +978,12 @@ class Aspect_Window(Standard_Transient): @overload def SetBackground(self, theBackground: Aspect_GradientBackground) -> None: ... @overload - def SetBackground(self, theFirstColor: Quantity_Color, theSecondColor: Quantity_Color, theFillMethod: Aspect_GradientFillMethod) -> None: ... + def SetBackground( + self, + theFirstColor: Quantity_Color, + theSecondColor: Quantity_Color, + theFillMethod: Aspect_GradientFillMethod, + ) -> None: ... def SetTitle(self, theTitle: str) -> None: ... def SetVirtual(self, theVirtual: bool) -> None: ... def Size(self) -> Tuple[int, int]: ... @@ -896,7 +991,12 @@ class Aspect_Window(Standard_Transient): def Unmap(self) -> None: ... class Aspect_WindowInputListener: - def AddTouchPoint(self, theId: int, thePnt: Graphic3d_Vec2d, theClearBefore: Optional[bool] = false) -> None: ... + def AddTouchPoint( + self, + theId: int, + thePnt: Graphic3d_Vec2d, + theClearBefore: Optional[bool] = false, + ) -> None: ... def Change3dMouseIsNoRotate(self) -> bool: ... def Change3dMouseToReverse(self) -> bool: ... def ChangeKeys(self) -> Aspect_VKeySet: ... @@ -906,28 +1006,62 @@ class Aspect_WindowInputListener: def Get3dMouseToReverse(self) -> bool: ... def Get3dMouseTranslationScale(self) -> float: ... def HasTouchPoints(self) -> bool: ... - def KeyDown(self, theKey: Aspect_VKey, theTime: float, thePressure: Optional[float] = 1.0) -> None: ... - def KeyFromAxis(self, theNegative: Aspect_VKey, thePositive: Aspect_VKey, theTime: float, thePressure: float) -> None: ... + def KeyDown( + self, theKey: Aspect_VKey, theTime: float, thePressure: Optional[float] = 1.0 + ) -> None: ... + def KeyFromAxis( + self, + theNegative: Aspect_VKey, + thePositive: Aspect_VKey, + theTime: float, + thePressure: float, + ) -> None: ... def KeyUp(self, theKey: Aspect_VKey, theTime: float) -> None: ... def Keys(self) -> Aspect_VKeySet: ... def LastMouseFlags(self) -> Aspect_VKeyFlags: ... def LastMousePosition(self) -> Graphic3d_Vec2i: ... - def PressMouseButton(self, thePoint: Graphic3d_Vec2i, theButton: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsEmulated: bool) -> bool: ... + def PressMouseButton( + self, + thePoint: Graphic3d_Vec2i, + theButton: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsEmulated: bool, + ) -> bool: ... def PressedMouseButtons(self) -> Aspect_VKeyMouse: ... def ProcessClose(self) -> None: ... def ProcessConfigure(self, theIsResized: bool) -> None: ... def ProcessExpose(self) -> None: ... def ProcessFocus(self, theIsActivated: bool) -> None: ... def ProcessInput(self) -> None: ... - def ReleaseMouseButton(self, thePoint: Graphic3d_Vec2i, theButton: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsEmulated: bool) -> bool: ... - def RemoveTouchPoint(self, theId: int, theClearSelectPnts: Optional[bool] = false) -> bool: ... + def ReleaseMouseButton( + self, + thePoint: Graphic3d_Vec2i, + theButton: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsEmulated: bool, + ) -> bool: ... + def RemoveTouchPoint( + self, theId: int, theClearSelectPnts: Optional[bool] = false + ) -> bool: ... def Set3dMousePreciseInput(self, theIsQuadric: bool) -> None: ... def Set3dMouseRotationScale(self, theScale: float) -> None: ... def Set3dMouseTranslationScale(self, theScale: float) -> None: ... def To3dMousePreciseInput(self) -> bool: ... def TouchPoints(self) -> Aspect_TouchMap: ... - def UpdateMouseButtons(self, thePoint: Graphic3d_Vec2i, theButtons: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsEmulated: bool) -> bool: ... - def UpdateMousePosition(self, thePoint: Graphic3d_Vec2i, theButtons: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsEmulated: bool) -> bool: ... + def UpdateMouseButtons( + self, + thePoint: Graphic3d_Vec2i, + theButtons: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsEmulated: bool, + ) -> bool: ... + def UpdateMousePosition( + self, + thePoint: Graphic3d_Vec2i, + theButtons: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsEmulated: bool, + ) -> bool: ... def UpdateMouseScroll(self, theDelta: Aspect_ScrollDelta) -> bool: ... def UpdateTouchPoint(self, theId: int, thePnt: Graphic3d_Vec2d) -> None: ... @@ -966,10 +1100,18 @@ class Aspect_XRSession(Standard_Transient): def DisplayFrequency(self) -> float: ... def EyeToHeadTransform(self, theEye: Aspect_Eye) -> False: ... def FieldOfView(self) -> float: ... - def GenericAction(self, theDevice: Aspect_XRTrackedDeviceRole, theAction: Aspect_XRGenericAction) -> Aspect_XRAction: ... - def GetAnalogActionData(self, theAction: Aspect_XRAction) -> Aspect_XRAnalogActionData: ... - def GetDigitalActionData(self, theAction: Aspect_XRAction) -> Aspect_XRDigitalActionData: ... - def GetPoseActionDataForNextFrame(self, theAction: Aspect_XRAction) -> Aspect_XRPoseActionData: ... + def GenericAction( + self, theDevice: Aspect_XRTrackedDeviceRole, theAction: Aspect_XRGenericAction + ) -> Aspect_XRAction: ... + def GetAnalogActionData( + self, theAction: Aspect_XRAction + ) -> Aspect_XRAnalogActionData: ... + def GetDigitalActionData( + self, theAction: Aspect_XRAction + ) -> Aspect_XRDigitalActionData: ... + def GetPoseActionDataForNextFrame( + self, theAction: Aspect_XRAction + ) -> Aspect_XRPoseActionData: ... def HasProjectionFrustums(self) -> bool: ... def HasTrackedPose(self, theDevice: int) -> bool: ... def HeadPose(self) -> gp_Trsf: ... @@ -978,21 +1120,35 @@ class Aspect_XRSession(Standard_Transient): def IsOpen(self) -> bool: ... def LeftHandPose(self) -> gp_Trsf: ... @overload - def LoadRenderModel(self, theDevice: int, theTexture: Image_Texture) -> Graphic3d_ArrayOfTriangles: ... + def LoadRenderModel( + self, theDevice: int, theTexture: Image_Texture + ) -> Graphic3d_ArrayOfTriangles: ... @overload - def LoadRenderModel(self, theDevice: int, theToApplyUnitFactor: bool, theTexture: Image_Texture) -> Graphic3d_ArrayOfTriangles: ... + def LoadRenderModel( + self, theDevice: int, theToApplyUnitFactor: bool, theTexture: Image_Texture + ) -> Graphic3d_ArrayOfTriangles: ... def NamedTrackedDevice(self, theDevice: Aspect_XRTrackedDeviceRole) -> int: ... def Open(self) -> bool: ... def ProcessEvents(self) -> None: ... def ProjectionFrustum(self, theEye: Aspect_Eye) -> False: ... - def ProjectionMatrix(self, theEye: Aspect_Eye, theZNear: float, theZFar: float) -> False: ... + def ProjectionMatrix( + self, theEye: Aspect_Eye, theZNear: float, theZFar: float + ) -> False: ... def RecommendedViewport(self) -> False: ... def RightHandPose(self) -> gp_Trsf: ... def SetUnitFactor(self, theFactor: float) -> None: ... - def SubmitEye(self, theTexture: None, theGraphicsLib: Aspect_GraphicsLibrary, theColorSpace: Aspect_ColorSpace, theEye: Aspect_Eye) -> bool: ... + def SubmitEye( + self, + theTexture: None, + theGraphicsLib: Aspect_GraphicsLibrary, + theColorSpace: Aspect_ColorSpace, + theEye: Aspect_Eye, + ) -> bool: ... def TrackedPoses(self) -> Aspect_TrackedDevicePoseArray: ... def TrackingOrigin(self) -> False: ... - def TriggerHapticVibrationAction(self, theAction: Aspect_XRAction, theParams: Aspect_XRHapticActionData) -> None: ... + def TriggerHapticVibrationAction( + self, theAction: Aspect_XRAction, theParams: Aspect_XRHapticActionData + ) -> None: ... def UnitFactor(self) -> float: ... def WaitPoses(self) -> bool: ... @@ -1000,19 +1156,39 @@ class Aspect_GradientBackground(Aspect_Background): @overload def __init__(self) -> None: ... @overload - def __init__(self, theColor1: Quantity_Color, theColor2: Quantity_Color, theMethod: Optional[Aspect_GradientFillMethod] = Aspect_GradientFillMethod_Horizontal) -> None: ... + def __init__( + self, + theColor1: Quantity_Color, + theColor2: Quantity_Color, + theMethod: Optional[ + Aspect_GradientFillMethod + ] = Aspect_GradientFillMethod_Horizontal, + ) -> None: ... def BgGradientFillMethod(self) -> Aspect_GradientFillMethod: ... def Colors(self, theColor1: Quantity_Color, theColor2: Quantity_Color) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - def SetColors(self, theColor1: Quantity_Color, theColor2: Quantity_Color, theMethod: Optional[Aspect_GradientFillMethod] = Aspect_GradientFillMethod_Horizontal) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + def SetColors( + self, + theColor1: Quantity_Color, + theColor2: Quantity_Color, + theMethod: Optional[ + Aspect_GradientFillMethod + ] = Aspect_GradientFillMethod_Horizontal, + ) -> None: ... class Aspect_OpenVRSession(Aspect_XRSession): def __init__(self) -> None: ... def Close(self) -> None: ... def EyeToHeadTransform(self, theEye: Aspect_Eye) -> False: ... - def GetAnalogActionData(self, theAction: Aspect_XRAction) -> Aspect_XRAnalogActionData: ... - def GetDigitalActionData(self, theAction: Aspect_XRAction) -> Aspect_XRDigitalActionData: ... - def GetPoseActionDataForNextFrame(self, theAction: Aspect_XRAction) -> Aspect_XRPoseActionData: ... + def GetAnalogActionData( + self, theAction: Aspect_XRAction + ) -> Aspect_XRAnalogActionData: ... + def GetDigitalActionData( + self, theAction: Aspect_XRAction + ) -> Aspect_XRDigitalActionData: ... + def GetPoseActionDataForNextFrame( + self, theAction: Aspect_XRAction + ) -> Aspect_XRPoseActionData: ... def HasProjectionFrustums(self) -> bool: ... @staticmethod def IsHmdPresent() -> bool: ... @@ -1020,24 +1196,31 @@ class Aspect_OpenVRSession(Aspect_XRSession): def NamedTrackedDevice(self, theDevice: Aspect_XRTrackedDeviceRole) -> int: ... def Open(self) -> bool: ... def ProcessEvents(self) -> None: ... - def ProjectionMatrix(self, theEye: Aspect_Eye, theZNear: float, theZFar: float) -> False: ... + def ProjectionMatrix( + self, theEye: Aspect_Eye, theZNear: float, theZFar: float + ) -> False: ... def RecommendedViewport(self) -> False: ... - def SubmitEye(self, theTexture: None, theGraphicsLib: Aspect_GraphicsLibrary, theColorSpace: Aspect_ColorSpace, theEye: Aspect_Eye) -> bool: ... + def SubmitEye( + self, + theTexture: None, + theGraphicsLib: Aspect_GraphicsLibrary, + theColorSpace: Aspect_ColorSpace, + theEye: Aspect_Eye, + ) -> bool: ... def WaitPoses(self) -> bool: ... -#classnotwrapped +# classnotwrapped class Aspect_CircularGrid: ... -#classnotwrapped +# classnotwrapped class Aspect_NeutralWindow: ... -#classnotwrapped +# classnotwrapped class Aspect_RectangularGrid: ... -#classnotwrapped +# classnotwrapped class Aspect_FrustumLRBT: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BOPAlgo.i b/src/SWIG_files/wrapper/BOPAlgo.i index 59f9beca0..b7a035fdd 100644 --- a/src/SWIG_files/wrapper/BOPAlgo.i +++ b/src/SWIG_files/wrapper/BOPAlgo.i @@ -193,6 +193,12 @@ BOPAlgo_UNKNOWN = BOPAlgo_Operation.BOPAlgo_UNKNOWN %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BOPAlgo_ListIteratorOfListOfCheckResult(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/BOPAlgo.pyi b/src/SWIG_files/wrapper/BOPAlgo.pyi index 8c61157e1..f7aa95ddc 100644 --- a/src/SWIG_files/wrapper/BOPAlgo.pyi +++ b/src/SWIG_files/wrapper/BOPAlgo.pyi @@ -16,8 +16,12 @@ from OCC.Core.BOPTools import * from OCC.Core.TopAbs import * # the following typedef cannot be wrapped as is -BOPAlgo_ListIteratorOfListOfCheckResult = NewType("BOPAlgo_ListIteratorOfListOfCheckResult", Any) -BOPAlgo_PArgumentAnalyzer = NewType("BOPAlgo_PArgumentAnalyzer", BOPAlgo_ArgumentAnalyzer) +BOPAlgo_ListIteratorOfListOfCheckResult = NewType( + "BOPAlgo_ListIteratorOfListOfCheckResult", Any +) +BOPAlgo_PArgumentAnalyzer = NewType( + "BOPAlgo_PArgumentAnalyzer", BOPAlgo_ArgumentAnalyzer +) BOPAlgo_PBOP = NewType("BOPAlgo_PBOP", BOPAlgo_BOP) BOPAlgo_PBuilder = NewType("BOPAlgo_PBuilder", BOPAlgo_Builder) BOPAlgo_PPaveFiller = NewType("BOPAlgo_PPaveFiller", BOPAlgo_PaveFiller) @@ -25,18 +29,20 @@ BOPAlgo_PSection = NewType("BOPAlgo_PSection", BOPAlgo_Section) BOPAlgo_PWireEdgeSet = NewType("BOPAlgo_PWireEdgeSet", BOPAlgo_WireEdgeSet) class BOPAlgo_ListOfCheckResult: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: BOPAlgo_CheckResult) -> BOPAlgo_CheckResult: ... + def Assign( + self, theItem: BOPAlgo_ListOfCheckResult + ) -> BOPAlgo_ListOfCheckResult: ... def Clear(self) -> None: ... def First(self) -> BOPAlgo_CheckResult: ... def Last(self) -> BOPAlgo_CheckResult: ... - def Append(self, theItem: BOPAlgo_CheckResult) -> BOPAlgo_CheckResult: ... def Prepend(self, theItem: BOPAlgo_CheckResult) -> BOPAlgo_CheckResult: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BOPAlgo_CheckResult: ... - def SetValue(self, theIndex: int, theValue: BOPAlgo_CheckResult) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> BOPAlgo_CheckResult: ... class BOPAlgo_CheckStatus(IntEnum): BOPAlgo_CheckUnknown: int = ... @@ -149,7 +155,9 @@ class BOPAlgo_SectionAttribute: @overload def __init__(self) -> None: ... @overload - def __init__(self, theAproximation: bool, thePCurveOnS1: bool, thePCurveOnS2: bool) -> None: ... + def __init__( + self, theAproximation: bool, thePCurveOnS1: bool, thePCurveOnS2: bool + ) -> None: ... @overload def Approximation(self, theApprox: bool) -> None: ... @overload @@ -165,25 +173,74 @@ class BOPAlgo_SectionAttribute: class BOPAlgo_Tools: @staticmethod - def ClassifyFaces(theFaces: TopTools_ListOfShape, theSolids: TopTools_ListOfShape, theRunParallel: bool, theContext: IntTools_Context, theInParts: TopTools_IndexedDataMapOfShapeListOfShape, theShapeBoxMap: Optional[TopTools_DataMapOfShapeBox] = TopTools_DataMapOfShapeBox(), theSolidsIF: Optional[TopTools_DataMapOfShapeListOfShape] = TopTools_DataMapOfShapeListOfShape(), theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def ClassifyFaces( + theFaces: TopTools_ListOfShape, + theSolids: TopTools_ListOfShape, + theRunParallel: bool, + theContext: IntTools_Context, + theInParts: TopTools_IndexedDataMapOfShapeListOfShape, + theShapeBoxMap: Optional[ + TopTools_DataMapOfShapeBox + ] = TopTools_DataMapOfShapeBox(), + theSolidsIF: Optional[ + TopTools_DataMapOfShapeListOfShape + ] = TopTools_DataMapOfShapeListOfShape(), + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @staticmethod - def ComputeToleranceOfCB(theCB: BOPDS_CommonBlock, theDS: BOPDS_PDS, theContext: IntTools_Context) -> float: ... + def ComputeToleranceOfCB( + theCB: BOPDS_CommonBlock, theDS: BOPDS_PDS, theContext: IntTools_Context + ) -> float: ... @staticmethod - def EdgesToWires(theEdges: TopoDS_Shape, theWires: TopoDS_Shape, theShared: Optional[bool] = False, theAngTol: Optional[float] = 1e-8) -> int: ... + def EdgesToWires( + theEdges: TopoDS_Shape, + theWires: TopoDS_Shape, + theShared: Optional[bool] = False, + theAngTol: Optional[float] = 1e-8, + ) -> int: ... @staticmethod - def FillInternals(theSolids: TopTools_ListOfShape, theParts: TopTools_ListOfShape, theImages: TopTools_DataMapOfShapeListOfShape, theContext: IntTools_Context) -> None: ... + def FillInternals( + theSolids: TopTools_ListOfShape, + theParts: TopTools_ListOfShape, + theImages: TopTools_DataMapOfShapeListOfShape, + theContext: IntTools_Context, + ) -> None: ... @staticmethod - def IntersectVertices(theVertices: TopTools_IndexedDataMapOfShapeReal, theFuzzyValue: float, theChains: TopTools_ListOfListOfShape) -> None: ... + def IntersectVertices( + theVertices: TopTools_IndexedDataMapOfShapeReal, + theFuzzyValue: float, + theChains: TopTools_ListOfListOfShape, + ) -> None: ... @overload @staticmethod - def PerformCommonBlocks(theMBlocks: BOPDS_IndexedDataMapOfPaveBlockListOfPaveBlock, theAllocator: NCollection_BaseAllocator, theDS: BOPDS_PDS, theContext: Optional[IntTools_Context] = IntTools_Context()) -> None: ... + def PerformCommonBlocks( + theMBlocks: BOPDS_IndexedDataMapOfPaveBlockListOfPaveBlock, + theAllocator: NCollection_BaseAllocator, + theDS: BOPDS_PDS, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> None: ... @overload @staticmethod - def PerformCommonBlocks(theMBlocks: BOPDS_IndexedDataMapOfPaveBlockListOfInteger, theAllocator: NCollection_BaseAllocator, pDS: BOPDS_PDS, theContext: Optional[IntTools_Context] = IntTools_Context()) -> None: ... + def PerformCommonBlocks( + theMBlocks: BOPDS_IndexedDataMapOfPaveBlockListOfInteger, + theAllocator: NCollection_BaseAllocator, + pDS: BOPDS_PDS, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> None: ... @staticmethod - def TrsfToPoint(theBox1: Bnd_Box, theBox2: Bnd_Box, theTrsf: gp_Trsf, thePoint: Optional[gp_Pnt] = gp_Pnt(0.0,0.0,0.0), theCriteria: Optional[float] = 1e+5) -> bool: ... + def TrsfToPoint( + theBox1: Bnd_Box, + theBox2: Bnd_Box, + theTrsf: gp_Trsf, + thePoint: Optional[gp_Pnt] = gp_Pnt(0.0, 0.0, 0.0), + theCriteria: Optional[float] = 1e5, + ) -> bool: ... @staticmethod - def WiresToFaces(theWires: TopoDS_Shape, theFaces: TopoDS_Shape, theAngTol: Optional[float] = 1e-8) -> bool: ... + def WiresToFaces( + theWires: TopoDS_Shape, + theFaces: TopoDS_Shape, + theAngTol: Optional[float] = 1e-8, + ) -> bool: ... class BOPAlgo_WireEdgeSet: @overload @@ -199,7 +256,9 @@ class BOPAlgo_WireEdgeSet: def StartElements(self) -> TopTools_ListOfShape: ... class BOPAlgo_Algo(BOPAlgo_Options): - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... class BOPAlgo_MakeConnected(BOPAlgo_Options): def __init__(self) -> None: ... @@ -233,10 +292,18 @@ class BOPAlgo_MakePeriodic(BOPAlgo_Options): def IsXPeriodic(self) -> bool: ... def IsYPeriodic(self) -> bool: ... def IsZPeriodic(self) -> bool: ... - def MakePeriodic(self, theDirectionID: int, theIsPeriodic: bool, thePeriod: Optional[float] = 0.0) -> None: ... - def MakeXPeriodic(self, theIsPeriodic: bool, thePeriod: Optional[float] = 0.0) -> None: ... - def MakeYPeriodic(self, theIsPeriodic: bool, thePeriod: Optional[float] = 0.0) -> None: ... - def MakeZPeriodic(self, theIsPeriodic: bool, thePeriod: Optional[float] = 0.0) -> None: ... + def MakePeriodic( + self, theDirectionID: int, theIsPeriodic: bool, thePeriod: Optional[float] = 0.0 + ) -> None: ... + def MakeXPeriodic( + self, theIsPeriodic: bool, thePeriod: Optional[float] = 0.0 + ) -> None: ... + def MakeYPeriodic( + self, theIsPeriodic: bool, thePeriod: Optional[float] = 0.0 + ) -> None: ... + def MakeZPeriodic( + self, theIsPeriodic: bool, thePeriod: Optional[float] = 0.0 + ) -> None: ... def Perform(self) -> None: ... def Period(self, theDirectionID: int) -> float: ... def PeriodFirst(self, theDirectionID: int) -> float: ... @@ -244,10 +311,18 @@ class BOPAlgo_MakePeriodic(BOPAlgo_Options): def RepeatShape(self, theDirectionID: int, theTimes: int) -> TopoDS_Shape: ... def RepeatedShape(self) -> TopoDS_Shape: ... def SetShape(self, theShape: TopoDS_Shape) -> None: ... - def SetTrimmed(self, theDirectionID: int, theIsTrimmed: bool, theFirst: Optional[float] = 0.0) -> None: ... - def SetXTrimmed(self, theIsTrimmed: bool, theFirst: Optional[bool] = 0.0) -> None: ... - def SetYTrimmed(self, theIsTrimmed: bool, theFirst: Optional[bool] = 0.0) -> None: ... - def SetZTrimmed(self, theIsTrimmed: bool, theFirst: Optional[bool] = 0.0) -> None: ... + def SetTrimmed( + self, theDirectionID: int, theIsTrimmed: bool, theFirst: Optional[float] = 0.0 + ) -> None: ... + def SetXTrimmed( + self, theIsTrimmed: bool, theFirst: Optional[bool] = 0.0 + ) -> None: ... + def SetYTrimmed( + self, theIsTrimmed: bool, theFirst: Optional[bool] = 0.0 + ) -> None: ... + def SetZTrimmed( + self, theIsTrimmed: bool, theFirst: Optional[bool] = 0.0 + ) -> None: ... def Shape(self) -> TopoDS_Shape: ... @staticmethod def ToDirectionID(theDirectionID: int) -> int: ... @@ -278,7 +353,9 @@ class BOPAlgo_ArgumentAnalyzer(BOPAlgo_Algo): def GetMergeVertexMode(self) -> bool: ... def SetMergeVertexMode(self, value: bool) -> None: ... def OperationType(self) -> BOPAlgo_Operation: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def GetRebuildFaceMode(self) -> bool: ... def SetRebuildFaceMode(self, value: bool) -> None: ... def GetSelfInterMode(self) -> bool: ... @@ -329,7 +406,9 @@ class BOPAlgo_PaveFiller(BOPAlgo_Algo): def IsAvoidBuildPCurve(self) -> bool: ... def NonDestructive(self) -> bool: ... def PDS(self) -> BOPDS_PDS: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SetArguments(self, theLS: TopTools_ListOfShape) -> None: ... def SetAvoidBuildPCurve(self, theValue: bool) -> None: ... def SetGlue(self, theGlue: BOPAlgo_GlueEnum) -> None: ... @@ -342,7 +421,9 @@ class BOPAlgo_ShellSplitter(BOPAlgo_Algo): @overload def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... def AddStartElement(self, theS: TopoDS_Shape) -> None: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Shells(self) -> TopTools_ListOfShape: ... @staticmethod def SplitBlock(theCB: BOPTools_ConnexityBlock) -> None: ... @@ -356,11 +437,15 @@ class BOPAlgo_WireSplitter(BOPAlgo_Algo): def Context(self) -> IntTools_Context: ... @staticmethod def MakeWire(theLE: TopTools_ListOfShape, theW: TopoDS_Wire) -> None: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SetContext(self, theContext: IntTools_Context) -> None: ... def SetWES(self, theWES: BOPAlgo_WireEdgeSet) -> None: ... @staticmethod - def SplitBlock(theF: TopoDS_Face, theCB: BOPTools_ConnexityBlock, theContext: IntTools_Context) -> None: ... + def SplitBlock( + theF: TopoDS_Face, theCB: BOPTools_ConnexityBlock, theContext: IntTools_Context + ) -> None: ... def WES(self) -> BOPAlgo_WireEdgeSet: ... class BOPAlgo_Builder(BOPAlgo_BuilderShape): @@ -371,9 +456,24 @@ class BOPAlgo_Builder(BOPAlgo_BuilderShape): def AddArgument(self, theShape: TopoDS_Shape) -> None: ... def Arguments(self) -> TopTools_ListOfShape: ... @overload - def BuildBOP(self, theObjects: TopTools_ListOfShape, theObjState: TopAbs_State, theTools: TopTools_ListOfShape, theToolsState: TopAbs_State, theRange: Message_ProgressRange, theReport: Optional[Message_Report] = None) -> None: ... - @overload - def BuildBOP(self, theObjects: TopTools_ListOfShape, theTools: TopTools_ListOfShape, theOperation: BOPAlgo_Operation, theRange: Message_ProgressRange, theReport: Optional[Message_Report] = None) -> None: ... + def BuildBOP( + self, + theObjects: TopTools_ListOfShape, + theObjState: TopAbs_State, + theTools: TopTools_ListOfShape, + theToolsState: TopAbs_State, + theRange: Message_ProgressRange, + theReport: Optional[Message_Report] = None, + ) -> None: ... + @overload + def BuildBOP( + self, + theObjects: TopTools_ListOfShape, + theTools: TopTools_ListOfShape, + theOperation: BOPAlgo_Operation, + theRange: Message_ProgressRange, + theReport: Optional[Message_Report] = None, + ) -> None: ... def CheckInverted(self) -> bool: ... def Clear(self) -> None: ... def Context(self) -> IntTools_Context: ... @@ -383,8 +483,14 @@ class BOPAlgo_Builder(BOPAlgo_BuilderShape): def Origins(self) -> TopTools_DataMapOfShapeListOfShape: ... def PDS(self) -> BOPDS_PDS: ... def PPaveFiller(self) -> BOPAlgo_PPaveFiller: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def PerformWithFiller(self, theFiller: BOPAlgo_PaveFiller, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... + def PerformWithFiller( + self, + theFiller: BOPAlgo_PaveFiller, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def SetArguments(self, theLS: TopTools_ListOfShape) -> None: ... def SetCheckInverted(self, theCheck: bool) -> None: ... def SetGlue(self, theGlue: BOPAlgo_GlueEnum) -> None: ... @@ -398,7 +504,9 @@ class BOPAlgo_BuilderFace(BOPAlgo_BuilderArea): def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... def Face(self) -> TopoDS_Face: ... def Orientation(self) -> TopAbs_Orientation: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SetFace(self, theFace: TopoDS_Face) -> None: ... class BOPAlgo_BuilderSolid(BOPAlgo_BuilderArea): @@ -407,11 +515,15 @@ class BOPAlgo_BuilderSolid(BOPAlgo_BuilderArea): @overload def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... def GetBoxesMap(self) -> TopTools_DataMapOfShapeBox: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... class BOPAlgo_CheckerSI(BOPAlgo_PaveFiller): def __init__(self) -> None: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SetLevelOfCheck(self, theLevel: int) -> None: ... class BOPAlgo_RemoveFeatures(BOPAlgo_BuilderShape): @@ -421,7 +533,9 @@ class BOPAlgo_RemoveFeatures(BOPAlgo_BuilderShape): def Clear(self) -> None: ... def FacesToRemove(self) -> TopTools_ListOfShape: ... def InputShape(self) -> TopoDS_Shape: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SetShape(self, theShape: TopoDS_Shape) -> None: ... class BOPAlgo_CellsBuilder(BOPAlgo_Builder): @@ -429,13 +543,23 @@ class BOPAlgo_CellsBuilder(BOPAlgo_Builder): def __init__(self) -> None: ... @overload def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... - def AddAllToResult(self, theMaterial: Optional[int] = 0, theUpdate: Optional[bool] = False) -> None: ... - def AddToResult(self, theLSToTake: TopTools_ListOfShape, theLSToAvoid: TopTools_ListOfShape, theMaterial: Optional[int] = 0, theUpdate: Optional[bool] = False) -> None: ... + def AddAllToResult( + self, theMaterial: Optional[int] = 0, theUpdate: Optional[bool] = False + ) -> None: ... + def AddToResult( + self, + theLSToTake: TopTools_ListOfShape, + theLSToAvoid: TopTools_ListOfShape, + theMaterial: Optional[int] = 0, + theUpdate: Optional[bool] = False, + ) -> None: ... def Clear(self) -> None: ... def GetAllParts(self) -> TopoDS_Shape: ... def MakeContainers(self) -> None: ... def RemoveAllFromResult(self) -> None: ... - def RemoveFromResult(self, theLSToTake: TopTools_ListOfShape, theLSToAvoid: TopTools_ListOfShape) -> None: ... + def RemoveFromResult( + self, theLSToTake: TopTools_ListOfShape, theLSToAvoid: TopTools_ListOfShape + ) -> None: ... def RemoveInternalBoundaries(self) -> None: ... class BOPAlgo_MakerVolume(BOPAlgo_Builder): @@ -448,7 +572,9 @@ class BOPAlgo_MakerVolume(BOPAlgo_Builder): def Faces(self) -> TopTools_ListOfShape: ... def IsAvoidInternalShapes(self) -> bool: ... def IsIntersect(self) -> bool: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SetAvoidInternalShapes(self, theAvoidInternal: bool) -> None: ... def SetIntersect(self, bIntersect: bool) -> None: ... @@ -475,7 +601,9 @@ class BOPAlgo_BOP(BOPAlgo_ToolsProvider): def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... def Clear(self) -> None: ... def Operation(self) -> BOPAlgo_Operation: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SetOperation(self, theOperation: BOPAlgo_Operation) -> None: ... class BOPAlgo_Splitter(BOPAlgo_ToolsProvider): @@ -483,9 +611,10 @@ class BOPAlgo_Splitter(BOPAlgo_ToolsProvider): def __init__(self) -> None: ... @overload def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BOPDS.i b/src/SWIG_files/wrapper/BOPDS.i index 407c8acb7..8f22d59c5 100644 --- a/src/SWIG_files/wrapper/BOPDS.i +++ b/src/SWIG_files/wrapper/BOPDS.i @@ -137,6 +137,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BOPDS_ListIteratorOfListOfPave(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(BOPDS_ListOfPaveBlock) NCollection_List>; @@ -145,6 +151,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BOPDS_ListIteratorOfListOfPaveBlock(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(BOPDS_MapOfCommonBlock) NCollection_Map>; diff --git a/src/SWIG_files/wrapper/BOPDS.pyi b/src/SWIG_files/wrapper/BOPDS.pyi index 9c6b2f9ab..99617dacc 100644 --- a/src/SWIG_files/wrapper/BOPDS.pyi +++ b/src/SWIG_files/wrapper/BOPDS.pyi @@ -12,27 +12,45 @@ from OCC.Core.TopAbs import * from OCC.Core.gp import * # the following typedef cannot be wrapped as is -BOPDS_DataMapIteratorOfDataMapOfPaveBlockCommonBlock = NewType("BOPDS_DataMapIteratorOfDataMapOfPaveBlockCommonBlock", Any) +BOPDS_DataMapIteratorOfDataMapOfPaveBlockCommonBlock = NewType( + "BOPDS_DataMapIteratorOfDataMapOfPaveBlockCommonBlock", Any +) # the following typedef cannot be wrapped as is -BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfInteger = NewType("BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfInteger", Any) +BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfInteger = NewType( + "BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfInteger", Any +) # the following typedef cannot be wrapped as is -BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfPaveBlock = NewType("BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfPaveBlock", Any) +BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfPaveBlock = NewType( + "BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfPaveBlock", Any +) # the following typedef cannot be wrapped as is -BOPDS_DataMapIteratorOfDataMapOfShapeCoupleOfPaveBlocks = NewType("BOPDS_DataMapIteratorOfDataMapOfShapeCoupleOfPaveBlocks", Any) +BOPDS_DataMapIteratorOfDataMapOfShapeCoupleOfPaveBlocks = NewType( + "BOPDS_DataMapIteratorOfDataMapOfShapeCoupleOfPaveBlocks", Any +) # the following typedef cannot be wrapped as is -BOPDS_IndexedDataMapOfPaveBlockListOfInteger = NewType("BOPDS_IndexedDataMapOfPaveBlockListOfInteger", Any) +BOPDS_IndexedDataMapOfPaveBlockListOfInteger = NewType( + "BOPDS_IndexedDataMapOfPaveBlockListOfInteger", Any +) # the following typedef cannot be wrapped as is -BOPDS_IndexedDataMapOfPaveBlockListOfPaveBlock = NewType("BOPDS_IndexedDataMapOfPaveBlockListOfPaveBlock", Any) +BOPDS_IndexedDataMapOfPaveBlockListOfPaveBlock = NewType( + "BOPDS_IndexedDataMapOfPaveBlockListOfPaveBlock", Any +) # the following typedef cannot be wrapped as is -BOPDS_IndexedDataMapOfShapeCoupleOfPaveBlocks = NewType("BOPDS_IndexedDataMapOfShapeCoupleOfPaveBlocks", Any) +BOPDS_IndexedDataMapOfShapeCoupleOfPaveBlocks = NewType( + "BOPDS_IndexedDataMapOfShapeCoupleOfPaveBlocks", Any +) # the following typedef cannot be wrapped as is BOPDS_IndexedMapOfPaveBlock = NewType("BOPDS_IndexedMapOfPaveBlock", Any) # the following typedef cannot be wrapped as is BOPDS_ListIteratorOfListOfPave = NewType("BOPDS_ListIteratorOfListOfPave", Any) # the following typedef cannot be wrapped as is -BOPDS_ListIteratorOfListOfPaveBlock = NewType("BOPDS_ListIteratorOfListOfPaveBlock", Any) +BOPDS_ListIteratorOfListOfPaveBlock = NewType( + "BOPDS_ListIteratorOfListOfPaveBlock", Any +) # the following typedef cannot be wrapped as is -BOPDS_MapIteratorOfMapOfCommonBlock = NewType("BOPDS_MapIteratorOfMapOfCommonBlock", Any) +BOPDS_MapIteratorOfMapOfCommonBlock = NewType( + "BOPDS_MapIteratorOfMapOfCommonBlock", Any +) # the following typedef cannot be wrapped as is BOPDS_MapIteratorOfMapOfPair = NewType("BOPDS_MapIteratorOfMapOfPair", Any) # the following typedef cannot be wrapped as is @@ -88,32 +106,32 @@ BOPDS_VectorOfShapeInfo = NewType("BOPDS_VectorOfShapeInfo", Any) BOPDS_VectorOfVectorOfPair = NewType("BOPDS_VectorOfVectorOfPair", Any) class BOPDS_ListOfPave: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: BOPDS_Pave) -> BOPDS_Pave: ... + def Assign(self, theItem: BOPDS_ListOfPave) -> BOPDS_ListOfPave: ... def Clear(self) -> None: ... def First(self) -> BOPDS_Pave: ... def Last(self) -> BOPDS_Pave: ... - def Append(self, theItem: BOPDS_Pave) -> BOPDS_Pave: ... def Prepend(self, theItem: BOPDS_Pave) -> BOPDS_Pave: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BOPDS_Pave: ... - def SetValue(self, theIndex: int, theValue: BOPDS_Pave) -> None: ... - -class BOPDS_ListOfPaveBlock: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> BOPDS_Pave: ... + +class BOPDS_ListOfPaveBlock: + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: BOPDS_ListOfPaveBlock) -> BOPDS_ListOfPaveBlock: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class BOPDS_VectorOfPave: @overload @@ -180,7 +198,9 @@ class BOPDS_CoupleOfPaveBlocks: def SetIndexInterf(self, theIndex: int) -> None: ... def SetPaveBlock1(self, thePB: BOPDS_PaveBlock) -> None: ... def SetPaveBlock2(self, thePB: BOPDS_PaveBlock) -> None: ... - def SetPaveBlocks(self, thePB1: BOPDS_PaveBlock, thePB2: BOPDS_PaveBlock) -> None: ... + def SetPaveBlocks( + self, thePB1: BOPDS_PaveBlock, thePB2: BOPDS_PaveBlock + ) -> None: ... def SetTolerance(self, theTol: float) -> None: ... def Tolerance(self) -> float: ... @@ -220,7 +240,9 @@ class BOPDS_DS: @overload def Append(self, theS: TopoDS_Shape) -> int: ... def Arguments(self) -> TopTools_ListOfShape: ... - def BuildBndBoxSolid(self, theIndex: int, theBox: Bnd_Box, theCheckInverted: Optional[bool] = True) -> None: ... + def BuildBndBoxSolid( + self, theIndex: int, theBox: Bnd_Box, theCheckInverted: Optional[bool] = True + ) -> None: ... def ChangeFaceInfo(self, theIndex: int) -> BOPDS_FaceInfo: ... def ChangePaveBlocks(self, theIndex: int) -> BOPDS_ListOfPaveBlock: ... def ChangePaveBlocksPool(self) -> BOPDS_VectorOfListOfPaveBlock: ... @@ -229,15 +251,27 @@ class BOPDS_DS: def CommonBlock(self, thePB: BOPDS_PaveBlock) -> BOPDS_CommonBlock: ... def Dump(self) -> None: ... def FaceInfo(self, theIndex: int) -> BOPDS_FaceInfo: ... - def FaceInfoIn(self, theIndex: int, theMPB: BOPDS_IndexedMapOfPaveBlock, theMVP: TColStd_MapOfInteger) -> None: ... - def FaceInfoOn(self, theIndex: int, theMPB: BOPDS_IndexedMapOfPaveBlock, theMVP: TColStd_MapOfInteger) -> None: ... + def FaceInfoIn( + self, + theIndex: int, + theMPB: BOPDS_IndexedMapOfPaveBlock, + theMVP: TColStd_MapOfInteger, + ) -> None: ... + def FaceInfoOn( + self, + theIndex: int, + theMPB: BOPDS_IndexedMapOfPaveBlock, + theMVP: TColStd_MapOfInteger, + ) -> None: ... def FaceInfoPool(self) -> BOPDS_VectorOfFaceInfo: ... def HasFaceInfo(self, theIndex: int) -> bool: ... @overload def HasInterf(self, theI: int) -> bool: ... @overload def HasInterf(self, theI1: int, theI2: int) -> bool: ... - def HasInterfShapeSubShapes(self, theI1: int, theI2: int, theFlag: Optional[bool] = True) -> bool: ... + def HasInterfShapeSubShapes( + self, theI1: int, theI2: int, theFlag: Optional[bool] = True + ) -> bool: ... def HasInterfSubShapes(self, theI1: int, theI2: int) -> bool: ... def HasPaveBlocks(self, theIndex: int) -> bool: ... def HasShapeSD(self, theIndex: int) -> Tuple[bool, int]: ... @@ -275,12 +309,28 @@ class BOPDS_DS: def RefineFaceInfoOn(self) -> None: ... def ReleasePaveBlocks(self) -> None: ... def SetArguments(self, theLS: TopTools_ListOfShape) -> None: ... - def SetCommonBlock(self, thePB: BOPDS_PaveBlock, theCB: BOPDS_CommonBlock) -> None: ... + def SetCommonBlock( + self, thePB: BOPDS_PaveBlock, theCB: BOPDS_CommonBlock + ) -> None: ... def Shape(self, theIndex: int) -> TopoDS_Shape: ... def ShapeInfo(self, theIndex: int) -> BOPDS_ShapeInfo: ... def ShapesSD(self) -> TColStd_DataMapOfIntegerInteger: ... - def SharedEdges(self, theF1: int, theF2: int, theLI: TColStd_ListOfInteger, theAllocator: NCollection_BaseAllocator) -> None: ... - def SubShapesOnIn(self, theNF1: int, theNF2: int, theMVOnIn: TColStd_MapOfInteger, theMVCommon: TColStd_MapOfInteger, thePBOnIn: BOPDS_IndexedMapOfPaveBlock, theCommonPB: BOPDS_MapOfPaveBlock) -> None: ... + def SharedEdges( + self, + theF1: int, + theF2: int, + theLI: TColStd_ListOfInteger, + theAllocator: NCollection_BaseAllocator, + ) -> None: ... + def SubShapesOnIn( + self, + theNF1: int, + theNF2: int, + theMVOnIn: TColStd_MapOfInteger, + theMVCommon: TColStd_MapOfInteger, + thePBOnIn: BOPDS_IndexedMapOfPaveBlock, + theCommonPB: BOPDS_MapOfPaveBlock, + ) -> None: ... def UpdateCommonBlock(self, theCB: BOPDS_CommonBlock, theFuzz: float) -> None: ... def UpdateCommonBlockWithSDVertices(self, theCB: BOPDS_CommonBlock) -> None: ... @overload @@ -336,13 +386,20 @@ class BOPDS_Iterator: def BlockLength(self) -> int: ... def DS(self) -> BOPDS_DS: ... def ExpectedLength(self) -> int: ... - def Initialize(self, theType1: TopAbs_ShapeEnum, theType2: TopAbs_ShapeEnum) -> None: ... + def Initialize( + self, theType1: TopAbs_ShapeEnum, theType2: TopAbs_ShapeEnum + ) -> None: ... def IntersectExt(self, theIndicies: TColStd_MapOfInteger) -> None: ... def More(self) -> bool: ... @staticmethod def NbExtInterfs() -> int: ... def Next(self) -> None: ... - def Prepare(self, theCtx: Optional[IntTools_Context] = IntTools_Context(), theCheckOBB: Optional[bool] = False, theFuzzyValue: Optional[float] = Precision.Confusion()) -> None: ... + def Prepare( + self, + theCtx: Optional[IntTools_Context] = IntTools_Context(), + theCheckOBB: Optional[bool] = False, + theFuzzyValue: Optional[float] = Precision.Confusion(), + ) -> None: ... def RunParallel(self) -> bool: ... def SetDS(self, pDS: BOPDS_PDS) -> None: ... def SetRunParallel(self, theFlag: bool) -> None: ... @@ -399,9 +456,13 @@ class BOPDS_PaveBlock(Standard_Transient): def SetOriginalEdge(self, theEdge: int) -> None: ... def SetPave1(self, thePave: BOPDS_Pave) -> None: ... def SetPave2(self, thePave: BOPDS_Pave) -> None: ... - def SetShrunkData(self, theTS1: float, theTS2: float, theBox: Bnd_Box, theIsSplittable: bool) -> None: ... + def SetShrunkData( + self, theTS1: float, theTS2: float, theBox: Bnd_Box, theIsSplittable: bool + ) -> None: ... def ShrunkData(self, theBox: Bnd_Box) -> Tuple[float, float, bool]: ... - def Update(self, theLPB: BOPDS_ListOfPaveBlock, theFlag: Optional[bool] = True) -> None: ... + def Update( + self, theLPB: BOPDS_ListOfPaveBlock, theFlag: Optional[bool] = True + ) -> None: ... class BOPDS_Point: def __init__(self) -> None: ... @@ -551,10 +612,9 @@ class BOPDS_IteratorSI(BOPDS_Iterator): def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... def UpdateByLevelOfCheck(self, theLevel: int) -> None: ... -#classnotwrapped +# classnotwrapped class BOPDS_Interf: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BOPTools.i b/src/SWIG_files/wrapper/BOPTools.i index dccc2ac22..41095ffd7 100644 --- a/src/SWIG_files/wrapper/BOPTools.i +++ b/src/SWIG_files/wrapper/BOPTools.i @@ -108,6 +108,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BOPTools_ListIteratorOfListOfConnexityBlock(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(BOPTools_ListOfCoupleOfShape) NCollection_List; @@ -116,6 +122,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BOPTools_ListIteratorOfListOfCoupleOfShape(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(BOPTools_MapOfSet) NCollection_Map; diff --git a/src/SWIG_files/wrapper/BOPTools.pyi b/src/SWIG_files/wrapper/BOPTools.pyi index d092d3e96..97175aadc 100644 --- a/src/SWIG_files/wrapper/BOPTools.pyi +++ b/src/SWIG_files/wrapper/BOPTools.pyi @@ -28,83 +28,151 @@ BOPTools_BoxTreeSelector = NewType("BOPTools_BoxTreeSelector", Any) # the following typedef cannot be wrapped as is BOPTools_IndexedDataMapOfSetShape = NewType("BOPTools_IndexedDataMapOfSetShape", Any) # the following typedef cannot be wrapped as is -BOPTools_ListIteratorOfListOfConnexityBlock = NewType("BOPTools_ListIteratorOfListOfConnexityBlock", Any) +BOPTools_ListIteratorOfListOfConnexityBlock = NewType( + "BOPTools_ListIteratorOfListOfConnexityBlock", Any +) # the following typedef cannot be wrapped as is -BOPTools_ListIteratorOfListOfCoupleOfShape = NewType("BOPTools_ListIteratorOfListOfCoupleOfShape", Any) +BOPTools_ListIteratorOfListOfCoupleOfShape = NewType( + "BOPTools_ListIteratorOfListOfCoupleOfShape", Any +) # the following typedef cannot be wrapped as is BOPTools_MapIteratorOfMapOfSet = NewType("BOPTools_MapIteratorOfMapOfSet", Any) # the following typedef cannot be wrapped as is BOPTools_MapOfSet = NewType("BOPTools_MapOfSet", Any) class BOPTools_ListOfConnexityBlock: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: BOPTools_ConnexityBlock) -> BOPTools_ConnexityBlock: ... + def Assign( + self, theItem: BOPTools_ListOfConnexityBlock + ) -> BOPTools_ListOfConnexityBlock: ... def Clear(self) -> None: ... def First(self) -> BOPTools_ConnexityBlock: ... def Last(self) -> BOPTools_ConnexityBlock: ... - def Append(self, theItem: BOPTools_ConnexityBlock) -> BOPTools_ConnexityBlock: ... def Prepend(self, theItem: BOPTools_ConnexityBlock) -> BOPTools_ConnexityBlock: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BOPTools_ConnexityBlock: ... - def SetValue(self, theIndex: int, theValue: BOPTools_ConnexityBlock) -> None: ... - -class BOPTools_ListOfCoupleOfShape: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> BOPTools_ConnexityBlock: ... + +class BOPTools_ListOfCoupleOfShape: + def Append(self, theItem: BOPTools_CoupleOfShape) -> BOPTools_CoupleOfShape: ... + def Assign( + self, theItem: BOPTools_ListOfCoupleOfShape + ) -> BOPTools_ListOfCoupleOfShape: ... def Clear(self) -> None: ... def First(self) -> BOPTools_CoupleOfShape: ... def Last(self) -> BOPTools_CoupleOfShape: ... - def Append(self, theItem: BOPTools_CoupleOfShape) -> BOPTools_CoupleOfShape: ... def Prepend(self, theItem: BOPTools_CoupleOfShape) -> BOPTools_CoupleOfShape: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BOPTools_CoupleOfShape: ... - def SetValue(self, theIndex: int, theValue: BOPTools_CoupleOfShape) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> BOPTools_CoupleOfShape: ... class BOPTools_AlgoTools: @staticmethod - def AreFacesSameDomain(theF1: TopoDS_Face, theF2: TopoDS_Face, theContext: IntTools_Context, theFuzz: Optional[float] = Precision.Confusion()) -> bool: ... + def AreFacesSameDomain( + theF1: TopoDS_Face, + theF2: TopoDS_Face, + theContext: IntTools_Context, + theFuzz: Optional[float] = Precision.Confusion(), + ) -> bool: ... @overload @staticmethod - def ComputeState(thePoint: gp_Pnt, theSolid: TopoDS_Solid, theTol: float, theContext: IntTools_Context) -> TopAbs_State: ... + def ComputeState( + thePoint: gp_Pnt, + theSolid: TopoDS_Solid, + theTol: float, + theContext: IntTools_Context, + ) -> TopAbs_State: ... @overload @staticmethod - def ComputeState(theVertex: TopoDS_Vertex, theSolid: TopoDS_Solid, theTol: float, theContext: IntTools_Context) -> TopAbs_State: ... + def ComputeState( + theVertex: TopoDS_Vertex, + theSolid: TopoDS_Solid, + theTol: float, + theContext: IntTools_Context, + ) -> TopAbs_State: ... @overload @staticmethod - def ComputeState(theEdge: TopoDS_Edge, theSolid: TopoDS_Solid, theTol: float, theContext: IntTools_Context) -> TopAbs_State: ... + def ComputeState( + theEdge: TopoDS_Edge, + theSolid: TopoDS_Solid, + theTol: float, + theContext: IntTools_Context, + ) -> TopAbs_State: ... @overload @staticmethod - def ComputeState(theFace: TopoDS_Face, theSolid: TopoDS_Solid, theTol: float, theBounds: TopTools_IndexedMapOfShape, theContext: IntTools_Context) -> TopAbs_State: ... + def ComputeState( + theFace: TopoDS_Face, + theSolid: TopoDS_Solid, + theTol: float, + theBounds: TopTools_IndexedMapOfShape, + theContext: IntTools_Context, + ) -> TopAbs_State: ... @staticmethod - def ComputeStateByOnePoint(theShape: TopoDS_Shape, theSolid: TopoDS_Solid, theTol: float, theContext: IntTools_Context) -> TopAbs_State: ... + def ComputeStateByOnePoint( + theShape: TopoDS_Shape, + theSolid: TopoDS_Solid, + theTol: float, + theContext: IntTools_Context, + ) -> TopAbs_State: ... @staticmethod - def ComputeTolerance(theFace: TopoDS_Face, theEdge: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def ComputeTolerance( + theFace: TopoDS_Face, theEdge: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... @overload @staticmethod def ComputeVV(theV: TopoDS_Vertex, theP: gp_Pnt, theTolP: float) -> int: ... @overload @staticmethod - def ComputeVV(theV1: TopoDS_Vertex, theV2: TopoDS_Vertex, theFuzz: Optional[float] = Precision.Confusion()) -> int: ... + def ComputeVV( + theV1: TopoDS_Vertex, + theV2: TopoDS_Vertex, + theFuzz: Optional[float] = Precision.Confusion(), + ) -> int: ... @staticmethod def CopyEdge(theEdge: TopoDS_Edge) -> TopoDS_Edge: ... @staticmethod - def CorrectCurveOnSurface(theS: TopoDS_Shape, theMapToAvoid: TopTools_IndexedMapOfShape, theTolMax: Optional[float] = 0.0001, theRunParallel: Optional[bool] = False) -> None: ... + def CorrectCurveOnSurface( + theS: TopoDS_Shape, + theMapToAvoid: TopTools_IndexedMapOfShape, + theTolMax: Optional[float] = 0.0001, + theRunParallel: Optional[bool] = False, + ) -> None: ... @staticmethod - def CorrectPointOnCurve(theS: TopoDS_Shape, theMapToAvoid: TopTools_IndexedMapOfShape, theTolMax: Optional[float] = 0.0001, theRunParallel: Optional[bool] = False) -> None: ... + def CorrectPointOnCurve( + theS: TopoDS_Shape, + theMapToAvoid: TopTools_IndexedMapOfShape, + theTolMax: Optional[float] = 0.0001, + theRunParallel: Optional[bool] = False, + ) -> None: ... @overload @staticmethod - def CorrectRange(aE1: TopoDS_Edge, aE2: TopoDS_Edge, aSR: IntTools_Range, aNewSR: IntTools_Range) -> None: ... + def CorrectRange( + aE1: TopoDS_Edge, aE2: TopoDS_Edge, aSR: IntTools_Range, aNewSR: IntTools_Range + ) -> None: ... @overload @staticmethod - def CorrectRange(aE: TopoDS_Edge, aF: TopoDS_Face, aSR: IntTools_Range, aNewSR: IntTools_Range) -> None: ... + def CorrectRange( + aE: TopoDS_Edge, aF: TopoDS_Face, aSR: IntTools_Range, aNewSR: IntTools_Range + ) -> None: ... @staticmethod - def CorrectShapeTolerances(theS: TopoDS_Shape, theMapToAvoid: TopTools_IndexedMapOfShape, theRunParallel: Optional[bool] = False) -> None: ... + def CorrectShapeTolerances( + theS: TopoDS_Shape, + theMapToAvoid: TopTools_IndexedMapOfShape, + theRunParallel: Optional[bool] = False, + ) -> None: ... @staticmethod - def CorrectTolerances(theS: TopoDS_Shape, theMapToAvoid: TopTools_IndexedMapOfShape, theTolMax: Optional[float] = 0.0001, theRunParallel: Optional[bool] = False) -> None: ... + def CorrectTolerances( + theS: TopoDS_Shape, + theMapToAvoid: TopTools_IndexedMapOfShape, + theTolMax: Optional[float] = 0.0001, + theRunParallel: Optional[bool] = False, + ) -> None: ... @staticmethod def DTolerance() -> float: ... @staticmethod @@ -112,74 +180,191 @@ class BOPTools_AlgoTools: @staticmethod def Dimensions(theS: TopoDS_Shape) -> Tuple[int, int]: ... @staticmethod - def GetEdgeOff(theEdge: TopoDS_Edge, theFace: TopoDS_Face, theEdgeOff: TopoDS_Edge) -> bool: ... - @staticmethod - def GetEdgeOnFace(theEdge: TopoDS_Edge, theFace: TopoDS_Face, theEdgeOnF: TopoDS_Edge) -> bool: ... - @staticmethod - def GetFaceOff(theEdge: TopoDS_Edge, theFace: TopoDS_Face, theLCEF: BOPTools_ListOfCoupleOfShape, theFaceOff: TopoDS_Face, theContext: IntTools_Context) -> bool: ... - @staticmethod - def IsBlockInOnFace(aShR: IntTools_Range, aF: TopoDS_Face, aE: TopoDS_Edge, aContext: IntTools_Context) -> bool: ... + def GetEdgeOff( + theEdge: TopoDS_Edge, theFace: TopoDS_Face, theEdgeOff: TopoDS_Edge + ) -> bool: ... + @staticmethod + def GetEdgeOnFace( + theEdge: TopoDS_Edge, theFace: TopoDS_Face, theEdgeOnF: TopoDS_Edge + ) -> bool: ... + @staticmethod + def GetFaceOff( + theEdge: TopoDS_Edge, + theFace: TopoDS_Face, + theLCEF: BOPTools_ListOfCoupleOfShape, + theFaceOff: TopoDS_Face, + theContext: IntTools_Context, + ) -> bool: ... + @staticmethod + def IsBlockInOnFace( + aShR: IntTools_Range, + aF: TopoDS_Face, + aE: TopoDS_Edge, + aContext: IntTools_Context, + ) -> bool: ... @staticmethod def IsHole(theW: TopoDS_Shape, theF: TopoDS_Shape) -> bool: ... @overload @staticmethod - def IsInternalFace(theFace: TopoDS_Face, theEdge: TopoDS_Edge, theFace1: TopoDS_Face, theFace2: TopoDS_Face, theContext: IntTools_Context) -> int: ... + def IsInternalFace( + theFace: TopoDS_Face, + theEdge: TopoDS_Edge, + theFace1: TopoDS_Face, + theFace2: TopoDS_Face, + theContext: IntTools_Context, + ) -> int: ... @overload @staticmethod - def IsInternalFace(theFace: TopoDS_Face, theEdge: TopoDS_Edge, theLF: TopTools_ListOfShape, theContext: IntTools_Context) -> int: ... + def IsInternalFace( + theFace: TopoDS_Face, + theEdge: TopoDS_Edge, + theLF: TopTools_ListOfShape, + theContext: IntTools_Context, + ) -> int: ... @overload @staticmethod - def IsInternalFace(theFace: TopoDS_Face, theSolid: TopoDS_Solid, theMEF: TopTools_IndexedDataMapOfShapeListOfShape, theTol: float, theContext: IntTools_Context) -> bool: ... + def IsInternalFace( + theFace: TopoDS_Face, + theSolid: TopoDS_Solid, + theMEF: TopTools_IndexedDataMapOfShapeListOfShape, + theTol: float, + theContext: IntTools_Context, + ) -> bool: ... @staticmethod def IsInvertedSolid(theSolid: TopoDS_Solid) -> bool: ... @staticmethod - def IsMicroEdge(theEdge: TopoDS_Edge, theContext: IntTools_Context, theCheckSplittable: Optional[bool] = True) -> bool: ... + def IsMicroEdge( + theEdge: TopoDS_Edge, + theContext: IntTools_Context, + theCheckSplittable: Optional[bool] = True, + ) -> bool: ... @staticmethod def IsOpenShell(theShell: TopoDS_Shell) -> bool: ... @overload @staticmethod - def IsSplitToReverse(theSplit: TopoDS_Shape, theShape: TopoDS_Shape, theContext: IntTools_Context, theError: Optional[int] = None) -> bool: ... - @overload - @staticmethod - def IsSplitToReverse(theSplit: TopoDS_Face, theShape: TopoDS_Face, theContext: IntTools_Context, theError: Optional[int] = None) -> bool: ... - @overload - @staticmethod - def IsSplitToReverse(theSplit: TopoDS_Edge, theShape: TopoDS_Edge, theContext: IntTools_Context, theError: Optional[int] = None) -> bool: ... - @staticmethod - def IsSplitToReverseWithWarn(theSplit: TopoDS_Shape, theShape: TopoDS_Shape, theContext: IntTools_Context, theReport: Optional[Message_Report] = None) -> bool: ... - @staticmethod - def MakeConnexityBlock(theLS: TopTools_ListOfShape, theMapAvoid: TopTools_IndexedMapOfShape, theLSCB: TopTools_ListOfShape, theAllocator: NCollection_BaseAllocator) -> None: ... - @overload - @staticmethod - def MakeConnexityBlocks(theS: TopoDS_Shape, theConnectionType: TopAbs_ShapeEnum, theElementType: TopAbs_ShapeEnum, theLCB: TopTools_ListOfShape) -> None: ... - @overload - @staticmethod - def MakeConnexityBlocks(theS: TopoDS_Shape, theConnectionType: TopAbs_ShapeEnum, theElementType: TopAbs_ShapeEnum, theLCB: TopTools_ListOfListOfShape, theConnectionMap: TopTools_IndexedDataMapOfShapeListOfShape) -> None: ... - @overload - @staticmethod - def MakeConnexityBlocks(theLS: TopTools_ListOfShape, theConnectionType: TopAbs_ShapeEnum, theElementType: TopAbs_ShapeEnum, theLCB: BOPTools_ListOfConnexityBlock) -> None: ... + def IsSplitToReverse( + theSplit: TopoDS_Shape, + theShape: TopoDS_Shape, + theContext: IntTools_Context, + theError: Optional[int] = None, + ) -> bool: ... + @overload + @staticmethod + def IsSplitToReverse( + theSplit: TopoDS_Face, + theShape: TopoDS_Face, + theContext: IntTools_Context, + theError: Optional[int] = None, + ) -> bool: ... + @overload + @staticmethod + def IsSplitToReverse( + theSplit: TopoDS_Edge, + theShape: TopoDS_Edge, + theContext: IntTools_Context, + theError: Optional[int] = None, + ) -> bool: ... + @staticmethod + def IsSplitToReverseWithWarn( + theSplit: TopoDS_Shape, + theShape: TopoDS_Shape, + theContext: IntTools_Context, + theReport: Optional[Message_Report] = None, + ) -> bool: ... + @staticmethod + def MakeConnexityBlock( + theLS: TopTools_ListOfShape, + theMapAvoid: TopTools_IndexedMapOfShape, + theLSCB: TopTools_ListOfShape, + theAllocator: NCollection_BaseAllocator, + ) -> None: ... + @overload + @staticmethod + def MakeConnexityBlocks( + theS: TopoDS_Shape, + theConnectionType: TopAbs_ShapeEnum, + theElementType: TopAbs_ShapeEnum, + theLCB: TopTools_ListOfShape, + ) -> None: ... + @overload + @staticmethod + def MakeConnexityBlocks( + theS: TopoDS_Shape, + theConnectionType: TopAbs_ShapeEnum, + theElementType: TopAbs_ShapeEnum, + theLCB: TopTools_ListOfListOfShape, + theConnectionMap: TopTools_IndexedDataMapOfShapeListOfShape, + ) -> None: ... + @overload + @staticmethod + def MakeConnexityBlocks( + theLS: TopTools_ListOfShape, + theConnectionType: TopAbs_ShapeEnum, + theElementType: TopAbs_ShapeEnum, + theLCB: BOPTools_ListOfConnexityBlock, + ) -> None: ... @staticmethod def MakeContainer(theType: TopAbs_ShapeEnum, theShape: TopoDS_Shape) -> None: ... @staticmethod - def MakeEdge(theCurve: IntTools_Curve, theV1: TopoDS_Vertex, theT1: float, theV2: TopoDS_Vertex, theT2: float, theTolR3D: float, theE: TopoDS_Edge) -> None: ... + def MakeEdge( + theCurve: IntTools_Curve, + theV1: TopoDS_Vertex, + theT1: float, + theV2: TopoDS_Vertex, + theT2: float, + theTolR3D: float, + theE: TopoDS_Edge, + ) -> None: ... @overload @staticmethod def MakeNewVertex(aP1: gp_Pnt, aTol: float, aNewVertex: TopoDS_Vertex) -> None: ... @overload @staticmethod - def MakeNewVertex(aV1: TopoDS_Vertex, aV2: TopoDS_Vertex, aNewVertex: TopoDS_Vertex) -> None: ... - @overload - @staticmethod - def MakeNewVertex(aE1: TopoDS_Edge, aP1: float, aE2: TopoDS_Edge, aP2: float, aNewVertex: TopoDS_Vertex) -> None: ... - @overload - @staticmethod - def MakeNewVertex(aE1: TopoDS_Edge, aP1: float, aF2: TopoDS_Face, aNewVertex: TopoDS_Vertex) -> None: ... - @staticmethod - def MakePCurve(theE: TopoDS_Edge, theF1: TopoDS_Face, theF2: TopoDS_Face, theCurve: IntTools_Curve, thePC1: bool, thePC2: bool, theContext: Optional[IntTools_Context] = IntTools_Context()) -> None: ... - @staticmethod - def MakeSectEdge(aIC: IntTools_Curve, aV1: TopoDS_Vertex, aP1: float, aV2: TopoDS_Vertex, aP2: float, aNewEdge: TopoDS_Edge) -> None: ... - @staticmethod - def MakeSplitEdge(aE1: TopoDS_Edge, aV1: TopoDS_Vertex, aP1: float, aV2: TopoDS_Vertex, aP2: float, aNewEdge: TopoDS_Edge) -> None: ... + def MakeNewVertex( + aV1: TopoDS_Vertex, aV2: TopoDS_Vertex, aNewVertex: TopoDS_Vertex + ) -> None: ... + @overload + @staticmethod + def MakeNewVertex( + aE1: TopoDS_Edge, + aP1: float, + aE2: TopoDS_Edge, + aP2: float, + aNewVertex: TopoDS_Vertex, + ) -> None: ... + @overload + @staticmethod + def MakeNewVertex( + aE1: TopoDS_Edge, aP1: float, aF2: TopoDS_Face, aNewVertex: TopoDS_Vertex + ) -> None: ... + @staticmethod + def MakePCurve( + theE: TopoDS_Edge, + theF1: TopoDS_Face, + theF2: TopoDS_Face, + theCurve: IntTools_Curve, + thePC1: bool, + thePC2: bool, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> None: ... + @staticmethod + def MakeSectEdge( + aIC: IntTools_Curve, + aV1: TopoDS_Vertex, + aP1: float, + aV2: TopoDS_Vertex, + aP2: float, + aNewEdge: TopoDS_Edge, + ) -> None: ... + @staticmethod + def MakeSplitEdge( + aE1: TopoDS_Edge, + aV1: TopoDS_Vertex, + aP1: float, + aV2: TopoDS_Vertex, + aP2: float, + aNewEdge: TopoDS_Edge, + ) -> None: ... @staticmethod def MakeVertex(theLV: TopTools_ListOfShape, theV: TopoDS_Vertex) -> None: ... @staticmethod @@ -189,9 +374,15 @@ class BOPTools_AlgoTools: @staticmethod def PointOnEdge(aEdge: TopoDS_Edge, aPrm: float, aP: gp_Pnt) -> None: ... @staticmethod - def Sense(theF1: TopoDS_Face, theF2: TopoDS_Face, theContext: IntTools_Context) -> int: ... + def Sense( + theF1: TopoDS_Face, theF2: TopoDS_Face, theContext: IntTools_Context + ) -> int: ... @staticmethod - def TreatCompound(theS: TopoDS_Shape, theList: TopTools_ListOfShape, theMap: Optional[TopTools_MapOfShape] = None) -> None: ... + def TreatCompound( + theS: TopoDS_Shape, + theList: TopTools_ListOfShape, + theMap: Optional[TopTools_MapOfShape] = None, + ) -> None: ... @overload @staticmethod def UpdateVertex(aIC: IntTools_Curve, aT: float, aV: TopoDS_Vertex) -> None: ... @@ -205,27 +396,64 @@ class BOPTools_AlgoTools: class BOPTools_AlgoTools2D: @overload @staticmethod - def AdjustPCurveOnFace(theF: TopoDS_Face, theC3D: Geom_Curve, theC2D: Geom2d_Curve, theC2DA: Geom2d_Curve, theContext: Optional[IntTools_Context] = IntTools_Context()) -> None: ... - @overload - @staticmethod - def AdjustPCurveOnFace(theF: TopoDS_Face, theFirst: float, theLast: float, theC2D: Geom2d_Curve, theC2DA: Geom2d_Curve, theContext: Optional[IntTools_Context] = IntTools_Context()) -> None: ... - @staticmethod - def AdjustPCurveOnSurf(aF: BRepAdaptor_Surface, aT1: float, aT2: float, aC2D: Geom2d_Curve, aC2DA: Geom2d_Curve) -> None: ... - @staticmethod - def AttachExistingPCurve(aEold: TopoDS_Edge, aEnew: TopoDS_Edge, aF: TopoDS_Face, aCtx: IntTools_Context) -> int: ... - @staticmethod - def BuildPCurveForEdgeOnFace(aE: TopoDS_Edge, aF: TopoDS_Face, theContext: Optional[IntTools_Context] = IntTools_Context()) -> None: ... - @overload - @staticmethod - def CurveOnSurface(aE: TopoDS_Edge, aF: TopoDS_Face, aC: Geom2d_Curve, theContext: Optional[IntTools_Context] = IntTools_Context()) -> float: ... - @overload - @staticmethod - def CurveOnSurface(aE: TopoDS_Edge, aF: TopoDS_Face, aC: Geom2d_Curve, theContext: Optional[IntTools_Context] = IntTools_Context()) -> Tuple[float, float, float]: ... + def AdjustPCurveOnFace( + theF: TopoDS_Face, + theC3D: Geom_Curve, + theC2D: Geom2d_Curve, + theC2DA: Geom2d_Curve, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> None: ... + @overload + @staticmethod + def AdjustPCurveOnFace( + theF: TopoDS_Face, + theFirst: float, + theLast: float, + theC2D: Geom2d_Curve, + theC2DA: Geom2d_Curve, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> None: ... + @staticmethod + def AdjustPCurveOnSurf( + aF: BRepAdaptor_Surface, + aT1: float, + aT2: float, + aC2D: Geom2d_Curve, + aC2DA: Geom2d_Curve, + ) -> None: ... + @staticmethod + def AttachExistingPCurve( + aEold: TopoDS_Edge, aEnew: TopoDS_Edge, aF: TopoDS_Face, aCtx: IntTools_Context + ) -> int: ... + @staticmethod + def BuildPCurveForEdgeOnFace( + aE: TopoDS_Edge, + aF: TopoDS_Face, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> None: ... + @overload + @staticmethod + def CurveOnSurface( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aC: Geom2d_Curve, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> float: ... + @overload + @staticmethod + def CurveOnSurface( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aC: Geom2d_Curve, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> Tuple[float, float, float]: ... @staticmethod def EdgeTangent(anE: TopoDS_Edge, aT: float, Tau: gp_Vec) -> bool: ... @overload @staticmethod - def HasCurveOnSurface(aE: TopoDS_Edge, aF: TopoDS_Face, aC: Geom2d_Curve) -> Tuple[bool, float, float, float]: ... + def HasCurveOnSurface( + aE: TopoDS_Edge, aF: TopoDS_Face, aC: Geom2d_Curve + ) -> Tuple[bool, float, float, float]: ... @overload @staticmethod def HasCurveOnSurface(aE: TopoDS_Edge, aF: TopoDS_Face) -> bool: ... @@ -238,15 +466,37 @@ class BOPTools_AlgoTools2D: @staticmethod def IsEdgeIsoline(theE: TopoDS_Edge, theF: TopoDS_Face) -> Tuple[bool, bool]: ... @staticmethod - def Make2D(aE: TopoDS_Edge, aF: TopoDS_Face, aC: Geom2d_Curve, theContext: Optional[IntTools_Context] = IntTools_Context()) -> Tuple[float, float, float]: ... - @overload - @staticmethod - def MakePCurveOnFace(aF: TopoDS_Face, C3D: Geom_Curve, aC: Geom2d_Curve, theContext: Optional[IntTools_Context] = IntTools_Context()) -> float: ... - @overload - @staticmethod - def MakePCurveOnFace(aF: TopoDS_Face, C3D: Geom_Curve, aT1: float, aT2: float, aC: Geom2d_Curve, theContext: Optional[IntTools_Context] = IntTools_Context()) -> float: ... - @staticmethod - def PointOnSurface(aE: TopoDS_Edge, aF: TopoDS_Face, aT: float, theContext: Optional[IntTools_Context] = IntTools_Context()) -> Tuple[float, float]: ... + def Make2D( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aC: Geom2d_Curve, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> Tuple[float, float, float]: ... + @overload + @staticmethod + def MakePCurveOnFace( + aF: TopoDS_Face, + C3D: Geom_Curve, + aC: Geom2d_Curve, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> float: ... + @overload + @staticmethod + def MakePCurveOnFace( + aF: TopoDS_Face, + C3D: Geom_Curve, + aT1: float, + aT2: float, + aC: Geom2d_Curve, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> float: ... + @staticmethod + def PointOnSurface( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aT: float, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> Tuple[float, float]: ... class BOPTools_AlgoTools3D: @overload @@ -254,51 +504,135 @@ class BOPTools_AlgoTools3D: def DoSplitSEAMOnFace(theESplit: TopoDS_Edge, theFace: TopoDS_Face) -> bool: ... @overload @staticmethod - def DoSplitSEAMOnFace(theEOrigin: TopoDS_Edge, theESplit: TopoDS_Edge, theFace: TopoDS_Face) -> bool: ... + def DoSplitSEAMOnFace( + theEOrigin: TopoDS_Edge, theESplit: TopoDS_Edge, theFace: TopoDS_Face + ) -> bool: ... @overload @staticmethod - def GetApproxNormalToFaceOnEdge(aE: TopoDS_Edge, aF: TopoDS_Face, aT: float, aPx: gp_Pnt, aD: gp_Dir, theContext: IntTools_Context) -> bool: ... + def GetApproxNormalToFaceOnEdge( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aT: float, + aPx: gp_Pnt, + aD: gp_Dir, + theContext: IntTools_Context, + ) -> bool: ... @overload @staticmethod - def GetApproxNormalToFaceOnEdge(theE: TopoDS_Edge, theF: TopoDS_Face, aT: float, aP: gp_Pnt, aDNF: gp_Dir, aDt2D: float) -> bool: ... + def GetApproxNormalToFaceOnEdge( + theE: TopoDS_Edge, + theF: TopoDS_Face, + aT: float, + aP: gp_Pnt, + aDNF: gp_Dir, + aDt2D: float, + ) -> bool: ... @overload @staticmethod - def GetApproxNormalToFaceOnEdge(theE: TopoDS_Edge, theF: TopoDS_Face, aT: float, aDt2D: float, aP: gp_Pnt, aDNF: gp_Dir, theContext: IntTools_Context) -> bool: ... + def GetApproxNormalToFaceOnEdge( + theE: TopoDS_Edge, + theF: TopoDS_Face, + aT: float, + aDt2D: float, + aP: gp_Pnt, + aDNF: gp_Dir, + theContext: IntTools_Context, + ) -> bool: ... @overload @staticmethod - def GetNormalToFaceOnEdge(aE: TopoDS_Edge, aF: TopoDS_Face, aT: float, aD: gp_Dir, theContext: Optional[IntTools_Context] = IntTools_Context()) -> None: ... + def GetNormalToFaceOnEdge( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aT: float, + aD: gp_Dir, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> None: ... @overload @staticmethod - def GetNormalToFaceOnEdge(aE: TopoDS_Edge, aF: TopoDS_Face, aD: gp_Dir, theContext: Optional[IntTools_Context] = IntTools_Context()) -> None: ... + def GetNormalToFaceOnEdge( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aD: gp_Dir, + theContext: Optional[IntTools_Context] = IntTools_Context(), + ) -> None: ... @staticmethod - def GetNormalToSurface(aS: Geom_Surface, U: float, V: float, aD: gp_Dir) -> bool: ... + def GetNormalToSurface( + aS: Geom_Surface, U: float, V: float, aD: gp_Dir + ) -> bool: ... @staticmethod def IsEmptyShape(aS: TopoDS_Shape) -> bool: ... @staticmethod def MinStepIn2d() -> float: ... @staticmethod - def OrientEdgeOnFace(aE: TopoDS_Edge, aF: TopoDS_Face, aER: TopoDS_Edge) -> None: ... - @overload - @staticmethod - def PointInFace(theF: TopoDS_Face, theP: gp_Pnt, theP2D: gp_Pnt2d, theContext: IntTools_Context) -> int: ... - @overload - @staticmethod - def PointInFace(theF: TopoDS_Face, theE: TopoDS_Edge, theT: float, theDt2D: float, theP: gp_Pnt, theP2D: gp_Pnt2d, theContext: IntTools_Context) -> int: ... - @overload - @staticmethod - def PointInFace(theF: TopoDS_Face, theL: Geom2d_Curve, theP: gp_Pnt, theP2D: gp_Pnt2d, theContext: IntTools_Context, theDt2D: Optional[float] = 0.0) -> int: ... - @overload - @staticmethod - def PointNearEdge(aE: TopoDS_Edge, aF: TopoDS_Face, aT: float, aDt2D: float, aP2D: gp_Pnt2d, aPx: gp_Pnt, theContext: IntTools_Context) -> int: ... - @overload - @staticmethod - def PointNearEdge(aE: TopoDS_Edge, aF: TopoDS_Face, aT: float, aDt2D: float, aP2D: gp_Pnt2d, aPx: gp_Pnt) -> int: ... - @overload - @staticmethod - def PointNearEdge(aE: TopoDS_Edge, aF: TopoDS_Face, aT: float, aP2D: gp_Pnt2d, aPx: gp_Pnt, theContext: IntTools_Context) -> int: ... - @overload - @staticmethod - def PointNearEdge(aE: TopoDS_Edge, aF: TopoDS_Face, aP2D: gp_Pnt2d, aPx: gp_Pnt, theContext: IntTools_Context) -> int: ... + def OrientEdgeOnFace( + aE: TopoDS_Edge, aF: TopoDS_Face, aER: TopoDS_Edge + ) -> None: ... + @overload + @staticmethod + def PointInFace( + theF: TopoDS_Face, theP: gp_Pnt, theP2D: gp_Pnt2d, theContext: IntTools_Context + ) -> int: ... + @overload + @staticmethod + def PointInFace( + theF: TopoDS_Face, + theE: TopoDS_Edge, + theT: float, + theDt2D: float, + theP: gp_Pnt, + theP2D: gp_Pnt2d, + theContext: IntTools_Context, + ) -> int: ... + @overload + @staticmethod + def PointInFace( + theF: TopoDS_Face, + theL: Geom2d_Curve, + theP: gp_Pnt, + theP2D: gp_Pnt2d, + theContext: IntTools_Context, + theDt2D: Optional[float] = 0.0, + ) -> int: ... + @overload + @staticmethod + def PointNearEdge( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aT: float, + aDt2D: float, + aP2D: gp_Pnt2d, + aPx: gp_Pnt, + theContext: IntTools_Context, + ) -> int: ... + @overload + @staticmethod + def PointNearEdge( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aT: float, + aDt2D: float, + aP2D: gp_Pnt2d, + aPx: gp_Pnt, + ) -> int: ... + @overload + @staticmethod + def PointNearEdge( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aT: float, + aP2D: gp_Pnt2d, + aPx: gp_Pnt, + theContext: IntTools_Context, + ) -> int: ... + @overload + @staticmethod + def PointNearEdge( + aE: TopoDS_Edge, + aF: TopoDS_Face, + aP2D: gp_Pnt2d, + aPx: gp_Pnt, + theContext: IntTools_Context, + ) -> int: ... @staticmethod def SenseFlag(aNF1: gp_Dir, aNF2: gp_Dir) -> int: ... @@ -335,19 +669,18 @@ class BOPTools_Set: def NbShapes(self) -> int: ... def Shape(self) -> TopoDS_Shape: ... -#classnotwrapped +# classnotwrapped class BOPTools_Parallel: ... -#classnotwrapped +# classnotwrapped class BOPTools_BoxSelector: ... -#classnotwrapped +# classnotwrapped class BOPTools_BoxSet: ... -#classnotwrapped +# classnotwrapped class BOPTools_PairSelector: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRep.i b/src/SWIG_files/wrapper/BRep.i index ff4794da7..afa6967a1 100644 --- a/src/SWIG_files/wrapper/BRep.i +++ b/src/SWIG_files/wrapper/BRep.i @@ -115,6 +115,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BRep_ListIteratorOfListOfCurveRepresentation(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(BRep_ListOfPointRepresentation) NCollection_List>; @@ -123,6 +129,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BRep_ListIteratorOfListOfPointRepresentation(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/BRep.pyi b/src/SWIG_files/wrapper/BRep.pyi index 7c3a19143..1e48781f8 100644 --- a/src/SWIG_files/wrapper/BRep.pyi +++ b/src/SWIG_files/wrapper/BRep.pyi @@ -12,134 +12,283 @@ from OCC.Core.gp import * from OCC.Core.Geom2d import * from OCC.Core.TopAbs import * - class BRep_ListOfCurveRepresentation: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: BRep_ListOfCurveRepresentation + ) -> BRep_ListOfCurveRepresentation: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class BRep_ListOfPointRepresentation: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class BRep_ListOfPointRepresentation: + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: BRep_ListOfPointRepresentation + ) -> BRep_ListOfPointRepresentation: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class BRep_Builder(TopoDS_Builder): @overload - def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, C: GeomAbs_Shape) -> None: ... - @overload - def Continuity(self, E: TopoDS_Edge, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location, C: GeomAbs_Shape) -> None: ... + def Continuity( + self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, C: GeomAbs_Shape + ) -> None: ... + @overload + def Continuity( + self, + E: TopoDS_Edge, + S1: Geom_Surface, + S2: Geom_Surface, + L1: TopLoc_Location, + L2: TopLoc_Location, + C: GeomAbs_Shape, + ) -> None: ... def Degenerated(self, E: TopoDS_Edge, D: bool) -> None: ... @overload def MakeEdge(self, E: TopoDS_Edge) -> None: ... @overload def MakeEdge(self, E: TopoDS_Edge, C: Geom_Curve, Tol: float) -> None: ... @overload - def MakeEdge(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location, Tol: float) -> None: ... + def MakeEdge( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location, Tol: float + ) -> None: ... @overload def MakeEdge(self, E: TopoDS_Edge, P: Poly_Polygon3D) -> None: ... @overload - def MakeEdge(self, E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation) -> None: ... + def MakeEdge( + self, E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation + ) -> None: ... @overload - def MakeEdge(self, E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location) -> None: ... + def MakeEdge( + self, + E: TopoDS_Edge, + N: Poly_PolygonOnTriangulation, + T: Poly_Triangulation, + L: TopLoc_Location, + ) -> None: ... @overload def MakeFace(self, F: TopoDS_Face) -> None: ... @overload def MakeFace(self, F: TopoDS_Face, S: Geom_Surface, Tol: float) -> None: ... @overload - def MakeFace(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location, Tol: float) -> None: ... + def MakeFace( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location, Tol: float + ) -> None: ... @overload - def MakeFace(self, theFace: TopoDS_Face, theTriangulation: Poly_Triangulation) -> None: ... + def MakeFace( + self, theFace: TopoDS_Face, theTriangulation: Poly_Triangulation + ) -> None: ... @overload - def MakeFace(self, theFace: TopoDS_Face, theTriangulations: Poly_ListOfTriangulation, theActiveTriangulation: Optional[Poly_Triangulation] = Poly_Triangulation()) -> None: ... + def MakeFace( + self, + theFace: TopoDS_Face, + theTriangulations: Poly_ListOfTriangulation, + theActiveTriangulation: Optional[Poly_Triangulation] = Poly_Triangulation(), + ) -> None: ... @overload def MakeVertex(self, V: TopoDS_Vertex) -> None: ... @overload def MakeVertex(self, V: TopoDS_Vertex, P: gp_Pnt, Tol: float) -> None: ... def NaturalRestriction(self, F: TopoDS_Face, N: bool) -> None: ... @overload - def Range(self, E: TopoDS_Edge, First: float, Last: float, Only3d: Optional[bool] = False) -> None: ... - @overload - def Range(self, E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, First: float, Last: float) -> None: ... - @overload - def Range(self, E: TopoDS_Edge, F: TopoDS_Face, First: float, Last: float) -> None: ... + def Range( + self, E: TopoDS_Edge, First: float, Last: float, Only3d: Optional[bool] = False + ) -> None: ... + @overload + def Range( + self, + E: TopoDS_Edge, + S: Geom_Surface, + L: TopLoc_Location, + First: float, + Last: float, + ) -> None: ... + @overload + def Range( + self, E: TopoDS_Edge, F: TopoDS_Face, First: float, Last: float + ) -> None: ... def SameParameter(self, E: TopoDS_Edge, S: bool) -> None: ... def SameRange(self, E: TopoDS_Edge, S: bool) -> None: ... @overload def Transfert(self, Ein: TopoDS_Edge, Eout: TopoDS_Edge) -> None: ... @overload - def Transfert(self, Ein: TopoDS_Edge, Eout: TopoDS_Edge, Vin: TopoDS_Vertex, Vout: TopoDS_Vertex) -> None: ... + def Transfert( + self, + Ein: TopoDS_Edge, + Eout: TopoDS_Edge, + Vin: TopoDS_Vertex, + Vout: TopoDS_Vertex, + ) -> None: ... @overload def UpdateEdge(self, E: TopoDS_Edge, C: Geom_Curve, Tol: float) -> None: ... @overload - def UpdateEdge(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location, Tol: float) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, C: Geom2d_Curve, F: TopoDS_Face, Tol: float) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, C1: Geom2d_Curve, C2: Geom2d_Curve, F: TopoDS_Face, Tol: float) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Tol: float) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Tol: float, Pf: gp_Pnt2d, Pl: gp_Pnt2d) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, C1: Geom2d_Curve, C2: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Tol: float) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, C1: Geom2d_Curve, C2: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Tol: float, Pf: gp_Pnt2d, Pl: gp_Pnt2d) -> None: ... + def UpdateEdge( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location, Tol: float + ) -> None: ... + @overload + def UpdateEdge( + self, E: TopoDS_Edge, C: Geom2d_Curve, F: TopoDS_Face, Tol: float + ) -> None: ... + @overload + def UpdateEdge( + self, + E: TopoDS_Edge, + C1: Geom2d_Curve, + C2: Geom2d_Curve, + F: TopoDS_Face, + Tol: float, + ) -> None: ... + @overload + def UpdateEdge( + self, + E: TopoDS_Edge, + C: Geom2d_Curve, + S: Geom_Surface, + L: TopLoc_Location, + Tol: float, + ) -> None: ... + @overload + def UpdateEdge( + self, + E: TopoDS_Edge, + C: Geom2d_Curve, + S: Geom_Surface, + L: TopLoc_Location, + Tol: float, + Pf: gp_Pnt2d, + Pl: gp_Pnt2d, + ) -> None: ... + @overload + def UpdateEdge( + self, + E: TopoDS_Edge, + C1: Geom2d_Curve, + C2: Geom2d_Curve, + S: Geom_Surface, + L: TopLoc_Location, + Tol: float, + ) -> None: ... + @overload + def UpdateEdge( + self, + E: TopoDS_Edge, + C1: Geom2d_Curve, + C2: Geom2d_Curve, + S: Geom_Surface, + L: TopLoc_Location, + Tol: float, + Pf: gp_Pnt2d, + Pl: gp_Pnt2d, + ) -> None: ... @overload def UpdateEdge(self, E: TopoDS_Edge, P: Poly_Polygon3D) -> None: ... @overload - def UpdateEdge(self, E: TopoDS_Edge, P: Poly_Polygon3D, L: TopLoc_Location) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, N1: Poly_PolygonOnTriangulation, N2: Poly_PolygonOnTriangulation, T: Poly_Triangulation) -> None: ... - @overload - def UpdateEdge(self, E: TopoDS_Edge, N1: Poly_PolygonOnTriangulation, N2: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location) -> None: ... + def UpdateEdge( + self, E: TopoDS_Edge, P: Poly_Polygon3D, L: TopLoc_Location + ) -> None: ... + @overload + def UpdateEdge( + self, E: TopoDS_Edge, N: Poly_PolygonOnTriangulation, T: Poly_Triangulation + ) -> None: ... + @overload + def UpdateEdge( + self, + E: TopoDS_Edge, + N: Poly_PolygonOnTriangulation, + T: Poly_Triangulation, + L: TopLoc_Location, + ) -> None: ... + @overload + def UpdateEdge( + self, + E: TopoDS_Edge, + N1: Poly_PolygonOnTriangulation, + N2: Poly_PolygonOnTriangulation, + T: Poly_Triangulation, + ) -> None: ... + @overload + def UpdateEdge( + self, + E: TopoDS_Edge, + N1: Poly_PolygonOnTriangulation, + N2: Poly_PolygonOnTriangulation, + T: Poly_Triangulation, + L: TopLoc_Location, + ) -> None: ... @overload def UpdateEdge(self, E: TopoDS_Edge, P: Poly_Polygon2D, S: TopoDS_Face) -> None: ... @overload - def UpdateEdge(self, E: TopoDS_Edge, P: Poly_Polygon2D, S: Geom_Surface, T: TopLoc_Location) -> None: ... + def UpdateEdge( + self, E: TopoDS_Edge, P: Poly_Polygon2D, S: Geom_Surface, T: TopLoc_Location + ) -> None: ... @overload - def UpdateEdge(self, E: TopoDS_Edge, P1: Poly_Polygon2D, P2: Poly_Polygon2D, S: TopoDS_Face) -> None: ... + def UpdateEdge( + self, E: TopoDS_Edge, P1: Poly_Polygon2D, P2: Poly_Polygon2D, S: TopoDS_Face + ) -> None: ... @overload - def UpdateEdge(self, E: TopoDS_Edge, P1: Poly_Polygon2D, P2: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location) -> None: ... + def UpdateEdge( + self, + E: TopoDS_Edge, + P1: Poly_Polygon2D, + P2: Poly_Polygon2D, + S: Geom_Surface, + L: TopLoc_Location, + ) -> None: ... @overload def UpdateEdge(self, E: TopoDS_Edge, Tol: float) -> None: ... @overload - def UpdateFace(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location, Tol: float) -> None: ... + def UpdateFace( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location, Tol: float + ) -> None: ... @overload - def UpdateFace(self, theFace: TopoDS_Face, theTriangulation: Poly_Triangulation, theToReset: Optional[bool] = true) -> None: ... + def UpdateFace( + self, + theFace: TopoDS_Face, + theTriangulation: Poly_Triangulation, + theToReset: Optional[bool] = true, + ) -> None: ... @overload def UpdateFace(self, F: TopoDS_Face, Tol: float) -> None: ... @overload def UpdateVertex(self, V: TopoDS_Vertex, P: gp_Pnt, Tol: float) -> None: ... @overload - def UpdateVertex(self, V: TopoDS_Vertex, P: float, E: TopoDS_Edge, Tol: float) -> None: ... + def UpdateVertex( + self, V: TopoDS_Vertex, P: float, E: TopoDS_Edge, Tol: float + ) -> None: ... @overload - def UpdateVertex(self, V: TopoDS_Vertex, P: float, E: TopoDS_Edge, F: TopoDS_Face, Tol: float) -> None: ... + def UpdateVertex( + self, V: TopoDS_Vertex, P: float, E: TopoDS_Edge, F: TopoDS_Face, Tol: float + ) -> None: ... @overload - def UpdateVertex(self, V: TopoDS_Vertex, P: float, E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, Tol: float) -> None: ... + def UpdateVertex( + self, + V: TopoDS_Vertex, + P: float, + E: TopoDS_Edge, + S: Geom_Surface, + L: TopLoc_Location, + Tol: float, + ) -> None: ... @overload - def UpdateVertex(self, Ve: TopoDS_Vertex, U: float, V: float, F: TopoDS_Face, Tol: float) -> None: ... + def UpdateVertex( + self, Ve: TopoDS_Vertex, U: float, V: float, F: TopoDS_Face, Tol: float + ) -> None: ... @overload def UpdateVertex(self, V: TopoDS_Vertex, Tol: float) -> None: ... @@ -153,7 +302,7 @@ class BRep_CurveRepresentation(Standard_Transient): def Curve3D(self) -> Geom_Curve: ... @overload def Curve3D(self, C: Geom_Curve) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsCurve3D(self) -> bool: ... def IsCurveOnClosedSurface(self) -> bool: ... @overload @@ -170,11 +319,19 @@ class BRep_CurveRepresentation(Standard_Transient): @overload def IsPolygonOnTriangulation(self) -> bool: ... @overload - def IsPolygonOnTriangulation(self, T: Poly_Triangulation, L: TopLoc_Location) -> bool: ... + def IsPolygonOnTriangulation( + self, T: Poly_Triangulation, L: TopLoc_Location + ) -> bool: ... @overload def IsRegularity(self) -> bool: ... @overload - def IsRegularity(self, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location) -> bool: ... + def IsRegularity( + self, + S1: Geom_Surface, + S2: Geom_Surface, + L1: TopLoc_Location, + L2: TopLoc_Location, + ) -> bool: ... @overload def Location(self) -> TopLoc_Location: ... @overload @@ -217,7 +374,7 @@ class BRep_PointRepresentation(Standard_Transient): def Curve(self) -> Geom_Curve: ... @overload def Curve(self, C: Geom_Curve) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def IsPointOnCurve(self) -> bool: ... @overload @@ -225,7 +382,9 @@ class BRep_PointRepresentation(Standard_Transient): @overload def IsPointOnCurveOnSurface(self) -> bool: ... @overload - def IsPointOnCurveOnSurface(self, PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location) -> bool: ... + def IsPointOnCurveOnSurface( + self, PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location + ) -> bool: ... @overload def IsPointOnSurface(self) -> bool: ... @overload @@ -259,7 +418,7 @@ class BRep_TEdge(TopoDS_TEdge): def Degenerated(self) -> bool: ... @overload def Degenerated(self, S: bool) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EmptyCopy(self) -> TopoDS_TShape: ... @overload def SameParameter(self) -> bool: ... @@ -278,7 +437,7 @@ class BRep_TEdge(TopoDS_TEdge): class BRep_TFace(TopoDS_TFace): def __init__(self) -> None: ... def ActiveTriangulation(self) -> Poly_Triangulation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EmptyCopy(self) -> TopoDS_TShape: ... @overload def Location(self) -> TopLoc_Location: ... @@ -298,18 +457,26 @@ class BRep_TFace(TopoDS_TFace): @overload def Tolerance(self, theTolerance: float) -> None: ... @overload - def Triangulation(self, thePurpose: Optional[Poly_MeshPurpose] = Poly_MeshPurpose_NONE) -> Poly_Triangulation: ... + def Triangulation( + self, thePurpose: Optional[Poly_MeshPurpose] = Poly_MeshPurpose_NONE + ) -> Poly_Triangulation: ... @overload - def Triangulation(self, theTriangulation: Poly_Triangulation, theToReset: Optional[bool] = true) -> None: ... + def Triangulation( + self, theTriangulation: Poly_Triangulation, theToReset: Optional[bool] = true + ) -> None: ... @overload def Triangulations(self) -> Poly_ListOfTriangulation: ... @overload - def Triangulations(self, theTriangulations: Poly_ListOfTriangulation, theActiveTriangulation: Poly_Triangulation) -> None: ... + def Triangulations( + self, + theTriangulations: Poly_ListOfTriangulation, + theActiveTriangulation: Poly_Triangulation, + ) -> None: ... class BRep_TVertex(TopoDS_TVertex): def __init__(self) -> None: ... def ChangePoints(self) -> BRep_ListOfPointRepresentation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EmptyCopy(self) -> TopoDS_TShape: ... @overload def Pnt(self) -> gp_Pnt: ... @@ -325,30 +492,53 @@ class BRep_TVertex(TopoDS_TVertex): class BRep_Tool: @overload @staticmethod - def Continuity(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face) -> GeomAbs_Shape: ... + def Continuity( + E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face + ) -> GeomAbs_Shape: ... @overload @staticmethod - def Continuity(E: TopoDS_Edge, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location) -> GeomAbs_Shape: ... + def Continuity( + E: TopoDS_Edge, + S1: Geom_Surface, + S2: Geom_Surface, + L1: TopLoc_Location, + L2: TopLoc_Location, + ) -> GeomAbs_Shape: ... @overload @staticmethod - def Curve(E: TopoDS_Edge, L: TopLoc_Location) -> Tuple[Geom_Curve, float, float]: ... + def Curve( + E: TopoDS_Edge, L: TopLoc_Location + ) -> Tuple[Geom_Curve, float, float]: ... @overload @staticmethod def Curve(E: TopoDS_Edge) -> Tuple[Geom_Curve, float, float]: ... @staticmethod - def CurveOnPlane(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location) -> Tuple[Geom2d_Curve, float, float]: ... + def CurveOnPlane( + E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[Geom2d_Curve, float, float]: ... @overload @staticmethod - def CurveOnSurface(E: TopoDS_Edge, F: TopoDS_Face, theIsStored: Optional[bool] = None) -> Tuple[Geom2d_Curve, float, float]: ... + def CurveOnSurface( + E: TopoDS_Edge, F: TopoDS_Face, theIsStored: Optional[bool] = None + ) -> Tuple[Geom2d_Curve, float, float]: ... @overload @staticmethod - def CurveOnSurface(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, theIsStored: Optional[bool] = None) -> Tuple[Geom2d_Curve, float, float]: ... + def CurveOnSurface( + E: TopoDS_Edge, + S: Geom_Surface, + L: TopLoc_Location, + theIsStored: Optional[bool] = None, + ) -> Tuple[Geom2d_Curve, float, float]: ... @overload @staticmethod - def CurveOnSurface(E: TopoDS_Edge, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location) -> Tuple[float, float]: ... + def CurveOnSurface( + E: TopoDS_Edge, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[float, float]: ... @overload @staticmethod - def CurveOnSurface(E: TopoDS_Edge, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Index: int) -> Tuple[float, float]: ... + def CurveOnSurface( + E: TopoDS_Edge, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, Index: int + ) -> Tuple[float, float]: ... @staticmethod def Degenerated(E: TopoDS_Edge) -> bool: ... @overload @@ -356,7 +546,13 @@ class BRep_Tool: def HasContinuity(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face) -> bool: ... @overload @staticmethod - def HasContinuity(E: TopoDS_Edge, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location) -> bool: ... + def HasContinuity( + E: TopoDS_Edge, + S1: Geom_Surface, + S2: Geom_Surface, + L1: TopLoc_Location, + L2: TopLoc_Location, + ) -> bool: ... @overload @staticmethod def HasContinuity(E: TopoDS_Edge) -> bool: ... @@ -381,7 +577,9 @@ class BRep_Tool: @staticmethod def MaxContinuity(theEdge: TopoDS_Edge) -> GeomAbs_Shape: ... @staticmethod - def MaxTolerance(theShape: TopoDS_Shape, theSubShape: TopAbs_ShapeEnum) -> float: ... + def MaxTolerance( + theShape: TopoDS_Shape, theSubShape: TopAbs_ShapeEnum + ) -> float: ... @staticmethod def NaturalRestriction(F: TopoDS_Face) -> bool: ... @overload @@ -395,7 +593,9 @@ class BRep_Tool: def Parameter(V: TopoDS_Vertex, E: TopoDS_Edge, F: TopoDS_Face) -> float: ... @overload @staticmethod - def Parameter(V: TopoDS_Vertex, E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location) -> float: ... + def Parameter( + V: TopoDS_Vertex, E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location + ) -> float: ... @staticmethod def Parameters(V: TopoDS_Vertex, F: TopoDS_Face) -> gp_Pnt2d: ... @staticmethod @@ -407,28 +607,53 @@ class BRep_Tool: def PolygonOnSurface(E: TopoDS_Edge, F: TopoDS_Face) -> Poly_Polygon2D: ... @overload @staticmethod - def PolygonOnSurface(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location) -> Poly_Polygon2D: ... + def PolygonOnSurface( + E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location + ) -> Poly_Polygon2D: ... @overload @staticmethod - def PolygonOnSurface(E: TopoDS_Edge, C: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location) -> None: ... + def PolygonOnSurface( + E: TopoDS_Edge, C: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location + ) -> None: ... @overload @staticmethod - def PolygonOnSurface(E: TopoDS_Edge, C: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location, Index: int) -> None: ... + def PolygonOnSurface( + E: TopoDS_Edge, + C: Poly_Polygon2D, + S: Geom_Surface, + L: TopLoc_Location, + Index: int, + ) -> None: ... @overload @staticmethod - def PolygonOnTriangulation(E: TopoDS_Edge, T: Poly_Triangulation, L: TopLoc_Location) -> Poly_PolygonOnTriangulation: ... + def PolygonOnTriangulation( + E: TopoDS_Edge, T: Poly_Triangulation, L: TopLoc_Location + ) -> Poly_PolygonOnTriangulation: ... @overload @staticmethod - def PolygonOnTriangulation(E: TopoDS_Edge, P: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location) -> None: ... + def PolygonOnTriangulation( + E: TopoDS_Edge, + P: Poly_PolygonOnTriangulation, + T: Poly_Triangulation, + L: TopLoc_Location, + ) -> None: ... @overload @staticmethod - def PolygonOnTriangulation(E: TopoDS_Edge, P: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location, Index: int) -> None: ... + def PolygonOnTriangulation( + E: TopoDS_Edge, + P: Poly_PolygonOnTriangulation, + T: Poly_Triangulation, + L: TopLoc_Location, + Index: int, + ) -> None: ... @overload @staticmethod def Range(E: TopoDS_Edge) -> Tuple[float, float]: ... @overload @staticmethod - def Range(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location) -> Tuple[float, float]: ... + def Range( + E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[float, float]: ... @overload @staticmethod def Range(E: TopoDS_Edge, F: TopoDS_Face) -> Tuple[float, float]: ... @@ -438,10 +663,18 @@ class BRep_Tool: def SameRange(E: TopoDS_Edge) -> bool: ... @overload @staticmethod - def SetUVPoints(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, PFirst: gp_Pnt2d, PLast: gp_Pnt2d) -> None: ... + def SetUVPoints( + E: TopoDS_Edge, + S: Geom_Surface, + L: TopLoc_Location, + PFirst: gp_Pnt2d, + PLast: gp_Pnt2d, + ) -> None: ... @overload @staticmethod - def SetUVPoints(E: TopoDS_Edge, F: TopoDS_Face, PFirst: gp_Pnt2d, PLast: gp_Pnt2d) -> None: ... + def SetUVPoints( + E: TopoDS_Edge, F: TopoDS_Face, PFirst: gp_Pnt2d, PLast: gp_Pnt2d + ) -> None: ... @overload @staticmethod def Surface(F: TopoDS_Face, L: TopLoc_Location) -> Geom_Surface: ... @@ -458,36 +691,63 @@ class BRep_Tool: @staticmethod def Tolerance(V: TopoDS_Vertex) -> float: ... @staticmethod - def Triangulation(theFace: TopoDS_Face, theLocation: TopLoc_Location, theMeshPurpose: Optional[Poly_MeshPurpose] = Poly_MeshPurpose_NONE) -> Poly_Triangulation: ... + def Triangulation( + theFace: TopoDS_Face, + theLocation: TopLoc_Location, + theMeshPurpose: Optional[Poly_MeshPurpose] = Poly_MeshPurpose_NONE, + ) -> Poly_Triangulation: ... @staticmethod - def Triangulations(theFace: TopoDS_Face, theLocation: TopLoc_Location) -> Poly_ListOfTriangulation: ... + def Triangulations( + theFace: TopoDS_Face, theLocation: TopLoc_Location + ) -> Poly_ListOfTriangulation: ... @overload @staticmethod - def UVPoints(E: TopoDS_Edge, S: Geom_Surface, L: TopLoc_Location, PFirst: gp_Pnt2d, PLast: gp_Pnt2d) -> None: ... + def UVPoints( + E: TopoDS_Edge, + S: Geom_Surface, + L: TopLoc_Location, + PFirst: gp_Pnt2d, + PLast: gp_Pnt2d, + ) -> None: ... @overload @staticmethod - def UVPoints(E: TopoDS_Edge, F: TopoDS_Face, PFirst: gp_Pnt2d, PLast: gp_Pnt2d) -> None: ... + def UVPoints( + E: TopoDS_Edge, F: TopoDS_Face, PFirst: gp_Pnt2d, PLast: gp_Pnt2d + ) -> None: ... class BRep_CurveOn2Surfaces(BRep_CurveRepresentation): - def __init__(self, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location, C: GeomAbs_Shape) -> None: ... + def __init__( + self, + S1: Geom_Surface, + S2: Geom_Surface, + L1: TopLoc_Location, + L2: TopLoc_Location, + C: GeomAbs_Shape, + ) -> None: ... @overload def Continuity(self) -> GeomAbs_Shape: ... @overload def Continuity(self, C: GeomAbs_Shape) -> None: ... def Copy(self) -> BRep_CurveRepresentation: ... def D0(self, U: float, P: gp_Pnt) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def IsRegularity(self) -> bool: ... @overload - def IsRegularity(self, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location) -> bool: ... + def IsRegularity( + self, + S1: Geom_Surface, + S2: Geom_Surface, + L1: TopLoc_Location, + L2: TopLoc_Location, + ) -> bool: ... def Location2(self) -> TopLoc_Location: ... def Surface(self) -> Geom_Surface: ... def Surface2(self) -> Geom_Surface: ... class BRep_GCurve(BRep_CurveRepresentation): def D0(self, U: float, P: gp_Pnt) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def First(self) -> float: ... @overload @@ -506,14 +766,14 @@ class BRep_PointOnCurve(BRep_PointRepresentation): def Curve(self) -> Geom_Curve: ... @overload def Curve(self, C: Geom_Curve) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def IsPointOnCurve(self) -> bool: ... @overload def IsPointOnCurve(self, C: Geom_Curve, L: TopLoc_Location) -> bool: ... class BRep_PointsOnSurface(BRep_PointRepresentation): - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Surface(self) -> Geom_Surface: ... @overload @@ -522,7 +782,7 @@ class BRep_PointsOnSurface(BRep_PointRepresentation): class BRep_Polygon3D(BRep_CurveRepresentation): def __init__(self, P: Poly_Polygon3D, L: TopLoc_Location) -> None: ... def Copy(self) -> BRep_CurveRepresentation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsPolygon3D(self) -> bool: ... @overload def Polygon3D(self) -> Poly_Polygon3D: ... @@ -530,9 +790,11 @@ class BRep_Polygon3D(BRep_CurveRepresentation): def Polygon3D(self, P: Poly_Polygon3D) -> None: ... class BRep_PolygonOnSurface(BRep_CurveRepresentation): - def __init__(self, P: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location) -> None: ... + def __init__( + self, P: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location + ) -> None: ... def Copy(self) -> BRep_CurveRepresentation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def IsPolygonOnSurface(self) -> bool: ... @overload @@ -544,13 +806,17 @@ class BRep_PolygonOnSurface(BRep_CurveRepresentation): def Surface(self) -> Geom_Surface: ... class BRep_PolygonOnTriangulation(BRep_CurveRepresentation): - def __init__(self, P: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location) -> None: ... + def __init__( + self, P: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location + ) -> None: ... def Copy(self) -> BRep_CurveRepresentation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def IsPolygonOnTriangulation(self) -> bool: ... @overload - def IsPolygonOnTriangulation(self, T: Poly_Triangulation, L: TopLoc_Location) -> bool: ... + def IsPolygonOnTriangulation( + self, T: Poly_Triangulation, L: TopLoc_Location + ) -> bool: ... @overload def PolygonOnTriangulation(self, P: Poly_PolygonOnTriangulation) -> None: ... @overload @@ -565,14 +831,16 @@ class BRep_Curve3D(BRep_GCurve): @overload def Curve3D(self, C: Geom_Curve) -> None: ... def D0(self, U: float, P: gp_Pnt) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsCurve3D(self) -> bool: ... class BRep_CurveOnSurface(BRep_GCurve): - def __init__(self, PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location) -> None: ... + def __init__( + self, PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location + ) -> None: ... def Copy(self) -> BRep_CurveRepresentation: ... def D0(self, U: float, P: gp_Pnt) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def IsCurveOnSurface(self) -> bool: ... @overload @@ -587,19 +855,25 @@ class BRep_CurveOnSurface(BRep_GCurve): def Update(self) -> None: ... class BRep_PointOnCurveOnSurface(BRep_PointsOnSurface): - def __init__(self, P: float, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def __init__( + self, P: float, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def IsPointOnCurveOnSurface(self) -> bool: ... @overload - def IsPointOnCurveOnSurface(self, PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location) -> bool: ... + def IsPointOnCurveOnSurface( + self, PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location + ) -> bool: ... @overload def PCurve(self) -> Geom2d_Curve: ... @overload def PCurve(self, C: Geom2d_Curve) -> None: ... class BRep_PointOnSurface(BRep_PointsOnSurface): - def __init__(self, P1: float, P2: float, S: Geom_Surface, L: TopLoc_Location) -> None: ... + def __init__( + self, P1: float, P2: float, S: Geom_Surface, L: TopLoc_Location + ) -> None: ... @overload def IsPointOnSurface(self) -> bool: ... @overload @@ -610,9 +884,15 @@ class BRep_PointOnSurface(BRep_PointsOnSurface): def Parameter2(self, P: float) -> None: ... class BRep_PolygonOnClosedSurface(BRep_PolygonOnSurface): - def __init__(self, P1: Poly_Polygon2D, P2: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location) -> None: ... + def __init__( + self, + P1: Poly_Polygon2D, + P2: Poly_Polygon2D, + S: Geom_Surface, + L: TopLoc_Location, + ) -> None: ... def Copy(self) -> BRep_CurveRepresentation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsPolygonOnClosedSurface(self) -> bool: ... @overload def Polygon2(self) -> Poly_Polygon2D: ... @@ -620,9 +900,15 @@ class BRep_PolygonOnClosedSurface(BRep_PolygonOnSurface): def Polygon2(self, P: Poly_Polygon2D) -> None: ... class BRep_PolygonOnClosedTriangulation(BRep_PolygonOnTriangulation): - def __init__(self, P1: Poly_PolygonOnTriangulation, P2: Poly_PolygonOnTriangulation, Tr: Poly_Triangulation, L: TopLoc_Location) -> None: ... + def __init__( + self, + P1: Poly_PolygonOnTriangulation, + P2: Poly_PolygonOnTriangulation, + Tr: Poly_Triangulation, + L: TopLoc_Location, + ) -> None: ... def Copy(self) -> BRep_CurveRepresentation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsPolygonOnClosedTriangulation(self) -> bool: ... @overload def PolygonOnTriangulation2(self, P2: Poly_PolygonOnTriangulation) -> None: ... @@ -630,18 +916,31 @@ class BRep_PolygonOnClosedTriangulation(BRep_PolygonOnTriangulation): def PolygonOnTriangulation2(self) -> Poly_PolygonOnTriangulation: ... class BRep_CurveOnClosedSurface(BRep_CurveOnSurface): - def __init__(self, PC1: Geom2d_Curve, PC2: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, C: GeomAbs_Shape) -> None: ... + def __init__( + self, + PC1: Geom2d_Curve, + PC2: Geom2d_Curve, + S: Geom_Surface, + L: TopLoc_Location, + C: GeomAbs_Shape, + ) -> None: ... @overload def Continuity(self) -> GeomAbs_Shape: ... @overload def Continuity(self, C: GeomAbs_Shape) -> None: ... def Copy(self) -> BRep_CurveRepresentation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsCurveOnClosedSurface(self) -> bool: ... @overload def IsRegularity(self) -> bool: ... @overload - def IsRegularity(self, S1: Geom_Surface, S2: Geom_Surface, L1: TopLoc_Location, L2: TopLoc_Location) -> bool: ... + def IsRegularity( + self, + S1: Geom_Surface, + S2: Geom_Surface, + L1: TopLoc_Location, + L2: TopLoc_Location, + ) -> bool: ... def Location2(self) -> TopLoc_Location: ... @overload def PCurve2(self) -> Geom2d_Curve: ... @@ -655,4 +954,3 @@ class BRep_CurveOnClosedSurface(BRep_CurveOnSurface): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepAdaptor.pyi b/src/SWIG_files/wrapper/BRepAdaptor.pyi index abf3f08e9..65f46bdf4 100644 --- a/src/SWIG_files/wrapper/BRepAdaptor.pyi +++ b/src/SWIG_files/wrapper/BRepAdaptor.pyi @@ -13,7 +13,6 @@ from OCC.Core.Geom2dAdaptor import * from OCC.Core.Adaptor2d import * from OCC.Core.GeomAdaptor import * - class BRepAdaptor_Array1OfCurve: @overload def __init__(self) -> None: ... @@ -42,9 +41,18 @@ class BRepAdaptor_CompCurve(Adaptor3d_Curve): @overload def __init__(self) -> None: ... @overload - def __init__(self, W: TopoDS_Wire, KnotByCurvilinearAbcissa: Optional[bool] = False) -> None: ... - @overload - def __init__(self, W: TopoDS_Wire, KnotByCurvilinearAbcissa: bool, First: float, Last: float, Tol: float) -> None: ... + def __init__( + self, W: TopoDS_Wire, KnotByCurvilinearAbcissa: Optional[bool] = False + ) -> None: ... + @overload + def __init__( + self, + W: TopoDS_Wire, + KnotByCurvilinearAbcissa: bool, + First: float, + Last: float, + Tol: float, + ) -> None: ... def BSpline(self) -> Geom_BSplineCurve: ... def Bezier(self) -> Geom_BezierCurve: ... def Circle(self) -> gp_Circ: ... @@ -63,7 +71,14 @@ class BRepAdaptor_CompCurve(Adaptor3d_Curve): @overload def Initialize(self, W: TopoDS_Wire, KnotByCurvilinearAbcissa: bool) -> None: ... @overload - def Initialize(self, W: TopoDS_Wire, KnotByCurvilinearAbcissa: bool, First: float, Last: float, Tol: float) -> None: ... + def Initialize( + self, + W: TopoDS_Wire, + KnotByCurvilinearAbcissa: bool, + First: float, + Last: float, + Tol: float, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsClosed(self) -> bool: ... def IsPeriodic(self) -> bool: ... @@ -156,15 +171,41 @@ class BRepAdaptor_Surface(Adaptor3d_Surface): def Cylinder(self) -> gp_Cylinder: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... def Direction(self) -> gp_Dir: ... def Face(self) -> TopoDS_Face: ... def FirstUParameter(self) -> float: ... def FirstVParameter(self) -> float: ... def GetType(self) -> GeomAbs_SurfaceType: ... - def Initialize(self, F: TopoDS_Face, Restriction: Optional[bool] = True) -> None: ... + def Initialize( + self, F: TopoDS_Face, Restriction: Optional[bool] = True + ) -> None: ... def IsUClosed(self) -> bool: ... def IsUPeriodic(self) -> bool: ... def IsURational(self) -> bool: ... @@ -209,4 +250,3 @@ class BRepAdaptor_HArray1OfCurve(BRepAdaptor_Array1OfCurve, Standard_Transient): # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepAlgo.pyi b/src/SWIG_files/wrapper/BRepAlgo.pyi index b0ec67a24..0060de845 100644 --- a/src/SWIG_files/wrapper/BRepAlgo.pyi +++ b/src/SWIG_files/wrapper/BRepAlgo.pyi @@ -9,16 +9,21 @@ from OCC.Core.TopTools import * from OCC.Core.TopAbs import * from OCC.Core.Adaptor3d import * - class brepalgo: @staticmethod - def ConcatenateWire(Wire: TopoDS_Wire, Option: GeomAbs_Shape, AngularTolerance: Optional[float] = 1.0e-4) -> TopoDS_Wire: ... + def ConcatenateWire( + Wire: TopoDS_Wire, + Option: GeomAbs_Shape, + AngularTolerance: Optional[float] = 1.0e-4, + ) -> TopoDS_Wire: ... @staticmethod def ConcatenateWireC0(Wire: TopoDS_Wire) -> TopoDS_Edge: ... @staticmethod def ConvertFace(theFace: TopoDS_Face, theAngleTolerance: float) -> TopoDS_Face: ... @staticmethod - def ConvertWire(theWire: TopoDS_Wire, theAngleTolerance: float, theFace: TopoDS_Face) -> TopoDS_Wire: ... + def ConvertWire( + theWire: TopoDS_Wire, theAngleTolerance: float, theFace: TopoDS_Face + ) -> TopoDS_Wire: ... @staticmethod def IsTopologicallyValid(S: TopoDS_Shape) -> bool: ... @overload @@ -26,7 +31,12 @@ class brepalgo: def IsValid(S: TopoDS_Shape) -> bool: ... @overload @staticmethod - def IsValid(theArgs: TopTools_ListOfShape, theResult: TopoDS_Shape, closedSolid: Optional[bool] = False, GeomCtrl: Optional[bool] = True) -> bool: ... + def IsValid( + theArgs: TopTools_ListOfShape, + theResult: TopoDS_Shape, + closedSolid: Optional[bool] = False, + GeomCtrl: Optional[bool] = True, + ) -> bool: ... class BRepAlgo_AsDes(Standard_Transient): def __init__(self) -> None: ... @@ -39,7 +49,9 @@ class BRepAlgo_AsDes(Standard_Transient): def Clear(self) -> None: ... def Descendant(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... def HasAscendant(self, S: TopoDS_Shape) -> bool: ... - def HasCommonDescendant(self, S1: TopoDS_Shape, S2: TopoDS_Shape, LC: TopTools_ListOfShape) -> bool: ... + def HasCommonDescendant( + self, S1: TopoDS_Shape, S2: TopoDS_Shape, LC: TopTools_ListOfShape + ) -> bool: ... def HasDescendant(self, S: TopoDS_Shape) -> bool: ... def Remove(self, theS: TopoDS_Shape) -> None: ... def Replace(self, theOldS: TopoDS_Shape, theNewS: TopoDS_Shape) -> None: ... @@ -49,7 +61,12 @@ class BRepAlgo_FaceRestrictor: def Add(self, W: TopoDS_Wire) -> None: ... def Clear(self) -> None: ... def Current(self) -> TopoDS_Face: ... - def Init(self, F: TopoDS_Face, Proj: Optional[bool] = False, ControlOrientation: Optional[bool] = False) -> None: ... + def Init( + self, + F: TopoDS_Face, + Proj: Optional[bool] = False, + ControlOrientation: Optional[bool] = False, + ) -> None: ... def IsDone(self) -> bool: ... def More(self) -> bool: ... def Next(self) -> None: ... @@ -85,9 +102,13 @@ class BRepAlgo_Loop: def AddConstEdge(self, E: TopoDS_Edge) -> None: ... def AddConstEdges(self, LE: TopTools_ListOfShape) -> None: ... def AddEdge(self, E: TopoDS_Edge, LV: TopTools_ListOfShape) -> None: ... - def CutEdge(self, E: TopoDS_Edge, VonE: TopTools_ListOfShape, NE: TopTools_ListOfShape) -> None: ... + def CutEdge( + self, E: TopoDS_Edge, VonE: TopTools_ListOfShape, NE: TopTools_ListOfShape + ) -> None: ... def GetTolConf(self) -> float: ... - def GetVerticesForSubstitute(self, VerVerMap: TopTools_DataMapOfShapeShape) -> None: ... + def GetVerticesForSubstitute( + self, VerVerMap: TopTools_DataMapOfShapeShape + ) -> None: ... def Init(self, F: TopoDS_Face) -> None: ... def NewEdges(self, E: TopoDS_Edge) -> TopTools_ListOfShape: ... def NewFaces(self) -> TopTools_ListOfShape: ... @@ -95,8 +116,12 @@ class BRepAlgo_Loop: def Perform(self) -> None: ... def SetImageVV(self, theImageVV: BRepAlgo_Image) -> None: ... def SetTolConf(self, theTolConf: float) -> None: ... - def UpdateVEmap(self, theVEmap: TopTools_IndexedDataMapOfShapeListOfShape) -> None: ... - def VerticesForSubstitute(self, VerVerMap: TopTools_DataMapOfShapeShape) -> None: ... + def UpdateVEmap( + self, theVEmap: TopTools_IndexedDataMapOfShapeListOfShape + ) -> None: ... + def VerticesForSubstitute( + self, VerVerMap: TopTools_DataMapOfShapeShape + ) -> None: ... def WiresToFaces(self) -> None: ... class BRepAlgo_NormalProjection: @@ -118,9 +143,15 @@ class BRepAlgo_NormalProjection: def SetDefaultParams(self) -> None: ... def SetLimit(self, FaceBoundaries: Optional[bool] = True) -> None: ... def SetMaxDistance(self, MaxDist: float) -> None: ... - def SetParams(self, Tol3D: float, Tol2D: float, InternalContinuity: GeomAbs_Shape, MaxDegree: int, MaxSeg: int) -> None: ... + def SetParams( + self, + Tol3D: float, + Tol2D: float, + InternalContinuity: GeomAbs_Shape, + MaxDegree: int, + MaxSeg: int, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepAlgoAPI.pyi b/src/SWIG_files/wrapper/BRepAlgoAPI.pyi index 178413cb1..f7ca55515 100644 --- a/src/SWIG_files/wrapper/BRepAlgoAPI.pyi +++ b/src/SWIG_files/wrapper/BRepAlgoAPI.pyi @@ -12,21 +12,48 @@ from OCC.Core.BRepTools import * from OCC.Core.gp import * from OCC.Core.Geom import * - class BRepAlgoAPI_Check(BOPAlgo_Options): @overload def __init__(self) -> None: ... @overload - def __init__(self, theS: TopoDS_Shape, bTestSE: Optional[bool] = True, bTestSI: Optional[bool] = True, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - @overload - def __init__(self, theS1: TopoDS_Shape, theS2: TopoDS_Shape, theOp: Optional[BOPAlgo_Operation] = BOPAlgo_UNKNOWN, bTestSE: Optional[bool] = True, bTestSI: Optional[bool] = True, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + theS: TopoDS_Shape, + bTestSE: Optional[bool] = True, + bTestSI: Optional[bool] = True, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + @overload + def __init__( + self, + theS1: TopoDS_Shape, + theS2: TopoDS_Shape, + theOp: Optional[BOPAlgo_Operation] = BOPAlgo_UNKNOWN, + bTestSE: Optional[bool] = True, + bTestSI: Optional[bool] = True, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def IsValid(self) -> bool: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Result(self) -> BOPAlgo_ListOfCheckResult: ... @overload - def SetData(self, theS: TopoDS_Shape, bTestSE: Optional[bool] = True, bTestSI: Optional[bool] = True) -> None: ... - @overload - def SetData(self, theS1: TopoDS_Shape, theS2: TopoDS_Shape, theOp: Optional[BOPAlgo_Operation] = BOPAlgo_UNKNOWN, bTestSE: Optional[bool] = True, bTestSI: Optional[bool] = True) -> None: ... + def SetData( + self, + theS: TopoDS_Shape, + bTestSE: Optional[bool] = True, + bTestSI: Optional[bool] = True, + ) -> None: ... + @overload + def SetData( + self, + theS1: TopoDS_Shape, + theS2: TopoDS_Shape, + theOp: Optional[BOPAlgo_Operation] = BOPAlgo_UNKNOWN, + bTestSE: Optional[bool] = True, + bTestSI: Optional[bool] = True, + ) -> None: ... class BRepAlgoAPI_Algo(BRepBuilderAPI_MakeShape, BOPAlgo_Options): def Shape(self) -> TopoDS_Shape: ... @@ -37,7 +64,9 @@ class BRepAlgoAPI_BuilderAlgo(BRepAlgoAPI_Algo): @overload def __init__(self, thePF: BOPAlgo_PaveFiller) -> None: ... def Arguments(self) -> TopTools_ListOfShape: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Builder(self) -> BOPAlgo_PBuilder: ... def CheckInverted(self) -> bool: ... def DSFiller(self) -> BOPAlgo_PPaveFiller: ... @@ -57,13 +86,20 @@ class BRepAlgoAPI_BuilderAlgo(BRepAlgoAPI_Algo): def SetGlue(self, theGlue: BOPAlgo_GlueEnum) -> None: ... def SetNonDestructive(self, theFlag: bool) -> None: ... def SetToFillHistory(self, theHistFlag: bool) -> None: ... - def SimplifyResult(self, theUnifyEdges: Optional[bool] = True, theUnifyFaces: Optional[bool] = True, theAngularTol: Optional[float] = Precision.Angular()) -> None: ... + def SimplifyResult( + self, + theUnifyEdges: Optional[bool] = True, + theUnifyFaces: Optional[bool] = True, + theAngularTol: Optional[float] = Precision.Angular(), + ) -> None: ... class BRepAlgoAPI_Defeaturing(BRepAlgoAPI_Algo): def __init__(self) -> None: ... def AddFaceToRemove(self, theFace: TopoDS_Shape) -> None: ... def AddFacesToRemove(self, theFaces: TopTools_ListOfShape) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def FacesToRemove(self) -> TopTools_ListOfShape: ... def Generated(self, theS: TopoDS_Shape) -> TopTools_ListOfShape: ... def HasDeleted(self) -> bool: ... @@ -82,7 +118,9 @@ class BRepAlgoAPI_BooleanOperation(BRepAlgoAPI_BuilderAlgo): def __init__(self) -> None: ... @overload def __init__(self, thePF: BOPAlgo_PaveFiller) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Operation(self) -> BOPAlgo_Operation: ... def SetOperation(self, theBOP: BOPAlgo_Operation) -> None: ... def SetTools(self, theLS: TopTools_ListOfShape) -> None: ... @@ -95,7 +133,9 @@ class BRepAlgoAPI_Splitter(BRepAlgoAPI_BuilderAlgo): def __init__(self) -> None: ... @overload def __init__(self, thePF: BOPAlgo_PaveFiller) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SetTools(self, theLS: TopTools_ListOfShape) -> None: ... def Tools(self) -> TopTools_ListOfShape: ... @@ -105,9 +145,20 @@ class BRepAlgoAPI_Common(BRepAlgoAPI_BooleanOperation): @overload def __init__(self, PF: BOPAlgo_PaveFiller) -> None: ... @overload - def __init__(self, S1: TopoDS_Shape, S2: TopoDS_Shape, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - @overload - def __init__(self, S1: TopoDS_Shape, S2: TopoDS_Shape, PF: BOPAlgo_PaveFiller, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + @overload + def __init__( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + PF: BOPAlgo_PaveFiller, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... class BRepAlgoAPI_Cut(BRepAlgoAPI_BooleanOperation): @overload @@ -115,9 +166,21 @@ class BRepAlgoAPI_Cut(BRepAlgoAPI_BooleanOperation): @overload def __init__(self, PF: BOPAlgo_PaveFiller) -> None: ... @overload - def __init__(self, S1: TopoDS_Shape, S2: TopoDS_Shape, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - @overload - def __init__(self, S1: TopoDS_Shape, S2: TopoDS_Shape, aDSF: BOPAlgo_PaveFiller, bFWD: Optional[bool] = True, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + @overload + def __init__( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + aDSF: BOPAlgo_PaveFiller, + bFWD: Optional[bool] = True, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... class BRepAlgoAPI_Fuse(BRepAlgoAPI_BooleanOperation): @overload @@ -125,9 +188,20 @@ class BRepAlgoAPI_Fuse(BRepAlgoAPI_BooleanOperation): @overload def __init__(self, PF: BOPAlgo_PaveFiller) -> None: ... @overload - def __init__(self, S1: TopoDS_Shape, S2: TopoDS_Shape, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - @overload - def __init__(self, S1: TopoDS_Shape, S2: TopoDS_Shape, aDSF: BOPAlgo_PaveFiller, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + @overload + def __init__( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + aDSF: BOPAlgo_PaveFiller, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... class BRepAlgoAPI_Section(BRepAlgoAPI_BooleanOperation): @overload @@ -135,19 +209,37 @@ class BRepAlgoAPI_Section(BRepAlgoAPI_BooleanOperation): @overload def __init__(self, PF: BOPAlgo_PaveFiller) -> None: ... @overload - def __init__(self, S1: TopoDS_Shape, S2: TopoDS_Shape, PerformNow: Optional[bool] = True) -> None: ... - @overload - def __init__(self, S1: TopoDS_Shape, S2: TopoDS_Shape, aDSF: BOPAlgo_PaveFiller, PerformNow: Optional[bool] = True) -> None: ... - @overload - def __init__(self, S1: TopoDS_Shape, Pl: gp_Pln, PerformNow: Optional[bool] = True) -> None: ... - @overload - def __init__(self, S1: TopoDS_Shape, Sf: Geom_Surface, PerformNow: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Sf: Geom_Surface, S2: TopoDS_Shape, PerformNow: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Sf1: Geom_Surface, Sf2: Geom_Surface, PerformNow: Optional[bool] = True) -> None: ... + def __init__( + self, S1: TopoDS_Shape, S2: TopoDS_Shape, PerformNow: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + aDSF: BOPAlgo_PaveFiller, + PerformNow: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, S1: TopoDS_Shape, Pl: gp_Pln, PerformNow: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, S1: TopoDS_Shape, Sf: Geom_Surface, PerformNow: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, Sf: Geom_Surface, S2: TopoDS_Shape, PerformNow: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, Sf1: Geom_Surface, Sf2: Geom_Surface, PerformNow: Optional[bool] = True + ) -> None: ... def Approximation(self, B: bool) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def ComputePCurveOn1(self, B: bool) -> None: ... def ComputePCurveOn2(self, B: bool) -> None: ... def HasAncestorFaceOn1(self, E: TopoDS_Shape, F: TopoDS_Shape) -> bool: ... @@ -168,4 +260,3 @@ class BRepAlgoAPI_Section(BRepAlgoAPI_BooleanOperation): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepApprox.pyi b/src/SWIG_files/wrapper/BRepApprox.pyi index cdc229f47..6b8b71447 100644 --- a/src/SWIG_files/wrapper/BRepApprox.pyi +++ b/src/SWIG_files/wrapper/BRepApprox.pyi @@ -18,40 +18,86 @@ from OCC.Core.IntImp import * from OCC.Core.ApproxInt import * from OCC.Core.TColgp import * - class BRepApprox_Approx: def __init__(self) -> None: ... def IsDone(self) -> bool: ... def NbMultiCurves(self) -> int: ... @staticmethod - def Parameters(Line: BRepApprox_TheMultiLineOfApprox, firstP: int, lastP: int, Par: Approx_ParametrizationType, TheParameters: math_Vector) -> None: ... - def SetParameters(self, Tol3d: float, Tol2d: float, DegMin: int, DegMax: int, NbIterMax: int, NbPntMax: Optional[int] = 30, ApproxWithTangency: Optional[bool] = True, Parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength) -> None: ... + def Parameters( + Line: BRepApprox_TheMultiLineOfApprox, + firstP: int, + lastP: int, + Par: Approx_ParametrizationType, + TheParameters: math_Vector, + ) -> None: ... + def SetParameters( + self, + Tol3d: float, + Tol2d: float, + DegMin: int, + DegMax: int, + NbIterMax: int, + NbPntMax: Optional[int] = 30, + ApproxWithTangency: Optional[bool] = True, + Parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + ) -> None: ... def TolReached2d(self) -> float: ... def TolReached3d(self) -> float: ... def Value(self, Index: int) -> AppParCurves_MultiBSpCurve: ... class BRepApprox_ApproxLine(Standard_Transient): @overload - def __init__(self, CurveXYZ: Geom_BSplineCurve, CurveUV1: Geom2d_BSplineCurve, CurveUV2: Geom2d_BSplineCurve) -> None: ... + def __init__( + self, + CurveXYZ: Geom_BSplineCurve, + CurveUV1: Geom2d_BSplineCurve, + CurveUV2: Geom2d_BSplineCurve, + ) -> None: ... @overload - def __init__(self, lin: IntSurf_LineOn2S, theTang: Optional[bool] = False) -> None: ... + def __init__( + self, lin: IntSurf_LineOn2S, theTang: Optional[bool] = False + ) -> None: ... def NbPnts(self) -> int: ... def Point(self, Index: int) -> IntSurf_PntOn2S: ... class BRepApprox_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfApprox(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... -class BRepApprox_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfApprox(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NbPol: int) -> None: ... +class BRepApprox_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfApprox( + math_MultipleVarFunctionWithGradient +): + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NbPol: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiBSpCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def FunctionMatrix(self) -> math_Matrix: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... def Index(self) -> math_IntegerVector: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -63,13 +109,51 @@ class BRepApprox_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfApprox(math_Mul class BRepApprox_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfApprox: @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -86,25 +170,85 @@ class BRepApprox_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfApprox: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class BRepApprox_Gradient_BFGSOfMyGradientOfTheComputeLineBezierOfApprox(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... class BRepApprox_Gradient_BFGSOfMyGradientbisOfTheComputeLineOfApprox(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... class BRepApprox_MyBSplGradientOfTheComputeLineOfApprox: @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 1) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Deg: int, Tol3d: float, Tol2d: float, NbIterations: int, lambda1: float, lambda2: float) -> None: ... + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 1, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: int, + lambda1: float, + lambda2: float, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -113,7 +257,18 @@ class BRepApprox_MyBSplGradientOfTheComputeLineOfApprox: def Value(self) -> AppParCurves_MultiBSpCurve: ... class BRepApprox_MyGradientOfTheComputeLineBezierOfApprox: - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -122,7 +277,18 @@ class BRepApprox_MyGradientOfTheComputeLineBezierOfApprox: def Value(self) -> AppParCurves_MultiCurve: ... class BRepApprox_MyGradientbisOfTheComputeLineOfApprox: - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -130,13 +296,27 @@ class BRepApprox_MyGradientbisOfTheComputeLineOfApprox: def MaxError3d(self) -> float: ... def Value(self) -> AppParCurves_MultiCurve: ... -class BRepApprox_ParFunctionOfMyGradientOfTheComputeLineBezierOfApprox(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int) -> None: ... +class BRepApprox_ParFunctionOfMyGradientOfTheComputeLineBezierOfApprox( + math_MultipleVarFunctionWithGradient +): + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiCurve: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -144,13 +324,27 @@ class BRepApprox_ParFunctionOfMyGradientOfTheComputeLineBezierOfApprox(math_Mult def Value(self, X: math_Vector) -> Tuple[bool, float]: ... def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... -class BRepApprox_ParFunctionOfMyGradientbisOfTheComputeLineOfApprox(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int) -> None: ... +class BRepApprox_ParFunctionOfMyGradientbisOfTheComputeLineOfApprox( + math_MultipleVarFunctionWithGradient +): + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiCurve: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -160,13 +354,51 @@ class BRepApprox_ParFunctionOfMyGradientbisOfTheComputeLineOfApprox(math_Multipl class BRepApprox_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfApprox: @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -183,21 +415,75 @@ class BRepApprox_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfApprox: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class BRepApprox_ParLeastSquareOfMyGradientbisOfTheComputeLineOfApprox: @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -214,23 +500,71 @@ class BRepApprox_ParLeastSquareOfMyGradientbisOfTheComputeLineOfApprox: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class BRepApprox_ResConstraintOfMyGradientOfTheComputeLineBezierOfApprox: - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, SCurv: AppParCurves_MultiCurve, FirstPoint: int, LastPoint: int, Constraints: AppParCurves_HArray1OfConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance: Optional[float] = 1.0e-10) -> None: ... - def ConstraintDerivative(self, SSP: BRepApprox_TheMultiLineOfApprox, Parameters: math_Vector, Deg: int, DA: math_Matrix) -> math_Matrix: ... + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + SCurv: AppParCurves_MultiCurve, + FirstPoint: int, + LastPoint: int, + Constraints: AppParCurves_HArray1OfConstraintCouple, + Bern: math_Matrix, + DerivativeBern: math_Matrix, + Tolerance: Optional[float] = 1.0e-10, + ) -> None: ... + def ConstraintDerivative( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + Parameters: math_Vector, + Deg: int, + DA: math_Matrix, + ) -> math_Matrix: ... def ConstraintMatrix(self) -> math_Matrix: ... def Duale(self) -> math_Vector: ... def InverseMatrix(self) -> math_Matrix: ... def IsDone(self) -> bool: ... class BRepApprox_ResConstraintOfMyGradientbisOfTheComputeLineOfApprox: - def __init__(self, SSP: BRepApprox_TheMultiLineOfApprox, SCurv: AppParCurves_MultiCurve, FirstPoint: int, LastPoint: int, Constraints: AppParCurves_HArray1OfConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance: Optional[float] = 1.0e-10) -> None: ... - def ConstraintDerivative(self, SSP: BRepApprox_TheMultiLineOfApprox, Parameters: math_Vector, Deg: int, DA: math_Matrix) -> math_Matrix: ... + def __init__( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + SCurv: AppParCurves_MultiCurve, + FirstPoint: int, + LastPoint: int, + Constraints: AppParCurves_HArray1OfConstraintCouple, + Bern: math_Matrix, + DerivativeBern: math_Matrix, + Tolerance: Optional[float] = 1.0e-10, + ) -> None: ... + def ConstraintDerivative( + self, + SSP: BRepApprox_TheMultiLineOfApprox, + Parameters: math_Vector, + Deg: int, + DA: math_Matrix, + ) -> math_Matrix: ... def ConstraintMatrix(self) -> math_Matrix: ... def Duale(self) -> math_Vector: ... def InverseMatrix(self) -> math_Matrix: ... @@ -252,11 +586,37 @@ class BRepApprox_SurfaceTool: @staticmethod def D0(S: BRepAdaptor_Surface, u: float, v: float, P: gp_Pnt) -> None: ... @staticmethod - def D1(S: BRepAdaptor_Surface, u: float, v: float, P: gp_Pnt, D1u: gp_Vec, D1v: gp_Vec) -> None: ... + def D1( + S: BRepAdaptor_Surface, u: float, v: float, P: gp_Pnt, D1u: gp_Vec, D1v: gp_Vec + ) -> None: ... @staticmethod - def D2(S: BRepAdaptor_Surface, u: float, v: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... + def D2( + S: BRepAdaptor_Surface, + u: float, + v: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... @staticmethod - def D3(S: BRepAdaptor_Surface, u: float, v: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D3( + S: BRepAdaptor_Surface, + u: float, + v: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... @staticmethod def DN(S: BRepAdaptor_Surface, u: float, v: float, Nu: int, Nv: int) -> gp_Vec: ... @staticmethod @@ -302,43 +662,105 @@ class BRepApprox_SurfaceTool: @staticmethod def Torus(S: BRepAdaptor_Surface) -> gp_Torus: ... @staticmethod - def UIntervals(S: BRepAdaptor_Surface, T: TColStd_Array1OfReal, Sh: GeomAbs_Shape) -> None: ... + def UIntervals( + S: BRepAdaptor_Surface, T: TColStd_Array1OfReal, Sh: GeomAbs_Shape + ) -> None: ... @staticmethod def UPeriod(S: BRepAdaptor_Surface) -> float: ... @staticmethod def UResolution(S: BRepAdaptor_Surface, R3d: float) -> float: ... @staticmethod - def UTrim(S: BRepAdaptor_Surface, First: float, Last: float, Tol: float) -> Adaptor3d_Surface: ... + def UTrim( + S: BRepAdaptor_Surface, First: float, Last: float, Tol: float + ) -> Adaptor3d_Surface: ... @staticmethod - def VIntervals(S: BRepAdaptor_Surface, T: TColStd_Array1OfReal, Sh: GeomAbs_Shape) -> None: ... + def VIntervals( + S: BRepAdaptor_Surface, T: TColStd_Array1OfReal, Sh: GeomAbs_Shape + ) -> None: ... @staticmethod def VPeriod(S: BRepAdaptor_Surface) -> float: ... @staticmethod def VResolution(S: BRepAdaptor_Surface, R3d: float) -> float: ... @staticmethod - def VTrim(S: BRepAdaptor_Surface, First: float, Last: float, Tol: float) -> Adaptor3d_Surface: ... + def VTrim( + S: BRepAdaptor_Surface, First: float, Last: float, Tol: float + ) -> Adaptor3d_Surface: ... @staticmethod def Value(S: BRepAdaptor_Surface, u: float, v: float) -> gp_Pnt: ... class BRepApprox_TheComputeLineBezierOfApprox: @overload - def __init__(self, Line: BRepApprox_TheMultiLineOfApprox, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-3, Tolerance2d: Optional[float] = 1.0e-6, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Line: BRepApprox_TheMultiLineOfApprox, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def __init__( + self, + Line: BRepApprox_TheMultiLineOfApprox, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-3, + Tolerance2d: Optional[float] = 1.0e-6, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Line: BRepApprox_TheMultiLineOfApprox, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def ChangeValue(self, Index: Optional[int] = 1) -> AppParCurves_MultiCurve: ... def Error(self, Index: int) -> Tuple[float, float]: ... - def Init(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def Init( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def IsAllApproximated(self) -> bool: ... def IsToleranceReached(self) -> bool: ... def NbMultiCurves(self) -> int: ... def Parameters(self, Index: Optional[int] = 1) -> TColStd_Array1OfReal: ... def Parametrization(self) -> Approx_ParametrizationType: ... def Perform(self, Line: BRepApprox_TheMultiLineOfApprox) -> None: ... - def SetConstraints(self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint) -> None: ... + def SetConstraints( + self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint + ) -> None: ... def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... def SetTolerances(self, Tolerance3d: float, Tolerance2d: float) -> None: ... def SplineValue(self) -> AppParCurves_MultiBSpCurve: ... @@ -346,41 +768,109 @@ class BRepApprox_TheComputeLineBezierOfApprox: class BRepApprox_TheComputeLineOfApprox: @overload - def __init__(self, Line: BRepApprox_TheMultiLineOfApprox, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-3, Tolerance2d: Optional[float] = 1.0e-6, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Line: BRepApprox_TheMultiLineOfApprox, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def __init__( + self, + Line: BRepApprox_TheMultiLineOfApprox, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-3, + Tolerance2d: Optional[float] = 1.0e-6, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Line: BRepApprox_TheMultiLineOfApprox, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def ChangeValue(self) -> AppParCurves_MultiBSpCurve: ... def Error(self) -> Tuple[float, float]: ... - def Init(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def Init( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def Interpol(self, Line: BRepApprox_TheMultiLineOfApprox) -> None: ... def IsAllApproximated(self) -> bool: ... def IsToleranceReached(self) -> bool: ... def Parameters(self) -> TColStd_Array1OfReal: ... def Perform(self, Line: BRepApprox_TheMultiLineOfApprox) -> None: ... - def SetConstraints(self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint) -> None: ... + def SetConstraints( + self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint + ) -> None: ... def SetContinuity(self, C: int) -> None: ... def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... def SetKnots(self, Knots: TColStd_Array1OfReal) -> None: ... - def SetKnotsAndMultiplicities(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> None: ... + def SetKnotsAndMultiplicities( + self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger + ) -> None: ... def SetParameters(self, ThePar: math_Vector) -> None: ... def SetPeriodic(self, thePeriodic: bool) -> None: ... def SetTolerances(self, Tolerance3d: float, Tolerance2d: float) -> None: ... def Value(self) -> AppParCurves_MultiBSpCurve: ... -class BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox(math_FunctionSetWithDerivatives): +class BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox( + math_FunctionSetWithDerivatives +): def __init__(self, S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface) -> None: ... def AuxillarSurface1(self) -> BRepAdaptor_Surface: ... def AuxillarSurface2(self) -> BRepAdaptor_Surface: ... - def ComputeParameters(self, ChoixIso: IntImp_ConstIsoparametric, Param: TColStd_Array1OfReal, UVap: math_Vector, BornInf: math_Vector, BornSup: math_Vector, Tolerance: math_Vector) -> None: ... + def ComputeParameters( + self, + ChoixIso: IntImp_ConstIsoparametric, + Param: TColStd_Array1OfReal, + UVap: math_Vector, + BornInf: math_Vector, + BornSup: math_Vector, + Tolerance: math_Vector, + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def Direction(self) -> gp_Dir: ... def DirectionOnS1(self) -> gp_Dir2d: ... def DirectionOnS2(self) -> gp_Dir2d: ... - def IsTangent(self, UVap: math_Vector, Param: TColStd_Array1OfReal) -> Tuple[bool, IntImp_ConstIsoparametric]: ... + def IsTangent( + self, UVap: math_Vector, Param: TColStd_Array1OfReal + ) -> Tuple[bool, IntImp_ConstIsoparametric]: ... def NbEquations(self) -> int: ... def NbVariables(self) -> int: ... def Point(self) -> gp_Pnt: ... @@ -393,44 +883,114 @@ class BRepApprox_TheImpPrmSvSurfacesOfApprox(ApproxInt_SvSurfaces): def __init__(self, Surf1: BRepAdaptor_Surface, Surf2: IntSurf_Quadric) -> None: ... @overload def __init__(self, Surf1: IntSurf_Quadric, Surf2: BRepAdaptor_Surface) -> None: ... - def Compute(self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d) -> Tuple[bool, float, float, float, float]: ... + def Compute( + self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d + ) -> Tuple[bool, float, float, float, float]: ... def Pnt(self, u1: float, v1: float, u2: float, v2: float, P: gp_Pnt) -> None: ... - def SeekPoint(self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S) -> bool: ... - def Tangency(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec) -> bool: ... - def TangencyOnSurf1(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... - def TangencyOnSurf2(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... + def SeekPoint( + self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S + ) -> bool: ... + def Tangency( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec + ) -> bool: ... + def TangencyOnSurf1( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... + def TangencyOnSurf2( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... class BRepApprox_TheInt2SOfThePrmPrmSvSurfacesOfApprox: @overload - def __init__(self, Param: TColStd_Array1OfReal, S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface, TolTangency: float) -> None: ... - @overload - def __init__(self, S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface, TolTangency: float) -> None: ... + def __init__( + self, + Param: TColStd_Array1OfReal, + S1: BRepAdaptor_Surface, + S2: BRepAdaptor_Surface, + TolTangency: float, + ) -> None: ... + @overload + def __init__( + self, S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface, TolTangency: float + ) -> None: ... def ChangePoint(self) -> IntSurf_PntOn2S: ... def Direction(self) -> gp_Dir: ... def DirectionOnS1(self) -> gp_Dir2d: ... def DirectionOnS2(self) -> gp_Dir2d: ... - def Function(self) -> BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox: ... + def Function( + self, + ) -> BRepApprox_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfApprox: ... def IsDone(self) -> bool: ... def IsEmpty(self) -> bool: ... def IsTangent(self) -> bool: ... @overload - def Perform(self, Param: TColStd_Array1OfReal, Rsnld: math_FunctionSetRoot) -> IntImp_ConstIsoparametric: ... + def Perform( + self, Param: TColStd_Array1OfReal, Rsnld: math_FunctionSetRoot + ) -> IntImp_ConstIsoparametric: ... @overload - def Perform(self, Param: TColStd_Array1OfReal, Rsnld: math_FunctionSetRoot, ChoixIso: IntImp_ConstIsoparametric) -> IntImp_ConstIsoparametric: ... + def Perform( + self, + Param: TColStd_Array1OfReal, + Rsnld: math_FunctionSetRoot, + ChoixIso: IntImp_ConstIsoparametric, + ) -> IntImp_ConstIsoparametric: ... def Point(self) -> IntSurf_PntOn2S: ... class BRepApprox_TheMultiLineOfApprox: @overload def __init__(self) -> None: ... @overload - def __init__(self, line: BRepApprox_ApproxLine, PtrSvSurfaces: None, NbP3d: int, NbP2d: int, ApproxU1V1: bool, ApproxU2V2: bool, xo: float, yo: float, zo: float, u1o: float, v1o: float, u2o: float, v2o: float, P2DOnFirst: bool, IndMin: Optional[int] = 0, IndMax: Optional[int] = 0) -> None: ... - @overload - def __init__(self, line: BRepApprox_ApproxLine, NbP3d: int, NbP2d: int, ApproxU1V1: bool, ApproxU2V2: bool, xo: float, yo: float, zo: float, u1o: float, v1o: float, u2o: float, v2o: float, P2DOnFirst: bool, IndMin: Optional[int] = 0, IndMax: Optional[int] = 0) -> None: ... + def __init__( + self, + line: BRepApprox_ApproxLine, + PtrSvSurfaces: None, + NbP3d: int, + NbP2d: int, + ApproxU1V1: bool, + ApproxU2V2: bool, + xo: float, + yo: float, + zo: float, + u1o: float, + v1o: float, + u2o: float, + v2o: float, + P2DOnFirst: bool, + IndMin: Optional[int] = 0, + IndMax: Optional[int] = 0, + ) -> None: ... + @overload + def __init__( + self, + line: BRepApprox_ApproxLine, + NbP3d: int, + NbP2d: int, + ApproxU1V1: bool, + ApproxU2V2: bool, + xo: float, + yo: float, + zo: float, + u1o: float, + v1o: float, + u2o: float, + v2o: float, + P2DOnFirst: bool, + IndMin: Optional[int] = 0, + IndMax: Optional[int] = 0, + ) -> None: ... def Dump(self) -> None: ... def FirstPoint(self) -> int: ... def LastPoint(self) -> int: ... - def MakeMLBetween(self, Low: int, High: int, NbPointsToInsert: int) -> BRepApprox_TheMultiLineOfApprox: ... - def MakeMLOneMorePoint(self, Low: int, High: int, indbad: int, OtherLine: BRepApprox_TheMultiLineOfApprox) -> bool: ... + def MakeMLBetween( + self, Low: int, High: int, NbPointsToInsert: int + ) -> BRepApprox_TheMultiLineOfApprox: ... + def MakeMLOneMorePoint( + self, + Low: int, + High: int, + indbad: int, + OtherLine: BRepApprox_TheMultiLineOfApprox, + ) -> bool: ... def NbP2d(self) -> int: ... def NbP3d(self) -> int: ... @overload @@ -438,25 +998,40 @@ class BRepApprox_TheMultiLineOfApprox: @overload def Tangency(self, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d) -> bool: ... @overload - def Tangency(self, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Tangency( + self, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d + ) -> bool: ... @overload def Value(self, MPointIndex: int, tabPt: TColgp_Array1OfPnt) -> None: ... @overload def Value(self, MPointIndex: int, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... @overload - def Value(self, MPointIndex: int, tabPt: TColgp_Array1OfPnt, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... + def Value( + self, MPointIndex: int, tabPt: TColgp_Array1OfPnt, tabPt2d: TColgp_Array1OfPnt2d + ) -> None: ... def WhatStatus(self) -> Approx_Status: ... class BRepApprox_TheMultiLineToolOfApprox: @overload @staticmethod - def Curvature(ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabV: TColgp_Array1OfVec) -> bool: ... + def Curvature( + ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabV: TColgp_Array1OfVec + ) -> bool: ... @overload @staticmethod - def Curvature(ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Curvature( + ML: BRepApprox_TheMultiLineOfApprox, + MPointIndex: int, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @overload @staticmethod - def Curvature(ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Curvature( + ML: BRepApprox_TheMultiLineOfApprox, + MPointIndex: int, + tabV: TColgp_Array1OfVec, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @staticmethod def Dump(ML: BRepApprox_TheMultiLineOfApprox) -> None: ... @staticmethod @@ -464,44 +1039,90 @@ class BRepApprox_TheMultiLineToolOfApprox: @staticmethod def LastPoint(ML: BRepApprox_TheMultiLineOfApprox) -> int: ... @staticmethod - def MakeMLBetween(ML: BRepApprox_TheMultiLineOfApprox, I1: int, I2: int, NbPMin: int) -> BRepApprox_TheMultiLineOfApprox: ... + def MakeMLBetween( + ML: BRepApprox_TheMultiLineOfApprox, I1: int, I2: int, NbPMin: int + ) -> BRepApprox_TheMultiLineOfApprox: ... @staticmethod - def MakeMLOneMorePoint(ML: BRepApprox_TheMultiLineOfApprox, I1: int, I2: int, indbad: int, OtherLine: BRepApprox_TheMultiLineOfApprox) -> bool: ... + def MakeMLOneMorePoint( + ML: BRepApprox_TheMultiLineOfApprox, + I1: int, + I2: int, + indbad: int, + OtherLine: BRepApprox_TheMultiLineOfApprox, + ) -> bool: ... @staticmethod def NbP2d(ML: BRepApprox_TheMultiLineOfApprox) -> int: ... @staticmethod def NbP3d(ML: BRepApprox_TheMultiLineOfApprox) -> int: ... @overload @staticmethod - def Tangency(ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabV: TColgp_Array1OfVec) -> bool: ... + def Tangency( + ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabV: TColgp_Array1OfVec + ) -> bool: ... @overload @staticmethod - def Tangency(ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Tangency( + ML: BRepApprox_TheMultiLineOfApprox, + MPointIndex: int, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @overload @staticmethod - def Tangency(ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Tangency( + ML: BRepApprox_TheMultiLineOfApprox, + MPointIndex: int, + tabV: TColgp_Array1OfVec, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @overload @staticmethod - def Value(ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabPt: TColgp_Array1OfPnt) -> None: ... + def Value( + ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabPt: TColgp_Array1OfPnt + ) -> None: ... @overload @staticmethod - def Value(ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... + def Value( + ML: BRepApprox_TheMultiLineOfApprox, + MPointIndex: int, + tabPt2d: TColgp_Array1OfPnt2d, + ) -> None: ... @overload @staticmethod - def Value(ML: BRepApprox_TheMultiLineOfApprox, MPointIndex: int, tabPt: TColgp_Array1OfPnt, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... + def Value( + ML: BRepApprox_TheMultiLineOfApprox, + MPointIndex: int, + tabPt: TColgp_Array1OfPnt, + tabPt2d: TColgp_Array1OfPnt2d, + ) -> None: ... @staticmethod - def WhatStatus(ML: BRepApprox_TheMultiLineOfApprox, I1: int, I2: int) -> Approx_Status: ... + def WhatStatus( + ML: BRepApprox_TheMultiLineOfApprox, I1: int, I2: int + ) -> Approx_Status: ... class BRepApprox_ThePrmPrmSvSurfacesOfApprox(ApproxInt_SvSurfaces): - def __init__(self, Surf1: BRepAdaptor_Surface, Surf2: BRepAdaptor_Surface) -> None: ... - def Compute(self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d) -> Tuple[bool, float, float, float, float]: ... + def __init__( + self, Surf1: BRepAdaptor_Surface, Surf2: BRepAdaptor_Surface + ) -> None: ... + def Compute( + self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d + ) -> Tuple[bool, float, float, float, float]: ... def Pnt(self, u1: float, v1: float, u2: float, v2: float, P: gp_Pnt) -> None: ... - def SeekPoint(self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S) -> bool: ... - def Tangency(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec) -> bool: ... - def TangencyOnSurf1(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... - def TangencyOnSurf2(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... + def SeekPoint( + self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S + ) -> bool: ... + def Tangency( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec + ) -> bool: ... + def TangencyOnSurf1( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... + def TangencyOnSurf2( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... -class BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(math_FunctionSetWithDerivatives): +class BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox( + math_FunctionSetWithDerivatives +): @overload def __init__(self) -> None: ... @overload @@ -530,4 +1151,3 @@ class BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox(math_FunctionSetWith # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepBlend.pyi b/src/SWIG_files/wrapper/BRepBlend.pyi index 54929de64..2dc334f76 100644 --- a/src/SWIG_files/wrapper/BRepBlend.pyi +++ b/src/SWIG_files/wrapper/BRepBlend.pyi @@ -31,50 +31,105 @@ BRepBlend_ConstRad = NewType("BRepBlend_ConstRad", BlendFunc_ConstRad) BRepBlend_ConstRadInv = NewType("BRepBlend_ConstRadInv", BlendFunc_ConstRadInv) BRepBlend_ConstThroat = NewType("BRepBlend_ConstThroat", BlendFunc_ConstThroat) BRepBlend_ConstThroatInv = NewType("BRepBlend_ConstThroatInv", BlendFunc_ConstThroatInv) -BRepBlend_ConstThroatWithPenetration = NewType("BRepBlend_ConstThroatWithPenetration", BlendFunc_ConstThroatWithPenetration) -BRepBlend_ConstThroatWithPenetrationInv = NewType("BRepBlend_ConstThroatWithPenetrationInv", BlendFunc_ConstThroatWithPenetrationInv) +BRepBlend_ConstThroatWithPenetration = NewType( + "BRepBlend_ConstThroatWithPenetration", BlendFunc_ConstThroatWithPenetration +) +BRepBlend_ConstThroatWithPenetrationInv = NewType( + "BRepBlend_ConstThroatWithPenetrationInv", BlendFunc_ConstThroatWithPenetrationInv +) BRepBlend_EvolRad = NewType("BRepBlend_EvolRad", BlendFunc_EvolRad) BRepBlend_EvolRadInv = NewType("BRepBlend_EvolRadInv", BlendFunc_EvolRadInv) BRepBlend_Ruled = NewType("BRepBlend_Ruled", BlendFunc_Ruled) BRepBlend_RuledInv = NewType("BRepBlend_RuledInv", BlendFunc_RuledInv) class BRepBlend_SequenceOfLine: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class BRepBlend_SequenceOfPointOnRst: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class BRepBlend_SequenceOfPointOnRst: + def Assign(self, theItem: BRepBlend_PointOnRst) -> BRepBlend_PointOnRst: ... def Clear(self) -> None: ... def First(self) -> BRepBlend_PointOnRst: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> BRepBlend_PointOnRst: ... def Length(self) -> int: ... - def Append(self, theItem: BRepBlend_PointOnRst) -> BRepBlend_PointOnRst: ... + def Lower(self) -> int: ... def Prepend(self, theItem: BRepBlend_PointOnRst) -> BRepBlend_PointOnRst: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BRepBlend_PointOnRst: ... def SetValue(self, theIndex: int, theValue: BRepBlend_PointOnRst) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> BRepBlend_PointOnRst: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class BRepBlend_AppFuncRoot(Approx_SweepFunction): def BarycentreOfSurf(self) -> gp_Pnt: ... - def D0(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> bool: ... - def D1(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - def D2(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def D0( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> bool: ... + def D1( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + def D2( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: TColStd_Array1OfReal) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: TColStd_Array1OfReal, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... @@ -82,7 +137,9 @@ class BRepBlend_AppFuncRoot(Approx_SweepFunction): def Mults(self, TMults: TColStd_Array1OfInteger) -> None: ... def Nb2dCurves(self) -> int: ... def NbIntervals(self, S: GeomAbs_Shape) -> int: ... - def Point(self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point) -> None: ... + def Point( + self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point + ) -> None: ... def Resolution(self, Index: int, Tol: float) -> Tuple[float, float]: ... def SectionShape(self) -> Tuple[int, int, int]: ... def SetInterval(self, First: float, Last: float) -> None: ... @@ -93,24 +150,55 @@ class BRepBlend_AppSurf(AppBlend_Approx): @overload def __init__(self) -> None: ... @overload - def __init__(self, Degmin: int, Degmax: int, Tol3d: float, Tol2d: float, NbIt: int, KnownParameters: Optional[bool] = False) -> None: ... + def __init__( + self, + Degmin: int, + Degmax: int, + Tol3d: float, + Tol2d: float, + NbIt: int, + KnownParameters: Optional[bool] = False, + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def CriteriumWeight(self) -> Tuple[float, float, float]: ... - def Curve2d(self, Index: int, TPoles: TColgp_Array1OfPnt2d, TKnots: TColStd_Array1OfReal, TMults: TColStd_Array1OfInteger) -> None: ... + def Curve2d( + self, + Index: int, + TPoles: TColgp_Array1OfPnt2d, + TKnots: TColStd_Array1OfReal, + TMults: TColStd_Array1OfInteger, + ) -> None: ... def Curve2dPoles(self, Index: int) -> TColgp_Array1OfPnt2d: ... def Curves2dDegree(self) -> int: ... def Curves2dKnots(self) -> TColStd_Array1OfReal: ... def Curves2dMults(self) -> TColStd_Array1OfInteger: ... def Curves2dShape(self) -> Tuple[int, int, int]: ... - def Init(self, Degmin: int, Degmax: int, Tol3d: float, Tol2d: float, NbIt: int, KnownParameters: Optional[bool] = False) -> None: ... + def Init( + self, + Degmin: int, + Degmax: int, + Tol3d: float, + Tol2d: float, + NbIt: int, + KnownParameters: Optional[bool] = False, + ) -> None: ... def IsDone(self) -> bool: ... def NbCurves2d(self) -> int: ... def ParType(self) -> Approx_ParametrizationType: ... @overload - def Perform(self, Lin: BRepBlend_Line, SecGen: Blend_AppFunction, SpApprox: Optional[bool] = False) -> None: ... - @overload - def Perform(self, Lin: BRepBlend_Line, SecGen: Blend_AppFunction, NbMaxP: int) -> None: ... - def PerformSmoothing(self, Lin: BRepBlend_Line, SecGen: Blend_AppFunction) -> None: ... + def Perform( + self, + Lin: BRepBlend_Line, + SecGen: Blend_AppFunction, + SpApprox: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, Lin: BRepBlend_Line, SecGen: Blend_AppFunction, NbMaxP: int + ) -> None: ... + def PerformSmoothing( + self, Lin: BRepBlend_Line, SecGen: Blend_AppFunction + ) -> None: ... def SetContinuity(self, C: GeomAbs_Shape) -> None: ... def SetCriteriumWeight(self, W1: float, W2: float, W3: float) -> None: ... def SetParType(self, ParType: Approx_ParametrizationType) -> None: ... @@ -121,15 +209,40 @@ class BRepBlend_AppSurf(AppBlend_Approx): def SurfVKnots(self) -> TColStd_Array1OfReal: ... def SurfVMults(self) -> TColStd_Array1OfInteger: ... def SurfWeights(self) -> TColStd_Array2OfReal: ... - def Surface(self, TPoles: TColgp_Array2OfPnt, TWeights: TColStd_Array2OfReal, TUKnots: TColStd_Array1OfReal, TVKnots: TColStd_Array1OfReal, TUMults: TColStd_Array1OfInteger, TVMults: TColStd_Array1OfInteger) -> None: ... + def Surface( + self, + TPoles: TColgp_Array2OfPnt, + TWeights: TColStd_Array2OfReal, + TUKnots: TColStd_Array1OfReal, + TVKnots: TColStd_Array1OfReal, + TUMults: TColStd_Array1OfInteger, + TVMults: TColStd_Array1OfInteger, + ) -> None: ... def TolCurveOnSurf(self, Index: int) -> float: ... def TolReached(self) -> Tuple[float, float]: ... def UDegree(self) -> int: ... def VDegree(self) -> int: ... class BRepBlend_AppSurface(AppBlend_Approx): - def __init__(self, Funct: Approx_SweepFunction, First: float, Last: float, Tol3d: float, Tol2d: float, TolAngular: float, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C0, Degmax: Optional[int] = 11, Segmax: Optional[int] = 50) -> None: ... - def Curve2d(self, Index: int, TPoles: TColgp_Array1OfPnt2d, TKnots: TColStd_Array1OfReal, TMults: TColStd_Array1OfInteger) -> None: ... + def __init__( + self, + Funct: Approx_SweepFunction, + First: float, + Last: float, + Tol3d: float, + Tol2d: float, + TolAngular: float, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C0, + Degmax: Optional[int] = 11, + Segmax: Optional[int] = 50, + ) -> None: ... + def Curve2d( + self, + Index: int, + TPoles: TColgp_Array1OfPnt2d, + TKnots: TColStd_Array1OfReal, + TMults: TColStd_Array1OfInteger, + ) -> None: ... def Curve2dPoles(self, Index: int) -> TColgp_Array1OfPnt2d: ... def Curves2dDegree(self) -> int: ... def Curves2dKnots(self) -> TColStd_Array1OfReal: ... @@ -147,7 +260,15 @@ class BRepBlend_AppSurface(AppBlend_Approx): def SurfVKnots(self) -> TColStd_Array1OfReal: ... def SurfVMults(self) -> TColStd_Array1OfInteger: ... def SurfWeights(self) -> TColStd_Array2OfReal: ... - def Surface(self, TPoles: TColgp_Array2OfPnt, TWeights: TColStd_Array2OfReal, TUKnots: TColStd_Array1OfReal, TVKnots: TColStd_Array1OfReal, TUMults: TColStd_Array1OfInteger, TVMults: TColStd_Array1OfInteger) -> None: ... + def Surface( + self, + TPoles: TColgp_Array2OfPnt, + TWeights: TColStd_Array2OfReal, + TUKnots: TColStd_Array1OfReal, + TVKnots: TColStd_Array1OfReal, + TUMults: TColStd_Array1OfInteger, + TVMults: TColStd_Array1OfInteger, + ) -> None: ... def TolCurveOnSurf(self, Index: int) -> float: ... def UDegree(self) -> int: ... def VDegree(self) -> int: ... @@ -156,9 +277,13 @@ class BRepBlend_BlendTool: @staticmethod def Bounds(C: Adaptor2d_Curve2d) -> Tuple[float, float]: ... @staticmethod - def CurveOnSurf(C: Adaptor2d_Curve2d, S: Adaptor3d_Surface) -> Adaptor2d_Curve2d: ... + def CurveOnSurf( + C: Adaptor2d_Curve2d, S: Adaptor3d_Surface + ) -> Adaptor2d_Curve2d: ... @staticmethod - def Inters(P1: gp_Pnt2d, P2: gp_Pnt2d, S: Adaptor3d_Surface, C: Adaptor2d_Curve2d) -> Tuple[bool, float, float]: ... + def Inters( + P1: gp_Pnt2d, P2: gp_Pnt2d, S: Adaptor3d_Surface, C: Adaptor2d_Curve2d + ) -> Tuple[bool, float, float]: ... @staticmethod def NbSamplesU(S: Adaptor3d_Surface, u1: float, u2: float) -> int: ... @staticmethod @@ -166,7 +291,9 @@ class BRepBlend_BlendTool: @staticmethod def Parameter(V: Adaptor3d_HVertex, A: Adaptor2d_Curve2d) -> float: ... @staticmethod - def Project(P: gp_Pnt2d, S: Adaptor3d_Surface, C: Adaptor2d_Curve2d) -> Tuple[bool, float, float]: ... + def Project( + P: gp_Pnt2d, S: Adaptor3d_Surface, C: Adaptor2d_Curve2d + ) -> Tuple[bool, float, float]: ... @staticmethod def SingularOnUMax(S: Adaptor3d_Surface) -> bool: ... @staticmethod @@ -196,12 +323,28 @@ class BRepBlend_Extremity: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, U: float, V: float, Param: float, Tol: float) -> None: ... + def __init__( + self, P: gp_Pnt, U: float, V: float, Param: float, Tol: float + ) -> None: ... @overload - def __init__(self, P: gp_Pnt, U: float, V: float, Param: float, Tol: float, Vtx: Adaptor3d_HVertex) -> None: ... + def __init__( + self, + P: gp_Pnt, + U: float, + V: float, + Param: float, + Tol: float, + Vtx: Adaptor3d_HVertex, + ) -> None: ... @overload def __init__(self, P: gp_Pnt, W: float, Param: float, Tol: float) -> None: ... - def AddArc(self, A: Adaptor2d_Curve2d, Param: float, TLine: IntSurf_Transition, TArc: IntSurf_Transition) -> None: ... + def AddArc( + self, + A: Adaptor2d_Curve2d, + Param: float, + TLine: IntSurf_Transition, + TArc: IntSurf_Transition, + ) -> None: ... def HasTangent(self) -> bool: ... def IsVertex(self) -> bool: ... def NbPointOnRst(self) -> int: ... @@ -211,9 +354,19 @@ class BRepBlend_Extremity: def PointOnRst(self, Index: int) -> BRepBlend_PointOnRst: ... def SetTangent(self, Tangent: gp_Vec) -> None: ... @overload - def SetValue(self, P: gp_Pnt, U: float, V: float, Param: float, Tol: float) -> None: ... + def SetValue( + self, P: gp_Pnt, U: float, V: float, Param: float, Tol: float + ) -> None: ... @overload - def SetValue(self, P: gp_Pnt, U: float, V: float, Param: float, Tol: float, Vtx: Adaptor3d_HVertex) -> None: ... + def SetValue( + self, + P: gp_Pnt, + U: float, + V: float, + Param: float, + Tol: float, + Vtx: Adaptor3d_HVertex, + ) -> None: ... @overload def SetValue(self, P: gp_Pnt, W: float, Param: float, Tol: float) -> None: ... def SetVertex(self, V: Adaptor3d_HVertex) -> None: ... @@ -236,9 +389,18 @@ class BRepBlend_HCurve2dTool: @staticmethod def D1(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... @staticmethod - def D2(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @staticmethod - def D3(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + C: Adaptor2d_Curve2d, + U: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... @staticmethod def DN(C: Adaptor2d_Curve2d, U: float, N: int) -> gp_Vec2d: ... @staticmethod @@ -250,7 +412,9 @@ class BRepBlend_HCurve2dTool: @staticmethod def Hyperbola(C: Adaptor2d_Curve2d) -> gp_Hypr2d: ... @staticmethod - def Intervals(C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def Intervals( + C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... @staticmethod def IsClosed(C: Adaptor2d_Curve2d) -> bool: ... @staticmethod @@ -288,7 +452,9 @@ class BRepBlend_HCurveTool: @staticmethod def D2(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... @staticmethod - def D3(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @staticmethod def DN(C: Adaptor3d_Curve, U: float, N: int) -> gp_Vec: ... @staticmethod @@ -300,7 +466,9 @@ class BRepBlend_HCurveTool: @staticmethod def Hyperbola(C: Adaptor3d_Curve) -> gp_Hypr: ... @staticmethod - def Intervals(C: Adaptor3d_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def Intervals( + C: Adaptor3d_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... @staticmethod def IsClosed(C: Adaptor3d_Curve) -> bool: ... @staticmethod @@ -337,8 +505,12 @@ class BRepBlend_Line(Standard_Transient): def Set(self, TranS1: IntSurf_TypeTrans, TranS2: IntSurf_TypeTrans) -> None: ... @overload def Set(self, Trans: IntSurf_TypeTrans) -> None: ... - def SetEndPoints(self, EndPt1: BRepBlend_Extremity, EndPt2: BRepBlend_Extremity) -> None: ... - def SetStartPoints(self, StartPt1: BRepBlend_Extremity, StartPt2: BRepBlend_Extremity) -> None: ... + def SetEndPoints( + self, EndPt1: BRepBlend_Extremity, EndPt2: BRepBlend_Extremity + ) -> None: ... + def SetStartPoints( + self, StartPt1: BRepBlend_Extremity, StartPt2: BRepBlend_Extremity + ) -> None: ... def StartPointOnFirst(self) -> BRepBlend_Extremity: ... def StartPointOnSecond(self) -> BRepBlend_Extremity: ... def TransitionOnS(self) -> IntSurf_TypeTrans: ... @@ -349,17 +521,45 @@ class BRepBlend_PointOnRst: @overload def __init__(self) -> None: ... @overload - def __init__(self, A: Adaptor2d_Curve2d, Param: float, TLine: IntSurf_Transition, TArc: IntSurf_Transition) -> None: ... + def __init__( + self, + A: Adaptor2d_Curve2d, + Param: float, + TLine: IntSurf_Transition, + TArc: IntSurf_Transition, + ) -> None: ... def Arc(self) -> Adaptor2d_Curve2d: ... def ParameterOnArc(self) -> float: ... - def SetArc(self, A: Adaptor2d_Curve2d, Param: float, TLine: IntSurf_Transition, TArc: IntSurf_Transition) -> None: ... + def SetArc( + self, + A: Adaptor2d_Curve2d, + Param: float, + TLine: IntSurf_Transition, + TArc: IntSurf_Transition, + ) -> None: ... def TransitionOnArc(self) -> IntSurf_Transition: ... def TransitionOnLine(self) -> IntSurf_Transition: ... class BRepBlend_RstRstConstRad(Blend_RstRstFunction): - def __init__(self, Surf1: Adaptor3d_Surface, Rst1: Adaptor2d_Curve2d, Surf2: Adaptor3d_Surface, Rst2: Adaptor2d_Curve2d, CGuide: Adaptor3d_Curve) -> None: ... - def CenterCircleRst1Rst2(self, PtRst1: gp_Pnt, PtRst2: gp_Pnt, np: gp_Vec, Center: gp_Pnt, VdMed: gp_Vec) -> bool: ... - def Decroch(self, Sol: math_Vector, NRst1: gp_Vec, TgRst1: gp_Vec, NRst2: gp_Vec, TgRst2: gp_Vec) -> Blend_DecrochStatus: ... + def __init__( + self, + Surf1: Adaptor3d_Surface, + Rst1: Adaptor2d_Curve2d, + Surf2: Adaptor3d_Surface, + Rst2: Adaptor2d_Curve2d, + CGuide: Adaptor3d_Curve, + ) -> None: ... + def CenterCircleRst1Rst2( + self, PtRst1: gp_Pnt, PtRst2: gp_Pnt, np: gp_Vec, Center: gp_Pnt, VdMed: gp_Vec + ) -> bool: ... + def Decroch( + self, + Sol: math_Vector, + NRst1: gp_Vec, + TgRst1: gp_Vec, + NRst2: gp_Vec, + TgRst2: gp_Vec, + ) -> Blend_DecrochStatus: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetMinimalDistance(self) -> float: ... @@ -369,7 +569,14 @@ class BRepBlend_RstRstConstRad(Blend_RstRstFunction): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -387,15 +594,50 @@ class BRepBlend_RstRstConstRad(Blend_RstRstFunction): def PointOnRst2(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U: float, V: float, C: gp_Circ) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Set(self, SurfRef1: Adaptor3d_Surface, RstRef1: Adaptor2d_Curve2d, SurfRef2: Adaptor3d_Surface, RstRef2: Adaptor2d_Curve2d) -> None: ... + def Section( + self, Param: float, U: float, V: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Set( + self, + SurfRef1: Adaptor3d_Surface, + RstRef1: Adaptor2d_Curve2d, + SurfRef2: Adaptor3d_Surface, + RstRef2: Adaptor2d_Curve2d, + ) -> None: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -412,9 +654,26 @@ class BRepBlend_RstRstConstRad(Blend_RstRstFunction): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BRepBlend_RstRstEvolRad(Blend_RstRstFunction): - def __init__(self, Surf1: Adaptor3d_Surface, Rst1: Adaptor2d_Curve2d, Surf2: Adaptor3d_Surface, Rst2: Adaptor2d_Curve2d, CGuide: Adaptor3d_Curve, Evol: Law_Function) -> None: ... - def CenterCircleRst1Rst2(self, PtRst1: gp_Pnt, PtRst2: gp_Pnt, np: gp_Vec, Center: gp_Pnt, VdMed: gp_Vec) -> bool: ... - def Decroch(self, Sol: math_Vector, NRst1: gp_Vec, TgRst1: gp_Vec, NRst2: gp_Vec, TgRst2: gp_Vec) -> Blend_DecrochStatus: ... + def __init__( + self, + Surf1: Adaptor3d_Surface, + Rst1: Adaptor2d_Curve2d, + Surf2: Adaptor3d_Surface, + Rst2: Adaptor2d_Curve2d, + CGuide: Adaptor3d_Curve, + Evol: Law_Function, + ) -> None: ... + def CenterCircleRst1Rst2( + self, PtRst1: gp_Pnt, PtRst2: gp_Pnt, np: gp_Vec, Center: gp_Pnt, VdMed: gp_Vec + ) -> bool: ... + def Decroch( + self, + Sol: math_Vector, + NRst1: gp_Vec, + TgRst1: gp_Vec, + NRst2: gp_Vec, + TgRst2: gp_Vec, + ) -> Blend_DecrochStatus: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetMinimalDistance(self) -> float: ... @@ -424,7 +683,14 @@ class BRepBlend_RstRstEvolRad(Blend_RstRstFunction): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -442,15 +708,50 @@ class BRepBlend_RstRstEvolRad(Blend_RstRstFunction): def PointOnRst2(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U: float, V: float, C: gp_Circ) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Set(self, SurfRef1: Adaptor3d_Surface, RstRef1: Adaptor2d_Curve2d, SurfRef2: Adaptor3d_Surface, RstRef2: Adaptor2d_Curve2d) -> None: ... + def Section( + self, Param: float, U: float, V: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Set( + self, + SurfRef1: Adaptor3d_Surface, + RstRef1: Adaptor2d_Curve2d, + SurfRef2: Adaptor3d_Surface, + RstRef2: Adaptor2d_Curve2d, + ) -> None: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -467,19 +768,69 @@ class BRepBlend_RstRstEvolRad(Blend_RstRstFunction): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BRepBlend_RstRstLineBuilder: - def __init__(self, Surf1: Adaptor3d_Surface, Rst1: Adaptor2d_Curve2d, Domain1: Adaptor3d_TopolTool, Surf2: Adaptor3d_Surface, Rst2: Adaptor2d_Curve2d, Domain2: Adaptor3d_TopolTool) -> None: ... - def Complete(self, Func: Blend_RstRstFunction, Finv1: Blend_SurfCurvFuncInv, FinvP1: Blend_CurvPointFuncInv, Finv2: Blend_SurfCurvFuncInv, FinvP2: Blend_CurvPointFuncInv, Pmin: float) -> bool: ... + def __init__( + self, + Surf1: Adaptor3d_Surface, + Rst1: Adaptor2d_Curve2d, + Domain1: Adaptor3d_TopolTool, + Surf2: Adaptor3d_Surface, + Rst2: Adaptor2d_Curve2d, + Domain2: Adaptor3d_TopolTool, + ) -> None: ... + def Complete( + self, + Func: Blend_RstRstFunction, + Finv1: Blend_SurfCurvFuncInv, + FinvP1: Blend_CurvPointFuncInv, + Finv2: Blend_SurfCurvFuncInv, + FinvP2: Blend_CurvPointFuncInv, + Pmin: float, + ) -> bool: ... def Decroch1End(self) -> bool: ... def Decroch1Start(self) -> bool: ... def Decroch2End(self) -> bool: ... def Decroch2Start(self) -> bool: ... def IsDone(self) -> bool: ... def Line(self) -> BRepBlend_Line: ... - def Perform(self, Func: Blend_RstRstFunction, Finv1: Blend_SurfCurvFuncInv, FinvP1: Blend_CurvPointFuncInv, Finv2: Blend_SurfCurvFuncInv, FinvP2: Blend_CurvPointFuncInv, Pdep: float, Pmax: float, MaxStep: float, Tol3d: float, TolGuide: float, Soldep: math_Vector, Fleche: float, Appro: Optional[bool] = False) -> None: ... - def PerformFirstSection(self, Func: Blend_RstRstFunction, Finv1: Blend_SurfCurvFuncInv, FinvP1: Blend_CurvPointFuncInv, Finv2: Blend_SurfCurvFuncInv, FinvP2: Blend_CurvPointFuncInv, Pdep: float, Pmax: float, Soldep: math_Vector, Tol3d: float, TolGuide: float, RecRst1: bool, RecP1: bool, RecRst2: bool, RecP2: bool, ParSol: math_Vector) -> Tuple[bool, float]: ... + def Perform( + self, + Func: Blend_RstRstFunction, + Finv1: Blend_SurfCurvFuncInv, + FinvP1: Blend_CurvPointFuncInv, + Finv2: Blend_SurfCurvFuncInv, + FinvP2: Blend_CurvPointFuncInv, + Pdep: float, + Pmax: float, + MaxStep: float, + Tol3d: float, + TolGuide: float, + Soldep: math_Vector, + Fleche: float, + Appro: Optional[bool] = False, + ) -> None: ... + def PerformFirstSection( + self, + Func: Blend_RstRstFunction, + Finv1: Blend_SurfCurvFuncInv, + FinvP1: Blend_CurvPointFuncInv, + Finv2: Blend_SurfCurvFuncInv, + FinvP2: Blend_CurvPointFuncInv, + Pdep: float, + Pmax: float, + Soldep: math_Vector, + Tol3d: float, + TolGuide: float, + RecRst1: bool, + RecP1: bool, + RecRst2: bool, + RecP2: bool, + ParSol: math_Vector, + ) -> Tuple[bool, float]: ... class BRepBlend_SurfCurvConstRadInv(Blend_SurfCurvFuncInv): - def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, Cg: Adaptor3d_Curve) -> None: ... + def __init__( + self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, Cg: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @@ -493,7 +844,13 @@ class BRepBlend_SurfCurvConstRadInv(Blend_SurfCurvFuncInv): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BRepBlend_SurfCurvEvolRadInv(Blend_SurfCurvFuncInv): - def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, Cg: Adaptor3d_Curve, Evol: Law_Function) -> None: ... + def __init__( + self, + S: Adaptor3d_Surface, + C: Adaptor3d_Curve, + Cg: Adaptor3d_Curve, + Evol: Law_Function, + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @@ -521,7 +878,9 @@ class BRepBlend_SurfPointConstRadInv(Blend_SurfPointFuncInv): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BRepBlend_SurfPointEvolRadInv(Blend_SurfPointFuncInv): - def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, Evol: Law_Function) -> None: ... + def __init__( + self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, Evol: Law_Function + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @@ -535,7 +894,13 @@ class BRepBlend_SurfPointEvolRadInv(Blend_SurfPointFuncInv): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BRepBlend_SurfRstConstRad(Blend_SurfRstFunction): - def __init__(self, Surf: Adaptor3d_Surface, SurfRst: Adaptor3d_Surface, Rst: Adaptor2d_Curve2d, CGuide: Adaptor3d_Curve) -> None: ... + def __init__( + self, + Surf: Adaptor3d_Surface, + SurfRst: Adaptor3d_Surface, + Rst: Adaptor2d_Curve2d, + CGuide: Adaptor3d_Curve, + ) -> None: ... def Decroch(self, Sol: math_Vector, NS: gp_Vec, TgS: gp_Vec) -> bool: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... @@ -546,7 +911,14 @@ class BRepBlend_SurfRstConstRad(Blend_SurfRstFunction): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -563,13 +935,42 @@ class BRepBlend_SurfRstConstRad(Blend_SurfRstFunction): def PointOnS(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U: float, V: float, W: float, C: gp_Circ) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, Param: float, U: float, V: float, W: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload def Set(self, SurfRef: Adaptor3d_Surface, RstRef: Adaptor2d_Curve2d) -> None: ... @overload @@ -588,7 +989,14 @@ class BRepBlend_SurfRstConstRad(Blend_SurfRstFunction): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BRepBlend_SurfRstEvolRad(Blend_SurfRstFunction): - def __init__(self, Surf: Adaptor3d_Surface, SurfRst: Adaptor3d_Surface, Rst: Adaptor2d_Curve2d, CGuide: Adaptor3d_Curve, Evol: Law_Function) -> None: ... + def __init__( + self, + Surf: Adaptor3d_Surface, + SurfRst: Adaptor3d_Surface, + Rst: Adaptor2d_Curve2d, + CGuide: Adaptor3d_Curve, + Evol: Law_Function, + ) -> None: ... def Decroch(self, Sol: math_Vector, NS: gp_Vec, TgS: gp_Vec) -> bool: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... @@ -599,7 +1007,14 @@ class BRepBlend_SurfRstEvolRad(Blend_SurfRstFunction): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -616,13 +1031,42 @@ class BRepBlend_SurfRstEvolRad(Blend_SurfRstFunction): def PointOnS(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U: float, V: float, W: float, C: gp_Circ) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, Param: float, U: float, V: float, W: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload def Set(self, SurfRef: Adaptor3d_Surface, RstRef: Adaptor2d_Curve2d) -> None: ... @overload @@ -641,18 +1085,72 @@ class BRepBlend_SurfRstEvolRad(Blend_SurfRstFunction): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BRepBlend_SurfRstLineBuilder: - def __init__(self, Surf1: Adaptor3d_Surface, Domain1: Adaptor3d_TopolTool, Surf2: Adaptor3d_Surface, Rst: Adaptor2d_Curve2d, Domain2: Adaptor3d_TopolTool) -> None: ... - def ArcToRecadre(self, Sol: math_Vector, PrevIndex: int, pt2d: gp_Pnt2d, lastpt2d: gp_Pnt2d) -> Tuple[int, float]: ... - def Complete(self, Func: Blend_SurfRstFunction, Finv: Blend_FuncInv, FinvP: Blend_SurfPointFuncInv, FinvC: Blend_SurfCurvFuncInv, Pmin: float) -> bool: ... + def __init__( + self, + Surf1: Adaptor3d_Surface, + Domain1: Adaptor3d_TopolTool, + Surf2: Adaptor3d_Surface, + Rst: Adaptor2d_Curve2d, + Domain2: Adaptor3d_TopolTool, + ) -> None: ... + def ArcToRecadre( + self, Sol: math_Vector, PrevIndex: int, pt2d: gp_Pnt2d, lastpt2d: gp_Pnt2d + ) -> Tuple[int, float]: ... + def Complete( + self, + Func: Blend_SurfRstFunction, + Finv: Blend_FuncInv, + FinvP: Blend_SurfPointFuncInv, + FinvC: Blend_SurfCurvFuncInv, + Pmin: float, + ) -> bool: ... def DecrochEnd(self) -> bool: ... def DecrochStart(self) -> bool: ... def IsDone(self) -> bool: ... def Line(self) -> BRepBlend_Line: ... - def Perform(self, Func: Blend_SurfRstFunction, Finv: Blend_FuncInv, FinvP: Blend_SurfPointFuncInv, FinvC: Blend_SurfCurvFuncInv, Pdep: float, Pmax: float, MaxStep: float, Tol3d: float, Tol2d: float, TolGuide: float, Soldep: math_Vector, Fleche: float, Appro: Optional[bool] = False) -> None: ... - def PerformFirstSection(self, Func: Blend_SurfRstFunction, Finv: Blend_FuncInv, FinvP: Blend_SurfPointFuncInv, FinvC: Blend_SurfCurvFuncInv, Pdep: float, Pmax: float, Soldep: math_Vector, Tol3d: float, Tol2d: float, TolGuide: float, RecRst: bool, RecP: bool, RecS: bool, ParSol: math_Vector) -> Tuple[bool, float]: ... + def Perform( + self, + Func: Blend_SurfRstFunction, + Finv: Blend_FuncInv, + FinvP: Blend_SurfPointFuncInv, + FinvC: Blend_SurfCurvFuncInv, + Pdep: float, + Pmax: float, + MaxStep: float, + Tol3d: float, + Tol2d: float, + TolGuide: float, + Soldep: math_Vector, + Fleche: float, + Appro: Optional[bool] = False, + ) -> None: ... + def PerformFirstSection( + self, + Func: Blend_SurfRstFunction, + Finv: Blend_FuncInv, + FinvP: Blend_SurfPointFuncInv, + FinvC: Blend_SurfCurvFuncInv, + Pdep: float, + Pmax: float, + Soldep: math_Vector, + Tol3d: float, + Tol2d: float, + TolGuide: float, + RecRst: bool, + RecP: bool, + RecS: bool, + ParSol: math_Vector, + ) -> Tuple[bool, float]: ... class BRepBlend_Walking: - def __init__(self, Surf1: Adaptor3d_Surface, Surf2: Adaptor3d_Surface, Domain1: Adaptor3d_TopolTool, Domain2: Adaptor3d_TopolTool, HGuide: ChFiDS_ElSpine) -> None: ... + def __init__( + self, + Surf1: Adaptor3d_Surface, + Surf2: Adaptor3d_Surface, + Domain1: Adaptor3d_TopolTool, + Domain2: Adaptor3d_TopolTool, + HGuide: ChFiDS_ElSpine, + ) -> None: ... def AddSingularPoint(self, P: Blend_Point) -> None: ... def Check(self, C: bool) -> None: ... def Check2d(self, C: bool) -> None: ... @@ -662,37 +1160,91 @@ class BRepBlend_Walking: @overload def Continu(self, F: Blend_Function, FInv: Blend_FuncInv, P: float) -> bool: ... @overload - def Continu(self, F: Blend_Function, FInv: Blend_FuncInv, P: float, OnS1: bool) -> bool: ... + def Continu( + self, F: Blend_Function, FInv: Blend_FuncInv, P: float, OnS1: bool + ) -> bool: ... def IsDone(self) -> bool: ... def Line(self) -> BRepBlend_Line: ... - def Perform(self, F: Blend_Function, FInv: Blend_FuncInv, Pdep: float, Pmax: float, MaxStep: float, Tol3d: float, TolGuide: float, Soldep: math_Vector, Fleche: float, Appro: Optional[bool] = False) -> None: ... - @overload - def PerformFirstSection(self, F: Blend_Function, Pdep: float, ParDep: math_Vector, Tol3d: float, TolGuide: float) -> Tuple[bool, TopAbs_State, TopAbs_State]: ... - @overload - def PerformFirstSection(self, F: Blend_Function, FInv: Blend_FuncInv, Pdep: float, Pmax: float, ParDep: math_Vector, Tol3d: float, TolGuide: float, RecOnS1: bool, RecOnS2: bool, ParSol: math_Vector) -> Tuple[bool, float]: ... - def SetDomainsToRecadre(self, RecDomain1: Adaptor3d_TopolTool, RecDomain2: Adaptor3d_TopolTool) -> None: ... + def Perform( + self, + F: Blend_Function, + FInv: Blend_FuncInv, + Pdep: float, + Pmax: float, + MaxStep: float, + Tol3d: float, + TolGuide: float, + Soldep: math_Vector, + Fleche: float, + Appro: Optional[bool] = False, + ) -> None: ... + @overload + def PerformFirstSection( + self, + F: Blend_Function, + Pdep: float, + ParDep: math_Vector, + Tol3d: float, + TolGuide: float, + ) -> Tuple[bool, TopAbs_State, TopAbs_State]: ... + @overload + def PerformFirstSection( + self, + F: Blend_Function, + FInv: Blend_FuncInv, + Pdep: float, + Pmax: float, + ParDep: math_Vector, + Tol3d: float, + TolGuide: float, + RecOnS1: bool, + RecOnS2: bool, + ParSol: math_Vector, + ) -> Tuple[bool, float]: ... + def SetDomainsToRecadre( + self, RecDomain1: Adaptor3d_TopolTool, RecDomain2: Adaptor3d_TopolTool + ) -> None: ... def TwistOnS1(self) -> bool: ... def TwistOnS2(self) -> bool: ... class BRepBlend_AppFunc(BRepBlend_AppFuncRoot): - def __init__(self, Line: BRepBlend_Line, Func: Blend_Function, Tol3d: float, Tol2d: float) -> None: ... - def Point(self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point) -> None: ... + def __init__( + self, Line: BRepBlend_Line, Func: Blend_Function, Tol3d: float, Tol2d: float + ) -> None: ... + def Point( + self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point + ) -> None: ... def Vec(self, Sol: math_Vector, Pnt: Blend_Point) -> None: ... class BRepBlend_AppFuncRst(BRepBlend_AppFuncRoot): - def __init__(self, Line: BRepBlend_Line, Func: Blend_SurfRstFunction, Tol3d: float, Tol2d: float) -> None: ... - def Point(self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point) -> None: ... + def __init__( + self, + Line: BRepBlend_Line, + Func: Blend_SurfRstFunction, + Tol3d: float, + Tol2d: float, + ) -> None: ... + def Point( + self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point + ) -> None: ... def Vec(self, Sol: math_Vector, Pnt: Blend_Point) -> None: ... class BRepBlend_AppFuncRstRst(BRepBlend_AppFuncRoot): - def __init__(self, Line: BRepBlend_Line, Func: Blend_RstRstFunction, Tol3d: float, Tol2d: float) -> None: ... - def Point(self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point) -> None: ... + def __init__( + self, + Line: BRepBlend_Line, + Func: Blend_RstRstFunction, + Tol3d: float, + Tol2d: float, + ) -> None: ... + def Point( + self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point + ) -> None: ... def Vec(self, Sol: math_Vector, Pnt: Blend_Point) -> None: ... -#classnotwrapped +# classnotwrapped class BRepBlend_CSWalking: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepBndLib.pyi b/src/SWIG_files/wrapper/BRepBndLib.pyi index 47046a575..c7c3c93d6 100644 --- a/src/SWIG_files/wrapper/BRepBndLib.pyi +++ b/src/SWIG_files/wrapper/BRepBndLib.pyi @@ -6,18 +6,29 @@ from OCC.Core.NCollection import * from OCC.Core.TopoDS import * from OCC.Core.Bnd import * - class brepbndlib: @staticmethod - def Add(S: TopoDS_Shape, B: Bnd_Box, useTriangulation: Optional[bool] = True) -> None: ... + def Add( + S: TopoDS_Shape, B: Bnd_Box, useTriangulation: Optional[bool] = True + ) -> None: ... @staticmethod def AddClose(S: TopoDS_Shape, B: Bnd_Box) -> None: ... @staticmethod - def AddOBB(theS: TopoDS_Shape, theOBB: Bnd_OBB, theIsTriangulationUsed: Optional[bool] = True, theIsOptimal: Optional[bool] = False, theIsShapeToleranceUsed: Optional[bool] = True) -> None: ... + def AddOBB( + theS: TopoDS_Shape, + theOBB: Bnd_OBB, + theIsTriangulationUsed: Optional[bool] = True, + theIsOptimal: Optional[bool] = False, + theIsShapeToleranceUsed: Optional[bool] = True, + ) -> None: ... @staticmethod - def AddOptimal(S: TopoDS_Shape, B: Bnd_Box, useTriangulation: Optional[bool] = True, useShapeTolerance: Optional[bool] = False) -> None: ... + def AddOptimal( + S: TopoDS_Shape, + B: Bnd_Box, + useTriangulation: Optional[bool] = True, + useShapeTolerance: Optional[bool] = False, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepBuilderAPI.pyi b/src/SWIG_files/wrapper/BRepBuilderAPI.pyi index ba766024f..56a7487cd 100644 --- a/src/SWIG_files/wrapper/BRepBuilderAPI.pyi +++ b/src/SWIG_files/wrapper/BRepBuilderAPI.pyi @@ -31,12 +31,24 @@ class BRepBuilderAPI_EdgeError(IntEnum): BRepBuilderAPI_LineThroughIdenticPoints: int = ... BRepBuilderAPI_EdgeDone = BRepBuilderAPI_EdgeError.BRepBuilderAPI_EdgeDone -BRepBuilderAPI_PointProjectionFailed = BRepBuilderAPI_EdgeError.BRepBuilderAPI_PointProjectionFailed -BRepBuilderAPI_ParameterOutOfRange = BRepBuilderAPI_EdgeError.BRepBuilderAPI_ParameterOutOfRange -BRepBuilderAPI_DifferentPointsOnClosedCurve = BRepBuilderAPI_EdgeError.BRepBuilderAPI_DifferentPointsOnClosedCurve -BRepBuilderAPI_PointWithInfiniteParameter = BRepBuilderAPI_EdgeError.BRepBuilderAPI_PointWithInfiniteParameter -BRepBuilderAPI_DifferentsPointAndParameter = BRepBuilderAPI_EdgeError.BRepBuilderAPI_DifferentsPointAndParameter -BRepBuilderAPI_LineThroughIdenticPoints = BRepBuilderAPI_EdgeError.BRepBuilderAPI_LineThroughIdenticPoints +BRepBuilderAPI_PointProjectionFailed = ( + BRepBuilderAPI_EdgeError.BRepBuilderAPI_PointProjectionFailed +) +BRepBuilderAPI_ParameterOutOfRange = ( + BRepBuilderAPI_EdgeError.BRepBuilderAPI_ParameterOutOfRange +) +BRepBuilderAPI_DifferentPointsOnClosedCurve = ( + BRepBuilderAPI_EdgeError.BRepBuilderAPI_DifferentPointsOnClosedCurve +) +BRepBuilderAPI_PointWithInfiniteParameter = ( + BRepBuilderAPI_EdgeError.BRepBuilderAPI_PointWithInfiniteParameter +) +BRepBuilderAPI_DifferentsPointAndParameter = ( + BRepBuilderAPI_EdgeError.BRepBuilderAPI_DifferentsPointAndParameter +) +BRepBuilderAPI_LineThroughIdenticPoints = ( + BRepBuilderAPI_EdgeError.BRepBuilderAPI_LineThroughIdenticPoints +) class BRepBuilderAPI_FaceError(IntEnum): BRepBuilderAPI_FaceDone: int = ... @@ -48,8 +60,12 @@ class BRepBuilderAPI_FaceError(IntEnum): BRepBuilderAPI_FaceDone = BRepBuilderAPI_FaceError.BRepBuilderAPI_FaceDone BRepBuilderAPI_NoFace = BRepBuilderAPI_FaceError.BRepBuilderAPI_NoFace BRepBuilderAPI_NotPlanar = BRepBuilderAPI_FaceError.BRepBuilderAPI_NotPlanar -BRepBuilderAPI_CurveProjectionFailed = BRepBuilderAPI_FaceError.BRepBuilderAPI_CurveProjectionFailed -BRepBuilderAPI_ParametersOutOfRange = BRepBuilderAPI_FaceError.BRepBuilderAPI_ParametersOutOfRange +BRepBuilderAPI_CurveProjectionFailed = ( + BRepBuilderAPI_FaceError.BRepBuilderAPI_CurveProjectionFailed +) +BRepBuilderAPI_ParametersOutOfRange = ( + BRepBuilderAPI_FaceError.BRepBuilderAPI_ParametersOutOfRange +) class BRepBuilderAPI_PipeError(IntEnum): BRepBuilderAPI_PipeDone: int = ... @@ -59,8 +75,12 @@ class BRepBuilderAPI_PipeError(IntEnum): BRepBuilderAPI_PipeDone = BRepBuilderAPI_PipeError.BRepBuilderAPI_PipeDone BRepBuilderAPI_PipeNotDone = BRepBuilderAPI_PipeError.BRepBuilderAPI_PipeNotDone -BRepBuilderAPI_PlaneNotIntersectGuide = BRepBuilderAPI_PipeError.BRepBuilderAPI_PlaneNotIntersectGuide -BRepBuilderAPI_ImpossibleContact = BRepBuilderAPI_PipeError.BRepBuilderAPI_ImpossibleContact +BRepBuilderAPI_PlaneNotIntersectGuide = ( + BRepBuilderAPI_PipeError.BRepBuilderAPI_PlaneNotIntersectGuide +) +BRepBuilderAPI_ImpossibleContact = ( + BRepBuilderAPI_PipeError.BRepBuilderAPI_ImpossibleContact +) class BRepBuilderAPI_ShapeModification(IntEnum): BRepBuilderAPI_Preserved: int = ... @@ -73,7 +93,9 @@ BRepBuilderAPI_Preserved = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_Prese BRepBuilderAPI_Deleted = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_Deleted BRepBuilderAPI_Trimmed = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_Trimmed BRepBuilderAPI_Merged = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_Merged -BRepBuilderAPI_BoundaryModified = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_BoundaryModified +BRepBuilderAPI_BoundaryModified = ( + BRepBuilderAPI_ShapeModification.BRepBuilderAPI_BoundaryModified +) class BRepBuilderAPI_ShellError(IntEnum): BRepBuilderAPI_ShellDone: int = ... @@ -83,8 +105,12 @@ class BRepBuilderAPI_ShellError(IntEnum): BRepBuilderAPI_ShellDone = BRepBuilderAPI_ShellError.BRepBuilderAPI_ShellDone BRepBuilderAPI_EmptyShell = BRepBuilderAPI_ShellError.BRepBuilderAPI_EmptyShell -BRepBuilderAPI_DisconnectedShell = BRepBuilderAPI_ShellError.BRepBuilderAPI_DisconnectedShell -BRepBuilderAPI_ShellParametersOutOfRange = BRepBuilderAPI_ShellError.BRepBuilderAPI_ShellParametersOutOfRange +BRepBuilderAPI_DisconnectedShell = ( + BRepBuilderAPI_ShellError.BRepBuilderAPI_DisconnectedShell +) +BRepBuilderAPI_ShellParametersOutOfRange = ( + BRepBuilderAPI_ShellError.BRepBuilderAPI_ShellParametersOutOfRange +) class BRepBuilderAPI_TransitionMode(IntEnum): BRepBuilderAPI_Transformed: int = ... @@ -103,7 +129,9 @@ class BRepBuilderAPI_WireError(IntEnum): BRepBuilderAPI_WireDone = BRepBuilderAPI_WireError.BRepBuilderAPI_WireDone BRepBuilderAPI_EmptyWire = BRepBuilderAPI_WireError.BRepBuilderAPI_EmptyWire -BRepBuilderAPI_DisconnectedWire = BRepBuilderAPI_WireError.BRepBuilderAPI_DisconnectedWire +BRepBuilderAPI_DisconnectedWire = ( + BRepBuilderAPI_WireError.BRepBuilderAPI_DisconnectedWire +) BRepBuilderAPI_NonManifoldWire = BRepBuilderAPI_WireError.BRepBuilderAPI_NonManifoldWire class brepbuilderapi: @@ -154,7 +182,14 @@ class BRepBuilderAPI_FindPlane: def Plane(self) -> Geom_Plane: ... class BRepBuilderAPI_Sewing(Standard_Transient): - def __init__(self, tolerance: Optional[float] = 1.0e-06, option1: Optional[bool] = True, option2: Optional[bool] = True, option3: Optional[bool] = True, option4: Optional[bool] = False) -> None: ... + def __init__( + self, + tolerance: Optional[float] = 1.0e-06, + option1: Optional[bool] = True, + option2: Optional[bool] = True, + option3: Optional[bool] = True, + option4: Optional[bool] = False, + ) -> None: ... def Add(self, shape: TopoDS_Shape) -> None: ... def ContigousEdge(self, index: int) -> TopoDS_Edge: ... def ContigousEdgeCouple(self, index: int) -> TopTools_ListOfShape: ... @@ -165,7 +200,14 @@ class BRepBuilderAPI_Sewing(Standard_Transient): def FloatingEdgesMode(self) -> bool: ... def FreeEdge(self, index: int) -> TopoDS_Edge: ... def GetContext(self) -> BRepTools_ReShape: ... - def Init(self, tolerance: Optional[float] = 1.0e-06, option1: Optional[bool] = True, option2: Optional[bool] = True, option3: Optional[bool] = True, option4: Optional[bool] = False) -> None: ... + def Init( + self, + tolerance: Optional[float] = 1.0e-06, + option1: Optional[bool] = True, + option2: Optional[bool] = True, + option3: Optional[bool] = True, + option4: Optional[bool] = False, + ) -> None: ... def IsDegenerated(self, shape: TopoDS_Shape) -> bool: ... def IsModified(self, shape: TopoDS_Shape) -> bool: ... def IsModifiedSubShape(self, shape: TopoDS_Shape) -> bool: ... @@ -183,7 +225,9 @@ class BRepBuilderAPI_Sewing(Standard_Transient): def NbFreeEdges(self) -> int: ... def NbMultipleEdges(self) -> int: ... def NonManifoldMode(self) -> bool: ... - def Perform(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SameParameterMode(self) -> bool: ... def SectionToBoundary(self, section: TopoDS_Edge) -> TopoDS_Edge: ... def SetContext(self, theContext: BRepTools_ReShape) -> None: ... @@ -197,7 +241,9 @@ class BRepBuilderAPI_Sewing(Standard_Transient): def SetTolerance(self, theToler: float) -> None: ... def SewedShape(self) -> TopoDS_Shape: ... def Tolerance(self) -> float: ... - def WhichFace(self, theEdg: TopoDS_Edge, index: Optional[int] = 1) -> TopoDS_Face: ... + def WhichFace( + self, theEdg: TopoDS_Edge, index: Optional[int] = 1 + ) -> TopoDS_Face: ... class BRepBuilderAPI_VertexInspector(NCollection_CellFilter_InspectorXYZ): def __init__(self, theTol: float) -> None: ... @@ -207,7 +253,7 @@ class BRepBuilderAPI_VertexInspector(NCollection_CellFilter_InspectorXYZ): def ResInd(self) -> TColStd_ListOfInteger: ... def SetCurrent(self, theCurPnt: gp_XYZ) -> None: ... -class BRepBuilderAPI_BndBoxTreeSelector(): +class BRepBuilderAPI_BndBoxTreeSelector: def __init__(self) -> None: ... def Accept(self, theObj: int) -> bool: ... def ClearResList(self) -> None: ... @@ -216,7 +262,9 @@ class BRepBuilderAPI_BndBoxTreeSelector(): def SetCurrent(self, theBox: Bnd_Box) -> None: ... class BRepBuilderAPI_MakeShape(BRepBuilderAPI_Command): - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... def IsDeleted(self, S: TopoDS_Shape) -> bool: ... def Modified(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... @@ -278,21 +326,47 @@ class BRepBuilderAPI_MakeEdge(BRepBuilderAPI_MakeShape): @overload def __init__(self, L: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... @overload - def __init__(self, L: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float) -> None: ... + def __init__( + self, L: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float + ) -> None: ... @overload - def __init__(self, L: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def __init__( + self, L: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float + ) -> None: ... @overload def __init__(self, L: Geom2d_Curve, S: Geom_Surface) -> None: ... @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, p1: float, p2: float) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def __init__( + self, L: Geom2d_Curve, S: Geom_Surface, p1: float, p2: float + ) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt + ) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... + @overload + def __init__( + self, + L: Geom2d_Curve, + S: Geom_Surface, + P1: gp_Pnt, + P2: gp_Pnt, + p1: float, + p2: float, + ) -> None: ... + @overload + def __init__( + self, + L: Geom2d_Curve, + S: Geom_Surface, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... def Edge(self) -> TopoDS_Edge: ... def Error(self) -> BRepBuilderAPI_EdgeError: ... @overload @@ -304,21 +378,45 @@ class BRepBuilderAPI_MakeEdge(BRepBuilderAPI_MakeShape): @overload def Init(self, C: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... @overload - def Init(self, C: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float) -> None: ... + def Init( + self, C: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float + ) -> None: ... @overload - def Init(self, C: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def Init( + self, C: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float + ) -> None: ... @overload def Init(self, C: Geom2d_Curve, S: Geom_Surface) -> None: ... @overload def Init(self, C: Geom2d_Curve, S: Geom_Surface, p1: float, p2: float) -> None: ... @overload - def Init(self, C: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt) -> None: ... - @overload - def Init(self, C: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... - @overload - def Init(self, C: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float) -> None: ... - @overload - def Init(self, C: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def Init( + self, C: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt + ) -> None: ... + @overload + def Init( + self, C: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... + @overload + def Init( + self, + C: Geom2d_Curve, + S: Geom_Surface, + P1: gp_Pnt, + P2: gp_Pnt, + p1: float, + p2: float, + ) -> None: ... + @overload + def Init( + self, + C: Geom2d_Curve, + S: Geom_Surface, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... def IsDone(self) -> bool: ... def Vertex1(self) -> TopoDS_Vertex: ... def Vertex2(self) -> TopoDS_Vertex: ... @@ -375,11 +473,22 @@ class BRepBuilderAPI_MakeEdge2d(BRepBuilderAPI_MakeShape): @overload def __init__(self, L: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... @overload - def __init__(self, L: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def __init__( + self, L: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float + ) -> None: ... + @overload + def __init__( + self, + L: Geom2d_Curve, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... def Edge(self) -> TopoDS_Edge: ... def Error(self) -> BRepBuilderAPI_EdgeError: ... @overload @@ -391,9 +500,18 @@ class BRepBuilderAPI_MakeEdge2d(BRepBuilderAPI_MakeShape): @overload def Init(self, C: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... @overload - def Init(self, C: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float) -> None: ... - @overload - def Init(self, C: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def Init( + self, C: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float + ) -> None: ... + @overload + def Init( + self, + C: Geom2d_Curve, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... def IsDone(self) -> bool: ... def Vertex1(self) -> TopoDS_Vertex: ... def Vertex2(self) -> TopoDS_Vertex: ... @@ -416,31 +534,61 @@ class BRepBuilderAPI_MakeFace(BRepBuilderAPI_MakeShape): @overload def __init__(self, S: Geom_Surface, TolDegen: float) -> None: ... @overload - def __init__(self, P: gp_Pln, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, P: gp_Pln, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, C: gp_Cylinder, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, C: gp_Cylinder, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, C: gp_Cone, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, C: gp_Cone, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, S: gp_Sphere, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, S: gp_Sphere, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, C: gp_Torus, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, C: gp_Torus, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float, TolDegen: float) -> None: ... + def __init__( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + TolDegen: float, + ) -> None: ... @overload def __init__(self, W: TopoDS_Wire, OnlyPlane: Optional[bool] = False) -> None: ... @overload - def __init__(self, P: gp_Pln, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, P: gp_Pln, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, C: gp_Cylinder, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, C: gp_Cylinder, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, C: gp_Cone, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, C: gp_Cone, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, S: gp_Sphere, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, S: gp_Sphere, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, C: gp_Torus, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, C: gp_Torus, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, S: Geom_Surface, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, S: Geom_Surface, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload def __init__(self, F: TopoDS_Face, W: TopoDS_Wire) -> None: ... def Add(self, W: TopoDS_Wire) -> None: ... @@ -451,7 +599,15 @@ class BRepBuilderAPI_MakeFace(BRepBuilderAPI_MakeShape): @overload def Init(self, S: Geom_Surface, Bound: bool, TolDegen: float) -> None: ... @overload - def Init(self, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float, TolDegen: float) -> None: ... + def Init( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + TolDegen: float, + ) -> None: ... def IsDone(self) -> bool: ... class BRepBuilderAPI_MakePolygon(BRepBuilderAPI_MakeShape): @@ -460,15 +616,37 @@ class BRepBuilderAPI_MakePolygon(BRepBuilderAPI_MakeShape): @overload def __init__(self, P1: gp_Pnt, P2: gp_Pnt) -> None: ... @overload - def __init__(self, P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, Close: Optional[bool] = False) -> None: ... + def __init__( + self, P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, Close: Optional[bool] = False + ) -> None: ... @overload - def __init__(self, P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, P4: gp_Pnt, Close: Optional[bool] = False) -> None: ... + def __init__( + self, + P1: gp_Pnt, + P2: gp_Pnt, + P3: gp_Pnt, + P4: gp_Pnt, + Close: Optional[bool] = False, + ) -> None: ... @overload def __init__(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... @overload - def __init__(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex, V3: TopoDS_Vertex, Close: Optional[bool] = False) -> None: ... - @overload - def __init__(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex, V3: TopoDS_Vertex, V4: TopoDS_Vertex, Close: Optional[bool] = False) -> None: ... + def __init__( + self, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + V3: TopoDS_Vertex, + Close: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + V3: TopoDS_Vertex, + V4: TopoDS_Vertex, + Close: Optional[bool] = False, + ) -> None: ... @overload def Add(self, P: gp_Pnt) -> None: ... @overload @@ -483,7 +661,9 @@ class BRepBuilderAPI_MakePolygon(BRepBuilderAPI_MakeShape): class BRepBuilderAPI_MakeShapeOnMesh(BRepBuilderAPI_MakeShape): def __init__(self, theMesh: Poly_Triangulation) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... class BRepBuilderAPI_MakeShell(BRepBuilderAPI_MakeShape): @overload @@ -491,9 +671,25 @@ class BRepBuilderAPI_MakeShell(BRepBuilderAPI_MakeShape): @overload def __init__(self, S: Geom_Surface, Segment: Optional[bool] = False) -> None: ... @overload - def __init__(self, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float, Segment: Optional[bool] = False) -> None: ... + def __init__( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Segment: Optional[bool] = False, + ) -> None: ... def Error(self) -> BRepBuilderAPI_ShellError: ... - def Init(self, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float, Segment: Optional[bool] = False) -> None: ... + def Init( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Segment: Optional[bool] = False, + ) -> None: ... def IsDone(self) -> bool: ... def Shell(self) -> TopoDS_Shell: ... @@ -507,7 +703,9 @@ class BRepBuilderAPI_MakeSolid(BRepBuilderAPI_MakeShape): @overload def __init__(self, S1: TopoDS_Shell, S2: TopoDS_Shell) -> None: ... @overload - def __init__(self, S1: TopoDS_Shell, S2: TopoDS_Shell, S3: TopoDS_Shell) -> None: ... + def __init__( + self, S1: TopoDS_Shell, S2: TopoDS_Shell, S3: TopoDS_Shell + ) -> None: ... @overload def __init__(self, So: TopoDS_Solid) -> None: ... @overload @@ -532,7 +730,9 @@ class BRepBuilderAPI_MakeWire(BRepBuilderAPI_MakeShape): @overload def __init__(self, E1: TopoDS_Edge, E2: TopoDS_Edge, E3: TopoDS_Edge) -> None: ... @overload - def __init__(self, E1: TopoDS_Edge, E2: TopoDS_Edge, E3: TopoDS_Edge, E4: TopoDS_Edge) -> None: ... + def __init__( + self, E1: TopoDS_Edge, E2: TopoDS_Edge, E3: TopoDS_Edge, E4: TopoDS_Edge + ) -> None: ... @overload def __init__(self, W: TopoDS_Wire) -> None: ... @overload @@ -557,14 +757,26 @@ class BRepBuilderAPI_Copy(BRepBuilderAPI_ModifyShape): @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, copyGeom: Optional[bool] = True, copyMesh: Optional[bool] = False) -> None: ... - def Perform(self, S: TopoDS_Shape, copyGeom: Optional[bool] = True, copyMesh: Optional[bool] = False) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + copyGeom: Optional[bool] = True, + copyMesh: Optional[bool] = False, + ) -> None: ... + def Perform( + self, + S: TopoDS_Shape, + copyGeom: Optional[bool] = True, + copyMesh: Optional[bool] = False, + ) -> None: ... class BRepBuilderAPI_GTransform(BRepBuilderAPI_ModifyShape): @overload def __init__(self, T: gp_GTrsf) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, T: gp_GTrsf, Copy: Optional[bool] = False) -> None: ... + def __init__( + self, S: TopoDS_Shape, T: gp_GTrsf, Copy: Optional[bool] = False + ) -> None: ... def Modified(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... def ModifiedShape(self, S: TopoDS_Shape) -> TopoDS_Shape: ... def Perform(self, S: TopoDS_Shape, Copy: Optional[bool] = False) -> None: ... @@ -582,12 +794,22 @@ class BRepBuilderAPI_Transform(BRepBuilderAPI_ModifyShape): @overload def __init__(self, T: gp_Trsf) -> None: ... @overload - def __init__(self, theShape: TopoDS_Shape, theTrsf: gp_Trsf, theCopyGeom: Optional[bool] = False, theCopyMesh: Optional[bool] = False) -> None: ... + def __init__( + self, + theShape: TopoDS_Shape, + theTrsf: gp_Trsf, + theCopyGeom: Optional[bool] = False, + theCopyMesh: Optional[bool] = False, + ) -> None: ... def Modified(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... def ModifiedShape(self, S: TopoDS_Shape) -> TopoDS_Shape: ... - def Perform(self, theShape: TopoDS_Shape, theCopyGeom: Optional[bool] = False, theCopyMesh: Optional[bool] = False) -> None: ... + def Perform( + self, + theShape: TopoDS_Shape, + theCopyGeom: Optional[bool] = False, + theCopyMesh: Optional[bool] = False, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepCheck.i b/src/SWIG_files/wrapper/BRepCheck.i index 0690db412..36ee6aa13 100644 --- a/src/SWIG_files/wrapper/BRepCheck.i +++ b/src/SWIG_files/wrapper/BRepCheck.i @@ -212,6 +212,12 @@ BRepCheck_CheckFail = BRepCheck_Status.BRepCheck_CheckFail %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BRepCheck_ListIteratorOfListOfStatus(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/BRepCheck.pyi b/src/SWIG_files/wrapper/BRepCheck.pyi index ae14486b3..8c8fc5870 100644 --- a/src/SWIG_files/wrapper/BRepCheck.pyi +++ b/src/SWIG_files/wrapper/BRepCheck.pyi @@ -10,21 +10,23 @@ from OCC.Core.TopTools import * # the following typedef cannot be wrapped as is BRepCheck_HListOfStatus = NewType("BRepCheck_HListOfStatus", Any) # the following typedef cannot be wrapped as is -BRepCheck_IndexedDataMapOfShapeResult = NewType("BRepCheck_IndexedDataMapOfShapeResult", Any) +BRepCheck_IndexedDataMapOfShapeResult = NewType( + "BRepCheck_IndexedDataMapOfShapeResult", Any +) class BRepCheck_ListOfStatus: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: BRepCheck_Status) -> BRepCheck_Status: ... + def Assign(self, theItem: BRepCheck_ListOfStatus) -> BRepCheck_ListOfStatus: ... def Clear(self) -> None: ... def First(self) -> BRepCheck_Status: ... def Last(self) -> BRepCheck_Status: ... - def Append(self, theItem: BRepCheck_Status) -> BRepCheck_Status: ... def Prepend(self, theItem: BRepCheck_Status) -> BRepCheck_Status: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BRepCheck_Status: ... - def SetValue(self, theIndex: int, theValue: BRepCheck_Status) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> BRepCheck_Status: ... class BRepCheck_Status(IntEnum): BRepCheck_NoError: int = ... @@ -67,14 +69,18 @@ class BRepCheck_Status(IntEnum): BRepCheck_NoError = BRepCheck_Status.BRepCheck_NoError BRepCheck_InvalidPointOnCurve = BRepCheck_Status.BRepCheck_InvalidPointOnCurve -BRepCheck_InvalidPointOnCurveOnSurface = BRepCheck_Status.BRepCheck_InvalidPointOnCurveOnSurface +BRepCheck_InvalidPointOnCurveOnSurface = ( + BRepCheck_Status.BRepCheck_InvalidPointOnCurveOnSurface +) BRepCheck_InvalidPointOnSurface = BRepCheck_Status.BRepCheck_InvalidPointOnSurface BRepCheck_No3DCurve = BRepCheck_Status.BRepCheck_No3DCurve BRepCheck_Multiple3DCurve = BRepCheck_Status.BRepCheck_Multiple3DCurve BRepCheck_Invalid3DCurve = BRepCheck_Status.BRepCheck_Invalid3DCurve BRepCheck_NoCurveOnSurface = BRepCheck_Status.BRepCheck_NoCurveOnSurface BRepCheck_InvalidCurveOnSurface = BRepCheck_Status.BRepCheck_InvalidCurveOnSurface -BRepCheck_InvalidCurveOnClosedSurface = BRepCheck_Status.BRepCheck_InvalidCurveOnClosedSurface +BRepCheck_InvalidCurveOnClosedSurface = ( + BRepCheck_Status.BRepCheck_InvalidCurveOnClosedSurface +) BRepCheck_InvalidSameRangeFlag = BRepCheck_Status.BRepCheck_InvalidSameRangeFlag BRepCheck_InvalidSameParameterFlag = BRepCheck_Status.BRepCheck_InvalidSameParameterFlag BRepCheck_InvalidDegeneratedFlag = BRepCheck_Status.BRepCheck_InvalidDegeneratedFlag @@ -88,17 +94,23 @@ BRepCheck_NoSurface = BRepCheck_Status.BRepCheck_NoSurface BRepCheck_InvalidWire = BRepCheck_Status.BRepCheck_InvalidWire BRepCheck_RedundantWire = BRepCheck_Status.BRepCheck_RedundantWire BRepCheck_IntersectingWires = BRepCheck_Status.BRepCheck_IntersectingWires -BRepCheck_InvalidImbricationOfWires = BRepCheck_Status.BRepCheck_InvalidImbricationOfWires +BRepCheck_InvalidImbricationOfWires = ( + BRepCheck_Status.BRepCheck_InvalidImbricationOfWires +) BRepCheck_EmptyShell = BRepCheck_Status.BRepCheck_EmptyShell BRepCheck_RedundantFace = BRepCheck_Status.BRepCheck_RedundantFace -BRepCheck_InvalidImbricationOfShells = BRepCheck_Status.BRepCheck_InvalidImbricationOfShells +BRepCheck_InvalidImbricationOfShells = ( + BRepCheck_Status.BRepCheck_InvalidImbricationOfShells +) BRepCheck_UnorientableShape = BRepCheck_Status.BRepCheck_UnorientableShape BRepCheck_NotClosed = BRepCheck_Status.BRepCheck_NotClosed BRepCheck_NotConnected = BRepCheck_Status.BRepCheck_NotConnected BRepCheck_SubshapeNotInShape = BRepCheck_Status.BRepCheck_SubshapeNotInShape BRepCheck_BadOrientation = BRepCheck_Status.BRepCheck_BadOrientation BRepCheck_BadOrientationOfSubshape = BRepCheck_Status.BRepCheck_BadOrientationOfSubshape -BRepCheck_InvalidPolygonOnTriangulation = BRepCheck_Status.BRepCheck_InvalidPolygonOnTriangulation +BRepCheck_InvalidPolygonOnTriangulation = ( + BRepCheck_Status.BRepCheck_InvalidPolygonOnTriangulation +) BRepCheck_InvalidToleranceValue = BRepCheck_Status.BRepCheck_InvalidToleranceValue BRepCheck_EnclosedRegion = BRepCheck_Status.BRepCheck_EnclosedRegion BRepCheck_CheckFail = BRepCheck_Status.BRepCheck_CheckFail @@ -113,10 +125,18 @@ class brepcheck: @staticmethod def Print(Stat: BRepCheck_Status) -> str: ... @staticmethod - def SelfIntersection(W: TopoDS_Wire, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge) -> bool: ... + def SelfIntersection( + W: TopoDS_Wire, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge + ) -> bool: ... class BRepCheck_Analyzer: - def __init__(self, S: TopoDS_Shape, GeomControls: Optional[bool] = True, theIsParallel: Optional[bool] = False, theIsExact: Optional[bool] = False) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + GeomControls: Optional[bool] = True, + theIsParallel: Optional[bool] = False, + theIsExact: Optional[bool] = False, + ) -> None: ... def Init(self, S: TopoDS_Shape, GeomControls: Optional[bool] = True) -> None: ... def IsExactMethod(self) -> bool: ... def IsParallel(self) -> bool: ... @@ -175,7 +195,9 @@ class BRepCheck_Face(BRepCheck_Result): def IntersectWires(self, Update: Optional[bool] = False) -> BRepCheck_Status: ... def IsUnorientable(self) -> bool: ... def Minimum(self) -> None: ... - def OrientationOfWires(self, Update: Optional[bool] = False) -> BRepCheck_Status: ... + def OrientationOfWires( + self, Update: Optional[bool] = False + ) -> BRepCheck_Status: ... def SetStatus(self, theStatus: BRepCheck_Status) -> None: ... def SetUnorientable(self) -> None: ... @@ -207,18 +229,27 @@ class BRepCheck_Wire(BRepCheck_Result): def __init__(self, W: TopoDS_Wire) -> None: ... def Blind(self) -> None: ... def Closed(self, Update: Optional[bool] = False) -> BRepCheck_Status: ... - def Closed2d(self, F: TopoDS_Face, Update: Optional[bool] = False) -> BRepCheck_Status: ... + def Closed2d( + self, F: TopoDS_Face, Update: Optional[bool] = False + ) -> BRepCheck_Status: ... @overload def GeometricControls(self) -> bool: ... @overload def GeometricControls(self, B: bool) -> None: ... def InContext(self, ContextShape: TopoDS_Shape) -> None: ... def Minimum(self) -> None: ... - def Orientation(self, F: TopoDS_Face, Update: Optional[bool] = False) -> BRepCheck_Status: ... - def SelfIntersect(self, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, Update: Optional[bool] = False) -> BRepCheck_Status: ... + def Orientation( + self, F: TopoDS_Face, Update: Optional[bool] = False + ) -> BRepCheck_Status: ... + def SelfIntersect( + self, + F: TopoDS_Face, + E1: TopoDS_Edge, + E2: TopoDS_Edge, + Update: Optional[bool] = False, + ) -> BRepCheck_Status: ... def SetStatus(self, theStatus: BRepCheck_Status) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepClass.pyi b/src/SWIG_files/wrapper/BRepClass.pyi index 1214f965b..319cf4744 100644 --- a/src/SWIG_files/wrapper/BRepClass.pyi +++ b/src/SWIG_files/wrapper/BRepClass.pyi @@ -10,7 +10,6 @@ from OCC.Core.gp import * from OCC.Core.IntRes2d import * from OCC.Core.Geom2dInt import * - class BRepClass_Edge: @overload def __init__(self) -> None: ... @@ -27,7 +26,9 @@ class BRepClass_Edge: def MaxTolerance(self) -> float: ... def NextEdge(self) -> TopoDS_Edge: ... def SetMaxTolerance(self, theValue: float) -> None: ... - def SetNextEdge(self, theMapVE: TopTools_IndexedDataMapOfShapeListOfShape) -> None: ... + def SetNextEdge( + self, theMapVE: TopTools_IndexedDataMapOfShapeListOfShape + ) -> None: ... def SetUseBndBox(self, theValue: bool) -> None: ... def UseBndBox(self) -> bool: ... @@ -86,7 +87,9 @@ class BRepClass_FacePassiveClassifier: class BRepClass_Intersector(Geom2dInt_IntConicCurveOfGInter): def __init__(self) -> None: ... - def LocalGeometry(self, E: BRepClass_Edge, U: float, T: gp_Dir2d, N: gp_Dir2d) -> float: ... + def LocalGeometry( + self, E: BRepClass_Edge, U: float, T: gp_Dir2d, N: gp_Dir2d + ) -> float: ... def Perform(self, L: gp_Lin2d, P: float, Tol: float, E: BRepClass_Edge) -> None: ... class BRepClass_FaceClassifier(BRepClass_FClassifier): @@ -95,15 +98,42 @@ class BRepClass_FaceClassifier(BRepClass_FClassifier): @overload def __init__(self, F: BRepClass_FaceExplorer, P: gp_Pnt2d, Tol: float) -> None: ... @overload - def __init__(self, theF: TopoDS_Face, theP: gp_Pnt2d, theTol: float, theUseBndBox: Optional[bool] = False, theGapCheckTol: Optional[float] = 0.1) -> None: ... + def __init__( + self, + theF: TopoDS_Face, + theP: gp_Pnt2d, + theTol: float, + theUseBndBox: Optional[bool] = False, + theGapCheckTol: Optional[float] = 0.1, + ) -> None: ... @overload - def __init__(self, theF: TopoDS_Face, theP: gp_Pnt, theTol: float, theUseBndBox: Optional[bool] = False, theGapCheckTol: Optional[float] = 0.1) -> None: ... + def __init__( + self, + theF: TopoDS_Face, + theP: gp_Pnt, + theTol: float, + theUseBndBox: Optional[bool] = False, + theGapCheckTol: Optional[float] = 0.1, + ) -> None: ... @overload - def Perform(self, theF: TopoDS_Face, theP: gp_Pnt2d, theTol: float, theUseBndBox: Optional[bool] = False, theGapCheckTol: Optional[float] = 0.1) -> None: ... + def Perform( + self, + theF: TopoDS_Face, + theP: gp_Pnt2d, + theTol: float, + theUseBndBox: Optional[bool] = False, + theGapCheckTol: Optional[float] = 0.1, + ) -> None: ... @overload - def Perform(self, theF: TopoDS_Face, theP: gp_Pnt, theTol: float, theUseBndBox: Optional[bool] = False, theGapCheckTol: Optional[float] = 0.1) -> None: ... + def Perform( + self, + theF: TopoDS_Face, + theP: gp_Pnt, + theTol: float, + theUseBndBox: Optional[bool] = False, + theGapCheckTol: Optional[float] = 0.1, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepClass3d.pyi b/src/SWIG_files/wrapper/BRepClass3d.pyi index 0ab4a83f4..088da2c90 100644 --- a/src/SWIG_files/wrapper/BRepClass3d.pyi +++ b/src/SWIG_files/wrapper/BRepClass3d.pyi @@ -40,7 +40,9 @@ class BRepClass3d_SClassifier: def Face(self) -> TopoDS_Face: ... def IsOnAFace(self) -> bool: ... def Perform(self, S: BRepClass3d_SolidExplorer, P: gp_Pnt, Tol: float) -> None: ... - def PerformInfinitePoint(self, S: BRepClass3d_SolidExplorer, Tol: float) -> None: ... + def PerformInfinitePoint( + self, S: BRepClass3d_SolidExplorer, Tol: float + ) -> None: ... def Rejected(self) -> bool: ... def State(self) -> TopAbs_State: ... @@ -53,16 +55,22 @@ class BRepClass3d_SolidExplorer: def CurrentFace(self) -> TopoDS_Face: ... def CurrentShell(self) -> TopoDS_Shell: ... def Destroy(self) -> None: ... - def DumpSegment(self, P: gp_Pnt, L: gp_Lin, Par: float, S: TopAbs_State) -> None: ... + def DumpSegment( + self, P: gp_Pnt, L: gp_Lin, Par: float, S: TopAbs_State + ) -> None: ... @overload @staticmethod def FindAPointInTheFace(F: TopoDS_Face, P: gp_Pnt) -> Tuple[bool, float]: ... @overload @staticmethod - def FindAPointInTheFace(F: TopoDS_Face, P: gp_Pnt) -> Tuple[bool, float, float, float]: ... + def FindAPointInTheFace( + F: TopoDS_Face, P: gp_Pnt + ) -> Tuple[bool, float, float, float]: ... @overload @staticmethod - def FindAPointInTheFace(F: TopoDS_Face, P: gp_Pnt, theVecD1U: gp_Vec, theVecD1V: gp_Vec) -> Tuple[bool, float, float, float]: ... + def FindAPointInTheFace( + F: TopoDS_Face, P: gp_Pnt, theVecD1U: gp_Vec, theVecD1V: gp_Vec + ) -> Tuple[bool, float, float, float]: ... @overload @staticmethod def FindAPointInTheFace(F: TopoDS_Face, P: gp_Pnt) -> Tuple[bool, float, float]: ... @@ -86,11 +94,33 @@ class BRepClass3d_SolidExplorer: def NextShell(self) -> None: ... def OtherSegment(self, P: gp_Pnt, L: gp_Lin) -> Tuple[int, float]: ... @overload - def PointInTheFace(self, F: TopoDS_Face, P: gp_Pnt) -> Tuple[bool, float, float, float, int]: ... - @overload - def PointInTheFace(self, F: TopoDS_Face, P: gp_Pnt, surf: BRepAdaptor_Surface, u1: float, v1: float, u2: float, v2: float) -> Tuple[bool, float, float, float, int]: ... - @overload - def PointInTheFace(self, F: TopoDS_Face, P: gp_Pnt, surf: BRepAdaptor_Surface, u1: float, v1: float, u2: float, v2: float, theVecD1U: gp_Vec, theVecD1V: gp_Vec) -> Tuple[bool, float, float, float, int]: ... + def PointInTheFace( + self, F: TopoDS_Face, P: gp_Pnt + ) -> Tuple[bool, float, float, float, int]: ... + @overload + def PointInTheFace( + self, + F: TopoDS_Face, + P: gp_Pnt, + surf: BRepAdaptor_Surface, + u1: float, + v1: float, + u2: float, + v2: float, + ) -> Tuple[bool, float, float, float, int]: ... + @overload + def PointInTheFace( + self, + F: TopoDS_Face, + P: gp_Pnt, + surf: BRepAdaptor_Surface, + u1: float, + v1: float, + u2: float, + v2: float, + theVecD1U: gp_Vec, + theVecD1V: gp_Vec, + ) -> Tuple[bool, float, float, float, int]: ... def Reject(self, P: gp_Pnt) -> bool: ... def RejectFace(self, L: gp_Lin) -> bool: ... def RejectShell(self, L: gp_Lin) -> bool: ... @@ -117,13 +147,12 @@ class BRepClass3d_SolidClassifier(BRepClass3d_SClassifier): def Perform(self, P: gp_Pnt, Tol: float) -> None: ... def PerformInfinitePoint(self, Tol: float) -> None: ... -#classnotwrapped +# classnotwrapped class BRepClass3d_BndBoxTreeSelectorLine: ... -#classnotwrapped +# classnotwrapped class BRepClass3d_BndBoxTreeSelectorPoint: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepExtrema.pyi b/src/SWIG_files/wrapper/BRepExtrema.pyi index 03aeb6bba..91e07e4c5 100644 --- a/src/SWIG_files/wrapper/BRepExtrema.pyi +++ b/src/SWIG_files/wrapper/BRepExtrema.pyi @@ -15,19 +15,27 @@ from OCC.Core.Poly import * BRepExtrema_ShapeList = NewType("BRepExtrema_ShapeList", Any) class BRepExtrema_SeqOfSolution: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: BRepExtrema_SolutionElem) -> BRepExtrema_SolutionElem: ... def Clear(self) -> None: ... def First(self) -> BRepExtrema_SolutionElem: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> BRepExtrema_SolutionElem: ... def Length(self) -> int: ... - def Append(self, theItem: BRepExtrema_SolutionElem) -> BRepExtrema_SolutionElem: ... - def Prepend(self, theItem: BRepExtrema_SolutionElem) -> BRepExtrema_SolutionElem: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: BRepExtrema_SolutionElem + ) -> BRepExtrema_SolutionElem: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BRepExtrema_SolutionElem: ... def SetValue(self, theIndex: int, theValue: BRepExtrema_SolutionElem) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> BRepExtrema_SolutionElem: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class BRepExtrema_SupportType(IntEnum): BRepExtrema_IsVertex: int = ... @@ -42,9 +50,24 @@ class BRepExtrema_DistShapeShape: @overload def __init__(self) -> None: ... @overload - def __init__(self, Shape1: TopoDS_Shape, Shape2: TopoDS_Shape, F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + Shape1: TopoDS_Shape, + Shape2: TopoDS_Shape, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def __init__(self, Shape1: TopoDS_Shape, Shape2: TopoDS_Shape, theDeflection: float, F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + Shape1: TopoDS_Shape, + Shape2: TopoDS_Shape, + theDeflection: float, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def Dump(self) -> str: ... def InnerSolution(self) -> bool: ... def IsDone(self) -> bool: ... @@ -56,7 +79,9 @@ class BRepExtrema_DistShapeShape: def ParOnEdgeS2(self, N: int) -> float: ... def ParOnFaceS1(self, N: int) -> Tuple[float, float]: ... def ParOnFaceS2(self, N: int) -> Tuple[float, float]: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> bool: ... def PointOnShape1(self, N: int) -> gp_Pnt: ... def PointOnShape2(self, N: int) -> gp_Pnt: ... def SetAlgo(self, A: Extrema_ExtAlgo) -> None: ... @@ -70,7 +95,17 @@ class BRepExtrema_DistShapeShape: def Value(self) -> float: ... class BRepExtrema_DistanceSS: - def __init__(self, theS1: TopoDS_Shape, theS2: TopoDS_Shape, theBox1: Bnd_Box, theBox2: Bnd_Box, theDstRef: float, theDeflection: Optional[float] = Precision.Confusion(), theExtFlag: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, theExtAlgo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... + def __init__( + self, + theS1: TopoDS_Shape, + theS2: TopoDS_Shape, + theBox1: Bnd_Box, + theBox2: Bnd_Box, + theDstRef: float, + theDeflection: Optional[float] = Precision.Confusion(), + theExtFlag: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + theExtAlgo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... def DistValue(self) -> float: ... def IsDone(self) -> bool: ... def Seq1Value(self) -> BRepExtrema_SeqOfSolution: ... @@ -94,7 +129,9 @@ class BRepExtrema_ExtCC: def PointOnE1(self, N: int) -> gp_Pnt: ... def PointOnE2(self, N: int) -> gp_Pnt: ... def SquareDistance(self, N: int) -> float: ... - def TrimmedSquareDistances(self, P11: gp_Pnt, P12: gp_Pnt, P21: gp_Pnt, P22: gp_Pnt) -> Tuple[float, float, float, float]: ... + def TrimmedSquareDistances( + self, P11: gp_Pnt, P12: gp_Pnt, P21: gp_Pnt, P22: gp_Pnt + ) -> Tuple[float, float, float, float]: ... class BRepExtrema_ExtCF: @overload @@ -141,14 +178,27 @@ class BRepExtrema_ExtPC: def Perform(self, V: TopoDS_Vertex) -> None: ... def Point(self, N: int) -> gp_Pnt: ... def SquareDistance(self, N: int) -> float: ... - def TrimmedSquareDistances(self, pnt1: gp_Pnt, pnt2: gp_Pnt) -> Tuple[float, float]: ... + def TrimmedSquareDistances( + self, pnt1: gp_Pnt, pnt2: gp_Pnt + ) -> Tuple[float, float]: ... class BRepExtrema_ExtPF: @overload def __init__(self) -> None: ... @overload - def __init__(self, TheVertex: TopoDS_Vertex, TheFace: TopoDS_Face, TheFlag: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, TheAlgo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - def Initialize(self, TheFace: TopoDS_Face, TheFlag: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, TheAlgo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... + def __init__( + self, + TheVertex: TopoDS_Vertex, + TheFace: TopoDS_Face, + TheFlag: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + TheAlgo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + def Initialize( + self, + TheFace: TopoDS_Face, + TheFlag: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + TheAlgo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... def IsDone(self) -> bool: ... def NbExt(self) -> int: ... def Parameter(self, N: int) -> Tuple[float, float]: ... @@ -160,27 +210,47 @@ class BRepExtrema_ExtPF: class BRepExtrema_Poly: @staticmethod - def Distance(S1: TopoDS_Shape, S2: TopoDS_Shape, P1: gp_Pnt, P2: gp_Pnt) -> Tuple[bool, float]: ... + def Distance( + S1: TopoDS_Shape, S2: TopoDS_Shape, P1: gp_Pnt, P2: gp_Pnt + ) -> Tuple[bool, float]: ... -class BRepExtrema_ProximityDistTool(): +class BRepExtrema_ProximityDistTool: @overload def __init__(self) -> None: ... @staticmethod - def IsEdgeOnBorder(theTrgIdx: int, theFirstEdgeNodeIdx: int, theSecondEdgeNodeIdx: int, theTr: Poly_Triangulation) -> bool: ... + def IsEdgeOnBorder( + theTrgIdx: int, + theFirstEdgeNodeIdx: int, + theSecondEdgeNodeIdx: int, + theTr: Poly_Triangulation, + ) -> bool: ... @staticmethod def IsNodeOnBorder(theNodeIdx: int, theTr: Poly_Triangulation) -> bool: ... - def LoadShapeLists(self, theShapeList1: BRepExtrema_ShapeList, theShapeList2: BRepExtrema_ShapeList) -> None: ... - def LoadTriangleSets(self, theSet1: BRepExtrema_TriangleSet, theSet2: BRepExtrema_TriangleSet) -> None: ... + def LoadShapeLists( + self, theShapeList1: BRepExtrema_ShapeList, theShapeList2: BRepExtrema_ShapeList + ) -> None: ... + def LoadTriangleSets( + self, theSet1: BRepExtrema_TriangleSet, theSet2: BRepExtrema_TriangleSet + ) -> None: ... def Perform(self) -> None: ... def ProximityDistance(self) -> float: ... def ProximityPoints(self, thePoint1: BVH_Vec3d, thePoint2: BVH_Vec3d) -> None: ... - def RejectNode(self, theCornerMin: BVH_Vec3d, theCornerMax: BVH_Vec3d) -> Tuple[bool, float]: ... + def RejectNode( + self, theCornerMin: BVH_Vec3d, theCornerMax: BVH_Vec3d + ) -> Tuple[bool, float]: ... class BRepExtrema_ShapeProximity: @overload - def __init__(self, theTolerance: Optional[float] = Precision.Infinite()) -> None: ... + def __init__( + self, theTolerance: Optional[float] = Precision.Infinite() + ) -> None: ... @overload - def __init__(self, theShape1: TopoDS_Shape, theShape2: TopoDS_Shape, theTolerance: Optional[float] = Precision.Infinite()) -> None: ... + def __init__( + self, + theShape1: TopoDS_Shape, + theShape2: TopoDS_Shape, + theTolerance: Optional[float] = Precision.Infinite(), + ) -> None: ... def ElementSet1(self) -> BRepExtrema_TriangleSet: ... def ElementSet2(self) -> BRepExtrema_TriangleSet: ... def GetSubShape1(self, theID: int) -> TopoDS_Shape: ... @@ -205,11 +275,32 @@ class BRepExtrema_SolutionElem: @overload def __init__(self) -> None: ... @overload - def __init__(self, theDist: float, thePoint: gp_Pnt, theSolType: BRepExtrema_SupportType, theVertex: TopoDS_Vertex) -> None: ... + def __init__( + self, + theDist: float, + thePoint: gp_Pnt, + theSolType: BRepExtrema_SupportType, + theVertex: TopoDS_Vertex, + ) -> None: ... @overload - def __init__(self, theDist: float, thePoint: gp_Pnt, theSolType: BRepExtrema_SupportType, theEdge: TopoDS_Edge, theParam: float) -> None: ... + def __init__( + self, + theDist: float, + thePoint: gp_Pnt, + theSolType: BRepExtrema_SupportType, + theEdge: TopoDS_Edge, + theParam: float, + ) -> None: ... @overload - def __init__(self, theDist: float, thePoint: gp_Pnt, theSolType: BRepExtrema_SupportType, theFace: TopoDS_Face, theU: float, theV: float) -> None: ... + def __init__( + self, + theDist: float, + thePoint: gp_Pnt, + theSolType: BRepExtrema_SupportType, + theFace: TopoDS_Face, + theU: float, + theV: float, + ) -> None: ... def Dist(self) -> float: ... def Edge(self) -> TopoDS_Edge: ... def EdgeParameter(self) -> float: ... @@ -233,7 +324,13 @@ class BRepExtrema_TriangleSet(BVH_PrimitiveSet3d): @overload def GetVertices(self) -> BVH_Array3d: ... @overload - def GetVertices(self, theIndex: int, theVertex1: BVH_Vec3d, theVertex2: BVH_Vec3d, theVertex3: BVH_Vec3d) -> None: ... + def GetVertices( + self, + theIndex: int, + theVertex1: BVH_Vec3d, + theVertex2: BVH_Vec3d, + theVertex3: BVH_Vec3d, + ) -> None: ... def GetVtxIdxInShape(self, theIndex: int) -> int: ... def Init(self, theShapes: BRepExtrema_ShapeList) -> bool: ... def Size(self) -> int: ... @@ -243,7 +340,9 @@ class BRepExtrema_SelfIntersection(BRepExtrema_ElementFilter): @overload def __init__(self, theTolerance: Optional[float] = 0.0) -> None: ... @overload - def __init__(self, theShape: TopoDS_Shape, theTolerance: Optional[float] = 0.0) -> None: ... + def __init__( + self, theShape: TopoDS_Shape, theTolerance: Optional[float] = 0.0 + ) -> None: ... def ElementSet(self) -> BRepExtrema_TriangleSet: ... def GetSubShape(self, theID: int) -> TopoDS_Face: ... def IsDone(self) -> bool: ... @@ -253,10 +352,9 @@ class BRepExtrema_SelfIntersection(BRepExtrema_ElementFilter): def SetTolerance(self, theTolerance: float) -> None: ... def Tolerance(self) -> float: ... -#classnotwrapped +# classnotwrapped class BRepExtrema_OverlapTool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepFeat.pyi b/src/SWIG_files/wrapper/BRepFeat.pyi index 233b8ee3b..b41152787 100644 --- a/src/SWIG_files/wrapper/BRepFeat.pyi +++ b/src/SWIG_files/wrapper/BRepFeat.pyi @@ -15,7 +15,6 @@ from OCC.Core.BRepBuilderAPI import * from OCC.Core.TColGeom import * from OCC.Core.LocOpe import * - class BRepFeat_PerfSelection(IntEnum): BRepFeat_NoSelection: int = ... BRepFeat_SelectionFU: int = ... @@ -107,13 +106,17 @@ class brepfeat: @staticmethod def ParametricBarycenter(S: TopoDS_Shape, C: Geom_Curve) -> float: ... @staticmethod - def ParametricMinMax(S: TopoDS_Shape, C: Geom_Curve, Ori: Optional[bool] = False) -> Tuple[float, float, float, float, bool]: ... + def ParametricMinMax( + S: TopoDS_Shape, C: Geom_Curve, Ori: Optional[bool] = False + ) -> Tuple[float, float, float, float, bool]: ... @staticmethod def Print(SE: BRepFeat_StatusError) -> Tuple[Standard_OStream, str]: ... @staticmethod def SampleEdges(S: TopoDS_Shape, Pt: TColgp_SequenceOfPnt) -> None: ... @staticmethod - def Tool(SRef: TopoDS_Shape, Fac: TopoDS_Face, Orf: TopAbs_Orientation) -> TopoDS_Solid: ... + def Tool( + SRef: TopoDS_Shape, Fac: TopoDS_Face, Orf: TopAbs_Orientation + ) -> TopoDS_Solid: ... class BRepFeat_Builder(BOPAlgo_BOP): def __init__(self) -> None: ... @@ -130,8 +133,16 @@ class BRepFeat_Builder(BOPAlgo_BOP): def KeepPart(self, theS: TopoDS_Shape) -> None: ... def KeepParts(self, theIm: TopTools_ListOfShape) -> None: ... def PartsOfTool(self, theLT: TopTools_ListOfShape) -> None: ... - def PerformResult(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def RebuildEdge(self, theE: TopoDS_Shape, theF: TopoDS_Face, theME: TopTools_MapOfShape, aLEIm: TopTools_ListOfShape) -> None: ... + def PerformResult( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... + def RebuildEdge( + self, + theE: TopoDS_Shape, + theF: TopoDS_Face, + theME: TopTools_MapOfShape, + aLEIm: TopTools_ListOfShape, + ) -> None: ... def RebuildFaces(self) -> None: ... @overload def SetOperation(self, theFuse: int) -> None: ... @@ -167,7 +178,9 @@ class BRepFeat_Gluer(BRepBuilderAPI_MakeShape): def Bind(self, Fnew: TopoDS_Face, Fbase: TopoDS_Face) -> None: ... @overload def Bind(self, Enew: TopoDS_Edge, Ebase: TopoDS_Edge) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def GluedShape(self) -> TopoDS_Shape: ... def Init(self, Snew: TopoDS_Shape, Sbase: TopoDS_Shape) -> None: ... def IsDeleted(self, F: TopoDS_Shape) -> bool: ... @@ -176,7 +189,13 @@ class BRepFeat_Gluer(BRepBuilderAPI_MakeShape): class BRepFeat_RibSlot(BRepBuilderAPI_MakeShape): @staticmethod - def ChoiceOfFaces(faces: TopTools_ListOfShape, cc: Geom_Curve, par: float, bnd: float, Pln: Geom_Plane) -> TopoDS_Face: ... + def ChoiceOfFaces( + faces: TopTools_ListOfShape, + cc: Geom_Curve, + par: float, + bnd: float, + Pln: Geom_Plane, + ) -> TopoDS_Face: ... def CurrentStatusError(self) -> BRepFeat_StatusError: ... def FacesForDraft(self) -> TopTools_ListOfShape: ... def FirstShape(self) -> TopTools_ListOfShape: ... @@ -204,7 +223,9 @@ class BRepFeat_SplitShape(BRepBuilderAPI_MakeShape): def Add(self, Comp: TopoDS_Compound, F: TopoDS_Face) -> None: ... @overload def Add(self, E: TopoDS_Edge, EOn: TopoDS_Edge) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def DirectLeft(self) -> TopTools_ListOfShape: ... def Init(self, S: TopoDS_Shape) -> None: ... def IsDeleted(self, S: TopoDS_Shape) -> bool: ... @@ -223,22 +244,50 @@ class BRepFeat_MakeCylindricalHole(BRepFeat_Builder): @overload def Perform(self, Radius: float) -> None: ... @overload - def Perform(self, Radius: float, PFrom: float, PTo: float, WithControl: Optional[bool] = True) -> None: ... - def PerformBlind(self, Radius: float, Length: float, WithControl: Optional[bool] = True) -> None: ... - def PerformThruNext(self, Radius: float, WithControl: Optional[bool] = True) -> None: ... - def PerformUntilEnd(self, Radius: float, WithControl: Optional[bool] = True) -> None: ... + def Perform( + self, + Radius: float, + PFrom: float, + PTo: float, + WithControl: Optional[bool] = True, + ) -> None: ... + def PerformBlind( + self, Radius: float, Length: float, WithControl: Optional[bool] = True + ) -> None: ... + def PerformThruNext( + self, Radius: float, WithControl: Optional[bool] = True + ) -> None: ... + def PerformUntilEnd( + self, Radius: float, WithControl: Optional[bool] = True + ) -> None: ... def Status(self) -> BRepFeat_Status: ... class BRepFeat_MakeDPrism(BRepFeat_Form): @overload - def __init__(self, Sbase: TopoDS_Shape, Pbase: TopoDS_Face, Skface: TopoDS_Face, Angle: float, Fuse: int, Modify: bool) -> None: ... + def __init__( + self, + Sbase: TopoDS_Shape, + Pbase: TopoDS_Face, + Skface: TopoDS_Face, + Angle: float, + Fuse: int, + Modify: bool, + ) -> None: ... @overload def __init__(self) -> None: ... def Add(self, E: TopoDS_Edge, OnFace: TopoDS_Face) -> None: ... def BarycCurve(self) -> Geom_Curve: ... def BossEdges(self, sig: int) -> None: ... def Curves(self, S: TColGeom_SequenceOfCurve) -> None: ... - def Init(self, Sbase: TopoDS_Shape, Pbase: TopoDS_Face, Skface: TopoDS_Face, Angle: float, Fuse: int, Modify: bool) -> None: ... + def Init( + self, + Sbase: TopoDS_Shape, + Pbase: TopoDS_Face, + Skface: TopoDS_Face, + Angle: float, + Fuse: int, + Modify: bool, + ) -> None: ... def LatEdges(self) -> TopTools_ListOfShape: ... @overload def Perform(self, Height: float) -> None: ... @@ -256,21 +305,57 @@ class BRepFeat_MakeLinearForm(BRepFeat_RibSlot): @overload def __init__(self) -> None: ... @overload - def __init__(self, Sbase: TopoDS_Shape, W: TopoDS_Wire, P: Geom_Plane, Direction: gp_Vec, Direction1: gp_Vec, Fuse: int, Modify: bool) -> None: ... + def __init__( + self, + Sbase: TopoDS_Shape, + W: TopoDS_Wire, + P: Geom_Plane, + Direction: gp_Vec, + Direction1: gp_Vec, + Fuse: int, + Modify: bool, + ) -> None: ... def Add(self, E: TopoDS_Edge, OnFace: TopoDS_Face) -> None: ... - def Init(self, Sbase: TopoDS_Shape, W: TopoDS_Wire, P: Geom_Plane, Direction: gp_Vec, Direction1: gp_Vec, Fuse: int, Modify: bool) -> None: ... + def Init( + self, + Sbase: TopoDS_Shape, + W: TopoDS_Wire, + P: Geom_Plane, + Direction: gp_Vec, + Direction1: gp_Vec, + Fuse: int, + Modify: bool, + ) -> None: ... def Perform(self) -> None: ... - def Propagate(self, L: TopTools_ListOfShape, F: TopoDS_Face, FPoint: gp_Pnt, LPoint: gp_Pnt) -> Tuple[bool, bool]: ... + def Propagate( + self, L: TopTools_ListOfShape, F: TopoDS_Face, FPoint: gp_Pnt, LPoint: gp_Pnt + ) -> Tuple[bool, bool]: ... class BRepFeat_MakePipe(BRepFeat_Form): @overload def __init__(self) -> None: ... @overload - def __init__(self, Sbase: TopoDS_Shape, Pbase: TopoDS_Shape, Skface: TopoDS_Face, Spine: TopoDS_Wire, Fuse: int, Modify: bool) -> None: ... + def __init__( + self, + Sbase: TopoDS_Shape, + Pbase: TopoDS_Shape, + Skface: TopoDS_Face, + Spine: TopoDS_Wire, + Fuse: int, + Modify: bool, + ) -> None: ... def Add(self, E: TopoDS_Edge, OnFace: TopoDS_Face) -> None: ... def BarycCurve(self) -> Geom_Curve: ... def Curves(self, S: TColGeom_SequenceOfCurve) -> None: ... - def Init(self, Sbase: TopoDS_Shape, Pbase: TopoDS_Shape, Skface: TopoDS_Face, Spine: TopoDS_Wire, Fuse: int, Modify: bool) -> None: ... + def Init( + self, + Sbase: TopoDS_Shape, + Pbase: TopoDS_Shape, + Skface: TopoDS_Face, + Spine: TopoDS_Wire, + Fuse: int, + Modify: bool, + ) -> None: ... @overload def Perform(self) -> None: ... @overload @@ -282,11 +367,27 @@ class BRepFeat_MakePrism(BRepFeat_Form): @overload def __init__(self) -> None: ... @overload - def __init__(self, Sbase: TopoDS_Shape, Pbase: TopoDS_Shape, Skface: TopoDS_Face, Direction: gp_Dir, Fuse: int, Modify: bool) -> None: ... + def __init__( + self, + Sbase: TopoDS_Shape, + Pbase: TopoDS_Shape, + Skface: TopoDS_Face, + Direction: gp_Dir, + Fuse: int, + Modify: bool, + ) -> None: ... def Add(self, E: TopoDS_Edge, OnFace: TopoDS_Face) -> None: ... def BarycCurve(self) -> Geom_Curve: ... def Curves(self, S: TColGeom_SequenceOfCurve) -> None: ... - def Init(self, Sbase: TopoDS_Shape, Pbase: TopoDS_Shape, Skface: TopoDS_Face, Direction: gp_Dir, Fuse: int, Modify: bool) -> None: ... + def Init( + self, + Sbase: TopoDS_Shape, + Pbase: TopoDS_Shape, + Skface: TopoDS_Face, + Direction: gp_Dir, + Fuse: int, + Modify: bool, + ) -> None: ... @overload def Perform(self, Length: float) -> None: ... @overload @@ -302,11 +403,27 @@ class BRepFeat_MakeRevol(BRepFeat_Form): @overload def __init__(self) -> None: ... @overload - def __init__(self, Sbase: TopoDS_Shape, Pbase: TopoDS_Shape, Skface: TopoDS_Face, Axis: gp_Ax1, Fuse: int, Modify: bool) -> None: ... + def __init__( + self, + Sbase: TopoDS_Shape, + Pbase: TopoDS_Shape, + Skface: TopoDS_Face, + Axis: gp_Ax1, + Fuse: int, + Modify: bool, + ) -> None: ... def Add(self, E: TopoDS_Edge, OnFace: TopoDS_Face) -> None: ... def BarycCurve(self) -> Geom_Curve: ... def Curves(self, S: TColGeom_SequenceOfCurve) -> None: ... - def Init(self, Sbase: TopoDS_Shape, Pbase: TopoDS_Shape, Skface: TopoDS_Face, Axis: gp_Ax1, Fuse: int, Modify: bool) -> None: ... + def Init( + self, + Sbase: TopoDS_Shape, + Pbase: TopoDS_Shape, + Skface: TopoDS_Face, + Axis: gp_Ax1, + Fuse: int, + Modify: bool, + ) -> None: ... @overload def Perform(self, Angle: float) -> None: ... @overload @@ -320,13 +437,32 @@ class BRepFeat_MakeRevolutionForm(BRepFeat_RibSlot): @overload def __init__(self) -> None: ... @overload - def __init__(self, Sbase: TopoDS_Shape, W: TopoDS_Wire, Plane: Geom_Plane, Axis: gp_Ax1, Height1: float, Height2: float, Fuse: int) -> bool: ... + def __init__( + self, + Sbase: TopoDS_Shape, + W: TopoDS_Wire, + Plane: Geom_Plane, + Axis: gp_Ax1, + Height1: float, + Height2: float, + Fuse: int, + ) -> bool: ... def Add(self, E: TopoDS_Edge, OnFace: TopoDS_Face) -> None: ... - def Init(self, Sbase: TopoDS_Shape, W: TopoDS_Wire, Plane: Geom_Plane, Axis: gp_Ax1, Height1: float, Height2: float, Fuse: int) -> bool: ... + def Init( + self, + Sbase: TopoDS_Shape, + W: TopoDS_Wire, + Plane: Geom_Plane, + Axis: gp_Ax1, + Height1: float, + Height2: float, + Fuse: int, + ) -> bool: ... def Perform(self) -> None: ... - def Propagate(self, L: TopTools_ListOfShape, F: TopoDS_Face, FPoint: gp_Pnt, LPoint: gp_Pnt) -> Tuple[bool, bool]: ... + def Propagate( + self, L: TopTools_ListOfShape, F: TopoDS_Face, FPoint: gp_Pnt, LPoint: gp_Pnt + ) -> Tuple[bool, bool]: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepFill.i b/src/SWIG_files/wrapper/BRepFill.i index 8e7640703..14f6015ca 100644 --- a/src/SWIG_files/wrapper/BRepFill.i +++ b/src/SWIG_files/wrapper/BRepFill.i @@ -197,6 +197,12 @@ BRepFill_ContactOnBorder = BRepFill_TypeOfContact.BRepFill_ContactOnBorder %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BRepFill_ListIteratorOfListOfOffsetWire(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(BRepFill_SequenceOfEdgeFaceAndOrder) NCollection_Sequence; diff --git a/src/SWIG_files/wrapper/BRepFill.pyi b/src/SWIG_files/wrapper/BRepFill.pyi index 1dc0855a7..071232128 100644 --- a/src/SWIG_files/wrapper/BRepFill.pyi +++ b/src/SWIG_files/wrapper/BRepFill.pyi @@ -22,66 +22,92 @@ from OCC.Core.Bisector import * from OCC.Core.TColgp import * # the following typedef cannot be wrapped as is -BRepFill_IndexedDataMapOfOrientedShapeListOfShape = NewType("BRepFill_IndexedDataMapOfOrientedShapeListOfShape", Any) +BRepFill_IndexedDataMapOfOrientedShapeListOfShape = NewType( + "BRepFill_IndexedDataMapOfOrientedShapeListOfShape", Any +) class BRepFill_ListOfOffsetWire: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: BRepFill_OffsetWire) -> BRepFill_OffsetWire: ... + def Assign( + self, theItem: BRepFill_ListOfOffsetWire + ) -> BRepFill_ListOfOffsetWire: ... def Clear(self) -> None: ... def First(self) -> BRepFill_OffsetWire: ... def Last(self) -> BRepFill_OffsetWire: ... - def Append(self, theItem: BRepFill_OffsetWire) -> BRepFill_OffsetWire: ... def Prepend(self, theItem: BRepFill_OffsetWire) -> BRepFill_OffsetWire: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BRepFill_OffsetWire: ... - def SetValue(self, theIndex: int, theValue: BRepFill_OffsetWire) -> None: ... - -class BRepFill_SequenceOfEdgeFaceAndOrder: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> BRepFill_OffsetWire: ... + +class BRepFill_SequenceOfEdgeFaceAndOrder: + def Assign( + self, theItem: BRepFill_EdgeFaceAndOrder + ) -> BRepFill_EdgeFaceAndOrder: ... def Clear(self) -> None: ... def First(self) -> BRepFill_EdgeFaceAndOrder: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> BRepFill_EdgeFaceAndOrder: ... def Length(self) -> int: ... - def Append(self, theItem: BRepFill_EdgeFaceAndOrder) -> BRepFill_EdgeFaceAndOrder: ... - def Prepend(self, theItem: BRepFill_EdgeFaceAndOrder) -> BRepFill_EdgeFaceAndOrder: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: BRepFill_EdgeFaceAndOrder + ) -> BRepFill_EdgeFaceAndOrder: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BRepFill_EdgeFaceAndOrder: ... def SetValue(self, theIndex: int, theValue: BRepFill_EdgeFaceAndOrder) -> None: ... - -class BRepFill_SequenceOfFaceAndOrder: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> BRepFill_EdgeFaceAndOrder: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class BRepFill_SequenceOfFaceAndOrder: + def Assign(self, theItem: BRepFill_FaceAndOrder) -> BRepFill_FaceAndOrder: ... def Clear(self) -> None: ... def First(self) -> BRepFill_FaceAndOrder: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> BRepFill_FaceAndOrder: ... def Length(self) -> int: ... - def Append(self, theItem: BRepFill_FaceAndOrder) -> BRepFill_FaceAndOrder: ... + def Lower(self) -> int: ... def Prepend(self, theItem: BRepFill_FaceAndOrder) -> BRepFill_FaceAndOrder: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BRepFill_FaceAndOrder: ... def SetValue(self, theIndex: int, theValue: BRepFill_FaceAndOrder) -> None: ... - -class BRepFill_SequenceOfSection: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> BRepFill_FaceAndOrder: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class BRepFill_SequenceOfSection: + def Assign(self, theItem: BRepFill_Section) -> BRepFill_Section: ... def Clear(self) -> None: ... def First(self) -> BRepFill_Section: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> BRepFill_Section: ... def Length(self) -> int: ... - def Append(self, theItem: BRepFill_Section) -> BRepFill_Section: ... + def Lower(self) -> int: ... def Prepend(self, theItem: BRepFill_Section) -> BRepFill_Section: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BRepFill_Section: ... def SetValue(self, theIndex: int, theValue: BRepFill_Section) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> BRepFill_Section: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class BRepFill_ThruSectionErrorStatus(IntEnum): BRepFill_ThruSectionErrorStatus_Done: int = ... @@ -92,13 +118,27 @@ class BRepFill_ThruSectionErrorStatus(IntEnum): BRepFill_ThruSectionErrorStatus_Null3DCurve: int = ... BRepFill_ThruSectionErrorStatus_Failed: int = ... -BRepFill_ThruSectionErrorStatus_Done = BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_Done -BRepFill_ThruSectionErrorStatus_NotDone = BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_NotDone -BRepFill_ThruSectionErrorStatus_NotSameTopology = BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_NotSameTopology -BRepFill_ThruSectionErrorStatus_ProfilesInconsistent = BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_ProfilesInconsistent -BRepFill_ThruSectionErrorStatus_WrongUsage = BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_WrongUsage -BRepFill_ThruSectionErrorStatus_Null3DCurve = BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_Null3DCurve -BRepFill_ThruSectionErrorStatus_Failed = BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_Failed +BRepFill_ThruSectionErrorStatus_Done = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_Done +) +BRepFill_ThruSectionErrorStatus_NotDone = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_NotDone +) +BRepFill_ThruSectionErrorStatus_NotSameTopology = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_NotSameTopology +) +BRepFill_ThruSectionErrorStatus_ProfilesInconsistent = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_ProfilesInconsistent +) +BRepFill_ThruSectionErrorStatus_WrongUsage = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_WrongUsage +) +BRepFill_ThruSectionErrorStatus_Null3DCurve = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_Null3DCurve +) +BRepFill_ThruSectionErrorStatus_Failed = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_Failed +) class BRepFill_TransitionStyle(IntEnum): BRepFill_Modified: int = ... @@ -120,20 +160,30 @@ BRepFill_ContactOnBorder = BRepFill_TypeOfContact.BRepFill_ContactOnBorder class brepfill: @staticmethod - def Axe(Spine: TopoDS_Shape, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Tol: float) -> bool: ... + def Axe( + Spine: TopoDS_Shape, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Tol: float + ) -> bool: ... @staticmethod def ComputeACR(wire: TopoDS_Wire, ACR: TColStd_Array1OfReal) -> None: ... @staticmethod def Face(Edge1: TopoDS_Edge, Edge2: TopoDS_Edge) -> TopoDS_Face: ... @staticmethod - def InsertACR(wire: TopoDS_Wire, ACRcuts: TColStd_Array1OfReal, prec: float) -> TopoDS_Wire: ... + def InsertACR( + wire: TopoDS_Wire, ACRcuts: TColStd_Array1OfReal, prec: float + ) -> TopoDS_Wire: ... @staticmethod def Shell(Wire1: TopoDS_Wire, Wire2: TopoDS_Wire) -> TopoDS_Shell: ... class BRepFill_AdvancedEvolved: def __init__(self) -> None: ... def IsDone(self, theErrorCode: Optional[int] = 0) -> bool: ... - def Perform(self, theSpine: TopoDS_Wire, theProfile: TopoDS_Wire, theTolerance: float, theSolidReq: Optional[bool] = True) -> None: ... + def Perform( + self, + theSpine: TopoDS_Wire, + theProfile: TopoDS_Wire, + theTolerance: float, + theSolidReq: Optional[bool] = True, + ) -> None: ... def SetParallelMode(self, theVal: bool) -> None: ... def SetTemporaryDirectory(self, thePath: str) -> None: ... def Shape(self) -> TopoDS_Shape: ... @@ -167,16 +217,37 @@ class BRepFill_CompatibleWires: class BRepFill_ComputeCLine: @overload - def __init__(self, Line: BRepFill_MultiLine, degreemin: Optional[int] = 3, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-5, Tolerance2d: Optional[float] = 1.0e-5, cutting: Optional[bool] = False, FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint) -> None: ... - @overload - def __init__(self, degreemin: Optional[int] = 3, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-05, Tolerance2d: Optional[float] = 1.0e-05, cutting: Optional[bool] = False, FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint) -> None: ... + def __init__( + self, + Line: BRepFill_MultiLine, + degreemin: Optional[int] = 3, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-5, + Tolerance2d: Optional[float] = 1.0e-5, + cutting: Optional[bool] = False, + FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + ) -> None: ... + @overload + def __init__( + self, + degreemin: Optional[int] = 3, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-05, + Tolerance2d: Optional[float] = 1.0e-05, + cutting: Optional[bool] = False, + FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + ) -> None: ... def Error(self, Index: int) -> Tuple[float, float]: ... def IsAllApproximated(self) -> bool: ... def IsToleranceReached(self) -> bool: ... def NbMultiCurves(self) -> int: ... def Parameters(self, Index: int) -> Tuple[float, float]: ... def Perform(self, Line: BRepFill_MultiLine) -> None: ... - def SetConstraints(self, FirstC: AppParCurves_Constraint, LastC: AppParCurves_Constraint) -> None: ... + def SetConstraints( + self, FirstC: AppParCurves_Constraint, LastC: AppParCurves_Constraint + ) -> None: ... def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... def SetHangChecking(self, theHangChecking: bool) -> None: ... def SetInvOrder(self, theInvOrder: bool) -> None: ... @@ -186,9 +257,23 @@ class BRepFill_ComputeCLine: class BRepFill_CurveConstraint(GeomPlate_CurveConstraint): @overload - def __init__(self, Boundary: Adaptor3d_CurveOnSurface, Order: int, NPt: Optional[int] = 10, TolDist: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1) -> None: ... - @overload - def __init__(self, Boundary: Adaptor3d_Curve, Tang: int, NPt: Optional[int] = 10, TolDist: Optional[float] = 0.0001) -> None: ... + def __init__( + self, + Boundary: Adaptor3d_CurveOnSurface, + Order: int, + NPt: Optional[int] = 10, + TolDist: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + ) -> None: ... + @overload + def __init__( + self, + Boundary: Adaptor3d_Curve, + Tang: int, + NPt: Optional[int] = 10, + TolDist: Optional[float] = 0.0001, + ) -> None: ... class BRepFill_Draft: def __init__(self, Shape: TopoDS_Shape, Dir: gp_Dir, Angle: float) -> None: ... @@ -197,11 +282,20 @@ class BRepFill_Draft: @overload def Perform(self, LengthMax: float) -> None: ... @overload - def Perform(self, Surface: Geom_Surface, KeepInsideSurface: Optional[bool] = True) -> None: ... + def Perform( + self, Surface: Geom_Surface, KeepInsideSurface: Optional[bool] = True + ) -> None: ... @overload - def Perform(self, StopShape: TopoDS_Shape, KeepOutSide: Optional[bool] = True) -> None: ... + def Perform( + self, StopShape: TopoDS_Shape, KeepOutSide: Optional[bool] = True + ) -> None: ... def SetDraft(self, IsInternal: Optional[bool] = False) -> None: ... - def SetOptions(self, Style: Optional[BRepFill_TransitionStyle] = BRepFill_Right, AngleMin: Optional[float] = 0.01, AngleMax: Optional[float] = 3.0) -> None: ... + def SetOptions( + self, + Style: Optional[BRepFill_TransitionStyle] = BRepFill_Right, + AngleMin: Optional[float] = 0.01, + AngleMax: Optional[float] = 3.0, + ) -> None: ... def Shape(self) -> TopoDS_Shape: ... def Shell(self) -> TopoDS_Shell: ... @@ -209,23 +303,55 @@ class BRepFill_EdgeFaceAndOrder: @overload def __init__(self) -> None: ... @overload - def __init__(self, anEdge: TopoDS_Edge, aFace: TopoDS_Face, anOrder: GeomAbs_Shape) -> None: ... + def __init__( + self, anEdge: TopoDS_Edge, aFace: TopoDS_Face, anOrder: GeomAbs_Shape + ) -> None: ... class BRepFill_Evolved: @overload def __init__(self) -> None: ... @overload - def __init__(self, Spine: TopoDS_Wire, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, Solid: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Spine: TopoDS_Face, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, Solid: Optional[bool] = False) -> None: ... + def __init__( + self, + Spine: TopoDS_Wire, + Profile: TopoDS_Wire, + AxeProf: gp_Ax3, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Solid: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Spine: TopoDS_Face, + Profile: TopoDS_Wire, + AxeProf: gp_Ax3, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Solid: Optional[bool] = False, + ) -> None: ... def Bottom(self) -> TopoDS_Shape: ... - def GeneratedShapes(self, SpineShape: TopoDS_Shape, ProfShape: TopoDS_Shape) -> TopTools_ListOfShape: ... + def GeneratedShapes( + self, SpineShape: TopoDS_Shape, ProfShape: TopoDS_Shape + ) -> TopTools_ListOfShape: ... def IsDone(self) -> bool: ... def JoinType(self) -> GeomAbs_JoinType: ... @overload - def Perform(self, Spine: TopoDS_Wire, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, Solid: Optional[bool] = False) -> None: ... - @overload - def Perform(self, Spine: TopoDS_Face, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, Solid: Optional[bool] = False) -> None: ... + def Perform( + self, + Spine: TopoDS_Wire, + Profile: TopoDS_Wire, + AxeProf: gp_Ax3, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Solid: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + Spine: TopoDS_Face, + Profile: TopoDS_Wire, + AxeProf: gp_Ax3, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Solid: Optional[bool] = False, + ) -> None: ... def Shape(self) -> TopoDS_Shape: ... def Top(self) -> TopoDS_Shape: ... @@ -236,17 +362,39 @@ class BRepFill_FaceAndOrder: def __init__(self, aFace: TopoDS_Face, anOrder: GeomAbs_Shape) -> None: ... class BRepFill_Filling: - def __init__(self, Degree: Optional[int] = 3, NbPtsOnCur: Optional[int] = 15, NbIter: Optional[int] = 2, Anisotropie: Optional[bool] = False, Tol2d: Optional[float] = 0.00001, Tol3d: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1, MaxDeg: Optional[int] = 8, MaxSegments: Optional[int] = 9) -> None: ... - @overload - def Add(self, anEdge: TopoDS_Edge, Order: GeomAbs_Shape, IsBound: Optional[bool] = True) -> int: ... - @overload - def Add(self, anEdge: TopoDS_Edge, Support: TopoDS_Face, Order: GeomAbs_Shape, IsBound: Optional[bool] = True) -> int: ... + def __init__( + self, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 15, + NbIter: Optional[int] = 2, + Anisotropie: Optional[bool] = False, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + MaxDeg: Optional[int] = 8, + MaxSegments: Optional[int] = 9, + ) -> None: ... + @overload + def Add( + self, anEdge: TopoDS_Edge, Order: GeomAbs_Shape, IsBound: Optional[bool] = True + ) -> int: ... + @overload + def Add( + self, + anEdge: TopoDS_Edge, + Support: TopoDS_Face, + Order: GeomAbs_Shape, + IsBound: Optional[bool] = True, + ) -> int: ... @overload def Add(self, Support: TopoDS_Face, Order: GeomAbs_Shape) -> int: ... @overload def Add(self, Point: gp_Pnt) -> int: ... @overload - def Add(self, U: float, V: float, Support: TopoDS_Face, Order: GeomAbs_Shape) -> int: ... + def Add( + self, U: float, V: float, Support: TopoDS_Face, Order: GeomAbs_Shape + ) -> int: ... def Build(self) -> None: ... def Face(self) -> TopoDS_Face: ... @overload @@ -264,9 +412,23 @@ class BRepFill_Filling: def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... def IsDone(self) -> bool: ... def LoadInitSurface(self, aFace: TopoDS_Face) -> None: ... - def SetApproxParam(self, MaxDeg: Optional[int] = 8, MaxSegments: Optional[int] = 9) -> None: ... - def SetConstrParam(self, Tol2d: Optional[float] = 0.00001, Tol3d: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1) -> None: ... - def SetResolParam(self, Degree: Optional[int] = 3, NbPtsOnCur: Optional[int] = 15, NbIter: Optional[int] = 2, Anisotropie: Optional[bool] = False) -> None: ... + def SetApproxParam( + self, MaxDeg: Optional[int] = 8, MaxSegments: Optional[int] = 9 + ) -> None: ... + def SetConstrParam( + self, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + ) -> None: ... + def SetResolParam( + self, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 15, + NbIter: Optional[int] = 2, + Anisotropie: Optional[bool] = False, + ) -> None: ... class BRepFill_Generator: def __init__(self) -> None: ... @@ -289,12 +451,24 @@ class BRepFill_LocationLaw(Standard_Transient): def GetStatus(self) -> GeomFill_PipeError: ... def Holes(self, Interval: TColStd_Array1OfInteger) -> None: ... def IsClosed(self) -> bool: ... - def IsG1(self, Index: int, SpatialTolerance: Optional[float] = 1.0e-7, AngularTolerance: Optional[float] = 1.0e-4) -> int: ... + def IsG1( + self, + Index: int, + SpatialTolerance: Optional[float] = 1.0e-7, + AngularTolerance: Optional[float] = 1.0e-4, + ) -> int: ... def Law(self, Index: int) -> GeomFill_LocationLaw: ... def NbHoles(self, Tol: Optional[float] = 1.0e-7) -> int: ... def NbLaw(self) -> int: ... def Parameter(self, Abscissa: float) -> Tuple[int, float]: ... - def PerformVertex(self, Index: int, InputVertex: TopoDS_Vertex, TolMin: float, OutputVertex: TopoDS_Vertex, Location: Optional[int] = 0) -> None: ... + def PerformVertex( + self, + Index: int, + InputVertex: TopoDS_Vertex, + TolMin: float, + OutputVertex: TopoDS_Vertex, + Location: Optional[int] = 0, + ) -> None: ... def TransformInCompatibleLaw(self, AngularTolerance: float) -> None: ... def TransformInG0Law(self) -> None: ... def Vertex(self, Index: int) -> TopoDS_Vertex: ... @@ -304,15 +478,28 @@ class BRepFill_MultiLine(AppCont_Function): @overload def __init__(self) -> None: ... @overload - def __init__(self, Face1: TopoDS_Face, Face2: TopoDS_Face, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, Inv1: bool, Inv2: bool, Bissec: Geom2d_Curve) -> None: ... + def __init__( + self, + Face1: TopoDS_Face, + Face2: TopoDS_Face, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Inv1: bool, + Inv2: bool, + Bissec: Geom2d_Curve, + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... - def Curves(self, Curve: Geom_Curve, PCurve1: Geom2d_Curve, PCurve2: Geom2d_Curve) -> None: ... + def Curves( + self, Curve: Geom_Curve, PCurve1: Geom2d_Curve, PCurve2: Geom2d_Curve + ) -> None: ... def FirstParameter(self) -> float: ... def IsParticularCase(self) -> bool: ... def LastParameter(self) -> float: ... @overload def Value(self, U: float) -> gp_Pnt: ... - def Value3dOnF1OnF2(self, U: float, P3d: gp_Pnt, PF1: gp_Pnt2d, PF2: gp_Pnt2d) -> None: ... + def Value3dOnF1OnF2( + self, U: float, P3d: gp_Pnt, PF1: gp_Pnt2d, PF2: gp_Pnt2d + ) -> None: ... def ValueOnF1(self, U: float) -> gp_Pnt2d: ... def ValueOnF2(self, U: float) -> gp_Pnt2d: ... @@ -330,13 +517,31 @@ class BRepFill_OffsetWire: @overload def __init__(self) -> None: ... @overload - def __init__(self, Spine: TopoDS_Face, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, IsOpenResult: Optional[bool] = False) -> None: ... + def __init__( + self, + Spine: TopoDS_Face, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... def GeneratedShapes(self, SpineShape: TopoDS_Shape) -> TopTools_ListOfShape: ... - def Init(self, Spine: TopoDS_Face, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, IsOpenResult: Optional[bool] = False) -> None: ... + def Init( + self, + Spine: TopoDS_Face, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... def IsDone(self) -> bool: ... def JoinType(self) -> GeomAbs_JoinType: ... def Perform(self, Offset: float, Alt: Optional[float] = 0.0) -> None: ... - def PerformWithBiLo(self, WSP: TopoDS_Face, Offset: float, Locus: BRepMAT2d_BisectingLocus, Link: BRepMAT2d_LinkTopoBilo, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, Alt: Optional[float] = 0.0) -> None: ... + def PerformWithBiLo( + self, + WSP: TopoDS_Face, + Offset: float, + Locus: BRepMAT2d_BisectingLocus, + Link: BRepMAT2d_LinkTopoBilo, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Alt: Optional[float] = 0.0, + ) -> None: ... def Shape(self) -> TopoDS_Shape: ... def Spine(self) -> TopoDS_Face: ... @@ -344,14 +549,26 @@ class BRepFill_Pipe: @overload def __init__(self) -> None: ... @overload - def __init__(self, Spine: TopoDS_Wire, Profile: TopoDS_Shape, aMode: Optional[GeomFill_Trihedron] = GeomFill_IsCorrectedFrenet, ForceApproxC1: Optional[bool] = False, GeneratePartCase: Optional[bool] = False) -> None: ... + def __init__( + self, + Spine: TopoDS_Wire, + Profile: TopoDS_Shape, + aMode: Optional[GeomFill_Trihedron] = GeomFill_IsCorrectedFrenet, + ForceApproxC1: Optional[bool] = False, + GeneratePartCase: Optional[bool] = False, + ) -> None: ... def Edge(self, ESpine: TopoDS_Edge, VProfile: TopoDS_Vertex) -> TopoDS_Edge: ... def ErrorOnSurface(self) -> float: ... def Face(self, ESpine: TopoDS_Edge, EProfile: TopoDS_Edge) -> TopoDS_Face: ... def FirstShape(self) -> TopoDS_Shape: ... def Generated(self, S: TopoDS_Shape, L: TopTools_ListOfShape) -> None: ... def LastShape(self) -> TopoDS_Shape: ... - def Perform(self, Spine: TopoDS_Wire, Profile: TopoDS_Shape, GeneratePartCase: Optional[bool] = False) -> None: ... + def Perform( + self, + Spine: TopoDS_Wire, + Profile: TopoDS_Shape, + GeneratePartCase: Optional[bool] = False, + ) -> None: ... def PipeLine(self, Point: gp_Pnt) -> TopoDS_Wire: ... def Profile(self) -> TopoDS_Shape: ... def Section(self, VSpine: TopoDS_Vertex) -> TopoDS_Shape: ... @@ -361,9 +578,20 @@ class BRepFill_Pipe: class BRepFill_PipeShell(Standard_Transient): def __init__(self, Spine: TopoDS_Wire) -> None: ... @overload - def Add(self, Profile: TopoDS_Shape, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... - @overload - def Add(self, Profile: TopoDS_Shape, Location: TopoDS_Vertex, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... + def Add( + self, + Profile: TopoDS_Shape, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + @overload + def Add( + self, + Profile: TopoDS_Shape, + Location: TopoDS_Vertex, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... def Build(self) -> bool: ... def DeleteProfile(self, Profile: TopoDS_Shape) -> None: ... def ErrorOnSurface(self) -> float: ... @@ -383,26 +611,62 @@ class BRepFill_PipeShell(Standard_Transient): @overload def Set(self, SpineSupport: TopoDS_Shape) -> bool: ... @overload - def Set(self, AuxiliarySpine: TopoDS_Wire, CurvilinearEquivalence: Optional[bool] = True, KeepContact: Optional[BRepFill_TypeOfContact] = BRepFill_NoContact) -> None: ... + def Set( + self, + AuxiliarySpine: TopoDS_Wire, + CurvilinearEquivalence: Optional[bool] = True, + KeepContact: Optional[BRepFill_TypeOfContact] = BRepFill_NoContact, + ) -> None: ... def SetDiscrete(self) -> None: ... def SetForceApproxC1(self, ForceApproxC1: bool) -> None: ... @overload - def SetLaw(self, Profile: TopoDS_Shape, L: Law_Function, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... - @overload - def SetLaw(self, Profile: TopoDS_Shape, L: Law_Function, Location: TopoDS_Vertex, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... + def SetLaw( + self, + Profile: TopoDS_Shape, + L: Law_Function, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + @overload + def SetLaw( + self, + Profile: TopoDS_Shape, + L: Law_Function, + Location: TopoDS_Vertex, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... def SetMaxDegree(self, NewMaxDegree: int) -> None: ... def SetMaxSegments(self, NewMaxSegments: int) -> None: ... - def SetTolerance(self, Tol3d: Optional[float] = 1.0e-4, BoundTol: Optional[float] = 1.0e-4, TolAngular: Optional[float] = 1.0e-2) -> None: ... - def SetTransition(self, Mode: Optional[BRepFill_TransitionStyle] = BRepFill_Modified, Angmin: Optional[float] = 1.0e-2, Angmax: Optional[float] = 6.0) -> None: ... + def SetTolerance( + self, + Tol3d: Optional[float] = 1.0e-4, + BoundTol: Optional[float] = 1.0e-4, + TolAngular: Optional[float] = 1.0e-2, + ) -> None: ... + def SetTransition( + self, + Mode: Optional[BRepFill_TransitionStyle] = BRepFill_Modified, + Angmin: Optional[float] = 1.0e-2, + Angmax: Optional[float] = 6.0, + ) -> None: ... def Shape(self) -> TopoDS_Shape: ... - def Simulate(self, NumberOfSection: int, Sections: TopTools_ListOfShape) -> None: ... + def Simulate( + self, NumberOfSection: int, Sections: TopTools_ListOfShape + ) -> None: ... def Spine(self) -> TopoDS_Wire: ... class BRepFill_Section: @overload def __init__(self) -> None: ... @overload - def __init__(self, Profile: TopoDS_Shape, V: TopoDS_Vertex, WithContact: bool, WithCorrection: bool) -> None: ... + def __init__( + self, + Profile: TopoDS_Shape, + V: TopoDS_Vertex, + WithContact: bool, + WithCorrection: bool, + ) -> None: ... def IsLaw(self) -> bool: ... def IsPunctual(self) -> bool: ... def ModifiedShape(self, theShape: TopoDS_Shape) -> TopoDS_Shape: ... @@ -432,23 +696,59 @@ class BRepFill_SectionLaw(Standard_Transient): class BRepFill_SectionPlacement: @overload - def __init__(self, Law: BRepFill_LocationLaw, Section: TopoDS_Shape, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Law: BRepFill_LocationLaw, Section: TopoDS_Shape, Vertex: TopoDS_Shape, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... + def __init__( + self, + Law: BRepFill_LocationLaw, + Section: TopoDS_Shape, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Law: BRepFill_LocationLaw, + Section: TopoDS_Shape, + Vertex: TopoDS_Shape, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... def AbscissaOnPath(self) -> float: ... def Transformation(self) -> gp_Trsf: ... class BRepFill_Sweep: - def __init__(self, Section: BRepFill_SectionLaw, Location: BRepFill_LocationLaw, WithKPart: bool) -> None: ... - def Build(self, ReversedEdges: TopTools_MapOfShape, Tapes: BRepFill_DataMapOfShapeHArray2OfShape, Rails: BRepFill_DataMapOfShapeHArray2OfShape, Transition: Optional[BRepFill_TransitionStyle] = BRepFill_Modified, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Approx: Optional[GeomFill_ApproxStyle] = GeomFill_Location, Degmax: Optional[int] = 11, Segmax: Optional[int] = 30) -> None: ... + def __init__( + self, + Section: BRepFill_SectionLaw, + Location: BRepFill_LocationLaw, + WithKPart: bool, + ) -> None: ... + def Build( + self, + ReversedEdges: TopTools_MapOfShape, + Tapes: BRepFill_DataMapOfShapeHArray2OfShape, + Rails: BRepFill_DataMapOfShapeHArray2OfShape, + Transition: Optional[BRepFill_TransitionStyle] = BRepFill_Modified, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Approx: Optional[GeomFill_ApproxStyle] = GeomFill_Location, + Degmax: Optional[int] = 11, + Segmax: Optional[int] = 30, + ) -> None: ... def ErrorOnSurface(self) -> float: ... def InterFaces(self) -> TopTools_HArray2OfShape: ... def IsDone(self) -> bool: ... def Sections(self) -> TopTools_HArray2OfShape: ... - def SetAngularControl(self, AngleMin: Optional[float] = 0.01, AngleMax: Optional[float] = 6.0) -> None: ... + def SetAngularControl( + self, AngleMin: Optional[float] = 0.01, AngleMax: Optional[float] = 6.0 + ) -> None: ... def SetBounds(self, FirstShape: TopoDS_Wire, LastShape: TopoDS_Wire) -> None: ... def SetForceApproxC1(self, ForceApproxC1: bool) -> None: ... - def SetTolerance(self, Tol3d: float, BoundTol: Optional[float] = 1.0, Tol2d: Optional[float] = 1.0e-5, TolAngular: Optional[float] = 1.0e-2) -> None: ... + def SetTolerance( + self, + Tol3d: float, + BoundTol: Optional[float] = 1.0, + Tol2d: Optional[float] = 1.0e-5, + TolAngular: Optional[float] = 1.0e-2, + ) -> None: ... def Shape(self) -> TopoDS_Shape: ... def SubShape(self) -> TopTools_HArray2OfShape: ... def Tape(self, Index: int) -> TopoDS_Shape: ... @@ -457,13 +757,42 @@ class BRepFill_TrimEdgeTool: @overload def __init__(self) -> None: ... @overload - def __init__(self, Bisec: Bisector_Bisec, S1: Geom2d_Geometry, S2: Geom2d_Geometry, Offset: float) -> None: ... - def AddOrConfuse(self, Start: bool, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, Params: TColgp_SequenceOfPnt) -> None: ... - def IntersectWith(self, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, InitShape1: TopoDS_Shape, InitShape2: TopoDS_Shape, End1: TopoDS_Vertex, End2: TopoDS_Vertex, theJoinType: GeomAbs_JoinType, IsOpenResult: bool, Params: TColgp_SequenceOfPnt) -> None: ... + def __init__( + self, + Bisec: Bisector_Bisec, + S1: Geom2d_Geometry, + S2: Geom2d_Geometry, + Offset: float, + ) -> None: ... + def AddOrConfuse( + self, + Start: bool, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Params: TColgp_SequenceOfPnt, + ) -> None: ... + def IntersectWith( + self, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + InitShape1: TopoDS_Shape, + InitShape2: TopoDS_Shape, + End1: TopoDS_Vertex, + End2: TopoDS_Vertex, + theJoinType: GeomAbs_JoinType, + IsOpenResult: bool, + Params: TColgp_SequenceOfPnt, + ) -> None: ... def IsInside(self, P: gp_Pnt2d) -> bool: ... class BRepFill_TrimShellCorner: - def __init__(self, theFaces: TopTools_HArray2OfShape, theTransition: BRepFill_TransitionStyle, theAxeOfBisPlane: gp_Ax2, theIntPointCrossDir: gp_Vec) -> None: ... + def __init__( + self, + theFaces: TopTools_HArray2OfShape, + theTransition: BRepFill_TransitionStyle, + theAxeOfBisPlane: gp_Ax2, + theIntPointCrossDir: gp_Vec, + ) -> None: ... def AddBounds(self, Bounds: TopTools_HArray2OfShape) -> None: ... def AddUEdges(self, theUEdges: TopTools_HArray2OfShape) -> None: ... def AddVEdges(self, theVEdges: TopTools_HArray2OfShape, theIndex: int) -> None: ... @@ -473,11 +802,29 @@ class BRepFill_TrimShellCorner: def Perform(self) -> None: ... class BRepFill_TrimSurfaceTool: - def __init__(self, Bis: Geom2d_Curve, Face1: TopoDS_Face, Face2: TopoDS_Face, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, Inv1: bool, Inv2: bool) -> None: ... - def IntersectWith(self, EdgeOnF1: TopoDS_Edge, EdgeOnF2: TopoDS_Edge, Points: TColgp_SequenceOfPnt) -> None: ... + def __init__( + self, + Bis: Geom2d_Curve, + Face1: TopoDS_Face, + Face2: TopoDS_Face, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Inv1: bool, + Inv2: bool, + ) -> None: ... + def IntersectWith( + self, EdgeOnF1: TopoDS_Edge, EdgeOnF2: TopoDS_Edge, Points: TColgp_SequenceOfPnt + ) -> None: ... def IsOnFace(self, Point: gp_Pnt2d) -> bool: ... def ProjOn(self, Point: gp_Pnt2d, Edge: TopoDS_Edge) -> float: ... - def Project(self, U1: float, U2: float, Curve: Geom_Curve, PCurve1: Geom2d_Curve, PCurve2: Geom2d_Curve) -> GeomAbs_Shape: ... + def Project( + self, + U1: float, + U2: float, + Curve: Geom_Curve, + PCurve1: Geom2d_Curve, + PCurve2: Geom2d_Curve, + ) -> GeomAbs_Shape: ... class BRepFill_ACRLaw(BRepFill_LocationLaw): def __init__(self, Path: TopoDS_Wire, Law: GeomFill_LocationGuide) -> None: ... @@ -491,9 +838,19 @@ class BRepFill_EdgeOnSurfLaw(BRepFill_LocationLaw): class BRepFill_NSections(BRepFill_SectionLaw): @overload - def __init__(self, S: TopTools_SequenceOfShape, Build: Optional[bool] = True) -> None: ... - @overload - def __init__(self, S: TopTools_SequenceOfShape, Trsfs: GeomFill_SequenceOfTrsf, P: TColStd_SequenceOfReal, VF: float, VL: float, Build: Optional[bool] = True) -> None: ... + def __init__( + self, S: TopTools_SequenceOfShape, Build: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, + S: TopTools_SequenceOfShape, + Trsfs: GeomFill_SequenceOfTrsf, + P: TColStd_SequenceOfReal, + VF: float, + VL: float, + Build: Optional[bool] = True, + ) -> None: ... def ConcatenedLaw(self) -> GeomFill_SectionLaw: ... def Continuity(self, Index: int, TolAngular: float) -> GeomAbs_Shape: ... def D0(self, Param: float, S: TopoDS_Shape) -> None: ... @@ -508,7 +865,9 @@ class BRepFill_ShapeLaw(BRepFill_SectionLaw): @overload def __init__(self, W: TopoDS_Wire, Build: Optional[bool] = True) -> None: ... @overload - def __init__(self, W: TopoDS_Wire, L: Law_Function, Build: Optional[bool] = True) -> None: ... + def __init__( + self, W: TopoDS_Wire, L: Law_Function, Build: Optional[bool] = True + ) -> None: ... def ConcatenedLaw(self) -> GeomFill_SectionLaw: ... def Continuity(self, Index: int, TolAngular: float) -> GeomAbs_Shape: ... def D0(self, Param: float, S: TopoDS_Shape) -> None: ... @@ -525,4 +884,3 @@ class BRepFill_DraftLaw(BRepFill_Edge3DLaw): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepFilletAPI.pyi b/src/SWIG_files/wrapper/BRepFilletAPI.pyi index cd98dc0d5..d408d396a 100644 --- a/src/SWIG_files/wrapper/BRepFilletAPI.pyi +++ b/src/SWIG_files/wrapper/BRepFilletAPI.pyi @@ -16,7 +16,6 @@ from OCC.Core.TColgp import * from OCC.Core.Geom import * from OCC.Core.GeomAbs import * - class BRepFilletAPI_LocalOperation(BRepBuilderAPI_MakeShape): def Abscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... def Add(self, E: TopoDS_Edge) -> None: ... @@ -43,12 +42,18 @@ class BRepFilletAPI_MakeFillet2d(BRepBuilderAPI_MakeShape): @overload def __init__(self, F: TopoDS_Face) -> None: ... @overload - def AddChamfer(self, E1: TopoDS_Edge, E2: TopoDS_Edge, D1: float, D2: float) -> TopoDS_Edge: ... + def AddChamfer( + self, E1: TopoDS_Edge, E2: TopoDS_Edge, D1: float, D2: float + ) -> TopoDS_Edge: ... @overload - def AddChamfer(self, E: TopoDS_Edge, V: TopoDS_Vertex, D: float, Ang: float) -> TopoDS_Edge: ... + def AddChamfer( + self, E: TopoDS_Edge, V: TopoDS_Vertex, D: float, Ang: float + ) -> TopoDS_Edge: ... def AddFillet(self, V: TopoDS_Vertex, Radius: float) -> TopoDS_Edge: ... def BasisEdge(self, E: TopoDS_Edge) -> TopoDS_Edge: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def ChamferEdges(self) -> TopTools_SequenceOfShape: ... def DescendantEdge(self, E: TopoDS_Edge) -> TopoDS_Edge: ... def FilletEdges(self) -> TopTools_SequenceOfShape: ... @@ -60,9 +65,18 @@ class BRepFilletAPI_MakeFillet2d(BRepBuilderAPI_MakeShape): def IsModified(self, E: TopoDS_Edge) -> bool: ... def Modified(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... @overload - def ModifyChamfer(self, Chamfer: TopoDS_Edge, E1: TopoDS_Edge, E2: TopoDS_Edge, D1: float, D2: float) -> TopoDS_Edge: ... - @overload - def ModifyChamfer(self, Chamfer: TopoDS_Edge, E: TopoDS_Edge, D: float, Ang: float) -> TopoDS_Edge: ... + def ModifyChamfer( + self, + Chamfer: TopoDS_Edge, + E1: TopoDS_Edge, + E2: TopoDS_Edge, + D1: float, + D2: float, + ) -> TopoDS_Edge: ... + @overload + def ModifyChamfer( + self, Chamfer: TopoDS_Edge, E: TopoDS_Edge, D: float, Ang: float + ) -> TopoDS_Edge: ... def ModifyFillet(self, Fillet: TopoDS_Edge, Radius: float) -> TopoDS_Edge: ... def NbChamfer(self) -> int: ... def NbCurves(self) -> int: ... @@ -81,8 +95,12 @@ class BRepFilletAPI_MakeChamfer(BRepFilletAPI_LocalOperation): def Add(self, Dis: float, E: TopoDS_Edge) -> None: ... @overload def Add(self, Dis1: float, Dis2: float, E: TopoDS_Edge, F: TopoDS_Face) -> None: ... - def AddDA(self, Dis: float, Angle: float, E: TopoDS_Edge, F: TopoDS_Face) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def AddDA( + self, Dis: float, Angle: float, E: TopoDS_Edge, F: TopoDS_Face + ) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Builder(self) -> TopOpeBRepBuild_HBuilder: ... def Closed(self, IC: int) -> bool: ... def ClosedAndTangent(self, IC: int) -> bool: ... @@ -109,13 +127,17 @@ class BRepFilletAPI_MakeChamfer(BRepFilletAPI_LocalOperation): def ResetContour(self, IC: int) -> None: ... def Sect(self, IC: int, IS: int) -> ChFiDS_SecHArray1: ... def SetDist(self, Dis: float, IC: int, F: TopoDS_Face) -> None: ... - def SetDistAngle(self, Dis: float, Angle: float, IC: int, F: TopoDS_Face) -> None: ... + def SetDistAngle( + self, Dis: float, Angle: float, IC: int, F: TopoDS_Face + ) -> None: ... def SetDists(self, Dis1: float, Dis2: float, IC: int, F: TopoDS_Face) -> None: ... def SetMode(self, theMode: ChFiDS_ChamfMode) -> None: ... def Simulate(self, IC: int) -> None: ... class BRepFilletAPI_MakeFillet(BRepFilletAPI_LocalOperation): - def __init__(self, S: TopoDS_Shape, FShape: Optional[ChFi3d_FilletShape] = ChFi3d_Rational) -> None: ... + def __init__( + self, S: TopoDS_Shape, FShape: Optional[ChFi3d_FilletShape] = ChFi3d_Rational + ) -> None: ... def Abscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... @overload def Add(self, E: TopoDS_Edge) -> None: ... @@ -128,7 +150,9 @@ class BRepFilletAPI_MakeFillet(BRepFilletAPI_LocalOperation): @overload def Add(self, UandR: TColgp_Array1OfPnt2d, E: TopoDS_Edge) -> None: ... def BadShape(self) -> TopoDS_Shape: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Builder(self) -> TopOpeBRepBuild_HBuilder: ... def Closed(self, IC: int) -> bool: ... def ClosedAndTangent(self, IC: int) -> bool: ... @@ -168,10 +192,20 @@ class BRepFilletAPI_MakeFillet(BRepFilletAPI_LocalOperation): def Reset(self) -> None: ... def ResetContour(self, IC: int) -> None: ... def Sect(self, IC: int, IS: int) -> ChFiDS_SecHArray1: ... - def SetContinuity(self, InternalContinuity: GeomAbs_Shape, AngularTolerance: float) -> None: ... + def SetContinuity( + self, InternalContinuity: GeomAbs_Shape, AngularTolerance: float + ) -> None: ... def SetFilletShape(self, FShape: ChFi3d_FilletShape) -> None: ... def SetLaw(self, IC: int, E: TopoDS_Edge, L: Law_Function) -> None: ... - def SetParams(self, Tang: float, Tesp: float, T2d: float, TApp3d: float, TolApp2d: float, Fleche: float) -> None: ... + def SetParams( + self, + Tang: float, + Tesp: float, + T2d: float, + TApp3d: float, + TolApp2d: float, + Fleche: float, + ) -> None: ... @overload def SetRadius(self, Radius: float, IC: int, IinC: int) -> None: ... @overload @@ -190,4 +224,3 @@ class BRepFilletAPI_MakeFillet(BRepFilletAPI_LocalOperation): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepGProp.pyi b/src/SWIG_files/wrapper/BRepGProp.pyi index 64685f855..e00d3f152 100644 --- a/src/SWIG_files/wrapper/BRepGProp.pyi +++ b/src/SWIG_files/wrapper/BRepGProp.pyi @@ -12,28 +12,73 @@ from OCC.Core.GeomAbs import * from OCC.Core.TColgp import * from OCC.Core.math import * - class brepgprop: @staticmethod - def LinearProperties(S: TopoDS_Shape, LProps: GProp_GProps, SkipShared: Optional[bool] = False, UseTriangulation: Optional[bool] = False) -> None: ... + def LinearProperties( + S: TopoDS_Shape, + LProps: GProp_GProps, + SkipShared: Optional[bool] = False, + UseTriangulation: Optional[bool] = False, + ) -> None: ... @overload @staticmethod - def SurfaceProperties(S: TopoDS_Shape, SProps: GProp_GProps, SkipShared: Optional[bool] = False, UseTriangulation: Optional[bool] = False) -> None: ... + def SurfaceProperties( + S: TopoDS_Shape, + SProps: GProp_GProps, + SkipShared: Optional[bool] = False, + UseTriangulation: Optional[bool] = False, + ) -> None: ... @overload @staticmethod - def SurfaceProperties(S: TopoDS_Shape, SProps: GProp_GProps, Eps: float, SkipShared: Optional[bool] = False) -> float: ... + def SurfaceProperties( + S: TopoDS_Shape, + SProps: GProp_GProps, + Eps: float, + SkipShared: Optional[bool] = False, + ) -> float: ... @overload @staticmethod - def VolumeProperties(S: TopoDS_Shape, VProps: GProp_GProps, OnlyClosed: Optional[bool] = False, SkipShared: Optional[bool] = False, UseTriangulation: Optional[bool] = False) -> None: ... + def VolumeProperties( + S: TopoDS_Shape, + VProps: GProp_GProps, + OnlyClosed: Optional[bool] = False, + SkipShared: Optional[bool] = False, + UseTriangulation: Optional[bool] = False, + ) -> None: ... @overload @staticmethod - def VolumeProperties(S: TopoDS_Shape, VProps: GProp_GProps, Eps: float, OnlyClosed: Optional[bool] = False, SkipShared: Optional[bool] = False) -> float: ... + def VolumeProperties( + S: TopoDS_Shape, + VProps: GProp_GProps, + Eps: float, + OnlyClosed: Optional[bool] = False, + SkipShared: Optional[bool] = False, + ) -> float: ... @overload @staticmethod - def VolumePropertiesGK(S: TopoDS_Shape, VProps: GProp_GProps, Eps: Optional[float] = 0.001, OnlyClosed: Optional[bool] = False, IsUseSpan: Optional[bool] = False, CGFlag: Optional[bool] = False, IFlag: Optional[bool] = False, SkipShared: Optional[bool] = False) -> float: ... + def VolumePropertiesGK( + S: TopoDS_Shape, + VProps: GProp_GProps, + Eps: Optional[float] = 0.001, + OnlyClosed: Optional[bool] = False, + IsUseSpan: Optional[bool] = False, + CGFlag: Optional[bool] = False, + IFlag: Optional[bool] = False, + SkipShared: Optional[bool] = False, + ) -> float: ... @overload @staticmethod - def VolumePropertiesGK(S: TopoDS_Shape, VProps: GProp_GProps, thePln: gp_Pln, Eps: Optional[float] = 0.001, OnlyClosed: Optional[bool] = False, IsUseSpan: Optional[bool] = False, CGFlag: Optional[bool] = False, IFlag: Optional[bool] = False, SkipShared: Optional[bool] = False) -> float: ... + def VolumePropertiesGK( + S: TopoDS_Shape, + VProps: GProp_GProps, + thePln: gp_Pln, + Eps: Optional[float] = 0.001, + OnlyClosed: Optional[bool] = False, + IsUseSpan: Optional[bool] = False, + CGFlag: Optional[bool] = False, + IFlag: Optional[bool] = False, + SkipShared: Optional[bool] = False, + ) -> float: ... class BRepGProp_Cinert(GProp_GProps): @overload @@ -64,7 +109,9 @@ class BRepGProp_EdgeTool: @staticmethod def IntegrationOrder(C: BRepAdaptor_Curve) -> int: ... @staticmethod - def Intervals(C: BRepAdaptor_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def Intervals( + C: BRepAdaptor_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... @staticmethod def LastParameter(C: BRepAdaptor_Curve) -> float: ... @staticmethod @@ -81,8 +128,12 @@ class BRepGProp_Face: def D12d(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def FirstParameter(self) -> float: ... def GetFace(self) -> TopoDS_Face: ... - def GetTKnots(self, theTMin: float, theTMax: float, theTKnots: TColStd_HArray1OfReal) -> None: ... - def GetUKnots(self, theUMin: float, theUMax: float, theUKnots: TColStd_HArray1OfReal) -> None: ... + def GetTKnots( + self, theTMin: float, theTMax: float, theTKnots: TColStd_HArray1OfReal + ) -> None: ... + def GetUKnots( + self, theUMin: float, theUMax: float, theUKnots: TColStd_HArray1OfReal + ) -> None: ... def IntegrationOrder(self) -> int: ... def LIntOrder(self, Eps: float) -> int: ... def LIntSubs(self) -> int: ... @@ -121,11 +172,15 @@ class BRepGProp_Sinert(GProp_GProps): @overload def __init__(self, S: BRepGProp_Face, SLocation: gp_Pnt) -> None: ... @overload - def __init__(self, S: BRepGProp_Face, D: BRepGProp_Domain, SLocation: gp_Pnt) -> None: ... + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, SLocation: gp_Pnt + ) -> None: ... @overload def __init__(self, S: BRepGProp_Face, SLocation: gp_Pnt, Eps: float) -> None: ... @overload - def __init__(self, S: BRepGProp_Face, D: BRepGProp_Domain, SLocation: gp_Pnt, Eps: float) -> None: ... + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, SLocation: gp_Pnt, Eps: float + ) -> None: ... def GetEpsilon(self) -> float: ... @overload def Perform(self, S: BRepGProp_Face) -> None: ... @@ -138,7 +193,15 @@ class BRepGProp_Sinert(GProp_GProps): def SetLocation(self, SLocation: gp_Pnt) -> None: ... class BRepGProp_TFunction(math_Function): - def __init__(self, theSurface: BRepGProp_Face, theVertex: gp_Pnt, IsByPoint: bool, theCoeffs: float, theUMin: float, theTolerance: float) -> None: ... + def __init__( + self, + theSurface: BRepGProp_Face, + theVertex: gp_Pnt, + IsByPoint: bool, + theCoeffs: float, + theUMin: float, + theTolerance: float, + ) -> None: ... def AbsolutError(self) -> float: ... def ErrorReached(self) -> float: ... def GetStateNumber(self) -> int: ... @@ -149,7 +212,13 @@ class BRepGProp_TFunction(math_Function): def Value(self, X: float) -> Tuple[bool, float]: ... class BRepGProp_UFunction(math_Function): - def __init__(self, theSurface: BRepGProp_Face, theVertex: gp_Pnt, IsByPoint: bool, theCoeffs: float) -> None: ... + def __init__( + self, + theSurface: BRepGProp_Face, + theVertex: gp_Pnt, + IsByPoint: bool, + theCoeffs: float, + ) -> None: ... def SetVParam(self, theVParam: float) -> None: ... def SetValueType(self, theType: GProp_ValueType) -> None: ... def Value(self, X: float) -> Tuple[bool, float]: ... @@ -164,23 +233,49 @@ class BRepGProp_Vinert(GProp_GProps): @overload def __init__(self, S: BRepGProp_Face, O: gp_Pnt, VLocation: gp_Pnt) -> None: ... @overload - def __init__(self, S: BRepGProp_Face, O: gp_Pnt, VLocation: gp_Pnt, Eps: float) -> None: ... + def __init__( + self, S: BRepGProp_Face, O: gp_Pnt, VLocation: gp_Pnt, Eps: float + ) -> None: ... @overload def __init__(self, S: BRepGProp_Face, Pl: gp_Pln, VLocation: gp_Pnt) -> None: ... @overload - def __init__(self, S: BRepGProp_Face, Pl: gp_Pln, VLocation: gp_Pnt, Eps: float) -> None: ... - @overload - def __init__(self, S: BRepGProp_Face, D: BRepGProp_Domain, VLocation: gp_Pnt) -> None: ... - @overload - def __init__(self, S: BRepGProp_Face, D: BRepGProp_Domain, VLocation: gp_Pnt, Eps: float) -> None: ... - @overload - def __init__(self, S: BRepGProp_Face, D: BRepGProp_Domain, O: gp_Pnt, VLocation: gp_Pnt) -> None: ... - @overload - def __init__(self, S: BRepGProp_Face, D: BRepGProp_Domain, O: gp_Pnt, VLocation: gp_Pnt, Eps: float) -> None: ... - @overload - def __init__(self, S: BRepGProp_Face, D: BRepGProp_Domain, Pl: gp_Pln, VLocation: gp_Pnt) -> None: ... - @overload - def __init__(self, S: BRepGProp_Face, D: BRepGProp_Domain, Pl: gp_Pln, VLocation: gp_Pnt, Eps: float) -> None: ... + def __init__( + self, S: BRepGProp_Face, Pl: gp_Pln, VLocation: gp_Pnt, Eps: float + ) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, VLocation: gp_Pnt + ) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, VLocation: gp_Pnt, Eps: float + ) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, O: gp_Pnt, VLocation: gp_Pnt + ) -> None: ... + @overload + def __init__( + self, + S: BRepGProp_Face, + D: BRepGProp_Domain, + O: gp_Pnt, + VLocation: gp_Pnt, + Eps: float, + ) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, Pl: gp_Pln, VLocation: gp_Pnt + ) -> None: ... + @overload + def __init__( + self, + S: BRepGProp_Face, + D: BRepGProp_Domain, + Pl: gp_Pln, + VLocation: gp_Pnt, + Eps: float, + ) -> None: ... def GetEpsilon(self) -> float: ... @overload def Perform(self, S: BRepGProp_Face) -> None: ... @@ -201,47 +296,142 @@ class BRepGProp_Vinert(GProp_GProps): @overload def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain, O: gp_Pnt) -> None: ... @overload - def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain, O: gp_Pnt, Eps: float) -> float: ... + def Perform( + self, S: BRepGProp_Face, D: BRepGProp_Domain, O: gp_Pnt, Eps: float + ) -> float: ... @overload def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain, Pl: gp_Pln) -> None: ... @overload - def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain, Pl: gp_Pln, Eps: float) -> float: ... + def Perform( + self, S: BRepGProp_Face, D: BRepGProp_Domain, Pl: gp_Pln, Eps: float + ) -> float: ... def SetLocation(self, VLocation: gp_Pnt) -> None: ... class BRepGProp_VinertGK(GProp_GProps): @overload def __init__(self) -> None: ... @overload - def __init__(self, theSurface: BRepGProp_Face, theLocation: gp_Pnt, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> None: ... - @overload - def __init__(self, theSurface: BRepGProp_Face, thePoint: gp_Pnt, theLocation: gp_Pnt, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> None: ... - @overload - def __init__(self, theSurface: BRepGProp_Face, theDomain: BRepGProp_Domain, theLocation: gp_Pnt, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> None: ... - @overload - def __init__(self, theSurface: BRepGProp_Face, theDomain: BRepGProp_Domain, thePoint: gp_Pnt, theLocation: gp_Pnt, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> None: ... - @overload - def __init__(self, theSurface: BRepGProp_Face, thePlane: gp_Pln, theLocation: gp_Pnt, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> None: ... - @overload - def __init__(self, theSurface: BRepGProp_Face, theDomain: BRepGProp_Domain, thePlane: gp_Pln, theLocation: gp_Pnt, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> None: ... + def __init__( + self, + theSurface: BRepGProp_Face, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + thePoint: gp_Pnt, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + thePoint: gp_Pnt, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + thePlane: gp_Pln, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + thePlane: gp_Pln, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... def GetErrorReached(self) -> float: ... @overload - def Perform(self, theSurface: BRepGProp_Face, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> float: ... - @overload - def Perform(self, theSurface: BRepGProp_Face, thePoint: gp_Pnt, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> float: ... - @overload - def Perform(self, theSurface: BRepGProp_Face, theDomain: BRepGProp_Domain, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> float: ... - @overload - def Perform(self, theSurface: BRepGProp_Face, theDomain: BRepGProp_Domain, thePoint: gp_Pnt, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> float: ... - @overload - def Perform(self, theSurface: BRepGProp_Face, thePlane: gp_Pln, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> float: ... - @overload - def Perform(self, theSurface: BRepGProp_Face, theDomain: BRepGProp_Domain, thePlane: gp_Pln, theTolerance: Optional[float] = 0.001, theCGFlag: Optional[bool] = False, theIFlag: Optional[bool] = False) -> float: ... + def Perform( + self, + theSurface: BRepGProp_Face, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + thePoint: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + thePoint: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + thePlane: gp_Pln, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + thePlane: gp_Pln, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... def SetLocation(self, theLocation: gp_Pnt) -> None: ... -#classnotwrapped +# classnotwrapped class BRepGProp_MeshProps: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepIntCurveSurface.pyi b/src/SWIG_files/wrapper/BRepIntCurveSurface.pyi index 1c84152ce..7a1bb4733 100644 --- a/src/SWIG_files/wrapper/BRepIntCurveSurface.pyi +++ b/src/SWIG_files/wrapper/BRepIntCurveSurface.pyi @@ -9,12 +9,13 @@ from OCC.Core.gp import * from OCC.Core.IntCurveSurface import * from OCC.Core.TopAbs import * - class BRepIntCurveSurface_Inter: def __init__(self) -> None: ... def Face(self) -> TopoDS_Face: ... @overload - def Init(self, theShape: TopoDS_Shape, theCurve: GeomAdaptor_Curve, theTol: float) -> None: ... + def Init( + self, theShape: TopoDS_Shape, theCurve: GeomAdaptor_Curve, theTol: float + ) -> None: ... @overload def Init(self, theShape: TopoDS_Shape, theLine: gp_Lin, theTol: float) -> None: ... @overload @@ -33,4 +34,3 @@ class BRepIntCurveSurface_Inter: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepLProp.pyi b/src/SWIG_files/wrapper/BRepLProp.pyi index f320331fb..0776eb202 100644 --- a/src/SWIG_files/wrapper/BRepLProp.pyi +++ b/src/SWIG_files/wrapper/BRepLProp.pyi @@ -7,20 +7,30 @@ from OCC.Core.BRepAdaptor import * from OCC.Core.GeomAbs import * from OCC.Core.gp import * - class breplprop: @overload @staticmethod - def Continuity(C1: BRepAdaptor_Curve, C2: BRepAdaptor_Curve, u1: float, u2: float, tl: float, ta: float) -> GeomAbs_Shape: ... + def Continuity( + C1: BRepAdaptor_Curve, + C2: BRepAdaptor_Curve, + u1: float, + u2: float, + tl: float, + ta: float, + ) -> GeomAbs_Shape: ... @overload @staticmethod - def Continuity(C1: BRepAdaptor_Curve, C2: BRepAdaptor_Curve, u1: float, u2: float) -> GeomAbs_Shape: ... + def Continuity( + C1: BRepAdaptor_Curve, C2: BRepAdaptor_Curve, u1: float, u2: float + ) -> GeomAbs_Shape: ... class BRepLProp_CLProps: @overload def __init__(self, C: BRepAdaptor_Curve, N: int, Resolution: float) -> None: ... @overload - def __init__(self, C: BRepAdaptor_Curve, U: float, N: int, Resolution: float) -> None: ... + def __init__( + self, C: BRepAdaptor_Curve, U: float, N: int, Resolution: float + ) -> None: ... @overload def __init__(self, N: int, Resolution: float) -> None: ... def CentreOfCurvature(self, P: gp_Pnt) -> None: ... @@ -41,9 +51,13 @@ class BRepLProp_CurveTool: @staticmethod def D1(C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec) -> None: ... @staticmethod - def D2(C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def D2( + C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec + ) -> None: ... @staticmethod - def D3(C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @staticmethod def FirstParameter(C: BRepAdaptor_Curve) -> float: ... @staticmethod @@ -53,7 +67,9 @@ class BRepLProp_CurveTool: class BRepLProp_SLProps: @overload - def __init__(self, S: BRepAdaptor_Surface, U: float, V: float, N: int, Resolution: float) -> None: ... + def __init__( + self, S: BRepAdaptor_Surface, U: float, V: float, N: int, Resolution: float + ) -> None: ... @overload def __init__(self, S: BRepAdaptor_Surface, N: int, Resolution: float) -> None: ... @overload @@ -86,9 +102,21 @@ class BRepLProp_SurfaceTool: @staticmethod def Continuity(S: BRepAdaptor_Surface) -> int: ... @staticmethod - def D1(S: BRepAdaptor_Surface, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... + def D1( + S: BRepAdaptor_Surface, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec + ) -> None: ... @staticmethod - def D2(S: BRepAdaptor_Surface, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, DUV: gp_Vec) -> None: ... + def D2( + S: BRepAdaptor_Surface, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + DUV: gp_Vec, + ) -> None: ... @staticmethod def DN(S: BRepAdaptor_Surface, U: float, V: float, IU: int, IV: int) -> gp_Vec: ... @staticmethod @@ -97,4 +125,3 @@ class BRepLProp_SurfaceTool: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepLib.pyi b/src/SWIG_files/wrapper/BRepLib.pyi index f3f8dcd66..a4f451f22 100644 --- a/src/SWIG_files/wrapper/BRepLib.pyi +++ b/src/SWIG_files/wrapper/BRepLib.pyi @@ -14,7 +14,6 @@ from OCC.Core.BRepTools import * from OCC.Core.TopLoc import * from OCC.Core.Poly import * - class BRepLib_EdgeError(IntEnum): BRepLib_EdgeDone: int = ... BRepLib_PointProjectionFailed: int = ... @@ -27,9 +26,15 @@ class BRepLib_EdgeError(IntEnum): BRepLib_EdgeDone = BRepLib_EdgeError.BRepLib_EdgeDone BRepLib_PointProjectionFailed = BRepLib_EdgeError.BRepLib_PointProjectionFailed BRepLib_ParameterOutOfRange = BRepLib_EdgeError.BRepLib_ParameterOutOfRange -BRepLib_DifferentPointsOnClosedCurve = BRepLib_EdgeError.BRepLib_DifferentPointsOnClosedCurve -BRepLib_PointWithInfiniteParameter = BRepLib_EdgeError.BRepLib_PointWithInfiniteParameter -BRepLib_DifferentsPointAndParameter = BRepLib_EdgeError.BRepLib_DifferentsPointAndParameter +BRepLib_DifferentPointsOnClosedCurve = ( + BRepLib_EdgeError.BRepLib_DifferentPointsOnClosedCurve +) +BRepLib_PointWithInfiniteParameter = ( + BRepLib_EdgeError.BRepLib_PointWithInfiniteParameter +) +BRepLib_DifferentsPointAndParameter = ( + BRepLib_EdgeError.BRepLib_DifferentsPointAndParameter +) BRepLib_LineThroughIdenticPoints = BRepLib_EdgeError.BRepLib_LineThroughIdenticPoints class BRepLib_FaceError(IntEnum): @@ -82,10 +87,22 @@ BRepLib_NonManifoldWire = BRepLib_WireError.BRepLib_NonManifoldWire class breplib: @staticmethod - def BuildCurve3d(E: TopoDS_Edge, Tolerance: Optional[float] = 1.0e-5, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, MaxDegree: Optional[int] = 14, MaxSegment: Optional[int] = 0) -> bool: ... + def BuildCurve3d( + E: TopoDS_Edge, + Tolerance: Optional[float] = 1.0e-5, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + MaxDegree: Optional[int] = 14, + MaxSegment: Optional[int] = 0, + ) -> bool: ... @overload @staticmethod - def BuildCurves3d(S: TopoDS_Shape, Tolerance: float, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, MaxDegree: Optional[int] = 14, MaxSegment: Optional[int] = 0) -> bool: ... + def BuildCurves3d( + S: TopoDS_Shape, + Tolerance: float, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + MaxDegree: Optional[int] = 14, + MaxSegment: Optional[int] = 0, + ) -> bool: ... @overload @staticmethod def BuildCurves3d(S: TopoDS_Shape) -> bool: ... @@ -94,27 +111,66 @@ class breplib: def BuildPCurveForEdgeOnPlane(theE: TopoDS_Edge, theF: TopoDS_Face) -> None: ... @overload @staticmethod - def BuildPCurveForEdgeOnPlane(theE: TopoDS_Edge, theF: TopoDS_Face, aC2D: Geom2d_Curve) -> bool: ... + def BuildPCurveForEdgeOnPlane( + theE: TopoDS_Edge, theF: TopoDS_Face, aC2D: Geom2d_Curve + ) -> bool: ... @staticmethod - def CheckSameRange(E: TopoDS_Edge, Confusion: Optional[float] = 1.0e-12) -> bool: ... + def CheckSameRange( + E: TopoDS_Edge, Confusion: Optional[float] = 1.0e-12 + ) -> bool: ... @staticmethod - def ContinuityOfFaces(theEdge: TopoDS_Edge, theFace1: TopoDS_Face, theFace2: TopoDS_Face, theAngleTol: float) -> GeomAbs_Shape: ... + def ContinuityOfFaces( + theEdge: TopoDS_Edge, + theFace1: TopoDS_Face, + theFace2: TopoDS_Face, + theAngleTol: float, + ) -> GeomAbs_Shape: ... @overload @staticmethod - def EncodeRegularity(S: TopoDS_Shape, TolAng: Optional[float] = 1.0e-10) -> None: ... + def EncodeRegularity( + S: TopoDS_Shape, TolAng: Optional[float] = 1.0e-10 + ) -> None: ... @overload @staticmethod - def EncodeRegularity(S: TopoDS_Shape, LE: TopTools_ListOfShape, TolAng: Optional[float] = 1.0e-10) -> None: ... + def EncodeRegularity( + S: TopoDS_Shape, LE: TopTools_ListOfShape, TolAng: Optional[float] = 1.0e-10 + ) -> None: ... @overload @staticmethod - def EncodeRegularity(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, TolAng: Optional[float] = 1.0e-10) -> None: ... + def EncodeRegularity( + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + TolAng: Optional[float] = 1.0e-10, + ) -> None: ... @staticmethod - def EnsureNormalConsistency(S: TopoDS_Shape, theAngTol: Optional[float] = 0.001, ForceComputeNormals: Optional[bool] = False) -> bool: ... + def EnsureNormalConsistency( + S: TopoDS_Shape, + theAngTol: Optional[float] = 0.001, + ForceComputeNormals: Optional[bool] = False, + ) -> bool: ... @staticmethod - def ExtendFace(theF: TopoDS_Face, theExtVal: float, theExtUMin: bool, theExtUMax: bool, theExtVMin: bool, theExtVMax: bool, theFExtended: TopoDS_Face) -> None: ... + def ExtendFace( + theF: TopoDS_Face, + theExtVal: float, + theExtUMin: bool, + theExtUMax: bool, + theExtVMin: bool, + theExtVMax: bool, + theFExtended: TopoDS_Face, + ) -> None: ... @overload @staticmethod - def FindValidRange(theCurve: Adaptor3d_Curve, theTolE: float, theParV1: float, thePntV1: gp_Pnt, theTolV1: float, theParV2: float, thePntV2: gp_Pnt, theTolV2: float) -> Tuple[bool, float, float]: ... + def FindValidRange( + theCurve: Adaptor3d_Curve, + theTolE: float, + theParV1: float, + thePntV1: gp_Pnt, + theTolV1: float, + theParV2: float, + thePntV2: gp_Pnt, + theTolV2: float, + ) -> Tuple[bool, float, float]: ... @overload @staticmethod def FindValidRange(theEdge: TopoDS_Edge) -> Tuple[bool, float, float]: ... @@ -136,16 +192,29 @@ class breplib: def ReverseSortFaces(S: TopoDS_Shape, LF: TopTools_ListOfShape) -> None: ... @overload @staticmethod - def SameParameter(theEdge: TopoDS_Edge, Tolerance: Optional[float] = 1.0e-5) -> None: ... + def SameParameter( + theEdge: TopoDS_Edge, Tolerance: Optional[float] = 1.0e-5 + ) -> None: ... @overload @staticmethod - def SameParameter(theEdge: TopoDS_Edge, theTolerance: float, IsUseOldEdge: bool) -> Tuple[TopoDS_Edge, float]: ... + def SameParameter( + theEdge: TopoDS_Edge, theTolerance: float, IsUseOldEdge: bool + ) -> Tuple[TopoDS_Edge, float]: ... @overload @staticmethod - def SameParameter(S: TopoDS_Shape, Tolerance: Optional[float] = 1.0e-5, forced: Optional[bool] = False) -> None: ... + def SameParameter( + S: TopoDS_Shape, + Tolerance: Optional[float] = 1.0e-5, + forced: Optional[bool] = False, + ) -> None: ... @overload @staticmethod - def SameParameter(S: TopoDS_Shape, theReshaper: BRepTools_ReShape, Tolerance: Optional[float] = 1.0e-5, forced: Optional[bool] = False) -> None: ... + def SameParameter( + S: TopoDS_Shape, + theReshaper: BRepTools_ReShape, + Tolerance: Optional[float] = 1.0e-5, + forced: Optional[bool] = False, + ) -> None: ... @staticmethod def SameRange(E: TopoDS_Edge, Tolerance: Optional[float] = 1.0e-5) -> None: ... @staticmethod @@ -153,17 +222,27 @@ class breplib: @staticmethod def UpdateDeflection(S: TopoDS_Shape) -> None: ... @staticmethod - def UpdateEdgeTol(E: TopoDS_Edge, MinToleranceRequest: float, MaxToleranceToCheck: float) -> bool: ... + def UpdateEdgeTol( + E: TopoDS_Edge, MinToleranceRequest: float, MaxToleranceToCheck: float + ) -> bool: ... @staticmethod - def UpdateEdgeTolerance(S: TopoDS_Shape, MinToleranceRequest: float, MaxToleranceToCheck: float) -> bool: ... + def UpdateEdgeTolerance( + S: TopoDS_Shape, MinToleranceRequest: float, MaxToleranceToCheck: float + ) -> bool: ... @staticmethod def UpdateInnerTolerances(S: TopoDS_Shape) -> None: ... @overload @staticmethod - def UpdateTolerances(S: TopoDS_Shape, verifyFaceTolerance: Optional[bool] = False) -> None: ... + def UpdateTolerances( + S: TopoDS_Shape, verifyFaceTolerance: Optional[bool] = False + ) -> None: ... @overload @staticmethod - def UpdateTolerances(S: TopoDS_Shape, theReshaper: BRepTools_ReShape, verifyFaceTolerance: Optional[bool] = False) -> None: ... + def UpdateTolerances( + S: TopoDS_Shape, + theReshaper: BRepTools_ReShape, + verifyFaceTolerance: Optional[bool] = False, + ) -> None: ... class BRepLib_CheckCurveOnSurface: @overload @@ -187,17 +266,31 @@ class BRepLib_FindSurface: @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, Tol: Optional[float] = -1, OnlyPlane: Optional[bool] = False, OnlyClosed: Optional[bool] = False) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + Tol: Optional[float] = -1, + OnlyPlane: Optional[bool] = False, + OnlyClosed: Optional[bool] = False, + ) -> None: ... def Existed(self) -> bool: ... def Found(self) -> bool: ... - def Init(self, S: TopoDS_Shape, Tol: Optional[float] = -1, OnlyPlane: Optional[bool] = False, OnlyClosed: Optional[bool] = False) -> None: ... + def Init( + self, + S: TopoDS_Shape, + Tol: Optional[float] = -1, + OnlyPlane: Optional[bool] = False, + OnlyClosed: Optional[bool] = False, + ) -> None: ... def Location(self) -> TopLoc_Location: ... def Surface(self) -> Geom_Surface: ... def Tolerance(self) -> float: ... def ToleranceReached(self) -> float: ... class BRepLib_FuseEdges: - def __init__(self, theShape: TopoDS_Shape, PerformNow: Optional[bool] = False) -> None: ... + def __init__( + self, theShape: TopoDS_Shape, PerformNow: Optional[bool] = False + ) -> None: ... def AvoidEdges(self, theMapEdg: TopTools_IndexedMapOfShape) -> None: ... def Edges(self, theMapLstEdg: TopTools_DataMapOfIntegerListOfShape) -> None: ... def Faces(self, theMapFac: TopTools_DataMapOfShapeShape) -> None: ... @@ -225,10 +318,17 @@ class BRepLib_ToolTriangulatedShape: def ComputeNormals(theFace: TopoDS_Face, theTris: Poly_Triangulation) -> None: ... @overload @staticmethod - def ComputeNormals(theFace: TopoDS_Face, theTris: Poly_Triangulation, thePolyConnect: Poly_Connect) -> None: ... + def ComputeNormals( + theFace: TopoDS_Face, theTris: Poly_Triangulation, thePolyConnect: Poly_Connect + ) -> None: ... class BRepLib_ValidateEdge: - def __init__(self, theReferenceCurve: Adaptor3d_Curve, theOtherCurve: Adaptor3d_CurveOnSurface, theSameParameter: bool) -> None: ... + def __init__( + self, + theReferenceCurve: Adaptor3d_Curve, + theOtherCurve: Adaptor3d_CurveOnSurface, + theSameParameter: bool, + ) -> None: ... def CheckTolerance(self, theToleranceToCheck: float) -> bool: ... def GetMaxDistance(self) -> float: ... def IsDone(self) -> bool: ... @@ -306,21 +406,47 @@ class BRepLib_MakeEdge(BRepLib_MakeShape): @overload def __init__(self, L: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... @overload - def __init__(self, L: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float) -> None: ... + def __init__( + self, L: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float + ) -> None: ... @overload - def __init__(self, L: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def __init__( + self, L: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float + ) -> None: ... @overload def __init__(self, L: Geom2d_Curve, S: Geom_Surface) -> None: ... @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, p1: float, p2: float) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def __init__( + self, L: Geom2d_Curve, S: Geom_Surface, p1: float, p2: float + ) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt + ) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... + @overload + def __init__( + self, + L: Geom2d_Curve, + S: Geom_Surface, + P1: gp_Pnt, + P2: gp_Pnt, + p1: float, + p2: float, + ) -> None: ... + @overload + def __init__( + self, + L: Geom2d_Curve, + S: Geom_Surface, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... def Edge(self) -> TopoDS_Edge: ... def Error(self) -> BRepLib_EdgeError: ... @overload @@ -332,21 +458,45 @@ class BRepLib_MakeEdge(BRepLib_MakeShape): @overload def Init(self, C: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... @overload - def Init(self, C: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float) -> None: ... + def Init( + self, C: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float + ) -> None: ... @overload - def Init(self, C: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def Init( + self, C: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float + ) -> None: ... @overload def Init(self, C: Geom2d_Curve, S: Geom_Surface) -> None: ... @overload def Init(self, C: Geom2d_Curve, S: Geom_Surface, p1: float, p2: float) -> None: ... @overload - def Init(self, C: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt) -> None: ... - @overload - def Init(self, C: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... - @overload - def Init(self, C: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float) -> None: ... - @overload - def Init(self, C: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def Init( + self, C: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt + ) -> None: ... + @overload + def Init( + self, C: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... + @overload + def Init( + self, + C: Geom2d_Curve, + S: Geom_Surface, + P1: gp_Pnt, + P2: gp_Pnt, + p1: float, + p2: float, + ) -> None: ... + @overload + def Init( + self, + C: Geom2d_Curve, + S: Geom_Surface, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... def Vertex1(self) -> TopoDS_Vertex: ... def Vertex2(self) -> TopoDS_Vertex: ... @@ -402,11 +552,22 @@ class BRepLib_MakeEdge2d(BRepLib_MakeShape): @overload def __init__(self, L: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... @overload - def __init__(self, L: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float) -> None: ... - @overload - def __init__(self, L: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def __init__( + self, L: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float + ) -> None: ... + @overload + def __init__( + self, + L: Geom2d_Curve, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... def Edge(self) -> TopoDS_Edge: ... def Error(self) -> BRepLib_EdgeError: ... @overload @@ -418,9 +579,18 @@ class BRepLib_MakeEdge2d(BRepLib_MakeShape): @overload def Init(self, C: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... @overload - def Init(self, C: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float) -> None: ... - @overload - def Init(self, C: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float) -> None: ... + def Init( + self, C: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float + ) -> None: ... + @overload + def Init( + self, + C: Geom2d_Curve, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... def Vertex1(self) -> TopoDS_Vertex: ... def Vertex2(self) -> TopoDS_Vertex: ... @@ -442,31 +612,61 @@ class BRepLib_MakeFace(BRepLib_MakeShape): @overload def __init__(self, S: Geom_Surface, TolDegen: float) -> None: ... @overload - def __init__(self, P: gp_Pln, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, P: gp_Pln, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, C: gp_Cylinder, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, C: gp_Cylinder, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, C: gp_Cone, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, C: gp_Cone, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, S: gp_Sphere, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, S: gp_Sphere, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, C: gp_Torus, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, C: gp_Torus, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float, TolDegen: float) -> None: ... + def __init__( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + TolDegen: float, + ) -> None: ... @overload def __init__(self, W: TopoDS_Wire, OnlyPlane: Optional[bool] = False) -> None: ... @overload - def __init__(self, P: gp_Pln, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, P: gp_Pln, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, C: gp_Cylinder, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, C: gp_Cylinder, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, C: gp_Cone, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, C: gp_Cone, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, S: gp_Sphere, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, S: gp_Sphere, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, C: gp_Torus, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, C: gp_Torus, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, S: Geom_Surface, W: TopoDS_Wire, Inside: Optional[bool] = True) -> None: ... + def __init__( + self, S: Geom_Surface, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... @overload def __init__(self, F: TopoDS_Face, W: TopoDS_Wire) -> None: ... def Add(self, W: TopoDS_Wire) -> None: ... @@ -477,7 +677,15 @@ class BRepLib_MakeFace(BRepLib_MakeShape): @overload def Init(self, S: Geom_Surface, Bound: bool, TolDegen: float) -> None: ... @overload - def Init(self, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float, TolDegen: float) -> None: ... + def Init( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + TolDegen: float, + ) -> None: ... @staticmethod def IsDegenerated(theCurve: Geom_Curve, theMaxTol: float) -> Tuple[bool, float]: ... @@ -487,15 +695,37 @@ class BRepLib_MakePolygon(BRepLib_MakeShape): @overload def __init__(self, P1: gp_Pnt, P2: gp_Pnt) -> None: ... @overload - def __init__(self, P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, Close: Optional[bool] = False) -> None: ... + def __init__( + self, P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, Close: Optional[bool] = False + ) -> None: ... @overload - def __init__(self, P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, P4: gp_Pnt, Close: Optional[bool] = False) -> None: ... + def __init__( + self, + P1: gp_Pnt, + P2: gp_Pnt, + P3: gp_Pnt, + P4: gp_Pnt, + Close: Optional[bool] = False, + ) -> None: ... @overload def __init__(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... @overload - def __init__(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex, V3: TopoDS_Vertex, Close: Optional[bool] = False) -> None: ... - @overload - def __init__(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex, V3: TopoDS_Vertex, V4: TopoDS_Vertex, Close: Optional[bool] = False) -> None: ... + def __init__( + self, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + V3: TopoDS_Vertex, + Close: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + V3: TopoDS_Vertex, + V4: TopoDS_Vertex, + Close: Optional[bool] = False, + ) -> None: ... @overload def Add(self, P: gp_Pnt) -> None: ... @overload @@ -513,9 +743,25 @@ class BRepLib_MakeShell(BRepLib_MakeShape): @overload def __init__(self, S: Geom_Surface, Segment: Optional[bool] = False) -> None: ... @overload - def __init__(self, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float, Segment: Optional[bool] = False) -> None: ... + def __init__( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Segment: Optional[bool] = False, + ) -> None: ... def Error(self) -> BRepLib_ShellError: ... - def Init(self, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float, Segment: Optional[bool] = False) -> None: ... + def Init( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Segment: Optional[bool] = False, + ) -> None: ... def Shell(self) -> TopoDS_Shell: ... class BRepLib_MakeSolid(BRepLib_MakeShape): @@ -528,7 +774,9 @@ class BRepLib_MakeSolid(BRepLib_MakeShape): @overload def __init__(self, S1: TopoDS_Shell, S2: TopoDS_Shell) -> None: ... @overload - def __init__(self, S1: TopoDS_Shell, S2: TopoDS_Shell, S3: TopoDS_Shell) -> None: ... + def __init__( + self, S1: TopoDS_Shell, S2: TopoDS_Shell, S3: TopoDS_Shell + ) -> None: ... @overload def __init__(self, So: TopoDS_Solid) -> None: ... @overload @@ -552,7 +800,9 @@ class BRepLib_MakeWire(BRepLib_MakeShape): @overload def __init__(self, E1: TopoDS_Edge, E2: TopoDS_Edge, E3: TopoDS_Edge) -> None: ... @overload - def __init__(self, E1: TopoDS_Edge, E2: TopoDS_Edge, E3: TopoDS_Edge, E4: TopoDS_Edge) -> None: ... + def __init__( + self, E1: TopoDS_Edge, E2: TopoDS_Edge, E3: TopoDS_Edge, E4: TopoDS_Edge + ) -> None: ... @overload def __init__(self, W: TopoDS_Wire) -> None: ... @overload @@ -571,4 +821,3 @@ class BRepLib_MakeWire(BRepLib_MakeShape): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepMAT2d.pyi b/src/SWIG_files/wrapper/BRepMAT2d.pyi index 91f982a7d..f166bfb63 100644 --- a/src/SWIG_files/wrapper/BRepMAT2d.pyi +++ b/src/SWIG_files/wrapper/BRepMAT2d.pyi @@ -11,11 +11,17 @@ from OCC.Core.gp import * from OCC.Core.TopoDS import * from OCC.Core.TColStd import * - class BRepMAT2d_BisectingLocus: def __init__(self) -> None: ... def BasicElt(self, IndLine: int, Index: int) -> MAT_BasicElt: ... - def Compute(self, anExplo: BRepMAT2d_Explorer, LineIndex: Optional[int] = 1, aSide: Optional[MAT_Side] = MAT_Left, aJoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, IsOpenResult: Optional[bool] = False) -> None: ... + def Compute( + self, + anExplo: BRepMAT2d_Explorer, + LineIndex: Optional[int] = 1, + aSide: Optional[MAT_Side] = MAT_Left, + aJoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... def GeomBis(self, anArc: MAT_Arc) -> Tuple[Bisector_Bisec, bool]: ... @overload def GeomElt(self, aBasicElt: MAT_BasicElt) -> Geom2d_Geometry: ... @@ -50,15 +56,18 @@ class BRepMAT2d_LinkTopoBilo: @overload def __init__(self) -> None: ... @overload - def __init__(self, Explo: BRepMAT2d_Explorer, BiLo: BRepMAT2d_BisectingLocus) -> None: ... + def __init__( + self, Explo: BRepMAT2d_Explorer, BiLo: BRepMAT2d_BisectingLocus + ) -> None: ... def GeneratingShape(self, aBE: MAT_BasicElt) -> TopoDS_Shape: ... def Init(self, S: TopoDS_Shape) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... - def Perform(self, Explo: BRepMAT2d_Explorer, BiLo: BRepMAT2d_BisectingLocus) -> None: ... + def Perform( + self, Explo: BRepMAT2d_Explorer, BiLo: BRepMAT2d_BisectingLocus + ) -> None: ... def Value(self) -> MAT_BasicElt: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepMesh.pyi b/src/SWIG_files/wrapper/BRepMesh.pyi index 207ed0675..6a3397a95 100644 --- a/src/SWIG_files/wrapper/BRepMesh.pyi +++ b/src/SWIG_files/wrapper/BRepMesh.pyi @@ -21,7 +21,6 @@ from OCC.Core.Geom import * from OCC.Core.IMeshData import * from OCC.Core.TColgp import * - class BRepMesh_DegreeOfFreedom(IntEnum): BRepMesh_Free: int = ... BRepMesh_InVolume: int = ... @@ -64,7 +63,12 @@ class BRepMesh_Circle: def SetRadius(self, theRadius: float) -> None: ... class BRepMesh_CircleInspector(NCollection_CellFilter_InspectorXY): - def __init__(self, theTolerance: float, theReservedSize: int, theAllocator: NCollection_IncAllocator) -> None: ... + def __init__( + self, + theTolerance: float, + theReservedSize: int, + theAllocator: NCollection_IncAllocator, + ) -> None: ... def Bind(self, theIndex: int, theCircle: BRepMesh_Circle) -> None: ... def Circle(self, theIndex: int) -> BRepMesh_Circle: ... def Circles(self) -> False: ... @@ -78,15 +82,21 @@ class BRepMesh_CircleTool: @overload def __init__(self, theAllocator: NCollection_IncAllocator) -> None: ... @overload - def __init__(self, theReservedSize: int, theAllocator: NCollection_IncAllocator) -> None: ... + def __init__( + self, theReservedSize: int, theAllocator: NCollection_IncAllocator + ) -> None: ... @overload def Bind(self, theIndex: int, theCircle: gp_Circ2d) -> None: ... @overload - def Bind(self, theIndex: int, thePoint1: gp_XY, thePoint2: gp_XY, thePoint3: gp_XY) -> bool: ... + def Bind( + self, theIndex: int, thePoint1: gp_XY, thePoint2: gp_XY, thePoint3: gp_XY + ) -> bool: ... def Delete(self, theIndex: int) -> None: ... def IsEmpty(self) -> bool: ... @staticmethod - def MakeCircle(thePoint1: gp_XY, thePoint2: gp_XY, thePoint3: gp_XY, theLocation: gp_XY) -> Tuple[bool, float]: ... + def MakeCircle( + thePoint1: gp_XY, thePoint2: gp_XY, thePoint3: gp_XY, theLocation: gp_XY + ) -> Tuple[bool, float]: ... def MocBind(self, theIndex: int) -> None: ... def Select(self, thePoint: gp_XY) -> False: ... @overload @@ -100,17 +110,28 @@ class BRepMesh_Classifier(Standard_Transient): def Perform(self, thePoint: gp_Pnt2d) -> TopAbs_State: ... class BRepMesh_Context(IMeshTools_Context): - def __init__(self, theMeshType: Optional[IMeshTools_MeshAlgoType] = IMeshTools_MeshAlgoType_DEFAULT) -> None: ... + def __init__( + self, + theMeshType: Optional[ + IMeshTools_MeshAlgoType + ] = IMeshTools_MeshAlgoType_DEFAULT, + ) -> None: ... class BRepMesh_CurveTessellator(IMeshTools_CurveTessellator): def PointsNb(self) -> int: ... def Value(self, theIndex: int, thePoint: gp_Pnt) -> Tuple[bool, float]: ... class BRepMesh_DataStructureOfDelaun(Standard_Transient): - def __init__(self, theAllocator: NCollection_IncAllocator, theReservedNodeSize: Optional[int] = 100) -> None: ... + def __init__( + self, + theAllocator: NCollection_IncAllocator, + theReservedNodeSize: Optional[int] = 100, + ) -> None: ... def AddElement(self, theElement: BRepMesh_Triangle) -> int: ... def AddLink(self, theLink: BRepMesh_Edge) -> int: ... - def AddNode(self, theNode: BRepMesh_Vertex, isForceAdd: Optional[bool] = False) -> int: ... + def AddNode( + self, theNode: BRepMesh_Vertex, isForceAdd: Optional[bool] = False + ) -> int: ... def Allocator(self) -> NCollection_IncAllocator: ... def ClearDeleted(self) -> None: ... def ClearDomain(self) -> None: ... @@ -134,7 +155,9 @@ class BRepMesh_DataStructureOfDelaun(Standard_Transient): def RemoveLink(self, theIndex: int, isForce: Optional[bool] = False) -> None: ... def RemoveNode(self, theIndex: int, isForce: Optional[bool] = False) -> None: ... def Statistics(self) -> str: ... - def SubstituteElement(self, theIndex: int, theNewElement: BRepMesh_Triangle) -> bool: ... + def SubstituteElement( + self, theIndex: int, theNewElement: BRepMesh_Triangle + ) -> bool: ... def SubstituteLink(self, theIndex: int, theNewLink: BRepMesh_Edge) -> bool: ... def SubstituteNode(self, theIndex: int, theNewNode: BRepMesh_Vertex) -> bool: ... @@ -154,19 +177,36 @@ class BRepMesh_DefaultRangeSplitter: class BRepMesh_Deflection(Standard_Transient): @staticmethod - def ComputeAbsoluteDeflection(theShape: TopoDS_Shape, theRelativeDeflection: float, theMaxShapeSize: float) -> float: ... + def ComputeAbsoluteDeflection( + theShape: TopoDS_Shape, theRelativeDeflection: float, theMaxShapeSize: float + ) -> float: ... @staticmethod - def IsConsistent(theCurrent: float, theRequired: float, theAllowDecrease: bool, theRatio: Optional[float] = 0.1) -> bool: ... + def IsConsistent( + theCurrent: float, + theRequired: float, + theAllowDecrease: bool, + theRatio: Optional[float] = 0.1, + ) -> bool: ... class BRepMesh_DelabellaMeshAlgoFactory(IMeshTools_MeshAlgoFactory): def __init__(self) -> None: ... - def GetAlgo(self, theSurfaceType: GeomAbs_SurfaceType, theParameters: IMeshTools_Parameters) -> IMeshTools_MeshAlgo: ... + def GetAlgo( + self, theSurfaceType: GeomAbs_SurfaceType, theParameters: IMeshTools_Parameters + ) -> IMeshTools_MeshAlgo: ... class BRepMesh_Delaun: @overload - def __init__(self, theOldMesh: BRepMesh_DataStructureOfDelaun, theCellsCountU: int, theCellsCountV: int, isFillCircles: bool) -> None: ... + def __init__( + self, + theOldMesh: BRepMesh_DataStructureOfDelaun, + theCellsCountU: int, + theCellsCountV: int, + isFillCircles: bool, + ) -> None: ... def Circles(self) -> BRepMesh_CircleTool: ... - def Contains(self, theTriangleId: int, theVertex: BRepMesh_Vertex, theSqTolerance: float) -> Tuple[bool, int]: ... + def Contains( + self, theTriangleId: int, theVertex: BRepMesh_Vertex, theSqTolerance: float + ) -> Tuple[bool, int]: ... def GetEdge(self, theIndex: int) -> BRepMesh_Edge: ... def GetTriangle(self, theIndex: int) -> BRepMesh_Triangle: ... def GetVertex(self, theIndex: int) -> BRepMesh_Vertex: ... @@ -178,19 +218,25 @@ class BRepMesh_Delaun: class BRepMesh_DiscretFactory: def DefaultName(self) -> str: ... - def Discret(self, theShape: TopoDS_Shape, theLinDeflection: float, theAngDeflection: float) -> BRepMesh_DiscretRoot: ... + def Discret( + self, theShape: TopoDS_Shape, theLinDeflection: float, theAngDeflection: float + ) -> BRepMesh_DiscretRoot: ... def ErrorStatus(self) -> BRepMesh_FactoryError: ... def FunctionName(self) -> str: ... @staticmethod def Get() -> BRepMesh_DiscretFactory: ... def Names(self) -> TColStd_MapOfAsciiString: ... - def SetDefault(self, theName: str, theFuncName: Optional[str] = "DISCRETALGO") -> bool: ... + def SetDefault( + self, theName: str, theFuncName: Optional[str] = "DISCRETALGO" + ) -> bool: ... def SetDefaultName(self, theName: str) -> bool: ... def SetFunctionName(self, theFuncName: str) -> bool: ... class BRepMesh_DiscretRoot(Standard_Transient): def IsDone(self) -> bool: ... - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def SetShape(self, theShape: TopoDS_Shape) -> None: ... def Shape(self) -> TopoDS_Shape: ... @@ -205,28 +251,69 @@ class BRepMesh_FaceDiscret(IMeshTools_ModelAlgo): class BRepMesh_GeomTool: @overload - def __init__(self, theCurve: BRepAdaptor_Curve, theFirstParam: float, theLastParam: float, theLinDeflection: float, theAngDeflection: float, theMinPointsNb: Optional[int] = 2, theMinSize: Optional[float] = Precision.Confusion()) -> None: ... - @overload - def __init__(self, theSurface: BRepAdaptor_Surface, theIsoType: GeomAbs_IsoType, theParamIso: float, theFirstParam: float, theLastParam: float, theLinDeflection: float, theAngDeflection: float, theMinPointsNb: Optional[int] = 2, theMinSize: Optional[float] = Precision.Confusion()) -> None: ... - def AddPoint(self, thePoint: gp_Pnt, theParam: float, theIsReplace: Optional[bool] = True) -> int: ... + def __init__( + self, + theCurve: BRepAdaptor_Curve, + theFirstParam: float, + theLastParam: float, + theLinDeflection: float, + theAngDeflection: float, + theMinPointsNb: Optional[int] = 2, + theMinSize: Optional[float] = Precision.Confusion(), + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepAdaptor_Surface, + theIsoType: GeomAbs_IsoType, + theParamIso: float, + theFirstParam: float, + theLastParam: float, + theLinDeflection: float, + theAngDeflection: float, + theMinPointsNb: Optional[int] = 2, + theMinSize: Optional[float] = Precision.Confusion(), + ) -> None: ... + def AddPoint( + self, thePoint: gp_Pnt, theParam: float, theIsReplace: Optional[bool] = True + ) -> int: ... @staticmethod - def CellsCount(theSurface: Adaptor3d_Surface, theVerticesNb: int, theDeflection: float, theRangeSplitter: BRepMesh_DefaultRangeSplitter) -> False: ... + def CellsCount( + theSurface: Adaptor3d_Surface, + theVerticesNb: int, + theDeflection: float, + theRangeSplitter: BRepMesh_DefaultRangeSplitter, + ) -> False: ... def NbPoints(self) -> int: ... @staticmethod - def SquareDeflectionOfSegment(theFirstPoint: gp_Pnt, theLastPoint: gp_Pnt, theMidPoint: gp_Pnt) -> float: ... - @overload - def Value(self, theIndex: int, theIsoParam: float, thePoint: gp_Pnt, theUV: gp_Pnt2d) -> Tuple[bool, float]: ... - @overload - def Value(self, theIndex: int, theSurface: BRepAdaptor_Surface, thePoint: gp_Pnt, theUV: gp_Pnt2d) -> Tuple[bool, float]: ... + def SquareDeflectionOfSegment( + theFirstPoint: gp_Pnt, theLastPoint: gp_Pnt, theMidPoint: gp_Pnt + ) -> float: ... + @overload + def Value( + self, theIndex: int, theIsoParam: float, thePoint: gp_Pnt, theUV: gp_Pnt2d + ) -> Tuple[bool, float]: ... + @overload + def Value( + self, + theIndex: int, + theSurface: BRepAdaptor_Surface, + thePoint: gp_Pnt, + theUV: gp_Pnt2d, + ) -> Tuple[bool, float]: ... class BRepMesh_MeshAlgoFactory(IMeshTools_MeshAlgoFactory): def __init__(self) -> None: ... - def GetAlgo(self, theSurfaceType: GeomAbs_SurfaceType, theParameters: IMeshTools_Parameters) -> IMeshTools_MeshAlgo: ... + def GetAlgo( + self, theSurfaceType: GeomAbs_SurfaceType, theParameters: IMeshTools_Parameters + ) -> IMeshTools_MeshAlgo: ... class BRepMesh_MeshTool(Standard_Transient): @overload def __init__(self, theStructure: BRepMesh_DataStructureOfDelaun) -> None: ... - def AddAndLegalizeTriangle(self, thePoint1: int, thePoint2: int, thePoint3: int) -> None: ... + def AddAndLegalizeTriangle( + self, thePoint1: int, thePoint2: int, thePoint3: int + ) -> None: ... def AddLink(self, theFirstNode: int, theLastNode: int) -> Tuple[int, bool]: ... def CleanFrontierLinks(self) -> None: ... @overload @@ -293,14 +380,20 @@ class BRepMesh_SelectorOfDataStructureOfDelaun(Standard_Transient): class BRepMesh_ShapeTool(Standard_Transient): @staticmethod - def AddInFace(theFace: TopoDS_Face, theTriangulation: Poly_Triangulation) -> None: ... + def AddInFace( + theFace: TopoDS_Face, theTriangulation: Poly_Triangulation + ) -> None: ... @staticmethod def BoxMaxDimension(theBox: Bnd_Box) -> float: ... @staticmethod def MaxFaceTolerance(theFace: TopoDS_Face) -> float: ... @overload @staticmethod - def NullifyEdge(theEdge: TopoDS_Edge, theTriangulation: Poly_Triangulation, theLocation: TopLoc_Location) -> None: ... + def NullifyEdge( + theEdge: TopoDS_Edge, + theTriangulation: Poly_Triangulation, + theLocation: TopLoc_Location, + ) -> None: ... @overload @staticmethod def NullifyEdge(theEdge: TopoDS_Edge, theLocation: TopLoc_Location) -> None: ... @@ -308,21 +401,47 @@ class BRepMesh_ShapeTool(Standard_Transient): def NullifyFace(theFace: TopoDS_Face) -> None: ... @overload @staticmethod - def Range(theEdge: TopoDS_Edge, theFace: TopoDS_Face, thePCurve: Geom2d_Curve, isConsiderOrientation: Optional[bool] = False) -> Tuple[bool, float, float]: ... + def Range( + theEdge: TopoDS_Edge, + theFace: TopoDS_Face, + thePCurve: Geom2d_Curve, + isConsiderOrientation: Optional[bool] = False, + ) -> Tuple[bool, float, float]: ... @overload @staticmethod - def Range(theEdge: TopoDS_Edge, theCurve: Geom_Curve, isConsiderOrientation: Optional[bool] = False) -> Tuple[bool, float, float]: ... + def Range( + theEdge: TopoDS_Edge, + theCurve: Geom_Curve, + isConsiderOrientation: Optional[bool] = False, + ) -> Tuple[bool, float, float]: ... @staticmethod - def UVPoints(theEdge: TopoDS_Edge, theFace: TopoDS_Face, theFirstPoint2d: gp_Pnt2d, theLastPoint2d: gp_Pnt2d, isConsiderOrientation: Optional[bool] = False) -> bool: ... + def UVPoints( + theEdge: TopoDS_Edge, + theFace: TopoDS_Face, + theFirstPoint2d: gp_Pnt2d, + theLastPoint2d: gp_Pnt2d, + isConsiderOrientation: Optional[bool] = False, + ) -> bool: ... @overload @staticmethod - def UpdateEdge(theEdge: TopoDS_Edge, thePolygon: Poly_PolygonOnTriangulation, theTriangulation: Poly_Triangulation, theLocation: TopLoc_Location) -> None: ... + def UpdateEdge( + theEdge: TopoDS_Edge, + thePolygon: Poly_PolygonOnTriangulation, + theTriangulation: Poly_Triangulation, + theLocation: TopLoc_Location, + ) -> None: ... @overload @staticmethod def UpdateEdge(theEdge: TopoDS_Edge, thePolygon: Poly_Polygon3D) -> None: ... @overload @staticmethod - def UpdateEdge(theEdge: TopoDS_Edge, thePolygon1: Poly_PolygonOnTriangulation, thePolygon2: Poly_PolygonOnTriangulation, theTriangulation: Poly_Triangulation, theLocation: TopLoc_Location) -> None: ... + def UpdateEdge( + theEdge: TopoDS_Edge, + thePolygon1: Poly_PolygonOnTriangulation, + thePolygon2: Poly_PolygonOnTriangulation, + theTriangulation: Poly_Triangulation, + theLocation: TopLoc_Location, + ) -> None: ... @staticmethod def UseLocation(thePnt: gp_Pnt, theLoc: TopLoc_Location) -> gp_Pnt: ... @@ -347,12 +466,18 @@ class BRepMesh_Vertex: @overload def __init__(self) -> None: ... @overload - def __init__(self, theUV: gp_XY, theLocation3d: int, theMovability: BRepMesh_DegreeOfFreedom) -> None: ... + def __init__( + self, theUV: gp_XY, theLocation3d: int, theMovability: BRepMesh_DegreeOfFreedom + ) -> None: ... @overload - def __init__(self, theU: float, theV: float, theMovability: BRepMesh_DegreeOfFreedom) -> None: ... + def __init__( + self, theU: float, theV: float, theMovability: BRepMesh_DegreeOfFreedom + ) -> None: ... def ChangeCoord(self) -> gp_XY: ... def Coord(self) -> gp_XY: ... - def Initialize(self, theUV: gp_XY, theLocation3d: int, theMovability: BRepMesh_DegreeOfFreedom) -> None: ... + def Initialize( + self, theUV: gp_XY, theLocation3d: int, theMovability: BRepMesh_DegreeOfFreedom + ) -> None: ... def IsEqual(self, theOther: BRepMesh_Vertex) -> bool: ... def Location3d(self) -> int: ... def Movability(self) -> BRepMesh_DegreeOfFreedom: ... @@ -410,7 +535,12 @@ class BRepMesh_Edge(BRepMesh_OrientedEdge): @overload def __init__(self) -> None: ... @overload - def __init__(self, theFirstNode: int, theLastNode: int, theMovability: BRepMesh_DegreeOfFreedom) -> None: ... + def __init__( + self, + theFirstNode: int, + theLastNode: int, + theMovability: BRepMesh_DegreeOfFreedom, + ) -> None: ... def IsEqual(self, theOther: BRepMesh_Edge) -> bool: ... def IsSameOrientation(self, theOther: BRepMesh_Edge) -> bool: ... def Movability(self) -> BRepMesh_DegreeOfFreedom: ... @@ -420,21 +550,44 @@ class BRepMesh_IncrementalMesh(BRepMesh_DiscretRoot): @overload def __init__(self) -> None: ... @overload - def __init__(self, theShape: TopoDS_Shape, theLinDeflection: float, isRelative: Optional[bool] = False, theAngDeflection: Optional[float] = 0.5, isInParallel: Optional[bool] = False) -> None: ... - @overload - def __init__(self, theShape: TopoDS_Shape, theParameters: IMeshTools_Parameters, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + theShape: TopoDS_Shape, + theLinDeflection: float, + isRelative: Optional[bool] = False, + theAngDeflection: Optional[float] = 0.5, + isInParallel: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theShape: TopoDS_Shape, + theParameters: IMeshTools_Parameters, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def ChangeParameters(self) -> IMeshTools_Parameters: ... @staticmethod - def Discret(theShape: TopoDS_Shape, theLinDeflection: float, theAngDeflection: float, theAlgo: BRepMesh_DiscretRoot) -> int: ... + def Discret( + theShape: TopoDS_Shape, + theLinDeflection: float, + theAngDeflection: float, + theAlgo: BRepMesh_DiscretRoot, + ) -> int: ... def GetStatusFlags(self) -> int: ... def IsModified(self) -> bool: ... @staticmethod def IsParallelDefault() -> bool: ... def Parameters(self) -> IMeshTools_Parameters: ... @overload - def Perform(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... @overload - def Perform(self, theContext: IMeshTools_Context, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, + theContext: IMeshTools_Context, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @staticmethod def SetParallelDefault(isInParallel: bool) -> None: ... @@ -476,40 +629,39 @@ class BRepMesh_ExtrusionRangeSplitter(BRepMesh_NURBSRangeSplitter): class BRepMesh_UndefinedRangeSplitter(BRepMesh_NURBSRangeSplitter): def __init__(self) -> None: ... -#classnotwrapped +# classnotwrapped class BRepMesh_WireInterferenceChecker: ... -#classnotwrapped +# classnotwrapped class BRepMesh_EdgeTessellator: ... -#classnotwrapped +# classnotwrapped class BRepMesh_EdgeTessellationExtractor: ... -#classnotwrapped +# classnotwrapped class BRepMesh_EdgeParameterProvider: ... -#classnotwrapped +# classnotwrapped class BRepMesh_FastDiscret: ... -#classnotwrapped +# classnotwrapped class BRepMesh_CustomDelaunayBaseMeshAlgo: ... -#classnotwrapped +# classnotwrapped class BRepMesh_NodeInsertionMeshAlgo: ... -#classnotwrapped +# classnotwrapped class BRepMesh_ConstrainedBaseMeshAlgo: ... -#classnotwrapped +# classnotwrapped class BRepMesh_CustomBaseMeshAlgo: ... -#classnotwrapped +# classnotwrapped class BRepMesh_DelaunayDeflectionControlMeshAlgo: ... -#classnotwrapped +# classnotwrapped class BRepMesh_DelaunayNodeInsertionMeshAlgo: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepMeshData.pyi b/src/SWIG_files/wrapper/BRepMeshData.pyi index 3b66de57a..5589f4c37 100644 --- a/src/SWIG_files/wrapper/BRepMeshData.pyi +++ b/src/SWIG_files/wrapper/BRepMeshData.pyi @@ -8,13 +8,14 @@ from OCC.Core.gp import * from OCC.Core.TopAbs import * from OCC.Core.TopoDS import * - class BRepMeshData_Curve(IMeshData_Curve): def AddPoint(self, thePoint: gp_Pnt, theParamOnCurve: float) -> None: ... def Clear(self, isKeepEndPoints: bool) -> None: ... def GetParameter(self, theIndex: int) -> float: ... def GetPoint(self, theIndex: int) -> gp_Pnt: ... - def InsertPoint(self, thePosition: int, thePoint: gp_Pnt, theParamOnPCurve: float) -> None: ... + def InsertPoint( + self, thePosition: int, thePoint: gp_Pnt, theParamOnPCurve: float + ) -> None: ... def ParametersNb(self) -> int: ... def RemovePoint(self, theIndex: int) -> None: ... @@ -45,7 +46,9 @@ class BRepMeshData_PCurve(IMeshData_PCurve): def GetIndex(self, theIndex: int) -> int: ... def GetParameter(self, theIndex: int) -> float: ... def GetPoint(self, theIndex: int) -> gp_Pnt2d: ... - def InsertPoint(self, thePosition: int, thePoint: gp_Pnt2d, theParamOnPCurve: float) -> None: ... + def InsertPoint( + self, thePosition: int, thePoint: gp_Pnt2d, theParamOnPCurve: float + ) -> None: ... def ParametersNb(self) -> int: ... def RemovePoint(self, theIndex: int) -> None: ... @@ -57,4 +60,3 @@ class BRepMeshData_Wire(IMeshData_Wire): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepOffset.i b/src/SWIG_files/wrapper/BRepOffset.i index fca51de56..b48870f5e 100644 --- a/src/SWIG_files/wrapper/BRepOffset.i +++ b/src/SWIG_files/wrapper/BRepOffset.i @@ -236,6 +236,12 @@ BRepOffset_Unknown = BRepOffset_Status.BRepOffset_Unknown %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = BRepOffset_ListIteratorOfListOfInterval(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/BRepOffset.pyi b/src/SWIG_files/wrapper/BRepOffset.pyi index e26af4326..48b510d2f 100644 --- a/src/SWIG_files/wrapper/BRepOffset.pyi +++ b/src/SWIG_files/wrapper/BRepOffset.pyi @@ -17,20 +17,21 @@ from OCC.Core.TopLoc import * from OCC.Core.Geom2d import * from OCC.Core.gp import * - class BRepOffset_ListOfInterval: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: BRepOffset_Interval) -> BRepOffset_Interval: ... + def Assign( + self, theItem: BRepOffset_ListOfInterval + ) -> BRepOffset_ListOfInterval: ... def Clear(self) -> None: ... def First(self) -> BRepOffset_Interval: ... def Last(self) -> BRepOffset_Interval: ... - def Append(self, theItem: BRepOffset_Interval) -> BRepOffset_Interval: ... def Prepend(self, theItem: BRepOffset_Interval) -> BRepOffset_Interval: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> BRepOffset_Interval: ... - def SetValue(self, theIndex: int, theValue: BRepOffset_Interval) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> BRepOffset_Interval: ... class BRepOffset_Error(IntEnum): BRepOffset_NoError: int = ... @@ -66,11 +67,21 @@ class BRepOffsetSimple_Status(IntEnum): BRepOffsetSimple_ErrorNonClosedShell: int = ... BRepOffsetSimple_OK = BRepOffsetSimple_Status.BRepOffsetSimple_OK -BRepOffsetSimple_NullInputShape = BRepOffsetSimple_Status.BRepOffsetSimple_NullInputShape -BRepOffsetSimple_ErrorOffsetComputation = BRepOffsetSimple_Status.BRepOffsetSimple_ErrorOffsetComputation -BRepOffsetSimple_ErrorWallFaceComputation = BRepOffsetSimple_Status.BRepOffsetSimple_ErrorWallFaceComputation -BRepOffsetSimple_ErrorInvalidNbShells = BRepOffsetSimple_Status.BRepOffsetSimple_ErrorInvalidNbShells -BRepOffsetSimple_ErrorNonClosedShell = BRepOffsetSimple_Status.BRepOffsetSimple_ErrorNonClosedShell +BRepOffsetSimple_NullInputShape = ( + BRepOffsetSimple_Status.BRepOffsetSimple_NullInputShape +) +BRepOffsetSimple_ErrorOffsetComputation = ( + BRepOffsetSimple_Status.BRepOffsetSimple_ErrorOffsetComputation +) +BRepOffsetSimple_ErrorWallFaceComputation = ( + BRepOffsetSimple_Status.BRepOffsetSimple_ErrorWallFaceComputation +) +BRepOffsetSimple_ErrorInvalidNbShells = ( + BRepOffsetSimple_Status.BRepOffsetSimple_ErrorInvalidNbShells +) +BRepOffsetSimple_ErrorNonClosedShell = ( + BRepOffsetSimple_Status.BRepOffsetSimple_ErrorNonClosedShell +) class BRepOffset_Mode(IntEnum): BRepOffset_Skin: int = ... @@ -94,9 +105,13 @@ BRepOffset_Unknown = BRepOffset_Status.BRepOffset_Unknown class brepoffset: @staticmethod - def CollapseSingularities(theSurface: Geom_Surface, theFace: TopoDS_Face, thePrecision: float) -> Geom_Surface: ... + def CollapseSingularities( + theSurface: Geom_Surface, theFace: TopoDS_Face, thePrecision: float + ) -> Geom_Surface: ... @staticmethod - def Surface(Surface: Geom_Surface, Offset: float, allowC0: Optional[bool] = False) -> Tuple[Geom_Surface, BRepOffset_Status]: ... + def Surface( + Surface: Geom_Surface, Offset: float, allowC0: Optional[bool] = False + ) -> Tuple[Geom_Surface, BRepOffset_Status]: ... class BRepOffset_Analyse: @overload @@ -104,53 +119,180 @@ class BRepOffset_Analyse: @overload def __init__(self, theS: TopoDS_Shape, theAngle: float) -> None: ... @overload - def AddFaces(self, theFace: TopoDS_Face, theCo: TopoDS_Compound, theMap: TopTools_MapOfShape, theType: ChFiDS_TypeOfConcavity) -> None: ... - @overload - def AddFaces(self, theFace: TopoDS_Face, theCo: TopoDS_Compound, theMap: TopTools_MapOfShape, theType1: ChFiDS_TypeOfConcavity, theType2: ChFiDS_TypeOfConcavity) -> None: ... + def AddFaces( + self, + theFace: TopoDS_Face, + theCo: TopoDS_Compound, + theMap: TopTools_MapOfShape, + theType: ChFiDS_TypeOfConcavity, + ) -> None: ... + @overload + def AddFaces( + self, + theFace: TopoDS_Face, + theCo: TopoDS_Compound, + theMap: TopTools_MapOfShape, + theType1: ChFiDS_TypeOfConcavity, + theType2: ChFiDS_TypeOfConcavity, + ) -> None: ... def Ancestors(self, theS: TopoDS_Shape) -> TopTools_ListOfShape: ... def Clear(self) -> None: ... - def Descendants(self, theS: TopoDS_Shape, theUpdate: Optional[bool] = False) -> TopTools_ListOfShape: ... - def EdgeReplacement(self, theFace: TopoDS_Face, theEdge: TopoDS_Edge) -> TopoDS_Edge: ... - @overload - def Edges(self, theV: TopoDS_Vertex, theType: ChFiDS_TypeOfConcavity, theL: TopTools_ListOfShape) -> None: ... - @overload - def Edges(self, theF: TopoDS_Face, theType: ChFiDS_TypeOfConcavity, theL: TopTools_ListOfShape) -> None: ... - @overload - def Explode(self, theL: TopTools_ListOfShape, theType: ChFiDS_TypeOfConcavity) -> None: ... - @overload - def Explode(self, theL: TopTools_ListOfShape, theType1: ChFiDS_TypeOfConcavity, theType2: ChFiDS_TypeOfConcavity) -> None: ... + def Descendants( + self, theS: TopoDS_Shape, theUpdate: Optional[bool] = False + ) -> TopTools_ListOfShape: ... + def EdgeReplacement( + self, theFace: TopoDS_Face, theEdge: TopoDS_Edge + ) -> TopoDS_Edge: ... + @overload + def Edges( + self, + theV: TopoDS_Vertex, + theType: ChFiDS_TypeOfConcavity, + theL: TopTools_ListOfShape, + ) -> None: ... + @overload + def Edges( + self, + theF: TopoDS_Face, + theType: ChFiDS_TypeOfConcavity, + theL: TopTools_ListOfShape, + ) -> None: ... + @overload + def Explode( + self, theL: TopTools_ListOfShape, theType: ChFiDS_TypeOfConcavity + ) -> None: ... + @overload + def Explode( + self, + theL: TopTools_ListOfShape, + theType1: ChFiDS_TypeOfConcavity, + theType2: ChFiDS_TypeOfConcavity, + ) -> None: ... def Generated(self, theS: TopoDS_Shape) -> TopoDS_Shape: ... def HasAncestor(self, theS: TopoDS_Shape) -> bool: ... def HasGenerated(self, theS: TopoDS_Shape) -> bool: ... def IsDone(self) -> bool: ... def NewFaces(self) -> TopTools_ListOfShape: ... - def Perform(self, theS: TopoDS_Shape, theAngle: float, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, + theS: TopoDS_Shape, + theAngle: float, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def SetFaceOffsetMap(self, theMap: TopTools_DataMapOfShapeReal) -> None: ... def SetOffsetValue(self, theOffset: float) -> None: ... - def TangentEdges(self, theEdge: TopoDS_Edge, theVertex: TopoDS_Vertex, theEdges: TopTools_ListOfShape) -> None: ... + def TangentEdges( + self, + theEdge: TopoDS_Edge, + theVertex: TopoDS_Vertex, + theEdges: TopTools_ListOfShape, + ) -> None: ... def Type(self, theE: TopoDS_Edge) -> BRepOffset_ListOfInterval: ... class BRepOffset_Inter2d: @staticmethod - def Compute(AsDes: BRepAlgo_AsDes, F: TopoDS_Face, NewEdges: TopTools_IndexedMapOfShape, Tol: float, theEdgeIntEdges: TopTools_DataMapOfShapeListOfShape, theDMVV: TopTools_IndexedDataMapOfShapeListOfShape, theRange: Message_ProgressRange) -> None: ... + def Compute( + AsDes: BRepAlgo_AsDes, + F: TopoDS_Face, + NewEdges: TopTools_IndexedMapOfShape, + Tol: float, + theEdgeIntEdges: TopTools_DataMapOfShapeListOfShape, + theDMVV: TopTools_IndexedDataMapOfShapeListOfShape, + theRange: Message_ProgressRange, + ) -> None: ... @staticmethod - def ConnexIntByInt(FI: TopoDS_Face, OFI: BRepOffset_Offset, MES: TopTools_DataMapOfShapeShape, Build: TopTools_DataMapOfShapeShape, theAsDes: BRepAlgo_AsDes, AsDes2d: BRepAlgo_AsDes, Offset: float, Tol: float, Analyse: BRepOffset_Analyse, FacesWithVerts: TopTools_IndexedMapOfShape, theImageVV: BRepAlgo_Image, theEdgeIntEdges: TopTools_DataMapOfShapeListOfShape, theDMVV: TopTools_IndexedDataMapOfShapeListOfShape, theRange: Message_ProgressRange) -> bool: ... + def ConnexIntByInt( + FI: TopoDS_Face, + OFI: BRepOffset_Offset, + MES: TopTools_DataMapOfShapeShape, + Build: TopTools_DataMapOfShapeShape, + theAsDes: BRepAlgo_AsDes, + AsDes2d: BRepAlgo_AsDes, + Offset: float, + Tol: float, + Analyse: BRepOffset_Analyse, + FacesWithVerts: TopTools_IndexedMapOfShape, + theImageVV: BRepAlgo_Image, + theEdgeIntEdges: TopTools_DataMapOfShapeListOfShape, + theDMVV: TopTools_IndexedDataMapOfShapeListOfShape, + theRange: Message_ProgressRange, + ) -> bool: ... @staticmethod - def ConnexIntByIntInVert(FI: TopoDS_Face, OFI: BRepOffset_Offset, MES: TopTools_DataMapOfShapeShape, Build: TopTools_DataMapOfShapeShape, AsDes: BRepAlgo_AsDes, AsDes2d: BRepAlgo_AsDes, Tol: float, Analyse: BRepOffset_Analyse, theDMVV: TopTools_IndexedDataMapOfShapeListOfShape, theRange: Message_ProgressRange) -> None: ... + def ConnexIntByIntInVert( + FI: TopoDS_Face, + OFI: BRepOffset_Offset, + MES: TopTools_DataMapOfShapeShape, + Build: TopTools_DataMapOfShapeShape, + AsDes: BRepAlgo_AsDes, + AsDes2d: BRepAlgo_AsDes, + Tol: float, + Analyse: BRepOffset_Analyse, + theDMVV: TopTools_IndexedDataMapOfShapeListOfShape, + theRange: Message_ProgressRange, + ) -> None: ... @staticmethod def ExtentEdge(E: TopoDS_Edge, NE: TopoDS_Edge, theOffset: float) -> bool: ... @staticmethod - def FuseVertices(theDMVV: TopTools_IndexedDataMapOfShapeListOfShape, theAsDes: BRepAlgo_AsDes, theImageVV: BRepAlgo_Image) -> bool: ... + def FuseVertices( + theDMVV: TopTools_IndexedDataMapOfShapeListOfShape, + theAsDes: BRepAlgo_AsDes, + theImageVV: BRepAlgo_Image, + ) -> bool: ... class BRepOffset_Inter3d: - def __init__(self, AsDes: BRepAlgo_AsDes, Side: TopAbs_State, Tol: float) -> None: ... + def __init__( + self, AsDes: BRepAlgo_AsDes, Side: TopAbs_State, Tol: float + ) -> None: ... def AsDes(self) -> BRepAlgo_AsDes: ... - def CompletInt(self, SetOfFaces: TopTools_ListOfShape, InitOffsetFace: BRepAlgo_Image, theRange: Message_ProgressRange) -> None: ... - def ConnexIntByArc(self, SetOfFaces: TopTools_ListOfShape, ShapeInit: TopoDS_Shape, Analyse: BRepOffset_Analyse, InitOffsetFace: BRepAlgo_Image, theRange: Message_ProgressRange) -> None: ... - def ConnexIntByInt(self, SI: TopoDS_Shape, MapSF: BRepOffset_DataMapOfShapeOffset, A: BRepOffset_Analyse, MES: TopTools_DataMapOfShapeShape, Build: TopTools_DataMapOfShapeShape, Failed: TopTools_ListOfShape, theRange: Message_ProgressRange, bIsPlanar: Optional[bool] = False) -> None: ... - def ContextIntByArc(self, ContextFaces: TopTools_IndexedMapOfShape, ExtentContext: bool, Analyse: BRepOffset_Analyse, InitOffsetFace: BRepAlgo_Image, InitOffsetEdge: BRepAlgo_Image, theRange: Message_ProgressRange) -> None: ... - def ContextIntByInt(self, ContextFaces: TopTools_IndexedMapOfShape, ExtentContext: bool, MapSF: BRepOffset_DataMapOfShapeOffset, A: BRepOffset_Analyse, MES: TopTools_DataMapOfShapeShape, Build: TopTools_DataMapOfShapeShape, Failed: TopTools_ListOfShape, theRange: Message_ProgressRange, bIsPlanar: Optional[bool] = False) -> None: ... - def FaceInter(self, F1: TopoDS_Face, F2: TopoDS_Face, InitOffsetFace: BRepAlgo_Image) -> None: ... + def CompletInt( + self, + SetOfFaces: TopTools_ListOfShape, + InitOffsetFace: BRepAlgo_Image, + theRange: Message_ProgressRange, + ) -> None: ... + def ConnexIntByArc( + self, + SetOfFaces: TopTools_ListOfShape, + ShapeInit: TopoDS_Shape, + Analyse: BRepOffset_Analyse, + InitOffsetFace: BRepAlgo_Image, + theRange: Message_ProgressRange, + ) -> None: ... + def ConnexIntByInt( + self, + SI: TopoDS_Shape, + MapSF: BRepOffset_DataMapOfShapeOffset, + A: BRepOffset_Analyse, + MES: TopTools_DataMapOfShapeShape, + Build: TopTools_DataMapOfShapeShape, + Failed: TopTools_ListOfShape, + theRange: Message_ProgressRange, + bIsPlanar: Optional[bool] = False, + ) -> None: ... + def ContextIntByArc( + self, + ContextFaces: TopTools_IndexedMapOfShape, + ExtentContext: bool, + Analyse: BRepOffset_Analyse, + InitOffsetFace: BRepAlgo_Image, + InitOffsetEdge: BRepAlgo_Image, + theRange: Message_ProgressRange, + ) -> None: ... + def ContextIntByInt( + self, + ContextFaces: TopTools_IndexedMapOfShape, + ExtentContext: bool, + MapSF: BRepOffset_DataMapOfShapeOffset, + A: BRepOffset_Analyse, + MES: TopTools_DataMapOfShapeShape, + Build: TopTools_DataMapOfShapeShape, + Failed: TopTools_ListOfShape, + theRange: Message_ProgressRange, + bIsPlanar: Optional[bool] = False, + ) -> None: ... + def FaceInter( + self, F1: TopoDS_Face, F2: TopoDS_Face, InitOffsetFace: BRepAlgo_Image + ) -> None: ... def IsDone(self, F1: TopoDS_Face, F2: TopoDS_Face) -> bool: ... def NewEdges(self) -> TopTools_IndexedMapOfShape: ... def SetDone(self, F1: TopoDS_Face, F2: TopoDS_Face) -> None: ... @@ -176,15 +318,48 @@ class BRepOffset_Interval: class BRepOffset_MakeLoops: def __init__(self) -> None: ... - def Build(self, LF: TopTools_ListOfShape, AsDes: BRepAlgo_AsDes, Image: BRepAlgo_Image, theImageVV: BRepAlgo_Image, theRange: Message_ProgressRange) -> None: ... - def BuildFaces(self, LF: TopTools_ListOfShape, AsDes: BRepAlgo_AsDes, Image: BRepAlgo_Image, theRange: Message_ProgressRange) -> None: ... - def BuildOnContext(self, LContext: TopTools_ListOfShape, Analyse: BRepOffset_Analyse, AsDes: BRepAlgo_AsDes, Image: BRepAlgo_Image, InSide: bool, theRange: Message_ProgressRange) -> None: ... + def Build( + self, + LF: TopTools_ListOfShape, + AsDes: BRepAlgo_AsDes, + Image: BRepAlgo_Image, + theImageVV: BRepAlgo_Image, + theRange: Message_ProgressRange, + ) -> None: ... + def BuildFaces( + self, + LF: TopTools_ListOfShape, + AsDes: BRepAlgo_AsDes, + Image: BRepAlgo_Image, + theRange: Message_ProgressRange, + ) -> None: ... + def BuildOnContext( + self, + LContext: TopTools_ListOfShape, + Analyse: BRepOffset_Analyse, + AsDes: BRepAlgo_AsDes, + Image: BRepAlgo_Image, + InSide: bool, + theRange: Message_ProgressRange, + ) -> None: ... class BRepOffset_MakeOffset: @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, Offset: float, Tol: float, Mode: Optional[BRepOffset_Mode] = BRepOffset_Skin, Intersection: Optional[bool] = False, SelfInter: Optional[bool] = False, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, Thickening: Optional[bool] = False, RemoveIntEdges: Optional[bool] = False, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + Offset: float, + Tol: float, + Mode: Optional[BRepOffset_Mode] = BRepOffset_Skin, + Intersection: Optional[bool] = False, + SelfInter: Optional[bool] = False, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Thickening: Optional[bool] = False, + RemoveIntEdges: Optional[bool] = False, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def AddFace(self, F: TopoDS_Face) -> None: ... def AllowLinearization(self, theIsAllowed: bool) -> None: ... def CheckInputData(self, theRange: Message_ProgressRange) -> bool: ... @@ -195,11 +370,26 @@ class BRepOffset_MakeOffset: def GetBadShape(self) -> TopoDS_Shape: ... def GetJoinType(self) -> GeomAbs_JoinType: ... def InitShape(self) -> TopoDS_Shape: ... - def Initialize(self, S: TopoDS_Shape, Offset: float, Tol: float, Mode: Optional[BRepOffset_Mode] = BRepOffset_Skin, Intersection: Optional[bool] = False, SelfInter: Optional[bool] = False, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, Thickening: Optional[bool] = False, RemoveIntEdges: Optional[bool] = False) -> None: ... + def Initialize( + self, + S: TopoDS_Shape, + Offset: float, + Tol: float, + Mode: Optional[BRepOffset_Mode] = BRepOffset_Skin, + Intersection: Optional[bool] = False, + SelfInter: Optional[bool] = False, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Thickening: Optional[bool] = False, + RemoveIntEdges: Optional[bool] = False, + ) -> None: ... def IsDeleted(self, S: TopoDS_Shape) -> bool: ... def IsDone(self) -> bool: ... - def MakeOffsetShape(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def MakeThickSolid(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def MakeOffsetShape( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... + def MakeThickSolid( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Modified(self, theS: TopoDS_Shape) -> TopTools_ListOfShape: ... def OffsetEdgesFromShapes(self) -> BRepAlgo_Image: ... def OffsetFacesFromShapes(self) -> BRepAlgo_Image: ... @@ -218,7 +408,9 @@ class BRepOffset_MakeSimpleOffset: def GetOffsetValue(self) -> float: ... def GetResultShape(self) -> TopoDS_Shape: ... def GetTolerance(self) -> float: ... - def Initialize(self, theInputShape: TopoDS_Shape, theOffsetValue: float) -> None: ... + def Initialize( + self, theInputShape: TopoDS_Shape, theOffsetValue: float + ) -> None: ... def IsDone(self) -> bool: ... def Modified(self, theShape: TopoDS_Shape) -> TopoDS_Shape: ... def Perform(self) -> None: ... @@ -230,82 +422,270 @@ class BRepOffset_Offset: @overload def __init__(self) -> None: ... @overload - def __init__(self, Face: TopoDS_Face, Offset: float, OffsetOutside: Optional[bool] = True, JoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc) -> None: ... - @overload - def __init__(self, Face: TopoDS_Face, Offset: float, Created: TopTools_DataMapOfShapeShape, OffsetOutside: Optional[bool] = True, JoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc) -> None: ... - @overload - def __init__(self, Path: TopoDS_Edge, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, Offset: float, Polynomial: Optional[bool] = False, Tol: Optional[float] = 1.0e-4, Conti: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def __init__(self, Path: TopoDS_Edge, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, Offset: float, FirstEdge: TopoDS_Edge, LastEdge: TopoDS_Edge, Polynomial: Optional[bool] = False, Tol: Optional[float] = 1.0e-4, Conti: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def __init__(self, Vertex: TopoDS_Vertex, LEdge: TopTools_ListOfShape, Offset: float, Polynomial: Optional[bool] = False, Tol: Optional[float] = 1.0e-4, Conti: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... + def __init__( + self, + Face: TopoDS_Face, + Offset: float, + OffsetOutside: Optional[bool] = True, + JoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + ) -> None: ... + @overload + def __init__( + self, + Face: TopoDS_Face, + Offset: float, + Created: TopTools_DataMapOfShapeShape, + OffsetOutside: Optional[bool] = True, + JoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + ) -> None: ... + @overload + def __init__( + self, + Path: TopoDS_Edge, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Offset: float, + Polynomial: Optional[bool] = False, + Tol: Optional[float] = 1.0e-4, + Conti: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def __init__( + self, + Path: TopoDS_Edge, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Offset: float, + FirstEdge: TopoDS_Edge, + LastEdge: TopoDS_Edge, + Polynomial: Optional[bool] = False, + Tol: Optional[float] = 1.0e-4, + Conti: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def __init__( + self, + Vertex: TopoDS_Vertex, + LEdge: TopTools_ListOfShape, + Offset: float, + Polynomial: Optional[bool] = False, + Tol: Optional[float] = 1.0e-4, + Conti: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... def Face(self) -> TopoDS_Face: ... def Generated(self, Shape: TopoDS_Shape) -> TopoDS_Shape: ... @overload - def Init(self, Face: TopoDS_Face, Offset: float, OffsetOutside: Optional[bool] = True, JoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc) -> None: ... - @overload - def Init(self, Face: TopoDS_Face, Offset: float, Created: TopTools_DataMapOfShapeShape, OffsetOutside: Optional[bool] = True, JoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc) -> None: ... - @overload - def Init(self, Path: TopoDS_Edge, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, Offset: float, Polynomial: Optional[bool] = False, Tol: Optional[float] = 1.0e-4, Conti: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def Init(self, Path: TopoDS_Edge, Edge1: TopoDS_Edge, Edge2: TopoDS_Edge, Offset: float, FirstEdge: TopoDS_Edge, LastEdge: TopoDS_Edge, Polynomial: Optional[bool] = False, Tol: Optional[float] = 1.0e-4, Conti: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def Init(self, Vertex: TopoDS_Vertex, LEdge: TopTools_ListOfShape, Offset: float, Polynomial: Optional[bool] = False, Tol: Optional[float] = 1.0e-4, Conti: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... + def Init( + self, + Face: TopoDS_Face, + Offset: float, + OffsetOutside: Optional[bool] = True, + JoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + ) -> None: ... + @overload + def Init( + self, + Face: TopoDS_Face, + Offset: float, + Created: TopTools_DataMapOfShapeShape, + OffsetOutside: Optional[bool] = True, + JoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + ) -> None: ... + @overload + def Init( + self, + Path: TopoDS_Edge, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Offset: float, + Polynomial: Optional[bool] = False, + Tol: Optional[float] = 1.0e-4, + Conti: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def Init( + self, + Path: TopoDS_Edge, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Offset: float, + FirstEdge: TopoDS_Edge, + LastEdge: TopoDS_Edge, + Polynomial: Optional[bool] = False, + Tol: Optional[float] = 1.0e-4, + Conti: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def Init( + self, + Vertex: TopoDS_Vertex, + LEdge: TopTools_ListOfShape, + Offset: float, + Polynomial: Optional[bool] = False, + Tol: Optional[float] = 1.0e-4, + Conti: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... @overload def Init(self, Edge: TopoDS_Edge, Offset: float) -> None: ... def InitialShape(self) -> TopoDS_Shape: ... def Status(self) -> BRepOffset_Status: ... class BRepOffset_SimpleOffset(BRepTools_Modification): - def __init__(self, theInputShape: TopoDS_Shape, theOffsetValue: float, theTolerance: float) -> None: ... - def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ... - def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def __init__( + self, theInputShape: TopoDS_Shape, theOffsetValue: float, theTolerance: float + ) -> None: ... + def Continuity( + self, + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + NewE: TopoDS_Edge, + NewF1: TopoDS_Face, + NewF2: TopoDS_Face, + ) -> GeomAbs_Shape: ... + def NewCurve( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + NewE: TopoDS_Edge, + NewF: TopoDS_Face, + C: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ... - def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... + def NewSurface( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... class BRepOffset_Tool: @staticmethod - def BuildNeighbour(W: TopoDS_Wire, F: TopoDS_Face, NOnV1: TopTools_DataMapOfShapeShape, NOnV2: TopTools_DataMapOfShapeShape) -> None: ... + def BuildNeighbour( + W: TopoDS_Wire, + F: TopoDS_Face, + NOnV1: TopTools_DataMapOfShapeShape, + NOnV2: TopTools_DataMapOfShapeShape, + ) -> None: ... @staticmethod - def CheckBounds(F: TopoDS_Face, Analyse: BRepOffset_Analyse) -> Tuple[bool, bool, bool]: ... + def CheckBounds( + F: TopoDS_Face, Analyse: BRepOffset_Analyse + ) -> Tuple[bool, bool, bool]: ... @staticmethod - def CheckPlanesNormals(theFace1: TopoDS_Face, theFace2: TopoDS_Face, theTolAng: Optional[float] = 1e-8) -> bool: ... + def CheckPlanesNormals( + theFace1: TopoDS_Face, theFace2: TopoDS_Face, theTolAng: Optional[float] = 1e-8 + ) -> bool: ... @staticmethod - def CorrectOrientation(SI: TopoDS_Shape, NewEdges: TopTools_IndexedMapOfShape, AsDes: BRepAlgo_AsDes, InitOffset: BRepAlgo_Image, Offset: float) -> None: ... + def CorrectOrientation( + SI: TopoDS_Shape, + NewEdges: TopTools_IndexedMapOfShape, + AsDes: BRepAlgo_AsDes, + InitOffset: BRepAlgo_Image, + Offset: float, + ) -> None: ... @staticmethod def Deboucle3D(S: TopoDS_Shape, Boundary: TopTools_MapOfShape) -> TopoDS_Shape: ... @staticmethod def EdgeVertices(E: TopoDS_Edge, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... @staticmethod - def EnLargeFace(F: TopoDS_Face, NF: TopoDS_Face, ChangeGeom: bool, UpDatePCurve: Optional[bool] = False, enlargeU: Optional[bool] = True, enlargeVfirst: Optional[bool] = True, enlargeVlast: Optional[bool] = True, theExtensionMode: Optional[int] = 1, theLenBeforeUfirst: Optional[float] = -1, theLenAfterUlast: Optional[float] = -1, theLenBeforeVfirst: Optional[float] = -1, theLenAfterVlast: Optional[float] = -1) -> bool: ... + def EnLargeFace( + F: TopoDS_Face, + NF: TopoDS_Face, + ChangeGeom: bool, + UpDatePCurve: Optional[bool] = False, + enlargeU: Optional[bool] = True, + enlargeVfirst: Optional[bool] = True, + enlargeVlast: Optional[bool] = True, + theExtensionMode: Optional[int] = 1, + theLenBeforeUfirst: Optional[float] = -1, + theLenAfterUlast: Optional[float] = -1, + theLenBeforeVfirst: Optional[float] = -1, + theLenAfterVlast: Optional[float] = -1, + ) -> bool: ... @staticmethod - def ExtentFace(F: TopoDS_Face, ConstShapes: TopTools_DataMapOfShapeShape, ToBuild: TopTools_DataMapOfShapeShape, Side: TopAbs_State, TolConf: float, NF: TopoDS_Face) -> None: ... + def ExtentFace( + F: TopoDS_Face, + ConstShapes: TopTools_DataMapOfShapeShape, + ToBuild: TopTools_DataMapOfShapeShape, + Side: TopAbs_State, + TolConf: float, + NF: TopoDS_Face, + ) -> None: ... @overload @staticmethod - def FindCommonShapes(theF1: TopoDS_Face, theF2: TopoDS_Face, theLE: TopTools_ListOfShape, theLV: TopTools_ListOfShape) -> bool: ... + def FindCommonShapes( + theF1: TopoDS_Face, + theF2: TopoDS_Face, + theLE: TopTools_ListOfShape, + theLV: TopTools_ListOfShape, + ) -> bool: ... @overload @staticmethod - def FindCommonShapes(theS1: TopoDS_Shape, theS2: TopoDS_Shape, theType: TopAbs_ShapeEnum, theLSC: TopTools_ListOfShape) -> bool: ... + def FindCommonShapes( + theS1: TopoDS_Shape, + theS2: TopoDS_Shape, + theType: TopAbs_ShapeEnum, + theLSC: TopTools_ListOfShape, + ) -> bool: ... @staticmethod def Gabarit(aCurve: Geom_Curve) -> float: ... @staticmethod - def Inter2d(F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, LV: TopTools_ListOfShape, Tol: float) -> None: ... + def Inter2d( + F: TopoDS_Face, + E1: TopoDS_Edge, + E2: TopoDS_Edge, + LV: TopTools_ListOfShape, + Tol: float, + ) -> None: ... @staticmethod - def Inter3D(F1: TopoDS_Face, F2: TopoDS_Face, LInt1: TopTools_ListOfShape, LInt2: TopTools_ListOfShape, Side: TopAbs_State, RefEdge: TopoDS_Edge, RefFace1: TopoDS_Face, RefFace2: TopoDS_Face) -> None: ... + def Inter3D( + F1: TopoDS_Face, + F2: TopoDS_Face, + LInt1: TopTools_ListOfShape, + LInt2: TopTools_ListOfShape, + Side: TopAbs_State, + RefEdge: TopoDS_Edge, + RefFace1: TopoDS_Face, + RefFace2: TopoDS_Face, + ) -> None: ... @staticmethod - def InterOrExtent(F1: TopoDS_Face, F2: TopoDS_Face, LInt1: TopTools_ListOfShape, LInt2: TopTools_ListOfShape, Side: TopAbs_State) -> None: ... + def InterOrExtent( + F1: TopoDS_Face, + F2: TopoDS_Face, + LInt1: TopTools_ListOfShape, + LInt2: TopTools_ListOfShape, + Side: TopAbs_State, + ) -> None: ... @staticmethod - def MapVertexEdges(S: TopoDS_Shape, MVE: TopTools_DataMapOfShapeListOfShape) -> None: ... + def MapVertexEdges( + S: TopoDS_Shape, MVE: TopTools_DataMapOfShapeListOfShape + ) -> None: ... @staticmethod - def OrientSection(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face) -> Tuple[TopAbs_Orientation, TopAbs_Orientation]: ... + def OrientSection( + E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face + ) -> Tuple[TopAbs_Orientation, TopAbs_Orientation]: ... @staticmethod - def PipeInter(F1: TopoDS_Face, F2: TopoDS_Face, LInt1: TopTools_ListOfShape, LInt2: TopTools_ListOfShape, Side: TopAbs_State) -> None: ... + def PipeInter( + F1: TopoDS_Face, + F2: TopoDS_Face, + LInt1: TopTools_ListOfShape, + LInt2: TopTools_ListOfShape, + Side: TopAbs_State, + ) -> None: ... @staticmethod - def TryProject(F1: TopoDS_Face, F2: TopoDS_Face, Edges: TopTools_ListOfShape, LInt1: TopTools_ListOfShape, LInt2: TopTools_ListOfShape, Side: TopAbs_State, TolConf: float) -> bool: ... + def TryProject( + F1: TopoDS_Face, + F2: TopoDS_Face, + Edges: TopTools_ListOfShape, + LInt1: TopTools_ListOfShape, + LInt2: TopTools_ListOfShape, + Side: TopAbs_State, + TolConf: float, + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepOffsetAPI.pyi b/src/SWIG_files/wrapper/BRepOffsetAPI.pyi index 1b2fb636d..62cd16f05 100644 --- a/src/SWIG_files/wrapper/BRepOffsetAPI.pyi +++ b/src/SWIG_files/wrapper/BRepOffsetAPI.pyi @@ -21,43 +21,66 @@ from OCC.Core.Approx import * BRepOffsetAPI_Sewing = NewType("BRepOffsetAPI_Sewing", BRepBuilderAPI_Sewing) class BRepOffsetAPI_SequenceOfSequenceOfReal: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: TColStd_SequenceOfReal) -> TColStd_SequenceOfReal: ... def Clear(self) -> None: ... def First(self) -> TColStd_SequenceOfReal: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> TColStd_SequenceOfReal: ... def Length(self) -> int: ... - def Append(self, theItem: TColStd_SequenceOfReal) -> TColStd_SequenceOfReal: ... + def Lower(self) -> int: ... def Prepend(self, theItem: TColStd_SequenceOfReal) -> TColStd_SequenceOfReal: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TColStd_SequenceOfReal: ... def SetValue(self, theIndex: int, theValue: TColStd_SequenceOfReal) -> None: ... - -class BRepOffsetAPI_SequenceOfSequenceOfShape: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> TColStd_SequenceOfReal: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class BRepOffsetAPI_SequenceOfSequenceOfShape: + def Assign(self, theItem: TopTools_SequenceOfShape) -> TopTools_SequenceOfShape: ... def Clear(self) -> None: ... def First(self) -> TopTools_SequenceOfShape: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> TopTools_SequenceOfShape: ... def Length(self) -> int: ... - def Append(self, theItem: TopTools_SequenceOfShape) -> TopTools_SequenceOfShape: ... - def Prepend(self, theItem: TopTools_SequenceOfShape) -> TopTools_SequenceOfShape: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: TopTools_SequenceOfShape + ) -> TopTools_SequenceOfShape: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopTools_SequenceOfShape: ... def SetValue(self, theIndex: int, theValue: TopTools_SequenceOfShape) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> TopTools_SequenceOfShape: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class BRepOffsetAPI_DraftAngle(BRepBuilderAPI_ModifyShape): @overload def __init__(self) -> None: ... @overload def __init__(self, S: TopoDS_Shape) -> None: ... - def Add(self, F: TopoDS_Face, Direction: gp_Dir, Angle: float, NeutralPlane: gp_Pln, Flag: Optional[bool] = True) -> None: ... + def Add( + self, + F: TopoDS_Face, + Direction: gp_Dir, + Angle: float, + NeutralPlane: gp_Pln, + Flag: Optional[bool] = True, + ) -> None: ... def AddDone(self) -> bool: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Clear(self) -> None: ... def ConnectedFaces(self, F: TopoDS_Face) -> TopTools_ListOfShape: ... def CorrectWires(self) -> None: ... @@ -71,7 +94,9 @@ class BRepOffsetAPI_DraftAngle(BRepBuilderAPI_ModifyShape): def Status(self) -> Draft_ErrorStatus: ... class BRepOffsetAPI_FindContigousEdges: - def __init__(self, tolerance: Optional[float] = 1.0e-06, option: Optional[bool] = True) -> None: ... + def __init__( + self, tolerance: Optional[float] = 1.0e-06, option: Optional[bool] = True + ) -> None: ... def Add(self, shape: TopoDS_Shape) -> None: ... def ContigousEdge(self, index: int) -> TopoDS_Edge: ... def ContigousEdgeCouple(self, index: int) -> TopTools_ListOfShape: ... @@ -92,37 +117,85 @@ class BRepOffsetAPI_MakeDraft(BRepBuilderAPI_MakeShape): @overload def Perform(self, LengthMax: float) -> None: ... @overload - def Perform(self, Surface: Geom_Surface, KeepInsideSurface: Optional[bool] = True) -> None: ... + def Perform( + self, Surface: Geom_Surface, KeepInsideSurface: Optional[bool] = True + ) -> None: ... @overload - def Perform(self, StopShape: TopoDS_Shape, KeepOutSide: Optional[bool] = True) -> None: ... + def Perform( + self, StopShape: TopoDS_Shape, KeepOutSide: Optional[bool] = True + ) -> None: ... def SetDraft(self, IsInternal: Optional[bool] = False) -> None: ... - def SetOptions(self, Style: Optional[BRepBuilderAPI_TransitionMode] = BRepBuilderAPI_RightCorner, AngleMin: Optional[float] = 0.01, AngleMax: Optional[float] = 3.0) -> None: ... + def SetOptions( + self, + Style: Optional[BRepBuilderAPI_TransitionMode] = BRepBuilderAPI_RightCorner, + AngleMin: Optional[float] = 0.01, + AngleMax: Optional[float] = 3.0, + ) -> None: ... def Shell(self) -> TopoDS_Shell: ... class BRepOffsetAPI_MakeEvolved(BRepBuilderAPI_MakeShape): @overload def __init__(self) -> None: ... @overload - def __init__(self, theSpine: TopoDS_Shape, theProfile: TopoDS_Wire, theJoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, theIsAxeProf: Optional[bool] = True, theIsSolid: Optional[bool] = False, theIsProfOnSpine: Optional[bool] = False, theTol: Optional[float] = 0.0000001, theIsVolume: Optional[bool] = False, theRunInParallel: Optional[bool] = False) -> None: ... + def __init__( + self, + theSpine: TopoDS_Shape, + theProfile: TopoDS_Wire, + theJoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + theIsAxeProf: Optional[bool] = True, + theIsSolid: Optional[bool] = False, + theIsProfOnSpine: Optional[bool] = False, + theTol: Optional[float] = 0.0000001, + theIsVolume: Optional[bool] = False, + theRunInParallel: Optional[bool] = False, + ) -> None: ... def Bottom(self) -> TopoDS_Shape: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Evolved(self) -> BRepFill_Evolved: ... - def GeneratedShapes(self, SpineShape: TopoDS_Shape, ProfShape: TopoDS_Shape) -> TopTools_ListOfShape: ... + def GeneratedShapes( + self, SpineShape: TopoDS_Shape, ProfShape: TopoDS_Shape + ) -> TopTools_ListOfShape: ... def Top(self) -> TopoDS_Shape: ... class BRepOffsetAPI_MakeFilling(BRepBuilderAPI_MakeShape): - def __init__(self, Degree: Optional[int] = 3, NbPtsOnCur: Optional[int] = 15, NbIter: Optional[int] = 2, Anisotropie: Optional[bool] = False, Tol2d: Optional[float] = 0.00001, Tol3d: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1, MaxDeg: Optional[int] = 8, MaxSegments: Optional[int] = 9) -> None: ... - @overload - def Add(self, Constr: TopoDS_Edge, Order: GeomAbs_Shape, IsBound: Optional[bool] = True) -> int: ... - @overload - def Add(self, Constr: TopoDS_Edge, Support: TopoDS_Face, Order: GeomAbs_Shape, IsBound: Optional[bool] = True) -> int: ... + def __init__( + self, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 15, + NbIter: Optional[int] = 2, + Anisotropie: Optional[bool] = False, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + MaxDeg: Optional[int] = 8, + MaxSegments: Optional[int] = 9, + ) -> None: ... + @overload + def Add( + self, Constr: TopoDS_Edge, Order: GeomAbs_Shape, IsBound: Optional[bool] = True + ) -> int: ... + @overload + def Add( + self, + Constr: TopoDS_Edge, + Support: TopoDS_Face, + Order: GeomAbs_Shape, + IsBound: Optional[bool] = True, + ) -> int: ... @overload def Add(self, Support: TopoDS_Face, Order: GeomAbs_Shape) -> int: ... @overload def Add(self, Point: gp_Pnt) -> int: ... @overload - def Add(self, U: float, V: float, Support: TopoDS_Face, Order: GeomAbs_Shape) -> int: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Add( + self, U: float, V: float, Support: TopoDS_Face, Order: GeomAbs_Shape + ) -> int: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... @overload def G0Error(self) -> float: ... @overload @@ -138,62 +211,133 @@ class BRepOffsetAPI_MakeFilling(BRepBuilderAPI_MakeShape): def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... def IsDone(self) -> bool: ... def LoadInitSurface(self, Surf: TopoDS_Face) -> None: ... - def SetApproxParam(self, MaxDeg: Optional[int] = 8, MaxSegments: Optional[int] = 9) -> None: ... - def SetConstrParam(self, Tol2d: Optional[float] = 0.00001, Tol3d: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1) -> None: ... - def SetResolParam(self, Degree: Optional[int] = 3, NbPtsOnCur: Optional[int] = 15, NbIter: Optional[int] = 2, Anisotropie: Optional[bool] = False) -> None: ... + def SetApproxParam( + self, MaxDeg: Optional[int] = 8, MaxSegments: Optional[int] = 9 + ) -> None: ... + def SetConstrParam( + self, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + ) -> None: ... + def SetResolParam( + self, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 15, + NbIter: Optional[int] = 2, + Anisotropie: Optional[bool] = False, + ) -> None: ... class BRepOffsetAPI_MakeOffset(BRepBuilderAPI_MakeShape): @overload def __init__(self) -> None: ... @overload - def __init__(self, Spine: TopoDS_Face, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, IsOpenResult: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Spine: TopoDS_Wire, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, IsOpenResult: Optional[bool] = False) -> None: ... + def __init__( + self, + Spine: TopoDS_Face, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Spine: TopoDS_Wire, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... def AddWire(self, Spine: TopoDS_Wire) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... @staticmethod def ConvertFace(theFace: TopoDS_Face, theAngleTolerance: float) -> TopoDS_Face: ... def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... @overload - def Init(self, Spine: TopoDS_Face, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, IsOpenResult: Optional[bool] = False) -> None: ... - @overload - def Init(self, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, IsOpenResult: Optional[bool] = False) -> None: ... + def Init( + self, + Spine: TopoDS_Face, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... + @overload + def Init( + self, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... def Perform(self, Offset: float, Alt: Optional[float] = 0.0) -> None: ... def SetApprox(self, ToApprox: bool) -> None: ... class BRepOffsetAPI_MakeOffsetShape(BRepBuilderAPI_MakeShape): def __init__(self) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... def GetJoinType(self) -> GeomAbs_JoinType: ... def IsDeleted(self, S: TopoDS_Shape) -> bool: ... def MakeOffset(self) -> BRepOffset_MakeOffset: ... def Modified(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... - def PerformByJoin(self, S: TopoDS_Shape, Offset: float, Tol: float, Mode: Optional[BRepOffset_Mode] = BRepOffset_Skin, Intersection: Optional[bool] = False, SelfInter: Optional[bool] = False, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, RemoveIntEdges: Optional[bool] = False, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def PerformByJoin( + self, + S: TopoDS_Shape, + Offset: float, + Tol: float, + Mode: Optional[BRepOffset_Mode] = BRepOffset_Skin, + Intersection: Optional[bool] = False, + SelfInter: Optional[bool] = False, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + RemoveIntEdges: Optional[bool] = False, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def PerformBySimple(self, theS: TopoDS_Shape, theOffsetValue: float) -> None: ... class BRepOffsetAPI_MakePipe(BRepPrimAPI_MakeSweep): @overload def __init__(self, Spine: TopoDS_Wire, Profile: TopoDS_Shape) -> None: ... @overload - def __init__(self, Spine: TopoDS_Wire, Profile: TopoDS_Shape, aMode: GeomFill_Trihedron, ForceApproxC1: Optional[bool] = False) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + Spine: TopoDS_Wire, + Profile: TopoDS_Shape, + aMode: GeomFill_Trihedron, + ForceApproxC1: Optional[bool] = False, + ) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def ErrorOnSurface(self) -> float: ... def FirstShape(self) -> TopoDS_Shape: ... @overload def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... @overload - def Generated(self, SSpine: TopoDS_Shape, SProfile: TopoDS_Shape) -> TopoDS_Shape: ... + def Generated( + self, SSpine: TopoDS_Shape, SProfile: TopoDS_Shape + ) -> TopoDS_Shape: ... def LastShape(self) -> TopoDS_Shape: ... def Pipe(self) -> BRepFill_Pipe: ... class BRepOffsetAPI_MakePipeShell(BRepPrimAPI_MakeSweep): def __init__(self, Spine: TopoDS_Wire) -> None: ... @overload - def Add(self, Profile: TopoDS_Shape, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... - @overload - def Add(self, Profile: TopoDS_Shape, Location: TopoDS_Vertex, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Add( + self, + Profile: TopoDS_Shape, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + @overload + def Add( + self, + Profile: TopoDS_Shape, + Location: TopoDS_Vertex, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Delete(self, Profile: TopoDS_Shape) -> None: ... def ErrorOnSurface(self) -> float: ... def FirstShape(self) -> TopoDS_Shape: ... @@ -206,9 +350,22 @@ class BRepOffsetAPI_MakePipeShell(BRepPrimAPI_MakeSweep): def SetDiscreteMode(self) -> None: ... def SetForceApproxC1(self, ForceApproxC1: bool) -> None: ... @overload - def SetLaw(self, Profile: TopoDS_Shape, L: Law_Function, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... - @overload - def SetLaw(self, Profile: TopoDS_Shape, L: Law_Function, Location: TopoDS_Vertex, WithContact: Optional[bool] = False, WithCorrection: Optional[bool] = False) -> None: ... + def SetLaw( + self, + Profile: TopoDS_Shape, + L: Law_Function, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + @overload + def SetLaw( + self, + Profile: TopoDS_Shape, + L: Law_Function, + Location: TopoDS_Vertex, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... def SetMaxDegree(self, NewMaxDegree: int) -> None: ... def SetMaxSegments(self, NewMaxSegments: int) -> None: ... @overload @@ -220,15 +377,31 @@ class BRepOffsetAPI_MakePipeShell(BRepPrimAPI_MakeSweep): @overload def SetMode(self, SpineSupport: TopoDS_Shape) -> bool: ... @overload - def SetMode(self, AuxiliarySpine: TopoDS_Wire, CurvilinearEquivalence: bool, KeepContact: Optional[BRepFill_TypeOfContact] = BRepFill_NoContact) -> None: ... - def SetTolerance(self, Tol3d: Optional[float] = 1.0e-4, BoundTol: Optional[float] = 1.0e-4, TolAngular: Optional[float] = 1.0e-2) -> None: ... - def SetTransitionMode(self, Mode: Optional[BRepBuilderAPI_TransitionMode] = BRepBuilderAPI_Transformed) -> None: ... + def SetMode( + self, + AuxiliarySpine: TopoDS_Wire, + CurvilinearEquivalence: bool, + KeepContact: Optional[BRepFill_TypeOfContact] = BRepFill_NoContact, + ) -> None: ... + def SetTolerance( + self, + Tol3d: Optional[float] = 1.0e-4, + BoundTol: Optional[float] = 1.0e-4, + TolAngular: Optional[float] = 1.0e-2, + ) -> None: ... + def SetTransitionMode( + self, Mode: Optional[BRepBuilderAPI_TransitionMode] = BRepBuilderAPI_Transformed + ) -> None: ... def Simulate(self, NumberOfSection: int, Result: TopTools_ListOfShape) -> None: ... def Spine(self) -> TopoDS_Wire: ... class BRepOffsetAPI_MiddlePath(BRepBuilderAPI_MakeShape): - def __init__(self, aShape: TopoDS_Shape, StartShape: TopoDS_Shape, EndShape: TopoDS_Shape) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, aShape: TopoDS_Shape, StartShape: TopoDS_Shape, EndShape: TopoDS_Shape + ) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... class BRepOffsetAPI_NormalProjection(BRepBuilderAPI_MakeShape): @overload @@ -237,7 +410,9 @@ class BRepOffsetAPI_NormalProjection(BRepBuilderAPI_MakeShape): def __init__(self, S: TopoDS_Shape) -> None: ... def Add(self, ToProj: TopoDS_Shape) -> None: ... def Ancestor(self, E: TopoDS_Edge) -> TopoDS_Shape: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def BuildWire(self, Liste: TopTools_ListOfShape) -> bool: ... def Compute3d(self, With3d: Optional[bool] = True) -> None: ... def Couple(self, E: TopoDS_Edge) -> TopoDS_Shape: ... @@ -247,13 +422,27 @@ class BRepOffsetAPI_NormalProjection(BRepBuilderAPI_MakeShape): def Projection(self) -> TopoDS_Shape: ... def SetLimit(self, FaceBoundaries: Optional[bool] = True) -> None: ... def SetMaxDistance(self, MaxDist: float) -> None: ... - def SetParams(self, Tol3D: float, Tol2D: float, InternalContinuity: GeomAbs_Shape, MaxDegree: int, MaxSeg: int) -> None: ... + def SetParams( + self, + Tol3D: float, + Tol2D: float, + InternalContinuity: GeomAbs_Shape, + MaxDegree: int, + MaxSeg: int, + ) -> None: ... class BRepOffsetAPI_ThruSections(BRepBuilderAPI_MakeShape): - def __init__(self, isSolid: Optional[bool] = False, ruled: Optional[bool] = False, pres3d: Optional[float] = 1.0e-06) -> None: ... + def __init__( + self, + isSolid: Optional[bool] = False, + ruled: Optional[bool] = False, + pres3d: Optional[float] = 1.0e-06, + ) -> None: ... def AddVertex(self, aVertex: TopoDS_Vertex) -> None: ... def AddWire(self, wire: TopoDS_Wire) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def CheckCompatibility(self, check: Optional[bool] = True) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def CriteriumWeight(self) -> Tuple[float, float, float]: ... @@ -261,7 +450,12 @@ class BRepOffsetAPI_ThruSections(BRepBuilderAPI_MakeShape): def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... def GeneratedFace(self, Edge: TopoDS_Shape) -> TopoDS_Shape: ... def GetStatus(self) -> BRepFill_ThruSectionErrorStatus: ... - def Init(self, isSolid: Optional[bool] = False, ruled: Optional[bool] = False, pres3d: Optional[float] = 1.0e-06) -> None: ... + def Init( + self, + isSolid: Optional[bool] = False, + ruled: Optional[bool] = False, + pres3d: Optional[float] = 1.0e-06, + ) -> None: ... def IsMutableInput(self) -> bool: ... def LastShape(self) -> TopoDS_Shape: ... def MaxDegree(self) -> int: ... @@ -277,12 +471,27 @@ class BRepOffsetAPI_ThruSections(BRepBuilderAPI_MakeShape): class BRepOffsetAPI_MakeThickSolid(BRepOffsetAPI_MakeOffsetShape): def __init__(self) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def MakeThickSolidByJoin(self, S: TopoDS_Shape, ClosingFaces: TopTools_ListOfShape, Offset: float, Tol: float, Mode: Optional[BRepOffset_Mode] = BRepOffset_Skin, Intersection: Optional[bool] = False, SelfInter: Optional[bool] = False, Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, RemoveIntEdges: Optional[bool] = False, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def MakeThickSolidBySimple(self, theS: TopoDS_Shape, theOffsetValue: float) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... + def MakeThickSolidByJoin( + self, + S: TopoDS_Shape, + ClosingFaces: TopTools_ListOfShape, + Offset: float, + Tol: float, + Mode: Optional[BRepOffset_Mode] = BRepOffset_Skin, + Intersection: Optional[bool] = False, + SelfInter: Optional[bool] = False, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + RemoveIntEdges: Optional[bool] = False, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def MakeThickSolidBySimple( + self, theS: TopoDS_Shape, theOffsetValue: float + ) -> None: ... def Modified(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepPrim.pyi b/src/SWIG_files/wrapper/BRepPrim.pyi index a349d322e..e78ad6c7d 100644 --- a/src/SWIG_files/wrapper/BRepPrim.pyi +++ b/src/SWIG_files/wrapper/BRepPrim.pyi @@ -9,7 +9,6 @@ from OCC.Core.gp import * from OCC.Core.Geom import * from OCC.Core.Geom2d import * - class BRepPrim_Direction(IntEnum): BRepPrim_XMin: int = ... BRepPrim_XMax: int = ... @@ -31,9 +30,13 @@ class BRepPrim_Builder: @overload def __init__(self, B: BRep_Builder) -> None: ... @overload - def AddEdgeVertex(self, E: TopoDS_Edge, V: TopoDS_Vertex, P: float, direct: bool) -> None: ... + def AddEdgeVertex( + self, E: TopoDS_Edge, V: TopoDS_Vertex, P: float, direct: bool + ) -> None: ... @overload - def AddEdgeVertex(self, E: TopoDS_Edge, V: TopoDS_Vertex, P1: float, P2: float) -> None: ... + def AddEdgeVertex( + self, E: TopoDS_Edge, V: TopoDS_Vertex, P1: float, P2: float + ) -> None: ... def AddFaceWire(self, F: TopoDS_Face, W: TopoDS_Wire) -> None: ... def AddShellFace(self, Sh: TopoDS_Shell, F: TopoDS_Face) -> None: ... def AddWireEdge(self, W: TopoDS_Wire, E: TopoDS_Edge, direct: bool) -> None: ... @@ -55,10 +58,14 @@ class BRepPrim_Builder: @overload def SetPCurve(self, E: TopoDS_Edge, F: TopoDS_Face, L: gp_Lin2d) -> None: ... @overload - def SetPCurve(self, E: TopoDS_Edge, F: TopoDS_Face, L1: gp_Lin2d, L2: gp_Lin2d) -> None: ... + def SetPCurve( + self, E: TopoDS_Edge, F: TopoDS_Face, L1: gp_Lin2d, L2: gp_Lin2d + ) -> None: ... @overload def SetPCurve(self, E: TopoDS_Edge, F: TopoDS_Face, C: gp_Circ2d) -> None: ... - def SetParameters(self, E: TopoDS_Edge, V: TopoDS_Vertex, P1: float, P2: float) -> None: ... + def SetParameters( + self, E: TopoDS_Edge, V: TopoDS_Vertex, P1: float, P2: float + ) -> None: ... class BRepPrim_FaceBuilder: @overload @@ -66,24 +73,64 @@ class BRepPrim_FaceBuilder: @overload def __init__(self, B: BRep_Builder, S: Geom_Surface) -> None: ... @overload - def __init__(self, B: BRep_Builder, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def __init__( + self, + B: BRep_Builder, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + ) -> None: ... def Edge(self, I: int) -> TopoDS_Edge: ... def Face(self) -> TopoDS_Face: ... @overload def Init(self, B: BRep_Builder, S: Geom_Surface) -> None: ... @overload - def Init(self, B: BRep_Builder, S: Geom_Surface, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def Init( + self, + B: BRep_Builder, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + ) -> None: ... def Vertex(self, I: int) -> TopoDS_Vertex: ... class BRepPrim_GWedge: @overload def __init__(self) -> None: ... @overload - def __init__(self, B: BRepPrim_Builder, Axes: gp_Ax2, dx: float, dy: float, dz: float) -> None: ... - @overload - def __init__(self, B: BRepPrim_Builder, Axes: gp_Ax2, dx: float, dy: float, dz: float, ltx: float) -> None: ... - @overload - def __init__(self, B: BRepPrim_Builder, Axes: gp_Ax2, xmin: float, ymin: float, zmin: float, z2min: float, x2min: float, xmax: float, ymax: float, zmax: float, z2max: float, x2max: float) -> None: ... + def __init__( + self, B: BRepPrim_Builder, Axes: gp_Ax2, dx: float, dy: float, dz: float + ) -> None: ... + @overload + def __init__( + self, + B: BRepPrim_Builder, + Axes: gp_Ax2, + dx: float, + dy: float, + dz: float, + ltx: float, + ) -> None: ... + @overload + def __init__( + self, + B: BRepPrim_Builder, + Axes: gp_Ax2, + xmin: float, + ymin: float, + zmin: float, + z2min: float, + x2min: float, + xmax: float, + ymax: float, + zmax: float, + z2max: float, + x2max: float, + ) -> None: ... def Axes(self) -> gp_Ax2: ... def Close(self, d1: BRepPrim_Direction) -> None: ... def Edge(self, d1: BRepPrim_Direction, d2: BRepPrim_Direction) -> TopoDS_Edge: ... @@ -100,16 +147,22 @@ class BRepPrim_GWedge: def GetZMin(self) -> float: ... def HasEdge(self, d1: BRepPrim_Direction, d2: BRepPrim_Direction) -> bool: ... def HasFace(self, d1: BRepPrim_Direction) -> bool: ... - def HasVertex(self, d1: BRepPrim_Direction, d2: BRepPrim_Direction, d3: BRepPrim_Direction) -> bool: ... + def HasVertex( + self, d1: BRepPrim_Direction, d2: BRepPrim_Direction, d3: BRepPrim_Direction + ) -> bool: ... def HasWire(self, d1: BRepPrim_Direction) -> bool: ... def IsDegeneratedShape(self) -> bool: ... def IsInfinite(self, d1: BRepPrim_Direction) -> bool: ... def Line(self, d1: BRepPrim_Direction, d2: BRepPrim_Direction) -> gp_Lin: ... def Open(self, d1: BRepPrim_Direction) -> None: ... def Plane(self, d1: BRepPrim_Direction) -> gp_Pln: ... - def Point(self, d1: BRepPrim_Direction, d2: BRepPrim_Direction, d3: BRepPrim_Direction) -> gp_Pnt: ... + def Point( + self, d1: BRepPrim_Direction, d2: BRepPrim_Direction, d3: BRepPrim_Direction + ) -> gp_Pnt: ... def Shell(self) -> TopoDS_Shell: ... - def Vertex(self, d1: BRepPrim_Direction, d2: BRepPrim_Direction, d3: BRepPrim_Direction) -> TopoDS_Vertex: ... + def Vertex( + self, d1: BRepPrim_Direction, d2: BRepPrim_Direction, d3: BRepPrim_Direction + ) -> TopoDS_Vertex: ... def Wire(self, d1: BRepPrim_Direction) -> TopoDS_Wire: ... class BRepPrim_OneAxis: @@ -173,7 +226,9 @@ class BRepPrim_OneAxis: def VMinInfinite(self) -> bool: ... class BRepPrim_Revolution(BRepPrim_OneAxis): - def __init__(self, A: gp_Ax2, VMin: float, VMax: float, M: Geom_Curve, PM: Geom2d_Curve) -> None: ... + def __init__( + self, A: gp_Ax2, VMin: float, VMax: float, M: Geom_Curve, PM: Geom2d_Curve + ) -> None: ... def MakeEmptyLateralFace(self) -> TopoDS_Face: ... def MakeEmptyMeridianEdge(self, Ang: float) -> TopoDS_Edge: ... def MeridianValue(self, V: float) -> gp_Pnt2d: ... @@ -185,13 +240,30 @@ class BRepPrim_Wedge(BRepPrim_GWedge): @overload def __init__(self, Axes: gp_Ax2, dx: float, dy: float, dz: float) -> None: ... @overload - def __init__(self, Axes: gp_Ax2, dx: float, dy: float, dz: float, ltx: float) -> None: ... - @overload - def __init__(self, Axes: gp_Ax2, xmin: float, ymin: float, zmin: float, z2min: float, x2min: float, xmax: float, ymax: float, zmax: float, z2max: float, x2max: float) -> None: ... + def __init__( + self, Axes: gp_Ax2, dx: float, dy: float, dz: float, ltx: float + ) -> None: ... + @overload + def __init__( + self, + Axes: gp_Ax2, + xmin: float, + ymin: float, + zmin: float, + z2min: float, + x2min: float, + xmax: float, + ymax: float, + zmax: float, + z2max: float, + x2max: float, + ) -> None: ... class BRepPrim_Cone(BRepPrim_Revolution): @overload - def __init__(self, Angle: float, Position: gp_Ax2, Height: float, Radius: Optional[float] = 0) -> None: ... + def __init__( + self, Angle: float, Position: gp_Ax2, Height: float, Radius: Optional[float] = 0 + ) -> None: ... @overload def __init__(self, Angle: float) -> None: ... @overload @@ -242,4 +314,3 @@ class BRepPrim_Torus(BRepPrim_Revolution): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepPrimAPI.pyi b/src/SWIG_files/wrapper/BRepPrimAPI.pyi index c2dbe298b..f516fd175 100644 --- a/src/SWIG_files/wrapper/BRepPrimAPI.pyi +++ b/src/SWIG_files/wrapper/BRepPrimAPI.pyi @@ -12,7 +12,6 @@ from OCC.Core.TopTools import * from OCC.Core.BRepSweep import * from OCC.Core.Geom import * - class BRepPrimAPI_MakeBox(BRepBuilderAPI_MakeShape): @overload def __init__(self) -> None: ... @@ -26,16 +25,22 @@ class BRepPrimAPI_MakeBox(BRepBuilderAPI_MakeShape): def __init__(self, Axes: gp_Ax2, dx: float, dy: float, dz: float) -> None: ... def BackFace(self) -> TopoDS_Face: ... def BottomFace(self) -> TopoDS_Face: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def FrontFace(self) -> TopoDS_Face: ... @overload def Init(self, theDX: float, theDY: float, theDZ: float) -> None: ... @overload - def Init(self, thePnt: gp_Pnt, theDX: float, theDY: float, theDZ: float) -> None: ... + def Init( + self, thePnt: gp_Pnt, theDX: float, theDY: float, theDZ: float + ) -> None: ... @overload def Init(self, thePnt1: gp_Pnt, thePnt2: gp_Pnt) -> None: ... @overload - def Init(self, theAxes: gp_Ax2, theDX: float, theDY: float, theDZ: float) -> None: ... + def Init( + self, theAxes: gp_Ax2, theDX: float, theDY: float, theDZ: float + ) -> None: ... def LeftFace(self) -> TopoDS_Face: ... def RightFace(self) -> TopoDS_Face: ... def Shell(self) -> TopoDS_Shell: ... @@ -51,7 +56,9 @@ class BRepPrimAPI_MakeHalfSpace(BRepBuilderAPI_MakeShape): def Solid(self) -> TopoDS_Solid: ... class BRepPrimAPI_MakeOneAxis(BRepBuilderAPI_MakeShape): - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Face(self) -> TopoDS_Face: ... def OneAxis(self) -> None: ... def Shell(self) -> TopoDS_Shell: ... @@ -65,12 +72,35 @@ class BRepPrimAPI_MakeWedge(BRepBuilderAPI_MakeShape): @overload def __init__(self, dx: float, dy: float, dz: float, ltx: float) -> None: ... @overload - def __init__(self, Axes: gp_Ax2, dx: float, dy: float, dz: float, ltx: float) -> None: ... - @overload - def __init__(self, dx: float, dy: float, dz: float, xmin: float, zmin: float, xmax: float, zmax: float) -> None: ... - @overload - def __init__(self, Axes: gp_Ax2, dx: float, dy: float, dz: float, xmin: float, zmin: float, xmax: float, zmax: float) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, Axes: gp_Ax2, dx: float, dy: float, dz: float, ltx: float + ) -> None: ... + @overload + def __init__( + self, + dx: float, + dy: float, + dz: float, + xmin: float, + zmin: float, + xmax: float, + zmax: float, + ) -> None: ... + @overload + def __init__( + self, + Axes: gp_Ax2, + dx: float, + dy: float, + dz: float, + xmin: float, + zmin: float, + xmax: float, + zmax: float, + ) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Shell(self) -> TopoDS_Shell: ... def Solid(self) -> TopoDS_Solid: ... def Wedge(self) -> BRepPrim_Wedge: ... @@ -83,7 +113,9 @@ class BRepPrimAPI_MakeCone(BRepPrimAPI_MakeOneAxis): @overload def __init__(self, Axes: gp_Ax2, R1: float, R2: float, H: float) -> None: ... @overload - def __init__(self, Axes: gp_Ax2, R1: float, R2: float, H: float, angle: float) -> None: ... + def __init__( + self, Axes: gp_Ax2, R1: float, R2: float, H: float, angle: float + ) -> None: ... def Cone(self) -> BRepPrim_Cone: ... def OneAxis(self) -> None: ... @@ -101,10 +133,25 @@ class BRepPrimAPI_MakeCylinder(BRepPrimAPI_MakeOneAxis): class BRepPrimAPI_MakePrism(BRepPrimAPI_MakeSweep): @overload - def __init__(self, S: TopoDS_Shape, V: gp_Vec, Copy: Optional[bool] = False, Canonize: Optional[bool] = True) -> None: ... - @overload - def __init__(self, S: TopoDS_Shape, D: gp_Dir, Inf: Optional[bool] = True, Copy: Optional[bool] = False, Canonize: Optional[bool] = True) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + V: gp_Vec, + Copy: Optional[bool] = False, + Canonize: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + S: TopoDS_Shape, + D: gp_Dir, + Inf: Optional[bool] = True, + Copy: Optional[bool] = False, + Canonize: Optional[bool] = True, + ) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... @overload def FirstShape(self) -> TopoDS_Shape: ... @overload @@ -119,10 +166,16 @@ class BRepPrimAPI_MakePrism(BRepPrimAPI_MakeSweep): class BRepPrimAPI_MakeRevol(BRepPrimAPI_MakeSweep): @overload - def __init__(self, S: TopoDS_Shape, A: gp_Ax1, D: float, Copy: Optional[bool] = False) -> None: ... + def __init__( + self, S: TopoDS_Shape, A: gp_Ax1, D: float, Copy: Optional[bool] = False + ) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, A: gp_Ax1, Copy: Optional[bool] = False) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, S: TopoDS_Shape, A: gp_Ax1, Copy: Optional[bool] = False + ) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Degenerated(self) -> TopTools_ListOfShape: ... @overload def FirstShape(self) -> TopoDS_Shape: ... @@ -145,15 +198,21 @@ class BRepPrimAPI_MakeRevolution(BRepPrimAPI_MakeOneAxis): @overload def __init__(self, Meridian: Geom_Curve, VMin: float, VMax: float) -> None: ... @overload - def __init__(self, Meridian: Geom_Curve, VMin: float, VMax: float, angle: float) -> None: ... + def __init__( + self, Meridian: Geom_Curve, VMin: float, VMax: float, angle: float + ) -> None: ... @overload def __init__(self, Axes: gp_Ax2, Meridian: Geom_Curve) -> None: ... @overload def __init__(self, Axes: gp_Ax2, Meridian: Geom_Curve, angle: float) -> None: ... @overload - def __init__(self, Axes: gp_Ax2, Meridian: Geom_Curve, VMin: float, VMax: float) -> None: ... + def __init__( + self, Axes: gp_Ax2, Meridian: Geom_Curve, VMin: float, VMax: float + ) -> None: ... @overload - def __init__(self, Axes: gp_Ax2, Meridian: Geom_Curve, VMin: float, VMax: float, angle: float) -> None: ... + def __init__( + self, Axes: gp_Ax2, Meridian: Geom_Curve, VMin: float, VMax: float, angle: float + ) -> None: ... def OneAxis(self) -> None: ... def Revolution(self) -> BRepPrim_Revolution: ... @@ -165,23 +224,33 @@ class BRepPrimAPI_MakeSphere(BRepPrimAPI_MakeOneAxis): @overload def __init__(self, R: float, angle1: float, angle2: float) -> None: ... @overload - def __init__(self, R: float, angle1: float, angle2: float, angle3: float) -> None: ... + def __init__( + self, R: float, angle1: float, angle2: float, angle3: float + ) -> None: ... @overload def __init__(self, Center: gp_Pnt, R: float) -> None: ... @overload def __init__(self, Center: gp_Pnt, R: float, angle: float) -> None: ... @overload - def __init__(self, Center: gp_Pnt, R: float, angle1: float, angle2: float) -> None: ... + def __init__( + self, Center: gp_Pnt, R: float, angle1: float, angle2: float + ) -> None: ... @overload - def __init__(self, Center: gp_Pnt, R: float, angle1: float, angle2: float, angle3: float) -> None: ... + def __init__( + self, Center: gp_Pnt, R: float, angle1: float, angle2: float, angle3: float + ) -> None: ... @overload def __init__(self, Axis: gp_Ax2, R: float) -> None: ... @overload def __init__(self, Axis: gp_Ax2, R: float, angle: float) -> None: ... @overload - def __init__(self, Axis: gp_Ax2, R: float, angle1: float, angle2: float) -> None: ... + def __init__( + self, Axis: gp_Ax2, R: float, angle1: float, angle2: float + ) -> None: ... @overload - def __init__(self, Axis: gp_Ax2, R: float, angle1: float, angle2: float, angle3: float) -> None: ... + def __init__( + self, Axis: gp_Ax2, R: float, angle1: float, angle2: float, angle3: float + ) -> None: ... def OneAxis(self) -> None: ... def Sphere(self) -> BRepPrim_Sphere: ... @@ -193,19 +262,30 @@ class BRepPrimAPI_MakeTorus(BRepPrimAPI_MakeOneAxis): @overload def __init__(self, R1: float, R2: float, angle1: float, angle2: float) -> None: ... @overload - def __init__(self, R1: float, R2: float, angle1: float, angle2: float, angle: float) -> None: ... + def __init__( + self, R1: float, R2: float, angle1: float, angle2: float, angle: float + ) -> None: ... @overload def __init__(self, Axes: gp_Ax2, R1: float, R2: float) -> None: ... @overload def __init__(self, Axes: gp_Ax2, R1: float, R2: float, angle: float) -> None: ... @overload - def __init__(self, Axes: gp_Ax2, R1: float, R2: float, angle1: float, angle2: float) -> None: ... - @overload - def __init__(self, Axes: gp_Ax2, R1: float, R2: float, angle1: float, angle2: float, angle: float) -> None: ... + def __init__( + self, Axes: gp_Ax2, R1: float, R2: float, angle1: float, angle2: float + ) -> None: ... + @overload + def __init__( + self, + Axes: gp_Ax2, + R1: float, + R2: float, + angle1: float, + angle2: float, + angle: float, + ) -> None: ... def OneAxis(self) -> None: ... def Torus(self) -> BRepPrim_Torus: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepProj.pyi b/src/SWIG_files/wrapper/BRepProj.pyi index d3fa33179..2af10c53d 100644 --- a/src/SWIG_files/wrapper/BRepProj.pyi +++ b/src/SWIG_files/wrapper/BRepProj.pyi @@ -6,7 +6,6 @@ from OCC.Core.NCollection import * from OCC.Core.TopoDS import * from OCC.Core.gp import * - class BRepProj_Projection: @overload def __init__(self, Wire: TopoDS_Shape, Shape: TopoDS_Shape, D: gp_Dir) -> None: ... @@ -22,4 +21,3 @@ class BRepProj_Projection: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepSweep.pyi b/src/SWIG_files/wrapper/BRepSweep.pyi index 8fac2ce98..02075a60f 100644 --- a/src/SWIG_files/wrapper/BRepSweep.pyi +++ b/src/SWIG_files/wrapper/BRepSweep.pyi @@ -10,11 +10,12 @@ from OCC.Core.Sweep import * from OCC.Core.gp import * from OCC.Core.TopLoc import * - class BRepSweep_Builder: def __init__(self, aBuilder: BRep_Builder) -> None: ... @overload - def Add(self, aShape1: TopoDS_Shape, aShape2: TopoDS_Shape, Orient: TopAbs_Orientation) -> None: ... + def Add( + self, aShape1: TopoDS_Shape, aShape2: TopoDS_Shape, Orient: TopAbs_Orientation + ) -> None: ... @overload def Add(self, aShape1: TopoDS_Shape, aShape2: TopoDS_Shape) -> None: ... def Builder(self) -> BRep_Builder: ... @@ -34,13 +35,29 @@ class BRepSweep_Iterator: class BRepSweep_NumLinearRegularSweep: def Closed(self) -> bool: ... - def DirectSolid(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> TopAbs_Orientation: ... + def DirectSolid( + self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape + ) -> TopAbs_Orientation: ... @overload def FirstShape(self) -> TopoDS_Shape: ... @overload def FirstShape(self, aGenS: TopoDS_Shape) -> TopoDS_Shape: ... - def GDDShapeIsToAdd(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape, aSubDirS: Sweep_NumShape) -> bool: ... - def GGDShapeIsToAdd(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aSubGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... + def GDDShapeIsToAdd( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + aSubDirS: Sweep_NumShape, + ) -> bool: ... + def GGDShapeIsToAdd( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aSubGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + ) -> bool: ... def GenIsUsed(self, theS: TopoDS_Shape) -> bool: ... def HasShape(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... def IsInvariant(self, aGenS: TopoDS_Shape) -> bool: ... @@ -49,18 +66,78 @@ class BRepSweep_NumLinearRegularSweep: def LastShape(self) -> TopoDS_Shape: ... @overload def LastShape(self, aGenS: TopoDS_Shape) -> TopoDS_Shape: ... - def MakeEmptyDirectingEdge(self, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyFace(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyGeneratingEdge(self, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyVertex(self, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> TopoDS_Shape: ... - def SeparatedWires(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aSubGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... + def MakeEmptyDirectingEdge( + self, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyFace( + self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyGeneratingEdge( + self, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyVertex( + self, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape + ) -> TopoDS_Shape: ... + def SeparatedWires( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aSubGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + ) -> bool: ... def SetContinuity(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> None: ... - def SetDirectingPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenE: TopoDS_Shape, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetDirectingParameter(self, aNewEdge: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape, aDirV: Sweep_NumShape) -> None: ... - def SetGeneratingPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenE: TopoDS_Shape, aDirE: Sweep_NumShape, aDirV: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetGeneratingParameter(self, aNewEdge: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenE: TopoDS_Shape, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> None: ... - def SetPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenF: TopoDS_Shape, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetParameters(self, aNewFace: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenF: TopoDS_Shape, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> None: ... + def SetDirectingPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenE: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirE: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetDirectingParameter( + self, + aNewEdge: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirE: Sweep_NumShape, + aDirV: Sweep_NumShape, + ) -> None: ... + def SetGeneratingPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenE: TopoDS_Shape, + aDirE: Sweep_NumShape, + aDirV: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetGeneratingParameter( + self, + aNewEdge: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenE: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirV: Sweep_NumShape, + ) -> None: ... + def SetPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenF: TopoDS_Shape, + aGenE: TopoDS_Shape, + aDirV: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetParameters( + self, + aNewFace: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenF: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirV: Sweep_NumShape, + ) -> None: ... @overload def Shape(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> TopoDS_Shape: ... @overload @@ -71,9 +148,22 @@ class BRepSweep_NumLinearRegularSweep: class BRepSweep_Prism: @overload - def __init__(self, S: TopoDS_Shape, V: gp_Vec, Copy: Optional[bool] = False, Canonize: Optional[bool] = True) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + V: gp_Vec, + Copy: Optional[bool] = False, + Canonize: Optional[bool] = True, + ) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, D: gp_Dir, Inf: Optional[bool] = True, Copy: Optional[bool] = False, Canonize: Optional[bool] = True) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + D: gp_Dir, + Inf: Optional[bool] = True, + Copy: Optional[bool] = False, + Canonize: Optional[bool] = True, + ) -> None: ... @overload def FirstShape(self) -> TopoDS_Shape: ... @overload @@ -92,9 +182,13 @@ class BRepSweep_Prism: class BRepSweep_Revol: @overload - def __init__(self, S: TopoDS_Shape, A: gp_Ax1, D: float, C: Optional[bool] = False) -> None: ... + def __init__( + self, S: TopoDS_Shape, A: gp_Ax1, D: float, C: Optional[bool] = False + ) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, A: gp_Ax1, C: Optional[bool] = False) -> None: ... + def __init__( + self, S: TopoDS_Shape, A: gp_Ax1, C: Optional[bool] = False + ) -> None: ... def Angle(self) -> float: ... def Axe(self) -> gp_Ax1: ... @overload @@ -121,68 +215,309 @@ class BRepSweep_Tool: def Type(self, aShape: TopoDS_Shape) -> TopAbs_ShapeEnum: ... class BRepSweep_Trsf(BRepSweep_NumLinearRegularSweep): - def GDDShapeIsToAdd(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape, aSubDirS: Sweep_NumShape) -> bool: ... - def GGDShapeIsToAdd(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aSubGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... + def GDDShapeIsToAdd( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + aSubDirS: Sweep_NumShape, + ) -> bool: ... + def GGDShapeIsToAdd( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aSubGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + ) -> bool: ... def HasShape(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... def Init(self) -> None: ... def IsInvariant(self, aGenS: TopoDS_Shape) -> bool: ... - def MakeEmptyDirectingEdge(self, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyFace(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyGeneratingEdge(self, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyVertex(self, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> TopoDS_Shape: ... + def MakeEmptyDirectingEdge( + self, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyFace( + self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyGeneratingEdge( + self, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyVertex( + self, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape + ) -> TopoDS_Shape: ... def Process(self, aGenS: TopoDS_Shape, aDirV: Sweep_NumShape) -> bool: ... - def SeparatedWires(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aSubGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... + def SeparatedWires( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aSubGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + ) -> bool: ... def SetContinuity(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> None: ... - def SetDirectingPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenE: TopoDS_Shape, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetDirectingParameter(self, aNewEdge: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape, aDirV: Sweep_NumShape) -> None: ... - def SetGeneratingPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenE: TopoDS_Shape, aDirE: Sweep_NumShape, aDirV: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetGeneratingParameter(self, aNewEdge: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenE: TopoDS_Shape, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> None: ... - def SetPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenF: TopoDS_Shape, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetParameters(self, aNewFace: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenF: TopoDS_Shape, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> None: ... + def SetDirectingPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenE: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirE: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetDirectingParameter( + self, + aNewEdge: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirE: Sweep_NumShape, + aDirV: Sweep_NumShape, + ) -> None: ... + def SetGeneratingPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenE: TopoDS_Shape, + aDirE: Sweep_NumShape, + aDirV: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetGeneratingParameter( + self, + aNewEdge: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenE: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirV: Sweep_NumShape, + ) -> None: ... + def SetPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenF: TopoDS_Shape, + aGenE: TopoDS_Shape, + aDirV: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetParameters( + self, + aNewFace: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenF: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirV: Sweep_NumShape, + ) -> None: ... class BRepSweep_Rotation(BRepSweep_Trsf): - def __init__(self, S: TopoDS_Shape, N: Sweep_NumShape, L: TopLoc_Location, A: gp_Ax1, D: float, C: bool) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + N: Sweep_NumShape, + L: TopLoc_Location, + A: gp_Ax1, + D: float, + C: bool, + ) -> None: ... def Angle(self) -> float: ... def Axe(self) -> gp_Ax1: ... - def DirectSolid(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> TopAbs_Orientation: ... - def GDDShapeIsToAdd(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape, aSubDirS: Sweep_NumShape) -> bool: ... - def GGDShapeIsToAdd(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aSubGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... + def DirectSolid( + self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape + ) -> TopAbs_Orientation: ... + def GDDShapeIsToAdd( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + aSubDirS: Sweep_NumShape, + ) -> bool: ... + def GGDShapeIsToAdd( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aSubGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + ) -> bool: ... def HasShape(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... def IsInvariant(self, aGenS: TopoDS_Shape) -> bool: ... - def MakeEmptyDirectingEdge(self, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyFace(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyGeneratingEdge(self, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyVertex(self, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> TopoDS_Shape: ... - def SeparatedWires(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aSubGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... - def SetDirectingPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenE: TopoDS_Shape, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetDirectingParameter(self, aNewEdge: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape, aDirV: Sweep_NumShape) -> None: ... - def SetGeneratingPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenE: TopoDS_Shape, aDirE: Sweep_NumShape, aDirV: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetGeneratingParameter(self, aNewEdge: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenE: TopoDS_Shape, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> None: ... - def SetPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenF: TopoDS_Shape, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetParameters(self, aNewFace: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenF: TopoDS_Shape, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> None: ... + def MakeEmptyDirectingEdge( + self, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyFace( + self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyGeneratingEdge( + self, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyVertex( + self, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape + ) -> TopoDS_Shape: ... + def SeparatedWires( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aSubGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + ) -> bool: ... + def SetDirectingPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenE: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirE: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetDirectingParameter( + self, + aNewEdge: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirE: Sweep_NumShape, + aDirV: Sweep_NumShape, + ) -> None: ... + def SetGeneratingPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenE: TopoDS_Shape, + aDirE: Sweep_NumShape, + aDirV: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetGeneratingParameter( + self, + aNewEdge: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenE: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirV: Sweep_NumShape, + ) -> None: ... + def SetPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenF: TopoDS_Shape, + aGenE: TopoDS_Shape, + aDirV: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetParameters( + self, + aNewFace: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenF: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirV: Sweep_NumShape, + ) -> None: ... def SplitShell(self, aNewShape: TopoDS_Shape) -> TopoDS_Shape: ... class BRepSweep_Translation(BRepSweep_Trsf): - def __init__(self, S: TopoDS_Shape, N: Sweep_NumShape, L: TopLoc_Location, V: gp_Vec, C: bool, Canonize: Optional[bool] = True) -> None: ... - def DirectSolid(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> TopAbs_Orientation: ... - def GDDShapeIsToAdd(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape, aSubDirS: Sweep_NumShape) -> bool: ... - def GGDShapeIsToAdd(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aSubGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... + def __init__( + self, + S: TopoDS_Shape, + N: Sweep_NumShape, + L: TopLoc_Location, + V: gp_Vec, + C: bool, + Canonize: Optional[bool] = True, + ) -> None: ... + def DirectSolid( + self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape + ) -> TopAbs_Orientation: ... + def GDDShapeIsToAdd( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + aSubDirS: Sweep_NumShape, + ) -> bool: ... + def GGDShapeIsToAdd( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aSubGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + ) -> bool: ... def HasShape(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... def IsInvariant(self, aGenS: TopoDS_Shape) -> bool: ... - def MakeEmptyDirectingEdge(self, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyFace(self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyGeneratingEdge(self, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape) -> TopoDS_Shape: ... - def MakeEmptyVertex(self, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> TopoDS_Shape: ... - def SeparatedWires(self, aNewShape: TopoDS_Shape, aNewSubShape: TopoDS_Shape, aGenS: TopoDS_Shape, aSubGenS: TopoDS_Shape, aDirS: Sweep_NumShape) -> bool: ... - def SetDirectingPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenE: TopoDS_Shape, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetDirectingParameter(self, aNewEdge: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape, aDirV: Sweep_NumShape) -> None: ... - def SetGeneratingPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenE: TopoDS_Shape, aDirE: Sweep_NumShape, aDirV: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetGeneratingParameter(self, aNewEdge: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenE: TopoDS_Shape, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> None: ... - def SetPCurve(self, aNewFace: TopoDS_Shape, aNewEdge: TopoDS_Shape, aGenF: TopoDS_Shape, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape, orien: TopAbs_Orientation) -> None: ... - def SetParameters(self, aNewFace: TopoDS_Shape, aNewVertex: TopoDS_Shape, aGenF: TopoDS_Shape, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape) -> None: ... + def MakeEmptyDirectingEdge( + self, aGenV: TopoDS_Shape, aDirE: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyFace( + self, aGenS: TopoDS_Shape, aDirS: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyGeneratingEdge( + self, aGenE: TopoDS_Shape, aDirV: Sweep_NumShape + ) -> TopoDS_Shape: ... + def MakeEmptyVertex( + self, aGenV: TopoDS_Shape, aDirV: Sweep_NumShape + ) -> TopoDS_Shape: ... + def SeparatedWires( + self, + aNewShape: TopoDS_Shape, + aNewSubShape: TopoDS_Shape, + aGenS: TopoDS_Shape, + aSubGenS: TopoDS_Shape, + aDirS: Sweep_NumShape, + ) -> bool: ... + def SetDirectingPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenE: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirE: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetDirectingParameter( + self, + aNewEdge: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirE: Sweep_NumShape, + aDirV: Sweep_NumShape, + ) -> None: ... + def SetGeneratingPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenE: TopoDS_Shape, + aDirE: Sweep_NumShape, + aDirV: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetGeneratingParameter( + self, + aNewEdge: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenE: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirV: Sweep_NumShape, + ) -> None: ... + def SetPCurve( + self, + aNewFace: TopoDS_Shape, + aNewEdge: TopoDS_Shape, + aGenF: TopoDS_Shape, + aGenE: TopoDS_Shape, + aDirV: Sweep_NumShape, + orien: TopAbs_Orientation, + ) -> None: ... + def SetParameters( + self, + aNewFace: TopoDS_Shape, + aNewVertex: TopoDS_Shape, + aGenF: TopoDS_Shape, + aGenV: TopoDS_Shape, + aDirV: Sweep_NumShape, + ) -> None: ... def Vec(self) -> gp_Vec: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepTools.pyi b/src/SWIG_files/wrapper/BRepTools.pyi index b51a82f87..12f9fc10e 100644 --- a/src/SWIG_files/wrapper/BRepTools.pyi +++ b/src/SWIG_files/wrapper/BRepTools.pyi @@ -17,10 +17,13 @@ from OCC.Core.TopLoc import * from OCC.Core.gp import * from OCC.Core.Poly import * - class breptools: @staticmethod - def ActivateTriangulation(theShape: TopoDS_Shape, theTriangulationIdx: int, theToActivateStrictly: Optional[bool] = false) -> bool: ... + def ActivateTriangulation( + theShape: TopoDS_Shape, + theTriangulationIdx: int, + theToActivateStrictly: Optional[bool] = false, + ) -> bool: ... @overload @staticmethod def AddUVBounds(F: TopoDS_Face, B: Bnd_Box2d) -> None: ... @@ -31,7 +34,9 @@ class breptools: @staticmethod def AddUVBounds(F: TopoDS_Face, E: TopoDS_Edge, B: Bnd_Box2d) -> None: ... @staticmethod - def CheckLocations(theS: TopoDS_Shape, theProblemShapes: TopTools_ListOfShape) -> None: ... + def CheckLocations( + theS: TopoDS_Shape, theProblemShapes: TopTools_ListOfShape + ) -> None: ... @staticmethod def Clean(theShape: TopoDS_Shape, theForce: Optional[bool] = False) -> None: ... @staticmethod @@ -47,44 +52,83 @@ class breptools: @staticmethod def Dump(Sh: TopoDS_Shape) -> str: ... @staticmethod - def EvalAndUpdateTol(theE: TopoDS_Edge, theC3d: Geom_Curve, theC2d: Geom2d_Curve, theS: Geom_Surface, theF: float, theL: float) -> float: ... + def EvalAndUpdateTol( + theE: TopoDS_Edge, + theC3d: Geom_Curve, + theC2d: Geom2d_Curve, + theS: Geom_Surface, + theF: float, + theL: float, + ) -> float: ... @staticmethod def IsReallyClosed(E: TopoDS_Edge, F: TopoDS_Face) -> bool: ... @staticmethod - def LoadAllTriangulations(theShape: TopoDS_Shape, theFileSystem: Optional[OSD_FileSystem] = OSD_FileSystem()) -> bool: ... + def LoadAllTriangulations( + theShape: TopoDS_Shape, + theFileSystem: Optional[OSD_FileSystem] = OSD_FileSystem(), + ) -> bool: ... @staticmethod - def LoadTriangulation(theShape: TopoDS_Shape, theTriangulationIdx: Optional[int] = -1, theToSetAsActive: Optional[bool] = False, theFileSystem: Optional[OSD_FileSystem] = OSD_FileSystem()) -> bool: ... + def LoadTriangulation( + theShape: TopoDS_Shape, + theTriangulationIdx: Optional[int] = -1, + theToSetAsActive: Optional[bool] = False, + theFileSystem: Optional[OSD_FileSystem] = OSD_FileSystem(), + ) -> bool: ... @staticmethod def Map3DEdges(S: TopoDS_Shape, M: TopTools_IndexedMapOfShape) -> None: ... @staticmethod - def OriEdgeInFace(theEdge: TopoDS_Edge, theFace: TopoDS_Face) -> TopAbs_Orientation: ... + def OriEdgeInFace( + theEdge: TopoDS_Edge, theFace: TopoDS_Face + ) -> TopAbs_Orientation: ... @staticmethod def OuterWire(F: TopoDS_Face) -> TopoDS_Wire: ... @overload @staticmethod - def Read(Sh: TopoDS_Shape, S: str, B: BRep_Builder, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + Sh: TopoDS_Shape, + S: str, + B: BRep_Builder, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload @staticmethod - def Read(Sh: TopoDS_Shape, File: str, B: BRep_Builder, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + Sh: TopoDS_Shape, + File: str, + B: BRep_Builder, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @staticmethod - def RemoveInternals(theS: TopoDS_Shape, theForce: Optional[bool] = False) -> None: ... + def RemoveInternals( + theS: TopoDS_Shape, theForce: Optional[bool] = False + ) -> None: ... @staticmethod def RemoveUnusedPCurves(S: TopoDS_Shape) -> None: ... @staticmethod - def Triangulation(theShape: TopoDS_Shape, theLinDefl: float, theToCheckFreeEdges: Optional[bool] = False) -> bool: ... + def Triangulation( + theShape: TopoDS_Shape, + theLinDefl: float, + theToCheckFreeEdges: Optional[bool] = False, + ) -> bool: ... @overload @staticmethod def UVBounds(F: TopoDS_Face) -> Tuple[float, float, float, float]: ... @overload @staticmethod - def UVBounds(F: TopoDS_Face, W: TopoDS_Wire) -> Tuple[float, float, float, float]: ... + def UVBounds( + F: TopoDS_Face, W: TopoDS_Wire + ) -> Tuple[float, float, float, float]: ... @overload @staticmethod - def UVBounds(F: TopoDS_Face, E: TopoDS_Edge) -> Tuple[float, float, float, float]: ... + def UVBounds( + F: TopoDS_Face, E: TopoDS_Edge + ) -> Tuple[float, float, float, float]: ... @staticmethod def UnloadAllTriangulations(theShape: TopoDS_Shape) -> bool: ... @staticmethod - def UnloadTriangulation(theShape: TopoDS_Shape, theTriangulationIdx: Optional[int] = -1) -> bool: ... + def UnloadTriangulation( + theShape: TopoDS_Shape, theTriangulationIdx: Optional[int] = -1 + ) -> bool: ... @overload @staticmethod def Update(V: TopoDS_Vertex) -> None: ... @@ -116,17 +160,36 @@ class breptools: def UpdateFaceUVPoints(theF: TopoDS_Face) -> None: ... @overload @staticmethod - def Write(theShape: TopoDS_Shape, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + theShape: TopoDS_Shape, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... @overload @staticmethod - def Write(theShape: TopoDS_Shape, theWithTriangles: bool, theWithNormals: bool, theVersion: TopTools_FormatVersion, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + theShape: TopoDS_Shape, + theWithTriangles: bool, + theWithNormals: bool, + theVersion: TopTools_FormatVersion, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... @overload @staticmethod - def Write(theShape: TopoDS_Shape, theFile: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + theShape: TopoDS_Shape, + theFile: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload @staticmethod - def Write(theShape: TopoDS_Shape, theFile: str, theWithTriangles: bool, theWithNormals: bool, theVersion: TopTools_FormatVersion, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... - + def Write( + theShape: TopoDS_Shape, + theFile: str, + theWithTriangles: bool, + theWithNormals: bool, + theVersion: TopTools_FormatVersion, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @staticmethod def WriteToString(sh: TopoDS_Shape) -> str: ... @staticmethod @@ -137,8 +200,12 @@ class breptools: class BRepTools_History(Standard_Transient): @overload def __init__(self) -> None: ... - def AddGenerated(self, theInitial: TopoDS_Shape, theGenerated: TopoDS_Shape) -> None: ... - def AddModified(self, theInitial: TopoDS_Shape, theModified: TopoDS_Shape) -> None: ... + def AddGenerated( + self, theInitial: TopoDS_Shape, theGenerated: TopoDS_Shape + ) -> None: ... + def AddModified( + self, theInitial: TopoDS_Shape, theModified: TopoDS_Shape + ) -> None: ... def Clear(self) -> None: ... def Dump(self) -> str: ... def Generated(self, theInitial: TopoDS_Shape) -> TopTools_ListOfShape: ... @@ -154,18 +221,45 @@ class BRepTools_History(Standard_Transient): def Merge(self, theHistory23: BRepTools_History) -> None: ... def Modified(self, theInitial: TopoDS_Shape) -> TopTools_ListOfShape: ... def Remove(self, theRemoved: TopoDS_Shape) -> None: ... - def ReplaceGenerated(self, theInitial: TopoDS_Shape, theGenerated: TopoDS_Shape) -> None: ... - def ReplaceModified(self, theInitial: TopoDS_Shape, theModified: TopoDS_Shape) -> None: ... + def ReplaceGenerated( + self, theInitial: TopoDS_Shape, theGenerated: TopoDS_Shape + ) -> None: ... + def ReplaceModified( + self, theInitial: TopoDS_Shape, theModified: TopoDS_Shape + ) -> None: ... class BRepTools_Modification(Standard_Transient): - def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ... - def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def Continuity( + self, + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + NewE: TopoDS_Edge, + NewF1: TopoDS_Face, + NewF2: TopoDS_Face, + ) -> GeomAbs_Shape: ... + def NewCurve( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + NewE: TopoDS_Edge, + NewF: TopoDS_Face, + C: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ... def NewPolygon(self, E: TopoDS_Edge, P: Poly_Polygon3D) -> bool: ... - def NewPolygonOnTriangulation(self, E: TopoDS_Edge, F: TopoDS_Face, P: Poly_PolygonOnTriangulation) -> bool: ... - def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... + def NewPolygonOnTriangulation( + self, E: TopoDS_Edge, F: TopoDS_Face, P: Poly_PolygonOnTriangulation + ) -> bool: ... + def NewSurface( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... def NewTriangulation(self, F: TopoDS_Face, T: Poly_Triangulation) -> bool: ... class BRepTools_Modifier: @@ -179,7 +273,11 @@ class BRepTools_Modifier: def IsDone(self) -> bool: ... def IsMutableInput(self) -> bool: ... def ModifiedShape(self, S: TopoDS_Shape) -> TopoDS_Shape: ... - def Perform(self, M: BRepTools_Modification, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, + M: BRepTools_Modification, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def SetMutableInput(self, theMutableInput: bool) -> None: ... class BRepTools_PurgeLocations: @@ -201,26 +299,45 @@ class BRepTools_Quilt: class BRepTools_ReShape(Standard_Transient): def __init__(self) -> None: ... - def Apply(self, theShape: TopoDS_Shape, theUntil: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> TopoDS_Shape: ... + def Apply( + self, + theShape: TopoDS_Shape, + theUntil: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> TopoDS_Shape: ... def Clear(self) -> None: ... @overload - def CopyVertex(self, theV: TopoDS_Vertex, theTol: Optional[float] = -1.0) -> TopoDS_Vertex: ... + def CopyVertex( + self, theV: TopoDS_Vertex, theTol: Optional[float] = -1.0 + ) -> TopoDS_Vertex: ... @overload - def CopyVertex(self, theV: TopoDS_Vertex, theNewPos: gp_Pnt, aTol: float) -> TopoDS_Vertex: ... + def CopyVertex( + self, theV: TopoDS_Vertex, theNewPos: gp_Pnt, aTol: float + ) -> TopoDS_Vertex: ... def History(self) -> BRepTools_History: ... def IsNewShape(self, theShape: TopoDS_Shape) -> bool: ... def IsRecorded(self, shape: TopoDS_Shape) -> bool: ... def ModeConsiderLocation(self) -> bool: ... def Remove(self, shape: TopoDS_Shape) -> None: ... def Replace(self, shape: TopoDS_Shape, newshape: TopoDS_Shape) -> None: ... - def Status(self, shape: TopoDS_Shape, newsh: TopoDS_Shape, last: Optional[bool] = False) -> int: ... + def Status( + self, shape: TopoDS_Shape, newsh: TopoDS_Shape, last: Optional[bool] = False + ) -> int: ... def Value(self, shape: TopoDS_Shape) -> TopoDS_Shape: ... class BRepTools_ShapeSet(TopTools_ShapeSet): @overload - def __init__(self, theWithTriangles: Optional[bool] = True, theWithNormals: Optional[bool] = False) -> None: ... - @overload - def __init__(self, theBuilder: BRep_Builder, theWithTriangles: Optional[bool] = True, theWithNormals: Optional[bool] = False) -> None: ... + def __init__( + self, + theWithTriangles: Optional[bool] = True, + theWithNormals: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theBuilder: BRep_Builder, + theWithTriangles: Optional[bool] = True, + theWithNormals: Optional[bool] = False, + ) -> None: ... def AddGeometry(self, S: TopoDS_Shape) -> None: ... def AddShapes(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... def Check(self, T: TopAbs_ShapeEnum, S: TopoDS_Shape) -> None: ... @@ -235,22 +352,51 @@ class BRepTools_ShapeSet(TopTools_ShapeSet): def IsWithNormals(self) -> bool: ... def IsWithTriangles(self) -> bool: ... @overload - def ReadGeometry(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def ReadGeometry( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload def ReadGeometry(self, T: TopAbs_ShapeEnum, IS: str, S: TopoDS_Shape) -> None: ... - def ReadPolygon3D(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def ReadPolygonOnTriangulation(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def ReadTriangulation(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def ReadPolygon3D( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def ReadPolygonOnTriangulation( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def ReadTriangulation( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def SetWithNormals(self, theWithNormals: bool) -> None: ... def SetWithTriangles(self, theWithTriangles: bool) -> None: ... @overload - def WriteGeometry(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def WriteGeometry( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... @overload def WriteGeometry(self, S: TopoDS_Shape) -> str: ... - def WritePolygon3D(self, Compact: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... - def WritePolygonOnTriangulation(self, Compact: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... - def WriteTriangulation(self, Compact: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... - + def WritePolygon3D( + self, + Compact: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... + def WritePolygonOnTriangulation( + self, + Compact: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... + def WriteTriangulation( + self, + Compact: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... @staticmethod def WriteToString(sh: TopoDS_Shape) -> str: ... @staticmethod @@ -264,7 +410,9 @@ class BRepTools_Substitution: def Clear(self) -> None: ... def Copy(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... def IsCopied(self, S: TopoDS_Shape) -> bool: ... - def Substitute(self, OldShape: TopoDS_Shape, NewShapes: TopTools_ListOfShape) -> None: ... + def Substitute( + self, OldShape: TopoDS_Shape, NewShapes: TopTools_ListOfShape + ) -> None: ... class BRepTools_WireExplorer: @overload @@ -281,65 +429,183 @@ class BRepTools_WireExplorer: @overload def Init(self, W: TopoDS_Wire, F: TopoDS_Face) -> None: ... @overload - def Init(self, W: TopoDS_Wire, F: TopoDS_Face, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ... + def Init( + self, + W: TopoDS_Wire, + F: TopoDS_Face, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def Orientation(self) -> TopAbs_Orientation: ... class BRepTools_CopyModification(BRepTools_Modification): - def __init__(self, theCopyGeom: Optional[bool] = True, theCopyMesh: Optional[bool] = True) -> None: ... - def Continuity(self, theEdge: TopoDS_Edge, theFace1: TopoDS_Face, theFace2: TopoDS_Face, theNewEdge: TopoDS_Edge, theNewFace1: TopoDS_Face, theNewFace2: TopoDS_Face) -> GeomAbs_Shape: ... - def NewCurve(self, theEdge: TopoDS_Edge, theCurve: Geom_Curve, theLoc: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face, theNewEdge: TopoDS_Edge, theNewFace: TopoDS_Face, theCurve: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, theVertex: TopoDS_Vertex, theEdge: TopoDS_Edge) -> Tuple[bool, float, float]: ... - def NewPoint(self, theVertex: TopoDS_Vertex, thePnt: gp_Pnt) -> Tuple[bool, float]: ... + def __init__( + self, theCopyGeom: Optional[bool] = True, theCopyMesh: Optional[bool] = True + ) -> None: ... + def Continuity( + self, + theEdge: TopoDS_Edge, + theFace1: TopoDS_Face, + theFace2: TopoDS_Face, + theNewEdge: TopoDS_Edge, + theNewFace1: TopoDS_Face, + theNewFace2: TopoDS_Face, + ) -> GeomAbs_Shape: ... + def NewCurve( + self, theEdge: TopoDS_Edge, theCurve: Geom_Curve, theLoc: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + theEdge: TopoDS_Edge, + theFace: TopoDS_Face, + theNewEdge: TopoDS_Edge, + theNewFace: TopoDS_Face, + theCurve: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, theVertex: TopoDS_Vertex, theEdge: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... + def NewPoint( + self, theVertex: TopoDS_Vertex, thePnt: gp_Pnt + ) -> Tuple[bool, float]: ... def NewPolygon(self, theEdge: TopoDS_Edge, thePoly: Poly_Polygon3D) -> bool: ... - def NewPolygonOnTriangulation(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face, thePoly: Poly_PolygonOnTriangulation) -> bool: ... - def NewSurface(self, theFace: TopoDS_Face, theSurf: Geom_Surface, theLoc: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... - def NewTriangulation(self, theFace: TopoDS_Face, theTri: Poly_Triangulation) -> bool: ... + def NewPolygonOnTriangulation( + self, + theEdge: TopoDS_Edge, + theFace: TopoDS_Face, + thePoly: Poly_PolygonOnTriangulation, + ) -> bool: ... + def NewSurface( + self, theFace: TopoDS_Face, theSurf: Geom_Surface, theLoc: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... + def NewTriangulation( + self, theFace: TopoDS_Face, theTri: Poly_Triangulation + ) -> bool: ... class BRepTools_GTrsfModification(BRepTools_Modification): def __init__(self, T: gp_GTrsf) -> None: ... - def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ... + def Continuity( + self, + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + NewE: TopoDS_Edge, + NewF1: TopoDS_Face, + NewF2: TopoDS_Face, + ) -> GeomAbs_Shape: ... def GTrsf(self) -> gp_GTrsf: ... - def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def NewCurve( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + NewE: TopoDS_Edge, + NewF: TopoDS_Face, + C: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ... def NewPolygon(self, theEdge: TopoDS_Edge, thePoly: Poly_Polygon3D) -> bool: ... - def NewPolygonOnTriangulation(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face, thePoly: Poly_PolygonOnTriangulation) -> bool: ... - def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... - def NewTriangulation(self, theFace: TopoDS_Face, theTri: Poly_Triangulation) -> bool: ... + def NewPolygonOnTriangulation( + self, + theEdge: TopoDS_Edge, + theFace: TopoDS_Face, + thePoly: Poly_PolygonOnTriangulation, + ) -> bool: ... + def NewSurface( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... + def NewTriangulation( + self, theFace: TopoDS_Face, theTri: Poly_Triangulation + ) -> bool: ... class BRepTools_TrsfModification(BRepTools_Modification): def __init__(self, T: gp_Trsf) -> None: ... - def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ... + def Continuity( + self, + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + NewE: TopoDS_Edge, + NewF1: TopoDS_Face, + NewF2: TopoDS_Face, + ) -> GeomAbs_Shape: ... def GetIsCopyMesh(self) -> bool: ... def SetIsCopyMesh(self, value: bool) -> None: ... - def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def NewCurve( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + NewE: TopoDS_Edge, + NewF: TopoDS_Face, + C: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ... def NewPolygon(self, E: TopoDS_Edge, P: Poly_Polygon3D) -> bool: ... - def NewPolygonOnTriangulation(self, E: TopoDS_Edge, F: TopoDS_Face, P: Poly_PolygonOnTriangulation) -> bool: ... - def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... + def NewPolygonOnTriangulation( + self, E: TopoDS_Edge, F: TopoDS_Face, P: Poly_PolygonOnTriangulation + ) -> bool: ... + def NewSurface( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... def NewTriangulation(self, F: TopoDS_Face, T: Poly_Triangulation) -> bool: ... def Trsf(self) -> gp_Trsf: ... class BRepTools_NurbsConvertModification(BRepTools_CopyModification): def __init__(self) -> None: ... - def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ... + def Continuity( + self, + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + NewE: TopoDS_Edge, + NewF1: TopoDS_Face, + NewF2: TopoDS_Face, + ) -> GeomAbs_Shape: ... def GetUpdatedEdges(self) -> TopTools_ListOfShape: ... - def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def NewCurve( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + NewE: TopoDS_Edge, + NewF: TopoDS_Face, + C: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ... def NewPolygon(self, theEdge: TopoDS_Edge, thePoly: Poly_Polygon3D) -> bool: ... - def NewPolygonOnTriangulation(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face, thePoly: Poly_PolygonOnTriangulation) -> bool: ... - def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... - def NewTriangulation(self, theFace: TopoDS_Face, theTri: Poly_Triangulation) -> bool: ... + def NewPolygonOnTriangulation( + self, + theEdge: TopoDS_Edge, + theFace: TopoDS_Face, + thePoly: Poly_PolygonOnTriangulation, + ) -> bool: ... + def NewSurface( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... + def NewTriangulation( + self, theFace: TopoDS_Face, theTri: Poly_Triangulation + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BRepTopAdaptor.pyi b/src/SWIG_files/wrapper/BRepTopAdaptor.pyi index 3ad4ea2ea..3bb963aae 100644 --- a/src/SWIG_files/wrapper/BRepTopAdaptor.pyi +++ b/src/SWIG_files/wrapper/BRepTopAdaptor.pyi @@ -17,9 +17,13 @@ class BRepTopAdaptor_FClass2d: def __init__(self, F: TopoDS_Face, Tol: float) -> None: ... def Copy(self, Other: BRepTopAdaptor_FClass2d) -> BRepTopAdaptor_FClass2d: ... def Destroy(self) -> None: ... - def Perform(self, Puv: gp_Pnt2d, RecadreOnPeriodic: Optional[bool] = True) -> TopAbs_State: ... + def Perform( + self, Puv: gp_Pnt2d, RecadreOnPeriodic: Optional[bool] = True + ) -> TopAbs_State: ... def PerformInfinitePoint(self) -> TopAbs_State: ... - def TestOnRestriction(self, Puv: gp_Pnt2d, Tol: float, RecadreOnPeriodic: Optional[bool] = True) -> TopAbs_State: ... + def TestOnRestriction( + self, Puv: gp_Pnt2d, Tol: float, RecadreOnPeriodic: Optional[bool] = True + ) -> TopAbs_State: ... class BRepTopAdaptor_HVertex(Adaptor3d_HVertex): def __init__(self, Vtx: TopoDS_Vertex, Curve: BRepAdaptor_Curve2d) -> None: ... @@ -52,7 +56,9 @@ class BRepTopAdaptor_TopolTool(Adaptor3d_TopolTool): def __init__(self) -> None: ... @overload def __init__(self, Surface: Adaptor3d_Surface) -> None: ... - def Classify(self, P2d: gp_Pnt2d, Tol: float, RecadreOnPeriodic: Optional[bool] = True) -> TopAbs_State: ... + def Classify( + self, P2d: gp_Pnt2d, Tol: float, RecadreOnPeriodic: Optional[bool] = True + ) -> TopAbs_State: ... def ComputeSamplePoints(self) -> None: ... def Destroy(self) -> None: ... def DomainIsInfinite(self) -> bool: ... @@ -66,7 +72,9 @@ class BRepTopAdaptor_TopolTool(Adaptor3d_TopolTool): def Initialize(self, S: Adaptor3d_Surface) -> None: ... @overload def Initialize(self, Curve: Adaptor2d_Curve2d) -> None: ... - def IsThePointOn(self, P2d: gp_Pnt2d, Tol: float, RecadreOnPeriodic: Optional[bool] = True) -> bool: ... + def IsThePointOn( + self, P2d: gp_Pnt2d, Tol: float, RecadreOnPeriodic: Optional[bool] = True + ) -> bool: ... def More(self) -> bool: ... def MoreVertex(self) -> bool: ... def NbSamples(self) -> int: ... @@ -90,4 +98,3 @@ class BRepTopAdaptor_TopolTool(Adaptor3d_TopolTool): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BSplCLib.pyi b/src/SWIG_files/wrapper/BSplCLib.pyi index 7605875cc..20108e82e 100644 --- a/src/SWIG_files/wrapper/BSplCLib.pyi +++ b/src/SWIG_files/wrapper/BSplCLib.pyi @@ -9,7 +9,6 @@ from OCC.Core.TColgp import * from OCC.Core.gp import * from OCC.Core.GeomAbs import * - class BSplCLib_KnotDistribution(IntEnum): BSplCLib_NonUniform: int = ... BSplCLib_Uniform: int = ... @@ -28,311 +27,1083 @@ BSplCLib_QuasiConstant = BSplCLib_MultDistribution.BSplCLib_QuasiConstant class bsplclib: @staticmethod - def AntiBoorScheme(U: float, Degree: int, Dimension: int, Depth: int, Length: int, Tolerance: float) -> Tuple[bool, float, float]: ... + def AntiBoorScheme( + U: float, Degree: int, Dimension: int, Depth: int, Length: int, Tolerance: float + ) -> Tuple[bool, float, float]: ... @staticmethod def Bohm(U: float, Degree: int, N: int, Dimension: int) -> Tuple[float, float]: ... @staticmethod def BoorIndex(Index: int, Length: int, Depth: int) -> int: ... @staticmethod - def BoorScheme(U: float, Degree: int, Dimension: int, Depth: int, Length: int) -> Tuple[float, float]: ... - @staticmethod - def BuildBSpMatrix(Parameters: TColStd_Array1OfReal, OrderArray: TColStd_Array1OfInteger, FlatKnots: TColStd_Array1OfReal, Degree: int, Matrix: math_Matrix) -> Tuple[int, int, int]: ... - @staticmethod - def BuildBoor(Index: int, Length: int, Dimension: int, Poles: TColStd_Array1OfReal) -> float: ... - @overload - @staticmethod - def BuildCache(U: float, InverseOfSpanDomain: float, PeriodicFlag: bool, Degree: int, FlatKnots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, CachePoles: TColgp_Array1OfPnt, CacheWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def BuildCache(U: float, InverseOfSpanDomain: float, PeriodicFlag: bool, Degree: int, FlatKnots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, CachePoles: TColgp_Array1OfPnt2d, CacheWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def BuildCache(theParameter: float, theSpanDomain: float, thePeriodicFlag: bool, theDegree: int, theSpanIndex: int, theFlatKnots: TColStd_Array1OfReal, thePoles: TColgp_Array1OfPnt, theWeights: TColStd_Array1OfReal, theCacheArray: TColStd_Array2OfReal) -> None: ... - @overload - @staticmethod - def BuildCache(theParameter: float, theSpanDomain: float, thePeriodicFlag: bool, theDegree: int, theSpanIndex: int, theFlatKnots: TColStd_Array1OfReal, thePoles: TColgp_Array1OfPnt2d, theWeights: TColStd_Array1OfReal, theCacheArray: TColStd_Array2OfReal) -> None: ... - @overload - @staticmethod - def BuildEval(Degree: int, Index: int, Poles: TColStd_Array1OfReal, Weights: TColStd_Array1OfReal) -> float: ... - @overload - @staticmethod - def BuildEval(Degree: int, Index: int, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal) -> float: ... - @overload - @staticmethod - def BuildEval(Degree: int, Index: int, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal) -> float: ... - @staticmethod - def BuildKnots(Degree: int, Index: int, Periodic: bool, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> float: ... - @staticmethod - def BuildSchoenbergPoints(Degree: int, FlatKnots: TColStd_Array1OfReal, Parameters: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def CacheD0(U: float, Degree: int, CacheParameter: float, SpanLenght: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Point: gp_Pnt) -> None: ... - @overload - @staticmethod - def CacheD0(U: float, Degree: int, CacheParameter: float, SpanLenght: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Point: gp_Pnt2d) -> None: ... - @overload - @staticmethod - def CacheD1(U: float, Degree: int, CacheParameter: float, SpanLenght: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Point: gp_Pnt, Vec: gp_Vec) -> None: ... - @overload - @staticmethod - def CacheD1(U: float, Degree: int, CacheParameter: float, SpanLenght: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Point: gp_Pnt2d, Vec: gp_Vec2d) -> None: ... - @overload - @staticmethod - def CacheD2(U: float, Degree: int, CacheParameter: float, SpanLenght: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Point: gp_Pnt, Vec1: gp_Vec, Vec2: gp_Vec) -> None: ... - @overload - @staticmethod - def CacheD2(U: float, Degree: int, CacheParameter: float, SpanLenght: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Point: gp_Pnt2d, Vec1: gp_Vec2d, Vec2: gp_Vec2d) -> None: ... - @overload - @staticmethod - def CacheD3(U: float, Degree: int, CacheParameter: float, SpanLenght: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Point: gp_Pnt, Vec1: gp_Vec, Vec2: gp_Vec, Vec3: gp_Vec) -> None: ... - @overload - @staticmethod - def CacheD3(U: float, Degree: int, CacheParameter: float, SpanLenght: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Point: gp_Pnt2d, Vec1: gp_Vec2d, Vec2: gp_Vec2d, Vec3: gp_Vec2d) -> None: ... - @overload - @staticmethod - def CoefsD0(U: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Point: gp_Pnt) -> None: ... - @overload - @staticmethod - def CoefsD0(U: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Point: gp_Pnt2d) -> None: ... - @overload - @staticmethod - def CoefsD1(U: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Point: gp_Pnt, Vec: gp_Vec) -> None: ... - @overload - @staticmethod - def CoefsD1(U: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Point: gp_Pnt2d, Vec: gp_Vec2d) -> None: ... - @overload - @staticmethod - def CoefsD2(U: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Point: gp_Pnt, Vec1: gp_Vec, Vec2: gp_Vec) -> None: ... - @overload - @staticmethod - def CoefsD2(U: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Point: gp_Pnt2d, Vec1: gp_Vec2d, Vec2: gp_Vec2d) -> None: ... - @overload - @staticmethod - def CoefsD3(U: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Point: gp_Pnt, Vec1: gp_Vec, Vec2: gp_Vec, Vec3: gp_Vec) -> None: ... - @overload - @staticmethod - def CoefsD3(U: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Point: gp_Pnt2d, Vec1: gp_Vec2d, Vec2: gp_Vec2d, Vec3: gp_Vec2d) -> None: ... - @overload - @staticmethod - def D0(U: float, Index: int, Degree: int, Periodic: bool, Poles: TColStd_Array1OfReal, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> float: ... - @overload - @staticmethod - def D0(U: float, Index: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, P: gp_Pnt) -> None: ... - @overload - @staticmethod - def D0(U: float, UIndex: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, P: gp_Pnt2d) -> None: ... - @overload - @staticmethod - def D0(U: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, P: gp_Pnt) -> None: ... - @overload - @staticmethod - def D0(U: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, P: gp_Pnt2d) -> None: ... - @overload - @staticmethod - def D1(U: float, Index: int, Degree: int, Periodic: bool, Poles: TColStd_Array1OfReal, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> Tuple[float, float]: ... - @overload - @staticmethod - def D1(U: float, Index: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, P: gp_Pnt, V: gp_Vec) -> None: ... - @overload - @staticmethod - def D1(U: float, UIndex: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... - @overload - @staticmethod - def D1(U: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, P: gp_Pnt, V: gp_Vec) -> None: ... - @overload - @staticmethod - def D1(U: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... - @overload - @staticmethod - def D2(U: float, Index: int, Degree: int, Periodic: bool, Poles: TColStd_Array1OfReal, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> Tuple[float, float, float]: ... - @overload - @staticmethod - def D2(U: float, Index: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... - @overload - @staticmethod - def D2(U: float, UIndex: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - @overload - @staticmethod - def D2(U: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... - @overload - @staticmethod - def D2(U: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - @overload - @staticmethod - def D3(U: float, Index: int, Degree: int, Periodic: bool, Poles: TColStd_Array1OfReal, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> Tuple[float, float, float, float]: ... - @overload - @staticmethod - def D3(U: float, Index: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... - @overload - @staticmethod - def D3(U: float, UIndex: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... - @overload - @staticmethod - def D3(U: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... - @overload - @staticmethod - def D3(U: float, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... - @staticmethod - def Derivative(Degree: int, Dimension: int, Length: int, Order: int) -> Tuple[float, float]: ... + def BoorScheme( + U: float, Degree: int, Dimension: int, Depth: int, Length: int + ) -> Tuple[float, float]: ... + @staticmethod + def BuildBSpMatrix( + Parameters: TColStd_Array1OfReal, + OrderArray: TColStd_Array1OfInteger, + FlatKnots: TColStd_Array1OfReal, + Degree: int, + Matrix: math_Matrix, + ) -> Tuple[int, int, int]: ... + @staticmethod + def BuildBoor( + Index: int, Length: int, Dimension: int, Poles: TColStd_Array1OfReal + ) -> float: ... + @overload + @staticmethod + def BuildCache( + U: float, + InverseOfSpanDomain: float, + PeriodicFlag: bool, + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + CachePoles: TColgp_Array1OfPnt, + CacheWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def BuildCache( + U: float, + InverseOfSpanDomain: float, + PeriodicFlag: bool, + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + CachePoles: TColgp_Array1OfPnt2d, + CacheWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def BuildCache( + theParameter: float, + theSpanDomain: float, + thePeriodicFlag: bool, + theDegree: int, + theSpanIndex: int, + theFlatKnots: TColStd_Array1OfReal, + thePoles: TColgp_Array1OfPnt, + theWeights: TColStd_Array1OfReal, + theCacheArray: TColStd_Array2OfReal, + ) -> None: ... + @overload + @staticmethod + def BuildCache( + theParameter: float, + theSpanDomain: float, + thePeriodicFlag: bool, + theDegree: int, + theSpanIndex: int, + theFlatKnots: TColStd_Array1OfReal, + thePoles: TColgp_Array1OfPnt2d, + theWeights: TColStd_Array1OfReal, + theCacheArray: TColStd_Array2OfReal, + ) -> None: ... + @overload + @staticmethod + def BuildEval( + Degree: int, + Index: int, + Poles: TColStd_Array1OfReal, + Weights: TColStd_Array1OfReal, + ) -> float: ... + @overload + @staticmethod + def BuildEval( + Degree: int, + Index: int, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + ) -> float: ... + @overload + @staticmethod + def BuildEval( + Degree: int, + Index: int, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + ) -> float: ... + @staticmethod + def BuildKnots( + Degree: int, + Index: int, + Periodic: bool, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ) -> float: ... + @staticmethod + def BuildSchoenbergPoints( + Degree: int, FlatKnots: TColStd_Array1OfReal, Parameters: TColStd_Array1OfReal + ) -> None: ... + @overload + @staticmethod + def CacheD0( + U: float, + Degree: int, + CacheParameter: float, + SpanLenght: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt, + ) -> None: ... + @overload + @staticmethod + def CacheD0( + U: float, + Degree: int, + CacheParameter: float, + SpanLenght: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt2d, + ) -> None: ... + @overload + @staticmethod + def CacheD1( + U: float, + Degree: int, + CacheParameter: float, + SpanLenght: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt, + Vec: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def CacheD1( + U: float, + Degree: int, + CacheParameter: float, + SpanLenght: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt2d, + Vec: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def CacheD2( + U: float, + Degree: int, + CacheParameter: float, + SpanLenght: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt, + Vec1: gp_Vec, + Vec2: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def CacheD2( + U: float, + Degree: int, + CacheParameter: float, + SpanLenght: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt2d, + Vec1: gp_Vec2d, + Vec2: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def CacheD3( + U: float, + Degree: int, + CacheParameter: float, + SpanLenght: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt, + Vec1: gp_Vec, + Vec2: gp_Vec, + Vec3: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def CacheD3( + U: float, + Degree: int, + CacheParameter: float, + SpanLenght: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt2d, + Vec1: gp_Vec2d, + Vec2: gp_Vec2d, + Vec3: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def CoefsD0( + U: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt, + ) -> None: ... + @overload + @staticmethod + def CoefsD0( + U: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt2d, + ) -> None: ... + @overload + @staticmethod + def CoefsD1( + U: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt, + Vec: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def CoefsD1( + U: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt2d, + Vec: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def CoefsD2( + U: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt, + Vec1: gp_Vec, + Vec2: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def CoefsD2( + U: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt2d, + Vec1: gp_Vec2d, + Vec2: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def CoefsD3( + U: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt, + Vec1: gp_Vec, + Vec2: gp_Vec, + Vec3: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def CoefsD3( + U: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt2d, + Vec1: gp_Vec2d, + Vec2: gp_Vec2d, + Vec3: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def D0( + U: float, + Index: int, + Degree: int, + Periodic: bool, + Poles: TColStd_Array1OfReal, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ) -> float: ... + @overload + @staticmethod + def D0( + U: float, + Index: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + P: gp_Pnt, + ) -> None: ... + @overload + @staticmethod + def D0( + U: float, + UIndex: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + P: gp_Pnt2d, + ) -> None: ... + @overload + @staticmethod + def D0( + U: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, P: gp_Pnt + ) -> None: ... + @overload + @staticmethod + def D0( + U: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + P: gp_Pnt2d, + ) -> None: ... + @overload + @staticmethod + def D1( + U: float, + Index: int, + Degree: int, + Periodic: bool, + Poles: TColStd_Array1OfReal, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ) -> Tuple[float, float]: ... + @overload + @staticmethod + def D1( + U: float, + Index: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + P: gp_Pnt, + V: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D1( + U: float, + UIndex: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + P: gp_Pnt2d, + V: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def D1( + U: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + P: gp_Pnt, + V: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D1( + U: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + P: gp_Pnt2d, + V: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def D2( + U: float, + Index: int, + Degree: int, + Periodic: bool, + Poles: TColStd_Array1OfReal, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ) -> Tuple[float, float, float]: ... + @overload + @staticmethod + def D2( + U: float, + Index: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D2( + U: float, + UIndex: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def D2( + U: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D2( + U: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def D3( + U: float, + Index: int, + Degree: int, + Periodic: bool, + Poles: TColStd_Array1OfReal, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ) -> Tuple[float, float, float, float]: ... + @overload + @staticmethod + def D3( + U: float, + Index: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + V3: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D3( + U: float, + UIndex: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def D3( + U: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + V3: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D3( + U: float, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... + @staticmethod + def Derivative( + Degree: int, Dimension: int, Length: int, Order: int + ) -> Tuple[float, float]: ... @overload @staticmethod def Eval(U: float, Degree: int, Dimension: int) -> Tuple[float, float]: ... @overload @staticmethod - def Eval(U: float, PeriodicFlag: bool, DerivativeRequest: int, Degree: int, FlatKnots: TColStd_Array1OfReal, ArrayDimension: int) -> Tuple[int, float, float]: ... - @overload - @staticmethod - def Eval(U: float, PeriodicFlag: bool, DerivativeRequest: int, Degree: int, FlatKnots: TColStd_Array1OfReal, ArrayDimension: int) -> Tuple[int, float, float, float, float]: ... - @overload - @staticmethod - def Eval(U: float, PeriodicFlag: bool, HomogeneousFlag: bool, Degree: int, FlatKnots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Point: gp_Pnt) -> Tuple[int, float]: ... - @overload - @staticmethod - def Eval(U: float, PeriodicFlag: bool, HomogeneousFlag: bool, Degree: int, FlatKnots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Point: gp_Pnt2d) -> Tuple[int, float]: ... - @staticmethod - def EvalBsplineBasis(DerivativeOrder: int, Order: int, FlatKnots: TColStd_Array1OfReal, Parameter: float, BsplineBasis: math_Matrix, isPeriodic: Optional[bool] = False) -> Tuple[int, int]: ... - @staticmethod - def FactorBandedMatrix(Matrix: math_Matrix, UpperBandWidth: int, LowerBandWidth: int) -> Tuple[int, int]: ... + def Eval( + U: float, + PeriodicFlag: bool, + DerivativeRequest: int, + Degree: int, + FlatKnots: TColStd_Array1OfReal, + ArrayDimension: int, + ) -> Tuple[int, float, float]: ... + @overload + @staticmethod + def Eval( + U: float, + PeriodicFlag: bool, + DerivativeRequest: int, + Degree: int, + FlatKnots: TColStd_Array1OfReal, + ArrayDimension: int, + ) -> Tuple[int, float, float, float, float]: ... + @overload + @staticmethod + def Eval( + U: float, + PeriodicFlag: bool, + HomogeneousFlag: bool, + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt, + ) -> Tuple[int, float]: ... + @overload + @staticmethod + def Eval( + U: float, + PeriodicFlag: bool, + HomogeneousFlag: bool, + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Point: gp_Pnt2d, + ) -> Tuple[int, float]: ... + @staticmethod + def EvalBsplineBasis( + DerivativeOrder: int, + Order: int, + FlatKnots: TColStd_Array1OfReal, + Parameter: float, + BsplineBasis: math_Matrix, + isPeriodic: Optional[bool] = False, + ) -> Tuple[int, int]: ... + @staticmethod + def FactorBandedMatrix( + Matrix: math_Matrix, UpperBandWidth: int, LowerBandWidth: int + ) -> Tuple[int, int]: ... @staticmethod def FirstUKnotIndex(Degree: int, Mults: TColStd_Array1OfInteger) -> int: ... @staticmethod def FlatBezierKnots(Degree: int) -> float: ... @staticmethod - def FlatIndex(Degree: int, Index: int, Mults: TColStd_Array1OfInteger, Periodic: bool) -> int: ... - @overload - @staticmethod - def FunctionMultiply(Function: BSplCLib_EvaluatorFunction, BSplineDegree: int, BSplineFlatKnots: TColStd_Array1OfReal, PolesDimension: int, FlatKnots: TColStd_Array1OfReal, NewDegree: int) -> Tuple[float, float, int]: ... - @overload - @staticmethod - def FunctionMultiply(Function: BSplCLib_EvaluatorFunction, BSplineDegree: int, BSplineFlatKnots: TColStd_Array1OfReal, Poles: TColStd_Array1OfReal, FlatKnots: TColStd_Array1OfReal, NewDegree: int, NewPoles: TColStd_Array1OfReal) -> int: ... - @overload - @staticmethod - def FunctionMultiply(Function: BSplCLib_EvaluatorFunction, BSplineDegree: int, BSplineFlatKnots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt2d, FlatKnots: TColStd_Array1OfReal, NewDegree: int, NewPoles: TColgp_Array1OfPnt2d) -> int: ... - @overload - @staticmethod - def FunctionMultiply(Function: BSplCLib_EvaluatorFunction, BSplineDegree: int, BSplineFlatKnots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt, FlatKnots: TColStd_Array1OfReal, NewDegree: int, NewPoles: TColgp_Array1OfPnt) -> int: ... - @overload - @staticmethod - def FunctionReparameterise(Function: BSplCLib_EvaluatorFunction, BSplineDegree: int, BSplineFlatKnots: TColStd_Array1OfReal, PolesDimension: int, FlatKnots: TColStd_Array1OfReal, NewDegree: int) -> Tuple[float, float, int]: ... - @overload - @staticmethod - def FunctionReparameterise(Function: BSplCLib_EvaluatorFunction, BSplineDegree: int, BSplineFlatKnots: TColStd_Array1OfReal, Poles: TColStd_Array1OfReal, FlatKnots: TColStd_Array1OfReal, NewDegree: int, NewPoles: TColStd_Array1OfReal) -> int: ... - @overload - @staticmethod - def FunctionReparameterise(Function: BSplCLib_EvaluatorFunction, BSplineDegree: int, BSplineFlatKnots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt, FlatKnots: TColStd_Array1OfReal, NewDegree: int, NewPoles: TColgp_Array1OfPnt) -> int: ... - @overload - @staticmethod - def FunctionReparameterise(Function: BSplCLib_EvaluatorFunction, BSplineDegree: int, BSplineFlatKnots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt2d, FlatKnots: TColStd_Array1OfReal, NewDegree: int, NewPoles: TColgp_Array1OfPnt2d) -> int: ... - @staticmethod - def GetPole(Index: int, Length: int, Depth: int, Dimension: int, Pole: TColStd_Array1OfReal) -> Tuple[float, int]: ... + def FlatIndex( + Degree: int, Index: int, Mults: TColStd_Array1OfInteger, Periodic: bool + ) -> int: ... + @overload + @staticmethod + def FunctionMultiply( + Function: BSplCLib_EvaluatorFunction, + BSplineDegree: int, + BSplineFlatKnots: TColStd_Array1OfReal, + PolesDimension: int, + FlatKnots: TColStd_Array1OfReal, + NewDegree: int, + ) -> Tuple[float, float, int]: ... + @overload + @staticmethod + def FunctionMultiply( + Function: BSplCLib_EvaluatorFunction, + BSplineDegree: int, + BSplineFlatKnots: TColStd_Array1OfReal, + Poles: TColStd_Array1OfReal, + FlatKnots: TColStd_Array1OfReal, + NewDegree: int, + NewPoles: TColStd_Array1OfReal, + ) -> int: ... + @overload + @staticmethod + def FunctionMultiply( + Function: BSplCLib_EvaluatorFunction, + BSplineDegree: int, + BSplineFlatKnots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt2d, + FlatKnots: TColStd_Array1OfReal, + NewDegree: int, + NewPoles: TColgp_Array1OfPnt2d, + ) -> int: ... + @overload + @staticmethod + def FunctionMultiply( + Function: BSplCLib_EvaluatorFunction, + BSplineDegree: int, + BSplineFlatKnots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt, + FlatKnots: TColStd_Array1OfReal, + NewDegree: int, + NewPoles: TColgp_Array1OfPnt, + ) -> int: ... + @overload + @staticmethod + def FunctionReparameterise( + Function: BSplCLib_EvaluatorFunction, + BSplineDegree: int, + BSplineFlatKnots: TColStd_Array1OfReal, + PolesDimension: int, + FlatKnots: TColStd_Array1OfReal, + NewDegree: int, + ) -> Tuple[float, float, int]: ... + @overload + @staticmethod + def FunctionReparameterise( + Function: BSplCLib_EvaluatorFunction, + BSplineDegree: int, + BSplineFlatKnots: TColStd_Array1OfReal, + Poles: TColStd_Array1OfReal, + FlatKnots: TColStd_Array1OfReal, + NewDegree: int, + NewPoles: TColStd_Array1OfReal, + ) -> int: ... + @overload + @staticmethod + def FunctionReparameterise( + Function: BSplCLib_EvaluatorFunction, + BSplineDegree: int, + BSplineFlatKnots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt, + FlatKnots: TColStd_Array1OfReal, + NewDegree: int, + NewPoles: TColgp_Array1OfPnt, + ) -> int: ... + @overload + @staticmethod + def FunctionReparameterise( + Function: BSplCLib_EvaluatorFunction, + BSplineDegree: int, + BSplineFlatKnots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt2d, + FlatKnots: TColStd_Array1OfReal, + NewDegree: int, + NewPoles: TColgp_Array1OfPnt2d, + ) -> int: ... + @staticmethod + def GetPole( + Index: int, Length: int, Depth: int, Dimension: int, Pole: TColStd_Array1OfReal + ) -> Tuple[float, int]: ... @staticmethod def Hunt(theArray: TColStd_Array1OfReal, theX: float) -> int: ... @overload @staticmethod - def IncreaseDegree(Degree: int, NewDegree: int, Periodic: bool, Dimension: int, Poles: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColStd_Array1OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger) -> None: ... - @overload - @staticmethod - def IncreaseDegree(Degree: int, NewDegree: int, Periodic: bool, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt, NewWeights: TColStd_Array1OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger) -> None: ... - @overload - @staticmethod - def IncreaseDegree(Degree: int, NewDegree: int, Periodic: bool, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt2d, NewWeights: TColStd_Array1OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger) -> None: ... - @overload - @staticmethod - def IncreaseDegree(NewDegree: int, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, NewPoles: TColgp_Array1OfPnt, NewWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def IncreaseDegree(theNewDegree: int, thePoles: TColgp_Array1OfPnt2d, theWeights: TColStd_Array1OfReal, theNewPoles: TColgp_Array1OfPnt2d, theNewWeights: TColStd_Array1OfReal) -> None: ... - @staticmethod - def IncreaseDegreeCountKnots(Degree: int, NewDegree: int, Periodic: bool, Mults: TColStd_Array1OfInteger) -> int: ... - @overload - @staticmethod - def InsertKnot(UIndex: int, U: float, UMult: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt, NewWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def InsertKnot(UIndex: int, U: float, UMult: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt2d, NewWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def InsertKnots(Degree: int, Periodic: bool, Dimension: int, Poles: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, AddKnots: TColStd_Array1OfReal, AddMults: TColStd_Array1OfInteger, NewPoles: TColStd_Array1OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, Epsilon: float, Add: Optional[bool] = True) -> None: ... - @overload - @staticmethod - def InsertKnots(Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, AddKnots: TColStd_Array1OfReal, AddMults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt, NewWeights: TColStd_Array1OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, Epsilon: float, Add: Optional[bool] = True) -> None: ... - @overload - @staticmethod - def InsertKnots(Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, AddKnots: TColStd_Array1OfReal, AddMults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt2d, NewWeights: TColStd_Array1OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, Epsilon: float, Add: Optional[bool] = True) -> None: ... - @overload - @staticmethod - def Interpolate(Degree: int, FlatKnots: TColStd_Array1OfReal, Parameters: TColStd_Array1OfReal, ContactOrderArray: TColStd_Array1OfInteger, Poles: TColgp_Array1OfPnt) -> int: ... - @overload - @staticmethod - def Interpolate(Degree: int, FlatKnots: TColStd_Array1OfReal, Parameters: TColStd_Array1OfReal, ContactOrderArray: TColStd_Array1OfInteger, Poles: TColgp_Array1OfPnt2d) -> int: ... - @overload - @staticmethod - def Interpolate(Degree: int, FlatKnots: TColStd_Array1OfReal, Parameters: TColStd_Array1OfReal, ContactOrderArray: TColStd_Array1OfInteger, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal) -> int: ... - @overload - @staticmethod - def Interpolate(Degree: int, FlatKnots: TColStd_Array1OfReal, Parameters: TColStd_Array1OfReal, ContactOrderArray: TColStd_Array1OfInteger, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal) -> int: ... - @overload - @staticmethod - def Interpolate(Degree: int, FlatKnots: TColStd_Array1OfReal, Parameters: TColStd_Array1OfReal, ContactOrderArray: TColStd_Array1OfInteger, ArrayDimension: int) -> Tuple[float, int]: ... - @overload - @staticmethod - def Interpolate(Degree: int, FlatKnots: TColStd_Array1OfReal, Parameters: TColStd_Array1OfReal, ContactOrderArray: TColStd_Array1OfInteger, ArrayDimension: int) -> Tuple[float, float, int]: ... - @staticmethod - def Intervals(theKnots: TColStd_Array1OfReal, theMults: TColStd_Array1OfInteger, theDegree: int, isPeriodic: bool, theContinuity: int, theFirst: float, theLast: float, theTolerance: float, theIntervals: TColStd_Array1OfReal) -> int: ... - @staticmethod - def IsRational(Weights: TColStd_Array1OfReal, I1: int, I2: int, Epsilon: Optional[float] = 0.0) -> bool: ... - @staticmethod - def KnotAnalysis(Degree: int, Periodic: bool, CKnots: TColStd_Array1OfReal, CMults: TColStd_Array1OfInteger, KnotForm: GeomAbs_BSplKnotDistribution) -> int: ... - @staticmethod - def KnotForm(Knots: TColStd_Array1OfReal, FromK1: int, ToK2: int) -> BSplCLib_KnotDistribution: ... - @overload - @staticmethod - def KnotSequence(Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, KnotSeq: TColStd_Array1OfReal, Periodic: Optional[bool] = False) -> None: ... - @overload - @staticmethod - def KnotSequence(Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Degree: int, Periodic: bool, KnotSeq: TColStd_Array1OfReal) -> None: ... - @staticmethod - def KnotSequenceLength(Mults: TColStd_Array1OfInteger, Degree: int, Periodic: bool) -> int: ... - @staticmethod - def Knots(KnotSeq: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Periodic: Optional[bool] = False) -> None: ... - @staticmethod - def KnotsLength(KnotSeq: TColStd_Array1OfReal, Periodic: Optional[bool] = False) -> int: ... + def IncreaseDegree( + Degree: int, + NewDegree: int, + Periodic: bool, + Dimension: int, + Poles: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColStd_Array1OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + ) -> None: ... + @overload + @staticmethod + def IncreaseDegree( + Degree: int, + NewDegree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt, + NewWeights: TColStd_Array1OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + ) -> None: ... + @overload + @staticmethod + def IncreaseDegree( + Degree: int, + NewDegree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt2d, + NewWeights: TColStd_Array1OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + ) -> None: ... + @overload + @staticmethod + def IncreaseDegree( + NewDegree: int, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + NewPoles: TColgp_Array1OfPnt, + NewWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def IncreaseDegree( + theNewDegree: int, + thePoles: TColgp_Array1OfPnt2d, + theWeights: TColStd_Array1OfReal, + theNewPoles: TColgp_Array1OfPnt2d, + theNewWeights: TColStd_Array1OfReal, + ) -> None: ... + @staticmethod + def IncreaseDegreeCountKnots( + Degree: int, NewDegree: int, Periodic: bool, Mults: TColStd_Array1OfInteger + ) -> int: ... + @overload + @staticmethod + def InsertKnot( + UIndex: int, + U: float, + UMult: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt, + NewWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def InsertKnot( + UIndex: int, + U: float, + UMult: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt2d, + NewWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def InsertKnots( + Degree: int, + Periodic: bool, + Dimension: int, + Poles: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + AddKnots: TColStd_Array1OfReal, + AddMults: TColStd_Array1OfInteger, + NewPoles: TColStd_Array1OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + Epsilon: float, + Add: Optional[bool] = True, + ) -> None: ... + @overload + @staticmethod + def InsertKnots( + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + AddKnots: TColStd_Array1OfReal, + AddMults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt, + NewWeights: TColStd_Array1OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + Epsilon: float, + Add: Optional[bool] = True, + ) -> None: ... + @overload + @staticmethod + def InsertKnots( + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + AddKnots: TColStd_Array1OfReal, + AddMults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt2d, + NewWeights: TColStd_Array1OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + Epsilon: float, + Add: Optional[bool] = True, + ) -> None: ... + @overload + @staticmethod + def Interpolate( + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Parameters: TColStd_Array1OfReal, + ContactOrderArray: TColStd_Array1OfInteger, + Poles: TColgp_Array1OfPnt, + ) -> int: ... + @overload + @staticmethod + def Interpolate( + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Parameters: TColStd_Array1OfReal, + ContactOrderArray: TColStd_Array1OfInteger, + Poles: TColgp_Array1OfPnt2d, + ) -> int: ... + @overload + @staticmethod + def Interpolate( + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Parameters: TColStd_Array1OfReal, + ContactOrderArray: TColStd_Array1OfInteger, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + ) -> int: ... + @overload + @staticmethod + def Interpolate( + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Parameters: TColStd_Array1OfReal, + ContactOrderArray: TColStd_Array1OfInteger, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + ) -> int: ... + @overload + @staticmethod + def Interpolate( + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Parameters: TColStd_Array1OfReal, + ContactOrderArray: TColStd_Array1OfInteger, + ArrayDimension: int, + ) -> Tuple[float, int]: ... + @overload + @staticmethod + def Interpolate( + Degree: int, + FlatKnots: TColStd_Array1OfReal, + Parameters: TColStd_Array1OfReal, + ContactOrderArray: TColStd_Array1OfInteger, + ArrayDimension: int, + ) -> Tuple[float, float, int]: ... + @staticmethod + def Intervals( + theKnots: TColStd_Array1OfReal, + theMults: TColStd_Array1OfInteger, + theDegree: int, + isPeriodic: bool, + theContinuity: int, + theFirst: float, + theLast: float, + theTolerance: float, + theIntervals: TColStd_Array1OfReal, + ) -> int: ... + @staticmethod + def IsRational( + Weights: TColStd_Array1OfReal, I1: int, I2: int, Epsilon: Optional[float] = 0.0 + ) -> bool: ... + @staticmethod + def KnotAnalysis( + Degree: int, + Periodic: bool, + CKnots: TColStd_Array1OfReal, + CMults: TColStd_Array1OfInteger, + KnotForm: GeomAbs_BSplKnotDistribution, + ) -> int: ... + @staticmethod + def KnotForm( + Knots: TColStd_Array1OfReal, FromK1: int, ToK2: int + ) -> BSplCLib_KnotDistribution: ... + @overload + @staticmethod + def KnotSequence( + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + KnotSeq: TColStd_Array1OfReal, + Periodic: Optional[bool] = False, + ) -> None: ... + @overload + @staticmethod + def KnotSequence( + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Degree: int, + Periodic: bool, + KnotSeq: TColStd_Array1OfReal, + ) -> None: ... + @staticmethod + def KnotSequenceLength( + Mults: TColStd_Array1OfInteger, Degree: int, Periodic: bool + ) -> int: ... + @staticmethod + def Knots( + KnotSeq: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Periodic: Optional[bool] = False, + ) -> None: ... + @staticmethod + def KnotsLength( + KnotSeq: TColStd_Array1OfReal, Periodic: Optional[bool] = False + ) -> int: ... @staticmethod def LastUKnotIndex(Degree: int, Mults: TColStd_Array1OfInteger) -> int: ... @overload @staticmethod - def LocateParameter(Degree: int, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, U: float, IsPeriodic: bool, FromK1: int, ToK2: int) -> Tuple[int, float]: ... + def LocateParameter( + Degree: int, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + U: float, + IsPeriodic: bool, + FromK1: int, + ToK2: int, + ) -> Tuple[int, float]: ... @overload @staticmethod - def LocateParameter(Degree: int, Knots: TColStd_Array1OfReal, U: float, IsPeriodic: bool, FromK1: int, ToK2: int) -> Tuple[int, float]: ... + def LocateParameter( + Degree: int, + Knots: TColStd_Array1OfReal, + U: float, + IsPeriodic: bool, + FromK1: int, + ToK2: int, + ) -> Tuple[int, float]: ... @overload @staticmethod - def LocateParameter(Degree: int, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, U: float, Periodic: bool) -> Tuple[int, float]: ... + def LocateParameter( + Degree: int, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + U: float, + Periodic: bool, + ) -> Tuple[int, float]: ... @staticmethod def MaxDegree() -> int: ... @staticmethod def MaxKnotMult(Mults: TColStd_Array1OfInteger, K1: int, K2: int) -> int: ... @staticmethod - def MergeBSplineKnots(Tolerance: float, StartValue: float, EndValue: float, Degree1: int, Knots1: TColStd_Array1OfReal, Mults1: TColStd_Array1OfInteger, Degree2: int, Knots2: TColStd_Array1OfReal, Mults2: TColStd_Array1OfInteger, NewKnots: TColStd_HArray1OfReal, NewMults: TColStd_HArray1OfInteger) -> int: ... + def MergeBSplineKnots( + Tolerance: float, + StartValue: float, + EndValue: float, + Degree1: int, + Knots1: TColStd_Array1OfReal, + Mults1: TColStd_Array1OfInteger, + Degree2: int, + Knots2: TColStd_Array1OfReal, + Mults2: TColStd_Array1OfInteger, + NewKnots: TColStd_HArray1OfReal, + NewMults: TColStd_HArray1OfInteger, + ) -> int: ... @staticmethod def MinKnotMult(Mults: TColStd_Array1OfInteger, K1: int, K2: int) -> int: ... @overload @staticmethod - def MovePoint(U: float, Displ: gp_Vec2d, Index1: int, Index2: int, Degree: int, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, FlatKnots: TColStd_Array1OfReal, NewPoles: TColgp_Array1OfPnt2d) -> Tuple[int, int]: ... - @overload - @staticmethod - def MovePoint(U: float, Displ: gp_Vec, Index1: int, Index2: int, Degree: int, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, FlatKnots: TColStd_Array1OfReal, NewPoles: TColgp_Array1OfPnt) -> Tuple[int, int]: ... - @overload - @staticmethod - def MovePointAndTangent(U: float, ArrayDimension: int, Tolerance: float, Degree: int, StartingCondition: int, EndingCondition: int, Weights: TColStd_Array1OfReal, FlatKnots: TColStd_Array1OfReal) -> Tuple[float, float, float, float, int]: ... - @overload - @staticmethod - def MovePointAndTangent(U: float, Delta: gp_Vec, DeltaDerivative: gp_Vec, Tolerance: float, Degree: int, StartingCondition: int, EndingCondition: int, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, FlatKnots: TColStd_Array1OfReal, NewPoles: TColgp_Array1OfPnt) -> int: ... - @overload - @staticmethod - def MovePointAndTangent(U: float, Delta: gp_Vec2d, DeltaDerivative: gp_Vec2d, Tolerance: float, Degree: int, StartingCondition: int, EndingCondition: int, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, FlatKnots: TColStd_Array1OfReal, NewPoles: TColgp_Array1OfPnt2d) -> int: ... - @staticmethod - def MultForm(Mults: TColStd_Array1OfInteger, FromK1: int, ToK2: int) -> BSplCLib_MultDistribution: ... + def MovePoint( + U: float, + Displ: gp_Vec2d, + Index1: int, + Index2: int, + Degree: int, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + FlatKnots: TColStd_Array1OfReal, + NewPoles: TColgp_Array1OfPnt2d, + ) -> Tuple[int, int]: ... + @overload + @staticmethod + def MovePoint( + U: float, + Displ: gp_Vec, + Index1: int, + Index2: int, + Degree: int, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + FlatKnots: TColStd_Array1OfReal, + NewPoles: TColgp_Array1OfPnt, + ) -> Tuple[int, int]: ... + @overload + @staticmethod + def MovePointAndTangent( + U: float, + ArrayDimension: int, + Tolerance: float, + Degree: int, + StartingCondition: int, + EndingCondition: int, + Weights: TColStd_Array1OfReal, + FlatKnots: TColStd_Array1OfReal, + ) -> Tuple[float, float, float, float, int]: ... + @overload + @staticmethod + def MovePointAndTangent( + U: float, + Delta: gp_Vec, + DeltaDerivative: gp_Vec, + Tolerance: float, + Degree: int, + StartingCondition: int, + EndingCondition: int, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + FlatKnots: TColStd_Array1OfReal, + NewPoles: TColgp_Array1OfPnt, + ) -> int: ... + @overload + @staticmethod + def MovePointAndTangent( + U: float, + Delta: gp_Vec2d, + DeltaDerivative: gp_Vec2d, + Tolerance: float, + Degree: int, + StartingCondition: int, + EndingCondition: int, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + FlatKnots: TColStd_Array1OfReal, + NewPoles: TColgp_Array1OfPnt2d, + ) -> int: ... + @staticmethod + def MultForm( + Mults: TColStd_Array1OfInteger, FromK1: int, ToK2: int + ) -> BSplCLib_MultDistribution: ... @staticmethod def NbPoles(Degree: int, Periodic: bool, Mults: TColStd_Array1OfInteger) -> int: ... @staticmethod @@ -340,51 +1111,169 @@ class bsplclib: @staticmethod def NoWeights() -> TColStd_Array1OfReal: ... @staticmethod - def PoleIndex(Degree: int, Index: int, Periodic: bool, Mults: TColStd_Array1OfInteger) -> int: ... - @overload - @staticmethod - def PolesCoefficients(Poles: TColgp_Array1OfPnt2d, CachePoles: TColgp_Array1OfPnt2d) -> None: ... - @overload - @staticmethod - def PolesCoefficients(Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, CachePoles: TColgp_Array1OfPnt2d, CacheWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def PolesCoefficients(Poles: TColgp_Array1OfPnt, CachePoles: TColgp_Array1OfPnt) -> None: ... - @overload - @staticmethod - def PolesCoefficients(Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, CachePoles: TColgp_Array1OfPnt, CacheWeights: TColStd_Array1OfReal) -> None: ... - @staticmethod - def PrepareInsertKnots(Degree: int, Periodic: bool, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, AddKnots: TColStd_Array1OfReal, AddMults: TColStd_Array1OfInteger, Epsilon: float, Add: Optional[bool] = True) -> Tuple[bool, int, int]: ... - @staticmethod - def PrepareTrimming(Degree: int, Periodic: bool, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, U1: float, U2: float) -> Tuple[int, int]: ... - @staticmethod - def PrepareUnperiodize(Degree: int, Mults: TColStd_Array1OfInteger) -> Tuple[int, int]: ... - @overload - @staticmethod - def RaiseMultiplicity(KnotIndex: int, Mult: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt, NewWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def RaiseMultiplicity(KnotIndex: int, Mult: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt2d, NewWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def RemoveKnot(Index: int, Mult: int, Degree: int, Periodic: bool, Dimension: int, Poles: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColStd_Array1OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, Tolerance: float) -> bool: ... - @overload - @staticmethod - def RemoveKnot(Index: int, Mult: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt, NewWeights: TColStd_Array1OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, Tolerance: float) -> bool: ... - @overload - @staticmethod - def RemoveKnot(Index: int, Mult: int, Degree: int, Periodic: bool, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt2d, NewWeights: TColStd_Array1OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, Tolerance: float) -> bool: ... + def PoleIndex( + Degree: int, Index: int, Periodic: bool, Mults: TColStd_Array1OfInteger + ) -> int: ... + @overload + @staticmethod + def PolesCoefficients( + Poles: TColgp_Array1OfPnt2d, CachePoles: TColgp_Array1OfPnt2d + ) -> None: ... + @overload + @staticmethod + def PolesCoefficients( + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + CachePoles: TColgp_Array1OfPnt2d, + CacheWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def PolesCoefficients( + Poles: TColgp_Array1OfPnt, CachePoles: TColgp_Array1OfPnt + ) -> None: ... + @overload + @staticmethod + def PolesCoefficients( + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + CachePoles: TColgp_Array1OfPnt, + CacheWeights: TColStd_Array1OfReal, + ) -> None: ... + @staticmethod + def PrepareInsertKnots( + Degree: int, + Periodic: bool, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + AddKnots: TColStd_Array1OfReal, + AddMults: TColStd_Array1OfInteger, + Epsilon: float, + Add: Optional[bool] = True, + ) -> Tuple[bool, int, int]: ... + @staticmethod + def PrepareTrimming( + Degree: int, + Periodic: bool, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + U1: float, + U2: float, + ) -> Tuple[int, int]: ... + @staticmethod + def PrepareUnperiodize( + Degree: int, Mults: TColStd_Array1OfInteger + ) -> Tuple[int, int]: ... + @overload + @staticmethod + def RaiseMultiplicity( + KnotIndex: int, + Mult: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt, + NewWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def RaiseMultiplicity( + KnotIndex: int, + Mult: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt2d, + NewWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def RemoveKnot( + Index: int, + Mult: int, + Degree: int, + Periodic: bool, + Dimension: int, + Poles: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColStd_Array1OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + Tolerance: float, + ) -> bool: ... + @overload + @staticmethod + def RemoveKnot( + Index: int, + Mult: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt, + NewWeights: TColStd_Array1OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + Tolerance: float, + ) -> bool: ... + @overload + @staticmethod + def RemoveKnot( + Index: int, + Mult: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt2d, + NewWeights: TColStd_Array1OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + Tolerance: float, + ) -> bool: ... @staticmethod def Reparametrize(U1: float, U2: float, Knots: TColStd_Array1OfReal) -> None: ... @overload @staticmethod - def Resolution(ArrayDimension: int, NumPoles: int, Weights: TColStd_Array1OfReal, FlatKnots: TColStd_Array1OfReal, Degree: int, Tolerance3D: float) -> Tuple[float, float]: ... + def Resolution( + ArrayDimension: int, + NumPoles: int, + Weights: TColStd_Array1OfReal, + FlatKnots: TColStd_Array1OfReal, + Degree: int, + Tolerance3D: float, + ) -> Tuple[float, float]: ... @overload @staticmethod - def Resolution(Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, NumPoles: int, FlatKnots: TColStd_Array1OfReal, Degree: int, Tolerance3D: float) -> float: ... + def Resolution( + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + NumPoles: int, + FlatKnots: TColStd_Array1OfReal, + Degree: int, + Tolerance3D: float, + ) -> float: ... @overload @staticmethod - def Resolution(Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, NumPoles: int, FlatKnots: TColStd_Array1OfReal, Degree: int, Tolerance3D: float) -> float: ... + def Resolution( + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + NumPoles: int, + FlatKnots: TColStd_Array1OfReal, + Degree: int, + Tolerance3D: float, + ) -> float: ... @overload @staticmethod def Reverse(Knots: TColStd_Array1OfReal) -> None: ... @@ -402,80 +1291,248 @@ class bsplclib: def Reverse(Weights: TColStd_Array1OfReal, Last: int) -> None: ... @overload @staticmethod - def SolveBandedSystem(Matrix: math_Matrix, UpperBandWidth: int, LowerBandWidth: int, ArrayDimension: int) -> Tuple[int, float]: ... - @overload - @staticmethod - def SolveBandedSystem(Matrix: math_Matrix, UpperBandWidth: int, LowerBandWidth: int, Array: TColgp_Array1OfPnt2d) -> int: ... - @overload - @staticmethod - def SolveBandedSystem(Matrix: math_Matrix, UpperBandWidth: int, LowerBandWidth: int, Array: TColgp_Array1OfPnt) -> int: ... - @overload - @staticmethod - def SolveBandedSystem(Matrix: math_Matrix, UpperBandWidth: int, LowerBandWidth: int, HomogenousFlag: bool, ArrayDimension: int) -> Tuple[int, float, float]: ... - @overload - @staticmethod - def SolveBandedSystem(Matrix: math_Matrix, UpperBandWidth: int, LowerBandWidth: int, HomogenousFlag: bool, Array: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal) -> int: ... - @overload - @staticmethod - def SolveBandedSystem(Matrix: math_Matrix, UpperBandWidth: int, LowerBandWidth: int, HomogeneousFlag: bool, Array: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal) -> int: ... - @staticmethod - def TangExtendToConstraint(FlatKnots: TColStd_Array1OfReal, C1Coefficient: float, NumPoles: int, Dimension: int, Degree: int, ConstraintPoint: TColStd_Array1OfReal, Continuity: int, After: bool) -> Tuple[float, int, int, float, float]: ... - @overload - @staticmethod - def Trimming(Degree: int, Periodic: bool, Dimension: int, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Poles: TColStd_Array1OfReal, U1: float, U2: float, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, NewPoles: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def Trimming(Degree: int, Periodic: bool, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, U1: float, U2: float, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt, NewWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def Trimming(Degree: int, Periodic: bool, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, U1: float, U2: float, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, NewPoles: TColgp_Array1OfPnt2d, NewWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def Unperiodize(Degree: int, Dimension: int, Mults: TColStd_Array1OfInteger, Knots: TColStd_Array1OfReal, Poles: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, NewKnots: TColStd_Array1OfReal, NewPoles: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def Unperiodize(Degree: int, Mults: TColStd_Array1OfInteger, Knots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, NewKnots: TColStd_Array1OfReal, NewPoles: TColgp_Array1OfPnt, NewWeights: TColStd_Array1OfReal) -> None: ... - @overload - @staticmethod - def Unperiodize(Degree: int, Mults: TColStd_Array1OfInteger, Knots: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, NewKnots: TColStd_Array1OfReal, NewPoles: TColgp_Array1OfPnt2d, NewWeights: TColStd_Array1OfReal) -> None: ... + def SolveBandedSystem( + Matrix: math_Matrix, + UpperBandWidth: int, + LowerBandWidth: int, + ArrayDimension: int, + ) -> Tuple[int, float]: ... + @overload + @staticmethod + def SolveBandedSystem( + Matrix: math_Matrix, + UpperBandWidth: int, + LowerBandWidth: int, + Array: TColgp_Array1OfPnt2d, + ) -> int: ... + @overload + @staticmethod + def SolveBandedSystem( + Matrix: math_Matrix, + UpperBandWidth: int, + LowerBandWidth: int, + Array: TColgp_Array1OfPnt, + ) -> int: ... + @overload + @staticmethod + def SolveBandedSystem( + Matrix: math_Matrix, + UpperBandWidth: int, + LowerBandWidth: int, + HomogenousFlag: bool, + ArrayDimension: int, + ) -> Tuple[int, float, float]: ... + @overload + @staticmethod + def SolveBandedSystem( + Matrix: math_Matrix, + UpperBandWidth: int, + LowerBandWidth: int, + HomogenousFlag: bool, + Array: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + ) -> int: ... + @overload + @staticmethod + def SolveBandedSystem( + Matrix: math_Matrix, + UpperBandWidth: int, + LowerBandWidth: int, + HomogeneousFlag: bool, + Array: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + ) -> int: ... + @staticmethod + def TangExtendToConstraint( + FlatKnots: TColStd_Array1OfReal, + C1Coefficient: float, + NumPoles: int, + Dimension: int, + Degree: int, + ConstraintPoint: TColStd_Array1OfReal, + Continuity: int, + After: bool, + ) -> Tuple[float, int, int, float, float]: ... + @overload + @staticmethod + def Trimming( + Degree: int, + Periodic: bool, + Dimension: int, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Poles: TColStd_Array1OfReal, + U1: float, + U2: float, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + NewPoles: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def Trimming( + Degree: int, + Periodic: bool, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + U1: float, + U2: float, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt, + NewWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def Trimming( + Degree: int, + Periodic: bool, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + U1: float, + U2: float, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array1OfPnt2d, + NewWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def Unperiodize( + Degree: int, + Dimension: int, + Mults: TColStd_Array1OfInteger, + Knots: TColStd_Array1OfReal, + Poles: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + NewKnots: TColStd_Array1OfReal, + NewPoles: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def Unperiodize( + Degree: int, + Mults: TColStd_Array1OfInteger, + Knots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + NewKnots: TColStd_Array1OfReal, + NewPoles: TColgp_Array1OfPnt, + NewWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + @staticmethod + def Unperiodize( + Degree: int, + Mults: TColStd_Array1OfInteger, + Knots: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + NewKnots: TColStd_Array1OfReal, + NewPoles: TColgp_Array1OfPnt2d, + NewWeights: TColStd_Array1OfReal, + ) -> None: ... class BSplCLib_Cache(Standard_Transient): @overload - def __init__(self, theDegree: int, thePeriodic: bool, theFlatKnots: TColStd_Array1OfReal, thePoles2d: TColgp_Array1OfPnt2d, theWeights: Optional[TColStd_Array1OfReal] = None) -> None: ... - @overload - def __init__(self, theDegree: int, thePeriodic: bool, theFlatKnots: TColStd_Array1OfReal, thePoles: TColgp_Array1OfPnt, theWeights: Optional[TColStd_Array1OfReal] = None) -> None: ... - @overload - def BuildCache(self, theParameter: float, theFlatKnots: TColStd_Array1OfReal, thePoles2d: TColgp_Array1OfPnt2d, theWeights: TColStd_Array1OfReal) -> None: ... - @overload - def BuildCache(self, theParameter: float, theFlatKnots: TColStd_Array1OfReal, thePoles: TColgp_Array1OfPnt, theWeights: Optional[TColStd_Array1OfReal] = None) -> None: ... + def __init__( + self, + theDegree: int, + thePeriodic: bool, + theFlatKnots: TColStd_Array1OfReal, + thePoles2d: TColgp_Array1OfPnt2d, + theWeights: Optional[TColStd_Array1OfReal] = None, + ) -> None: ... + @overload + def __init__( + self, + theDegree: int, + thePeriodic: bool, + theFlatKnots: TColStd_Array1OfReal, + thePoles: TColgp_Array1OfPnt, + theWeights: Optional[TColStd_Array1OfReal] = None, + ) -> None: ... + @overload + def BuildCache( + self, + theParameter: float, + theFlatKnots: TColStd_Array1OfReal, + thePoles2d: TColgp_Array1OfPnt2d, + theWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + def BuildCache( + self, + theParameter: float, + theFlatKnots: TColStd_Array1OfReal, + thePoles: TColgp_Array1OfPnt, + theWeights: Optional[TColStd_Array1OfReal] = None, + ) -> None: ... @overload def D0(self, theParameter: float, thePoint: gp_Pnt2d) -> None: ... @overload def D0(self, theParameter: float, thePoint: gp_Pnt) -> None: ... @overload - def D1(self, theParameter: float, thePoint: gp_Pnt2d, theTangent: gp_Vec2d) -> None: ... + def D1( + self, theParameter: float, thePoint: gp_Pnt2d, theTangent: gp_Vec2d + ) -> None: ... @overload def D1(self, theParameter: float, thePoint: gp_Pnt, theTangent: gp_Vec) -> None: ... @overload - def D2(self, theParameter: float, thePoint: gp_Pnt2d, theTangent: gp_Vec2d, theCurvature: gp_Vec2d) -> None: ... - @overload - def D2(self, theParameter: float, thePoint: gp_Pnt, theTangent: gp_Vec, theCurvature: gp_Vec) -> None: ... - @overload - def D3(self, theParameter: float, thePoint: gp_Pnt2d, theTangent: gp_Vec2d, theCurvature: gp_Vec2d, theTorsion: gp_Vec2d) -> None: ... - @overload - def D3(self, theParameter: float, thePoint: gp_Pnt, theTangent: gp_Vec, theCurvature: gp_Vec, theTorsion: gp_Vec) -> None: ... + def D2( + self, + theParameter: float, + thePoint: gp_Pnt2d, + theTangent: gp_Vec2d, + theCurvature: gp_Vec2d, + ) -> None: ... + @overload + def D2( + self, + theParameter: float, + thePoint: gp_Pnt, + theTangent: gp_Vec, + theCurvature: gp_Vec, + ) -> None: ... + @overload + def D3( + self, + theParameter: float, + thePoint: gp_Pnt2d, + theTangent: gp_Vec2d, + theCurvature: gp_Vec2d, + theTorsion: gp_Vec2d, + ) -> None: ... + @overload + def D3( + self, + theParameter: float, + thePoint: gp_Pnt, + theTangent: gp_Vec, + theCurvature: gp_Vec, + theTorsion: gp_Vec, + ) -> None: ... def IsCacheValid(self, theParameter: float) -> bool: ... class BSplCLib_CacheParams: - def __init__(self, theDegree: int, thePeriodic: bool, theFlatKnots: TColStd_Array1OfReal) -> None: ... + def __init__( + self, theDegree: int, thePeriodic: bool, theFlatKnots: TColStd_Array1OfReal + ) -> None: ... def IsCacheValid(self, theParameter: float) -> bool: ... def LocateParameter(self, theFlatKnots: TColStd_Array1OfReal) -> float: ... def PeriodicNormalization(self, theParameter: float) -> float: ... class BSplCLib_EvaluatorFunction: - def Evaluate(self, theDerivativeRequest: int, theStartEnd: float, theParameter: float) -> Tuple[float, int]: ... + def Evaluate( + self, theDerivativeRequest: int, theStartEnd: float, theParameter: float + ) -> Tuple[float, int]: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BSplSLib.pyi b/src/SWIG_files/wrapper/BSplSLib.pyi index b9bb1041f..3ee55acb2 100644 --- a/src/SWIG_files/wrapper/BSplSLib.pyi +++ b/src/SWIG_files/wrapper/BSplSLib.pyi @@ -7,78 +7,465 @@ from OCC.Core.TColStd import * from OCC.Core.TColgp import * from OCC.Core.gp import * - class bsplslib: @overload @staticmethod - def BuildCache(U: float, V: float, USpanDomain: float, VSpanDomain: float, UPeriodicFlag: bool, VPeriodicFlag: bool, UDegree: int, VDegree: int, UIndex: int, VIndex: int, UFlatKnots: TColStd_Array1OfReal, VFlatKnots: TColStd_Array1OfReal, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, CachePoles: TColgp_Array2OfPnt, CacheWeights: TColStd_Array2OfReal) -> None: ... + def BuildCache( + U: float, + V: float, + USpanDomain: float, + VSpanDomain: float, + UPeriodicFlag: bool, + VPeriodicFlag: bool, + UDegree: int, + VDegree: int, + UIndex: int, + VIndex: int, + UFlatKnots: TColStd_Array1OfReal, + VFlatKnots: TColStd_Array1OfReal, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + CachePoles: TColgp_Array2OfPnt, + CacheWeights: TColStd_Array2OfReal, + ) -> None: ... @overload @staticmethod - def BuildCache(theU: float, theV: float, theUSpanDomain: float, theVSpanDomain: float, theUPeriodic: bool, theVPeriodic: bool, theUDegree: int, theVDegree: int, theUIndex: int, theVIndex: int, theUFlatKnots: TColStd_Array1OfReal, theVFlatKnots: TColStd_Array1OfReal, thePoles: TColgp_Array2OfPnt, theWeights: TColStd_Array2OfReal, theCacheArray: TColStd_Array2OfReal) -> None: ... - @staticmethod - def CacheD0(U: float, V: float, UDegree: int, VDegree: int, UCacheParameter: float, VCacheParameter: float, USpanLenght: float, VSpanLength: float, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Point: gp_Pnt) -> None: ... - @staticmethod - def CacheD1(U: float, V: float, UDegree: int, VDegree: int, UCacheParameter: float, VCacheParameter: float, USpanLenght: float, VSpanLength: float, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Point: gp_Pnt, VecU: gp_Vec, VecV: gp_Vec) -> None: ... - @staticmethod - def CacheD2(U: float, V: float, UDegree: int, VDegree: int, UCacheParameter: float, VCacheParameter: float, USpanLenght: float, VSpanLength: float, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Point: gp_Pnt, VecU: gp_Vec, VecV: gp_Vec, VecUU: gp_Vec, VecUV: gp_Vec, VecVV: gp_Vec) -> None: ... - @staticmethod - def CoefsD0(U: float, V: float, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Point: gp_Pnt) -> None: ... - @staticmethod - def CoefsD1(U: float, V: float, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Point: gp_Pnt, VecU: gp_Vec, VecV: gp_Vec) -> None: ... - @staticmethod - def CoefsD2(U: float, V: float, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Point: gp_Pnt, VecU: gp_Vec, VecV: gp_Vec, VecUU: gp_Vec, VecUV: gp_Vec, VecVV: gp_Vec) -> None: ... - @staticmethod - def D0(U: float, V: float, UIndex: int, VIndex: int, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, UDegree: int, VDegree: int, URat: bool, VRat: bool, UPer: bool, VPer: bool, P: gp_Pnt) -> None: ... - @staticmethod - def D1(U: float, V: float, UIndex: int, VIndex: int, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, Degree: int, VDegree: int, URat: bool, VRat: bool, UPer: bool, VPer: bool, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @staticmethod - def D2(U: float, V: float, UIndex: int, VIndex: int, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, UDegree: int, VDegree: int, URat: bool, VRat: bool, UPer: bool, VPer: bool, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec) -> None: ... - @staticmethod - def D3(U: float, V: float, UIndex: int, VIndex: int, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, UDegree: int, VDegree: int, URat: bool, VRat: bool, UPer: bool, VPer: bool, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec) -> None: ... - @staticmethod - def DN(U: float, V: float, Nu: int, Nv: int, UIndex: int, VIndex: int, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, UDegree: int, VDegree: int, URat: bool, VRat: bool, UPer: bool, VPer: bool, Vn: gp_Vec) -> None: ... - @staticmethod - def FunctionMultiply(Function: BSplSLib_EvaluatorFunction, UBSplineDegree: int, VBSplineDegree: int, UBSplineKnots: TColStd_Array1OfReal, VBSplineKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UFlatKnots: TColStd_Array1OfReal, VFlatKnots: TColStd_Array1OfReal, UNewDegree: int, VNewDegree: int, NewNumerator: TColgp_Array2OfPnt, NewDenominator: TColStd_Array2OfReal) -> int: ... + def BuildCache( + theU: float, + theV: float, + theUSpanDomain: float, + theVSpanDomain: float, + theUPeriodic: bool, + theVPeriodic: bool, + theUDegree: int, + theVDegree: int, + theUIndex: int, + theVIndex: int, + theUFlatKnots: TColStd_Array1OfReal, + theVFlatKnots: TColStd_Array1OfReal, + thePoles: TColgp_Array2OfPnt, + theWeights: TColStd_Array2OfReal, + theCacheArray: TColStd_Array2OfReal, + ) -> None: ... + @staticmethod + def CacheD0( + U: float, + V: float, + UDegree: int, + VDegree: int, + UCacheParameter: float, + VCacheParameter: float, + USpanLenght: float, + VSpanLength: float, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Point: gp_Pnt, + ) -> None: ... + @staticmethod + def CacheD1( + U: float, + V: float, + UDegree: int, + VDegree: int, + UCacheParameter: float, + VCacheParameter: float, + USpanLenght: float, + VSpanLength: float, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Point: gp_Pnt, + VecU: gp_Vec, + VecV: gp_Vec, + ) -> None: ... + @staticmethod + def CacheD2( + U: float, + V: float, + UDegree: int, + VDegree: int, + UCacheParameter: float, + VCacheParameter: float, + USpanLenght: float, + VSpanLength: float, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Point: gp_Pnt, + VecU: gp_Vec, + VecV: gp_Vec, + VecUU: gp_Vec, + VecUV: gp_Vec, + VecVV: gp_Vec, + ) -> None: ... + @staticmethod + def CoefsD0( + U: float, + V: float, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Point: gp_Pnt, + ) -> None: ... + @staticmethod + def CoefsD1( + U: float, + V: float, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Point: gp_Pnt, + VecU: gp_Vec, + VecV: gp_Vec, + ) -> None: ... + @staticmethod + def CoefsD2( + U: float, + V: float, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Point: gp_Pnt, + VecU: gp_Vec, + VecV: gp_Vec, + VecUU: gp_Vec, + VecUV: gp_Vec, + VecVV: gp_Vec, + ) -> None: ... + @staticmethod + def D0( + U: float, + V: float, + UIndex: int, + VIndex: int, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + UDegree: int, + VDegree: int, + URat: bool, + VRat: bool, + UPer: bool, + VPer: bool, + P: gp_Pnt, + ) -> None: ... + @staticmethod + def D1( + U: float, + V: float, + UIndex: int, + VIndex: int, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + Degree: int, + VDegree: int, + URat: bool, + VRat: bool, + UPer: bool, + VPer: bool, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + ) -> None: ... + @staticmethod + def D2( + U: float, + V: float, + UIndex: int, + VIndex: int, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + UDegree: int, + VDegree: int, + URat: bool, + VRat: bool, + UPer: bool, + VPer: bool, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + ) -> None: ... + @staticmethod + def D3( + U: float, + V: float, + UIndex: int, + VIndex: int, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + UDegree: int, + VDegree: int, + URat: bool, + VRat: bool, + UPer: bool, + VPer: bool, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + Vuuu: gp_Vec, + Vvvv: gp_Vec, + Vuuv: gp_Vec, + Vuvv: gp_Vec, + ) -> None: ... + @staticmethod + def DN( + U: float, + V: float, + Nu: int, + Nv: int, + UIndex: int, + VIndex: int, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + UDegree: int, + VDegree: int, + URat: bool, + VRat: bool, + UPer: bool, + VPer: bool, + Vn: gp_Vec, + ) -> None: ... + @staticmethod + def FunctionMultiply( + Function: BSplSLib_EvaluatorFunction, + UBSplineDegree: int, + VBSplineDegree: int, + UBSplineKnots: TColStd_Array1OfReal, + VBSplineKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UFlatKnots: TColStd_Array1OfReal, + VFlatKnots: TColStd_Array1OfReal, + UNewDegree: int, + VNewDegree: int, + NewNumerator: TColgp_Array2OfPnt, + NewDenominator: TColStd_Array2OfReal, + ) -> int: ... @overload @staticmethod - def GetPoles(FP: TColStd_Array1OfReal, Poles: TColgp_Array2OfPnt, UDirection: bool) -> None: ... + def GetPoles( + FP: TColStd_Array1OfReal, Poles: TColgp_Array2OfPnt, UDirection: bool + ) -> None: ... @overload @staticmethod - def GetPoles(FP: TColStd_Array1OfReal, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UDirection: bool) -> None: ... - @staticmethod - def HomogeneousD0(U: float, V: float, UIndex: int, VIndex: int, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, UDegree: int, VDegree: int, URat: bool, VRat: bool, UPer: bool, VPer: bool, P: gp_Pnt) -> float: ... - @staticmethod - def HomogeneousD1(U: float, V: float, UIndex: int, VIndex: int, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, UDegree: int, VDegree: int, URat: bool, VRat: bool, UPer: bool, VPer: bool, N: gp_Pnt, Nu: gp_Vec, Nv: gp_Vec) -> Tuple[float, float, float]: ... - @staticmethod - def IncreaseDegree(UDirection: bool, Degree: int, NewDegree: int, Periodic: bool, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array2OfPnt, NewWeights: TColStd_Array2OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger) -> None: ... - @staticmethod - def InsertKnots(UDirection: bool, Degree: int, Periodic: bool, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, AddKnots: TColStd_Array1OfReal, AddMults: TColStd_Array1OfInteger, NewPoles: TColgp_Array2OfPnt, NewWeights: TColStd_Array2OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, Epsilon: float, Add: Optional[bool] = True) -> None: ... + def GetPoles( + FP: TColStd_Array1OfReal, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UDirection: bool, + ) -> None: ... + @staticmethod + def HomogeneousD0( + U: float, + V: float, + UIndex: int, + VIndex: int, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + UDegree: int, + VDegree: int, + URat: bool, + VRat: bool, + UPer: bool, + VPer: bool, + P: gp_Pnt, + ) -> float: ... + @staticmethod + def HomogeneousD1( + U: float, + V: float, + UIndex: int, + VIndex: int, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + UDegree: int, + VDegree: int, + URat: bool, + VRat: bool, + UPer: bool, + VPer: bool, + N: gp_Pnt, + Nu: gp_Vec, + Nv: gp_Vec, + ) -> Tuple[float, float, float]: ... + @staticmethod + def IncreaseDegree( + UDirection: bool, + Degree: int, + NewDegree: int, + Periodic: bool, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array2OfPnt, + NewWeights: TColStd_Array2OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + ) -> None: ... + @staticmethod + def InsertKnots( + UDirection: bool, + Degree: int, + Periodic: bool, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + AddKnots: TColStd_Array1OfReal, + AddMults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array2OfPnt, + NewWeights: TColStd_Array2OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + Epsilon: float, + Add: Optional[bool] = True, + ) -> None: ... @overload @staticmethod - def Interpolate(UDegree: int, VDegree: int, UFlatKnots: TColStd_Array1OfReal, VFlatKnots: TColStd_Array1OfReal, UParameters: TColStd_Array1OfReal, VParameters: TColStd_Array1OfReal, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal) -> int: ... + def Interpolate( + UDegree: int, + VDegree: int, + UFlatKnots: TColStd_Array1OfReal, + VFlatKnots: TColStd_Array1OfReal, + UParameters: TColStd_Array1OfReal, + VParameters: TColStd_Array1OfReal, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + ) -> int: ... @overload @staticmethod - def Interpolate(UDegree: int, VDegree: int, UFlatKnots: TColStd_Array1OfReal, VFlatKnots: TColStd_Array1OfReal, UParameters: TColStd_Array1OfReal, VParameters: TColStd_Array1OfReal, Poles: TColgp_Array2OfPnt) -> int: ... - @staticmethod - def IsRational(Weights: TColStd_Array2OfReal, I1: int, I2: int, J1: int, J2: int, Epsilon: Optional[float] = 0.0) -> bool: ... - @staticmethod - def Iso(Param: float, IsU: bool, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Degree: int, Periodic: bool, CPoles: TColgp_Array1OfPnt, CWeights: TColStd_Array1OfReal) -> None: ... - @staticmethod - def MovePoint(U: float, V: float, Displ: gp_Vec, UIndex1: int, UIndex2: int, VIndex1: int, VIndex2: int, UDegree: int, VDegree: int, Rational: bool, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UFlatKnots: TColStd_Array1OfReal, VFlatKnots: TColStd_Array1OfReal, NewPoles: TColgp_Array2OfPnt) -> Tuple[int, int, int, int]: ... + def Interpolate( + UDegree: int, + VDegree: int, + UFlatKnots: TColStd_Array1OfReal, + VFlatKnots: TColStd_Array1OfReal, + UParameters: TColStd_Array1OfReal, + VParameters: TColStd_Array1OfReal, + Poles: TColgp_Array2OfPnt, + ) -> int: ... + @staticmethod + def IsRational( + Weights: TColStd_Array2OfReal, + I1: int, + I2: int, + J1: int, + J2: int, + Epsilon: Optional[float] = 0.0, + ) -> bool: ... + @staticmethod + def Iso( + Param: float, + IsU: bool, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Degree: int, + Periodic: bool, + CPoles: TColgp_Array1OfPnt, + CWeights: TColStd_Array1OfReal, + ) -> None: ... + @staticmethod + def MovePoint( + U: float, + V: float, + Displ: gp_Vec, + UIndex1: int, + UIndex2: int, + VIndex1: int, + VIndex2: int, + UDegree: int, + VDegree: int, + Rational: bool, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UFlatKnots: TColStd_Array1OfReal, + VFlatKnots: TColStd_Array1OfReal, + NewPoles: TColgp_Array2OfPnt, + ) -> Tuple[int, int, int, int]: ... @staticmethod def NoWeights() -> TColStd_Array2OfReal: ... @overload @staticmethod - def PolesCoefficients(Poles: TColgp_Array2OfPnt, CachePoles: TColgp_Array2OfPnt) -> None: ... + def PolesCoefficients( + Poles: TColgp_Array2OfPnt, CachePoles: TColgp_Array2OfPnt + ) -> None: ... @overload @staticmethod - def PolesCoefficients(Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, CachePoles: TColgp_Array2OfPnt, CacheWeights: TColStd_Array2OfReal) -> None: ... - @staticmethod - def RationalDerivative(UDeg: int, VDeg: int, N: int, M: int, All: Optional[bool] = True) -> Tuple[float, float]: ... - @staticmethod - def RemoveKnot(UDirection: bool, Index: int, Mult: int, Degree: int, Periodic: bool, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NewPoles: TColgp_Array2OfPnt, NewWeights: TColStd_Array2OfReal, NewKnots: TColStd_Array1OfReal, NewMults: TColStd_Array1OfInteger, Tolerance: float) -> bool: ... - @staticmethod - def Resolution(Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, UDegree: int, VDegree: int, URat: bool, VRat: bool, UPer: bool, VPer: bool, Tolerance3D: float) -> Tuple[float, float]: ... + def PolesCoefficients( + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + CachePoles: TColgp_Array2OfPnt, + CacheWeights: TColStd_Array2OfReal, + ) -> None: ... + @staticmethod + def RationalDerivative( + UDeg: int, VDeg: int, N: int, M: int, All: Optional[bool] = True + ) -> Tuple[float, float]: ... + @staticmethod + def RemoveKnot( + UDirection: bool, + Index: int, + Mult: int, + Degree: int, + Periodic: bool, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NewPoles: TColgp_Array2OfPnt, + NewWeights: TColStd_Array2OfReal, + NewKnots: TColStd_Array1OfReal, + NewMults: TColStd_Array1OfInteger, + Tolerance: float, + ) -> bool: ... + @staticmethod + def Resolution( + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + UDegree: int, + VDegree: int, + URat: bool, + VRat: bool, + UPer: bool, + VPer: bool, + Tolerance3D: float, + ) -> Tuple[float, float]: ... @overload @staticmethod def Reverse(Poles: TColgp_Array2OfPnt, Last: int, UDirection: bool) -> None: ... @@ -87,25 +474,78 @@ class bsplslib: def Reverse(Weights: TColStd_Array2OfReal, Last: int, UDirection: bool) -> None: ... @overload @staticmethod - def SetPoles(Poles: TColgp_Array2OfPnt, FP: TColStd_Array1OfReal, UDirection: bool) -> None: ... + def SetPoles( + Poles: TColgp_Array2OfPnt, FP: TColStd_Array1OfReal, UDirection: bool + ) -> None: ... @overload @staticmethod - def SetPoles(Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, FP: TColStd_Array1OfReal, UDirection: bool) -> None: ... - @staticmethod - def Unperiodize(UDirection: bool, Degree: int, Mults: TColStd_Array1OfInteger, Knots: TColStd_Array1OfReal, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, NewMults: TColStd_Array1OfInteger, NewKnots: TColStd_Array1OfReal, NewPoles: TColgp_Array2OfPnt, NewWeights: TColStd_Array2OfReal) -> None: ... + def SetPoles( + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + FP: TColStd_Array1OfReal, + UDirection: bool, + ) -> None: ... + @staticmethod + def Unperiodize( + UDirection: bool, + Degree: int, + Mults: TColStd_Array1OfInteger, + Knots: TColStd_Array1OfReal, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + NewMults: TColStd_Array1OfInteger, + NewKnots: TColStd_Array1OfReal, + NewPoles: TColgp_Array2OfPnt, + NewWeights: TColStd_Array2OfReal, + ) -> None: ... class BSplSLib_Cache(Standard_Transient): - def __init__(self, theDegreeU: int, thePeriodicU: bool, theFlatKnotsU: TColStd_Array1OfReal, theDegreeV: int, thePeriodicV: bool, theFlatKnotsV: TColStd_Array1OfReal, theWeights: Optional[TColStd_Array2OfReal] = None) -> None: ... - def BuildCache(self, theParameterU: float, theParameterV: float, theFlatKnotsU: TColStd_Array1OfReal, theFlatKnotsV: TColStd_Array1OfReal, thePoles: TColgp_Array2OfPnt, theWeights: Optional[TColStd_Array2OfReal] = None) -> None: ... + def __init__( + self, + theDegreeU: int, + thePeriodicU: bool, + theFlatKnotsU: TColStd_Array1OfReal, + theDegreeV: int, + thePeriodicV: bool, + theFlatKnotsV: TColStd_Array1OfReal, + theWeights: Optional[TColStd_Array2OfReal] = None, + ) -> None: ... + def BuildCache( + self, + theParameterU: float, + theParameterV: float, + theFlatKnotsU: TColStd_Array1OfReal, + theFlatKnotsV: TColStd_Array1OfReal, + thePoles: TColgp_Array2OfPnt, + theWeights: Optional[TColStd_Array2OfReal] = None, + ) -> None: ... def D0(self, theU: float, theV: float, thePoint: gp_Pnt) -> None: ... - def D1(self, theU: float, theV: float, thePoint: gp_Pnt, theTangentU: gp_Vec, theTangentV: gp_Vec) -> None: ... - def D2(self, theU: float, theV: float, thePoint: gp_Pnt, theTangentU: gp_Vec, theTangentV: gp_Vec, theCurvatureU: gp_Vec, theCurvatureV: gp_Vec, theCurvatureUV: gp_Vec) -> None: ... + def D1( + self, + theU: float, + theV: float, + thePoint: gp_Pnt, + theTangentU: gp_Vec, + theTangentV: gp_Vec, + ) -> None: ... + def D2( + self, + theU: float, + theV: float, + thePoint: gp_Pnt, + theTangentU: gp_Vec, + theTangentV: gp_Vec, + theCurvatureU: gp_Vec, + theCurvatureV: gp_Vec, + theCurvatureUV: gp_Vec, + ) -> None: ... def IsCacheValid(self, theParameterU: float, theParameterV: float) -> bool: ... class BSplSLib_EvaluatorFunction: - def Evaluate(self, theDerivativeRequest: int, theUParameter: float, theVParameter: float) -> Tuple[float, int]: ... + def Evaluate( + self, theDerivativeRequest: int, theUParameter: float, theVParameter: float + ) -> Tuple[float, int]: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BVH.pyi b/src/SWIG_files/wrapper/BVH.pyi index a1e5b695d..5dfcc97e0 100644 --- a/src/SWIG_files/wrapper/BVH.pyi +++ b/src/SWIG_files/wrapper/BVH.pyi @@ -51,7 +51,6 @@ BVH_Vec4f = NewType("BVH_Vec4f", Any) # the following typedef cannot be wrapped as is BVH_Vec4i = NewType("BVH_Vec4i", Any) - class BVH_AxisSelector: @staticmethod def MainAxis(theSize: BVH_VecNt) -> int: ... @@ -59,14 +58,26 @@ class BVH_AxisSelector: class BVH_BaseBox: pass -class BVH_Tree(): +class BVH_Tree: def __init__(self) -> None: ... @overload - def AddInnerNode(self, theMinPoint: BVH_VecNt, theMaxPoint: BVH_VecNt, theLftChild: int, theRghChild: int) -> int: ... + def AddInnerNode( + self, + theMinPoint: BVH_VecNt, + theMaxPoint: BVH_VecNt, + theLftChild: int, + theRghChild: int, + ) -> int: ... @overload def AddInnerNode(self, theLftChild: int, theRghChild: int) -> int: ... @overload - def AddLeafNode(self, theMinPoint: BVH_VecNt, theMaxPoint: BVH_VecNt, theBegElem: int, theEndElem: int) -> int: ... + def AddLeafNode( + self, + theMinPoint: BVH_VecNt, + theMaxPoint: BVH_VecNt, + theBegElem: int, + theEndElem: int, + ) -> int: ... @overload def AddLeafNode(self, theBegElem: int, theEndElem: int) -> int: ... def Clear(self) -> None: ... @@ -76,178 +87,177 @@ class BVH_Tree(): def SetInner(self, theNodeIndex: int) -> None: ... def SetOuter(self, theNodeIndex: int) -> None: ... -class BVH_Tree(): +class BVH_Tree: def __init__(self) -> None: ... -#classnotwrapped +# classnotwrapped class BVH_Tree: ... -#classnotwrapped +# classnotwrapped class BVH_Bin: ... -#classnotwrapped +# classnotwrapped class BVH_BinnedBuilder: ... -#classnotwrapped +# classnotwrapped class BVH_AxisSelector: ... -#classnotwrapped +# classnotwrapped class BVH_BaseBox: ... -#classnotwrapped +# classnotwrapped class BVH_Box: ... -#classnotwrapped +# classnotwrapped class CenterAxis: ... -#classnotwrapped +# classnotwrapped class SurfaceCalculator: ... -#classnotwrapped +# classnotwrapped class BoxMinMax: ... -#classnotwrapped +# classnotwrapped class BVH_BoxSet: ... -#classnotwrapped +# classnotwrapped class BVH_BuildQueue: ... -#classnotwrapped +# classnotwrapped class BVH_BuildTool: ... -#classnotwrapped +# classnotwrapped class BVH_BuildThread: ... -#classnotwrapped +# classnotwrapped class BVH_BuilderTransient: ... -#classnotwrapped +# classnotwrapped class BVH_Builder: ... -#classnotwrapped +# classnotwrapped class BVH_Distance: ... -#classnotwrapped +# classnotwrapped class BVH_DistanceField: ... -#classnotwrapped +# classnotwrapped class BVH_Geometry: ... -#classnotwrapped +# classnotwrapped class BVH_IndexedBoxSet: ... -#classnotwrapped +# classnotwrapped class BVH_LinearBuilder: ... -#classnotwrapped +# classnotwrapped class BoundData: ... -#classnotwrapped +# classnotwrapped class UpdateBoundTask: ... -#classnotwrapped +# classnotwrapped class BVH_ObjectTransient: ... -#classnotwrapped +# classnotwrapped class BVH_Object: ... -#classnotwrapped +# classnotwrapped class BVH_ObjectSet: ... -#classnotwrapped +# classnotwrapped class BVH_PairDistance: ... -#classnotwrapped +# classnotwrapped class BVH_PrimitiveSet: ... -#classnotwrapped +# classnotwrapped class BVH_Properties: ... -#classnotwrapped +# classnotwrapped class BVH_Transform: ... -#classnotwrapped +# classnotwrapped class MatrixOp: ... -#classnotwrapped +# classnotwrapped class UnitVector: ... -#classnotwrapped +# classnotwrapped class BVH_QueueBuilder: ... -#classnotwrapped +# classnotwrapped class BVH_QuickSorter: ... -#classnotwrapped +# classnotwrapped class BVH_RadixSorter: ... -#classnotwrapped +# classnotwrapped class BitPredicate: ... -#classnotwrapped +# classnotwrapped class BitComparator: ... -#classnotwrapped +# classnotwrapped class RadixSorter: ... -#classnotwrapped +# classnotwrapped class BVH_Ray: ... -#classnotwrapped +# classnotwrapped class BVH_Set: ... -#classnotwrapped +# classnotwrapped class BVH_Sorter: ... -#classnotwrapped +# classnotwrapped class BVH_SpatialMedianBuilder: ... -#classnotwrapped +# classnotwrapped class BVH_SweepPlaneBuilder: ... -#classnotwrapped +# classnotwrapped class BVH_Tools: ... -#classnotwrapped +# classnotwrapped class BVH_BaseTraverse: ... -#classnotwrapped +# classnotwrapped class BVH_Traverse: ... -#classnotwrapped +# classnotwrapped class BVH_PairTraverse: ... -#classnotwrapped +# classnotwrapped class BVH_TreeBaseTransient: ... -#classnotwrapped +# classnotwrapped class BVH_TreeBase: ... -#classnotwrapped +# classnotwrapped class BVH_QuadTree: ... -#classnotwrapped +# classnotwrapped class BVH_BinaryTree: ... -#classnotwrapped +# classnotwrapped class BVH_Triangulation: ... -#classnotwrapped +# classnotwrapped class VectorType: ... -#classnotwrapped +# classnotwrapped class MatrixType: ... -#classnotwrapped +# classnotwrapped class ArrayType: ... -#classnotwrapped +# classnotwrapped class VecComp: ... -#classnotwrapped +# classnotwrapped class Array: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BiTgte.pyi b/src/SWIG_files/wrapper/BiTgte.pyi index 18e56d84a..f76346c69 100644 --- a/src/SWIG_files/wrapper/BiTgte.pyi +++ b/src/SWIG_files/wrapper/BiTgte.pyi @@ -12,7 +12,6 @@ from OCC.Core.gp import * from OCC.Core.GeomAbs import * from OCC.Core.TColStd import * - class BiTgte_ContactType(IntEnum): BiTgte_FaceFace: int = ... BiTgte_FaceEdge: int = ... @@ -32,7 +31,9 @@ class BiTgte_Blend: @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, Radius: float, Tol: float, NUBS: bool) -> None: ... + def __init__( + self, S: TopoDS_Shape, Radius: float, Tol: float, NUBS: bool + ) -> None: ... def CenterLines(self, LC: TopTools_ListOfShape) -> None: ... def Clear(self) -> None: ... def ComputeCenters(self) -> None: ... @@ -138,4 +139,3 @@ class BiTgte_CurveOnVertex(Adaptor3d_Curve): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinDrivers.pyi b/src/SWIG_files/wrapper/BinDrivers.pyi index 04cbaaab1..a8306ac8a 100644 --- a/src/SWIG_files/wrapper/BinDrivers.pyi +++ b/src/SWIG_files/wrapper/BinDrivers.pyi @@ -9,7 +9,6 @@ from OCC.Core.TDocStd import * from OCC.Core.BinLDrivers import * from OCC.Core.Storage import * - class BinDrivers_Marker(IntEnum): BinDrivers_ENDATTRLIST: int = ... BinDrivers_ENDLABEL: int = ... @@ -27,24 +26,46 @@ class bindrivers: class BinDrivers_DocumentRetrievalDriver(BinLDrivers_DocumentRetrievalDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... def CheckShapeSection(self, thePos: Storage_Position, theIS: str) -> None: ... def Clear(self) -> None: ... - def EnableQuickPartReading(self, theMessageDriver: Message_Messenger, theValue: bool) -> None: ... - def ReadShapeSection(self, theSection: BinLDrivers_DocumentSection, theIS: str, isMess: Optional[bool] = False, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def EnableQuickPartReading( + self, theMessageDriver: Message_Messenger, theValue: bool + ) -> None: ... + def ReadShapeSection( + self, + theSection: BinLDrivers_DocumentSection, + theIS: str, + isMess: Optional[bool] = False, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... class BinDrivers_DocumentStorageDriver(BinLDrivers_DocumentStorageDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... def Clear(self) -> None: ... - def EnableQuickPartWriting(self, theMessageDriver: Message_Messenger, theValue: bool) -> None: ... + def EnableQuickPartWriting( + self, theMessageDriver: Message_Messenger, theValue: bool + ) -> None: ... def IsWithNormals(self) -> bool: ... def IsWithTriangles(self) -> bool: ... - def SetWithNormals(self, theMessageDriver: Message_Messenger, theWithTriangulation: bool) -> None: ... - def SetWithTriangles(self, theMessageDriver: Message_Messenger, theWithTriangulation: bool) -> None: ... - def WriteShapeSection(self, theDocSection: BinLDrivers_DocumentSection, theDocVer: TDocStd_FormatVersion, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def SetWithNormals( + self, theMessageDriver: Message_Messenger, theWithTriangulation: bool + ) -> None: ... + def SetWithTriangles( + self, theMessageDriver: Message_Messenger, theWithTriangulation: bool + ) -> None: ... + def WriteShapeSection( + self, + theDocSection: BinLDrivers_DocumentSection, + theDocVer: TDocStd_FormatVersion, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinLDrivers.pyi b/src/SWIG_files/wrapper/BinLDrivers.pyi index 1b11c42e9..6bfc207fc 100644 --- a/src/SWIG_files/wrapper/BinLDrivers.pyi +++ b/src/SWIG_files/wrapper/BinLDrivers.pyi @@ -12,7 +12,9 @@ from OCC.Core.CDM import * from OCC.Core.Storage import * # the following typedef cannot be wrapped as is -BinLDrivers_VectorOfDocumentSection = NewType("BinLDrivers_VectorOfDocumentSection", Any) +BinLDrivers_VectorOfDocumentSection = NewType( + "BinLDrivers_VectorOfDocumentSection", Any +) class BinLDrivers_Marker(IntEnum): BinLDrivers_ENDATTRLIST: int = ... @@ -31,11 +33,28 @@ class binldrivers: class BinLDrivers_DocumentRetrievalDriver(PCDM_RetrievalDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... @overload - def Read(self, theFileName: str, theNewDocument: CDM_Document, theApplication: CDM_Application, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + theFileName: str, + theNewDocument: CDM_Document, + theApplication: CDM_Application, + theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def Read(self, theIStream: str, theStorageData: Storage_Data, theDoc: CDM_Document, theApplication: CDM_Application, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + theIStream: str, + theStorageData: Storage_Data, + theDoc: CDM_Document, + theApplication: CDM_Application, + theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... class BinLDrivers_DocumentSection: @overload @@ -47,20 +66,34 @@ class BinLDrivers_DocumentSection: def Name(self) -> str: ... def Offset(self) -> False: ... @staticmethod - def ReadTOC(theSection: BinLDrivers_DocumentSection, theIS: str, theDocFormatVersion: TDocStd_FormatVersion) -> bool: ... + def ReadTOC( + theSection: BinLDrivers_DocumentSection, + theIS: str, + theDocFormatVersion: TDocStd_FormatVersion, + ) -> bool: ... def WriteTOC(self, theDocFormatVersion: TDocStd_FormatVersion) -> str: ... class BinLDrivers_DocumentStorageDriver(PCDM_StorageDriver): def __init__(self) -> None: ... def AddSection(self, theName: str, isPostRead: Optional[bool] = True) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... def IsQuickPart(self, theVersion: int) -> bool: ... @overload - def Write(self, theDocument: CDM_Document, theFileName: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Write( + self, + theDocument: CDM_Document, + theFileName: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def Write(self, theDocument: CDM_Document, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, + theDocument: CDM_Document, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinMDF.pyi b/src/SWIG_files/wrapper/BinMDF.pyi index b1bdffd4f..c22b2e77c 100644 --- a/src/SWIG_files/wrapper/BinMDF.pyi +++ b/src/SWIG_files/wrapper/BinMDF.pyi @@ -10,22 +10,36 @@ from OCC.Core.BinObjMgt import * from OCC.Core.TCollection import * # the following typedef cannot be wrapped as is -BinMDF_DoubleMapIteratorOfTypeIdMap = NewType("BinMDF_DoubleMapIteratorOfTypeIdMap", Any) +BinMDF_DoubleMapIteratorOfTypeIdMap = NewType( + "BinMDF_DoubleMapIteratorOfTypeIdMap", Any +) BinMDF_StringIdMap = NewType("BinMDF_StringIdMap", TColStd_DataMapOfAsciiStringInteger) # the following typedef cannot be wrapped as is BinMDF_TypeIdMap = NewType("BinMDF_TypeIdMap", Any) class binmdf: @staticmethod - def AddDrivers(aDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger + ) -> None: ... class BinMDF_ADriver(Standard_Transient): def MessageDriver(self) -> Message_Messenger: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, aSource: BinObjMgt_Persistent, aTarget: TDF_Attribute, aRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + aSource: BinObjMgt_Persistent, + aTarget: TDF_Attribute, + aRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, aSource: TDF_Attribute, aTarget: BinObjMgt_Persistent, aRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + aSource: TDF_Attribute, + aTarget: BinObjMgt_Persistent, + aRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... def SourceType(self) -> Standard_Type: ... def TypeName(self) -> str: ... @@ -46,30 +60,61 @@ class BinMDF_ADriverTable(Standard_Transient): def GetDriver(self, theTypeId: int) -> BinMDF_ADriver: ... class BinMDF_DerivedDriver(BinMDF_ADriver): - def __init__(self, theDerivative: TDF_Attribute, theBaseDriver: BinMDF_ADriver) -> None: ... + def __init__( + self, theDerivative: TDF_Attribute, theBaseDriver: BinMDF_ADriver + ) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDF_ReferenceDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDF_TagSourceDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinMDataStd.pyi b/src/SWIG_files/wrapper/BinMDataStd.pyi index a36b8f1cc..33d16acab 100644 --- a/src/SWIG_files/wrapper/BinMDataStd.pyi +++ b/src/SWIG_files/wrapper/BinMDataStd.pyi @@ -8,190 +8,410 @@ from OCC.Core.Message import * from OCC.Core.TDF import * from OCC.Core.BinObjMgt import * - class binmdatastd: @staticmethod - def AddDrivers(theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger + ) -> None: ... class BinMDataStd_AsciiStringDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_BooleanArrayDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_BooleanListDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_ByteArrayDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_ExpressionDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_ExtStringArrayDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_ExtStringListDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_GenericEmptyDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... def SourceType(self) -> Standard_Type: ... class BinMDataStd_GenericExtStringDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... def SourceType(self) -> Standard_Type: ... class BinMDataStd_IntPackedMapDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_IntegerArrayDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_IntegerDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_IntegerListDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_NamedDataDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_RealArrayDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_RealDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_RealListDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_ReferenceArrayDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_ReferenceListDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_TreeNodeDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_UAttributeDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataStd_VariableDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinMDataXtd.pyi b/src/SWIG_files/wrapper/BinMDataXtd.pyi index 3d7a44d07..dec6363af 100644 --- a/src/SWIG_files/wrapper/BinMDataXtd.pyi +++ b/src/SWIG_files/wrapper/BinMDataXtd.pyi @@ -8,10 +8,11 @@ from OCC.Core.Message import * from OCC.Core.TDF import * from OCC.Core.BinObjMgt import * - class binmdataxtd: @staticmethod - def AddDrivers(theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger + ) -> None: ... @staticmethod def DocumentVersion() -> int: ... @staticmethod @@ -21,51 +22,110 @@ class BinMDataXtd_ConstraintDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataXtd_GeometryDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataXtd_PatternStdDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataXtd_PositionDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataXtd_PresentationDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMDataXtd_TriangulationDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinMDocStd.pyi b/src/SWIG_files/wrapper/BinMDocStd.pyi index 2379eb9ff..4a261a0b2 100644 --- a/src/SWIG_files/wrapper/BinMDocStd.pyi +++ b/src/SWIG_files/wrapper/BinMDocStd.pyi @@ -8,20 +8,30 @@ from OCC.Core.Message import * from OCC.Core.TDF import * from OCC.Core.BinObjMgt import * - class binmdocstd: @staticmethod - def AddDrivers(theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger + ) -> None: ... class BinMDocStd_XLinkDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinMFunction.pyi b/src/SWIG_files/wrapper/BinMFunction.pyi index 3a0fbe583..7606ed64b 100644 --- a/src/SWIG_files/wrapper/BinMFunction.pyi +++ b/src/SWIG_files/wrapper/BinMFunction.pyi @@ -8,36 +8,66 @@ from OCC.Core.Message import * from OCC.Core.TDF import * from OCC.Core.BinObjMgt import * - class binmfunction: @staticmethod - def AddDrivers(theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger + ) -> None: ... class BinMFunction_FunctionDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMFunction_GraphNodeDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMFunction_ScopeDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinMNaming.pyi b/src/SWIG_files/wrapper/BinMNaming.pyi index 7d39da69a..068a2122d 100644 --- a/src/SWIG_files/wrapper/BinMNaming.pyi +++ b/src/SWIG_files/wrapper/BinMNaming.pyi @@ -9,10 +9,11 @@ from OCC.Core.BinTools import * from OCC.Core.TDF import * from OCC.Core.BinObjMgt import * - class binmnaming: @staticmethod - def AddDrivers(theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + theDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger + ) -> None: ... class BinMNaming_NamedShapeDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... @@ -24,24 +25,51 @@ class BinMNaming_NamedShapeDriver(BinMDF_ADriver): def IsWithTriangles(self) -> bool: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... - def ReadShapeSection(self, theIS: str, therange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + def ReadShapeSection( + self, + theIS: str, + therange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def SetWithNormals(self, isWithNormals: bool) -> None: ... def SetWithTriangles(self, isWithTriangles: bool) -> None: ... def ShapeSet(self, theReading: bool) -> BinTools_ShapeSetBase: ... - def WriteShapeSection(self, theDocVer: int, therange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def WriteShapeSection( + self, + theDocVer: int, + therange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... class BinMNaming_NamingDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinMXCAFDoc.pyi b/src/SWIG_files/wrapper/BinMXCAFDoc.pyi index 07eb33b3f..28bb1beed 100644 --- a/src/SWIG_files/wrapper/BinMXCAFDoc.pyi +++ b/src/SWIG_files/wrapper/BinMXCAFDoc.pyi @@ -10,127 +10,277 @@ from OCC.Core.BinObjMgt import * from OCC.Core.BinMNaming import * from OCC.Core.TopLoc import * - class binmxcafdoc: @staticmethod - def AddDrivers(theDriverTable: BinMDF_ADriverTable, theMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + theDriverTable: BinMDF_ADriverTable, theMsgDrv: Message_Messenger + ) -> None: ... class BinMXCAFDoc_AssemblyItemRefDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_CentroidDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_ColorDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_DatumDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_DimTolDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_GraphNodeDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_LengthUnitDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_LocationDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... def SetNSDriver(self, theNSDriver: BinMNaming_NamedShapeDriver) -> None: ... @overload - def Translate(self, theSource: BinObjMgt_Persistent, theLoc: TopLoc_Location, theMap: BinObjMgt_RRelocationTable) -> bool: ... + def Translate( + self, + theSource: BinObjMgt_Persistent, + theLoc: TopLoc_Location, + theMap: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Translate(self, theLoc: TopLoc_Location, theTarget: BinObjMgt_Persistent, theMap: BinObjMgt_SRelocationTable) -> None: ... + def Translate( + self, + theLoc: TopLoc_Location, + theTarget: BinObjMgt_Persistent, + theMap: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_MaterialDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_NoteDriver(BinMDF_ADriver): @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_VisMaterialDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_VisMaterialToolDriver(BinMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_NoteBinDataDriver(BinMXCAFDoc_NoteDriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinMXCAFDoc_NoteCommentDriver(BinMXCAFDoc_NoteDriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinObjMgt.pyi b/src/SWIG_files/wrapper/BinObjMgt.pyi index a7018836b..ce07c65f4 100644 --- a/src/SWIG_files/wrapper/BinObjMgt.pyi +++ b/src/SWIG_files/wrapper/BinObjMgt.pyi @@ -14,7 +14,9 @@ BinObjMgt_PExtChar = NewType("BinObjMgt_PExtChar", str) BinObjMgt_PInteger = NewType("BinObjMgt_PInteger", Standard_Integer) BinObjMgt_PReal = NewType("BinObjMgt_PReal", Standard_Real) BinObjMgt_PShortReal = NewType("BinObjMgt_PShortReal", Standard_ShortReal) -BinObjMgt_SRelocationTable = NewType("BinObjMgt_SRelocationTable", TColStd_IndexedMapOfTransient) +BinObjMgt_SRelocationTable = NewType( + "BinObjMgt_SRelocationTable", TColStd_IndexedMapOfTransient +) class BinObjMgt_Persistent: @overload @@ -23,22 +25,38 @@ class BinObjMgt_Persistent: def GetAsciiString(self, theValue: str) -> BinObjMgt_Persistent: ... def GetBoolean(self) -> Tuple[BinObjMgt_Persistent, bool]: ... def GetByte(self, theValue: str) -> BinObjMgt_Persistent: ... - def GetByteArray(self, theArray: BinObjMgt_PByte, theLength: int) -> BinObjMgt_Persistent: ... - def GetCharArray(self, theArray: BinObjMgt_PChar, theLength: int) -> BinObjMgt_Persistent: ... + def GetByteArray( + self, theArray: BinObjMgt_PByte, theLength: int + ) -> BinObjMgt_Persistent: ... + def GetCharArray( + self, theArray: BinObjMgt_PChar, theLength: int + ) -> BinObjMgt_Persistent: ... def GetCharacter(self, theValue: str) -> BinObjMgt_Persistent: ... - def GetExtCharArray(self, theArray: BinObjMgt_PExtChar, theLength: int) -> BinObjMgt_Persistent: ... - def GetExtCharacter(self, theValue: Standard_ExtCharacter) -> BinObjMgt_Persistent: ... + def GetExtCharArray( + self, theArray: BinObjMgt_PExtChar, theLength: int + ) -> BinObjMgt_Persistent: ... + def GetExtCharacter( + self, theValue: Standard_ExtCharacter + ) -> BinObjMgt_Persistent: ... def GetExtendedString(self, theValue: str) -> BinObjMgt_Persistent: ... def GetGUID(self, theValue: Standard_GUID) -> BinObjMgt_Persistent: ... def GetIStream(self) -> Standard_IStream: ... - def GetIntArray(self, theArray: BinObjMgt_PInteger, theLength: int) -> BinObjMgt_Persistent: ... + def GetIntArray( + self, theArray: BinObjMgt_PInteger, theLength: int + ) -> BinObjMgt_Persistent: ... def GetInteger(self) -> Tuple[BinObjMgt_Persistent, int]: ... - def GetLabel(self, theDS: TDF_Data, theValue: TDF_Label) -> BinObjMgt_Persistent: ... + def GetLabel( + self, theDS: TDF_Data, theValue: TDF_Label + ) -> BinObjMgt_Persistent: ... def GetOStream(self) -> Standard_OStream: ... def GetReal(self) -> Tuple[BinObjMgt_Persistent, float]: ... - def GetRealArray(self, theArray: BinObjMgt_PReal, theLength: int) -> BinObjMgt_Persistent: ... + def GetRealArray( + self, theArray: BinObjMgt_PReal, theLength: int + ) -> BinObjMgt_Persistent: ... def GetShortReal(self) -> Tuple[BinObjMgt_Persistent, float]: ... - def GetShortRealArray(self, theArray: BinObjMgt_PShortReal, theLength: int) -> BinObjMgt_Persistent: ... + def GetShortRealArray( + self, theArray: BinObjMgt_PShortReal, theLength: int + ) -> BinObjMgt_Persistent: ... def Id(self) -> int: ... def Init(self) -> None: ... def IsDirect(self) -> bool: ... @@ -49,21 +67,35 @@ class BinObjMgt_Persistent: def PutAsciiString(self, theValue: str) -> BinObjMgt_Persistent: ... def PutBoolean(self, theValue: bool) -> BinObjMgt_Persistent: ... def PutByte(self, theValue: str) -> BinObjMgt_Persistent: ... - def PutByteArray(self, theArray: BinObjMgt_PByte, theLength: int) -> BinObjMgt_Persistent: ... + def PutByteArray( + self, theArray: BinObjMgt_PByte, theLength: int + ) -> BinObjMgt_Persistent: ... def PutCString(self, theValue: str) -> BinObjMgt_Persistent: ... - def PutCharArray(self, theArray: BinObjMgt_PChar, theLength: int) -> BinObjMgt_Persistent: ... + def PutCharArray( + self, theArray: BinObjMgt_PChar, theLength: int + ) -> BinObjMgt_Persistent: ... def PutCharacter(self, theValue: str) -> BinObjMgt_Persistent: ... - def PutExtCharArray(self, theArray: BinObjMgt_PExtChar, theLength: int) -> BinObjMgt_Persistent: ... - def PutExtCharacter(self, theValue: Standard_ExtCharacter) -> BinObjMgt_Persistent: ... + def PutExtCharArray( + self, theArray: BinObjMgt_PExtChar, theLength: int + ) -> BinObjMgt_Persistent: ... + def PutExtCharacter( + self, theValue: Standard_ExtCharacter + ) -> BinObjMgt_Persistent: ... def PutExtendedString(self, theValue: str) -> BinObjMgt_Persistent: ... def PutGUID(self, theValue: Standard_GUID) -> BinObjMgt_Persistent: ... - def PutIntArray(self, theArray: BinObjMgt_PInteger, theLength: int) -> BinObjMgt_Persistent: ... + def PutIntArray( + self, theArray: BinObjMgt_PInteger, theLength: int + ) -> BinObjMgt_Persistent: ... def PutInteger(self, theValue: int) -> BinObjMgt_Persistent: ... def PutLabel(self, theValue: TDF_Label) -> BinObjMgt_Persistent: ... def PutReal(self, theValue: float) -> BinObjMgt_Persistent: ... - def PutRealArray(self, theArray: BinObjMgt_PReal, theLength: int) -> BinObjMgt_Persistent: ... + def PutRealArray( + self, theArray: BinObjMgt_PReal, theLength: int + ) -> BinObjMgt_Persistent: ... def PutShortReal(self, theValue: float) -> BinObjMgt_Persistent: ... - def PutShortRealArray(self, theArray: BinObjMgt_PShortReal, theLength: int) -> BinObjMgt_Persistent: ... + def PutShortRealArray( + self, theArray: BinObjMgt_PShortReal, theLength: int + ) -> BinObjMgt_Persistent: ... def Read(self, theIS: str) -> Standard_IStream: ... def SetIStream(self, theStream: str) -> None: ... def SetId(self, theId: int) -> None: ... @@ -73,17 +105,18 @@ class BinObjMgt_Persistent: def StreamStart(self) -> BinObjMgt_Position: ... def Truncate(self) -> None: ... def TypeId(self) -> int: ... - def Write(self, theDirectStream: Optional[bool] = False) -> Tuple[Standard_OStream, str]: ... + def Write( + self, theDirectStream: Optional[bool] = False + ) -> Tuple[Standard_OStream, str]: ... class BinObjMgt_RRelocationTable(TColStd_DataMapOfIntegerTransient): def Clear(self, doReleaseMemory: Optional[bool] = True) -> None: ... def GetHeaderData(self) -> Storage_HeaderData: ... def SetHeaderData(self, theHeaderData: Storage_HeaderData) -> None: ... -#classnotwrapped +# classnotwrapped class BinObjMgt_Position: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinTObjDrivers.pyi b/src/SWIG_files/wrapper/BinTObjDrivers.pyi index 0f661513e..5bb97cf98 100644 --- a/src/SWIG_files/wrapper/BinTObjDrivers.pyi +++ b/src/SWIG_files/wrapper/BinTObjDrivers.pyi @@ -10,10 +10,11 @@ from OCC.Core.BinLDrivers import * from OCC.Core.TDF import * from OCC.Core.BinObjMgt import * - class bintobjdrivers: @staticmethod - def AddDrivers(aDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger + ) -> None: ... @staticmethod def DefineFormat(theApp: TDocStd_Application) -> None: ... @staticmethod @@ -21,53 +22,106 @@ class bintobjdrivers: class BinTObjDrivers_DocumentRetrievalDriver(BinLDrivers_DocumentRetrievalDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... class BinTObjDrivers_DocumentStorageDriver(BinLDrivers_DocumentStorageDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... class BinTObjDrivers_IntSparseArrayDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinTObjDrivers_ModelDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinTObjDrivers_ObjectDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinTObjDrivers_ReferenceDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... class BinTObjDrivers_XYZDriver(BinMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: BinObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: BinObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: BinObjMgt_Persistent, theRelocTable: BinObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinTools.pyi b/src/SWIG_files/wrapper/BinTools.pyi index 2cb707636..e78d89e49 100644 --- a/src/SWIG_files/wrapper/BinTools.pyi +++ b/src/SWIG_files/wrapper/BinTools.pyi @@ -19,13 +19,20 @@ class BinTools_FormatVersion(IntEnum): BinTools_FormatVersion_VERSION_4: int = ... BinTools_FormatVersion_CURRENT: int = ... -BinTools_FormatVersion_VERSION_1 = BinTools_FormatVersion.BinTools_FormatVersion_VERSION_1 -BinTools_FormatVersion_VERSION_2 = BinTools_FormatVersion.BinTools_FormatVersion_VERSION_2 -BinTools_FormatVersion_VERSION_3 = BinTools_FormatVersion.BinTools_FormatVersion_VERSION_3 -BinTools_FormatVersion_VERSION_4 = BinTools_FormatVersion.BinTools_FormatVersion_VERSION_4 +BinTools_FormatVersion_VERSION_1 = ( + BinTools_FormatVersion.BinTools_FormatVersion_VERSION_1 +) +BinTools_FormatVersion_VERSION_2 = ( + BinTools_FormatVersion.BinTools_FormatVersion_VERSION_2 +) +BinTools_FormatVersion_VERSION_3 = ( + BinTools_FormatVersion.BinTools_FormatVersion_VERSION_3 +) +BinTools_FormatVersion_VERSION_4 = ( + BinTools_FormatVersion.BinTools_FormatVersion_VERSION_4 +) BinTools_FormatVersion_CURRENT = BinTools_FormatVersion.BinTools_FormatVersion_CURRENT - class BinTools_ObjectType(IntEnum): BinTools_ObjectType_Unknown: int = ... BinTools_ObjectType_Reference8: int = ... @@ -57,8 +64,12 @@ BinTools_ObjectType_Reference16 = BinTools_ObjectType.BinTools_ObjectType_Refere BinTools_ObjectType_Reference32 = BinTools_ObjectType.BinTools_ObjectType_Reference32 BinTools_ObjectType_Reference64 = BinTools_ObjectType.BinTools_ObjectType_Reference64 BinTools_ObjectType_Location = BinTools_ObjectType.BinTools_ObjectType_Location -BinTools_ObjectType_SimpleLocation = BinTools_ObjectType.BinTools_ObjectType_SimpleLocation -BinTools_ObjectType_EmptyLocation = BinTools_ObjectType.BinTools_ObjectType_EmptyLocation +BinTools_ObjectType_SimpleLocation = ( + BinTools_ObjectType.BinTools_ObjectType_SimpleLocation +) +BinTools_ObjectType_EmptyLocation = ( + BinTools_ObjectType.BinTools_ObjectType_EmptyLocation +) BinTools_ObjectType_LocationEnd = BinTools_ObjectType.BinTools_ObjectType_LocationEnd BinTools_ObjectType_Curve = BinTools_ObjectType.BinTools_ObjectType_Curve BinTools_ObjectType_EmptyCurve = BinTools_ObjectType.BinTools_ObjectType_EmptyCurve @@ -67,11 +78,21 @@ BinTools_ObjectType_EmptyCurve2d = BinTools_ObjectType.BinTools_ObjectType_Empty BinTools_ObjectType_Surface = BinTools_ObjectType.BinTools_ObjectType_Surface BinTools_ObjectType_EmptySurface = BinTools_ObjectType.BinTools_ObjectType_EmptySurface BinTools_ObjectType_Polygon3d = BinTools_ObjectType.BinTools_ObjectType_Polygon3d -BinTools_ObjectType_EmptyPolygon3d = BinTools_ObjectType.BinTools_ObjectType_EmptyPolygon3d -BinTools_ObjectType_PolygonOnTriangulation = BinTools_ObjectType.BinTools_ObjectType_PolygonOnTriangulation -BinTools_ObjectType_EmptyPolygonOnTriangulation = BinTools_ObjectType.BinTools_ObjectType_EmptyPolygonOnTriangulation -BinTools_ObjectType_Triangulation = BinTools_ObjectType.BinTools_ObjectType_Triangulation -BinTools_ObjectType_EmptyTriangulation = BinTools_ObjectType.BinTools_ObjectType_EmptyTriangulation +BinTools_ObjectType_EmptyPolygon3d = ( + BinTools_ObjectType.BinTools_ObjectType_EmptyPolygon3d +) +BinTools_ObjectType_PolygonOnTriangulation = ( + BinTools_ObjectType.BinTools_ObjectType_PolygonOnTriangulation +) +BinTools_ObjectType_EmptyPolygonOnTriangulation = ( + BinTools_ObjectType.BinTools_ObjectType_EmptyPolygonOnTriangulation +) +BinTools_ObjectType_Triangulation = ( + BinTools_ObjectType.BinTools_ObjectType_Triangulation +) +BinTools_ObjectType_EmptyTriangulation = ( + BinTools_ObjectType.BinTools_ObjectType_EmptyTriangulation +) BinTools_ObjectType_EmptyShape = BinTools_ObjectType.BinTools_ObjectType_EmptyShape BinTools_ObjectType_EndShape = BinTools_ObjectType.BinTools_ObjectType_EndShape @@ -98,22 +119,50 @@ class bintools: def PutShortReal(theValue: float) -> Tuple[Standard_OStream, str]: ... @overload @staticmethod - def Read(theShape: TopoDS_Shape, theStream: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + theShape: TopoDS_Shape, + theStream: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload @staticmethod - def Read(theShape: TopoDS_Shape, theFile: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + theShape: TopoDS_Shape, + theFile: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload @staticmethod - def Write(theShape: TopoDS_Shape, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + theShape: TopoDS_Shape, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... @overload @staticmethod - def Write(theShape: TopoDS_Shape, theWithTriangles: bool, theWithNormals: bool, theVersion: BinTools_FormatVersion, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + theShape: TopoDS_Shape, + theWithTriangles: bool, + theWithNormals: bool, + theVersion: BinTools_FormatVersion, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... @overload @staticmethod - def Write(theShape: TopoDS_Shape, theFile: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + theShape: TopoDS_Shape, + theFile: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload @staticmethod - def Write(theShape: TopoDS_Shape, theFile: str, theWithTriangles: bool, theWithNormals: bool, theVersion: BinTools_FormatVersion, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + theShape: TopoDS_Shape, + theFile: str, + theWithTriangles: bool, + theWithNormals: bool, + theVersion: BinTools_FormatVersion, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... class BinTools_Curve2dSet: def __init__(self) -> None: ... @@ -121,10 +170,16 @@ class BinTools_Curve2dSet: def Clear(self) -> None: ... def Curve2d(self, I: int) -> Geom2d_Curve: ... def Index(self, C: Geom2d_Curve) -> int: ... - def Read(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + IS: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @staticmethod def ReadCurve2d(IS: str, C: Geom2d_Curve) -> Standard_IStream: ... - def Write(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... @staticmethod def WriteCurve2d(C: Geom2d_Curve, OS: BinTools_OStream) -> None: ... @@ -134,10 +189,16 @@ class BinTools_CurveSet: def Clear(self) -> None: ... def Curve(self, I: int) -> Geom_Curve: ... def Index(self, C: Geom_Curve) -> int: ... - def Read(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + IS: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @staticmethod def ReadCurve(IS: str, C: Geom_Curve) -> Standard_IStream: ... - def Write(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... @staticmethod def WriteCurve(C: Geom_Curve, OS: BinTools_OStream) -> None: ... @@ -166,11 +227,17 @@ class BinTools_SurfaceSet: def Add(self, S: Geom_Surface) -> int: ... def Clear(self) -> None: ... def Index(self, S: Geom_Surface) -> int: ... - def Read(self, IS: str, therange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + IS: str, + therange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @staticmethod def ReadSurface(IS: str, S: Geom_Surface) -> Standard_IStream: ... def Surface(self, I: int) -> Geom_Surface: ... - def Write(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... @staticmethod def WriteSurface(S: Geom_Surface, OS: BinTools_OStream) -> None: ... @@ -191,38 +258,71 @@ class BinTools_ShapeSet(BinTools_ShapeSetBase): def Locations(self) -> BinTools_LocationSet: ... def NbShapes(self) -> int: ... @overload - def Read(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def ReadFlagsAndSubs(self, S: TopoDS_Shape, T: TopAbs_ShapeEnum, IS: str, NbShapes: int) -> None: ... - def ReadGeometry(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def ReadPolygon3D(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def ReadPolygonOnTriangulation(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + IS: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def ReadFlagsAndSubs( + self, S: TopoDS_Shape, T: TopAbs_ShapeEnum, IS: str, NbShapes: int + ) -> None: ... + def ReadGeometry( + self, + IS: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def ReadPolygon3D( + self, + IS: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def ReadPolygonOnTriangulation( + self, + IS: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def ReadShape(self, T: TopAbs_ShapeEnum, IS: str, S: TopoDS_Shape) -> None: ... def ReadSubs(self, S: TopoDS_Shape, IS: str, NbShapes: int) -> None: ... - def ReadTriangulation(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def ReadTriangulation( + self, + IS: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def Shape(self, I: int) -> TopoDS_Shape: ... @overload - def Write(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... @overload def Write(self, S: TopoDS_Shape) -> str: ... - def WriteGeometry(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... - def WritePolygon3D(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... - def WritePolygonOnTriangulation(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def WriteGeometry( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... + def WritePolygon3D( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... + def WritePolygonOnTriangulation( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... def WriteShape(self, S: TopoDS_Shape) -> str: ... - def WriteTriangulation(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def WriteTriangulation( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... class BinTools_ShapeWriter(BinTools_ShapeSetBase): def __init__(self) -> None: ... def Clear(self) -> None: ... def Write(self, theShape: TopoDS_Shape) -> str: ... - def WriteLocation(self, theStream: BinTools_OStream, theLocation: TopLoc_Location) -> None: ... + def WriteLocation( + self, theStream: BinTools_OStream, theLocation: TopLoc_Location + ) -> None: ... -#classnotwrapped +# classnotwrapped class BinTools_IStream: ... -#classnotwrapped +# classnotwrapped class BinTools_OStream: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BinXCAFDrivers.pyi b/src/SWIG_files/wrapper/BinXCAFDrivers.pyi index d7f29b487..1cb040902 100644 --- a/src/SWIG_files/wrapper/BinXCAFDrivers.pyi +++ b/src/SWIG_files/wrapper/BinXCAFDrivers.pyi @@ -8,7 +8,6 @@ from OCC.Core.BinMDF import * from OCC.Core.TDocStd import * from OCC.Core.BinDrivers import * - class binxcafdrivers: @staticmethod def AttributeDrivers(MsgDrv: Message_Messenger) -> BinMDF_ADriverTable: ... @@ -19,13 +18,16 @@ class binxcafdrivers: class BinXCAFDrivers_DocumentRetrievalDriver(BinDrivers_DocumentRetrievalDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... class BinXCAFDrivers_DocumentStorageDriver(BinDrivers_DocumentStorageDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Bisector.pyi b/src/SWIG_files/wrapper/Bisector.pyi index 306a03962..f10e23035 100644 --- a/src/SWIG_files/wrapper/Bisector.pyi +++ b/src/SWIG_files/wrapper/Bisector.pyi @@ -9,7 +9,6 @@ from OCC.Core.GeomAbs import * from OCC.Core.math import * from OCC.Core.IntRes2d import * - class bisector: @staticmethod def IsConvex(Cu: Geom2d_Curve, Sign: float) -> bool: ... @@ -18,13 +17,54 @@ class Bisector_Bisec: def __init__(self) -> None: ... def ChangeValue(self) -> Geom2d_TrimmedCurve: ... @overload - def Perform(self, Cu1: Geom2d_Curve, Cu2: Geom2d_Curve, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, Sense: float, ajointype: GeomAbs_JoinType, Tolerance: float, oncurve: Optional[bool] = True) -> None: ... - @overload - def Perform(self, Cu: Geom2d_Curve, Pnt: Geom2d_Point, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, Sense: float, Tolerance: float, oncurve: Optional[bool] = True) -> None: ... - @overload - def Perform(self, Pnt: Geom2d_Point, Cu: Geom2d_Curve, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, Sense: float, Tolerance: float, oncurve: Optional[bool] = True) -> None: ... - @overload - def Perform(self, Pnt1: Geom2d_Point, Pnt2: Geom2d_Point, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, Sense: float, Tolerance: Optional[float] = 0.0, oncurve: Optional[bool] = True) -> None: ... + def Perform( + self, + Cu1: Geom2d_Curve, + Cu2: Geom2d_Curve, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + Sense: float, + ajointype: GeomAbs_JoinType, + Tolerance: float, + oncurve: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, + Cu: Geom2d_Curve, + Pnt: Geom2d_Point, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + Sense: float, + Tolerance: float, + oncurve: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, + Pnt: Geom2d_Point, + Cu: Geom2d_Curve, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + Sense: float, + Tolerance: float, + oncurve: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, + Pnt1: Geom2d_Point, + Pnt2: Geom2d_Point, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + Sense: float, + Tolerance: Optional[float] = 0.0, + oncurve: Optional[bool] = True, + ) -> None: ... def Value(self) -> Geom2d_TrimmedCurve: ... class Bisector_Curve(Geom2d_Curve): @@ -45,9 +85,13 @@ class Bisector_FunctionInter(math_FunctionWithDerivative): @overload def __init__(self) -> None: ... @overload - def __init__(self, C: Geom2d_Curve, Bis1: Bisector_Curve, Bis2: Bisector_Curve) -> None: ... + def __init__( + self, C: Geom2d_Curve, Bis1: Bisector_Curve, Bis2: Bisector_Curve + ) -> None: ... def Derivative(self, X: float) -> Tuple[bool, float]: ... - def Perform(self, C: Geom2d_Curve, Bis1: Bisector_Curve, Bis2: Bisector_Curve) -> None: ... + def Perform( + self, C: Geom2d_Curve, Bis1: Bisector_Curve, Bis2: Bisector_Curve + ) -> None: ... def Value(self, X: float) -> Tuple[bool, float]: ... def Values(self, X: float) -> Tuple[bool, float, float]: ... @@ -55,14 +99,39 @@ class Bisector_Inter(IntRes2d_Intersection): @overload def __init__(self) -> None: ... @overload - def __init__(self, C1: Bisector_Bisec, D1: IntRes2d_Domain, C2: Bisector_Bisec, D2: IntRes2d_Domain, TolConf: float, Tol: float, ComunElement: bool) -> None: ... - def Perform(self, C1: Bisector_Bisec, D1: IntRes2d_Domain, C2: Bisector_Bisec, D2: IntRes2d_Domain, TolConf: float, Tol: float, ComunElement: bool) -> None: ... + def __init__( + self, + C1: Bisector_Bisec, + D1: IntRes2d_Domain, + C2: Bisector_Bisec, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ComunElement: bool, + ) -> None: ... + def Perform( + self, + C1: Bisector_Bisec, + D1: IntRes2d_Domain, + C2: Bisector_Bisec, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ComunElement: bool, + ) -> None: ... class Bisector_PointOnBis: @overload def __init__(self) -> None: ... @overload - def __init__(self, Param1: float, Param2: float, ParamBis: float, Distance: float, Point: gp_Pnt2d) -> None: ... + def __init__( + self, + Param1: float, + Param2: float, + ParamBis: float, + Distance: float, + Point: gp_Pnt2d, + ) -> None: ... @overload def Distance(self, Distance: float) -> None: ... @overload @@ -107,7 +176,9 @@ class Bisector_BisecAna(Bisector_Curve): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Dump(self, Deep: Optional[int] = 0, Offset: Optional[int] = 0) -> None: ... def FirstParameter(self) -> float: ... @@ -126,13 +197,54 @@ class Bisector_BisecAna(Bisector_Curve): def ParameterOfEndPoint(self) -> float: ... def ParameterOfStartPoint(self) -> float: ... @overload - def Perform(self, Cu1: Geom2d_Curve, Cu2: Geom2d_Curve, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, Sense: float, jointype: GeomAbs_JoinType, Tolerance: float, oncurve: Optional[bool] = True) -> None: ... - @overload - def Perform(self, Cu: Geom2d_Curve, Pnt: Geom2d_Point, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, Sense: float, Tolerance: float, oncurve: Optional[bool] = True) -> None: ... - @overload - def Perform(self, Pnt: Geom2d_Point, Cu: Geom2d_Curve, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, Sense: float, Tolerance: float, oncurve: Optional[bool] = True) -> None: ... - @overload - def Perform(self, Pnt1: Geom2d_Point, Pnt2: Geom2d_Point, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, Sense: float, Tolerance: Optional[float] = 0.0, oncurve: Optional[bool] = True) -> None: ... + def Perform( + self, + Cu1: Geom2d_Curve, + Cu2: Geom2d_Curve, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + Sense: float, + jointype: GeomAbs_JoinType, + Tolerance: float, + oncurve: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, + Cu: Geom2d_Curve, + Pnt: Geom2d_Point, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + Sense: float, + Tolerance: float, + oncurve: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, + Pnt: Geom2d_Point, + Cu: Geom2d_Curve, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + Sense: float, + Tolerance: float, + oncurve: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, + Pnt1: Geom2d_Point, + Pnt2: Geom2d_Point, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + Sense: float, + Tolerance: Optional[float] = 0.0, + oncurve: Optional[bool] = True, + ) -> None: ... def Reverse(self) -> None: ... def ReversedParameter(self, U: float) -> float: ... @overload @@ -145,7 +257,15 @@ class Bisector_BisecCC(Bisector_Curve): @overload def __init__(self) -> None: ... @overload - def __init__(self, Cu1: Geom2d_Curve, Cu2: Geom2d_Curve, Side1: float, Side2: float, Origin: gp_Pnt2d, DistMax: Optional[float] = 500) -> None: ... + def __init__( + self, + Cu1: Geom2d_Curve, + Cu2: Geom2d_Curve, + Side1: float, + Side2: float, + Origin: gp_Pnt2d, + DistMax: Optional[float] = 500, + ) -> None: ... def ChangeGuide(self) -> Bisector_BisecCC: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom2d_Geometry: ... @@ -153,7 +273,9 @@ class Bisector_BisecCC(Bisector_Curve): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Dump(self, Deep: Optional[int] = 0, Offset: Optional[int] = 0) -> None: ... def FirstParameter(self) -> float: ... @@ -171,7 +293,15 @@ class Bisector_BisecCC(Bisector_Curve): def LinkCurveBis(self, U: float) -> float: ... def NbIntervals(self) -> int: ... def Parameter(self, P: gp_Pnt2d) -> float: ... - def Perform(self, Cu1: Geom2d_Curve, Cu2: Geom2d_Curve, Side1: float, Side2: float, Origin: gp_Pnt2d, DistMax: Optional[float] = 500) -> None: ... + def Perform( + self, + Cu1: Geom2d_Curve, + Cu2: Geom2d_Curve, + Side1: float, + Side2: float, + Origin: gp_Pnt2d, + DistMax: Optional[float] = 500, + ) -> None: ... def Polygon(self) -> Bisector_PolyBis: ... def Reverse(self) -> None: ... def ReversedParameter(self, U: float) -> float: ... @@ -183,15 +313,21 @@ class Bisector_BisecPC(Bisector_Curve): @overload def __init__(self) -> None: ... @overload - def __init__(self, Cu: Geom2d_Curve, P: gp_Pnt2d, Side: float, DistMax: Optional[float] = 500) -> None: ... + def __init__( + self, Cu: Geom2d_Curve, P: gp_Pnt2d, Side: float, DistMax: Optional[float] = 500 + ) -> None: ... @overload - def __init__(self, Cu: Geom2d_Curve, P: gp_Pnt2d, Side: float, UMin: float, UMax: float) -> None: ... + def __init__( + self, Cu: Geom2d_Curve, P: gp_Pnt2d, Side: float, UMin: float, UMax: float + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom2d_Geometry: ... def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Distance(self, U: float) -> float: ... def Dump(self, Deep: Optional[int] = 0, Offset: Optional[int] = 0) -> None: ... @@ -210,7 +346,9 @@ class Bisector_BisecPC(Bisector_Curve): def LinkCurveBis(self, U: float) -> float: ... def NbIntervals(self) -> int: ... def Parameter(self, P: gp_Pnt2d) -> float: ... - def Perform(self, Cu: Geom2d_Curve, P: gp_Pnt2d, Side: float, DistMax: Optional[float] = 500) -> None: ... + def Perform( + self, Cu: Geom2d_Curve, P: gp_Pnt2d, Side: float, DistMax: Optional[float] = 500 + ) -> None: ... def Reverse(self) -> None: ... def ReversedParameter(self, U: float) -> float: ... def Transform(self, T: gp_Trsf2d) -> None: ... @@ -218,4 +356,3 @@ class Bisector_BisecPC(Bisector_Curve): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Blend.pyi b/src/SWIG_files/wrapper/Blend.pyi index 8197f6e0f..d811387c2 100644 --- a/src/SWIG_files/wrapper/Blend.pyi +++ b/src/SWIG_files/wrapper/Blend.pyi @@ -10,21 +10,26 @@ from OCC.Core.gp import * from OCC.Core.TColgp import * from OCC.Core.Adaptor2d import * - class Blend_SequenceOfPoint: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: Blend_Point) -> Blend_Point: ... def Clear(self) -> None: ... def First(self) -> Blend_Point: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Blend_Point: ... def Length(self) -> int: ... - def Append(self, theItem: Blend_Point) -> Blend_Point: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Blend_Point) -> Blend_Point: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Blend_Point: ... def SetValue(self, theIndex: int, theValue: Blend_Point) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Blend_Point: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Blend_DecrochStatus(IntEnum): Blend_NoDecroch: int = ... @@ -66,7 +71,14 @@ class Blend_AppFunction(math_FunctionSetWithDerivatives): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -80,11 +92,38 @@ class Blend_AppFunction(math_FunctionSetWithDerivatives): def Pnt2(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -118,21 +157,106 @@ class Blend_Point: @overload def __init__(self) -> None: ... @overload - def __init__(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d) -> None: ... - @overload - def __init__(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float) -> None: ... - @overload - def __init__(self, Pts: gp_Pnt, Ptc: gp_Pnt, Param: float, U: float, V: float, W: float, Tgs: gp_Vec, Tgc: gp_Vec, Tg2d: gp_Vec2d) -> None: ... - @overload - def __init__(self, Pts: gp_Pnt, Ptc: gp_Pnt, Param: float, U: float, V: float, W: float) -> None: ... - @overload - def __init__(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, PC: float, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d) -> None: ... - @overload - def __init__(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, PC: float) -> None: ... - @overload - def __init__(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, PC1: float, PC2: float, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d) -> None: ... - @overload - def __init__(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, PC1: float, PC2: float) -> None: ... + def __init__( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + Tg1: gp_Vec, + Tg2: gp_Vec, + Tg12d: gp_Vec2d, + Tg22d: gp_Vec2d, + ) -> None: ... + @overload + def __init__( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + ) -> None: ... + @overload + def __init__( + self, + Pts: gp_Pnt, + Ptc: gp_Pnt, + Param: float, + U: float, + V: float, + W: float, + Tgs: gp_Vec, + Tgc: gp_Vec, + Tg2d: gp_Vec2d, + ) -> None: ... + @overload + def __init__( + self, Pts: gp_Pnt, Ptc: gp_Pnt, Param: float, U: float, V: float, W: float + ) -> None: ... + @overload + def __init__( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + PC: float, + Tg1: gp_Vec, + Tg2: gp_Vec, + Tg12d: gp_Vec2d, + Tg22d: gp_Vec2d, + ) -> None: ... + @overload + def __init__( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + PC: float, + ) -> None: ... + @overload + def __init__( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + PC1: float, + PC2: float, + Tg1: gp_Vec, + Tg2: gp_Vec, + Tg12d: gp_Vec2d, + Tg22d: gp_Vec2d, + ) -> None: ... + @overload + def __init__( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + PC1: float, + PC2: float, + ) -> None: ... def IsTangencyPoint(self) -> bool: ... def Parameter(self) -> float: ... def ParameterOnC(self) -> float: ... @@ -149,23 +273,110 @@ class Blend_Point: def PointOnS2(self) -> gp_Pnt: ... def SetParameter(self, Param: float) -> None: ... @overload - def SetValue(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d) -> None: ... - @overload - def SetValue(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float) -> None: ... - @overload - def SetValue(self, Pts: gp_Pnt, Ptc: gp_Pnt, Param: float, U: float, V: float, W: float, Tgs: gp_Vec, Tgc: gp_Vec, Tg2d: gp_Vec2d) -> None: ... - @overload - def SetValue(self, Pts: gp_Pnt, Ptc: gp_Pnt, Param: float, U: float, V: float, W: float) -> None: ... - @overload - def SetValue(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, PC: float, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d) -> None: ... - @overload - def SetValue(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, PC: float) -> None: ... - @overload - def SetValue(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, PC1: float, PC2: float, Tg1: gp_Vec, Tg2: gp_Vec, Tg12d: gp_Vec2d, Tg22d: gp_Vec2d) -> None: ... - @overload - def SetValue(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, U1: float, V1: float, U2: float, V2: float, PC1: float, PC2: float) -> None: ... - @overload - def SetValue(self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, PC1: float, PC2: float) -> None: ... + def SetValue( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + Tg1: gp_Vec, + Tg2: gp_Vec, + Tg12d: gp_Vec2d, + Tg22d: gp_Vec2d, + ) -> None: ... + @overload + def SetValue( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + ) -> None: ... + @overload + def SetValue( + self, + Pts: gp_Pnt, + Ptc: gp_Pnt, + Param: float, + U: float, + V: float, + W: float, + Tgs: gp_Vec, + Tgc: gp_Vec, + Tg2d: gp_Vec2d, + ) -> None: ... + @overload + def SetValue( + self, Pts: gp_Pnt, Ptc: gp_Pnt, Param: float, U: float, V: float, W: float + ) -> None: ... + @overload + def SetValue( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + PC: float, + Tg1: gp_Vec, + Tg2: gp_Vec, + Tg12d: gp_Vec2d, + Tg22d: gp_Vec2d, + ) -> None: ... + @overload + def SetValue( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + PC: float, + ) -> None: ... + @overload + def SetValue( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + PC1: float, + PC2: float, + Tg1: gp_Vec, + Tg2: gp_Vec, + Tg12d: gp_Vec2d, + Tg22d: gp_Vec2d, + ) -> None: ... + @overload + def SetValue( + self, + Pt1: gp_Pnt, + Pt2: gp_Pnt, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + PC1: float, + PC2: float, + ) -> None: ... + @overload + def SetValue( + self, Pt1: gp_Pnt, Pt2: gp_Pnt, Param: float, PC1: float, PC2: float + ) -> None: ... def Tangent2d(self) -> gp_Vec2d: ... def Tangent2dOnS1(self) -> gp_Vec2d: ... def Tangent2dOnS2(self) -> gp_Vec2d: ... @@ -206,7 +417,14 @@ class Blend_CSFunction(Blend_AppFunction): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... def IsTangencyPoint(self) -> bool: ... def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... @@ -220,11 +438,38 @@ class Blend_CSFunction(Blend_AppFunction): def PointOnC(self) -> gp_Pnt: ... def PointOnS(self) -> gp_Pnt: ... @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -244,10 +489,38 @@ class Blend_Function(Blend_AppFunction): def PointOnS1(self) -> gp_Pnt: ... def PointOnS2(self) -> gp_Pnt: ... @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - def Tangent(self, U1: float, V1: float, U2: float, V2: float, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: gp_Vec) -> None: ... + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + def Tangent( + self, + U1: float, + V1: float, + U2: float, + V2: float, + TgFirst: gp_Vec, + TgLast: gp_Vec, + NormFirst: gp_Vec, + NormLast: gp_Vec, + ) -> None: ... def Tangent2dOnS1(self) -> gp_Vec2d: ... def Tangent2dOnS2(self) -> gp_Vec2d: ... def TangentOnS1(self) -> gp_Vec: ... @@ -256,7 +529,14 @@ class Blend_Function(Blend_AppFunction): def TwistOnS2(self) -> bool: ... class Blend_RstRstFunction(Blend_AppFunction): - def Decroch(self, Sol: math_Vector, NRst1: gp_Vec, TgRst1: gp_Vec, NRst2: gp_Vec, TgRst2: gp_Vec) -> Blend_DecrochStatus: ... + def Decroch( + self, + Sol: math_Vector, + NRst1: gp_Vec, + TgRst1: gp_Vec, + NRst2: gp_Vec, + TgRst2: gp_Vec, + ) -> Blend_DecrochStatus: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetMinimalDistance(self) -> float: ... @@ -266,7 +546,14 @@ class Blend_RstRstFunction(Blend_AppFunction): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -285,11 +572,38 @@ class Blend_RstRstFunction(Blend_AppFunction): def PointOnRst1(self) -> gp_Pnt: ... def PointOnRst2(self) -> gp_Pnt: ... @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -312,7 +626,14 @@ class Blend_SurfRstFunction(Blend_AppFunction): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -330,11 +651,38 @@ class Blend_SurfRstFunction(Blend_AppFunction): def PointOnRst(self) -> gp_Pnt: ... def PointOnS(self) -> gp_Pnt: ... @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -349,4 +697,3 @@ class Blend_SurfRstFunction(Blend_AppFunction): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BlendFunc.pyi b/src/SWIG_files/wrapper/BlendFunc.pyi index e81f12d71..878a1decd 100644 --- a/src/SWIG_files/wrapper/BlendFunc.pyi +++ b/src/SWIG_files/wrapper/BlendFunc.pyi @@ -14,7 +14,6 @@ from OCC.Core.math import * from OCC.Core.TColgp import * from OCC.Core.Adaptor2d import * - class BlendFunc_SectionShape(IntEnum): BlendFunc_Rational: int = ... BlendFunc_QuasiAngular: int = ... @@ -28,28 +27,61 @@ BlendFunc_Linear = BlendFunc_SectionShape.BlendFunc_Linear class blendfunc: @staticmethod - def ComputeDNormal(Surf: Adaptor3d_Surface, p2d: gp_Pnt2d, Normal: gp_Vec, DNu: gp_Vec, DNv: gp_Vec) -> bool: ... + def ComputeDNormal( + Surf: Adaptor3d_Surface, p2d: gp_Pnt2d, Normal: gp_Vec, DNu: gp_Vec, DNv: gp_Vec + ) -> bool: ... @staticmethod - def ComputeNormal(Surf: Adaptor3d_Surface, p2d: gp_Pnt2d, Normal: gp_Vec) -> bool: ... + def ComputeNormal( + Surf: Adaptor3d_Surface, p2d: gp_Pnt2d, Normal: gp_Vec + ) -> bool: ... @staticmethod - def GetMinimalWeights(SectShape: BlendFunc_SectionShape, TConv: Convert_ParameterisationType, AngleMin: float, AngleMax: float, Weigths: TColStd_Array1OfReal) -> None: ... + def GetMinimalWeights( + SectShape: BlendFunc_SectionShape, + TConv: Convert_ParameterisationType, + AngleMin: float, + AngleMax: float, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @staticmethod - def GetShape(SectShape: BlendFunc_SectionShape, MaxAng: float) -> Tuple[int, int, int, Convert_ParameterisationType]: ... + def GetShape( + SectShape: BlendFunc_SectionShape, MaxAng: float + ) -> Tuple[int, int, int, Convert_ParameterisationType]: ... @staticmethod def NextShape(S: GeomAbs_Shape) -> GeomAbs_Shape: ... class BlendFunc_CSCircular(Blend_CSFunction): - def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, CGuide: Adaptor3d_Curve, L: Law_Function) -> None: ... + def __init__( + self, + S: Adaptor3d_Surface, + C: Adaptor3d_Curve, + CGuide: Adaptor3d_Curve, + L: Law_Function, + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetSection(self, Param: float, U: float, V: float, W: float, tabP: TColgp_Array1OfPnt, tabV: TColgp_Array1OfVec) -> bool: ... + def GetSection( + self, + Param: float, + U: float, + V: float, + W: float, + tabP: TColgp_Array1OfPnt, + tabV: TColgp_Array1OfVec, + ) -> bool: ... def GetSectionSize(self) -> float: ... def GetShape(self) -> Tuple[int, int, int, int]: ... @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -65,13 +97,42 @@ class BlendFunc_CSCircular(Blend_CSFunction): def PointOnS(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U: float, V: float, W: float, C: gp_Circ) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, Param: float, U: float, V: float, W: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -88,17 +149,34 @@ class BlendFunc_CSCircular(Blend_CSFunction): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BlendFunc_CSConstRad(Blend_CSFunction): - def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, CGuide: Adaptor3d_Curve) -> None: ... + def __init__( + self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, CGuide: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetSection(self, Param: float, U: float, V: float, W: float, tabP: TColgp_Array1OfPnt, tabV: TColgp_Array1OfVec) -> bool: ... + def GetSection( + self, + Param: float, + U: float, + V: float, + W: float, + tabP: TColgp_Array1OfPnt, + tabV: TColgp_Array1OfVec, + ) -> bool: ... def GetSectionSize(self) -> float: ... def GetShape(self) -> Tuple[int, int, int, int]: ... @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -113,13 +191,42 @@ class BlendFunc_CSConstRad(Blend_CSFunction): def PointOnS(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U: float, V: float, W: float, C: gp_Circ) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, Param: float, U: float, V: float, W: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -136,7 +243,9 @@ class BlendFunc_CSConstRad(Blend_CSFunction): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BlendFunc_ChAsym(Blend_Function): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def ComputeValues(self, X: math_Vector, DegF: int, DegL: int) -> bool: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... @@ -147,7 +256,14 @@ class BlendFunc_ChAsym(Blend_Function): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -160,20 +276,59 @@ class BlendFunc_ChAsym(Blend_Function): def PointOnS2(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U1: float, V1: float, U2: float, V2: float, C: gp_Lin) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def Section( + self, Param: float, U1: float, V1: float, U2: float, V2: float, C: gp_Lin + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... @overload def Set(self, Param: float) -> None: ... @overload def Set(self, First: float, Last: float) -> None: ... @overload def Set(self, Dist1: float, Angle: float, Choix: int) -> None: ... - def Tangent(self, U1: float, V1: float, U2: float, V2: float, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: gp_Vec) -> None: ... + def Tangent( + self, + U1: float, + V1: float, + U2: float, + V2: float, + TgFirst: gp_Vec, + TgLast: gp_Vec, + NormFirst: gp_Vec, + NormLast: gp_Vec, + ) -> None: ... def Tangent2dOnS1(self) -> gp_Vec2d: ... def Tangent2dOnS2(self) -> gp_Vec2d: ... def TangentOnS1(self) -> gp_Vec: ... @@ -184,7 +339,9 @@ class BlendFunc_ChAsym(Blend_Function): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BlendFunc_ChAsymInv(Blend_FuncInv): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def ComputeValues(self, X: math_Vector, DegF: int, DegL: int) -> bool: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... @@ -199,7 +356,9 @@ class BlendFunc_ChAsymInv(Blend_FuncInv): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BlendFunc_ConstRad(Blend_Function): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def AxeRot(self, Prm: float) -> gp_Ax1: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... @@ -210,7 +369,14 @@ class BlendFunc_ConstRad(Blend_Function): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -223,13 +389,42 @@ class BlendFunc_ConstRad(Blend_Function): def PointOnS2(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U1: float, V1: float, U2: float, V2: float, C: gp_Circ) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, Param: float, U1: float, V1: float, U2: float, V2: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -238,7 +433,17 @@ class BlendFunc_ConstRad(Blend_Function): def Set(self, Radius: float, Choix: int) -> None: ... @overload def Set(self, TypeSection: BlendFunc_SectionShape) -> None: ... - def Tangent(self, U1: float, V1: float, U2: float, V2: float, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: gp_Vec) -> None: ... + def Tangent( + self, + U1: float, + V1: float, + U2: float, + V2: float, + TgFirst: gp_Vec, + TgLast: gp_Vec, + NormFirst: gp_Vec, + NormLast: gp_Vec, + ) -> None: ... def Tangent2dOnS1(self) -> gp_Vec2d: ... def Tangent2dOnS2(self) -> gp_Vec2d: ... def TangentOnS1(self) -> gp_Vec: ... @@ -249,7 +454,9 @@ class BlendFunc_ConstRad(Blend_Function): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BlendFunc_ConstRadInv(Blend_FuncInv): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @@ -278,7 +485,13 @@ class BlendFunc_Corde: def Value(self, X: math_Vector, F: math_Vector) -> bool: ... class BlendFunc_EvolRad(Blend_Function): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve, Law: Law_Function) -> None: ... + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + C: Adaptor3d_Curve, + Law: Law_Function, + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetMinimalDistance(self) -> float: ... @@ -288,7 +501,14 @@ class BlendFunc_EvolRad(Blend_Function): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -301,13 +521,42 @@ class BlendFunc_EvolRad(Blend_Function): def PointOnS2(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U1: float, V1: float, U2: float, V2: float, C: gp_Circ) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, Param: float, U1: float, V1: float, U2: float, V2: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -316,7 +565,17 @@ class BlendFunc_EvolRad(Blend_Function): def Set(self, Choix: int) -> None: ... @overload def Set(self, TypeSection: BlendFunc_SectionShape) -> None: ... - def Tangent(self, U1: float, V1: float, U2: float, V2: float, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: gp_Vec) -> None: ... + def Tangent( + self, + U1: float, + V1: float, + U2: float, + V2: float, + TgFirst: gp_Vec, + TgLast: gp_Vec, + NormFirst: gp_Vec, + NormLast: gp_Vec, + ) -> None: ... def Tangent2dOnS1(self) -> gp_Vec2d: ... def Tangent2dOnS2(self) -> gp_Vec2d: ... def TangentOnS1(self) -> gp_Vec: ... @@ -327,7 +586,13 @@ class BlendFunc_EvolRad(Blend_Function): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BlendFunc_EvolRadInv(Blend_FuncInv): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve, Law: Law_Function) -> None: ... + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + C: Adaptor3d_Curve, + Law: Law_Function, + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @@ -358,7 +623,14 @@ class BlendFunc_GenChamfer(Blend_Function): @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... @@ -367,13 +639,42 @@ class BlendFunc_GenChamfer(Blend_Function): def NbIntervals(self, S: GeomAbs_Shape) -> int: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, Param: float, U1: float, V1: float, U2: float, V2: float, C: gp_Lin) -> Tuple[float, float]: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, Param: float, U1: float, V1: float, U2: float, V2: float, C: gp_Lin + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload def Set(self, Param: float) -> None: ... @overload @@ -383,19 +684,37 @@ class BlendFunc_GenChamfer(Blend_Function): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BlendFunc_Ruled(Blend_Function): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def AxeRot(self, Prm: float) -> gp_Ax1: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetMinimalDistance(self) -> float: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetSection(self, Param: float, U1: float, V1: float, U2: float, V2: float, tabP: TColgp_Array1OfPnt, tabV: TColgp_Array1OfVec) -> bool: ... + def GetSection( + self, + Param: float, + U1: float, + V1: float, + U2: float, + V2: float, + tabP: TColgp_Array1OfPnt, + tabV: TColgp_Array1OfVec, + ) -> bool: ... def GetSectionSize(self) -> float: ... def GetShape(self) -> Tuple[int, int, int, int]: ... @overload def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @overload - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: math_Vector, Tol1D: math_Vector) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -408,16 +727,53 @@ class BlendFunc_Ruled(Blend_Function): def PointOnS2(self) -> gp_Pnt: ... def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: Blend_Point, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload def Set(self, Param: float) -> None: ... @overload def Set(self, First: float, Last: float) -> None: ... - def Tangent(self, U1: float, V1: float, U2: float, V2: float, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: gp_Vec) -> None: ... + def Tangent( + self, + U1: float, + V1: float, + U2: float, + V2: float, + TgFirst: gp_Vec, + TgLast: gp_Vec, + NormFirst: gp_Vec, + NormLast: gp_Vec, + ) -> None: ... def Tangent2dOnS1(self) -> gp_Vec2d: ... def Tangent2dOnS2(self) -> gp_Vec2d: ... def TangentOnS1(self) -> gp_Vec: ... @@ -426,7 +782,9 @@ class BlendFunc_Ruled(Blend_Function): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class BlendFunc_RuledInv(Blend_FuncInv): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... @@ -445,14 +803,18 @@ class BlendFunc_Tensor: def Value(self, Row: int, Col: int, Mat: int) -> float: ... class BlendFunc_ChamfInv(BlendFunc_GenChamfInv): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... def Set(self, Dist1: float, Dist2: float, Choix: int) -> None: ... def Value(self, X: math_Vector, F: math_Vector) -> bool: ... class BlendFunc_Chamfer(BlendFunc_GenChamfer): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, CG: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, CG: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetSectionSize(self) -> float: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -463,7 +825,17 @@ class BlendFunc_Chamfer(BlendFunc_GenChamfer): def Set(self, Param: float) -> None: ... @overload def Set(self, Dist1: float, Dist2: float, Choix: int) -> None: ... - def Tangent(self, U1: float, V1: float, U2: float, V2: float, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: gp_Vec) -> None: ... + def Tangent( + self, + U1: float, + V1: float, + U2: float, + V2: float, + TgFirst: gp_Vec, + TgLast: gp_Vec, + NormFirst: gp_Vec, + NormLast: gp_Vec, + ) -> None: ... def Tangent2dOnS1(self) -> gp_Vec2d: ... def Tangent2dOnS2(self) -> gp_Vec2d: ... def TangentOnS1(self) -> gp_Vec: ... @@ -471,7 +843,9 @@ class BlendFunc_Chamfer(BlendFunc_GenChamfer): def Value(self, X: math_Vector, F: math_Vector) -> bool: ... class BlendFunc_ConstThroat(BlendFunc_GenChamfer): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetSectionSize(self) -> float: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -480,7 +854,17 @@ class BlendFunc_ConstThroat(BlendFunc_GenChamfer): def PointOnS2(self) -> gp_Pnt: ... @overload def Set(self, Param: float) -> None: ... - def Tangent(self, U1: float, V1: float, U2: float, V2: float, TgFirst: gp_Vec, TgLast: gp_Vec, NormFirst: gp_Vec, NormLast: gp_Vec) -> None: ... + def Tangent( + self, + U1: float, + V1: float, + U2: float, + V2: float, + TgFirst: gp_Vec, + TgLast: gp_Vec, + NormFirst: gp_Vec, + NormLast: gp_Vec, + ) -> None: ... def Tangent2dOnS1(self) -> gp_Vec2d: ... def Tangent2dOnS2(self) -> gp_Vec2d: ... def TangentOnS1(self) -> gp_Vec: ... @@ -488,13 +872,17 @@ class BlendFunc_ConstThroat(BlendFunc_GenChamfer): def Value(self, X: math_Vector, F: math_Vector) -> bool: ... class BlendFunc_ConstThroatInv(BlendFunc_GenChamfInv): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... def Value(self, X: math_Vector, F: math_Vector) -> bool: ... class BlendFunc_ConstThroatWithPenetration(BlendFunc_ConstThroat): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def GetSectionSize(self) -> float: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... @@ -505,7 +893,9 @@ class BlendFunc_ConstThroatWithPenetration(BlendFunc_ConstThroat): def Value(self, X: math_Vector, F: math_Vector) -> bool: ... class BlendFunc_ConstThroatWithPenetrationInv(BlendFunc_ConstThroatInv): - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, C: Adaptor3d_Curve + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... def Value(self, X: math_Vector, F: math_Vector) -> bool: ... @@ -513,4 +903,3 @@ class BlendFunc_ConstThroatWithPenetrationInv(BlendFunc_ConstThroatInv): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Bnd.pyi b/src/SWIG_files/wrapper/Bnd.pyi index b36b73926..3ff266f78 100644 --- a/src/SWIG_files/wrapper/Bnd.pyi +++ b/src/SWIG_files/wrapper/Bnd.pyi @@ -8,7 +8,6 @@ from OCC.Core.TColStd import * from OCC.Core.TColgp import * from OCC.Core.BVH import * - class Bnd_Array1OfBox: @overload def __init__(self) -> None: ... @@ -103,7 +102,9 @@ class Bnd_B2d: @overload def IsOut(self, thePnt: gp_XY) -> bool: ... @overload - def IsOut(self, theCenter: gp_XY, theRadius: float, isCircleHollow: Optional[bool] = False) -> bool: ... + def IsOut( + self, theCenter: gp_XY, theRadius: float, isCircleHollow: Optional[bool] = False + ) -> bool: ... @overload def IsOut(self, theOtherBox: Bnd_B2d) -> bool: ... @overload @@ -141,7 +142,9 @@ class Bnd_B2f: @overload def IsOut(self, thePnt: gp_XY) -> bool: ... @overload - def IsOut(self, theCenter: gp_XY, theRadius: float, isCircleHollow: Optional[bool] = False) -> bool: ... + def IsOut( + self, theCenter: gp_XY, theRadius: float, isCircleHollow: Optional[bool] = False + ) -> bool: ... @overload def IsOut(self, theOtherBox: Bnd_B2f) -> bool: ... @overload @@ -179,13 +182,23 @@ class Bnd_B3d: @overload def IsOut(self, thePnt: gp_XYZ) -> bool: ... @overload - def IsOut(self, theCenter: gp_XYZ, theRadius: float, isSphereHollow: Optional[bool] = False) -> bool: ... + def IsOut( + self, + theCenter: gp_XYZ, + theRadius: float, + isSphereHollow: Optional[bool] = False, + ) -> bool: ... @overload def IsOut(self, theOtherBox: Bnd_B3d) -> bool: ... @overload def IsOut(self, theOtherBox: Bnd_B3d, theTrsf: gp_Trsf) -> bool: ... @overload - def IsOut(self, theLine: gp_Ax1, isRay: Optional[bool] = False, theOverthickness: Optional[float] = 0.0) -> bool: ... + def IsOut( + self, + theLine: gp_Ax1, + isRay: Optional[bool] = False, + theOverthickness: Optional[float] = 0.0, + ) -> bool: ... @overload def IsOut(self, thePlane: gp_Ax3) -> bool: ... def IsVoid(self) -> bool: ... @@ -217,13 +230,23 @@ class Bnd_B3f: @overload def IsOut(self, thePnt: gp_XYZ) -> bool: ... @overload - def IsOut(self, theCenter: gp_XYZ, theRadius: float, isSphereHollow: Optional[bool] = False) -> bool: ... + def IsOut( + self, + theCenter: gp_XYZ, + theRadius: float, + isSphereHollow: Optional[bool] = False, + ) -> bool: ... @overload def IsOut(self, theOtherBox: Bnd_B3f) -> bool: ... @overload def IsOut(self, theOtherBox: Bnd_B3f, theTrsf: gp_Trsf) -> bool: ... @overload - def IsOut(self, theLine: gp_Ax1, isRay: Optional[bool] = False, theOverthickness: Optional[float] = 0.0) -> bool: ... + def IsOut( + self, + theLine: gp_Ax1, + isRay: Optional[bool] = False, + theOverthickness: Optional[float] = 0.0, + ) -> bool: ... @overload def IsOut(self, thePlane: gp_Ax3) -> bool: ... def IsVoid(self) -> bool: ... @@ -266,7 +289,7 @@ class Bnd_Box: def CornerMin(self) -> gp_Pnt: ... def Distance(self, Other: Bnd_Box) -> float: ... def Dump(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Enlarge(self, Tol: float) -> None: ... def FinitePart(self) -> Bnd_Box: ... def Get(self) -> Tuple[float, float, float, float, float, float]: ... @@ -316,7 +339,15 @@ class Bnd_Box: def SquareExtent(self) -> float: ... def Transformed(self, T: gp_Trsf) -> Bnd_Box: ... @overload - def Update(self, aXmin: float, aYmin: float, aZmin: float, aXmax: float, aYmax: float, aZmax: float) -> None: ... + def Update( + self, + aXmin: float, + aYmin: float, + aZmin: float, + aXmax: float, + aYmax: float, + aZmax: float, + ) -> None: ... @overload def Update(self, X: float, Y: float, Z: float) -> None: ... @@ -366,7 +397,9 @@ class Bnd_Box2d: def SquareExtent(self) -> float: ... def Transformed(self, T: gp_Trsf2d) -> Bnd_Box2d: ... @overload - def Update(self, aXmin: float, aYmin: float, aXmax: float, aYmax: float) -> None: ... + def Update( + self, aXmin: float, aYmin: float, aXmax: float, aYmax: float + ) -> None: ... @overload def Update(self, X: float, Y: float) -> None: ... @@ -374,7 +407,16 @@ class Bnd_OBB: @overload def __init__(self) -> None: ... @overload - def __init__(self, theCenter: gp_Pnt, theXDirection: gp_Dir, theYDirection: gp_Dir, theZDirection: gp_Dir, theHXSize: float, theHYSize: float, theHZSize: float) -> None: ... + def __init__( + self, + theCenter: gp_Pnt, + theXDirection: gp_Dir, + theYDirection: gp_Dir, + theZDirection: gp_Dir, + theHXSize: float, + theHYSize: float, + theHZSize: float, + ) -> None: ... @overload def __init__(self, theBox: Bnd_Box) -> None: ... @overload @@ -382,7 +424,7 @@ class Bnd_OBB: @overload def Add(self, theP: gp_Pnt) -> None: ... def Center(self) -> gp_XYZ: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Enlarge(self, theGapAdd: float) -> None: ... def GetVertex(self, theP_list: List[gp_Pnt]) -> bool: ... def IsAABox(self) -> bool: ... @@ -393,7 +435,12 @@ class Bnd_OBB: def IsOut(self, theP: gp_Pnt) -> bool: ... def IsVoid(self) -> bool: ... def Position(self) -> gp_Ax3: ... - def ReBuild(self, theListOfPoints: TColgp_Array1OfPnt, theListOfTolerances: Optional[TColStd_Array1OfReal] = 0, theIsOptimal: Optional[bool] = False) -> None: ... + def ReBuild( + self, + theListOfPoints: TColgp_Array1OfPnt, + theListOfTolerances: Optional[TColStd_Array1OfReal] = 0, + theIsOptimal: Optional[bool] = False, + ) -> None: ... def SetAABox(self, theFlag: bool) -> None: ... def SetCenter(self, theCenter: gp_Pnt) -> None: ... def SetVoid(self) -> None: ... @@ -419,7 +466,7 @@ class Bnd_Range: def Add(self, theRange: Bnd_Range) -> None: ... def Common(self, theOther: Bnd_Range) -> None: ... def Delta(self) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Enlarge(self, theDelta: float) -> None: ... def GetBounds(self) -> Tuple[bool, float, float]: ... def GetIntermediatePoint(self, theLambda: float) -> Tuple[bool, float]: ... @@ -442,7 +489,9 @@ class Bnd_Sphere: @overload def __init__(self) -> None: ... @overload - def __init__(self, theCntr: gp_XYZ, theRad: float, theU: int, theV: int) -> None: ... + def __init__( + self, theCntr: gp_XYZ, theRad: float, theU: int, theV: int + ) -> None: ... def Add(self, theOther: Bnd_Sphere) -> None: ... def Center(self) -> gp_XYZ: ... def Distance(self, theNode: gp_XYZ) -> float: ... @@ -452,7 +501,9 @@ class Bnd_Sphere: @overload def IsOut(self, thePnt: gp_XYZ) -> Tuple[bool, float]: ... def IsValid(self) -> bool: ... - def Project(self, theNode: gp_XYZ, theProjNode: gp_XYZ) -> Tuple[bool, float, bool]: ... + def Project( + self, theNode: gp_XYZ, theProjNode: gp_XYZ + ) -> Tuple[bool, float, bool]: ... def Radius(self) -> float: ... def SetValid(self, isValid: bool) -> None: ... def SquareDistance(self, theNode: gp_XYZ) -> float: ... @@ -475,16 +526,13 @@ class Bnd_HArray1OfBox(Bnd_Array1OfBox, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Bnd_Array1OfBox: ... - class Bnd_HArray1OfBox2d(Bnd_Array1OfBox2d, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Bnd_Array1OfBox2d: ... - class Bnd_HArray1OfSphere(Bnd_Array1OfSphere, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Bnd_Array1OfSphere: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/BndLib.pyi b/src/SWIG_files/wrapper/BndLib.pyi index a05823bbd..7732d91bc 100644 --- a/src/SWIG_files/wrapper/BndLib.pyi +++ b/src/SWIG_files/wrapper/BndLib.pyi @@ -9,7 +9,6 @@ from OCC.Core.Adaptor2d import * from OCC.Core.Geom2d import * from OCC.Core.Adaptor3d import * - class bndlib: @overload @staticmethod @@ -55,13 +54,31 @@ class bndlib: def Add(H: gp_Hypr2d, P1: float, P2: float, Tol: float, B: Bnd_Box2d) -> None: ... @overload @staticmethod - def Add(S: gp_Cylinder, UMin: float, UMax: float, VMin: float, VMax: float, Tol: float, B: Bnd_Box) -> None: ... + def Add( + S: gp_Cylinder, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Tol: float, + B: Bnd_Box, + ) -> None: ... @overload @staticmethod - def Add(S: gp_Cylinder, VMin: float, VMax: float, Tol: float, B: Bnd_Box) -> None: ... + def Add( + S: gp_Cylinder, VMin: float, VMax: float, Tol: float, B: Bnd_Box + ) -> None: ... @overload @staticmethod - def Add(S: gp_Cone, UMin: float, UMax: float, VMin: float, VMax: float, Tol: float, B: Bnd_Box) -> None: ... + def Add( + S: gp_Cone, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Tol: float, + B: Bnd_Box, + ) -> None: ... @overload @staticmethod def Add(S: gp_Cone, VMin: float, VMax: float, Tol: float, B: Bnd_Box) -> None: ... @@ -70,13 +87,29 @@ class bndlib: def Add(S: gp_Sphere, Tol: float, B: Bnd_Box) -> None: ... @overload @staticmethod - def Add(S: gp_Sphere, UMin: float, UMax: float, VMin: float, VMax: float, Tol: float, B: Bnd_Box) -> None: ... + def Add( + S: gp_Sphere, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Tol: float, + B: Bnd_Box, + ) -> None: ... @overload @staticmethod def Add(P: gp_Torus, Tol: float, B: Bnd_Box) -> None: ... @overload @staticmethod - def Add(P: gp_Torus, UMin: float, UMax: float, VMin: float, VMax: float, Tol: float, B: Bnd_Box) -> None: ... + def Add( + P: gp_Torus, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Tol: float, + B: Bnd_Box, + ) -> None: ... class BndLib_Add2dCurve: @overload @@ -84,15 +117,21 @@ class BndLib_Add2dCurve: def Add(C: Adaptor2d_Curve2d, Tol: float, B: Bnd_Box2d) -> None: ... @overload @staticmethod - def Add(C: Adaptor2d_Curve2d, U1: float, U2: float, Tol: float, B: Bnd_Box2d) -> None: ... + def Add( + C: Adaptor2d_Curve2d, U1: float, U2: float, Tol: float, B: Bnd_Box2d + ) -> None: ... @overload @staticmethod def Add(C: Geom2d_Curve, Tol: float, Box: Bnd_Box2d) -> None: ... @overload @staticmethod - def Add(C: Geom2d_Curve, U1: float, U2: float, Tol: float, B: Bnd_Box2d) -> None: ... + def Add( + C: Geom2d_Curve, U1: float, U2: float, Tol: float, B: Bnd_Box2d + ) -> None: ... @staticmethod - def AddOptimal(C: Geom2d_Curve, U1: float, U2: float, Tol: float, B: Bnd_Box2d) -> None: ... + def AddOptimal( + C: Geom2d_Curve, U1: float, U2: float, Tol: float, B: Bnd_Box2d + ) -> None: ... class BndLib_Add3dCurve: @overload @@ -100,15 +139,21 @@ class BndLib_Add3dCurve: def Add(C: Adaptor3d_Curve, Tol: float, B: Bnd_Box) -> None: ... @overload @staticmethod - def Add(C: Adaptor3d_Curve, U1: float, U2: float, Tol: float, B: Bnd_Box) -> None: ... + def Add( + C: Adaptor3d_Curve, U1: float, U2: float, Tol: float, B: Bnd_Box + ) -> None: ... @staticmethod - def AddGenCurv(C: Adaptor3d_Curve, UMin: float, UMax: float, Tol: float, B: Bnd_Box) -> None: ... + def AddGenCurv( + C: Adaptor3d_Curve, UMin: float, UMax: float, Tol: float, B: Bnd_Box + ) -> None: ... @overload @staticmethod def AddOptimal(C: Adaptor3d_Curve, Tol: float, B: Bnd_Box) -> None: ... @overload @staticmethod - def AddOptimal(C: Adaptor3d_Curve, U1: float, U2: float, Tol: float, B: Bnd_Box) -> None: ... + def AddOptimal( + C: Adaptor3d_Curve, U1: float, U2: float, Tol: float, B: Bnd_Box + ) -> None: ... class BndLib_AddSurface: @overload @@ -116,17 +161,40 @@ class BndLib_AddSurface: def Add(S: Adaptor3d_Surface, Tol: float, B: Bnd_Box) -> None: ... @overload @staticmethod - def Add(S: Adaptor3d_Surface, UMin: float, UMax: float, VMin: float, VMax: float, Tol: float, B: Bnd_Box) -> None: ... + def Add( + S: Adaptor3d_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Tol: float, + B: Bnd_Box, + ) -> None: ... @staticmethod - def AddGenSurf(S: Adaptor3d_Surface, UMin: float, UMax: float, VMin: float, VMax: float, Tol: float, B: Bnd_Box) -> None: ... + def AddGenSurf( + S: Adaptor3d_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Tol: float, + B: Bnd_Box, + ) -> None: ... @overload @staticmethod def AddOptimal(S: Adaptor3d_Surface, Tol: float, B: Bnd_Box) -> None: ... @overload @staticmethod - def AddOptimal(S: Adaptor3d_Surface, UMin: float, UMax: float, VMin: float, VMax: float, Tol: float, B: Bnd_Box) -> None: ... + def AddOptimal( + S: Adaptor3d_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Tol: float, + B: Bnd_Box, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/CDF.pyi b/src/SWIG_files/wrapper/CDF.pyi index f70000b1d..c11ce94c5 100644 --- a/src/SWIG_files/wrapper/CDF.pyi +++ b/src/SWIG_files/wrapper/CDF.pyi @@ -8,14 +8,15 @@ from OCC.Core.TCollection import * from OCC.Core.PCDM import * from OCC.Core.Message import * - class CDF_StoreSetNameStatus(IntEnum): CDF_SSNS_OK: int = ... CDF_SSNS_ReplacingAnExistentDocument: int = ... CDF_SSNS_OpenDocument: int = ... CDF_SSNS_OK = CDF_StoreSetNameStatus.CDF_SSNS_OK -CDF_SSNS_ReplacingAnExistentDocument = CDF_StoreSetNameStatus.CDF_SSNS_ReplacingAnExistentDocument +CDF_SSNS_ReplacingAnExistentDocument = ( + CDF_StoreSetNameStatus.CDF_SSNS_ReplacingAnExistentDocument +) CDF_SSNS_OpenDocument = CDF_StoreSetNameStatus.CDF_SSNS_OpenDocument class CDF_SubComponentStatus(IntEnum): @@ -52,9 +53,13 @@ CDF_TOA_Unchanged = CDF_TypeOfActivation.CDF_TOA_Unchanged class CDF_Application(CDM_Application): def CanClose(self, aDocument: CDM_Document) -> CDM_CanCloseStatus: ... @overload - def CanRetrieve(self, theFolder: str, theName: str, theAppendMode: bool) -> PCDM_ReaderStatus: ... + def CanRetrieve( + self, theFolder: str, theName: str, theAppendMode: bool + ) -> PCDM_ReaderStatus: ... @overload - def CanRetrieve(self, theFolder: str, theName: str, theVersion: str, theAppendMode: bool) -> PCDM_ReaderStatus: ... + def CanRetrieve( + self, theFolder: str, theName: str, theVersion: str, theAppendMode: bool + ) -> PCDM_ReaderStatus: ... def Close(self, aDocument: CDM_Document) -> None: ... def DefaultFolder(self) -> Standard_ExtString: ... def Format(self, aFileName: str, theFormat: str) -> bool: ... @@ -65,12 +70,33 @@ class CDF_Application(CDM_Application): def MetaDataDriver(self) -> CDF_MetaDataDriver: ... def NewDocument(self, theFormat: str, theDoc: CDM_Document) -> None: ... def Open(self, aDocument: CDM_Document) -> None: ... - def Read(self, theIStream: str, theDocument: CDM_Document, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + theIStream: str, + theDocument: CDM_Document, + theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def ReaderFromFormat(self, aFormat: str) -> PCDM_Reader: ... @overload - def Retrieve(self, aFolder: str, aName: str, UseStorageConfiguration: Optional[bool] = True, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> CDM_Document: ... + def Retrieve( + self, + aFolder: str, + aName: str, + UseStorageConfiguration: Optional[bool] = True, + theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> CDM_Document: ... @overload - def Retrieve(self, aFolder: str, aName: str, aVersion: str, UseStorageConfiguration: Optional[bool] = True, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> CDM_Document: ... + def Retrieve( + self, + aFolder: str, + aName: str, + aVersion: str, + UseStorageConfiguration: Optional[bool] = True, + theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> CDM_Document: ... def SetDefaultFolder(self, aFolder: Standard_ExtString) -> bool: ... def WriterFromFormat(self, aFormat: str) -> PCDM_StorageDriver: ... @@ -85,9 +111,19 @@ class CDF_Directory(Standard_Transient): class CDF_MetaDataDriver(Standard_Transient): def BuildFileName(self, aDocument: CDM_Document) -> str: ... - def CreateDependsOn(self, aFirstData: CDM_MetaData, aSecondData: CDM_MetaData) -> None: ... - def CreateMetaData(self, aDocument: CDM_Document, aFileName: str) -> CDM_MetaData: ... - def CreateReference(self, aFrom: CDM_MetaData, aTo: CDM_MetaData, aReferenceIdentifier: int, aToDocumentVersion: int) -> None: ... + def CreateDependsOn( + self, aFirstData: CDM_MetaData, aSecondData: CDM_MetaData + ) -> None: ... + def CreateMetaData( + self, aDocument: CDM_Document, aFileName: str + ) -> CDM_MetaData: ... + def CreateReference( + self, + aFrom: CDM_MetaData, + aTo: CDM_MetaData, + aReferenceIdentifier: int, + aToDocumentVersion: int, + ) -> None: ... def DefaultFolder(self) -> str: ... @overload def Find(self, aFolder: str, aName: str, aVersion: str) -> bool: ... @@ -102,7 +138,9 @@ class CDF_MetaDataDriver(Standard_Transient): def MetaData(self, aFolder: str, aName: str, aVersion: str) -> CDM_MetaData: ... @overload def MetaData(self, aFolder: str, aName: str) -> CDM_MetaData: ... - def ReferenceIterator(self, theMessageDriver: Message_Messenger) -> PCDM_ReferenceIterator: ... + def ReferenceIterator( + self, theMessageDriver: Message_Messenger + ) -> PCDM_ReferenceIterator: ... def SetName(self, aDocument: CDM_Document, aName: str) -> str: ... class CDF_MetaDataDriverFactory(Standard_Transient): @@ -124,7 +162,9 @@ class CDF_Store: def Name(self) -> TCollection_HExtendedString: ... def Path(self) -> Standard_ExtString: ... def PreviousVersion(self) -> TCollection_HExtendedString: ... - def Realize(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Realize( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def RecheckName(self) -> CDF_StoreSetNameStatus: ... def SetComment(self, aComment: Standard_ExtString) -> None: ... def SetCurrent(self, aPresentation: Standard_ExtString) -> None: ... @@ -146,7 +186,12 @@ class CDF_StoreList(Standard_Transient): def IsConsistent(self) -> bool: ... def More(self) -> bool: ... def Next(self) -> None: ... - def Store(self, aMetaData: CDM_MetaData, aStatusAssociatedText: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> PCDM_StoreStatus: ... + def Store( + self, + aMetaData: CDM_MetaData, + aStatusAssociatedText: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> PCDM_StoreStatus: ... def Value(self) -> CDM_Document: ... class CDF_FWOSDriver(CDF_MetaDataDriver): @@ -158,10 +203,9 @@ class CDF_FWOSDriver(CDF_MetaDataDriver): def HasReadPermission(self, aFolder: str, aName: str, aVersion: str) -> bool: ... def SetName(self, aDocument: CDM_Document, aName: str) -> str: ... -#classnotwrapped +# classnotwrapped class CDF_DirectoryIterator: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/CDM.i b/src/SWIG_files/wrapper/CDM.i index 8930be6bf..c2fb8ceff 100644 --- a/src/SWIG_files/wrapper/CDM.i +++ b/src/SWIG_files/wrapper/CDM.i @@ -109,6 +109,12 @@ CDM_CCS_ReferenceRejection = CDM_CanCloseStatus.CDM_CCS_ReferenceRejection %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = CDM_ListIteratorOfListOfDocument(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(CDM_ListOfReferences) NCollection_List>; @@ -117,6 +123,12 @@ CDM_CCS_ReferenceRejection = CDM_CanCloseStatus.CDM_CCS_ReferenceRejection %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = CDM_ListIteratorOfListOfReferences(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(CDM_MapOfDocument) NCollection_Map>; diff --git a/src/SWIG_files/wrapper/CDM.pyi b/src/SWIG_files/wrapper/CDM.pyi index a9af8dce1..d0a18a6e2 100644 --- a/src/SWIG_files/wrapper/CDM.pyi +++ b/src/SWIG_files/wrapper/CDM.pyi @@ -16,32 +16,32 @@ CDM_MapOfDocument = NewType("CDM_MapOfDocument", Any) CDM_NamesDirectory = NewType("CDM_NamesDirectory", TColStd_DataMapOfStringInteger) class CDM_ListOfDocument: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: CDM_ListOfDocument) -> CDM_ListOfDocument: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class CDM_ListOfReferences: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class CDM_ListOfReferences: + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: CDM_ListOfReferences) -> CDM_ListOfReferences: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class CDM_CanCloseStatus(IntEnum): CDM_CCS_OK: int = ... @@ -58,8 +58,10 @@ CDM_CCS_ReferenceRejection = CDM_CanCloseStatus.CDM_CCS_ReferenceRejection class CDM_Application(Standard_Transient): def BeginOfUpdate(self, aDocument: CDM_Document) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - def EndOfUpdate(self, aDocument: CDM_Document, theStatus: bool, ErrorString: str) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + def EndOfUpdate( + self, aDocument: CDM_Document, theStatus: bool, ErrorString: str + ) -> None: ... def MessageDriver(self) -> Message_Messenger: ... def MetaDataLookUpTable(self) -> CDM_MetaDataLookUpTable: ... def Name(self) -> str: ... @@ -71,29 +73,50 @@ class CDM_Document(Standard_Transient): def AddComment(self, aComment: str) -> None: ... def Application(self) -> CDM_Application: ... def CanClose(self) -> CDM_CanCloseStatus: ... - def CanCloseReference(self, aDocument: CDM_Document, aReferenceIdentifier: int) -> bool: ... + def CanCloseReference( + self, aDocument: CDM_Document, aReferenceIdentifier: int + ) -> bool: ... def Close(self) -> None: ... - def CloseReference(self, aDocument: CDM_Document, aReferenceIdentifier: int) -> None: ... + def CloseReference( + self, aDocument: CDM_Document, aReferenceIdentifier: int + ) -> None: ... def Comment(self) -> Standard_ExtString: ... def Comments(self, aComments: TColStd_SequenceOfExtendedString) -> None: ... - def CopyReference(self, aFromDocument: CDM_Document, aReferenceIdentifier: int) -> int: ... + def CopyReference( + self, aFromDocument: CDM_Document, aReferenceIdentifier: int + ) -> int: ... @overload def CreateReference(self, anOtherDocument: CDM_Document) -> int: ... @overload - def CreateReference(self, aMetaData: CDM_MetaData, aReferenceIdentifier: int, anApplication: CDM_Application, aToDocumentVersion: int, UseStorageConfiguration: bool) -> None: ... + def CreateReference( + self, + aMetaData: CDM_MetaData, + aReferenceIdentifier: int, + anApplication: CDM_Application, + aToDocumentVersion: int, + UseStorageConfiguration: bool, + ) -> None: ... @overload - def CreateReference(self, aMetaData: CDM_MetaData, anApplication: CDM_Application, aDocumentVersion: int, UseStorageConfiguration: bool) -> int: ... + def CreateReference( + self, + aMetaData: CDM_MetaData, + anApplication: CDM_Application, + aDocumentVersion: int, + UseStorageConfiguration: bool, + ) -> int: ... def DeepReferences(self, aDocument: CDM_Document) -> bool: ... def Description(self) -> str: ... def Document(self, aReferenceIdentifier: int) -> CDM_Document: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Extensions(self, Extensions: TColStd_SequenceOfExtendedString) -> None: ... def FileExtension(self) -> str: ... def FindDescription(self) -> bool: ... def FindFileExtension(self) -> bool: ... def Folder(self) -> str: ... def FromReferencesNumber(self) -> int: ... - def GetAlternativeDocument(self, aFormat: str, anAlternativeDocument: CDM_Document) -> bool: ... + def GetAlternativeDocument( + self, aFormat: str, anAlternativeDocument: CDM_Document + ) -> bool: ... def HasRequestedFolder(self) -> bool: ... def HasRequestedPreviousVersion(self) -> bool: ... def IsInSession(self, aReferenceIdentifier: int) -> bool: ... @@ -146,7 +169,9 @@ class CDM_Document(Standard_Transient): def UnsetIsStored(self) -> None: ... def UnsetRequestedPreviousVersion(self) -> None: ... @overload - def Update(self, aToDocument: CDM_Document, aReferenceIdentifier: int, aModifContext: None) -> None: ... + def Update( + self, aToDocument: CDM_Document, aReferenceIdentifier: int, aModifContext: None + ) -> None: ... @overload def Update(self, ErrorString: str) -> bool: ... @overload @@ -155,7 +180,7 @@ class CDM_Document(Standard_Transient): class CDM_MetaData(Standard_Transient): def Document(self) -> CDM_Document: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FileName(self) -> str: ... def Folder(self) -> str: ... def HasVersion(self) -> bool: ... @@ -163,10 +188,25 @@ class CDM_MetaData(Standard_Transient): def IsRetrieved(self) -> bool: ... @overload @staticmethod - def LookUp(theLookUpTable: CDM_MetaDataLookUpTable, aFolder: str, aName: str, aPath: str, aFileName: str, ReadOnly: bool) -> CDM_MetaData: ... + def LookUp( + theLookUpTable: CDM_MetaDataLookUpTable, + aFolder: str, + aName: str, + aPath: str, + aFileName: str, + ReadOnly: bool, + ) -> CDM_MetaData: ... @overload @staticmethod - def LookUp(theLookUpTable: CDM_MetaDataLookUpTable, aFolder: str, aName: str, aPath: str, aVersion: str, aFileName: str, ReadOnly: bool) -> CDM_MetaData: ... + def LookUp( + theLookUpTable: CDM_MetaDataLookUpTable, + aFolder: str, + aName: str, + aPath: str, + aVersion: str, + aFileName: str, + ReadOnly: bool, + ) -> CDM_MetaData: ... def Name(self) -> str: ... def Path(self) -> str: ... def Print(self) -> Tuple[Standard_OStream, str]: ... @@ -177,7 +217,7 @@ class CDM_MetaData(Standard_Transient): class CDM_Reference(Standard_Transient): def DocumentVersion(self) -> int: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FromDocument(self) -> CDM_Document: ... def IsReadOnly(self) -> bool: ... def ReferenceIdentifier(self) -> int: ... @@ -194,4 +234,3 @@ class CDM_ReferenceIterator: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/CPnts.pyi b/src/SWIG_files/wrapper/CPnts.pyi index 5458870ab..8cce23578 100644 --- a/src/SWIG_files/wrapper/CPnts.pyi +++ b/src/SWIG_files/wrapper/CPnts.pyi @@ -8,19 +8,38 @@ from OCC.Core.Adaptor2d import * from OCC.Core.math import * from OCC.Core.gp import * - class CPnts_AbscissaPoint: @overload def __init__(self) -> None: ... @overload - def __init__(self, C: Adaptor3d_Curve, Abscissa: float, U0: float, Resolution: float) -> None: ... - @overload - def __init__(self, C: Adaptor2d_Curve2d, Abscissa: float, U0: float, Resolution: float) -> None: ... - @overload - def __init__(self, C: Adaptor3d_Curve, Abscissa: float, U0: float, Ui: float, Resolution: float) -> None: ... - @overload - def __init__(self, C: Adaptor2d_Curve2d, Abscissa: float, U0: float, Ui: float, Resolution: float) -> None: ... - def AdvPerform(self, Abscissa: float, U0: float, Ui: float, Resolution: float) -> None: ... + def __init__( + self, C: Adaptor3d_Curve, Abscissa: float, U0: float, Resolution: float + ) -> None: ... + @overload + def __init__( + self, C: Adaptor2d_Curve2d, Abscissa: float, U0: float, Resolution: float + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + Abscissa: float, + U0: float, + Ui: float, + Resolution: float, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor2d_Curve2d, + Abscissa: float, + U0: float, + Ui: float, + Resolution: float, + ) -> None: ... + def AdvPerform( + self, Abscissa: float, U0: float, Ui: float, Resolution: float + ) -> None: ... @overload def Init(self, C: Adaptor3d_Curve) -> None: ... @overload @@ -66,7 +85,9 @@ class CPnts_AbscissaPoint: @overload def Perform(self, Abscissa: float, U0: float, Resolution: float) -> None: ... @overload - def Perform(self, Abscissa: float, U0: float, Ui: float, Resolution: float) -> None: ... + def Perform( + self, Abscissa: float, U0: float, Ui: float, Resolution: float + ) -> None: ... def SetParameter(self, P: float) -> None: ... class CPnts_MyGaussFunction(math_Function): @@ -90,21 +111,77 @@ class CPnts_UniformDeflection: @overload def __init__(self) -> None: ... @overload - def __init__(self, C: Adaptor3d_Curve, Deflection: float, Resolution: float, WithControl: bool) -> None: ... - @overload - def __init__(self, C: Adaptor2d_Curve2d, Deflection: float, Resolution: float, WithControl: bool) -> None: ... - @overload - def __init__(self, C: Adaptor3d_Curve, Deflection: float, U1: float, U2: float, Resolution: float, WithControl: bool) -> None: ... - @overload - def __init__(self, C: Adaptor2d_Curve2d, Deflection: float, U1: float, U2: float, Resolution: float, WithControl: bool) -> None: ... - @overload - def Initialize(self, C: Adaptor3d_Curve, Deflection: float, Resolution: float, WithControl: bool) -> None: ... - @overload - def Initialize(self, C: Adaptor2d_Curve2d, Deflection: float, Resolution: float, WithControl: bool) -> None: ... - @overload - def Initialize(self, C: Adaptor3d_Curve, Deflection: float, U1: float, U2: float, Resolution: float, WithControl: bool) -> None: ... - @overload - def Initialize(self, C: Adaptor2d_Curve2d, Deflection: float, U1: float, U2: float, Resolution: float, WithControl: bool) -> None: ... + def __init__( + self, + C: Adaptor3d_Curve, + Deflection: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor2d_Curve2d, + Deflection: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + Deflection: float, + U1: float, + U2: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor2d_Curve2d, + Deflection: float, + U1: float, + U2: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor3d_Curve, + Deflection: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor2d_Curve2d, + Deflection: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor3d_Curve, + Deflection: float, + U1: float, + U2: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor2d_Curve2d, + Deflection: float, + U1: float, + U2: float, + Resolution: float, + WithControl: bool, + ) -> None: ... def IsAllDone(self) -> bool: ... def More(self) -> bool: ... def Next(self) -> None: ... @@ -114,4 +191,3 @@ class CPnts_UniformDeflection: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/CSLib.pyi b/src/SWIG_files/wrapper/CSLib.pyi index d0cfb2229..c840c0fd8 100644 --- a/src/SWIG_files/wrapper/CSLib.pyi +++ b/src/SWIG_files/wrapper/CSLib.pyi @@ -8,7 +8,6 @@ from OCC.Core.gp import * from OCC.Core.math import * from OCC.Core.TColStd import * - class CSLib_DerivativeStatus(IntEnum): CSLib_Done: int = ... CSLib_D1uIsNull: int = ... @@ -53,27 +52,76 @@ class cslib: def DNNUV(Nu: int, Nv: int, DerSurf: TColgp_Array2OfVec) -> gp_Vec: ... @overload @staticmethod - def DNNUV(Nu: int, Nv: int, DerSurf1: TColgp_Array2OfVec, DerSurf2: TColgp_Array2OfVec) -> gp_Vec: ... + def DNNUV( + Nu: int, Nv: int, DerSurf1: TColgp_Array2OfVec, DerSurf2: TColgp_Array2OfVec + ) -> gp_Vec: ... @staticmethod - def DNNormal(Nu: int, Nv: int, DerNUV: TColgp_Array2OfVec, Iduref: Optional[int] = 0, Idvref: Optional[int] = 0) -> gp_Vec: ... + def DNNormal( + Nu: int, + Nv: int, + DerNUV: TColgp_Array2OfVec, + Iduref: Optional[int] = 0, + Idvref: Optional[int] = 0, + ) -> gp_Vec: ... @overload @staticmethod - def Normal(D1U: gp_Vec, D1V: gp_Vec, SinTol: float, Normal: gp_Dir) -> CSLib_DerivativeStatus: ... + def Normal( + D1U: gp_Vec, D1V: gp_Vec, SinTol: float, Normal: gp_Dir + ) -> CSLib_DerivativeStatus: ... @overload @staticmethod - def Normal(D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, SinTol: float, Normal: gp_Dir) -> Tuple[bool, CSLib_NormalStatus]: ... + def Normal( + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + SinTol: float, + Normal: gp_Dir, + ) -> Tuple[bool, CSLib_NormalStatus]: ... @overload @staticmethod - def Normal(D1U: gp_Vec, D1V: gp_Vec, MagTol: float, Normal: gp_Dir) -> CSLib_NormalStatus: ... + def Normal( + D1U: gp_Vec, D1V: gp_Vec, MagTol: float, Normal: gp_Dir + ) -> CSLib_NormalStatus: ... @overload @staticmethod - def Normal(MaxOrder: int, DerNUV: TColgp_Array2OfVec, MagTol: float, U: float, V: float, Umin: float, Umax: float, Vmin: float, Vmax: float, Normal: gp_Dir) -> Tuple[CSLib_NormalStatus, int, int]: ... + def Normal( + MaxOrder: int, + DerNUV: TColgp_Array2OfVec, + MagTol: float, + U: float, + V: float, + Umin: float, + Umax: float, + Vmin: float, + Vmax: float, + Normal: gp_Dir, + ) -> Tuple[CSLib_NormalStatus, int, int]: ... class CSLib_Class2d: @overload - def __init__(self, thePnts2d: TColgp_Array1OfPnt2d, theTolU: float, theTolV: float, theUMin: float, theVMin: float, theUMax: float, theVMax: float) -> None: ... + def __init__( + self, + thePnts2d: TColgp_Array1OfPnt2d, + theTolU: float, + theTolV: float, + theUMin: float, + theVMin: float, + theUMax: float, + theVMax: float, + ) -> None: ... @overload - def __init__(self, thePnts2d: TColgp_SequenceOfPnt2d, theTolU: float, theTolV: float, theUMin: float, theVMin: float, theUMax: float, theVMax: float) -> None: ... + def __init__( + self, + thePnts2d: TColgp_SequenceOfPnt2d, + theTolU: float, + theTolV: float, + theUMin: float, + theVMin: float, + theUMax: float, + theVMax: float, + ) -> None: ... def InternalSiDans(self, X: float, Y: float) -> int: ... def InternalSiDansOuOn(self, X: float, Y: float) -> int: ... def SiDans(self, P: gp_Pnt2d) -> int: ... @@ -88,4 +136,3 @@ class CSLib_NormalPolyDef(math_FunctionWithDerivative): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ChFi2d.pyi b/src/SWIG_files/wrapper/ChFi2d.pyi index 85a8d9a5a..fa16bc439 100644 --- a/src/SWIG_files/wrapper/ChFi2d.pyi +++ b/src/SWIG_files/wrapper/ChFi2d.pyi @@ -7,7 +7,6 @@ from OCC.Core.TopoDS import * from OCC.Core.gp import * from OCC.Core.TopTools import * - class ChFi2d_ConstructionError(IntEnum): ChFi2d_NotPlanar: int = ... ChFi2d_NoFace: int = ... @@ -41,7 +40,9 @@ class chfi2d: @staticmethod def CommonVertex(E1: TopoDS_Edge, E2: TopoDS_Edge, V: TopoDS_Vertex) -> bool: ... @staticmethod - def FindConnectedEdges(F: TopoDS_Face, V: TopoDS_Vertex, E1: TopoDS_Edge, E2: TopoDS_Edge) -> ChFi2d_ConstructionError: ... + def FindConnectedEdges( + F: TopoDS_Face, V: TopoDS_Vertex, E1: TopoDS_Edge, E2: TopoDS_Edge + ) -> ChFi2d_ConstructionError: ... class ChFi2d_AnaFilletAlgo: @overload @@ -49,11 +50,15 @@ class ChFi2d_AnaFilletAlgo: @overload def __init__(self, theWire: TopoDS_Wire, thePlane: gp_Pln) -> None: ... @overload - def __init__(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln) -> None: ... + def __init__( + self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln + ) -> None: ... @overload def Init(self, theWire: TopoDS_Wire, thePlane: gp_Pln) -> None: ... @overload - def Init(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln) -> None: ... + def Init( + self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln + ) -> None: ... def Perform(self, radius: float) -> bool: ... def Result(self, e1: TopoDS_Edge, e2: TopoDS_Edge) -> TopoDS_Edge: ... @@ -63,9 +68,13 @@ class ChFi2d_Builder: @overload def __init__(self, F: TopoDS_Face) -> None: ... @overload - def AddChamfer(self, E1: TopoDS_Edge, E2: TopoDS_Edge, D1: float, D2: float) -> TopoDS_Edge: ... + def AddChamfer( + self, E1: TopoDS_Edge, E2: TopoDS_Edge, D1: float, D2: float + ) -> TopoDS_Edge: ... @overload - def AddChamfer(self, E: TopoDS_Edge, V: TopoDS_Vertex, D: float, Ang: float) -> TopoDS_Edge: ... + def AddChamfer( + self, E: TopoDS_Edge, V: TopoDS_Vertex, D: float, Ang: float + ) -> TopoDS_Edge: ... def AddFillet(self, V: TopoDS_Vertex, Radius: float) -> TopoDS_Edge: ... def BasisEdge(self, E: TopoDS_Edge) -> TopoDS_Edge: ... def ChamferEdges(self) -> TopTools_SequenceOfShape: ... @@ -78,9 +87,18 @@ class ChFi2d_Builder: def Init(self, RefFace: TopoDS_Face, ModFace: TopoDS_Face) -> None: ... def IsModified(self, E: TopoDS_Edge) -> bool: ... @overload - def ModifyChamfer(self, Chamfer: TopoDS_Edge, E1: TopoDS_Edge, E2: TopoDS_Edge, D1: float, D2: float) -> TopoDS_Edge: ... - @overload - def ModifyChamfer(self, Chamfer: TopoDS_Edge, E: TopoDS_Edge, D: float, Ang: float) -> TopoDS_Edge: ... + def ModifyChamfer( + self, + Chamfer: TopoDS_Edge, + E1: TopoDS_Edge, + E2: TopoDS_Edge, + D1: float, + D2: float, + ) -> TopoDS_Edge: ... + @overload + def ModifyChamfer( + self, Chamfer: TopoDS_Edge, E: TopoDS_Edge, D: float, Ang: float + ) -> TopoDS_Edge: ... def ModifyFillet(self, Fillet: TopoDS_Edge, Radius: float) -> TopoDS_Edge: ... def NbChamfer(self) -> int: ... def NbFillet(self) -> int: ... @@ -101,7 +119,13 @@ class ChFi2d_ChamferAPI: @overload def Init(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge) -> None: ... def Perform(self) -> bool: ... - def Result(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, theLength1: float, theLength2: float) -> TopoDS_Edge: ... + def Result( + self, + theEdge1: TopoDS_Edge, + theEdge2: TopoDS_Edge, + theLength1: float, + theLength2: float, + ) -> TopoDS_Edge: ... class ChFi2d_FilletAPI: @overload @@ -109,14 +133,24 @@ class ChFi2d_FilletAPI: @overload def __init__(self, theWire: TopoDS_Wire, thePlane: gp_Pln) -> None: ... @overload - def __init__(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln) -> None: ... + def __init__( + self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln + ) -> None: ... @overload def Init(self, theWire: TopoDS_Wire, thePlane: gp_Pln) -> None: ... @overload - def Init(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln) -> None: ... + def Init( + self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln + ) -> None: ... def NbResults(self, thePoint: gp_Pnt) -> int: ... def Perform(self, theRadius: float) -> bool: ... - def Result(self, thePoint: gp_Pnt, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, iSolution: Optional[int] = -1) -> TopoDS_Edge: ... + def Result( + self, + thePoint: gp_Pnt, + theEdge1: TopoDS_Edge, + theEdge2: TopoDS_Edge, + iSolution: Optional[int] = -1, + ) -> TopoDS_Edge: ... class ChFi2d_FilletAlgo: @overload @@ -124,16 +158,25 @@ class ChFi2d_FilletAlgo: @overload def __init__(self, theWire: TopoDS_Wire, thePlane: gp_Pln) -> None: ... @overload - def __init__(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln) -> None: ... + def __init__( + self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln + ) -> None: ... @overload def Init(self, theWire: TopoDS_Wire, thePlane: gp_Pln) -> None: ... @overload - def Init(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln) -> None: ... + def Init( + self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, thePlane: gp_Pln + ) -> None: ... def NbResults(self, thePoint: gp_Pnt) -> int: ... def Perform(self, theRadius: float) -> bool: ... - def Result(self, thePoint: gp_Pnt, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, iSolution: Optional[int] = -1) -> TopoDS_Edge: ... + def Result( + self, + thePoint: gp_Pnt, + theEdge1: TopoDS_Edge, + theEdge2: TopoDS_Edge, + iSolution: Optional[int] = -1, + ) -> TopoDS_Edge: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ChFi3d.pyi b/src/SWIG_files/wrapper/ChFi3d.pyi index 46e9d11c2..9914dbc6b 100644 --- a/src/SWIG_files/wrapper/ChFi3d.pyi +++ b/src/SWIG_files/wrapper/ChFi3d.pyi @@ -16,7 +16,6 @@ from OCC.Core.math import * from OCC.Core.Law import * from OCC.Core.gp import * - class ChFi3d_FilletShape(IntEnum): ChFi3d_Rational: int = ... ChFi3d_QuasiAngular: int = ... @@ -28,19 +27,42 @@ ChFi3d_Polynomial = ChFi3d_FilletShape.ChFi3d_Polynomial class chfi3d: @staticmethod - def ConcaveSide(S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface, E: TopoDS_Edge) -> Tuple[int, TopAbs_Orientation, TopAbs_Orientation]: ... + def ConcaveSide( + S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface, E: TopoDS_Edge + ) -> Tuple[int, TopAbs_Orientation, TopAbs_Orientation]: ... @staticmethod - def DefineConnectType(E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, SinTol: float, CorrectPoint: bool) -> ChFiDS_TypeOfConcavity: ... + def DefineConnectType( + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + SinTol: float, + CorrectPoint: bool, + ) -> ChFiDS_TypeOfConcavity: ... @staticmethod - def IsTangentFaces(theEdge: TopoDS_Edge, theFace1: TopoDS_Face, theFace2: TopoDS_Face, Order: Optional[GeomAbs_Shape] = GeomAbs_G1) -> bool: ... + def IsTangentFaces( + theEdge: TopoDS_Edge, + theFace1: TopoDS_Face, + theFace2: TopoDS_Face, + Order: Optional[GeomAbs_Shape] = GeomAbs_G1, + ) -> bool: ... @overload @staticmethod - def NextSide(OrSave1: TopAbs_Orientation, OrSave2: TopAbs_Orientation, ChoixSauv: int) -> Tuple[int, TopAbs_Orientation, TopAbs_Orientation]: ... + def NextSide( + OrSave1: TopAbs_Orientation, OrSave2: TopAbs_Orientation, ChoixSauv: int + ) -> Tuple[int, TopAbs_Orientation, TopAbs_Orientation]: ... @overload @staticmethod - def NextSide(OrSave: TopAbs_Orientation, OrFace: TopAbs_Orientation) -> TopAbs_Orientation: ... + def NextSide( + OrSave: TopAbs_Orientation, OrFace: TopAbs_Orientation + ) -> TopAbs_Orientation: ... @staticmethod - def SameSide(Or: TopAbs_Orientation, OrSave1: TopAbs_Orientation, OrSave2: TopAbs_Orientation, OrFace1: TopAbs_Orientation, OrFace2: TopAbs_Orientation) -> bool: ... + def SameSide( + Or: TopAbs_Orientation, + OrSave1: TopAbs_Orientation, + OrSave2: TopAbs_Orientation, + OrFace1: TopAbs_Orientation, + OrFace2: TopAbs_Orientation, + ) -> bool: ... class ChFi3d_Builder: def Abscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... @@ -70,10 +92,30 @@ class ChFi3d_Builder: def RelativeAbscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... def Remove(self, E: TopoDS_Edge) -> None: ... def Reset(self) -> None: ... - def SetContinuity(self, InternalContinuity: GeomAbs_Shape, AngularTolerance: float) -> None: ... - def SetParams(self, Tang: float, Tesp: float, T2d: float, TApp3d: float, TolApp2d: float, Fleche: float) -> None: ... + def SetContinuity( + self, InternalContinuity: GeomAbs_Shape, AngularTolerance: float + ) -> None: ... + def SetParams( + self, + Tang: float, + Tesp: float, + T2d: float, + TApp3d: float, + TolApp2d: float, + Fleche: float, + ) -> None: ... def Shape(self) -> TopoDS_Shape: ... - def SplitKPart(self, Data: ChFiDS_SurfData, SetData: ChFiDS_SequenceOfSurfData, Spine: ChFiDS_Spine, Iedge: int, S1: Adaptor3d_Surface, I1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, I2: Adaptor3d_TopolTool) -> Tuple[bool, bool, bool]: ... + def SplitKPart( + self, + Data: ChFiDS_SurfData, + SetData: ChFiDS_SequenceOfSurfData, + Spine: ChFiDS_Spine, + Iedge: int, + S1: Adaptor3d_Surface, + I1: Adaptor3d_TopolTool, + S2: Adaptor3d_Surface, + I2: Adaptor3d_TopolTool, + ) -> Tuple[bool, bool, bool]: ... def StripeStatus(self, IC: int) -> ChFiDS_ErrorStatus: ... def Value(self, I: int) -> ChFiDS_Spine: ... @@ -91,7 +133,9 @@ class ChFi3d_ChBuilder(ChFi3d_Builder): def Add(self, Dis: float, E: TopoDS_Edge) -> None: ... @overload def Add(self, Dis1: float, Dis2: float, E: TopoDS_Edge, F: TopoDS_Face) -> None: ... - def AddDA(self, Dis: float, Angle: float, E: TopoDS_Edge, F: TopoDS_Face) -> None: ... + def AddDA( + self, Dis: float, Angle: float, E: TopoDS_Edge, F: TopoDS_Face + ) -> None: ... def Dists(self, IC: int) -> Tuple[float, float]: ... def GetDist(self, IC: int) -> float: ... def GetDistAngle(self, IC: int) -> Tuple[float, float]: ... @@ -99,29 +143,206 @@ class ChFi3d_ChBuilder(ChFi3d_Builder): def Mode(self) -> ChFiDS_ChamfMode: ... def NbSurf(self, IC: int) -> int: ... @overload - def PerformSurf(self, Data: ChFiDS_SequenceOfSurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: int, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, MaxStep: float, Fleche: float, TolGuide: float, Inside: bool, Appro: bool, Forward: bool, RecOnS1: bool, RecOnS2: bool, Soldep: math_Vector) -> Tuple[bool, float, float, int, int]: ... + def PerformSurf( + self, + Data: ChFiDS_SequenceOfSurfData, + Guide: ChFiDS_ElSpine, + Spine: ChFiDS_Spine, + Choix: int, + S1: BRepAdaptor_Surface, + I1: Adaptor3d_TopolTool, + S2: BRepAdaptor_Surface, + I2: Adaptor3d_TopolTool, + MaxStep: float, + Fleche: float, + TolGuide: float, + Inside: bool, + Appro: bool, + Forward: bool, + RecOnS1: bool, + RecOnS2: bool, + Soldep: math_Vector, + ) -> Tuple[bool, float, float, int, int]: ... @overload - def PerformSurf(self, Data: ChFiDS_SequenceOfSurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: int, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, Or2: TopAbs_Orientation, MaxStep: float, Fleche: float, TolGuide: float, Inside: bool, Appro: bool, Forward: bool, RecP: bool, RecS: bool, RecRst: bool, Soldep: math_Vector) -> Tuple[bool, float, float]: ... + def PerformSurf( + self, + Data: ChFiDS_SequenceOfSurfData, + Guide: ChFiDS_ElSpine, + Spine: ChFiDS_Spine, + Choix: int, + S1: BRepAdaptor_Surface, + I1: Adaptor3d_TopolTool, + PC1: BRepAdaptor_Curve2d, + Sref1: BRepAdaptor_Surface, + PCref1: BRepAdaptor_Curve2d, + S2: BRepAdaptor_Surface, + I2: Adaptor3d_TopolTool, + Or2: TopAbs_Orientation, + MaxStep: float, + Fleche: float, + TolGuide: float, + Inside: bool, + Appro: bool, + Forward: bool, + RecP: bool, + RecS: bool, + RecRst: bool, + Soldep: math_Vector, + ) -> Tuple[bool, float, float]: ... @overload - def PerformSurf(self, Data: ChFiDS_SequenceOfSurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: int, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, MaxStep: float, Fleche: float, TolGuide: float, Inside: bool, Appro: bool, Forward: bool, RecP: bool, RecS: bool, RecRst: bool, Soldep: math_Vector) -> Tuple[bool, float, float]: ... + def PerformSurf( + self, + Data: ChFiDS_SequenceOfSurfData, + Guide: ChFiDS_ElSpine, + Spine: ChFiDS_Spine, + Choix: int, + S1: BRepAdaptor_Surface, + I1: Adaptor3d_TopolTool, + Or1: TopAbs_Orientation, + S2: BRepAdaptor_Surface, + I2: Adaptor3d_TopolTool, + PC2: BRepAdaptor_Curve2d, + Sref2: BRepAdaptor_Surface, + PCref2: BRepAdaptor_Curve2d, + MaxStep: float, + Fleche: float, + TolGuide: float, + Inside: bool, + Appro: bool, + Forward: bool, + RecP: bool, + RecS: bool, + RecRst: bool, + Soldep: math_Vector, + ) -> Tuple[bool, float, float]: ... @overload - def PerformSurf(self, Data: ChFiDS_SequenceOfSurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: int, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Or2: TopAbs_Orientation, MaxStep: float, Fleche: float, TolGuide: float, Inside: bool, Appro: bool, Forward: bool, RecP1: bool, RecRst1: bool, RecP2: bool, RecRst2: bool, Soldep: math_Vector) -> Tuple[bool, bool, float, float]: ... + def PerformSurf( + self, + Data: ChFiDS_SequenceOfSurfData, + Guide: ChFiDS_ElSpine, + Spine: ChFiDS_Spine, + Choix: int, + S1: BRepAdaptor_Surface, + I1: Adaptor3d_TopolTool, + PC1: BRepAdaptor_Curve2d, + Sref1: BRepAdaptor_Surface, + PCref1: BRepAdaptor_Curve2d, + Or1: TopAbs_Orientation, + S2: BRepAdaptor_Surface, + I2: Adaptor3d_TopolTool, + PC2: BRepAdaptor_Curve2d, + Sref2: BRepAdaptor_Surface, + PCref2: BRepAdaptor_Curve2d, + Or2: TopAbs_Orientation, + MaxStep: float, + Fleche: float, + TolGuide: float, + Inside: bool, + Appro: bool, + Forward: bool, + RecP1: bool, + RecRst1: bool, + RecP2: bool, + RecRst2: bool, + Soldep: math_Vector, + ) -> Tuple[bool, bool, float, float]: ... def ResetContour(self, IC: int) -> None: ... def Sect(self, IC: int, IS: int) -> ChFiDS_SecHArray1: ... def SetDist(self, Dis: float, IC: int, F: TopoDS_Face) -> None: ... - def SetDistAngle(self, Dis: float, Angle: float, IC: int, F: TopoDS_Face) -> None: ... + def SetDistAngle( + self, Dis: float, Angle: float, IC: int, F: TopoDS_Face + ) -> None: ... def SetDists(self, Dis1: float, Dis2: float, IC: int, F: TopoDS_Face) -> None: ... def SetMode(self, theMode: ChFiDS_ChamfMode) -> None: ... @overload - def SimulSurf(self, Data: ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: int, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, Or2: TopAbs_Orientation, Fleche: float, TolGuide: float, Inside: bool, Appro: bool, Forward: bool, RecP: bool, RecS: bool, RecRst: bool, Soldep: math_Vector) -> Tuple[bool, float, float]: ... + def SimulSurf( + self, + Data: ChFiDS_SurfData, + Guide: ChFiDS_ElSpine, + Spine: ChFiDS_Spine, + Choix: int, + S1: BRepAdaptor_Surface, + I1: Adaptor3d_TopolTool, + PC1: BRepAdaptor_Curve2d, + Sref1: BRepAdaptor_Surface, + PCref1: BRepAdaptor_Curve2d, + S2: BRepAdaptor_Surface, + I2: Adaptor3d_TopolTool, + Or2: TopAbs_Orientation, + Fleche: float, + TolGuide: float, + Inside: bool, + Appro: bool, + Forward: bool, + RecP: bool, + RecS: bool, + RecRst: bool, + Soldep: math_Vector, + ) -> Tuple[bool, float, float]: ... @overload - def SimulSurf(self, Data: ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: int, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Fleche: float, TolGuide: float, Inside: bool, Appro: bool, Forward: bool, RecP: bool, RecS: bool, RecRst: bool, Soldep: math_Vector) -> Tuple[bool, float, float]: ... + def SimulSurf( + self, + Data: ChFiDS_SurfData, + Guide: ChFiDS_ElSpine, + Spine: ChFiDS_Spine, + Choix: int, + S1: BRepAdaptor_Surface, + I1: Adaptor3d_TopolTool, + Or1: TopAbs_Orientation, + S2: BRepAdaptor_Surface, + I2: Adaptor3d_TopolTool, + PC2: BRepAdaptor_Curve2d, + Sref2: BRepAdaptor_Surface, + PCref2: BRepAdaptor_Curve2d, + Fleche: float, + TolGuide: float, + Inside: bool, + Appro: bool, + Forward: bool, + RecP: bool, + RecS: bool, + RecRst: bool, + Soldep: math_Vector, + ) -> Tuple[bool, float, float]: ... @overload - def SimulSurf(self, Data: ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: int, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Or2: TopAbs_Orientation, Fleche: float, TolGuide: float, Inside: bool, Appro: bool, Forward: bool, RecP1: bool, RecRst1: bool, RecP2: bool, RecRst2: bool, Soldep: math_Vector) -> Tuple[bool, bool, float, float]: ... + def SimulSurf( + self, + Data: ChFiDS_SurfData, + Guide: ChFiDS_ElSpine, + Spine: ChFiDS_Spine, + Choix: int, + S1: BRepAdaptor_Surface, + I1: Adaptor3d_TopolTool, + PC1: BRepAdaptor_Curve2d, + Sref1: BRepAdaptor_Surface, + PCref1: BRepAdaptor_Curve2d, + Or1: TopAbs_Orientation, + S2: BRepAdaptor_Surface, + I2: Adaptor3d_TopolTool, + PC2: BRepAdaptor_Curve2d, + Sref2: BRepAdaptor_Surface, + PCref2: BRepAdaptor_Curve2d, + Or2: TopAbs_Orientation, + Fleche: float, + TolGuide: float, + Inside: bool, + Appro: bool, + Forward: bool, + RecP1: bool, + RecRst1: bool, + RecP2: bool, + RecRst2: bool, + Soldep: math_Vector, + ) -> Tuple[bool, bool, float, float]: ... def Simulate(self, IC: int) -> None: ... class ChFi3d_FilBuilder(ChFi3d_Builder): - def __init__(self, S: TopoDS_Shape, FShape: Optional[ChFi3d_FilletShape] = ChFi3d_Rational, Ta: Optional[float] = 1.0e-2) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + FShape: Optional[ChFi3d_FilletShape] = ChFi3d_Rational, + Ta: Optional[float] = 1.0e-2, + ) -> None: ... @overload def Add(self, E: TopoDS_Edge) -> None: ... @overload @@ -159,4 +380,3 @@ class ChFi3d_FilBuilder(ChFi3d_Builder): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ChFiDS.i b/src/SWIG_files/wrapper/ChFiDS.i index b25fdb10c..fb3bf7df6 100644 --- a/src/SWIG_files/wrapper/ChFiDS.i +++ b/src/SWIG_files/wrapper/ChFiDS.i @@ -211,6 +211,12 @@ ChFiDS_Mixed = ChFiDS_TypeOfConcavity.ChFiDS_Mixed %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = ChFiDS_ListIteratorOfListOfHElSpine(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(ChFiDS_ListOfStripe) NCollection_List>; @@ -219,6 +225,12 @@ ChFiDS_Mixed = ChFiDS_TypeOfConcavity.ChFiDS_Mixed %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = ChFiDS_ListIteratorOfListOfStripe(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(ChFiDS_Regularities) NCollection_List; @@ -227,6 +239,12 @@ ChFiDS_Mixed = ChFiDS_TypeOfConcavity.ChFiDS_Mixed %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = ChFiDS_ListIteratorOfRegularities(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(ChFiDS_SecArray1) NCollection_Array1; diff --git a/src/SWIG_files/wrapper/ChFiDS.pyi b/src/SWIG_files/wrapper/ChFiDS.pyi index 5121eb794..eb2a202e1 100644 --- a/src/SWIG_files/wrapper/ChFiDS.pyi +++ b/src/SWIG_files/wrapper/ChFiDS.pyi @@ -15,49 +15,51 @@ from OCC.Core.TopTools import * from OCC.Core.Law import * # the following typedef cannot be wrapped as is -ChFiDS_IndexedDataMapOfVertexListOfStripe = NewType("ChFiDS_IndexedDataMapOfVertexListOfStripe", Any) +ChFiDS_IndexedDataMapOfVertexListOfStripe = NewType( + "ChFiDS_IndexedDataMapOfVertexListOfStripe", Any +) class ChFiDS_ListOfHElSpine: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: ChFiDS_ListOfHElSpine) -> ChFiDS_ListOfHElSpine: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class ChFiDS_ListOfStripe: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class ChFiDS_ListOfStripe: + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: ChFiDS_ListOfStripe) -> ChFiDS_ListOfStripe: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class ChFiDS_Regularities: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class ChFiDS_Regularities: + def Append(self, theItem: ChFiDS_Regul) -> ChFiDS_Regul: ... + def Assign(self, theItem: ChFiDS_Regularities) -> ChFiDS_Regularities: ... def Clear(self) -> None: ... def First(self) -> ChFiDS_Regul: ... def Last(self) -> ChFiDS_Regul: ... - def Append(self, theItem: ChFiDS_Regul) -> ChFiDS_Regul: ... def Prepend(self, theItem: ChFiDS_Regul) -> ChFiDS_Regul: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> ChFiDS_Regul: ... - def SetValue(self, theIndex: int, theValue: ChFiDS_Regul) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> ChFiDS_Regul: ... class ChFiDS_SecArray1: @overload @@ -84,34 +86,46 @@ class ChFiDS_SecArray1: def SetValue(self, theIndex: int, theValue: ChFiDS_CircSection) -> None: ... class ChFiDS_SequenceOfSpine: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class ChFiDS_SequenceOfSurfData: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class ChFiDS_SequenceOfSurfData: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class ChFiDS_StripeArray1: @overload @@ -153,7 +167,9 @@ class ChFiDS_ChamfMode(IntEnum): ChFiDS_ClassicChamfer = ChFiDS_ChamfMode.ChFiDS_ClassicChamfer ChFiDS_ConstThroatChamfer = ChFiDS_ChamfMode.ChFiDS_ConstThroatChamfer -ChFiDS_ConstThroatWithPenetrationChamfer = ChFiDS_ChamfMode.ChFiDS_ConstThroatWithPenetrationChamfer +ChFiDS_ConstThroatWithPenetrationChamfer = ( + ChFiDS_ChamfMode.ChFiDS_ConstThroatWithPenetrationChamfer +) class ChFiDS_ErrorStatus(IntEnum): ChFiDS_Ok: int = ... @@ -221,7 +237,9 @@ class ChFiDS_CommonPoint: def ParameterOnArc(self) -> float: ... def Point(self) -> gp_Pnt: ... def Reset(self) -> None: ... - def SetArc(self, Tol: float, A: TopoDS_Edge, Param: float, TArc: TopAbs_Orientation) -> None: ... + def SetArc( + self, Tol: float, A: TopoDS_Edge, Param: float, TArc: TopAbs_Orientation + ) -> None: ... def SetParameter(self, Param: float) -> None: ... def SetPoint(self, thePoint: gp_Pnt) -> None: ... def SetTolerance(self, Tol: float) -> None: ... @@ -244,7 +262,9 @@ class ChFiDS_ElSpine(Adaptor3d_Curve): def D0(self, AbsC: float, P: gp_Pnt) -> None: ... def D1(self, AbsC: float, P: gp_Pnt, V1: gp_Vec) -> None: ... def D2(self, AbsC: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... - def D3(self, AbsC: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + self, AbsC: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... def Ellipse(self) -> gp_Elips: ... @overload def FirstParameter(self) -> float: ... @@ -293,7 +313,13 @@ class ChFiDS_FaceInterference: def PCurveOnSurf(self) -> Geom2d_Curve: ... def Parameter(self, IsFirst: bool) -> float: ... def SetFirstParameter(self, U1: float) -> None: ... - def SetInterference(self, LineIndex: int, Trans: TopAbs_Orientation, PCurv1: Geom2d_Curve, PCurv2: Geom2d_Curve) -> None: ... + def SetInterference( + self, + LineIndex: int, + Trans: TopAbs_Orientation, + PCurv1: Geom2d_Curve, + PCurv2: Geom2d_Curve, + ) -> None: ... def SetLastParameter(self, U1: float) -> None: ... def SetLineIndex(self, I: int) -> None: ... def SetParameter(self, U1: float, IsFirst: bool) -> None: ... @@ -303,7 +329,9 @@ class ChFiDS_FaceInterference: class ChFiDS_Map: def __init__(self) -> None: ... def Contains(self, S: TopoDS_Shape) -> bool: ... - def Fill(self, S: TopoDS_Shape, T1: TopAbs_ShapeEnum, T2: TopAbs_ShapeEnum) -> None: ... + def Fill( + self, S: TopoDS_Shape, T1: TopAbs_ShapeEnum, T2: TopAbs_ShapeEnum + ) -> None: ... def FindFromIndex(self, I: int) -> TopTools_ListOfShape: ... def FindFromKey(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... @@ -380,7 +408,9 @@ class ChFiDS_Spine(Standard_Transient): @overload def Parameter(self, AbsC: float, Oriented: Optional[bool] = True) -> float: ... @overload - def Parameter(self, Index: int, AbsC: float, Oriented: Optional[bool] = True) -> float: ... + def Parameter( + self, Index: int, AbsC: float, Oriented: Optional[bool] = True + ) -> float: ... def Period(self) -> float: ... def PutInFirst(self, E: TopoDS_Edge) -> None: ... def PutInFirstOffset(self, E: TopoDS_Edge) -> None: ... @@ -514,7 +544,9 @@ class ChFiDS_SurfData(Standard_Transient): @overload def Get2dPoints(self, First: bool, OnS: int) -> gp_Pnt2d: ... @overload - def Get2dPoints(self, P2df1: gp_Pnt2d, P2dl1: gp_Pnt2d, P2df2: gp_Pnt2d, P2dl2: gp_Pnt2d) -> None: ... + def Get2dPoints( + self, P2df1: gp_Pnt2d, P2dl1: gp_Pnt2d, P2df2: gp_Pnt2d, P2dl2: gp_Pnt2d + ) -> None: ... def Index(self, OfS: int) -> int: ... def IndexOfC(self, OnS: int) -> int: ... def IndexOfC1(self) -> int: ... @@ -537,7 +569,9 @@ class ChFiDS_SurfData(Standard_Transient): def LastSpineParam(self, Par: float) -> None: ... def Orientation(self) -> TopAbs_Orientation: ... def ResetSimul(self) -> None: ... - def Set2dPoints(self, P2df1: gp_Pnt2d, P2dl1: gp_Pnt2d, P2df2: gp_Pnt2d, P2dl2: gp_Pnt2d) -> None: ... + def Set2dPoints( + self, P2df1: gp_Pnt2d, P2dl1: gp_Pnt2d, P2df2: gp_Pnt2d, P2dl2: gp_Pnt2d + ) -> None: ... def SetIndexOfC1(self, Index: int) -> None: ... def SetIndexOfC2(self, Index: int) -> None: ... def SetSimul(self, S: Standard_Transient) -> None: ... @@ -622,5 +656,3 @@ class ChFiDS_HData(ChFiDS_SequenceOfSurfData, Standard_Transient): def __init__(self, other: ChFiDS_SequenceOfSurfData) -> None: ... def Sequence(self) -> ChFiDS_SequenceOfSurfData: ... def Append(self, theSequence: ChFiDS_SequenceOfSurfData) -> None: ... - - diff --git a/src/SWIG_files/wrapper/ChFiKPart.pyi b/src/SWIG_files/wrapper/ChFiKPart.pyi index 177d98852..5076a2428 100644 --- a/src/SWIG_files/wrapper/ChFiKPart.pyi +++ b/src/SWIG_files/wrapper/ChFiKPart.pyi @@ -10,21 +10,67 @@ from OCC.Core.Adaptor3d import * from OCC.Core.TopAbs import * from OCC.Core.gp import * - class ChFiKPart_ComputeData: @staticmethod - def Compute(DStr: TopOpeBRepDS_DataStructure, Data: ChFiDS_SurfData, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, Or1: TopAbs_Orientation, Or2: TopAbs_Orientation, Sp: ChFiDS_Spine, Iedge: int) -> bool: ... + def Compute( + DStr: TopOpeBRepDS_DataStructure, + Data: ChFiDS_SurfData, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + Or1: TopAbs_Orientation, + Or2: TopAbs_Orientation, + Sp: ChFiDS_Spine, + Iedge: int, + ) -> bool: ... @overload @staticmethod - def ComputeCorner(DStr: TopOpeBRepDS_DataStructure, Data: ChFiDS_SurfData, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, OrFace1: TopAbs_Orientation, OrFace2: TopAbs_Orientation, Or1: TopAbs_Orientation, Or2: TopAbs_Orientation, minRad: float, majRad: float, P1S1: gp_Pnt2d, P2S1: gp_Pnt2d, P1S2: gp_Pnt2d, P2S2: gp_Pnt2d) -> bool: ... + def ComputeCorner( + DStr: TopOpeBRepDS_DataStructure, + Data: ChFiDS_SurfData, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + OrFace1: TopAbs_Orientation, + OrFace2: TopAbs_Orientation, + Or1: TopAbs_Orientation, + Or2: TopAbs_Orientation, + minRad: float, + majRad: float, + P1S1: gp_Pnt2d, + P2S1: gp_Pnt2d, + P1S2: gp_Pnt2d, + P2S2: gp_Pnt2d, + ) -> bool: ... @overload @staticmethod - def ComputeCorner(DStr: TopOpeBRepDS_DataStructure, Data: ChFiDS_SurfData, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, OrFace1: TopAbs_Orientation, OrFace2: TopAbs_Orientation, Or1: TopAbs_Orientation, Or2: TopAbs_Orientation, Rad: float, PS1: gp_Pnt2d, P1S2: gp_Pnt2d, P2S2: gp_Pnt2d) -> bool: ... + def ComputeCorner( + DStr: TopOpeBRepDS_DataStructure, + Data: ChFiDS_SurfData, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + OrFace1: TopAbs_Orientation, + OrFace2: TopAbs_Orientation, + Or1: TopAbs_Orientation, + Or2: TopAbs_Orientation, + Rad: float, + PS1: gp_Pnt2d, + P1S2: gp_Pnt2d, + P2S2: gp_Pnt2d, + ) -> bool: ... @overload @staticmethod - def ComputeCorner(DStr: TopOpeBRepDS_DataStructure, Data: ChFiDS_SurfData, S: Adaptor3d_Surface, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, OfS: TopAbs_Orientation, OS: TopAbs_Orientation, OS1: TopAbs_Orientation, OS2: TopAbs_Orientation, Radius: float) -> bool: ... + def ComputeCorner( + DStr: TopOpeBRepDS_DataStructure, + Data: ChFiDS_SurfData, + S: Adaptor3d_Surface, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + OfS: TopAbs_Orientation, + OS: TopAbs_Orientation, + OS1: TopAbs_Orientation, + OS2: TopAbs_Orientation, + Radius: float, + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Contap.pyi b/src/SWIG_files/wrapper/Contap.pyi index 89beacd20..96c258ec6 100644 --- a/src/SWIG_files/wrapper/Contap.pyi +++ b/src/SWIG_files/wrapper/Contap.pyi @@ -12,81 +12,122 @@ from OCC.Core.GeomAbs import * from OCC.Core.Geom2d import * from OCC.Core.TColStd import * - class Contap_SequenceOfIWLineOfTheIWalking: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Contap_SequenceOfPathPointOfTheSearch: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Contap_SequenceOfPathPointOfTheSearch: + def Assign( + self, theItem: Contap_ThePathPointOfTheSearch + ) -> Contap_ThePathPointOfTheSearch: ... def Clear(self) -> None: ... def First(self) -> Contap_ThePathPointOfTheSearch: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Contap_ThePathPointOfTheSearch: ... def Length(self) -> int: ... - def Append(self, theItem: Contap_ThePathPointOfTheSearch) -> Contap_ThePathPointOfTheSearch: ... - def Prepend(self, theItem: Contap_ThePathPointOfTheSearch) -> Contap_ThePathPointOfTheSearch: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: Contap_ThePathPointOfTheSearch + ) -> Contap_ThePathPointOfTheSearch: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: Contap_ThePathPointOfTheSearch + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> Contap_ThePathPointOfTheSearch: ... - def SetValue(self, theIndex: int, theValue: Contap_ThePathPointOfTheSearch) -> None: ... - -class Contap_SequenceOfSegmentOfTheSearch: def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Contap_SequenceOfSegmentOfTheSearch: + def Assign( + self, theItem: Contap_TheSegmentOfTheSearch + ) -> Contap_TheSegmentOfTheSearch: ... def Clear(self) -> None: ... def First(self) -> Contap_TheSegmentOfTheSearch: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Contap_TheSegmentOfTheSearch: ... def Length(self) -> int: ... - def Append(self, theItem: Contap_TheSegmentOfTheSearch) -> Contap_TheSegmentOfTheSearch: ... - def Prepend(self, theItem: Contap_TheSegmentOfTheSearch) -> Contap_TheSegmentOfTheSearch: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: Contap_TheSegmentOfTheSearch + ) -> Contap_TheSegmentOfTheSearch: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: Contap_TheSegmentOfTheSearch + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> Contap_TheSegmentOfTheSearch: ... - def SetValue(self, theIndex: int, theValue: Contap_TheSegmentOfTheSearch) -> None: ... - -class Contap_TheSequenceOfLine: def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Contap_TheSequenceOfLine: + def Assign(self, theItem: Contap_Line) -> Contap_Line: ... def Clear(self) -> None: ... def First(self) -> Contap_Line: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Contap_Line: ... def Length(self) -> int: ... - def Append(self, theItem: Contap_Line) -> Contap_Line: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Contap_Line) -> Contap_Line: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Contap_Line: ... def SetValue(self, theIndex: int, theValue: Contap_Line) -> None: ... - -class Contap_TheSequenceOfPoint: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Contap_Line: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Contap_TheSequenceOfPoint: + def Assign(self, theItem: Contap_Point) -> Contap_Point: ... def Clear(self) -> None: ... def First(self) -> Contap_Point: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Contap_Point: ... def Length(self) -> int: ... - def Append(self, theItem: Contap_Point) -> Contap_Point: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Contap_Point) -> Contap_Point: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Contap_Point: ... def SetValue(self, theIndex: int, theValue: Contap_Point) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Contap_Point: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Contap_IType(IntEnum): Contap_Lin: int = ... @@ -170,11 +211,21 @@ class Contap_Contour: @overload def __init__(self, Eye: gp_Pnt) -> None: ... @overload - def __init__(self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Direction: gp_Vec) -> None: ... + def __init__( + self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Direction: gp_Vec + ) -> None: ... @overload - def __init__(self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Direction: gp_Vec, Angle: float) -> None: ... + def __init__( + self, + Surf: Adaptor3d_Surface, + Domain: Adaptor3d_TopolTool, + Direction: gp_Vec, + Angle: float, + ) -> None: ... @overload - def __init__(self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Eye: gp_Pnt) -> None: ... + def __init__( + self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Eye: gp_Pnt + ) -> None: ... @overload def Init(self, Direction: gp_Vec) -> None: ... @overload @@ -188,11 +239,21 @@ class Contap_Contour: @overload def Perform(self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool) -> None: ... @overload - def Perform(self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Direction: gp_Vec) -> None: ... - @overload - def Perform(self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Direction: gp_Vec, Angle: float) -> None: ... - @overload - def Perform(self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Eye: gp_Pnt) -> None: ... + def Perform( + self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Direction: gp_Vec + ) -> None: ... + @overload + def Perform( + self, + Surf: Adaptor3d_Surface, + Domain: Adaptor3d_TopolTool, + Direction: gp_Vec, + Angle: float, + ) -> None: ... + @overload + def Perform( + self, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, Eye: gp_Pnt + ) -> None: ... def SurfaceFunction(self) -> Contap_SurfFunction: ... class Contap_HContTool: @@ -223,7 +284,9 @@ class Contap_HContTool: @staticmethod def Parameter(V: Adaptor3d_HVertex, C: Adaptor2d_Curve2d) -> float: ... @staticmethod - def Project(C: Adaptor2d_Curve2d, P: gp_Pnt2d, Ptproj: gp_Pnt2d) -> Tuple[bool, float]: ... + def Project( + C: Adaptor2d_Curve2d, P: gp_Pnt2d, Ptproj: gp_Pnt2d + ) -> Tuple[bool, float]: ... @staticmethod def SamplePoint(S: Adaptor3d_Surface, Index: int) -> Tuple[float, float]: ... @staticmethod @@ -247,9 +310,18 @@ class Contap_HCurve2dTool: @staticmethod def D1(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... @staticmethod - def D2(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @staticmethod - def D3(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + C: Adaptor2d_Curve2d, + U: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... @staticmethod def DN(C: Adaptor2d_Curve2d, U: float, N: int) -> gp_Vec2d: ... @staticmethod @@ -261,7 +333,9 @@ class Contap_HCurve2dTool: @staticmethod def Hyperbola(C: Adaptor2d_Curve2d) -> gp_Hypr2d: ... @staticmethod - def Intervals(C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def Intervals( + C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... @staticmethod def IsClosed(C: Adaptor2d_Curve2d) -> bool: ... @staticmethod @@ -323,7 +397,13 @@ class Contap_Point: def ParameterOnArc(self) -> float: ... def ParameterOnLine(self) -> float: ... def Parameters(self) -> Tuple[float, float]: ... - def SetArc(self, A: Adaptor2d_Curve2d, Param: float, TLine: IntSurf_Transition, TArc: IntSurf_Transition) -> None: ... + def SetArc( + self, + A: Adaptor2d_Curve2d, + Param: float, + TLine: IntSurf_Transition, + TArc: IntSurf_Transition, + ) -> None: ... def SetInternal(self) -> None: ... def SetMultiple(self) -> None: ... def SetParameter(self, Para: float) -> None: ... @@ -368,11 +448,29 @@ class Contap_SurfFunction(math_FunctionSetWithDerivatives): class Contap_SurfProps: @staticmethod - def DerivAndNorm(S: Adaptor3d_Surface, U: float, V: float, P: gp_Pnt, d1u: gp_Vec, d1v: gp_Vec, N: gp_Vec) -> None: ... - @staticmethod - def NormAndDn(S: Adaptor3d_Surface, U: float, V: float, P: gp_Pnt, N: gp_Vec, Dnu: gp_Vec, Dnv: gp_Vec) -> None: ... - @staticmethod - def Normale(S: Adaptor3d_Surface, U: float, V: float, P: gp_Pnt, N: gp_Vec) -> None: ... + def DerivAndNorm( + S: Adaptor3d_Surface, + U: float, + V: float, + P: gp_Pnt, + d1u: gp_Vec, + d1v: gp_Vec, + N: gp_Vec, + ) -> None: ... + @staticmethod + def NormAndDn( + S: Adaptor3d_Surface, + U: float, + V: float, + P: gp_Pnt, + N: gp_Vec, + Dnu: gp_Vec, + Dnv: gp_Vec, + ) -> None: ... + @staticmethod + def Normale( + S: Adaptor3d_Surface, U: float, V: float, P: gp_Pnt, N: gp_Vec + ) -> None: ... class Contap_TheIWLineOfTheIWalking(Standard_Transient): def __init__(self, theAllocator: Optional[IntSurf_Allocator] = 0) -> None: ... @@ -381,12 +479,18 @@ class Contap_TheIWLineOfTheIWalking(Standard_Transient): @overload def AddStatusFirst(self, Closed: bool, HasFirst: bool) -> None: ... @overload - def AddStatusFirst(self, Closed: bool, HasLast: bool, Index: int, P: IntSurf_PathPoint) -> None: ... - def AddStatusFirstLast(self, Closed: bool, HasFirst: bool, HasLast: bool) -> None: ... + def AddStatusFirst( + self, Closed: bool, HasLast: bool, Index: int, P: IntSurf_PathPoint + ) -> None: ... + def AddStatusFirstLast( + self, Closed: bool, HasFirst: bool, HasLast: bool + ) -> None: ... @overload def AddStatusLast(self, HasLast: bool) -> None: ... @overload - def AddStatusLast(self, HasLast: bool, Index: int, P: IntSurf_PathPoint) -> None: ... + def AddStatusLast( + self, HasLast: bool, Index: int, P: IntSurf_PathPoint + ) -> None: ... def Cut(self, Index: int) -> None: ... def FirstPoint(self) -> IntSurf_PathPoint: ... def FirstPointIndex(self) -> int: ... @@ -409,14 +513,33 @@ class Contap_TheIWLineOfTheIWalking(Standard_Transient): def Value(self, Index: int) -> IntSurf_PntOn2S: ... class Contap_TheIWalking: - def __init__(self, Epsilon: float, Deflection: float, Step: float, theToFillHoles: Optional[bool] = False) -> None: ... + def __init__( + self, + Epsilon: float, + Deflection: float, + Step: float, + theToFillHoles: Optional[bool] = False, + ) -> None: ... def IsDone(self) -> bool: ... def NbLines(self) -> int: ... def NbSinglePnts(self) -> int: ... @overload - def Perform(self, Pnts1: IntSurf_SequenceOfPathPoint, Pnts2: IntSurf_SequenceOfInteriorPoint, Func: Contap_SurfFunction, S: Adaptor3d_Surface, Reversed: Optional[bool] = False) -> None: ... - @overload - def Perform(self, Pnts1: IntSurf_SequenceOfPathPoint, Func: Contap_SurfFunction, S: Adaptor3d_Surface, Reversed: Optional[bool] = False) -> None: ... + def Perform( + self, + Pnts1: IntSurf_SequenceOfPathPoint, + Pnts2: IntSurf_SequenceOfInteriorPoint, + Func: Contap_SurfFunction, + S: Adaptor3d_Surface, + Reversed: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + Pnts1: IntSurf_SequenceOfPathPoint, + Func: Contap_SurfFunction, + S: Adaptor3d_Surface, + Reversed: Optional[bool] = False, + ) -> None: ... def SetTolerance(self, Epsilon: float, Deflection: float, Step: float) -> None: ... def SinglePnt(self, Index: int) -> IntSurf_PathPoint: ... def Value(self, Index: int) -> Contap_TheIWLineOfTheIWalking: ... @@ -425,16 +548,34 @@ class Contap_ThePathPointOfTheSearch: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, Tol: float, V: Adaptor3d_HVertex, A: Adaptor2d_Curve2d, Parameter: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt, Tol: float, A: Adaptor2d_Curve2d, Parameter: float) -> None: ... + def __init__( + self, + P: gp_Pnt, + Tol: float, + V: Adaptor3d_HVertex, + A: Adaptor2d_Curve2d, + Parameter: float, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, Tol: float, A: Adaptor2d_Curve2d, Parameter: float + ) -> None: ... def Arc(self) -> Adaptor2d_Curve2d: ... def IsNew(self) -> bool: ... def Parameter(self) -> float: ... @overload - def SetValue(self, P: gp_Pnt, Tol: float, V: Adaptor3d_HVertex, A: Adaptor2d_Curve2d, Parameter: float) -> None: ... - @overload - def SetValue(self, P: gp_Pnt, Tol: float, A: Adaptor2d_Curve2d, Parameter: float) -> None: ... + def SetValue( + self, + P: gp_Pnt, + Tol: float, + V: Adaptor3d_HVertex, + A: Adaptor2d_Curve2d, + Parameter: float, + ) -> None: ... + @overload + def SetValue( + self, P: gp_Pnt, Tol: float, A: Adaptor2d_Curve2d, Parameter: float + ) -> None: ... def Tolerance(self) -> float: ... def Value(self) -> gp_Pnt: ... def Vertex(self) -> Adaptor3d_HVertex: ... @@ -445,7 +586,14 @@ class Contap_TheSearch: def IsDone(self) -> bool: ... def NbPoints(self) -> int: ... def NbSegments(self) -> int: ... - def Perform(self, F: Contap_ArcFunction, Domain: Adaptor3d_TopolTool, TolBoundary: float, TolTangency: float, RecheckOnRegularity: Optional[bool] = False) -> None: ... + def Perform( + self, + F: Contap_ArcFunction, + Domain: Adaptor3d_TopolTool, + TolBoundary: float, + TolTangency: float, + RecheckOnRegularity: Optional[bool] = False, + ) -> None: ... def Point(self, Index: int) -> Contap_ThePathPointOfTheSearch: ... def Segment(self, Index: int) -> Contap_TheSegmentOfTheSearch: ... @@ -453,13 +601,31 @@ class Contap_TheSearchInside: @overload def __init__(self) -> None: ... @overload - def __init__(self, F: Contap_SurfFunction, Surf: Adaptor3d_Surface, T: Adaptor3d_TopolTool, Epsilon: float) -> None: ... + def __init__( + self, + F: Contap_SurfFunction, + Surf: Adaptor3d_Surface, + T: Adaptor3d_TopolTool, + Epsilon: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbPoints(self) -> int: ... @overload - def Perform(self, F: Contap_SurfFunction, Surf: Adaptor3d_Surface, T: Adaptor3d_TopolTool, Epsilon: float) -> None: ... - @overload - def Perform(self, F: Contap_SurfFunction, Surf: Adaptor3d_Surface, UStart: float, VStart: float) -> None: ... + def Perform( + self, + F: Contap_SurfFunction, + Surf: Adaptor3d_Surface, + T: Adaptor3d_TopolTool, + Epsilon: float, + ) -> None: ... + @overload + def Perform( + self, + F: Contap_SurfFunction, + Surf: Adaptor3d_Surface, + UStart: float, + VStart: float, + ) -> None: ... def Value(self, Index: int) -> IntSurf_InteriorPoint: ... class Contap_TheSegmentOfTheSearch: @@ -483,5 +649,3 @@ class Contap_TheHSequenceOfPoint(Contap_TheSequenceOfPoint, Standard_Transient): def __init__(self, other: Contap_TheSequenceOfPoint) -> None: ... def Sequence(self) -> Contap_TheSequenceOfPoint: ... def Append(self, theSequence: Contap_TheSequenceOfPoint) -> None: ... - - diff --git a/src/SWIG_files/wrapper/Convert.pyi b/src/SWIG_files/wrapper/Convert.pyi index ca682ca64..2ea53cd05 100644 --- a/src/SWIG_files/wrapper/Convert.pyi +++ b/src/SWIG_files/wrapper/Convert.pyi @@ -7,22 +7,30 @@ from OCC.Core.TColgp import * from OCC.Core.TColStd import * from OCC.Core.gp import * -Convert_SequenceOfArray1OfPoles2d = NewType("Convert_SequenceOfArray1OfPoles2d", TColgp_SequenceOfArray1OfPnt2d) +Convert_SequenceOfArray1OfPoles2d = NewType( + "Convert_SequenceOfArray1OfPoles2d", TColgp_SequenceOfArray1OfPnt2d +) class Convert_SequenceOfArray1OfPoles: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Convert_ParameterisationType(IntEnum): Convert_TgtThetaOver2: int = ... @@ -47,7 +55,9 @@ class Convert_CompBezierCurves2dToBSplineCurve2d: def __init__(self, AngularTolerance: Optional[float] = 1.0e-4) -> None: ... def AddCurve(self, Poles: TColgp_Array1OfPnt2d) -> None: ... def Degree(self) -> int: ... - def KnotsAndMults(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> None: ... + def KnotsAndMults( + self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger + ) -> None: ... def NbKnots(self) -> int: ... def NbPoles(self) -> int: ... def Perform(self) -> None: ... @@ -57,7 +67,9 @@ class Convert_CompBezierCurvesToBSplineCurve: def __init__(self, AngularTolerance: Optional[float] = 1.0e-4) -> None: ... def AddCurve(self, Poles: TColgp_Array1OfPnt) -> None: ... def Degree(self) -> int: ... - def KnotsAndMults(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> None: ... + def KnotsAndMults( + self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger + ) -> None: ... def NbKnots(self) -> int: ... def NbPoles(self) -> int: ... def Perform(self) -> None: ... @@ -65,11 +77,39 @@ class Convert_CompBezierCurvesToBSplineCurve: class Convert_CompPolynomialToPoles: @overload - def __init__(self, NumCurves: int, Continuity: int, Dimension: int, MaxDegree: int, NumCoeffPerCurve: TColStd_HArray1OfInteger, Coefficients: TColStd_HArray1OfReal, PolynomialIntervals: TColStd_HArray2OfReal, TrueIntervals: TColStd_HArray1OfReal) -> None: ... + def __init__( + self, + NumCurves: int, + Continuity: int, + Dimension: int, + MaxDegree: int, + NumCoeffPerCurve: TColStd_HArray1OfInteger, + Coefficients: TColStd_HArray1OfReal, + PolynomialIntervals: TColStd_HArray2OfReal, + TrueIntervals: TColStd_HArray1OfReal, + ) -> None: ... @overload - def __init__(self, NumCurves: int, Dimension: int, MaxDegree: int, Continuity: TColStd_Array1OfInteger, NumCoeffPerCurve: TColStd_Array1OfInteger, Coefficients: TColStd_Array1OfReal, PolynomialIntervals: TColStd_Array2OfReal, TrueIntervals: TColStd_Array1OfReal) -> None: ... + def __init__( + self, + NumCurves: int, + Dimension: int, + MaxDegree: int, + Continuity: TColStd_Array1OfInteger, + NumCoeffPerCurve: TColStd_Array1OfInteger, + Coefficients: TColStd_Array1OfReal, + PolynomialIntervals: TColStd_Array2OfReal, + TrueIntervals: TColStd_Array1OfReal, + ) -> None: ... @overload - def __init__(self, Dimension: int, MaxDegree: int, Degree: int, Coefficients: TColStd_Array1OfReal, PolynomialIntervals: TColStd_Array1OfReal, TrueIntervals: TColStd_Array1OfReal) -> None: ... + def __init__( + self, + Dimension: int, + MaxDegree: int, + Degree: int, + Coefficients: TColStd_Array1OfReal, + PolynomialIntervals: TColStd_Array1OfReal, + TrueIntervals: TColStd_Array1OfReal, + ) -> None: ... def Degree(self) -> int: ... def IsDone(self) -> bool: ... def Knots(self, K: TColStd_HArray1OfReal) -> None: ... @@ -80,9 +120,27 @@ class Convert_CompPolynomialToPoles: class Convert_ConicToBSplineCurve: @overload - def BuildCosAndSin(self, Parametrisation: Convert_ParameterisationType, CosNumerator: TColStd_HArray1OfReal, SinNumerator: TColStd_HArray1OfReal, Denominator: TColStd_HArray1OfReal, Knots: TColStd_HArray1OfReal, Mults: TColStd_HArray1OfInteger) -> int: ... + def BuildCosAndSin( + self, + Parametrisation: Convert_ParameterisationType, + CosNumerator: TColStd_HArray1OfReal, + SinNumerator: TColStd_HArray1OfReal, + Denominator: TColStd_HArray1OfReal, + Knots: TColStd_HArray1OfReal, + Mults: TColStd_HArray1OfInteger, + ) -> int: ... @overload - def BuildCosAndSin(self, Parametrisation: Convert_ParameterisationType, UFirst: float, ULast: float, CosNumerator: TColStd_HArray1OfReal, SinNumerator: TColStd_HArray1OfReal, Denominator: TColStd_HArray1OfReal, Knots: TColStd_HArray1OfReal, Mults: TColStd_HArray1OfInteger) -> int: ... + def BuildCosAndSin( + self, + Parametrisation: Convert_ParameterisationType, + UFirst: float, + ULast: float, + CosNumerator: TColStd_HArray1OfReal, + SinNumerator: TColStd_HArray1OfReal, + Denominator: TColStd_HArray1OfReal, + Knots: TColStd_HArray1OfReal, + Mults: TColStd_HArray1OfInteger, + ) -> int: ... def Degree(self) -> int: ... def IsPeriodic(self) -> bool: ... def Knot(self, Index: int) -> float: ... @@ -110,15 +168,49 @@ class Convert_ElementarySurfaceToBSplineSurface: class Convert_GridPolynomialToPoles: @overload - def __init__(self, MaxUDegree: int, MaxVDegree: int, NumCoeff: TColStd_HArray1OfInteger, Coefficients: TColStd_HArray1OfReal, PolynomialUIntervals: TColStd_HArray1OfReal, PolynomialVIntervals: TColStd_HArray1OfReal) -> None: ... + def __init__( + self, + MaxUDegree: int, + MaxVDegree: int, + NumCoeff: TColStd_HArray1OfInteger, + Coefficients: TColStd_HArray1OfReal, + PolynomialUIntervals: TColStd_HArray1OfReal, + PolynomialVIntervals: TColStd_HArray1OfReal, + ) -> None: ... @overload - def __init__(self, NbUSurfaces: int, NBVSurfaces: int, UContinuity: int, VContinuity: int, MaxUDegree: int, MaxVDegree: int, NumCoeffPerSurface: TColStd_HArray2OfInteger, Coefficients: TColStd_HArray1OfReal, PolynomialUIntervals: TColStd_HArray1OfReal, PolynomialVIntervals: TColStd_HArray1OfReal, TrueUIntervals: TColStd_HArray1OfReal, TrueVIntervals: TColStd_HArray1OfReal) -> None: ... + def __init__( + self, + NbUSurfaces: int, + NBVSurfaces: int, + UContinuity: int, + VContinuity: int, + MaxUDegree: int, + MaxVDegree: int, + NumCoeffPerSurface: TColStd_HArray2OfInteger, + Coefficients: TColStd_HArray1OfReal, + PolynomialUIntervals: TColStd_HArray1OfReal, + PolynomialVIntervals: TColStd_HArray1OfReal, + TrueUIntervals: TColStd_HArray1OfReal, + TrueVIntervals: TColStd_HArray1OfReal, + ) -> None: ... def IsDone(self) -> bool: ... def NbUKnots(self) -> int: ... def NbUPoles(self) -> int: ... def NbVKnots(self) -> int: ... def NbVPoles(self) -> int: ... - def Perform(self, UContinuity: int, VContinuity: int, MaxUDegree: int, MaxVDegree: int, NumCoeffPerSurface: TColStd_HArray2OfInteger, Coefficients: TColStd_HArray1OfReal, PolynomialUIntervals: TColStd_HArray1OfReal, PolynomialVIntervals: TColStd_HArray1OfReal, TrueUIntervals: TColStd_HArray1OfReal, TrueVIntervals: TColStd_HArray1OfReal) -> None: ... + def Perform( + self, + UContinuity: int, + VContinuity: int, + MaxUDegree: int, + MaxVDegree: int, + NumCoeffPerSurface: TColStd_HArray2OfInteger, + Coefficients: TColStd_HArray1OfReal, + PolynomialUIntervals: TColStd_HArray1OfReal, + PolynomialVIntervals: TColStd_HArray1OfReal, + TrueUIntervals: TColStd_HArray1OfReal, + TrueVIntervals: TColStd_HArray1OfReal, + ) -> None: ... def Poles(self) -> TColgp_HArray2OfPnt: ... def UDegree(self) -> int: ... def UKnots(self) -> TColStd_HArray1OfReal: ... @@ -129,27 +221,59 @@ class Convert_GridPolynomialToPoles: class Convert_CircleToBSplineCurve(Convert_ConicToBSplineCurve): @overload - def __init__(self, C: gp_Circ2d, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> None: ... + def __init__( + self, + C: gp_Circ2d, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... @overload - def __init__(self, C: gp_Circ2d, U1: float, U2: float, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> None: ... + def __init__( + self, + C: gp_Circ2d, + U1: float, + U2: float, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... class Convert_ConeToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): @overload - def __init__(self, C: gp_Cone, U1: float, U2: float, V1: float, V2: float) -> None: ... + def __init__( + self, C: gp_Cone, U1: float, U2: float, V1: float, V2: float + ) -> None: ... @overload def __init__(self, C: gp_Cone, V1: float, V2: float) -> None: ... class Convert_CylinderToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): @overload - def __init__(self, Cyl: gp_Cylinder, U1: float, U2: float, V1: float, V2: float) -> None: ... + def __init__( + self, Cyl: gp_Cylinder, U1: float, U2: float, V1: float, V2: float + ) -> None: ... @overload def __init__(self, Cyl: gp_Cylinder, V1: float, V2: float) -> None: ... class Convert_EllipseToBSplineCurve(Convert_ConicToBSplineCurve): @overload - def __init__(self, E: gp_Elips2d, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> None: ... + def __init__( + self, + E: gp_Elips2d, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... @overload - def __init__(self, E: gp_Elips2d, U1: float, U2: float, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> None: ... + def __init__( + self, + E: gp_Elips2d, + U1: float, + U2: float, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... class Convert_HyperbolaToBSplineCurve(Convert_ConicToBSplineCurve): def __init__(self, H: gp_Hypr2d, U1: float, U2: float) -> None: ... @@ -159,21 +283,28 @@ class Convert_ParabolaToBSplineCurve(Convert_ConicToBSplineCurve): class Convert_SphereToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): @overload - def __init__(self, Sph: gp_Sphere, U1: float, U2: float, V1: float, V2: float) -> None: ... + def __init__( + self, Sph: gp_Sphere, U1: float, U2: float, V1: float, V2: float + ) -> None: ... @overload - def __init__(self, Sph: gp_Sphere, Param1: float, Param2: float, UTrim: Optional[bool] = True) -> None: ... + def __init__( + self, Sph: gp_Sphere, Param1: float, Param2: float, UTrim: Optional[bool] = True + ) -> None: ... @overload def __init__(self, Sph: gp_Sphere) -> None: ... class Convert_TorusToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): @overload - def __init__(self, T: gp_Torus, U1: float, U2: float, V1: float, V2: float) -> None: ... + def __init__( + self, T: gp_Torus, U1: float, U2: float, V1: float, V2: float + ) -> None: ... @overload - def __init__(self, T: gp_Torus, Param1: float, Param2: float, UTrim: Optional[bool] = True) -> None: ... + def __init__( + self, T: gp_Torus, Param1: float, Param2: float, UTrim: Optional[bool] = True + ) -> None: ... @overload def __init__(self, T: gp_Torus) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/DE.pyi b/src/SWIG_files/wrapper/DE.pyi index c9830158d..bd4ce354b 100644 --- a/src/SWIG_files/wrapper/DE.pyi +++ b/src/SWIG_files/wrapper/DE.pyi @@ -15,20 +15,41 @@ DE_ConfigurationVendorMap = NewType("DE_ConfigurationVendorMap", Any) class DE_ConfigurationContext(Standard_Transient): def __init__(self) -> None: ... - def BooleanVal(self, theParam: str, theDefValue: bool, theScope: Optional[str] = "") -> bool: ... - def GetBoolean(self, theParam: str, theScope: Optional[str] = "") -> Tuple[bool, bool]: ... - def GetInteger(self, theParam: str, theScope: Optional[str] = "") -> Tuple[bool, int]: ... + def BooleanVal( + self, theParam: str, theDefValue: bool, theScope: Optional[str] = "" + ) -> bool: ... + def GetBoolean( + self, theParam: str, theScope: Optional[str] = "" + ) -> Tuple[bool, bool]: ... + def GetInteger( + self, theParam: str, theScope: Optional[str] = "" + ) -> Tuple[bool, int]: ... def GetInternalMap(self) -> DE_ResourceMap: ... - def GetReal(self, theParam: str, theScope: Optional[str] = "") -> Tuple[bool, float]: ... - def GetString(self, theParam: str, theValue: str, theScope: Optional[str] = "") -> bool: ... - def GetStringSeq(self, theParam: str, theValue: TColStd_ListOfAsciiString, theScope: Optional[str] = "") -> bool: ... - def IntegerVal(self, theParam: str, theDefValue: int, theScope: Optional[str] = "") -> int: ... + def GetReal( + self, theParam: str, theScope: Optional[str] = "" + ) -> Tuple[bool, float]: ... + def GetString( + self, theParam: str, theValue: str, theScope: Optional[str] = "" + ) -> bool: ... + def GetStringSeq( + self, + theParam: str, + theValue: TColStd_ListOfAsciiString, + theScope: Optional[str] = "", + ) -> bool: ... + def IntegerVal( + self, theParam: str, theDefValue: int, theScope: Optional[str] = "" + ) -> int: ... def IsParamSet(self, theParam: str, theScope: Optional[str] = "") -> bool: ... def Load(self, theConfiguration: str) -> bool: ... def LoadFile(self, theFile: str) -> bool: ... def LoadStr(self, theResource: str) -> bool: ... - def RealVal(self, theParam: str, theDefValue: float, theScope: Optional[str] = "") -> float: ... - def StringVal(self, theParam: str, theDefValue: str, theScope: Optional[str] = "") -> str: ... + def RealVal( + self, theParam: str, theDefValue: float, theScope: Optional[str] = "" + ) -> float: ... + def StringVal( + self, theParam: str, theDefValue: str, theScope: Optional[str] = "" + ) -> str: ... class DE_ConfigurationNode(Standard_Transient): def BuildProvider(self) -> DE_Provider: ... @@ -57,22 +78,66 @@ class DE_Provider(Standard_Transient): def GetNode(self) -> DE_ConfigurationNode: ... def GetVendor(self) -> str: ... @overload - def Read(self, thePath: str, theDocument: TDocStd_Document, theWS: XSControl_WorkSession, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + self, + thePath: str, + theDocument: TDocStd_Document, + theWS: XSControl_WorkSession, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Read(self, thePath: str, theDocument: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + self, + thePath: str, + theDocument: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Read(self, thePath: str, theShape: TopoDS_Shape, theWS: XSControl_WorkSession, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + self, + thePath: str, + theShape: TopoDS_Shape, + theWS: XSControl_WorkSession, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Read(self, thePath: str, theShape: TopoDS_Shape, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + self, + thePath: str, + theShape: TopoDS_Shape, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... def SetNode(self, theNode: DE_ConfigurationNode) -> None: ... @overload - def Write(self, thePath: str, theDocument: TDocStd_Document, theWS: XSControl_WorkSession, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + self, + thePath: str, + theDocument: TDocStd_Document, + theWS: XSControl_WorkSession, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Write(self, thePath: str, theDocument: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + self, + thePath: str, + theDocument: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Write(self, thePath: str, theShape: TopoDS_Shape, theWS: XSControl_WorkSession, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + self, + thePath: str, + theShape: TopoDS_Shape, + theWS: XSControl_WorkSession, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Write(self, thePath: str, theShape: TopoDS_Shape, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + self, + thePath: str, + theShape: TopoDS_Shape, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... class DE_Wrapper(Standard_Transient): @overload @@ -81,58 +146,131 @@ class DE_Wrapper(Standard_Transient): def __init__(self, theWrapper: DE_Wrapper) -> None: ... def Bind(self, theNode: DE_ConfigurationNode) -> bool: ... @overload - def ChangePriority(self, theFormat: str, theVendorPriority: TColStd_ListOfAsciiString, theToDisable: Optional[bool] = False) -> None: ... + def ChangePriority( + self, + theFormat: str, + theVendorPriority: TColStd_ListOfAsciiString, + theToDisable: Optional[bool] = False, + ) -> None: ... @overload - def ChangePriority(self, theVendorPriority: TColStd_ListOfAsciiString, theToDisable: Optional[bool] = False) -> None: ... + def ChangePriority( + self, + theVendorPriority: TColStd_ListOfAsciiString, + theToDisable: Optional[bool] = False, + ) -> None: ... def Copy(self) -> DE_Wrapper: ... - def Find(self, theFormat: str, theVendor: str, theNode: DE_ConfigurationNode) -> bool: ... - def FindProvider(self, thePath: str, theToImport: bool, theProvider: DE_Provider) -> bool: ... + def Find( + self, theFormat: str, theVendor: str, theNode: DE_ConfigurationNode + ) -> bool: ... + def FindProvider( + self, thePath: str, theToImport: bool, theProvider: DE_Provider + ) -> bool: ... @staticmethod def GlobalLoadMutex() -> Standard_Mutex: ... @staticmethod def GlobalWrapper() -> DE_Wrapper: ... def KeepUpdates(self) -> bool: ... @overload - def Load(self, theResource: Optional[str] = "", theIsRecursive: Optional[bool] = True) -> bool: ... + def Load( + self, theResource: Optional[str] = "", theIsRecursive: Optional[bool] = True + ) -> bool: ... @overload - def Load(self, theResource: DE_ConfigurationContext, theIsRecursive: Optional[bool] = True) -> bool: ... + def Load( + self, + theResource: DE_ConfigurationContext, + theIsRecursive: Optional[bool] = True, + ) -> bool: ... def Nodes(self) -> DE_ConfigurationFormatMap: ... @overload - def Read(self, thePath: str, theDocument: TDocStd_Document, theWS: XSControl_WorkSession, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + self, + thePath: str, + theDocument: TDocStd_Document, + theWS: XSControl_WorkSession, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Read(self, thePath: str, theDocument: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + self, + thePath: str, + theDocument: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Read(self, thePath: str, theShape: TopoDS_Shape, theWS: XSControl_WorkSession, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + self, + thePath: str, + theShape: TopoDS_Shape, + theWS: XSControl_WorkSession, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Read(self, thePath: str, theShape: TopoDS_Shape, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Read( + self, + thePath: str, + theShape: TopoDS_Shape, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Save(self, theResourcePath: str, theIsRecursive: Optional[bool] = True, theFormats: Optional[TColStd_ListOfAsciiString] = TColStd_ListOfAsciiString(), theVendors: Optional[TColStd_ListOfAsciiString] = TColStd_ListOfAsciiString()) -> bool: ... + def Save( + self, + theResourcePath: str, + theIsRecursive: Optional[bool] = True, + theFormats: Optional[TColStd_ListOfAsciiString] = TColStd_ListOfAsciiString(), + theVendors: Optional[TColStd_ListOfAsciiString] = TColStd_ListOfAsciiString(), + ) -> bool: ... @overload - def Save(self, theIsRecursive: Optional[bool] = True, theFormats: Optional[TColStd_ListOfAsciiString] = TColStd_ListOfAsciiString(), theVendors: Optional[TColStd_ListOfAsciiString] = TColStd_ListOfAsciiString()) -> str: ... + def Save( + self, + theIsRecursive: Optional[bool] = True, + theFormats: Optional[TColStd_ListOfAsciiString] = TColStd_ListOfAsciiString(), + theVendors: Optional[TColStd_ListOfAsciiString] = TColStd_ListOfAsciiString(), + ) -> str: ... @staticmethod def SetGlobalWrapper(theWrapper: DE_Wrapper) -> None: ... def SetKeepUpdates(self, theToKeepUpdates: bool) -> None: ... def UnBind(self, theNode: DE_ConfigurationNode) -> bool: ... def UpdateLoad(self, theToForceUpdate: Optional[bool] = False) -> None: ... @overload - def Write(self, thePath: str, theDocument: TDocStd_Document, theWS: XSControl_WorkSession, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + self, + thePath: str, + theDocument: TDocStd_Document, + theWS: XSControl_WorkSession, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Write(self, thePath: str, theDocument: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + self, + thePath: str, + theDocument: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Write(self, thePath: str, theShape: TopoDS_Shape, theWS: XSControl_WorkSession, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + self, + thePath: str, + theShape: TopoDS_Shape, + theWS: XSControl_WorkSession, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Write(self, thePath: str, theShape: TopoDS_Shape, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + self, + thePath: str, + theShape: TopoDS_Shape, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... -#classnotwrapped +# classnotwrapped class DE_PluginHolder: ... -#classnotwrapped +# classnotwrapped class DE_ShapeFixConfigurationNode: ... -#classnotwrapped +# classnotwrapped class DE_ShapeFixParameters: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/DEBRepCascade.pyi b/src/SWIG_files/wrapper/DEBRepCascade.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/DEBRepCascade.pyi +++ b/src/SWIG_files/wrapper/DEBRepCascade.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/DEXCAFCascade.pyi b/src/SWIG_files/wrapper/DEXCAFCascade.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/DEXCAFCascade.pyi +++ b/src/SWIG_files/wrapper/DEXCAFCascade.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Draft.pyi b/src/SWIG_files/wrapper/Draft.pyi index b207c1a34..fa5f213c0 100644 --- a/src/SWIG_files/wrapper/Draft.pyi +++ b/src/SWIG_files/wrapper/Draft.pyi @@ -17,7 +17,9 @@ Draft_IndexedDataMapOfEdgeEdgeInfo = NewType("Draft_IndexedDataMapOfEdgeEdgeInfo # the following typedef cannot be wrapped as is Draft_IndexedDataMapOfFaceFaceInfo = NewType("Draft_IndexedDataMapOfFaceFaceInfo", Any) # the following typedef cannot be wrapped as is -Draft_IndexedDataMapOfVertexVertexInfo = NewType("Draft_IndexedDataMapOfVertexVertexInfo", Any) +Draft_IndexedDataMapOfVertexVertexInfo = NewType( + "Draft_IndexedDataMapOfVertexVertexInfo", Any +) class Draft_ErrorStatus(IntEnum): Draft_NoError: int = ... @@ -81,19 +83,47 @@ class Draft_FaceInfo: class Draft_Modification(BRepTools_Modification): def __init__(self, S: TopoDS_Shape) -> None: ... - def Add(self, F: TopoDS_Face, Direction: gp_Dir, Angle: float, NeutralPlane: gp_Pln, Flag: Optional[bool] = True) -> bool: ... + def Add( + self, + F: TopoDS_Face, + Direction: gp_Dir, + Angle: float, + NeutralPlane: gp_Pln, + Flag: Optional[bool] = True, + ) -> bool: ... def Clear(self) -> None: ... def ConnectedFaces(self, F: TopoDS_Face) -> TopTools_ListOfShape: ... - def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ... + def Continuity( + self, + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + NewE: TopoDS_Edge, + NewF1: TopoDS_Face, + NewF2: TopoDS_Face, + ) -> GeomAbs_Shape: ... def Error(self) -> Draft_ErrorStatus: ... def Init(self, S: TopoDS_Shape) -> None: ... def IsDone(self) -> bool: ... def ModifiedFaces(self) -> TopTools_ListOfShape: ... - def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def NewCurve( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + NewE: TopoDS_Edge, + NewF: TopoDS_Face, + C: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ... - def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... + def NewSurface( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... def Perform(self) -> None: ... def ProblematicShape(self) -> TopoDS_Shape: ... def Remove(self, F: TopoDS_Face) -> None: ... @@ -114,4 +144,3 @@ class Draft_VertexInfo: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/DsgPrs.pyi b/src/SWIG_files/wrapper/DsgPrs.pyi index 9b0605589..bba6077a7 100644 --- a/src/SWIG_files/wrapper/DsgPrs.pyi +++ b/src/SWIG_files/wrapper/DsgPrs.pyi @@ -4,7 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class DsgPrs_ArrowSide(IntEnum): DsgPrs_AS_NONE: int = ... DsgPrs_AS_FIRSTAR: int = ... @@ -26,82 +25,81 @@ DsgPrs_AS_BOTHPT = DsgPrs_ArrowSide.DsgPrs_AS_BOTHPT DsgPrs_AS_FIRSTAR_LASTPT = DsgPrs_ArrowSide.DsgPrs_AS_FIRSTAR_LASTPT DsgPrs_AS_FIRSTPT_LASTAR = DsgPrs_ArrowSide.DsgPrs_AS_FIRSTPT_LASTAR -#classnotwrapped +# classnotwrapped class DsgPrs: ... -#classnotwrapped +# classnotwrapped class DsgPrs_AnglePresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_Chamf2dPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_ConcentricPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_DatumPrs: ... -#classnotwrapped +# classnotwrapped class DsgPrs_DiameterPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_EllipseRadiusPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_EqualDistancePresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_EqualRadiusPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_FilletRadiusPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_FixPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_IdenticPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_LengthPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_MidPointPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_OffsetPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_ParalPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_PerpenPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_RadiusPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_ShadedPlanePresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_ShapeDirPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_SymbPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_SymmetricPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_TangentPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_XYZAxisPresentation: ... -#classnotwrapped +# classnotwrapped class DsgPrs_XYZPlanePresentation: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ElCLib.pyi b/src/SWIG_files/wrapper/ElCLib.pyi index 4772b63c6..0906469c0 100644 --- a/src/SWIG_files/wrapper/ElCLib.pyi +++ b/src/SWIG_files/wrapper/ElCLib.pyi @@ -5,28 +5,53 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.gp import * - class elclib: @staticmethod - def AdjustPeriodic(UFirst: float, ULast: float, Precision: float) -> Tuple[float, float]: ... + def AdjustPeriodic( + UFirst: float, ULast: float, Precision: float + ) -> Tuple[float, float]: ... @overload @staticmethod - def CircleD1(U: float, Pos: gp_Ax2, Radius: float, P: gp_Pnt, V1: gp_Vec) -> None: ... + def CircleD1( + U: float, Pos: gp_Ax2, Radius: float, P: gp_Pnt, V1: gp_Vec + ) -> None: ... @overload @staticmethod - def CircleD1(U: float, Pos: gp_Ax22d, Radius: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... + def CircleD1( + U: float, Pos: gp_Ax22d, Radius: float, P: gp_Pnt2d, V1: gp_Vec2d + ) -> None: ... @overload @staticmethod - def CircleD2(U: float, Pos: gp_Ax2, Radius: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def CircleD2( + U: float, Pos: gp_Ax2, Radius: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec + ) -> None: ... @overload @staticmethod - def CircleD2(U: float, Pos: gp_Ax22d, Radius: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def CircleD2( + U: float, Pos: gp_Ax22d, Radius: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @overload @staticmethod - def CircleD3(U: float, Pos: gp_Ax2, Radius: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def CircleD3( + U: float, + Pos: gp_Ax2, + Radius: float, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + V3: gp_Vec, + ) -> None: ... @overload @staticmethod - def CircleD3(U: float, Pos: gp_Ax22d, Radius: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def CircleD3( + U: float, + Pos: gp_Ax22d, + Radius: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... @overload @staticmethod def CircleDN(U: float, Pos: gp_Ax2, Radius: float, N: int) -> gp_Vec: ... @@ -92,31 +117,47 @@ class elclib: def D2(U: float, C: gp_Circ2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... @overload @staticmethod - def D2(U: float, E: gp_Elips2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + U: float, E: gp_Elips2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @overload @staticmethod def D2(U: float, H: gp_Hypr2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... @overload @staticmethod - def D2(U: float, Prb: gp_Parab2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + U: float, Prb: gp_Parab2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @overload @staticmethod - def D3(U: float, C: gp_Circ, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + U: float, C: gp_Circ, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @overload @staticmethod - def D3(U: float, E: gp_Elips, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + U: float, E: gp_Elips, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @overload @staticmethod - def D3(U: float, H: gp_Hypr, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + U: float, H: gp_Hypr, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @overload @staticmethod - def D3(U: float, C: gp_Circ2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + U: float, C: gp_Circ2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... @overload @staticmethod - def D3(U: float, E: gp_Elips2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + U: float, E: gp_Elips2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... @overload @staticmethod - def D3(U: float, H: gp_Hypr2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + U: float, H: gp_Hypr2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... @overload @staticmethod def DN(U: float, L: gp_Lin, N: int) -> gp_Vec: ... @@ -149,76 +190,196 @@ class elclib: def DN(U: float, Prb: gp_Parab2d, N: int) -> gp_Vec2d: ... @overload @staticmethod - def EllipseD1(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt, V1: gp_Vec) -> None: ... - @overload - @staticmethod - def EllipseD1(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... - @overload - @staticmethod - def EllipseD2(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def EllipseD1( + U: float, + Pos: gp_Ax2, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + V1: gp_Vec, + ) -> None: ... @overload @staticmethod - def EllipseD2(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def EllipseD1( + U: float, + Pos: gp_Ax22d, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + ) -> None: ... @overload @staticmethod - def EllipseD3(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... - @overload + def EllipseD2( + U: float, + Pos: gp_Ax2, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def EllipseD2( + U: float, + Pos: gp_Ax22d, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def EllipseD3( + U: float, + Pos: gp_Ax2, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + V3: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def EllipseD3( + U: float, + Pos: gp_Ax22d, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... + @overload + @staticmethod + def EllipseDN( + U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, N: int + ) -> gp_Vec: ... + @overload + @staticmethod + def EllipseDN( + U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, N: int + ) -> gp_Vec2d: ... + @overload + @staticmethod + def EllipseParameter( + Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt + ) -> float: ... + @overload @staticmethod - def EllipseD3(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def EllipseParameter( + Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d + ) -> float: ... @overload @staticmethod - def EllipseDN(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, N: int) -> gp_Vec: ... + def EllipseValue( + U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float + ) -> gp_Pnt: ... @overload @staticmethod - def EllipseDN(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, N: int) -> gp_Vec2d: ... + def EllipseValue( + U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float + ) -> gp_Pnt2d: ... @overload @staticmethod - def EllipseParameter(Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt) -> float: ... + def HyperbolaD1( + U: float, + Pos: gp_Ax2, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + V1: gp_Vec, + ) -> None: ... @overload @staticmethod - def EllipseParameter(Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d) -> float: ... + def HyperbolaD1( + U: float, + Pos: gp_Ax22d, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + ) -> None: ... @overload @staticmethod - def EllipseValue(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float) -> gp_Pnt: ... + def HyperbolaD2( + U: float, + Pos: gp_Ax2, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + ) -> None: ... @overload @staticmethod - def EllipseValue(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float) -> gp_Pnt2d: ... + def HyperbolaD2( + U: float, + Pos: gp_Ax22d, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + ) -> None: ... @overload @staticmethod - def HyperbolaD1(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt, V1: gp_Vec) -> None: ... + def HyperbolaD3( + U: float, + Pos: gp_Ax2, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + V3: gp_Vec, + ) -> None: ... @overload @staticmethod - def HyperbolaD1(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... + def HyperbolaD3( + U: float, + Pos: gp_Ax22d, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... @overload @staticmethod - def HyperbolaD2(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def HyperbolaDN( + U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, N: int + ) -> gp_Vec: ... @overload @staticmethod - def HyperbolaD2(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def HyperbolaDN( + U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, N: int + ) -> gp_Vec2d: ... @overload @staticmethod - def HyperbolaD3(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def HyperbolaParameter( + Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt + ) -> float: ... @overload @staticmethod - def HyperbolaD3(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def HyperbolaParameter( + Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d + ) -> float: ... @overload @staticmethod - def HyperbolaDN(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, N: int) -> gp_Vec: ... + def HyperbolaValue( + U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float + ) -> gp_Pnt: ... @overload @staticmethod - def HyperbolaDN(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, N: int) -> gp_Vec2d: ... - @overload - @staticmethod - def HyperbolaParameter(Pos: gp_Ax2, MajorRadius: float, MinorRadius: float, P: gp_Pnt) -> float: ... - @overload - @staticmethod - def HyperbolaParameter(Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float, P: gp_Pnt2d) -> float: ... - @overload - @staticmethod - def HyperbolaValue(U: float, Pos: gp_Ax2, MajorRadius: float, MinorRadius: float) -> gp_Pnt: ... - @overload - @staticmethod - def HyperbolaValue(U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float) -> gp_Pnt2d: ... + def HyperbolaValue( + U: float, Pos: gp_Ax22d, MajorRadius: float, MinorRadius: float + ) -> gp_Pnt2d: ... @staticmethod def InPeriod(U: float, UFirst: float, ULast: float) -> float: ... @overload @@ -247,16 +408,24 @@ class elclib: def LineValue(U: float, Pos: gp_Ax2d) -> gp_Pnt2d: ... @overload @staticmethod - def ParabolaD1(U: float, Pos: gp_Ax2, Focal: float, P: gp_Pnt, V1: gp_Vec) -> None: ... + def ParabolaD1( + U: float, Pos: gp_Ax2, Focal: float, P: gp_Pnt, V1: gp_Vec + ) -> None: ... @overload @staticmethod - def ParabolaD1(U: float, Pos: gp_Ax22d, Focal: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... + def ParabolaD1( + U: float, Pos: gp_Ax22d, Focal: float, P: gp_Pnt2d, V1: gp_Vec2d + ) -> None: ... @overload @staticmethod - def ParabolaD2(U: float, Pos: gp_Ax2, Focal: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def ParabolaD2( + U: float, Pos: gp_Ax2, Focal: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec + ) -> None: ... @overload @staticmethod - def ParabolaD2(U: float, Pos: gp_Ax22d, Focal: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def ParabolaD2( + U: float, Pos: gp_Ax22d, Focal: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @overload @staticmethod def ParabolaDN(U: float, Pos: gp_Ax2, Focal: float, N: int) -> gp_Vec: ... @@ -369,4 +538,3 @@ class elclib: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ElSLib.pyi b/src/SWIG_files/wrapper/ElSLib.pyi index b6a364fcc..23624d739 100644 --- a/src/SWIG_files/wrapper/ElSLib.pyi +++ b/src/SWIG_files/wrapper/ElSLib.pyi @@ -5,38 +5,122 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.gp import * - class elslib: @staticmethod - def ConeD0(U: float, V: float, Pos: gp_Ax3, Radius: float, SAngle: float, P: gp_Pnt) -> None: ... - @staticmethod - def ConeD1(U: float, V: float, Pos: gp_Ax3, Radius: float, SAngle: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @staticmethod - def ConeD2(U: float, V: float, Pos: gp_Ax3, Radius: float, SAngle: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec) -> None: ... - @staticmethod - def ConeD3(U: float, V: float, Pos: gp_Ax3, Radius: float, SAngle: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec) -> None: ... - @staticmethod - def ConeDN(U: float, V: float, Pos: gp_Ax3, Radius: float, SAngle: float, Nu: int, Nv: int) -> gp_Vec: ... - @staticmethod - def ConeParameters(Pos: gp_Ax3, Radius: float, SAngle: float, P: gp_Pnt) -> Tuple[float, float]: ... + def ConeD0( + U: float, V: float, Pos: gp_Ax3, Radius: float, SAngle: float, P: gp_Pnt + ) -> None: ... + @staticmethod + def ConeD1( + U: float, + V: float, + Pos: gp_Ax3, + Radius: float, + SAngle: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + ) -> None: ... + @staticmethod + def ConeD2( + U: float, + V: float, + Pos: gp_Ax3, + Radius: float, + SAngle: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + ) -> None: ... + @staticmethod + def ConeD3( + U: float, + V: float, + Pos: gp_Ax3, + Radius: float, + SAngle: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + Vuuu: gp_Vec, + Vvvv: gp_Vec, + Vuuv: gp_Vec, + Vuvv: gp_Vec, + ) -> None: ... + @staticmethod + def ConeDN( + U: float, V: float, Pos: gp_Ax3, Radius: float, SAngle: float, Nu: int, Nv: int + ) -> gp_Vec: ... + @staticmethod + def ConeParameters( + Pos: gp_Ax3, Radius: float, SAngle: float, P: gp_Pnt + ) -> Tuple[float, float]: ... @staticmethod def ConeUIso(Pos: gp_Ax3, Radius: float, SAngle: float, U: float) -> gp_Lin: ... @staticmethod def ConeVIso(Pos: gp_Ax3, Radius: float, SAngle: float, V: float) -> gp_Circ: ... @staticmethod - def ConeValue(U: float, V: float, Pos: gp_Ax3, Radius: float, SAngle: float) -> gp_Pnt: ... - @staticmethod - def CylinderD0(U: float, V: float, Pos: gp_Ax3, Radius: float, P: gp_Pnt) -> None: ... - @staticmethod - def CylinderD1(U: float, V: float, Pos: gp_Ax3, Radius: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @staticmethod - def CylinderD2(U: float, V: float, Pos: gp_Ax3, Radius: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec) -> None: ... - @staticmethod - def CylinderD3(U: float, V: float, Pos: gp_Ax3, Radius: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec) -> None: ... - @staticmethod - def CylinderDN(U: float, V: float, Pos: gp_Ax3, Radius: float, Nu: int, Nv: int) -> gp_Vec: ... - @staticmethod - def CylinderParameters(Pos: gp_Ax3, Radius: float, P: gp_Pnt) -> Tuple[float, float]: ... + def ConeValue( + U: float, V: float, Pos: gp_Ax3, Radius: float, SAngle: float + ) -> gp_Pnt: ... + @staticmethod + def CylinderD0( + U: float, V: float, Pos: gp_Ax3, Radius: float, P: gp_Pnt + ) -> None: ... + @staticmethod + def CylinderD1( + U: float, + V: float, + Pos: gp_Ax3, + Radius: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + ) -> None: ... + @staticmethod + def CylinderD2( + U: float, + V: float, + Pos: gp_Ax3, + Radius: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + ) -> None: ... + @staticmethod + def CylinderD3( + U: float, + V: float, + Pos: gp_Ax3, + Radius: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + Vuuu: gp_Vec, + Vvvv: gp_Vec, + Vuuv: gp_Vec, + Vuvv: gp_Vec, + ) -> None: ... + @staticmethod + def CylinderDN( + U: float, V: float, Pos: gp_Ax3, Radius: float, Nu: int, Nv: int + ) -> gp_Vec: ... + @staticmethod + def CylinderParameters( + Pos: gp_Ax3, Radius: float, P: gp_Pnt + ) -> Tuple[float, float]: ... @staticmethod def CylinderUIso(Pos: gp_Ax3, Radius: float, U: float) -> gp_Lin: ... @staticmethod @@ -60,43 +144,149 @@ class elslib: def D0(U: float, V: float, T: gp_Torus, P: gp_Pnt) -> None: ... @overload @staticmethod - def D1(U: float, V: float, Pl: gp_Pln, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @overload - @staticmethod - def D1(U: float, V: float, C: gp_Cone, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @overload - @staticmethod - def D1(U: float, V: float, C: gp_Cylinder, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @overload - @staticmethod - def D1(U: float, V: float, S: gp_Sphere, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @overload - @staticmethod - def D1(U: float, V: float, T: gp_Torus, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @overload - @staticmethod - def D2(U: float, V: float, C: gp_Cone, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec) -> None: ... - @overload - @staticmethod - def D2(U: float, V: float, C: gp_Cylinder, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec) -> None: ... - @overload - @staticmethod - def D2(U: float, V: float, S: gp_Sphere, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec) -> None: ... - @overload - @staticmethod - def D2(U: float, V: float, T: gp_Torus, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec) -> None: ... - @overload - @staticmethod - def D3(U: float, V: float, C: gp_Cone, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec) -> None: ... - @overload - @staticmethod - def D3(U: float, V: float, C: gp_Cylinder, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec) -> None: ... - @overload - @staticmethod - def D3(U: float, V: float, S: gp_Sphere, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec) -> None: ... - @overload - @staticmethod - def D3(U: float, V: float, T: gp_Torus, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec) -> None: ... + def D1( + U: float, V: float, Pl: gp_Pln, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec + ) -> None: ... + @overload + @staticmethod + def D1( + U: float, V: float, C: gp_Cone, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec + ) -> None: ... + @overload + @staticmethod + def D1( + U: float, V: float, C: gp_Cylinder, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec + ) -> None: ... + @overload + @staticmethod + def D1( + U: float, V: float, S: gp_Sphere, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec + ) -> None: ... + @overload + @staticmethod + def D1( + U: float, V: float, T: gp_Torus, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec + ) -> None: ... + @overload + @staticmethod + def D2( + U: float, + V: float, + C: gp_Cone, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D2( + U: float, + V: float, + C: gp_Cylinder, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D2( + U: float, + V: float, + S: gp_Sphere, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D2( + U: float, + V: float, + T: gp_Torus, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D3( + U: float, + V: float, + C: gp_Cone, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + Vuuu: gp_Vec, + Vvvv: gp_Vec, + Vuuv: gp_Vec, + Vuvv: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D3( + U: float, + V: float, + C: gp_Cylinder, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + Vuuu: gp_Vec, + Vvvv: gp_Vec, + Vuuv: gp_Vec, + Vuvv: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D3( + U: float, + V: float, + S: gp_Sphere, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + Vuuu: gp_Vec, + Vvvv: gp_Vec, + Vuuv: gp_Vec, + Vuvv: gp_Vec, + ) -> None: ... + @overload + @staticmethod + def D3( + U: float, + V: float, + T: gp_Torus, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + Vuuu: gp_Vec, + Vvvv: gp_Vec, + Vuuv: gp_Vec, + Vuvv: gp_Vec, + ) -> None: ... @overload @staticmethod def DN(U: float, V: float, Pl: gp_Pln, Nu: int, Nv: int) -> gp_Vec: ... @@ -130,7 +320,9 @@ class elslib: @staticmethod def PlaneD0(U: float, V: float, Pos: gp_Ax3, P: gp_Pnt) -> None: ... @staticmethod - def PlaneD1(U: float, V: float, Pos: gp_Ax3, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... + def PlaneD1( + U: float, V: float, Pos: gp_Ax3, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec + ) -> None: ... @staticmethod def PlaneDN(U: float, V: float, Pos: gp_Ax3, Nu: int, Nv: int) -> gp_Vec: ... @staticmethod @@ -144,15 +336,53 @@ class elslib: @staticmethod def SphereD0(U: float, V: float, Pos: gp_Ax3, Radius: float, P: gp_Pnt) -> None: ... @staticmethod - def SphereD1(U: float, V: float, Pos: gp_Ax3, Radius: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @staticmethod - def SphereD2(U: float, V: float, Pos: gp_Ax3, Radius: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec) -> None: ... - @staticmethod - def SphereD3(U: float, V: float, Pos: gp_Ax3, Radius: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec) -> None: ... - @staticmethod - def SphereDN(U: float, V: float, Pos: gp_Ax3, Radius: float, Nu: int, Nv: int) -> gp_Vec: ... - @staticmethod - def SphereParameters(Pos: gp_Ax3, Radius: float, P: gp_Pnt) -> Tuple[float, float]: ... + def SphereD1( + U: float, + V: float, + Pos: gp_Ax3, + Radius: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + ) -> None: ... + @staticmethod + def SphereD2( + U: float, + V: float, + Pos: gp_Ax3, + Radius: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + ) -> None: ... + @staticmethod + def SphereD3( + U: float, + V: float, + Pos: gp_Ax3, + Radius: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + Vuuu: gp_Vec, + Vvvv: gp_Vec, + Vuuv: gp_Vec, + Vuvv: gp_Vec, + ) -> None: ... + @staticmethod + def SphereDN( + U: float, V: float, Pos: gp_Ax3, Radius: float, Nu: int, Nv: int + ) -> gp_Vec: ... + @staticmethod + def SphereParameters( + Pos: gp_Ax3, Radius: float, P: gp_Pnt + ) -> Tuple[float, float]: ... @staticmethod def SphereUIso(Pos: gp_Ax3, Radius: float, U: float) -> gp_Circ: ... @staticmethod @@ -160,23 +390,83 @@ class elslib: @staticmethod def SphereValue(U: float, V: float, Pos: gp_Ax3, Radius: float) -> gp_Pnt: ... @staticmethod - def TorusD0(U: float, V: float, Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, P: gp_Pnt) -> None: ... - @staticmethod - def TorusD1(U: float, V: float, Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec) -> None: ... - @staticmethod - def TorusD2(U: float, V: float, Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec) -> None: ... - @staticmethod - def TorusD3(U: float, V: float, Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec) -> None: ... - @staticmethod - def TorusDN(U: float, V: float, Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, Nu: int, Nv: int) -> gp_Vec: ... - @staticmethod - def TorusParameters(Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, P: gp_Pnt) -> Tuple[float, float]: ... - @staticmethod - def TorusUIso(Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, U: float) -> gp_Circ: ... - @staticmethod - def TorusVIso(Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, V: float) -> gp_Circ: ... - @staticmethod - def TorusValue(U: float, V: float, Pos: gp_Ax3, MajorRadius: float, MinorRadius: float) -> gp_Pnt: ... + def TorusD0( + U: float, + V: float, + Pos: gp_Ax3, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + ) -> None: ... + @staticmethod + def TorusD1( + U: float, + V: float, + Pos: gp_Ax3, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + ) -> None: ... + @staticmethod + def TorusD2( + U: float, + V: float, + Pos: gp_Ax3, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + ) -> None: ... + @staticmethod + def TorusD3( + U: float, + V: float, + Pos: gp_Ax3, + MajorRadius: float, + MinorRadius: float, + P: gp_Pnt, + Vu: gp_Vec, + Vv: gp_Vec, + Vuu: gp_Vec, + Vvv: gp_Vec, + Vuv: gp_Vec, + Vuuu: gp_Vec, + Vvvv: gp_Vec, + Vuuv: gp_Vec, + Vuvv: gp_Vec, + ) -> None: ... + @staticmethod + def TorusDN( + U: float, + V: float, + Pos: gp_Ax3, + MajorRadius: float, + MinorRadius: float, + Nu: int, + Nv: int, + ) -> gp_Vec: ... + @staticmethod + def TorusParameters( + Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, P: gp_Pnt + ) -> Tuple[float, float]: ... + @staticmethod + def TorusUIso( + Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, U: float + ) -> gp_Circ: ... + @staticmethod + def TorusVIso( + Pos: gp_Ax3, MajorRadius: float, MinorRadius: float, V: float + ) -> gp_Circ: ... + @staticmethod + def TorusValue( + U: float, V: float, Pos: gp_Ax3, MajorRadius: float, MinorRadius: float + ) -> gp_Pnt: ... @overload @staticmethod def Value(U: float, V: float, Pl: gp_Pln) -> gp_Pnt: ... @@ -196,4 +486,3 @@ class elslib: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Expr.pyi b/src/SWIG_files/wrapper/Expr.pyi index acc426b3f..41effeffc 100644 --- a/src/SWIG_files/wrapper/Expr.pyi +++ b/src/SWIG_files/wrapper/Expr.pyi @@ -80,192 +80,203 @@ class Expr_Array1OfSingleRelation: def SetValue(self, theIndex: int, theValue: False) -> None: ... class Expr_SequenceOfGeneralExpression: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Expr_SequenceOfGeneralRelation: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Expr_SequenceOfGeneralRelation: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... -#classnotwrapped +# classnotwrapped class Expr: ... -#classnotwrapped +# classnotwrapped class Expr_Absolute: ... -#classnotwrapped +# classnotwrapped class Expr_ArcCosine: ... -#classnotwrapped +# classnotwrapped class Expr_ArcSine: ... -#classnotwrapped +# classnotwrapped class Expr_ArcTangent: ... -#classnotwrapped +# classnotwrapped class Expr_ArgCosh: ... -#classnotwrapped +# classnotwrapped class Expr_ArgSinh: ... -#classnotwrapped +# classnotwrapped class Expr_ArgTanh: ... -#classnotwrapped +# classnotwrapped class Expr_BinaryExpression: ... -#classnotwrapped +# classnotwrapped class Expr_BinaryFunction: ... -#classnotwrapped +# classnotwrapped class Expr_Cosh: ... -#classnotwrapped +# classnotwrapped class Expr_Cosine: ... -#classnotwrapped +# classnotwrapped class Expr_Difference: ... -#classnotwrapped +# classnotwrapped class Expr_Different: ... -#classnotwrapped +# classnotwrapped class Expr_Division: ... -#classnotwrapped +# classnotwrapped class Expr_Equal: ... -#classnotwrapped +# classnotwrapped class Expr_Exponential: ... -#classnotwrapped +# classnotwrapped class Expr_Exponentiate: ... -#classnotwrapped +# classnotwrapped class Expr_FunctionDerivative: ... -#classnotwrapped +# classnotwrapped class Expr_GeneralExpression: ... -#classnotwrapped +# classnotwrapped class Expr_GeneralFunction: ... -#classnotwrapped +# classnotwrapped class Expr_GeneralRelation: ... -#classnotwrapped +# classnotwrapped class Expr_GreaterThan: ... -#classnotwrapped +# classnotwrapped class Expr_GreaterThanOrEqual: ... -#classnotwrapped +# classnotwrapped class Expr_LessThan: ... -#classnotwrapped +# classnotwrapped class Expr_LessThanOrEqual: ... -#classnotwrapped +# classnotwrapped class Expr_LogOf10: ... -#classnotwrapped +# classnotwrapped class Expr_LogOfe: ... -#classnotwrapped +# classnotwrapped class Expr_NamedConstant: ... -#classnotwrapped +# classnotwrapped class Expr_NamedExpression: ... -#classnotwrapped +# classnotwrapped class Expr_NamedFunction: ... -#classnotwrapped +# classnotwrapped class Expr_NamedUnknown: ... -#classnotwrapped +# classnotwrapped class Expr_NumericValue: ... -#classnotwrapped +# classnotwrapped class Expr_PolyExpression: ... -#classnotwrapped +# classnotwrapped class Expr_PolyFunction: ... -#classnotwrapped +# classnotwrapped class Expr_Product: ... -#classnotwrapped +# classnotwrapped class Expr_RUIterator: ... -#classnotwrapped +# classnotwrapped class Expr_RelationIterator: ... -#classnotwrapped +# classnotwrapped class Expr_Sign: ... -#classnotwrapped +# classnotwrapped class Expr_Sine: ... -#classnotwrapped +# classnotwrapped class Expr_SingleRelation: ... -#classnotwrapped +# classnotwrapped class Expr_Sinh: ... -#classnotwrapped +# classnotwrapped class Expr_Square: ... -#classnotwrapped +# classnotwrapped class Expr_SquareRoot: ... -#classnotwrapped +# classnotwrapped class Expr_Sum: ... -#classnotwrapped +# classnotwrapped class Expr_SystemRelation: ... -#classnotwrapped +# classnotwrapped class Expr_Tangent: ... -#classnotwrapped +# classnotwrapped class Expr_Tanh: ... -#classnotwrapped +# classnotwrapped class Expr_UnaryExpression: ... -#classnotwrapped +# classnotwrapped class Expr_UnaryFunction: ... -#classnotwrapped +# classnotwrapped class Expr_UnaryMinus: ... -#classnotwrapped +# classnotwrapped class Expr_UnknownIterator: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ExprIntrp.i b/src/SWIG_files/wrapper/ExprIntrp.i index aeda8ce1f..0b9031b22 100644 --- a/src/SWIG_files/wrapper/ExprIntrp.i +++ b/src/SWIG_files/wrapper/ExprIntrp.i @@ -84,6 +84,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = ExprIntrp_ListIteratorOfStackOfGeneralExpression(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(ExprIntrp_StackOfGeneralRelation) NCollection_List>; @@ -92,6 +98,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = ExprIntrp_ListIteratorOfStackOfGeneralRelation(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/ExprIntrp.pyi b/src/SWIG_files/wrapper/ExprIntrp.pyi index a3245813d..e320f5a49 100644 --- a/src/SWIG_files/wrapper/ExprIntrp.pyi +++ b/src/SWIG_files/wrapper/ExprIntrp.pyi @@ -5,69 +5,77 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.Expr import * - class ExprIntrp_SequenceOfNamedExpression: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class ExprIntrp_StackOfGeneralExpression: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class ExprIntrp_StackOfGeneralExpression: + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: ExprIntrp_StackOfGeneralExpression + ) -> ExprIntrp_StackOfGeneralExpression: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class ExprIntrp_StackOfGeneralRelation: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class ExprIntrp_StackOfGeneralRelation: + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: ExprIntrp_StackOfGeneralRelation + ) -> ExprIntrp_StackOfGeneralRelation: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... -#classnotwrapped +# classnotwrapped class ExprIntrp: ... -#classnotwrapped +# classnotwrapped class ExprIntrp_Analysis: ... -#classnotwrapped +# classnotwrapped class ExprIntrp_GenExp: ... -#classnotwrapped +# classnotwrapped class ExprIntrp_GenFct: ... -#classnotwrapped +# classnotwrapped class ExprIntrp_GenRel: ... -#classnotwrapped +# classnotwrapped class ExprIntrp_Generator: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Extrema.pyi b/src/SWIG_files/wrapper/Extrema.pyi index 77af3d32a..c8a47a313 100644 --- a/src/SWIG_files/wrapper/Extrema.pyi +++ b/src/SWIG_files/wrapper/Extrema.pyi @@ -101,49 +101,67 @@ class Extrema_Array1OfPOnSurf: def SetValue(self, theIndex: int, theValue: Extrema_POnSurf) -> None: ... class Extrema_SequenceOfPOnCurv: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: Extrema_POnCurv) -> Extrema_POnCurv: ... def Clear(self) -> None: ... def First(self) -> Extrema_POnCurv: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Extrema_POnCurv: ... def Length(self) -> int: ... - def Append(self, theItem: Extrema_POnCurv) -> Extrema_POnCurv: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Extrema_POnCurv) -> Extrema_POnCurv: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Extrema_POnCurv: ... def SetValue(self, theIndex: int, theValue: Extrema_POnCurv) -> None: ... - -class Extrema_SequenceOfPOnCurv2d: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Extrema_POnCurv: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Extrema_SequenceOfPOnCurv2d: + def Assign(self, theItem: Extrema_POnCurv2d) -> Extrema_POnCurv2d: ... def Clear(self) -> None: ... def First(self) -> Extrema_POnCurv2d: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Extrema_POnCurv2d: ... def Length(self) -> int: ... - def Append(self, theItem: Extrema_POnCurv2d) -> Extrema_POnCurv2d: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Extrema_POnCurv2d) -> Extrema_POnCurv2d: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Extrema_POnCurv2d: ... def SetValue(self, theIndex: int, theValue: Extrema_POnCurv2d) -> None: ... - -class Extrema_SequenceOfPOnSurf: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Extrema_POnCurv2d: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Extrema_SequenceOfPOnSurf: + def Assign(self, theItem: Extrema_POnSurf) -> Extrema_POnSurf: ... def Clear(self) -> None: ... def First(self) -> Extrema_POnSurf: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Extrema_POnSurf: ... def Length(self) -> int: ... - def Append(self, theItem: Extrema_POnSurf) -> Extrema_POnSurf: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Extrema_POnSurf) -> Extrema_POnSurf: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Extrema_POnSurf: ... def SetValue(self, theIndex: int, theValue: Extrema_POnSurf) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Extrema_POnSurf: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Extrema_ElementType(IntEnum): Extrema_Node: int = ... @@ -176,7 +194,12 @@ class Extrema_CCLocFOfLocECC(math_FunctionSetWithDerivatives): @overload def __init__(self, thetol: Optional[float] = 1.0e-10) -> None: ... @overload - def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, thetol: Optional[float] = 1.0e-10) -> None: ... + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + thetol: Optional[float] = 1.0e-10, + ) -> None: ... def CurvePtr(self, theRank: int) -> None: ... def Derivatives(self, UV: math_Vector, DF: math_Matrix) -> bool: ... def GetStateNumber(self) -> int: ... @@ -188,7 +211,9 @@ class Extrema_CCLocFOfLocECC(math_FunctionSetWithDerivatives): def SetCurve(self, theRank: int, C1: Adaptor3d_Curve) -> None: ... def SetTolerance(self, theTol: float) -> None: ... def SquareDistance(self, N: int) -> float: ... - def SubIntervalInitialize(self, theUfirst: math_Vector, theUlast: math_Vector) -> None: ... + def SubIntervalInitialize( + self, theUfirst: math_Vector, theUlast: math_Vector + ) -> None: ... def Tolerance(self) -> float: ... def Value(self, UV: math_Vector, F: math_Vector) -> bool: ... def Values(self, UV: math_Vector, F: math_Vector, DF: math_Matrix) -> bool: ... @@ -197,7 +222,12 @@ class Extrema_CCLocFOfLocECC2d(math_FunctionSetWithDerivatives): @overload def __init__(self, thetol: Optional[float] = 1.0e-10) -> None: ... @overload - def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, thetol: Optional[float] = 1.0e-10) -> None: ... + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + thetol: Optional[float] = 1.0e-10, + ) -> None: ... def CurvePtr(self, theRank: int) -> None: ... def Derivatives(self, UV: math_Vector, DF: math_Matrix) -> bool: ... def GetStateNumber(self) -> int: ... @@ -209,7 +239,9 @@ class Extrema_CCLocFOfLocECC2d(math_FunctionSetWithDerivatives): def SetCurve(self, theRank: int, C1: Adaptor2d_Curve2d) -> None: ... def SetTolerance(self, theTol: float) -> None: ... def SquareDistance(self, N: int) -> float: ... - def SubIntervalInitialize(self, theUfirst: math_Vector, theUlast: math_Vector) -> None: ... + def SubIntervalInitialize( + self, theUfirst: math_Vector, theUlast: math_Vector + ) -> None: ... def Tolerance(self) -> float: ... def Value(self, UV: math_Vector, F: math_Vector) -> bool: ... def Values(self, UV: math_Vector, F: math_Vector, DF: math_Matrix) -> bool: ... @@ -228,9 +260,18 @@ class Extrema_Curve2dTool: @staticmethod def D1(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... @staticmethod - def D2(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @staticmethod - def D3(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + C: Adaptor2d_Curve2d, + U: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... @staticmethod def DN(C: Adaptor2d_Curve2d, U: float, N: int) -> gp_Vec2d: ... @staticmethod @@ -246,7 +287,9 @@ class Extrema_Curve2dTool: @staticmethod def Hyperbola(C: Adaptor2d_Curve2d) -> gp_Hypr2d: ... @staticmethod - def Intervals(C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def Intervals( + C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... @staticmethod def IsClosed(C: Adaptor2d_Curve2d) -> bool: ... @staticmethod @@ -288,7 +331,9 @@ class Extrema_CurveTool: @staticmethod def D2(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... @staticmethod - def D3(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @staticmethod def DN(C: Adaptor3d_Curve, U: float, N: int) -> gp_Vec: ... @staticmethod @@ -304,7 +349,9 @@ class Extrema_CurveTool: @staticmethod def Hyperbola(C: Adaptor3d_Curve) -> gp_Hypr: ... @staticmethod - def Intervals(C: Adaptor3d_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def Intervals( + C: Adaptor3d_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... @staticmethod def IsPeriodic(C: Adaptor3d_Curve) -> bool: ... @staticmethod @@ -334,14 +381,30 @@ class Extrema_ECC: @overload def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve) -> None: ... @overload - def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, Uinf: float, Usup: float, Vinf: float, Vsup: float) -> None: ... + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + ) -> None: ... def GetSingleSolutionFlag(self) -> bool: ... def IsDone(self) -> bool: ... def IsParallel(self) -> bool: ... def NbExt(self) -> int: ... def Perform(self) -> None: ... def Points(self, N: int, P1: Extrema_POnCurv, P2: Extrema_POnCurv) -> None: ... - def SetParams(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, Uinf: float, Usup: float, Vinf: float, Vsup: float) -> None: ... + def SetParams( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + ) -> None: ... def SetSingleSolutionFlag(self, theSingleSolutionFlag: bool) -> None: ... def SetTolerance(self, Tol: float) -> None: ... def SquareDistance(self, N: Optional[int] = 1) -> float: ... @@ -352,14 +415,30 @@ class Extrema_ECC2d: @overload def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d) -> None: ... @overload - def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, Uinf: float, Usup: float, Vinf: float, Vsup: float) -> None: ... + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + ) -> None: ... def GetSingleSolutionFlag(self) -> bool: ... def IsDone(self) -> bool: ... def IsParallel(self) -> bool: ... def NbExt(self) -> int: ... def Perform(self) -> None: ... def Points(self, N: int, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... - def SetParams(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, Uinf: float, Usup: float, Vinf: float, Vsup: float) -> None: ... + def SetParams( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + ) -> None: ... def SetSingleSolutionFlag(self, theSingleSolutionFlag: bool) -> None: ... def SetTolerance(self, Tol: float) -> None: ... def SquareDistance(self, N: Optional[int] = 1) -> float: ... @@ -368,10 +447,25 @@ class Extrema_ELPCOfLocateExtPC: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, Uinf: float, Usup: float, TolF: Optional[float] = 1.0e-10) -> None: ... - @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, TolF: Optional[float] = 1.0e-10) -> None: ... - def Initialize(self, C: Adaptor3d_Curve, Uinf: float, Usup: float, TolF: Optional[float] = 1.0e-10) -> None: ... + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, TolF: Optional[float] = 1.0e-10 + ) -> None: ... + def Initialize( + self, + C: Adaptor3d_Curve, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... @@ -384,33 +478,73 @@ class Extrema_ELPCOfLocateExtPC2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, Uinf: float, Usup: float, TolF: Optional[float] = 1.0e-10) -> None: ... - @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, TolF: Optional[float] = 1.0e-10) -> None: ... - def Initialize(self, C: Adaptor2d_Curve2d, Uinf: float, Usup: float, TolF: Optional[float] = 1.0e-10) -> None: ... + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, TolF: Optional[float] = 1.0e-10 + ) -> None: ... + def Initialize( + self, + C: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... def Perform(self, P: gp_Pnt2d) -> None: ... def Point(self, N: int) -> Extrema_POnCurv2d: ... def SquareDistance(self, N: int) -> float: ... - def TrimmedSquareDistances(self, P1: gp_Pnt2d, P2: gp_Pnt2d) -> Tuple[float, float]: ... + def TrimmedSquareDistances( + self, P1: gp_Pnt2d, P2: gp_Pnt2d + ) -> Tuple[float, float]: ... class Extrema_EPCOfELPCOfLocateExtPC: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... - @overload - def Initialize(self, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float) -> None: ... - @overload - def Initialize(self, C: Adaptor3d_Curve, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize( + self, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor3d_Curve, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... @overload def Initialize(self, C: Adaptor3d_Curve) -> None: ... @overload - def Initialize(self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... + def Initialize( + self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... @@ -422,17 +556,40 @@ class Extrema_EPCOfELPCOfLocateExtPC2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... - @overload - def Initialize(self, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float) -> None: ... - @overload - def Initialize(self, C: Adaptor2d_Curve2d, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize( + self, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor2d_Curve2d, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... @overload def Initialize(self, C: Adaptor2d_Curve2d) -> None: ... @overload - def Initialize(self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... + def Initialize( + self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... @@ -444,17 +601,40 @@ class Extrema_EPCOfExtPC: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... - @overload - def Initialize(self, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float) -> None: ... - @overload - def Initialize(self, C: Adaptor3d_Curve, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize( + self, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor3d_Curve, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... @overload def Initialize(self, C: Adaptor3d_Curve) -> None: ... @overload - def Initialize(self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... + def Initialize( + self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... @@ -466,17 +646,40 @@ class Extrema_EPCOfExtPC2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... - @overload - def Initialize(self, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float) -> None: ... - @overload - def Initialize(self, C: Adaptor2d_Curve2d, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize( + self, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor2d_Curve2d, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... @overload def Initialize(self, C: Adaptor2d_Curve2d) -> None: ... @overload - def Initialize(self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float) -> None: ... + def Initialize( + self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... @@ -486,16 +689,50 @@ class Extrema_EPCOfExtPC2d: class Extrema_ExtCC: @overload - def __init__(self, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10) -> None: ... - @overload - def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10) -> None: ... - @overload - def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, U1: float, U2: float, V1: float, V2: float, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10) -> None: ... + def __init__( + self, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10 + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + U1: float, + U2: float, + V1: float, + V2: float, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... def GetSingleSolutionFlag(self) -> bool: ... @overload - def Initialize(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10) -> None: ... - @overload - def Initialize(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, U1: float, U2: float, V1: float, V2: float, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10) -> None: ... + def Initialize( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def Initialize( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + U1: float, + U2: float, + V1: float, + V2: float, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... def IsDone(self) -> bool: ... def IsParallel(self) -> bool: ... def NbExt(self) -> int: ... @@ -504,22 +741,49 @@ class Extrema_ExtCC: @overload def SetCurve(self, theRank: int, C: Adaptor3d_Curve) -> None: ... @overload - def SetCurve(self, theRank: int, C: Adaptor3d_Curve, Uinf: float, Usup: float) -> None: ... + def SetCurve( + self, theRank: int, C: Adaptor3d_Curve, Uinf: float, Usup: float + ) -> None: ... def SetRange(self, theRank: int, Uinf: float, Usup: float) -> None: ... def SetSingleSolutionFlag(self, theSingleSolutionFlag: bool) -> None: ... def SetTolerance(self, theRank: int, Tol: float) -> None: ... def SquareDistance(self, N: Optional[int] = 1) -> float: ... - def TrimmedSquareDistances(self, P11: gp_Pnt, P12: gp_Pnt, P21: gp_Pnt, P22: gp_Pnt) -> Tuple[float, float, float, float]: ... + def TrimmedSquareDistances( + self, P11: gp_Pnt, P12: gp_Pnt, P21: gp_Pnt, P22: gp_Pnt + ) -> Tuple[float, float, float, float]: ... class Extrema_ExtCC2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10) -> None: ... - @overload - def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, U1: float, U2: float, V1: float, V2: float, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10) -> None: ... + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + U1: float, + U2: float, + V1: float, + V2: float, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... def GetSingleSolutionFlag(self) -> bool: ... - def Initialize(self, C2: Adaptor2d_Curve2d, V1: float, V2: float, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10) -> None: ... + def Initialize( + self, + C2: Adaptor2d_Curve2d, + V1: float, + V2: float, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... def IsDone(self) -> bool: ... def IsParallel(self) -> bool: ... def NbExt(self) -> int: ... @@ -527,19 +791,44 @@ class Extrema_ExtCC2d: def Points(self, N: int, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... def SetSingleSolutionFlag(self, theSingleSolutionFlag: bool) -> None: ... def SquareDistance(self, N: Optional[int] = 1) -> float: ... - def TrimmedSquareDistances(self, P11: gp_Pnt2d, P12: gp_Pnt2d, P21: gp_Pnt2d, P22: gp_Pnt2d) -> Tuple[float, float, float, float]: ... + def TrimmedSquareDistances( + self, P11: gp_Pnt2d, P12: gp_Pnt2d, P21: gp_Pnt2d, P22: gp_Pnt2d + ) -> Tuple[float, float, float, float]: ... class Extrema_ExtCS: @overload def __init__(self) -> None: ... @overload - def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, TolC: float, TolS: float) -> None: ... - @overload - def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, UCinf: float, UCsup: float, Uinf: float, Usup: float, Vinf: float, Vsup: float, TolC: float, TolS: float) -> None: ... + def __init__( + self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, TolC: float, TolS: float + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + UCinf: float, + UCsup: float, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolC: float, + TolS: float, + ) -> None: ... @overload def Initialize(self, S: Adaptor3d_Surface, TolC: float, TolS: float) -> None: ... @overload - def Initialize(self, S: Adaptor3d_Surface, Uinf: float, Usup: float, Vinf: float, Vsup: float, TolC: float, TolS: float) -> None: ... + def Initialize( + self, + S: Adaptor3d_Surface, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolC: float, + TolS: float, + ) -> None: ... def IsDone(self) -> bool: ... def IsParallel(self) -> bool: ... def NbExt(self) -> int: ... @@ -685,10 +974,25 @@ class Extrema_ExtPC: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, Uinf: float, Usup: float, TolF: Optional[float] = 1.0e-10) -> None: ... - @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, TolF: Optional[float] = 1.0e-10) -> None: ... - def Initialize(self, C: Adaptor3d_Curve, Uinf: float, Usup: float, TolF: Optional[float] = 1.0e-10) -> None: ... + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, TolF: Optional[float] = 1.0e-10 + ) -> None: ... + def Initialize( + self, + C: Adaptor3d_Curve, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... @@ -701,44 +1005,81 @@ class Extrema_ExtPC2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, Uinf: float, Usup: float, TolF: Optional[float] = 1.0e-10) -> None: ... - @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, TolF: Optional[float] = 1.0e-10) -> None: ... - def Initialize(self, C: Adaptor2d_Curve2d, Uinf: float, Usup: float, TolF: Optional[float] = 1.0e-10) -> None: ... + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, TolF: Optional[float] = 1.0e-10 + ) -> None: ... + def Initialize( + self, + C: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... def Perform(self, P: gp_Pnt2d) -> None: ... def Point(self, N: int) -> Extrema_POnCurv2d: ... def SquareDistance(self, N: int) -> float: ... - def TrimmedSquareDistances(self, P1: gp_Pnt2d, P2: gp_Pnt2d) -> Tuple[float, float]: ... + def TrimmedSquareDistances( + self, P1: gp_Pnt2d, P2: gp_Pnt2d + ) -> Tuple[float, float]: ... class Extrema_ExtPElC: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: gp_Lin, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt, C: gp_Lin, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: gp_Circ, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt, C: gp_Circ, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: gp_Elips, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt, C: gp_Elips, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: gp_Hypr, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt, C: gp_Hypr, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: gp_Parab, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt, C: gp_Parab, Tol: float, Uinf: float, Usup: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... @overload - def Perform(self, P: gp_Pnt, C: gp_Lin, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt, C: gp_Lin, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def Perform(self, P: gp_Pnt, C: gp_Circ, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt, C: gp_Circ, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def Perform(self, P: gp_Pnt, C: gp_Elips, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt, C: gp_Elips, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def Perform(self, P: gp_Pnt, C: gp_Hypr, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt, C: gp_Hypr, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def Perform(self, P: gp_Pnt, C: gp_Parab, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt, C: gp_Parab, Tol: float, Uinf: float, Usup: float + ) -> None: ... def Point(self, N: int) -> Extrema_POnCurv: ... def SquareDistance(self, N: int) -> float: ... @@ -746,28 +1087,48 @@ class Extrema_ExtPElC2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: gp_Lin2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: gp_Lin2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: gp_Circ2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: gp_Circ2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: gp_Elips2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: gp_Elips2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: gp_Hypr2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: gp_Hypr2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: gp_Parab2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: gp_Parab2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self, N: int) -> bool: ... def NbExt(self) -> int: ... @overload - def Perform(self, P: gp_Pnt2d, L: gp_Lin2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt2d, L: gp_Lin2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def Perform(self, P: gp_Pnt2d, C: gp_Circ2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt2d, C: gp_Circ2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def Perform(self, P: gp_Pnt2d, C: gp_Elips2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt2d, C: gp_Elips2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def Perform(self, P: gp_Pnt2d, C: gp_Hypr2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt2d, C: gp_Hypr2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... @overload - def Perform(self, P: gp_Pnt2d, C: gp_Parab2d, Tol: float, Uinf: float, Usup: float) -> None: ... + def Perform( + self, P: gp_Pnt2d, C: gp_Parab2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... def Point(self, N: int) -> Extrema_POnCurv2d: ... def SquareDistance(self, N: int) -> float: ... @@ -803,10 +1164,35 @@ class Extrema_ExtPExtS(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, S: GeomAdaptor_SurfaceOfLinearExtrusion, Umin: float, Usup: float, Vmin: float, Vsup: float, TolU: float, TolV: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt, S: GeomAdaptor_SurfaceOfLinearExtrusion, TolU: float, TolV: float) -> None: ... - def Initialize(self, S: GeomAdaptor_SurfaceOfLinearExtrusion, Uinf: float, Usup: float, Vinf: float, Vsup: float, TolU: float, TolV: float) -> None: ... + def __init__( + self, + P: gp_Pnt, + S: GeomAdaptor_SurfaceOfLinearExtrusion, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: GeomAdaptor_SurfaceOfLinearExtrusion, + TolU: float, + TolV: float, + ) -> None: ... + def Initialize( + self, + S: GeomAdaptor_SurfaceOfLinearExtrusion, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbExt(self) -> int: ... def Perform(self, P: gp_Pnt) -> None: ... @@ -817,10 +1203,31 @@ class Extrema_ExtPRevS(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, S: GeomAdaptor_SurfaceOfRevolution, Umin: float, Usup: float, Vmin: float, Vsup: float, TolU: float, TolV: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt, S: GeomAdaptor_SurfaceOfRevolution, TolU: float, TolV: float) -> None: ... - def Initialize(self, S: GeomAdaptor_SurfaceOfRevolution, Umin: float, Usup: float, Vmin: float, Vsup: float, TolU: float, TolV: float) -> None: ... + def __init__( + self, + P: gp_Pnt, + S: GeomAdaptor_SurfaceOfRevolution, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, S: GeomAdaptor_SurfaceOfRevolution, TolU: float, TolV: float + ) -> None: ... + def Initialize( + self, + S: GeomAdaptor_SurfaceOfRevolution, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbExt(self) -> int: ... def Perform(self, P: gp_Pnt) -> None: ... @@ -831,10 +1238,39 @@ class Extrema_ExtPS: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, S: Adaptor3d_Surface, TolU: float, TolV: float, F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def __init__(self, P: gp_Pnt, S: Adaptor3d_Surface, Uinf: float, Usup: float, Vinf: float, Vsup: float, TolU: float, TolV: float, F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - def Initialize(self, S: Adaptor3d_Surface, Uinf: float, Usup: float, Vinf: float, Vsup: float, TolU: float, TolV: float) -> None: ... + def __init__( + self, + P: gp_Pnt, + S: Adaptor3d_Surface, + TolU: float, + TolV: float, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: Adaptor3d_Surface, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolU: float, + TolV: float, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + def Initialize( + self, + S: Adaptor3d_Surface, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbExt(self) -> int: ... def Perform(self, P: gp_Pnt) -> None: ... @@ -842,20 +1278,54 @@ class Extrema_ExtPS: def SetAlgo(self, A: Extrema_ExtAlgo) -> None: ... def SetFlag(self, F: Extrema_ExtFlag) -> None: ... def SquareDistance(self, N: int) -> float: ... - def TrimmedSquareDistances(self, PUfVf: gp_Pnt, PUfVl: gp_Pnt, PUlVf: gp_Pnt, PUlVl: gp_Pnt) -> Tuple[float, float, float, float]: ... + def TrimmedSquareDistances( + self, PUfVf: gp_Pnt, PUfVl: gp_Pnt, PUlVf: gp_Pnt, PUlVl: gp_Pnt + ) -> Tuple[float, float, float, float]: ... class Extrema_ExtSS: @overload def __init__(self) -> None: ... @overload - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolS1: float, TolS2: float) -> None: ... - @overload - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, Uinf1: float, Usup1: float, Vinf1: float, Vsup1: float, Uinf2: float, Usup2: float, Vinf2: float, Vsup2: float, TolS1: float, TolS2: float) -> None: ... - def Initialize(self, S2: Adaptor3d_Surface, Uinf2: float, Usup2: float, Vinf2: float, Vsup2: float, TolS1: float) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolS1: float, TolS2: float + ) -> None: ... + @overload + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + Uinf1: float, + Usup1: float, + Vinf1: float, + Vsup1: float, + Uinf2: float, + Usup2: float, + Vinf2: float, + Vsup2: float, + TolS1: float, + TolS2: float, + ) -> None: ... + def Initialize( + self, + S2: Adaptor3d_Surface, + Uinf2: float, + Usup2: float, + Vinf2: float, + Vsup2: float, + TolS1: float, + ) -> None: ... def IsDone(self) -> bool: ... def IsParallel(self) -> bool: ... def NbExt(self) -> int: ... - def Perform(self, S1: Adaptor3d_Surface, Uinf1: float, Usup1: float, Vinf1: float, Vsup1: float, TolS1: float) -> None: ... + def Perform( + self, + S1: Adaptor3d_Surface, + Uinf1: float, + Usup1: float, + Vinf1: float, + Vsup1: float, + TolS1: float, + ) -> None: ... def Points(self, N: int, P1: Extrema_POnSurf, P2: Extrema_POnSurf) -> None: ... def SquareDistance(self, N: int) -> float: ... @@ -921,19 +1391,57 @@ class Extrema_GenExtCS: @overload def __init__(self) -> None: ... @overload - def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, NbT: int, NbU: int, NbV: int, Tol1: float, Tol2: float) -> None: ... - @overload - def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, NbT: int, NbU: int, NbV: int, tmin: float, tsup: float, Umin: float, Usup: float, Vmin: float, Vsup: float, Tol1: float, Tol2: float) -> None: ... - @overload - def Initialize(self, S: Adaptor3d_Surface, NbU: int, NbV: int, Tol2: float) -> None: ... - @overload - def Initialize(self, S: Adaptor3d_Surface, NbU: int, NbV: int, Umin: float, Usup: float, Vmin: float, Vsup: float, Tol2: float) -> None: ... + def __init__( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + NbT: int, + NbU: int, + NbV: int, + Tol1: float, + Tol2: float, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + NbT: int, + NbU: int, + NbV: int, + tmin: float, + tsup: float, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Tol1: float, + Tol2: float, + ) -> None: ... + @overload + def Initialize( + self, S: Adaptor3d_Surface, NbU: int, NbV: int, Tol2: float + ) -> None: ... + @overload + def Initialize( + self, + S: Adaptor3d_Surface, + NbU: int, + NbV: int, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Tol2: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbExt(self) -> int: ... @overload def Perform(self, C: Adaptor3d_Curve, NbT: int, Tol1: float) -> None: ... @overload - def Perform(self, C: Adaptor3d_Curve, NbT: int, tmin: float, tsup: float, Tol1: float) -> None: ... + def Perform( + self, C: Adaptor3d_Curve, NbT: int, tmin: float, tsup: float, Tol1: float + ) -> None: ... def PointOnCurve(self, N: int) -> Extrema_POnCurv: ... def PointOnSurface(self, N: int) -> Extrema_POnSurf: ... def SquareDistance(self, N: int) -> float: ... @@ -942,13 +1450,50 @@ class Extrema_GenExtPS: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, S: Adaptor3d_Surface, NbU: int, NbV: int, TolU: float, TolV: float, F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def __init__(self, P: gp_Pnt, S: Adaptor3d_Surface, NbU: int, NbV: int, Umin: float, Usup: float, Vmin: float, Vsup: float, TolU: float, TolV: float, F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def Initialize(self, S: Adaptor3d_Surface, NbU: int, NbV: int, TolU: float, TolV: float) -> None: ... - @overload - def Initialize(self, S: Adaptor3d_Surface, NbU: int, NbV: int, Umin: float, Usup: float, Vmin: float, Vsup: float, TolU: float, TolV: float) -> None: ... + def __init__( + self, + P: gp_Pnt, + S: Adaptor3d_Surface, + NbU: int, + NbV: int, + TolU: float, + TolV: float, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: Adaptor3d_Surface, + NbU: int, + NbV: int, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def Initialize( + self, S: Adaptor3d_Surface, NbU: int, NbV: int, TolU: float, TolV: float + ) -> None: ... + @overload + def Initialize( + self, + S: Adaptor3d_Surface, + NbU: int, + NbV: int, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbExt(self) -> int: ... def Perform(self, P: gp_Pnt) -> None: ... @@ -961,19 +1506,63 @@ class Extrema_GenExtSS: @overload def __init__(self) -> None: ... @overload - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, NbU: int, NbV: int, Tol1: float, Tol2: float) -> None: ... - @overload - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, NbU: int, NbV: int, U1min: float, U1sup: float, V1min: float, V1sup: float, U2min: float, U2sup: float, V2min: float, V2sup: float, Tol1: float, Tol2: float) -> None: ... - @overload - def Initialize(self, S2: Adaptor3d_Surface, NbU: int, NbV: int, Tol2: float) -> None: ... - @overload - def Initialize(self, S2: Adaptor3d_Surface, NbU: int, NbV: int, U2min: float, U2sup: float, V2min: float, V2sup: float, Tol2: float) -> None: ... + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + NbU: int, + NbV: int, + Tol1: float, + Tol2: float, + ) -> None: ... + @overload + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + NbU: int, + NbV: int, + U1min: float, + U1sup: float, + V1min: float, + V1sup: float, + U2min: float, + U2sup: float, + V2min: float, + V2sup: float, + Tol1: float, + Tol2: float, + ) -> None: ... + @overload + def Initialize( + self, S2: Adaptor3d_Surface, NbU: int, NbV: int, Tol2: float + ) -> None: ... + @overload + def Initialize( + self, + S2: Adaptor3d_Surface, + NbU: int, + NbV: int, + U2min: float, + U2sup: float, + V2min: float, + V2sup: float, + Tol2: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbExt(self) -> int: ... @overload def Perform(self, S1: Adaptor3d_Surface, Tol1: float) -> None: ... @overload - def Perform(self, S1: Adaptor3d_Surface, U1min: float, U1sup: float, V1min: float, V1sup: float, Tol1: float) -> None: ... + def Perform( + self, + S1: Adaptor3d_Surface, + U1min: float, + U1sup: float, + V1min: float, + V1sup: float, + Tol1: float, + ) -> None: ... def PointOnS1(self, N: int) -> Extrema_POnSurf: ... def PointOnS2(self, N: int) -> Extrema_POnSurf: ... def SquareDistance(self, N: int) -> float: ... @@ -982,19 +1571,50 @@ class Extrema_GenLocateExtCS: @overload def __init__(self) -> None: ... @overload - def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, T: float, U: float, V: float, Tol1: float, Tol2: float) -> None: ... + def __init__( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + T: float, + U: float, + V: float, + Tol1: float, + Tol2: float, + ) -> None: ... def IsDone(self) -> bool: ... - def Perform(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, T: float, U: float, V: float, Tol1: float, Tol2: float) -> None: ... + def Perform( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + T: float, + U: float, + V: float, + Tol1: float, + Tol2: float, + ) -> None: ... def PointOnCurve(self) -> Extrema_POnCurv: ... def PointOnSurface(self) -> Extrema_POnSurf: ... def SquareDistance(self) -> float: ... class Extrema_GenLocateExtPS: - def __init__(self, theS: Adaptor3d_Surface, theTolU: Optional[float] = Precision.PConfusion(), theTolV: Optional[float] = Precision.PConfusion()) -> None: ... + def __init__( + self, + theS: Adaptor3d_Surface, + theTolU: Optional[float] = Precision.PConfusion(), + theTolV: Optional[float] = Precision.PConfusion(), + ) -> None: ... def IsDone(self) -> bool: ... @staticmethod - def IsMinDist(theP: gp_Pnt, theS: Adaptor3d_Surface, theU0: float, theV0: float) -> bool: ... - def Perform(self, theP: gp_Pnt, theU0: float, theV0: float, isDistanceCriteria: Optional[bool] = False) -> None: ... + def IsMinDist( + theP: gp_Pnt, theS: Adaptor3d_Surface, theU0: float, theV0: float + ) -> bool: ... + def Perform( + self, + theP: gp_Pnt, + theU0: float, + theV0: float, + isDistanceCriteria: Optional[bool] = False, + ) -> None: ... def Point(self) -> Extrema_POnSurf: ... def SquareDistance(self) -> float: ... @@ -1002,9 +1622,29 @@ class Extrema_GenLocateExtSS: @overload def __init__(self) -> None: ... @overload - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, U1: float, V1: float, U2: float, V2: float, Tol1: float, Tol2: float) -> None: ... + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + U1: float, + V1: float, + U2: float, + V2: float, + Tol1: float, + Tol2: float, + ) -> None: ... def IsDone(self) -> bool: ... - def Perform(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, U1: float, V1: float, U2: float, V2: float, Tol1: float, Tol2: float) -> None: ... + def Perform( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + U1: float, + V1: float, + U2: float, + V2: float, + Tol1: float, + Tol2: float, + ) -> None: ... def PointOnS1(self) -> Extrema_POnSurf: ... def PointOnS2(self) -> Extrema_POnSurf: ... def SquareDistance(self) -> float: ... @@ -1038,7 +1678,9 @@ class Extrema_GlobOptFuncCCC2(math_MultipleVarFunctionWithHessian): @overload def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... @overload - def Values(self, X: math_Vector, G: math_Vector, H: math_Matrix) -> Tuple[bool, float]: ... + def Values( + self, X: math_Vector, G: math_Vector, H: math_Matrix + ) -> Tuple[bool, float]: ... class Extrema_GlobOptFuncCQuadric(math_MultipleVarFunction): @overload @@ -1047,7 +1689,14 @@ class Extrema_GlobOptFuncCQuadric(math_MultipleVarFunction): def __init__(self, C: Adaptor3d_Curve, theTf: float, theTl: float) -> None: ... @overload def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface) -> None: ... - def LoadQuad(self, S: Adaptor3d_Surface, theUf: float, theUl: float, theVf: float, theVl: float) -> None: ... + def LoadQuad( + self, + S: Adaptor3d_Surface, + theUf: float, + theUl: float, + theVf: float, + theVl: float, + ) -> None: ... def NbVariables(self) -> int: ... def QuadricParameters(self, theCT: math_Vector, theUV: math_Vector) -> None: ... def Value(self, theX: math_Vector) -> Tuple[bool, float]: ... @@ -1060,7 +1709,9 @@ class Extrema_GlobOptFuncCS(math_MultipleVarFunctionWithHessian): @overload def Values(self, theX: math_Vector, theG: math_Vector) -> Tuple[bool, float]: ... @overload - def Values(self, theX: math_Vector, theG: math_Vector, theH: math_Matrix) -> Tuple[bool, float]: ... + def Values( + self, theX: math_Vector, theG: math_Vector, theH: math_Matrix + ) -> Tuple[bool, float]: ... class Extrema_GlobOptFuncConicS(math_MultipleVarFunction): @overload @@ -1068,20 +1719,43 @@ class Extrema_GlobOptFuncConicS(math_MultipleVarFunction): @overload def __init__(self, S: Adaptor3d_Surface) -> None: ... @overload - def __init__(self, S: Adaptor3d_Surface, theUf: float, theUl: float, theVf: float, theVl: float) -> None: ... + def __init__( + self, + S: Adaptor3d_Surface, + theUf: float, + theUl: float, + theVf: float, + theVl: float, + ) -> None: ... def ConicParameter(self, theUV: math_Vector) -> float: ... def LoadConic(self, S: Adaptor3d_Curve, theTf: float, theTl: float) -> None: ... def NbVariables(self) -> int: ... def Value(self, theX: math_Vector) -> Tuple[bool, float]: ... class Extrema_LocECC: - def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, U0: float, V0: float, TolU: float, TolV: float) -> None: ... + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + U0: float, + V0: float, + TolU: float, + TolV: float, + ) -> None: ... def IsDone(self) -> bool: ... def Point(self, P1: Extrema_POnCurv, P2: Extrema_POnCurv) -> None: ... def SquareDistance(self) -> float: ... class Extrema_LocECC2d: - def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, U0: float, V0: float, TolU: float, TolV: float) -> None: ... + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + U0: float, + V0: float, + TolU: float, + TolV: float, + ) -> None: ... def IsDone(self) -> bool: ... def Point(self, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... def SquareDistance(self) -> float: ... @@ -1090,10 +1764,22 @@ class Extrema_LocEPCOfLocateExtPC: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, U0: float, TolU: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, U0: float, Umin: float, Usup: float, TolU: float) -> None: ... - def Initialize(self, C: Adaptor3d_Curve, Umin: float, Usup: float, TolU: float) -> None: ... + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, U0: float, TolU: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + U0: float, + Umin: float, + Usup: float, + TolU: float, + ) -> None: ... + def Initialize( + self, C: Adaptor3d_Curve, Umin: float, Usup: float, TolU: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self) -> bool: ... def Perform(self, P: gp_Pnt, U0: float) -> None: ... @@ -1104,10 +1790,22 @@ class Extrema_LocEPCOfLocateExtPC2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, TolU: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, Umin: float, Usup: float, TolU: float) -> None: ... - def Initialize(self, C: Adaptor2d_Curve2d, Umin: float, Usup: float, TolU: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, TolU: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + U0: float, + Umin: float, + Usup: float, + TolU: float, + ) -> None: ... + def Initialize( + self, C: Adaptor2d_Curve2d, Umin: float, Usup: float, TolU: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self) -> bool: ... def Perform(self, P: gp_Pnt2d, U0: float) -> None: ... @@ -1115,13 +1813,17 @@ class Extrema_LocEPCOfLocateExtPC2d: def SquareDistance(self) -> float: ... class Extrema_LocateExtCC: - def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, U0: float, V0: float) -> None: ... + def __init__( + self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, U0: float, V0: float + ) -> None: ... def IsDone(self) -> bool: ... def Point(self, P1: Extrema_POnCurv, P2: Extrema_POnCurv) -> None: ... def SquareDistance(self) -> float: ... class Extrema_LocateExtCC2d: - def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, U0: float, V0: float) -> None: ... + def __init__( + self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, U0: float, V0: float + ) -> None: ... def IsDone(self) -> bool: ... def Point(self, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... def SquareDistance(self) -> float: ... @@ -1130,10 +1832,22 @@ class Extrema_LocateExtPC: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, U0: float, TolF: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve, U0: float, Umin: float, Usup: float, TolF: float) -> None: ... - def Initialize(self, C: Adaptor3d_Curve, Umin: float, Usup: float, TolF: float) -> None: ... + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, U0: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + U0: float, + Umin: float, + Usup: float, + TolF: float, + ) -> None: ... + def Initialize( + self, C: Adaptor3d_Curve, Umin: float, Usup: float, TolF: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self) -> bool: ... def Perform(self, P: gp_Pnt, U0: float) -> None: ... @@ -1144,10 +1858,22 @@ class Extrema_LocateExtPC2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, TolF: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, Umin: float, Usup: float, TolF: float) -> None: ... - def Initialize(self, C: Adaptor2d_Curve2d, Umin: float, Usup: float, TolF: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + U0: float, + Umin: float, + Usup: float, + TolF: float, + ) -> None: ... + def Initialize( + self, C: Adaptor2d_Curve2d, Umin: float, Usup: float, TolF: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self) -> bool: ... def Perform(self, P: gp_Pnt2d, U0: float) -> None: ... @@ -1307,12 +2033,10 @@ class Extrema_HArray1OfPOnCurv(Extrema_Array1OfPOnCurv, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Extrema_Array1OfPOnCurv: ... - class Extrema_HArray1OfPOnCurv2d(Extrema_Array1OfPOnCurv2d, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Extrema_Array1OfPOnCurv2d: ... - class Extrema_HArray1OfPOnSurf(Extrema_Array1OfPOnSurf, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Extrema_Array1OfPOnSurf: ... @@ -1321,26 +2045,29 @@ class Extrema_HArray1OfPOnSurf(Extrema_Array1OfPOnSurf, Standard_Transient): class Extrema_HArray2OfPOnCurv(Extrema_Array2OfPOnCurv, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: Extrema_Array2OfPOnCurv) -> None: ... def Array2(self) -> Extrema_Array2OfPOnCurv: ... - class Extrema_HArray2OfPOnCurv2d(Extrema_Array2OfPOnCurv2d, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: Extrema_Array2OfPOnCurv2d) -> None: ... def Array2(self) -> Extrema_Array2OfPOnCurv2d: ... - class Extrema_HArray2OfPOnSurf(Extrema_Array2OfPOnSurf, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: Extrema_Array2OfPOnSurf) -> None: ... def Array2(self) -> Extrema_Array2OfPOnSurf: ... # hsequence classes - diff --git a/src/SWIG_files/wrapper/FEmTool.i b/src/SWIG_files/wrapper/FEmTool.i index 22769d47b..fe1c92c0c 100644 --- a/src/SWIG_files/wrapper/FEmTool.i +++ b/src/SWIG_files/wrapper/FEmTool.i @@ -76,6 +76,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = FEmTool_ListIteratorOfListOfVectors(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(FEmTool_SeqOfLinConstr) NCollection_Sequence; diff --git a/src/SWIG_files/wrapper/FEmTool.pyi b/src/SWIG_files/wrapper/FEmTool.pyi index 486689034..fba57f4a2 100644 --- a/src/SWIG_files/wrapper/FEmTool.pyi +++ b/src/SWIG_files/wrapper/FEmTool.pyi @@ -9,59 +9,65 @@ from OCC.Core.TColStd import * FEmTool_AssemblyTable = NewType("FEmTool_AssemblyTable", Any) class FEmTool_ListOfVectors: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: FEmTool_ListOfVectors) -> FEmTool_ListOfVectors: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class FEmTool_SeqOfLinConstr: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class FEmTool_SeqOfLinConstr: + def Assign(self, theItem: FEmTool_ListOfVectors) -> FEmTool_ListOfVectors: ... def Clear(self) -> None: ... def First(self) -> FEmTool_ListOfVectors: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> FEmTool_ListOfVectors: ... def Length(self) -> int: ... - def Append(self, theItem: FEmTool_ListOfVectors) -> FEmTool_ListOfVectors: ... + def Lower(self) -> int: ... def Prepend(self, theItem: FEmTool_ListOfVectors) -> FEmTool_ListOfVectors: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> FEmTool_ListOfVectors: ... def SetValue(self, theIndex: int, theValue: FEmTool_ListOfVectors) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> FEmTool_ListOfVectors: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... -#classnotwrapped +# classnotwrapped class FEmTool_Assembly: ... -#classnotwrapped +# classnotwrapped class FEmTool_Curve: ... -#classnotwrapped +# classnotwrapped class FEmTool_ElementaryCriterion: ... -#classnotwrapped +# classnotwrapped class FEmTool_ElementsOfRefMatrix: ... -#classnotwrapped +# classnotwrapped class FEmTool_LinearFlexion: ... -#classnotwrapped +# classnotwrapped class FEmTool_LinearJerk: ... -#classnotwrapped +# classnotwrapped class FEmTool_LinearTension: ... -#classnotwrapped +# classnotwrapped class FEmTool_ProfileMatrix: ... -#classnotwrapped +# classnotwrapped class FEmTool_SparseMatrix: ... # harray1 classes @@ -69,10 +75,11 @@ class FEmTool_SparseMatrix: ... class FEmTool_HAssemblyTable(FEmTool_AssemblyTable, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: FEmTool_AssemblyTable) -> None: ... def Array2(self) -> FEmTool_AssemblyTable: ... # hsequence classes - diff --git a/src/SWIG_files/wrapper/FSD.pyi b/src/SWIG_files/wrapper/FSD.pyi index 2c65c88f7..de7685752 100644 --- a/src/SWIG_files/wrapper/FSD.pyi +++ b/src/SWIG_files/wrapper/FSD.pyi @@ -8,22 +8,21 @@ FSD_BStream = NewType("FSD_BStream", FILE) # the following typedef cannot be wrapped as is FSD_FStream = NewType("FSD_FStream", Any) -#classnotwrapped +# classnotwrapped class FSD_Base64: ... -#classnotwrapped +# classnotwrapped class FSD_BinaryFile: ... -#classnotwrapped +# classnotwrapped class FSD_CmpFile: ... -#classnotwrapped +# classnotwrapped class FSD_File: ... -#classnotwrapped +# classnotwrapped class FSD_FileHeader: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/FairCurve.pyi b/src/SWIG_files/wrapper/FairCurve.pyi index febe2eac8..96a73d690 100644 --- a/src/SWIG_files/wrapper/FairCurve.pyi +++ b/src/SWIG_files/wrapper/FairCurve.pyi @@ -9,7 +9,6 @@ from OCC.Core.math import * from OCC.Core.TColgp import * from OCC.Core.TColStd import * - class FairCurve_AnalysisCode(IntEnum): FairCurve_OK: int = ... FairCurve_NotConverged: int = ... @@ -22,8 +21,12 @@ FairCurve_InfiniteSliding = FairCurve_AnalysisCode.FairCurve_InfiniteSliding FairCurve_NullHeight = FairCurve_AnalysisCode.FairCurve_NullHeight class FairCurve_Batten: - def __init__(self, P1: gp_Pnt2d, P2: gp_Pnt2d, Height: float, Slope: Optional[float] = 0) -> None: ... - def Compute(self, NbIterations: Optional[int] = 50, Tolerance: Optional[float] = 1.0e-3) -> Tuple[bool, FairCurve_AnalysisCode]: ... + def __init__( + self, P1: gp_Pnt2d, P2: gp_Pnt2d, Height: float, Slope: Optional[float] = 0 + ) -> None: ... + def Compute( + self, NbIterations: Optional[int] = 50, Tolerance: Optional[float] = 1.0e-3 + ) -> Tuple[bool, FairCurve_AnalysisCode]: ... def Curve(self) -> Geom2d_BSplineCurve: ... def Dump(self) -> str: ... def GetAngle1(self) -> float: ... @@ -68,41 +71,113 @@ class FairCurve_Energy(math_MultipleVarFunctionWithHessian): @overload def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... @overload - def Values(self, X: math_Vector, G: math_Vector, H: math_Matrix) -> Tuple[bool, float]: ... + def Values( + self, X: math_Vector, G: math_Vector, H: math_Matrix + ) -> Tuple[bool, float]: ... def Variable(self, X: math_Vector) -> bool: ... class FairCurve_Newton(math_NewtonMinimum): - def __init__(self, theFunction: math_MultipleVarFunctionWithHessian, theSpatialTolerance: Optional[float] = 1.0e-7, theCriteriumTolerance: Optional[float] = 1.0e-7, theNbIterations: Optional[int] = 40, theConvexity: Optional[float] = 1.0e-6, theWithSingularity: Optional[bool] = True) -> None: ... + def __init__( + self, + theFunction: math_MultipleVarFunctionWithHessian, + theSpatialTolerance: Optional[float] = 1.0e-7, + theCriteriumTolerance: Optional[float] = 1.0e-7, + theNbIterations: Optional[int] = 40, + theConvexity: Optional[float] = 1.0e-6, + theWithSingularity: Optional[bool] = True, + ) -> None: ... def IsConverged(self) -> bool: ... class FairCurve_DistributionOfJerk(FairCurve_DistributionOfEnergy): - def __init__(self, BSplOrder: int, FlatKnots: TColStd_HArray1OfReal, Poles: TColgp_HArray1OfPnt2d, DerivativeOrder: int, Law: FairCurve_BattenLaw, NbValAux: Optional[int] = 0) -> None: ... + def __init__( + self, + BSplOrder: int, + FlatKnots: TColStd_HArray1OfReal, + Poles: TColgp_HArray1OfPnt2d, + DerivativeOrder: int, + Law: FairCurve_BattenLaw, + NbValAux: Optional[int] = 0, + ) -> None: ... def Value(self, X: math_Vector, F: math_Vector) -> bool: ... class FairCurve_DistributionOfSagging(FairCurve_DistributionOfEnergy): - def __init__(self, BSplOrder: int, FlatKnots: TColStd_HArray1OfReal, Poles: TColgp_HArray1OfPnt2d, DerivativeOrder: int, Law: FairCurve_BattenLaw, NbValAux: Optional[int] = 0) -> None: ... + def __init__( + self, + BSplOrder: int, + FlatKnots: TColStd_HArray1OfReal, + Poles: TColgp_HArray1OfPnt2d, + DerivativeOrder: int, + Law: FairCurve_BattenLaw, + NbValAux: Optional[int] = 0, + ) -> None: ... def Value(self, X: math_Vector, F: math_Vector) -> bool: ... class FairCurve_DistributionOfTension(FairCurve_DistributionOfEnergy): - def __init__(self, BSplOrder: int, FlatKnots: TColStd_HArray1OfReal, Poles: TColgp_HArray1OfPnt2d, DerivativeOrder: int, LengthSliding: float, Law: FairCurve_BattenLaw, NbValAux: Optional[int] = 0, Uniform: Optional[bool] = False) -> None: ... + def __init__( + self, + BSplOrder: int, + FlatKnots: TColStd_HArray1OfReal, + Poles: TColgp_HArray1OfPnt2d, + DerivativeOrder: int, + LengthSliding: float, + Law: FairCurve_BattenLaw, + NbValAux: Optional[int] = 0, + Uniform: Optional[bool] = False, + ) -> None: ... def SetLengthSliding(self, LengthSliding: float) -> None: ... def Value(self, X: math_Vector, F: math_Vector) -> bool: ... class FairCurve_EnergyOfBatten(FairCurve_Energy): - def __init__(self, BSplOrder: int, FlatKnots: TColStd_HArray1OfReal, Poles: TColgp_HArray1OfPnt2d, ContrOrder1: int, ContrOrder2: int, Law: FairCurve_BattenLaw, LengthSliding: float, FreeSliding: Optional[bool] = True, Angle1: Optional[float] = 0, Angle2: Optional[float] = 0) -> None: ... + def __init__( + self, + BSplOrder: int, + FlatKnots: TColStd_HArray1OfReal, + Poles: TColgp_HArray1OfPnt2d, + ContrOrder1: int, + ContrOrder2: int, + Law: FairCurve_BattenLaw, + LengthSliding: float, + FreeSliding: Optional[bool] = True, + Angle1: Optional[float] = 0, + Angle2: Optional[float] = 0, + ) -> None: ... def LengthSliding(self) -> float: ... def Status(self) -> FairCurve_AnalysisCode: ... def Variable(self, X: math_Vector) -> bool: ... class FairCurve_EnergyOfMVC(FairCurve_Energy): - def __init__(self, BSplOrder: int, FlatKnots: TColStd_HArray1OfReal, Poles: TColgp_HArray1OfPnt2d, ContrOrder1: int, ContrOrder2: int, Law: FairCurve_BattenLaw, PhysicalRatio: float, LengthSliding: float, FreeSliding: Optional[bool] = True, Angle1: Optional[float] = 0, Angle2: Optional[float] = 0, Curvature1: Optional[float] = 0, Curvature2: Optional[float] = 0) -> None: ... + def __init__( + self, + BSplOrder: int, + FlatKnots: TColStd_HArray1OfReal, + Poles: TColgp_HArray1OfPnt2d, + ContrOrder1: int, + ContrOrder2: int, + Law: FairCurve_BattenLaw, + PhysicalRatio: float, + LengthSliding: float, + FreeSliding: Optional[bool] = True, + Angle1: Optional[float] = 0, + Angle2: Optional[float] = 0, + Curvature1: Optional[float] = 0, + Curvature2: Optional[float] = 0, + ) -> None: ... def LengthSliding(self) -> float: ... def Status(self) -> FairCurve_AnalysisCode: ... def Variable(self, X: math_Vector) -> bool: ... class FairCurve_MinimalVariation(FairCurve_Batten): - def __init__(self, P1: gp_Pnt2d, P2: gp_Pnt2d, Heigth: float, Slope: Optional[float] = 0, PhysicalRatio: Optional[float] = 0) -> None: ... - def Compute(self, NbIterations: Optional[int] = 50, Tolerance: Optional[float] = 1.0e-3) -> Tuple[bool, FairCurve_AnalysisCode]: ... + def __init__( + self, + P1: gp_Pnt2d, + P2: gp_Pnt2d, + Heigth: float, + Slope: Optional[float] = 0, + PhysicalRatio: Optional[float] = 0, + ) -> None: ... + def Compute( + self, NbIterations: Optional[int] = 50, Tolerance: Optional[float] = 1.0e-3 + ) -> Tuple[bool, FairCurve_AnalysisCode]: ... def Dump(self) -> str: ... def GetCurvature1(self) -> float: ... def GetCurvature2(self) -> float: ... @@ -114,4 +189,3 @@ class FairCurve_MinimalVariation(FairCurve_Batten): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/FilletSurf.pyi b/src/SWIG_files/wrapper/FilletSurf.pyi index 280087eb2..061a392ce 100644 --- a/src/SWIG_files/wrapper/FilletSurf.pyi +++ b/src/SWIG_files/wrapper/FilletSurf.pyi @@ -9,7 +9,6 @@ from OCC.Core.Geom import * from OCC.Core.Geom2d import * from OCC.Core.ChFi3d import * - class FilletSurf_ErrorTypeStatus(IntEnum): FilletSurf_EmptyList: int = ... FilletSurf_EdgeNotG1: int = ... @@ -44,7 +43,15 @@ FilletSurf_OneExtremityOnEdge = FilletSurf_StatusType.FilletSurf_OneExtremityOnE FilletSurf_NoExtremityOnEdge = FilletSurf_StatusType.FilletSurf_NoExtremityOnEdge class FilletSurf_Builder: - def __init__(self, S: TopoDS_Shape, E: TopTools_ListOfShape, R: float, Ta: Optional[float] = 1.0e-2, Tapp3d: Optional[float] = 1.0e-4, Tapp2d: Optional[float] = 1.0e-5) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + E: TopTools_ListOfShape, + R: float, + Ta: Optional[float] = 1.0e-2, + Tapp3d: Optional[float] = 1.0e-4, + Tapp2d: Optional[float] = 1.0e-5, + ) -> None: ... def CurveOnFace1(self, Index: int) -> Geom_Curve: ... def CurveOnFace2(self, Index: int) -> Geom_Curve: ... def EndSectionStatus(self) -> FilletSurf_StatusType: ... @@ -58,7 +65,9 @@ class FilletSurf_Builder: def PCurveOnFace1(self, Index: int) -> Geom2d_Curve: ... def PCurveOnFace2(self, Index: int) -> Geom2d_Curve: ... def Perform(self) -> None: ... - def Section(self, IndexSurf: int, IndexSec: int, Circ: Geom_TrimmedCurve) -> None: ... + def Section( + self, IndexSurf: int, IndexSec: int, Circ: Geom_TrimmedCurve + ) -> None: ... def Simulate(self) -> None: ... def StartSectionStatus(self) -> FilletSurf_StatusType: ... def StatusError(self) -> FilletSurf_ErrorTypeStatus: ... @@ -68,7 +77,14 @@ class FilletSurf_Builder: def TolApp3d(self, Index: int) -> float: ... class FilletSurf_InternalBuilder(ChFi3d_FilBuilder): - def __init__(self, S: TopoDS_Shape, FShape: Optional[ChFi3d_FilletShape] = ChFi3d_Polynomial, Ta: Optional[float] = 1.0e-2, Tapp3d: Optional[float] = 1.0e-4, Tapp2d: Optional[float] = 1.0e-5) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + FShape: Optional[ChFi3d_FilletShape] = ChFi3d_Polynomial, + Ta: Optional[float] = 1.0e-2, + Tapp3d: Optional[float] = 1.0e-4, + Tapp2d: Optional[float] = 1.0e-5, + ) -> None: ... def Add(self, E: TopTools_ListOfShape, R: float) -> int: ... def CurveOnFace1(self, Index: int) -> Geom_Curve: ... def CurveOnFace2(self, Index: int) -> Geom_Curve: ... @@ -83,7 +99,9 @@ class FilletSurf_InternalBuilder(ChFi3d_FilBuilder): def PCurveOnFace1(self, Index: int) -> Geom2d_Curve: ... def PCurveOnFace2(self, Index: int) -> Geom2d_Curve: ... def Perform(self) -> None: ... - def Section(self, IndexSurf: int, IndexSec: int, Circ: Geom_TrimmedCurve) -> None: ... + def Section( + self, IndexSurf: int, IndexSec: int, Circ: Geom_TrimmedCurve + ) -> None: ... def Simulate(self) -> None: ... def StartSectionStatus(self) -> FilletSurf_StatusType: ... def SupportFace1(self, Index: int) -> TopoDS_Face: ... @@ -94,4 +112,3 @@ class FilletSurf_InternalBuilder(ChFi3d_FilBuilder): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GC.pyi b/src/SWIG_files/wrapper/GC.pyi index cdf2f2c40..8e7ad01a3 100644 --- a/src/SWIG_files/wrapper/GC.pyi +++ b/src/SWIG_files/wrapper/GC.pyi @@ -7,7 +7,6 @@ from OCC.Core.gp import * from OCC.Core.Geom import * from OCC.Core.gce import * - class GC_MakeMirror: @overload def __init__(self, Point: gp_Pnt) -> None: ... @@ -49,7 +48,9 @@ class GC_Root: class GC_MakeArcOfCircle(GC_Root): @overload - def __init__(self, Circ: gp_Circ, Alpha1: float, Alpha2: float, Sense: bool) -> None: ... + def __init__( + self, Circ: gp_Circ, Alpha1: float, Alpha2: float, Sense: bool + ) -> None: ... @overload def __init__(self, Circ: gp_Circ, P: gp_Pnt, Alpha: float, Sense: bool) -> None: ... @overload @@ -62,16 +63,24 @@ class GC_MakeArcOfCircle(GC_Root): class GC_MakeArcOfEllipse(GC_Root): @overload - def __init__(self, Elips: gp_Elips, Alpha1: float, Alpha2: float, Sense: bool) -> None: ... + def __init__( + self, Elips: gp_Elips, Alpha1: float, Alpha2: float, Sense: bool + ) -> None: ... @overload - def __init__(self, Elips: gp_Elips, P: gp_Pnt, Alpha: float, Sense: bool) -> None: ... + def __init__( + self, Elips: gp_Elips, P: gp_Pnt, Alpha: float, Sense: bool + ) -> None: ... @overload - def __init__(self, Elips: gp_Elips, P1: gp_Pnt, P2: gp_Pnt, Sense: bool) -> None: ... + def __init__( + self, Elips: gp_Elips, P1: gp_Pnt, P2: gp_Pnt, Sense: bool + ) -> None: ... def Value(self) -> Geom_TrimmedCurve: ... class GC_MakeArcOfHyperbola(GC_Root): @overload - def __init__(self, Hypr: gp_Hypr, Alpha1: float, Alpha2: float, Sense: bool) -> None: ... + def __init__( + self, Hypr: gp_Hypr, Alpha1: float, Alpha2: float, Sense: bool + ) -> None: ... @overload def __init__(self, Hypr: gp_Hypr, P: gp_Pnt, Alpha: float, Sense: bool) -> None: ... @overload @@ -80,11 +89,17 @@ class GC_MakeArcOfHyperbola(GC_Root): class GC_MakeArcOfParabola(GC_Root): @overload - def __init__(self, Parab: gp_Parab, Alpha1: float, Alpha2: float, Sense: bool) -> None: ... + def __init__( + self, Parab: gp_Parab, Alpha1: float, Alpha2: float, Sense: bool + ) -> None: ... @overload - def __init__(self, Parab: gp_Parab, P: gp_Pnt, Alpha: float, Sense: bool) -> None: ... + def __init__( + self, Parab: gp_Parab, P: gp_Pnt, Alpha: float, Sense: bool + ) -> None: ... @overload - def __init__(self, Parab: gp_Parab, P1: gp_Pnt, P2: gp_Pnt, Sense: bool) -> None: ... + def __init__( + self, Parab: gp_Parab, P1: gp_Pnt, P2: gp_Pnt, Sense: bool + ) -> None: ... def Value(self) -> Geom_TrimmedCurve: ... class GC_MakeCircle(GC_Root): @@ -212,4 +227,3 @@ class GC_MakeTrimmedCylinder(GC_Root): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GCE2d.pyi b/src/SWIG_files/wrapper/GCE2d.pyi index 1a609a324..6f68771f8 100644 --- a/src/SWIG_files/wrapper/GCE2d.pyi +++ b/src/SWIG_files/wrapper/GCE2d.pyi @@ -7,7 +7,6 @@ from OCC.Core.gp import * from OCC.Core.Geom2d import * from OCC.Core.gce import * - class GCE2d_MakeMirror: @overload def __init__(self, Point: gp_Pnt2d) -> None: ... @@ -40,11 +39,21 @@ class GCE2d_Root: class GCE2d_MakeArcOfCircle(GCE2d_Root): @overload - def __init__(self, Circ: gp_Circ2d, Alpha1: float, Alpha2: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, + Circ: gp_Circ2d, + Alpha1: float, + Alpha2: float, + Sense: Optional[bool] = True, + ) -> None: ... @overload - def __init__(self, Circ: gp_Circ2d, P: gp_Pnt2d, Alpha: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, Circ: gp_Circ2d, P: gp_Pnt2d, Alpha: float, Sense: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, Circ: gp_Circ2d, P1: gp_Pnt2d, P2: gp_Pnt2d, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, Circ: gp_Circ2d, P1: gp_Pnt2d, P2: gp_Pnt2d, Sense: Optional[bool] = True + ) -> None: ... @overload def __init__(self, P1: gp_Pnt2d, P2: gp_Pnt2d, P3: gp_Pnt2d) -> None: ... @overload @@ -53,36 +62,76 @@ class GCE2d_MakeArcOfCircle(GCE2d_Root): class GCE2d_MakeArcOfEllipse(GCE2d_Root): @overload - def __init__(self, Elips: gp_Elips2d, Alpha1: float, Alpha2: float, Sense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Elips: gp_Elips2d, P: gp_Pnt2d, Alpha: float, Sense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Elips: gp_Elips2d, P1: gp_Pnt2d, P2: gp_Pnt2d, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, + Elips: gp_Elips2d, + Alpha1: float, + Alpha2: float, + Sense: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, Elips: gp_Elips2d, P: gp_Pnt2d, Alpha: float, Sense: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, + Elips: gp_Elips2d, + P1: gp_Pnt2d, + P2: gp_Pnt2d, + Sense: Optional[bool] = True, + ) -> None: ... def Value(self) -> Geom2d_TrimmedCurve: ... class GCE2d_MakeArcOfHyperbola(GCE2d_Root): @overload - def __init__(self, Hypr: gp_Hypr2d, Alpha1: float, Alpha2: float, Sense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Hypr: gp_Hypr2d, P: gp_Pnt2d, Alpha: float, Sense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Hypr: gp_Hypr2d, P1: gp_Pnt2d, P2: gp_Pnt2d, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, + Hypr: gp_Hypr2d, + Alpha1: float, + Alpha2: float, + Sense: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, Hypr: gp_Hypr2d, P: gp_Pnt2d, Alpha: float, Sense: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, Hypr: gp_Hypr2d, P1: gp_Pnt2d, P2: gp_Pnt2d, Sense: Optional[bool] = True + ) -> None: ... def Value(self) -> Geom2d_TrimmedCurve: ... class GCE2d_MakeArcOfParabola(GCE2d_Root): @overload - def __init__(self, Parab: gp_Parab2d, Alpha1: float, Alpha2: float, Sense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Parab: gp_Parab2d, P: gp_Pnt2d, Alpha: float, Sense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Parab: gp_Parab2d, P1: gp_Pnt2d, P2: gp_Pnt2d, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, + Parab: gp_Parab2d, + Alpha1: float, + Alpha2: float, + Sense: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, Parab: gp_Parab2d, P: gp_Pnt2d, Alpha: float, Sense: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, + Parab: gp_Parab2d, + P1: gp_Pnt2d, + P2: gp_Pnt2d, + Sense: Optional[bool] = True, + ) -> None: ... def Value(self) -> Geom2d_TrimmedCurve: ... class GCE2d_MakeCircle(GCE2d_Root): @overload def __init__(self, C: gp_Circ2d) -> None: ... @overload - def __init__(self, A: gp_Ax2d, Radius: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, A: gp_Ax2d, Radius: float, Sense: Optional[bool] = True + ) -> None: ... @overload def __init__(self, A: gp_Ax22d, Radius: float) -> None: ... @overload @@ -92,18 +141,30 @@ class GCE2d_MakeCircle(GCE2d_Root): @overload def __init__(self, P1: gp_Pnt2d, P2: gp_Pnt2d, P3: gp_Pnt2d) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, Radius: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, P: gp_Pnt2d, Radius: float, Sense: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, Center: gp_Pnt2d, Point: gp_Pnt2d, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, Center: gp_Pnt2d, Point: gp_Pnt2d, Sense: Optional[bool] = True + ) -> None: ... def Value(self) -> Geom2d_Circle: ... class GCE2d_MakeEllipse(GCE2d_Root): @overload def __init__(self, E: gp_Elips2d) -> None: ... @overload - def __init__(self, MajorAxis: gp_Ax2d, MajorRadius: float, MinorRadius: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, + MajorAxis: gp_Ax2d, + MajorRadius: float, + MinorRadius: float, + Sense: Optional[bool] = True, + ) -> None: ... @overload - def __init__(self, Axis: gp_Ax22d, MajorRadius: float, MinorRadius: float) -> None: ... + def __init__( + self, Axis: gp_Ax22d, MajorRadius: float, MinorRadius: float + ) -> None: ... @overload def __init__(self, S1: gp_Pnt2d, S2: gp_Pnt2d, Center: gp_Pnt2d) -> None: ... def Value(self) -> Geom2d_Ellipse: ... @@ -112,9 +173,13 @@ class GCE2d_MakeHyperbola(GCE2d_Root): @overload def __init__(self, H: gp_Hypr2d) -> None: ... @overload - def __init__(self, MajorAxis: gp_Ax2d, MajorRadius: float, MinorRadius: float, Sense: bool) -> None: ... + def __init__( + self, MajorAxis: gp_Ax2d, MajorRadius: float, MinorRadius: float, Sense: bool + ) -> None: ... @overload - def __init__(self, Axis: gp_Ax22d, MajorRadius: float, MinorRadius: float) -> None: ... + def __init__( + self, Axis: gp_Ax22d, MajorRadius: float, MinorRadius: float + ) -> None: ... @overload def __init__(self, S1: gp_Pnt2d, S2: gp_Pnt2d, Center: gp_Pnt2d) -> None: ... def Value(self) -> Geom2d_Hyperbola: ... @@ -142,7 +207,9 @@ class GCE2d_MakeParabola(GCE2d_Root): @overload def __init__(self, MirrorAxis: gp_Ax2d, Focal: float, Sense: bool) -> None: ... @overload - def __init__(self, D: gp_Ax2d, F: gp_Pnt2d, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, D: gp_Ax2d, F: gp_Pnt2d, Sense: Optional[bool] = True + ) -> None: ... @overload def __init__(self, S1: gp_Pnt2d, O: gp_Pnt2d) -> None: ... def Value(self) -> Geom2d_Parabola: ... @@ -163,4 +230,3 @@ class GCE2d_MakeSegment(GCE2d_Root): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GCPnts.pyi b/src/SWIG_files/wrapper/GCPnts.pyi index b1e58ed2e..708516e1a 100644 --- a/src/SWIG_files/wrapper/GCPnts.pyi +++ b/src/SWIG_files/wrapper/GCPnts.pyi @@ -9,7 +9,6 @@ from OCC.Core.math import * from OCC.Core.GeomAbs import * from OCC.Core.gp import * - class GCPnts_AbscissaType(IntEnum): GCPnts_LengthParametrized: int = ... GCPnts_Parametrized: int = ... @@ -34,21 +33,47 @@ class GCPnts_AbscissaPoint: @overload def __init__(self) -> None: ... @overload - def __init__(self, theC: Adaptor3d_Curve, theAbscissa: float, theU0: float) -> None: ... - @overload - def __init__(self, theTol: float, theC: Adaptor3d_Curve, theAbscissa: float, theU0: float) -> None: ... - @overload - def __init__(self, theTol: float, theC: Adaptor2d_Curve2d, theAbscissa: float, theU0: float) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theAbscissa: float, theU0: float) -> None: ... - @overload - def __init__(self, theC: Adaptor3d_Curve, theAbscissa: float, theU0: float, theUi: float) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theAbscissa: float, theU0: float, theUi: float) -> None: ... - @overload - def __init__(self, theC: Adaptor3d_Curve, theAbscissa: float, theU0: float, theUi: float, theTol: float) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theAbscissa: float, theU0: float, theUi: float, theTol: float) -> None: ... + def __init__( + self, theC: Adaptor3d_Curve, theAbscissa: float, theU0: float + ) -> None: ... + @overload + def __init__( + self, theTol: float, theC: Adaptor3d_Curve, theAbscissa: float, theU0: float + ) -> None: ... + @overload + def __init__( + self, theTol: float, theC: Adaptor2d_Curve2d, theAbscissa: float, theU0: float + ) -> None: ... + @overload + def __init__( + self, theC: Adaptor2d_Curve2d, theAbscissa: float, theU0: float + ) -> None: ... + @overload + def __init__( + self, theC: Adaptor3d_Curve, theAbscissa: float, theU0: float, theUi: float + ) -> None: ... + @overload + def __init__( + self, theC: Adaptor2d_Curve2d, theAbscissa: float, theU0: float, theUi: float + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor3d_Curve, + theAbscissa: float, + theU0: float, + theUi: float, + theTol: float, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theAbscissa: float, + theU0: float, + theUi: float, + theTol: float, + ) -> None: ... def IsDone(self) -> bool: ... @overload @staticmethod @@ -70,10 +95,14 @@ class GCPnts_AbscissaPoint: def Length(theC: Adaptor2d_Curve2d, theU1: float, theU2: float) -> float: ... @overload @staticmethod - def Length(theC: Adaptor3d_Curve, theU1: float, theU2: float, theTol: float) -> float: ... + def Length( + theC: Adaptor3d_Curve, theU1: float, theU2: float, theTol: float + ) -> float: ... @overload @staticmethod - def Length(theC: Adaptor2d_Curve2d, theU1: float, theU2: float, theTol: float) -> float: ... + def Length( + theC: Adaptor2d_Curve2d, theU1: float, theU2: float, theTol: float + ) -> float: ... def Parameter(self) -> float: ... class GCPnts_DistFunction2dMV(math_MultipleVarFunction): @@ -92,19 +121,27 @@ class GCPnts_QuasiUniformAbscissa: @overload def __init__(self, theC: Adaptor3d_Curve, theNbPoints: int) -> None: ... @overload - def __init__(self, theC: Adaptor3d_Curve, theNbPoints: int, theU1: float, theU2: float) -> None: ... + def __init__( + self, theC: Adaptor3d_Curve, theNbPoints: int, theU1: float, theU2: float + ) -> None: ... @overload def __init__(self, theC: Adaptor2d_Curve2d, theNbPoints: int) -> None: ... @overload - def __init__(self, theC: Adaptor2d_Curve2d, theNbPoints: int, theU1: float, theU2: float) -> None: ... + def __init__( + self, theC: Adaptor2d_Curve2d, theNbPoints: int, theU1: float, theU2: float + ) -> None: ... @overload def Initialize(self, theC: Adaptor3d_Curve, theNbPoints: int) -> None: ... @overload - def Initialize(self, theC: Adaptor3d_Curve, theNbPoints: int, theU1: float, theU2: float) -> None: ... + def Initialize( + self, theC: Adaptor3d_Curve, theNbPoints: int, theU1: float, theU2: float + ) -> None: ... @overload def Initialize(self, theC: Adaptor2d_Curve2d, theNbPoints: int) -> None: ... @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theNbPoints: int, theU1: float, theU2: float) -> None: ... + def Initialize( + self, theC: Adaptor2d_Curve2d, theNbPoints: int, theU1: float, theU2: float + ) -> None: ... def IsDone(self) -> bool: ... def NbPoints(self) -> int: ... def Parameter(self, Index: int) -> float: ... @@ -113,22 +150,70 @@ class GCPnts_QuasiUniformDeflection: @overload def __init__(self) -> None: ... @overload - def __init__(self, theC: Adaptor3d_Curve, theDeflection: float, theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theDeflection: float, theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def __init__(self, theC: Adaptor3d_Curve, theDeflection: float, theU1: float, theU2: float, theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theDeflection: float, theU1: float, theU2: float, theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... + def __init__( + self, + theC: Adaptor3d_Curve, + theDeflection: float, + theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theDeflection: float, + theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor3d_Curve, + theDeflection: float, + theU1: float, + theU2: float, + theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theDeflection: float, + theU1: float, + theU2: float, + theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... def Deflection(self) -> float: ... @overload - def Initialize(self, theC: Adaptor3d_Curve, theDeflection: float, theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theDeflection: float, theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def Initialize(self, theC: Adaptor3d_Curve, theDeflection: float, theU1: float, theU2: float, theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theDeflection: float, theU1: float, theU2: float, theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... + def Initialize( + self, + theC: Adaptor3d_Curve, + theDeflection: float, + theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor2d_Curve2d, + theDeflection: float, + theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor3d_Curve, + theDeflection: float, + theU1: float, + theU2: float, + theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor2d_Curve2d, + theDeflection: float, + theU1: float, + theU2: float, + theContinuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + ) -> None: ... def IsDone(self) -> bool: ... def NbPoints(self) -> int: ... def Parameter(self, Index: int) -> float: ... @@ -144,24 +229,103 @@ class GCPnts_TangentialDeflection: @overload def __init__(self) -> None: ... @overload - def __init__(self, theC: Adaptor3d_Curve, theAngularDeflection: float, theCurvatureDeflection: float, theMinimumOfPoints: Optional[int] = 2, theUTol: Optional[float] = 1.0e-9, theMinLen: Optional[float] = 1.0e-7) -> None: ... - @overload - def __init__(self, theC: Adaptor3d_Curve, theFirstParameter: float, theLastParameter: float, theAngularDeflection: float, theCurvatureDeflection: float, theMinimumOfPoints: Optional[int] = 2, theUTol: Optional[float] = 1.0e-9, theMinLen: Optional[float] = 1.0e-7) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theAngularDeflection: float, theCurvatureDeflection: float, theMinimumOfPoints: Optional[int] = 2, theUTol: Optional[float] = 1.0e-9, theMinLen: Optional[float] = 1.0e-7) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theFirstParameter: float, theLastParameter: float, theAngularDeflection: float, theCurvatureDeflection: float, theMinimumOfPoints: Optional[int] = 2, theUTol: Optional[float] = 1.0e-9, theMinLen: Optional[float] = 1.0e-7) -> None: ... - def AddPoint(self, thePnt: gp_Pnt, theParam: float, theIsReplace: Optional[bool] = True) -> int: ... + def __init__( + self, + theC: Adaptor3d_Curve, + theAngularDeflection: float, + theCurvatureDeflection: float, + theMinimumOfPoints: Optional[int] = 2, + theUTol: Optional[float] = 1.0e-9, + theMinLen: Optional[float] = 1.0e-7, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor3d_Curve, + theFirstParameter: float, + theLastParameter: float, + theAngularDeflection: float, + theCurvatureDeflection: float, + theMinimumOfPoints: Optional[int] = 2, + theUTol: Optional[float] = 1.0e-9, + theMinLen: Optional[float] = 1.0e-7, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theAngularDeflection: float, + theCurvatureDeflection: float, + theMinimumOfPoints: Optional[int] = 2, + theUTol: Optional[float] = 1.0e-9, + theMinLen: Optional[float] = 1.0e-7, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theFirstParameter: float, + theLastParameter: float, + theAngularDeflection: float, + theCurvatureDeflection: float, + theMinimumOfPoints: Optional[int] = 2, + theUTol: Optional[float] = 1.0e-9, + theMinLen: Optional[float] = 1.0e-7, + ) -> None: ... + def AddPoint( + self, thePnt: gp_Pnt, theParam: float, theIsReplace: Optional[bool] = True + ) -> int: ... @staticmethod - def ArcAngularStep(theRadius: float, theLinearDeflection: float, theAngularDeflection: float, theMinLength: float) -> float: ... - @overload - def Initialize(self, theC: Adaptor3d_Curve, theAngularDeflection: float, theCurvatureDeflection: float, theMinimumOfPoints: Optional[int] = 2, theUTol: Optional[float] = 1.0e-9, theMinLen: Optional[float] = 1.0e-7) -> None: ... - @overload - def Initialize(self, theC: Adaptor3d_Curve, theFirstParameter: float, theLastParameter: float, theAngularDeflection: float, theCurvatureDeflection: float, theMinimumOfPoints: Optional[int] = 2, theUTol: Optional[float] = 1.0e-9, theMinLen: Optional[float] = 1.0e-7) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theAngularDeflection: float, theCurvatureDeflection: float, theMinimumOfPoints: Optional[int] = 2, theUTol: Optional[float] = 1.0e-9, theMinLen: Optional[float] = 1.0e-7) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theFirstParameter: float, theLastParameter: float, theAngularDeflection: float, theCurvatureDeflection: float, theMinimumOfPoints: Optional[int] = 2, theUTol: Optional[float] = 1.0e-9, theMinLen: Optional[float] = 1.0e-7) -> None: ... + def ArcAngularStep( + theRadius: float, + theLinearDeflection: float, + theAngularDeflection: float, + theMinLength: float, + ) -> float: ... + @overload + def Initialize( + self, + theC: Adaptor3d_Curve, + theAngularDeflection: float, + theCurvatureDeflection: float, + theMinimumOfPoints: Optional[int] = 2, + theUTol: Optional[float] = 1.0e-9, + theMinLen: Optional[float] = 1.0e-7, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor3d_Curve, + theFirstParameter: float, + theLastParameter: float, + theAngularDeflection: float, + theCurvatureDeflection: float, + theMinimumOfPoints: Optional[int] = 2, + theUTol: Optional[float] = 1.0e-9, + theMinLen: Optional[float] = 1.0e-7, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor2d_Curve2d, + theAngularDeflection: float, + theCurvatureDeflection: float, + theMinimumOfPoints: Optional[int] = 2, + theUTol: Optional[float] = 1.0e-9, + theMinLen: Optional[float] = 1.0e-7, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor2d_Curve2d, + theFirstParameter: float, + theLastParameter: float, + theAngularDeflection: float, + theCurvatureDeflection: float, + theMinimumOfPoints: Optional[int] = 2, + theUTol: Optional[float] = 1.0e-9, + theMinLen: Optional[float] = 1.0e-7, + ) -> None: ... def NbPoints(self) -> int: ... def Parameter(self, I: int) -> float: ... def Value(self, I: int) -> gp_Pnt: ... @@ -170,38 +334,116 @@ class GCPnts_UniformAbscissa: @overload def __init__(self) -> None: ... @overload - def __init__(self, theC: Adaptor3d_Curve, theAbscissa: float, theToler: Optional[float] = -1) -> None: ... - @overload - def __init__(self, theC: Adaptor3d_Curve, theAbscissa: float, theU1: float, theU2: float, theToler: Optional[float] = -1) -> None: ... - @overload - def __init__(self, theC: Adaptor3d_Curve, theNbPoints: int, theToler: Optional[float] = -1) -> None: ... - @overload - def __init__(self, theC: Adaptor3d_Curve, theNbPoints: int, theU1: float, theU2: float, theToler: Optional[float] = -1) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theAbscissa: float, theToler: Optional[float] = -1) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theAbscissa: float, theU1: float, theU2: float, theToler: Optional[float] = -1) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theNbPoints: int, theToler: Optional[float] = -1) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theNbPoints: int, theU1: float, theU2: float, theToler: Optional[float] = -1) -> None: ... + def __init__( + self, theC: Adaptor3d_Curve, theAbscissa: float, theToler: Optional[float] = -1 + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor3d_Curve, + theAbscissa: float, + theU1: float, + theU2: float, + theToler: Optional[float] = -1, + ) -> None: ... + @overload + def __init__( + self, theC: Adaptor3d_Curve, theNbPoints: int, theToler: Optional[float] = -1 + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor3d_Curve, + theNbPoints: int, + theU1: float, + theU2: float, + theToler: Optional[float] = -1, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theAbscissa: float, + theToler: Optional[float] = -1, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theAbscissa: float, + theU1: float, + theU2: float, + theToler: Optional[float] = -1, + ) -> None: ... + @overload + def __init__( + self, theC: Adaptor2d_Curve2d, theNbPoints: int, theToler: Optional[float] = -1 + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theNbPoints: int, + theU1: float, + theU2: float, + theToler: Optional[float] = -1, + ) -> None: ... def Abscissa(self) -> float: ... @overload - def Initialize(self, theC: Adaptor3d_Curve, theAbscissa: float, theToler: Optional[float] = -1) -> None: ... - @overload - def Initialize(self, theC: Adaptor3d_Curve, theAbscissa: float, theU1: float, theU2: float, theToler: Optional[float] = -1) -> None: ... - @overload - def Initialize(self, theC: Adaptor3d_Curve, theNbPoints: int, theToler: Optional[float] = -1) -> None: ... - @overload - def Initialize(self, theC: Adaptor3d_Curve, theNbPoints: int, theU1: float, theU2: float, theToler: Optional[float] = -1) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theAbscissa: float, theToler: Optional[float] = -1) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theAbscissa: float, theU1: float, theU2: float, theToler: Optional[float] = -1) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theNbPoints: int, theToler: Optional[float] = -1) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theNbPoints: int, theU1: float, theU2: float, theToler: Optional[float] = -1) -> None: ... + def Initialize( + self, theC: Adaptor3d_Curve, theAbscissa: float, theToler: Optional[float] = -1 + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor3d_Curve, + theAbscissa: float, + theU1: float, + theU2: float, + theToler: Optional[float] = -1, + ) -> None: ... + @overload + def Initialize( + self, theC: Adaptor3d_Curve, theNbPoints: int, theToler: Optional[float] = -1 + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor3d_Curve, + theNbPoints: int, + theU1: float, + theU2: float, + theToler: Optional[float] = -1, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor2d_Curve2d, + theAbscissa: float, + theToler: Optional[float] = -1, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor2d_Curve2d, + theAbscissa: float, + theU1: float, + theU2: float, + theToler: Optional[float] = -1, + ) -> None: ... + @overload + def Initialize( + self, theC: Adaptor2d_Curve2d, theNbPoints: int, theToler: Optional[float] = -1 + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor2d_Curve2d, + theNbPoints: int, + theU1: float, + theU2: float, + theToler: Optional[float] = -1, + ) -> None: ... def IsDone(self) -> bool: ... def NbPoints(self) -> int: ... def Parameter(self, Index: int) -> float: ... @@ -210,37 +452,84 @@ class GCPnts_UniformDeflection: @overload def __init__(self) -> None: ... @overload - def __init__(self, theC: Adaptor3d_Curve, theDeflection: float, theWithControl: Optional[bool] = True) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theDeflection: float, theWithControl: Optional[bool] = True) -> None: ... - @overload - def __init__(self, theC: Adaptor3d_Curve, theDeflection: float, theU1: float, theU2: float, theWithControl: Optional[bool] = True) -> None: ... - @overload - def __init__(self, theC: Adaptor2d_Curve2d, theDeflection: float, theU1: float, theU2: float, theWithControl: Optional[bool] = True) -> None: ... + def __init__( + self, + theC: Adaptor3d_Curve, + theDeflection: float, + theWithControl: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theDeflection: float, + theWithControl: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor3d_Curve, + theDeflection: float, + theU1: float, + theU2: float, + theWithControl: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + theC: Adaptor2d_Curve2d, + theDeflection: float, + theU1: float, + theU2: float, + theWithControl: Optional[bool] = True, + ) -> None: ... def Deflection(self) -> float: ... @overload - def Initialize(self, theC: Adaptor3d_Curve, theDeflection: float, theWithControl: Optional[bool] = True) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theDeflection: float, theWithControl: Optional[bool] = True) -> None: ... - @overload - def Initialize(self, theC: Adaptor3d_Curve, theDeflection: float, theU1: float, theU2: float, theWithControl: Optional[bool] = True) -> None: ... - @overload - def Initialize(self, theC: Adaptor2d_Curve2d, theDeflection: float, theU1: float, theU2: float, theWithControl: Optional[bool] = True) -> None: ... + def Initialize( + self, + theC: Adaptor3d_Curve, + theDeflection: float, + theWithControl: Optional[bool] = True, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor2d_Curve2d, + theDeflection: float, + theWithControl: Optional[bool] = True, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor3d_Curve, + theDeflection: float, + theU1: float, + theU2: float, + theWithControl: Optional[bool] = True, + ) -> None: ... + @overload + def Initialize( + self, + theC: Adaptor2d_Curve2d, + theDeflection: float, + theU1: float, + theU2: float, + theWithControl: Optional[bool] = True, + ) -> None: ... def IsDone(self) -> bool: ... def NbPoints(self) -> int: ... def Parameter(self, Index: int) -> float: ... def Value(self, Index: int) -> gp_Pnt: ... -#classnotwrapped +# classnotwrapped class GCPnts_DistFunction: ... -#classnotwrapped +# classnotwrapped class GCPnts_DistFunction2d: ... -#classnotwrapped +# classnotwrapped class GCPnts_TCurveTypes: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GProp.pyi b/src/SWIG_files/wrapper/GProp.pyi index e05394fa5..1d8ba808d 100644 --- a/src/SWIG_files/wrapper/GProp.pyi +++ b/src/SWIG_files/wrapper/GProp.pyi @@ -7,7 +7,6 @@ from OCC.Core.gp import * from OCC.Core.TColgp import * from OCC.Core.TColStd import * - class GProp_EquaType(IntEnum): GProp_Plane: int = ... GProp_Line: int = ... @@ -114,9 +113,13 @@ class GProp_PGProps(GProp_GProps): @overload def __init__(self, Pnts: TColgp_Array2OfPnt) -> None: ... @overload - def __init__(self, Pnts: TColgp_Array1OfPnt, Density: TColStd_Array1OfReal) -> None: ... + def __init__( + self, Pnts: TColgp_Array1OfPnt, Density: TColStd_Array1OfReal + ) -> None: ... @overload - def __init__(self, Pnts: TColgp_Array2OfPnt, Density: TColStd_Array2OfReal) -> None: ... + def __init__( + self, Pnts: TColgp_Array2OfPnt, Density: TColStd_Array2OfReal + ) -> None: ... @overload def AddPoint(self, P: gp_Pnt) -> None: ... @overload @@ -129,54 +132,137 @@ class GProp_PGProps(GProp_GProps): def Barycentre(Pnts: TColgp_Array2OfPnt) -> gp_Pnt: ... @overload @staticmethod - def Barycentre(Pnts: TColgp_Array1OfPnt, Density: TColStd_Array1OfReal, G: gp_Pnt) -> float: ... + def Barycentre( + Pnts: TColgp_Array1OfPnt, Density: TColStd_Array1OfReal, G: gp_Pnt + ) -> float: ... @overload @staticmethod - def Barycentre(Pnts: TColgp_Array2OfPnt, Density: TColStd_Array2OfReal, G: gp_Pnt) -> float: ... + def Barycentre( + Pnts: TColgp_Array2OfPnt, Density: TColStd_Array2OfReal, G: gp_Pnt + ) -> float: ... class GProp_SelGProps(GProp_GProps): @overload def __init__(self) -> None: ... @overload - def __init__(self, S: gp_Cylinder, Alpha1: float, Alpha2: float, Z1: float, Z2: float, SLocation: gp_Pnt) -> None: ... - @overload - def __init__(self, S: gp_Cone, Alpha1: float, Alpha2: float, Z1: float, Z2: float, SLocation: gp_Pnt) -> None: ... - @overload - def __init__(self, S: gp_Sphere, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float, SLocation: gp_Pnt) -> None: ... - @overload - def __init__(self, S: gp_Torus, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float, SLocation: gp_Pnt) -> None: ... - @overload - def Perform(self, S: gp_Cylinder, Alpha1: float, Alpha2: float, Z1: float, Z2: float) -> None: ... - @overload - def Perform(self, S: gp_Cone, Alpha1: float, Alpha2: float, Z1: float, Z2: float) -> None: ... - @overload - def Perform(self, S: gp_Sphere, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float) -> None: ... - @overload - def Perform(self, S: gp_Torus, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float) -> None: ... + def __init__( + self, + S: gp_Cylinder, + Alpha1: float, + Alpha2: float, + Z1: float, + Z2: float, + SLocation: gp_Pnt, + ) -> None: ... + @overload + def __init__( + self, + S: gp_Cone, + Alpha1: float, + Alpha2: float, + Z1: float, + Z2: float, + SLocation: gp_Pnt, + ) -> None: ... + @overload + def __init__( + self, + S: gp_Sphere, + Teta1: float, + Teta2: float, + Alpha1: float, + Alpha2: float, + SLocation: gp_Pnt, + ) -> None: ... + @overload + def __init__( + self, + S: gp_Torus, + Teta1: float, + Teta2: float, + Alpha1: float, + Alpha2: float, + SLocation: gp_Pnt, + ) -> None: ... + @overload + def Perform( + self, S: gp_Cylinder, Alpha1: float, Alpha2: float, Z1: float, Z2: float + ) -> None: ... + @overload + def Perform( + self, S: gp_Cone, Alpha1: float, Alpha2: float, Z1: float, Z2: float + ) -> None: ... + @overload + def Perform( + self, S: gp_Sphere, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float + ) -> None: ... + @overload + def Perform( + self, S: gp_Torus, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float + ) -> None: ... def SetLocation(self, SLocation: gp_Pnt) -> None: ... class GProp_VelGProps(GProp_GProps): @overload def __init__(self) -> None: ... @overload - def __init__(self, S: gp_Cylinder, Alpha1: float, Alpha2: float, Z1: float, Z2: float, VLocation: gp_Pnt) -> None: ... - @overload - def __init__(self, S: gp_Cone, Alpha1: float, Alpha2: float, Z1: float, Z2: float, VLocation: gp_Pnt) -> None: ... - @overload - def __init__(self, S: gp_Sphere, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float, VLocation: gp_Pnt) -> None: ... - @overload - def __init__(self, S: gp_Torus, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float, VLocation: gp_Pnt) -> None: ... - @overload - def Perform(self, S: gp_Cylinder, Alpha1: float, Alpha2: float, Z1: float, Z2: float) -> None: ... - @overload - def Perform(self, S: gp_Cone, Alpha1: float, Alpha2: float, Z1: float, Z2: float) -> None: ... - @overload - def Perform(self, S: gp_Sphere, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float) -> None: ... - @overload - def Perform(self, S: gp_Torus, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float) -> None: ... + def __init__( + self, + S: gp_Cylinder, + Alpha1: float, + Alpha2: float, + Z1: float, + Z2: float, + VLocation: gp_Pnt, + ) -> None: ... + @overload + def __init__( + self, + S: gp_Cone, + Alpha1: float, + Alpha2: float, + Z1: float, + Z2: float, + VLocation: gp_Pnt, + ) -> None: ... + @overload + def __init__( + self, + S: gp_Sphere, + Teta1: float, + Teta2: float, + Alpha1: float, + Alpha2: float, + VLocation: gp_Pnt, + ) -> None: ... + @overload + def __init__( + self, + S: gp_Torus, + Teta1: float, + Teta2: float, + Alpha1: float, + Alpha2: float, + VLocation: gp_Pnt, + ) -> None: ... + @overload + def Perform( + self, S: gp_Cylinder, Alpha1: float, Alpha2: float, Z1: float, Z2: float + ) -> None: ... + @overload + def Perform( + self, S: gp_Cone, Alpha1: float, Alpha2: float, Z1: float, Z2: float + ) -> None: ... + @overload + def Perform( + self, S: gp_Sphere, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float + ) -> None: ... + @overload + def Perform( + self, S: gp_Torus, Teta1: float, Teta2: float, Alpha1: float, Alpha2: float + ) -> None: ... def SetLocation(self, VLocation: gp_Pnt) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GccAna.pyi b/src/SWIG_files/wrapper/GccAna.pyi index 7a56ffd5c..9a2cc0383 100644 --- a/src/SWIG_files/wrapper/GccAna.pyi +++ b/src/SWIG_files/wrapper/GccAna.pyi @@ -7,32 +7,95 @@ from OCC.Core.GccEnt import * from OCC.Core.gp import * from OCC.Core.GccInt import * - class GccAna_Circ2d2TanOn: @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedCirc, OnLine: gp_Lin2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedLin, OnLine: gp_Lin2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: GccEnt_QualifiedLin, OnLine: gp_Lin2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Point2: gp_Pnt2d, OnLine: gp_Lin2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Point2: gp_Pnt2d, OnLine: gp_Lin2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: gp_Pnt2d, Point2: gp_Pnt2d, OnLine: gp_Lin2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedCirc, OnCirc: gp_Circ2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedLin, OnCirc: gp_Circ2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Point2: gp_Pnt2d, OnCirc: gp_Circ2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: GccEnt_QualifiedLin, OnCirc: gp_Circ2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Point2: gp_Pnt2d, OnCirc: gp_Circ2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: gp_Pnt2d, Point2: gp_Pnt2d, OnCirc: gp_Circ2d, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedCirc, + OnLine: gp_Lin2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedLin, + OnLine: gp_Lin2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: GccEnt_QualifiedLin, + OnLine: gp_Lin2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Point2: gp_Pnt2d, + OnLine: gp_Lin2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Point2: gp_Pnt2d, + OnLine: gp_Lin2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, Point1: gp_Pnt2d, Point2: gp_Pnt2d, OnLine: gp_Lin2d, Tolerance: float + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedCirc, + OnCirc: gp_Circ2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedLin, + OnCirc: gp_Circ2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Point2: gp_Pnt2d, + OnCirc: gp_Circ2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: GccEnt_QualifiedLin, + OnCirc: gp_Circ2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Point2: gp_Pnt2d, + OnCirc: gp_Circ2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, Point1: gp_Pnt2d, Point2: gp_Pnt2d, OnCirc: gp_Circ2d, Tolerance: float + ) -> None: ... def CenterOn3(self, Index: int, PntArg: gp_Pnt2d) -> float: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... @@ -41,21 +104,55 @@ class GccAna_Circ2d2TanOn: def Tangency1(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def Tangency2(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def ThisSolution(self, Index: int) -> gp_Circ2d: ... - def WhichQualifier(self, Index: int, Qualif1: GccEnt_Position, Qualif2: GccEnt_Position) -> None: ... + def WhichQualifier( + self, Index: int, Qualif1: GccEnt_Position, Qualif2: GccEnt_Position + ) -> None: ... class GccAna_Circ2d2TanRad: @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedCirc, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedLin, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Point2: gp_Pnt2d, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Point2: gp_Pnt2d, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: GccEnt_QualifiedLin, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: gp_Pnt2d, Point2: gp_Pnt2d, Radius: float, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedCirc, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedLin, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Point2: gp_Pnt2d, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Point2: gp_Pnt2d, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: GccEnt_QualifiedLin, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, Point1: gp_Pnt2d, Point2: gp_Pnt2d, Radius: float, Tolerance: float + ) -> None: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... def IsTheSame2(self, Index: int) -> bool: ... @@ -63,29 +160,87 @@ class GccAna_Circ2d2TanRad: def Tangency1(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def Tangency2(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def ThisSolution(self, Index: int) -> gp_Circ2d: ... - def WhichQualifier(self, Index: int, Qualif1: GccEnt_Position, Qualif2: GccEnt_Position) -> None: ... + def WhichQualifier( + self, Index: int, Qualif1: GccEnt_Position, Qualif2: GccEnt_Position + ) -> None: ... class GccAna_Circ2d3Tan: @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedCirc, Qualified3: GccEnt_QualifiedCirc, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedCirc, Qualified3: GccEnt_QualifiedLin, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedLin, Qualified3: GccEnt_QualifiedLin, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: GccEnt_QualifiedLin, Qualified3: GccEnt_QualifiedLin, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedCirc, Point3: gp_Pnt2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedLin, Point3: gp_Pnt2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: GccEnt_QualifiedLin, Point3: gp_Pnt2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Point2: gp_Pnt2d, Point3: gp_Pnt2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Point2: gp_Pnt2d, Point3: gp_Pnt2d, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: gp_Pnt2d, Point2: gp_Pnt2d, Point3: gp_Pnt2d, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedCirc, + Qualified3: GccEnt_QualifiedCirc, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedCirc, + Qualified3: GccEnt_QualifiedLin, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedLin, + Qualified3: GccEnt_QualifiedLin, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: GccEnt_QualifiedLin, + Qualified3: GccEnt_QualifiedLin, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedCirc, + Point3: gp_Pnt2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedLin, + Point3: gp_Pnt2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: GccEnt_QualifiedLin, + Point3: gp_Pnt2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Point2: gp_Pnt2d, + Point3: gp_Pnt2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Point2: gp_Pnt2d, + Point3: gp_Pnt2d, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, Point1: gp_Pnt2d, Point2: gp_Pnt2d, Point3: gp_Pnt2d, Tolerance: float + ) -> None: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... def IsTheSame2(self, Index: int) -> bool: ... @@ -95,7 +250,13 @@ class GccAna_Circ2d3Tan: def Tangency2(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def Tangency3(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def ThisSolution(self, Index: int) -> gp_Circ2d: ... - def WhichQualifier(self, Index: int, Qualif1: GccEnt_Position, Qualif2: GccEnt_Position, Qualif3: GccEnt_Position) -> None: ... + def WhichQualifier( + self, + Index: int, + Qualif1: GccEnt_Position, + Qualif2: GccEnt_Position, + Qualif3: GccEnt_Position, + ) -> None: ... class GccAna_Circ2dBisec: def __init__(self, Circ1: gp_Circ2d, Circ2: gp_Circ2d) -> None: ... @@ -105,7 +266,9 @@ class GccAna_Circ2dBisec: class GccAna_Circ2dTanCen: @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Pcenter: gp_Pnt2d, Tolerance: float) -> None: ... + def __init__( + self, Qualified1: GccEnt_QualifiedCirc, Pcenter: gp_Pnt2d, Tolerance: float + ) -> None: ... @overload def __init__(self, Linetan: gp_Lin2d, Pcenter: gp_Pnt2d) -> None: ... @overload @@ -119,17 +282,45 @@ class GccAna_Circ2dTanCen: class GccAna_Circ2dTanOnRad: @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, OnLine: gp_Lin2d, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, OnLine: gp_Lin2d, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: gp_Pnt2d, OnLine: gp_Lin2d, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, OnCirc: gp_Circ2d, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, OnCirc: gp_Circ2d, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: gp_Pnt2d, OnCirc: gp_Circ2d, Radius: float, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + OnLine: gp_Lin2d, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + OnLine: gp_Lin2d, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, Point1: gp_Pnt2d, OnLine: gp_Lin2d, Radius: float, Tolerance: float + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + OnCirc: gp_Circ2d, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + OnCirc: gp_Circ2d, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, Point1: gp_Pnt2d, OnCirc: gp_Circ2d, Radius: float, Tolerance: float + ) -> None: ... def CenterOn3(self, Index: int, PntSol: gp_Pnt2d) -> float: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... @@ -148,24 +339,37 @@ class GccAna_CircPnt2dBisec: @overload def __init__(self, Circle1: gp_Circ2d, Point2: gp_Pnt2d) -> None: ... @overload - def __init__(self, Circle1: gp_Circ2d, Point2: gp_Pnt2d, Tolerance: float) -> None: ... + def __init__( + self, Circle1: gp_Circ2d, Point2: gp_Pnt2d, Tolerance: float + ) -> None: ... def IsDone(self) -> bool: ... def NbSolutions(self) -> int: ... def ThisSolution(self, Index: int) -> GccInt_Bisec: ... class GccAna_Lin2d2Tan: @overload - def __init__(self, ThePoint1: gp_Pnt2d, ThePoint2: gp_Pnt2d, Tolerance: float) -> None: ... + def __init__( + self, ThePoint1: gp_Pnt2d, ThePoint2: gp_Pnt2d, Tolerance: float + ) -> None: ... @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, ThePoint: gp_Pnt2d, Tolerance: float) -> None: ... + def __init__( + self, Qualified1: GccEnt_QualifiedCirc, ThePoint: gp_Pnt2d, Tolerance: float + ) -> None: ... @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedCirc, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedCirc, + Tolerance: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbSolutions(self) -> int: ... def Tangency1(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def Tangency2(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def ThisSolution(self, Index: int) -> gp_Lin2d: ... - def WhichQualifier(self, Index: int, Qualif1: GccEnt_Position, Qualif2: GccEnt_Position) -> None: ... + def WhichQualifier( + self, Index: int, Qualif1: GccEnt_Position, Qualif2: GccEnt_Position + ) -> None: ... class GccAna_Lin2dBisec: def __init__(self, Lin1: gp_Lin2d, Lin2: gp_Lin2d) -> None: ... @@ -177,9 +381,13 @@ class GccAna_Lin2dBisec: class GccAna_Lin2dTanObl: @overload - def __init__(self, ThePoint: gp_Pnt2d, TheLine: gp_Lin2d, TheAngle: float) -> None: ... + def __init__( + self, ThePoint: gp_Pnt2d, TheLine: gp_Lin2d, TheAngle: float + ) -> None: ... @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, TheLine: gp_Lin2d, TheAngle: float) -> None: ... + def __init__( + self, Qualified1: GccEnt_QualifiedCirc, TheLine: gp_Lin2d, TheAngle: float + ) -> None: ... def Intersection2(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def IsDone(self) -> bool: ... def NbSolutions(self) -> int: ... @@ -206,7 +414,9 @@ class GccAna_Lin2dTanPer: @overload def __init__(self, Qualified1: GccEnt_QualifiedCirc, TheLin: gp_Lin2d) -> None: ... @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, TheCircle: gp_Circ2d) -> None: ... + def __init__( + self, Qualified1: GccEnt_QualifiedCirc, TheCircle: gp_Circ2d + ) -> None: ... def Intersection2(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def IsDone(self) -> bool: ... def NbSolutions(self) -> int: ... @@ -228,4 +438,3 @@ class GccAna_Pnt2dBisec: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GccEnt.pyi b/src/SWIG_files/wrapper/GccEnt.pyi index 6eb7224d6..0f76eba0a 100644 --- a/src/SWIG_files/wrapper/GccEnt.pyi +++ b/src/SWIG_files/wrapper/GccEnt.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.gp import * - class GccEnt_Position(IntEnum): GccEnt_unqualified: int = ... GccEnt_enclosing: int = ... @@ -71,4 +70,3 @@ class GccEnt_QualifiedLin: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GccInt.pyi b/src/SWIG_files/wrapper/GccInt.pyi index 397083588..733f2f931 100644 --- a/src/SWIG_files/wrapper/GccInt.pyi +++ b/src/SWIG_files/wrapper/GccInt.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.gp import * - class GccInt_IType(IntEnum): GccInt_Lin: int = ... GccInt_Cir: int = ... @@ -63,4 +62,3 @@ class GccInt_BPoint(GccInt_Bisec): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Geom.pyi b/src/SWIG_files/wrapper/Geom.pyi index 7c45a9227..bcead7ea6 100644 --- a/src/SWIG_files/wrapper/Geom.pyi +++ b/src/SWIG_files/wrapper/Geom.pyi @@ -8,25 +8,30 @@ from OCC.Core.GeomAbs import * from OCC.Core.TColgp import * from OCC.Core.TColStd import * - class Geom_SequenceOfBSplineSurface: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Geom_Geometry(Standard_Transient): def Copy(self) -> Geom_Geometry: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Mirror(self, P: gp_Pnt) -> None: ... @overload @@ -60,11 +65,15 @@ class Geom_OsculatingSurface(Standard_Transient): @overload def __init__(self, BS: Geom_Surface, Tol: float) -> None: ... def BasisSurface(self) -> Geom_Surface: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Init(self, BS: Geom_Surface, Tol: float) -> None: ... def Tolerance(self) -> float: ... - def UOscSurf(self, U: float, V: float, L: Geom_BSplineSurface) -> Tuple[bool, bool]: ... - def VOscSurf(self, U: float, V: float, L: Geom_BSplineSurface) -> Tuple[bool, bool]: ... + def UOscSurf( + self, U: float, V: float, L: Geom_BSplineSurface + ) -> Tuple[bool, bool]: ... + def VOscSurf( + self, U: float, V: float, L: Geom_BSplineSurface + ) -> Tuple[bool, bool]: ... class Geom_Transformation(Standard_Transient): @overload @@ -72,7 +81,7 @@ class Geom_Transformation(Standard_Transient): @overload def __init__(self, T: gp_Trsf) -> None: ... def Copy(self) -> Geom_Transformation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Form(self) -> gp_TrsfForm: ... def Invert(self) -> None: ... def Inverted(self) -> Geom_Transformation: ... @@ -92,7 +101,9 @@ class Geom_Transformation(Standard_Transient): def SetRotation(self, theA1: gp_Ax1, theAng: float) -> None: ... def SetScale(self, thePnt: gp_Pnt, theScale: float) -> None: ... @overload - def SetTransformation(self, theFromSystem1: gp_Ax3, theToSystem2: gp_Ax3) -> None: ... + def SetTransformation( + self, theFromSystem1: gp_Ax3, theToSystem2: gp_Ax3 + ) -> None: ... @overload def SetTransformation(self, theToSystem: gp_Ax3) -> None: ... @overload @@ -120,7 +131,7 @@ class Geom_Curve(Geom_Geometry): def D2(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... def DN(self, U: float, N: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FirstParameter(self) -> float: ... def IsCN(self, N: int) -> bool: ... def IsClosed(self) -> bool: ... @@ -148,10 +159,34 @@ class Geom_Surface(Geom_Geometry): def Continuity(self) -> GeomAbs_Shape: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... def IsUClosed(self) -> bool: ... @@ -219,7 +254,7 @@ class Geom_Axis2Placement(Geom_AxisPlacement): def YDirection(self) -> gp_Dir: ... class Geom_BoundedCurve(Geom_Curve): - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EndPoint(self) -> gp_Pnt: ... def StartPoint(self) -> gp_Pnt: ... @@ -247,7 +282,7 @@ class Geom_CartesianPoint(Geom_Point): class Geom_Conic(Geom_Curve): def Axis(self) -> gp_Ax1: ... def Continuity(self) -> GeomAbs_Shape: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def IsCN(self, N: int) -> bool: ... def Location(self) -> gp_Pnt: ... @@ -283,7 +318,7 @@ class Geom_Direction(Geom_Vector): class Geom_ElementarySurface(Geom_Surface): def Axis(self) -> gp_Ax1: ... def Continuity(self) -> GeomAbs_Shape: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... def Location(self) -> gp_Pnt: ... @@ -310,7 +345,7 @@ class Geom_Line(Geom_Curve): def D2(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... def DN(self, U: float, N: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FirstParameter(self) -> float: ... def IsCN(self, N: int) -> bool: ... def IsClosed(self) -> bool: ... @@ -329,7 +364,13 @@ class Geom_Line(Geom_Curve): def TransformedParameter(self, U: float, T: gp_Trsf) -> float: ... class Geom_OffsetCurve(Geom_Curve): - def __init__(self, C: Geom_Curve, Offset: float, V: gp_Dir, isNotCheckC0: Optional[bool] = False) -> None: ... + def __init__( + self, + C: Geom_Curve, + Offset: float, + V: gp_Dir, + isNotCheckC0: Optional[bool] = False, + ) -> None: ... def BasisCurve(self) -> Geom_Curve: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom_Geometry: ... @@ -339,7 +380,7 @@ class Geom_OffsetCurve(Geom_Curve): def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... def DN(self, U: float, N: int) -> gp_Vec: ... def Direction(self) -> gp_Dir: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FirstParameter(self) -> float: ... def GetBasisCurveContinuity(self) -> GeomAbs_Shape: ... def IsCN(self, N: int) -> bool: ... @@ -351,24 +392,52 @@ class Geom_OffsetCurve(Geom_Curve): def Period(self) -> float: ... def Reverse(self) -> None: ... def ReversedParameter(self, U: float) -> float: ... - def SetBasisCurve(self, C: Geom_Curve, isNotCheckC0: Optional[bool] = False) -> None: ... + def SetBasisCurve( + self, C: Geom_Curve, isNotCheckC0: Optional[bool] = False + ) -> None: ... def SetDirection(self, V: gp_Dir) -> None: ... def SetOffsetValue(self, D: float) -> None: ... def Transform(self, T: gp_Trsf) -> None: ... def TransformedParameter(self, U: float, T: gp_Trsf) -> float: ... class Geom_OffsetSurface(Geom_Surface): - def __init__(self, S: Geom_Surface, Offset: float, isNotCheckC0: Optional[bool] = False) -> None: ... + def __init__( + self, S: Geom_Surface, Offset: float, isNotCheckC0: Optional[bool] = False + ) -> None: ... def BasisSurface(self) -> Geom_Surface: ... def Bounds(self) -> Tuple[float, float, float, float]: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetBasisSurfContinuity(self) -> GeomAbs_Shape: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... @@ -379,18 +448,24 @@ class Geom_OffsetSurface(Geom_Surface): def Offset(self) -> float: ... def OsculatingSurface(self) -> Geom_OsculatingSurface: ... def ParametricTransformation(self, T: gp_Trsf) -> gp_GTrsf2d: ... - def SetBasisSurface(self, S: Geom_Surface, isNotCheckC0: Optional[bool] = False) -> None: ... + def SetBasisSurface( + self, S: Geom_Surface, isNotCheckC0: Optional[bool] = False + ) -> None: ... def SetOffsetValue(self, D: float) -> None: ... def Surface(self) -> Geom_Surface: ... def Transform(self, T: gp_Trsf) -> None: ... def TransformParameters(self, T: gp_Trsf) -> Tuple[float, float]: ... def UIso(self, U: float) -> Geom_Curve: ... - def UOsculatingSurface(self, U: float, V: float, UOsculSurf: Geom_BSplineSurface) -> Tuple[bool, bool]: ... + def UOsculatingSurface( + self, U: float, V: float, UOsculSurf: Geom_BSplineSurface + ) -> Tuple[bool, bool]: ... def UPeriod(self) -> float: ... def UReverse(self) -> None: ... def UReversedParameter(self, U: float) -> float: ... def VIso(self, V: float) -> Geom_Curve: ... - def VOsculatingSurface(self, U: float, V: float, VOsculSurf: Geom_BSplineSurface) -> Tuple[bool, bool]: ... + def VOsculatingSurface( + self, U: float, V: float, VOsculSurf: Geom_BSplineSurface + ) -> Tuple[bool, bool]: ... def VPeriod(self) -> float: ... def VReverse(self) -> None: ... def VReversedParameter(self, V: float) -> float: ... @@ -399,7 +474,7 @@ class Geom_SweptSurface(Geom_Surface): def BasisCurve(self) -> Geom_Curve: ... def Continuity(self) -> GeomAbs_Shape: ... def Direction(self) -> gp_Dir: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... class Geom_VectorWithMagnitude(Geom_Vector): @overload @@ -434,9 +509,25 @@ class Geom_VectorWithMagnitude(Geom_Vector): class Geom_BSplineCurve(Geom_BoundedCurve): @overload - def __init__(self, Poles: TColgp_Array1OfPnt, Knots: TColStd_Array1OfReal, Multiplicities: TColStd_Array1OfInteger, Degree: int, Periodic: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Multiplicities: TColStd_Array1OfInteger, Degree: int, Periodic: Optional[bool] = False, CheckRational: Optional[bool] = True) -> None: ... + def __init__( + self, + Poles: TColgp_Array1OfPnt, + Knots: TColStd_Array1OfReal, + Multiplicities: TColStd_Array1OfInteger, + Degree: int, + Periodic: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Multiplicities: TColStd_Array1OfInteger, + Degree: int, + Periodic: Optional[bool] = False, + CheckRational: Optional[bool] = True, + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, P: gp_Pnt) -> None: ... @@ -445,7 +536,7 @@ class Geom_BSplineCurve(Geom_BoundedCurve): def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... def DN(self, U: float, N: int) -> gp_Vec: ... def Degree(self) -> int: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EndPoint(self) -> gp_Pnt: ... def FirstParameter(self) -> float: ... def FirstUKnotIndex(self) -> int: ... @@ -455,8 +546,20 @@ class Geom_BSplineCurve(Geom_BoundedCurve): @overload def IncreaseMultiplicity(self, I1: int, I2: int, M: int) -> None: ... def IncrementMultiplicity(self, I1: int, I2: int, M: int) -> None: ... - def InsertKnot(self, U: float, M: Optional[int] = 1, ParametricTolerance: Optional[float] = 0.0, Add: Optional[bool] = True) -> None: ... - def InsertKnots(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, ParametricTolerance: Optional[float] = 0.0, Add: Optional[bool] = False) -> None: ... + def InsertKnot( + self, + U: float, + M: Optional[int] = 1, + ParametricTolerance: Optional[float] = 0.0, + Add: Optional[bool] = True, + ) -> None: ... + def InsertKnots( + self, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ParametricTolerance: Optional[float] = 0.0, + Add: Optional[bool] = False, + ) -> None: ... def IsCN(self, N: int) -> bool: ... def IsClosed(self) -> bool: ... def IsEqual(self, theOther: Geom_BSplineCurve, thePreci: float) -> bool: ... @@ -476,16 +579,44 @@ class Geom_BSplineCurve(Geom_BoundedCurve): def LastParameter(self) -> float: ... def LastUKnotIndex(self) -> int: ... def LocalD0(self, U: float, FromK1: int, ToK2: int, P: gp_Pnt) -> None: ... - def LocalD1(self, U: float, FromK1: int, ToK2: int, P: gp_Pnt, V1: gp_Vec) -> None: ... - def LocalD2(self, U: float, FromK1: int, ToK2: int, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... - def LocalD3(self, U: float, FromK1: int, ToK2: int, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def LocalD1( + self, U: float, FromK1: int, ToK2: int, P: gp_Pnt, V1: gp_Vec + ) -> None: ... + def LocalD2( + self, U: float, FromK1: int, ToK2: int, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec + ) -> None: ... + def LocalD3( + self, + U: float, + FromK1: int, + ToK2: int, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + V3: gp_Vec, + ) -> None: ... def LocalDN(self, U: float, FromK1: int, ToK2: int, N: int) -> gp_Vec: ... def LocalValue(self, U: float, FromK1: int, ToK2: int) -> gp_Pnt: ... - def LocateU(self, U: float, ParametricTolerance: float, WithKnotRepetition: Optional[bool] = False) -> Tuple[int, int]: ... + def LocateU( + self, + U: float, + ParametricTolerance: float, + WithKnotRepetition: Optional[bool] = False, + ) -> Tuple[int, int]: ... @staticmethod def MaxDegree() -> int: ... - def MovePoint(self, U: float, P: gp_Pnt, Index1: int, Index2: int) -> Tuple[int, int]: ... - def MovePointAndTangent(self, U: float, P: gp_Pnt, Tangent: gp_Vec, Tolerance: float, StartingCondition: int, EndingCondition: int) -> int: ... + def MovePoint( + self, U: float, P: gp_Pnt, Index1: int, Index2: int + ) -> Tuple[int, int]: ... + def MovePointAndTangent( + self, + U: float, + P: gp_Pnt, + Tangent: gp_Vec, + Tolerance: float, + StartingCondition: int, + EndingCondition: int, + ) -> int: ... @overload def Multiplicities(self, M: TColStd_Array1OfInteger) -> None: ... @overload @@ -503,7 +634,12 @@ class Geom_BSplineCurve(Geom_BoundedCurve): def Resolution(self, Tolerance3D: float) -> float: ... def Reverse(self) -> None: ... def ReversedParameter(self, U: float) -> float: ... - def Segment(self, U1: float, U2: float, theTolerance: Optional[float] = Precision.PConfusion()) -> None: ... + def Segment( + self, + U1: float, + U2: float, + theTolerance: Optional[float] = Precision.PConfusion(), + ) -> None: ... @overload def SetKnot(self, Index: int, K: float) -> None: ... @overload @@ -530,19 +666,74 @@ class Geom_BSplineCurve(Geom_BoundedCurve): class Geom_BSplineSurface(Geom_BoundedSurface): @overload - def __init__(self, Poles: TColgp_Array2OfPnt, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, UDegree: int, VDegree: int, UPeriodic: Optional[bool] = False, VPeriodic: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Poles: TColgp_Array2OfPnt, Weights: TColStd_Array2OfReal, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UMults: TColStd_Array1OfInteger, VMults: TColStd_Array1OfInteger, UDegree: int, VDegree: int, UPeriodic: Optional[bool] = False, VPeriodic: Optional[bool] = False) -> None: ... + def __init__( + self, + Poles: TColgp_Array2OfPnt, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + UDegree: int, + VDegree: int, + UPeriodic: Optional[bool] = False, + VPeriodic: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Poles: TColgp_Array2OfPnt, + Weights: TColStd_Array2OfReal, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UMults: TColStd_Array1OfInteger, + VMults: TColStd_Array1OfInteger, + UDegree: int, + VDegree: int, + UPeriodic: Optional[bool] = False, + VPeriodic: Optional[bool] = False, + ) -> None: ... def Bounds(self) -> Tuple[float, float, float, float]: ... - def CheckAndSegment(self, U1: float, U2: float, V1: float, V2: float, theUTolerance: Optional[float] = Precision.PConfusion(), theVTolerance: Optional[float] = Precision.PConfusion()) -> None: ... + def CheckAndSegment( + self, + U1: float, + U2: float, + V1: float, + V2: float, + theUTolerance: Optional[float] = Precision.PConfusion(), + theVTolerance: Optional[float] = Precision.PConfusion(), + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ExchangeUV(self) -> None: ... def FirstUKnotIndex(self) -> int: ... def FirstVKnotIndex(self) -> int: ... @@ -557,10 +748,26 @@ class Geom_BSplineSurface(Geom_BoundedSurface): def IncreaseVMultiplicity(self, FromI1: int, ToI2: int, M: int) -> None: ... def IncrementUMultiplicity(self, FromI1: int, ToI2: int, Step: int) -> None: ... def IncrementVMultiplicity(self, FromI1: int, ToI2: int, Step: int) -> None: ... - def InsertUKnot(self, U: float, M: int, ParametricTolerance: float, Add: Optional[bool] = True) -> None: ... - def InsertUKnots(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, ParametricTolerance: Optional[float] = 0.0, Add: Optional[bool] = True) -> None: ... - def InsertVKnot(self, V: float, M: int, ParametricTolerance: float, Add: Optional[bool] = True) -> None: ... - def InsertVKnots(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, ParametricTolerance: Optional[float] = 0.0, Add: Optional[bool] = True) -> None: ... + def InsertUKnot( + self, U: float, M: int, ParametricTolerance: float, Add: Optional[bool] = True + ) -> None: ... + def InsertUKnots( + self, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ParametricTolerance: Optional[float] = 0.0, + Add: Optional[bool] = True, + ) -> None: ... + def InsertVKnot( + self, V: float, M: int, ParametricTolerance: float, Add: Optional[bool] = True + ) -> None: ... + def InsertVKnots( + self, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ParametricTolerance: Optional[float] = 0.0, + Add: Optional[bool] = True, + ) -> None: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... def IsUClosed(self) -> bool: ... @@ -571,17 +778,100 @@ class Geom_BSplineSurface(Geom_BoundedSurface): def IsVRational(self) -> bool: ... def LastUKnotIndex(self) -> int: ... def LastVKnotIndex(self) -> int: ... - def LocalD0(self, U: float, V: float, FromUK1: int, ToUK2: int, FromVK1: int, ToVK2: int, P: gp_Pnt) -> None: ... - def LocalD1(self, U: float, V: float, FromUK1: int, ToUK2: int, FromVK1: int, ToVK2: int, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def LocalD2(self, U: float, V: float, FromUK1: int, ToUK2: int, FromVK1: int, ToVK2: int, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def LocalD3(self, U: float, V: float, FromUK1: int, ToUK2: int, FromVK1: int, ToVK2: int, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... - def LocalDN(self, U: float, V: float, FromUK1: int, ToUK2: int, FromVK1: int, ToVK2: int, Nu: int, Nv: int) -> gp_Vec: ... - def LocalValue(self, U: float, V: float, FromUK1: int, ToUK2: int, FromVK1: int, ToVK2: int) -> gp_Pnt: ... - def LocateU(self, U: float, ParametricTolerance: float, WithKnotRepetition: Optional[bool] = False) -> Tuple[int, int]: ... - def LocateV(self, V: float, ParametricTolerance: float, WithKnotRepetition: Optional[bool] = False) -> Tuple[int, int]: ... + def LocalD0( + self, + U: float, + V: float, + FromUK1: int, + ToUK2: int, + FromVK1: int, + ToVK2: int, + P: gp_Pnt, + ) -> None: ... + def LocalD1( + self, + U: float, + V: float, + FromUK1: int, + ToUK2: int, + FromVK1: int, + ToVK2: int, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + ) -> None: ... + def LocalD2( + self, + U: float, + V: float, + FromUK1: int, + ToUK2: int, + FromVK1: int, + ToVK2: int, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def LocalD3( + self, + U: float, + V: float, + FromUK1: int, + ToUK2: int, + FromVK1: int, + ToVK2: int, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... + def LocalDN( + self, + U: float, + V: float, + FromUK1: int, + ToUK2: int, + FromVK1: int, + ToVK2: int, + Nu: int, + Nv: int, + ) -> gp_Vec: ... + def LocalValue( + self, U: float, V: float, FromUK1: int, ToUK2: int, FromVK1: int, ToVK2: int + ) -> gp_Pnt: ... + def LocateU( + self, + U: float, + ParametricTolerance: float, + WithKnotRepetition: Optional[bool] = False, + ) -> Tuple[int, int]: ... + def LocateV( + self, + V: float, + ParametricTolerance: float, + WithKnotRepetition: Optional[bool] = False, + ) -> Tuple[int, int]: ... @staticmethod def MaxDegree() -> int: ... - def MovePoint(self, U: float, V: float, P: gp_Pnt, UIndex1: int, UIndex2: int, VIndex1: int, VIndex2: int) -> Tuple[int, int, int, int]: ... + def MovePoint( + self, + U: float, + V: float, + P: gp_Pnt, + UIndex1: int, + UIndex2: int, + VIndex1: int, + VIndex2: int, + ) -> Tuple[int, int, int, int]: ... def NbUKnots(self) -> int: ... def NbUPoles(self) -> int: ... def NbVKnots(self) -> int: ... @@ -595,7 +885,15 @@ class Geom_BSplineSurface(Geom_BoundedSurface): def RemoveUKnot(self, Index: int, M: int, Tolerance: float) -> bool: ... def RemoveVKnot(self, Index: int, M: int, Tolerance: float) -> bool: ... def Resolution(self, Tolerance3D: float) -> Tuple[float, float]: ... - def Segment(self, U1: float, U2: float, V1: float, V2: float, theUTolerance: Optional[float] = Precision.PConfusion(), theVTolerance: Optional[float] = Precision.PConfusion()) -> None: ... + def Segment( + self, + U1: float, + U2: float, + V1: float, + V2: float, + theUTolerance: Optional[float] = Precision.PConfusion(), + theVTolerance: Optional[float] = Precision.PConfusion(), + ) -> None: ... @overload def SetPole(self, UIndex: int, VIndex: int, P: gp_Pnt) -> None: ... @overload @@ -603,9 +901,19 @@ class Geom_BSplineSurface(Geom_BoundedSurface): @overload def SetPoleCol(self, VIndex: int, CPoles: TColgp_Array1OfPnt) -> None: ... @overload - def SetPoleCol(self, VIndex: int, CPoles: TColgp_Array1OfPnt, CPoleWeights: TColStd_Array1OfReal) -> None: ... + def SetPoleCol( + self, + VIndex: int, + CPoles: TColgp_Array1OfPnt, + CPoleWeights: TColStd_Array1OfReal, + ) -> None: ... @overload - def SetPoleRow(self, UIndex: int, CPoles: TColgp_Array1OfPnt, CPoleWeights: TColStd_Array1OfReal) -> None: ... + def SetPoleRow( + self, + UIndex: int, + CPoles: TColgp_Array1OfPnt, + CPoleWeights: TColStd_Array1OfReal, + ) -> None: ... @overload def SetPoleRow(self, UIndex: int, CPoles: TColgp_Array1OfPnt) -> None: ... @overload @@ -682,7 +990,9 @@ class Geom_BezierCurve(Geom_BoundedCurve): @overload def __init__(self, CurvePoles: TColgp_Array1OfPnt) -> None: ... @overload - def __init__(self, CurvePoles: TColgp_Array1OfPnt, PoleWeights: TColStd_Array1OfReal) -> None: ... + def __init__( + self, CurvePoles: TColgp_Array1OfPnt, PoleWeights: TColStd_Array1OfReal + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, P: gp_Pnt) -> None: ... @@ -691,7 +1001,7 @@ class Geom_BezierCurve(Geom_BoundedCurve): def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... def DN(self, U: float, N: int) -> gp_Vec: ... def Degree(self) -> int: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EndPoint(self) -> gp_Pnt: ... def FirstParameter(self) -> float: ... def Increase(self, Degree: int) -> None: ... @@ -738,34 +1048,80 @@ class Geom_BezierSurface(Geom_BoundedSurface): @overload def __init__(self, SurfacePoles: TColgp_Array2OfPnt) -> None: ... @overload - def __init__(self, SurfacePoles: TColgp_Array2OfPnt, PoleWeights: TColStd_Array2OfReal) -> None: ... + def __init__( + self, SurfacePoles: TColgp_Array2OfPnt, PoleWeights: TColStd_Array2OfReal + ) -> None: ... def Bounds(self) -> Tuple[float, float, float, float]: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ExchangeUV(self) -> None: ... def Increase(self, UDeg: int, VDeg: int) -> None: ... @overload def InsertPoleColAfter(self, VIndex: int, CPoles: TColgp_Array1OfPnt) -> None: ... @overload - def InsertPoleColAfter(self, VIndex: int, CPoles: TColgp_Array1OfPnt, CPoleWeights: TColStd_Array1OfReal) -> None: ... + def InsertPoleColAfter( + self, + VIndex: int, + CPoles: TColgp_Array1OfPnt, + CPoleWeights: TColStd_Array1OfReal, + ) -> None: ... @overload def InsertPoleColBefore(self, VIndex: int, CPoles: TColgp_Array1OfPnt) -> None: ... @overload - def InsertPoleColBefore(self, VIndex: int, CPoles: TColgp_Array1OfPnt, CPoleWeights: TColStd_Array1OfReal) -> None: ... + def InsertPoleColBefore( + self, + VIndex: int, + CPoles: TColgp_Array1OfPnt, + CPoleWeights: TColStd_Array1OfReal, + ) -> None: ... @overload def InsertPoleRowAfter(self, UIndex: int, CPoles: TColgp_Array1OfPnt) -> None: ... @overload - def InsertPoleRowAfter(self, UIndex: int, CPoles: TColgp_Array1OfPnt, CPoleWeights: TColStd_Array1OfReal) -> None: ... + def InsertPoleRowAfter( + self, + UIndex: int, + CPoles: TColgp_Array1OfPnt, + CPoleWeights: TColStd_Array1OfReal, + ) -> None: ... @overload def InsertPoleRowBefore(self, UIndex: int, CPoles: TColgp_Array1OfPnt) -> None: ... @overload - def InsertPoleRowBefore(self, UIndex: int, CPoles: TColgp_Array1OfPnt, CPoleWeights: TColStd_Array1OfReal) -> None: ... + def InsertPoleRowBefore( + self, + UIndex: int, + CPoles: TColgp_Array1OfPnt, + CPoleWeights: TColStd_Array1OfReal, + ) -> None: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... def IsUClosed(self) -> bool: ... @@ -794,11 +1150,21 @@ class Geom_BezierSurface(Geom_BoundedSurface): @overload def SetPoleCol(self, VIndex: int, CPoles: TColgp_Array1OfPnt) -> None: ... @overload - def SetPoleCol(self, VIndex: int, CPoles: TColgp_Array1OfPnt, CPoleWeights: TColStd_Array1OfReal) -> None: ... + def SetPoleCol( + self, + VIndex: int, + CPoles: TColgp_Array1OfPnt, + CPoleWeights: TColStd_Array1OfReal, + ) -> None: ... @overload def SetPoleRow(self, UIndex: int, CPoles: TColgp_Array1OfPnt) -> None: ... @overload - def SetPoleRow(self, UIndex: int, CPoles: TColgp_Array1OfPnt, CPoleWeights: TColStd_Array1OfReal) -> None: ... + def SetPoleRow( + self, + UIndex: int, + CPoles: TColgp_Array1OfPnt, + CPoleWeights: TColStd_Array1OfReal, + ) -> None: ... def SetWeight(self, UIndex: int, VIndex: int, Weight: float) -> None: ... def SetWeightCol(self, VIndex: int, CPoleWeights: TColStd_Array1OfReal) -> None: ... def SetWeightRow(self, UIndex: int, CPoleWeights: TColStd_Array1OfReal) -> None: ... @@ -829,7 +1195,7 @@ class Geom_Circle(Geom_Conic): def D2(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... def DN(self, U: float, N: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def FirstParameter(self) -> float: ... def IsClosed(self) -> bool: ... @@ -848,15 +1214,43 @@ class Geom_ConicalSurface(Geom_ElementarySurface): def __init__(self, C: gp_Cone) -> None: ... def Apex(self) -> gp_Pnt: ... def Bounds(self) -> Tuple[float, float, float, float]: ... - def Coefficients(self) -> Tuple[float, float, float, float, float, float, float, float, float, float]: ... + def Coefficients( + self, + ) -> Tuple[ + float, float, float, float, float, float, float, float, float, float + ]: ... def Cone(self) -> gp_Cone: ... def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsUClosed(self) -> bool: ... def IsUPeriodic(self) -> bool: ... def IsVClosed(self) -> bool: ... @@ -881,15 +1275,43 @@ class Geom_CylindricalSurface(Geom_ElementarySurface): @overload def __init__(self, C: gp_Cylinder) -> None: ... def Bounds(self) -> Tuple[float, float, float, float]: ... - def Coefficients(self) -> Tuple[float, float, float, float, float, float, float, float, float, float]: ... + def Coefficients( + self, + ) -> Tuple[ + float, float, float, float, float, float, float, float, float, float + ]: ... def Copy(self) -> Geom_Geometry: ... def Cylinder(self) -> gp_Cylinder: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsUClosed(self) -> bool: ... def IsUPeriodic(self) -> bool: ... def IsVClosed(self) -> bool: ... @@ -918,7 +1340,7 @@ class Geom_Ellipse(Geom_Conic): def DN(self, U: float, N: int) -> gp_Vec: ... def Directrix1(self) -> gp_Ax1: ... def Directrix2(self) -> gp_Ax1: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def Elips(self) -> gp_Elips: ... def FirstParameter(self) -> float: ... @@ -954,7 +1376,7 @@ class Geom_Hyperbola(Geom_Conic): def DN(self, U: float, N: int) -> gp_Vec: ... def Directrix1(self) -> gp_Ax1: ... def Directrix2(self) -> gp_Ax1: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def FirstParameter(self) -> float: ... def Focal(self) -> float: ... @@ -988,7 +1410,7 @@ class Geom_Parabola(Geom_Conic): def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... def DN(self, U: float, N: int) -> gp_Vec: ... def Directrix(self) -> gp_Ax1: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def FirstParameter(self) -> float: ... def Focal(self) -> float: ... @@ -1019,10 +1441,34 @@ class Geom_Plane(Geom_ElementarySurface): def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsUClosed(self) -> bool: ... def IsUPeriodic(self) -> bool: ... def IsVClosed(self) -> bool: ... @@ -1041,19 +1487,59 @@ class Geom_Plane(Geom_ElementarySurface): class Geom_RectangularTrimmedSurface(Geom_BoundedSurface): @overload - def __init__(self, S: Geom_Surface, U1: float, U2: float, V1: float, V2: float, USense: Optional[bool] = True, VSense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, S: Geom_Surface, Param1: float, Param2: float, UTrim: bool, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, + S: Geom_Surface, + U1: float, + U2: float, + V1: float, + V2: float, + USense: Optional[bool] = True, + VSense: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + S: Geom_Surface, + Param1: float, + Param2: float, + UTrim: bool, + Sense: Optional[bool] = True, + ) -> None: ... def BasisSurface(self) -> Geom_Surface: ... def Bounds(self) -> Tuple[float, float, float, float]: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... def IsUClosed(self) -> bool: ... @@ -1062,9 +1548,19 @@ class Geom_RectangularTrimmedSurface(Geom_BoundedSurface): def IsVPeriodic(self) -> bool: ... def ParametricTransformation(self, T: gp_Trsf) -> gp_GTrsf2d: ... @overload - def SetTrim(self, U1: float, U2: float, V1: float, V2: float, USense: Optional[bool] = True, VSense: Optional[bool] = True) -> None: ... - @overload - def SetTrim(self, Param1: float, Param2: float, UTrim: bool, Sense: Optional[bool] = True) -> None: ... + def SetTrim( + self, + U1: float, + U2: float, + V1: float, + V2: float, + USense: Optional[bool] = True, + VSense: Optional[bool] = True, + ) -> None: ... + @overload + def SetTrim( + self, Param1: float, Param2: float, UTrim: bool, Sense: Optional[bool] = True + ) -> None: ... def Transform(self, T: gp_Trsf) -> None: ... def TransformParameters(self, T: gp_Trsf) -> Tuple[float, float]: ... def UIso(self, U: float) -> Geom_Curve: ... @@ -1083,14 +1579,42 @@ class Geom_SphericalSurface(Geom_ElementarySurface): def __init__(self, S: gp_Sphere) -> None: ... def Area(self) -> float: ... def Bounds(self) -> Tuple[float, float, float, float]: ... - def Coefficients(self) -> Tuple[float, float, float, float, float, float, float, float, float, float]: ... + def Coefficients( + self, + ) -> Tuple[ + float, float, float, float, float, float, float, float, float, float + ]: ... def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsUClosed(self) -> bool: ... def IsUPeriodic(self) -> bool: ... def IsVClosed(self) -> bool: ... @@ -1112,10 +1636,34 @@ class Geom_SurfaceOfLinearExtrusion(Geom_SweptSurface): def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... def IsUClosed(self) -> bool: ... @@ -1141,10 +1689,34 @@ class Geom_SurfaceOfRevolution(Geom_SweptSurface): def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... def IsUClosed(self) -> bool: ... @@ -1178,10 +1750,34 @@ class Geom_ToroidalSurface(Geom_ElementarySurface): def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsUClosed(self) -> bool: ... def IsUPeriodic(self) -> bool: ... def IsVClosed(self) -> bool: ... @@ -1200,7 +1796,14 @@ class Geom_ToroidalSurface(Geom_ElementarySurface): def Volume(self) -> float: ... class Geom_TrimmedCurve(Geom_BoundedCurve): - def __init__(self, C: Geom_Curve, U1: float, U2: float, Sense: Optional[bool] = True, theAdjustPeriodic: Optional[bool] = True) -> None: ... + def __init__( + self, + C: Geom_Curve, + U1: float, + U2: float, + Sense: Optional[bool] = True, + theAdjustPeriodic: Optional[bool] = True, + ) -> None: ... def BasisCurve(self) -> Geom_Curve: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom_Geometry: ... @@ -1209,7 +1812,7 @@ class Geom_TrimmedCurve(Geom_BoundedCurve): def D2(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... def DN(self, U: float, N: int) -> gp_Vec: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EndPoint(self) -> gp_Pnt: ... def FirstParameter(self) -> float: ... def IsCN(self, N: int) -> bool: ... @@ -1220,7 +1823,13 @@ class Geom_TrimmedCurve(Geom_BoundedCurve): def Period(self) -> float: ... def Reverse(self) -> None: ... def ReversedParameter(self, U: float) -> float: ... - def SetTrim(self, U1: float, U2: float, Sense: Optional[bool] = True, theAdjustPeriodic: Optional[bool] = True) -> None: ... + def SetTrim( + self, + U1: float, + U2: float, + Sense: Optional[bool] = True, + theAdjustPeriodic: Optional[bool] = True, + ) -> None: ... def StartPoint(self) -> gp_Pnt: ... def Transform(self, T: gp_Trsf) -> None: ... def TransformedParameter(self, U: float, T: gp_Trsf) -> float: ... @@ -1236,5 +1845,3 @@ class Geom_HSequenceOfBSplineSurface(Geom_SequenceOfBSplineSurface, Standard_Tra def __init__(self, other: Geom_SequenceOfBSplineSurface) -> None: ... def Sequence(self) -> Geom_SequenceOfBSplineSurface: ... def Append(self, theSequence: Geom_SequenceOfBSplineSurface) -> None: ... - - diff --git a/src/SWIG_files/wrapper/Geom2d.pyi b/src/SWIG_files/wrapper/Geom2d.pyi index 66109955b..69b459b68 100644 --- a/src/SWIG_files/wrapper/Geom2d.pyi +++ b/src/SWIG_files/wrapper/Geom2d.pyi @@ -8,10 +8,9 @@ from OCC.Core.GeomAbs import * from OCC.Core.TColgp import * from OCC.Core.TColStd import * - class Geom2d_Geometry(Standard_Transient): def Copy(self) -> Geom2d_Geometry: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Mirror(self, P: gp_Pnt2d) -> None: ... @overload @@ -92,9 +91,11 @@ class Geom2d_Curve(Geom2d_Geometry): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FirstParameter(self) -> float: ... def IsCN(self, N: int) -> bool: ... def IsClosed(self) -> bool: ... @@ -111,7 +112,7 @@ class Geom2d_Curve(Geom2d_Geometry): class Geom2d_Point(Geom2d_Geometry): def Coord(self) -> Tuple[float, float]: ... def Distance(self, Other: Geom2d_Point) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Pnt2d(self) -> gp_Pnt2d: ... def SquareDistance(self, Other: Geom2d_Point) -> float: ... def X(self) -> float: ... @@ -131,7 +132,7 @@ class Geom2d_Vector(Geom2d_Geometry): def Y(self) -> float: ... class Geom2d_BoundedCurve(Geom2d_Curve): - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EndPoint(self) -> gp_Pnt2d: ... def StartPoint(self) -> gp_Pnt2d: ... @@ -142,7 +143,7 @@ class Geom2d_CartesianPoint(Geom2d_Point): def __init__(self, X: float, Y: float) -> None: ... def Coord(self) -> Tuple[float, float]: ... def Copy(self) -> Geom2d_Geometry: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Pnt2d(self) -> gp_Pnt2d: ... def SetCoord(self, X: float, Y: float) -> None: ... def SetPnt2d(self, P: gp_Pnt2d) -> None: ... @@ -154,7 +155,7 @@ class Geom2d_CartesianPoint(Geom2d_Point): class Geom2d_Conic(Geom2d_Curve): def Continuity(self) -> GeomAbs_Shape: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def IsCN(self, N: int) -> bool: ... def Location(self) -> gp_Pnt2d: ... @@ -196,11 +197,13 @@ class Geom2d_Line(Geom2d_Curve): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Direction(self) -> gp_Dir2d: ... def Distance(self, P: gp_Pnt2d) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FirstParameter(self) -> float: ... def IsCN(self, N: int) -> bool: ... def IsClosed(self) -> bool: ... @@ -220,16 +223,20 @@ class Geom2d_Line(Geom2d_Curve): def TransformedParameter(self, U: float, T: gp_Trsf2d) -> float: ... class Geom2d_OffsetCurve(Geom2d_Curve): - def __init__(self, C: Geom2d_Curve, Offset: float, isNotCheckC0: Optional[bool] = False) -> None: ... + def __init__( + self, C: Geom2d_Curve, Offset: float, isNotCheckC0: Optional[bool] = False + ) -> None: ... def BasisCurve(self) -> Geom2d_Curve: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom2d_Geometry: ... def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FirstParameter(self) -> float: ... def GetBasisCurveContinuity(self) -> GeomAbs_Shape: ... def IsCN(self, N: int) -> bool: ... @@ -241,7 +248,9 @@ class Geom2d_OffsetCurve(Geom2d_Curve): def Period(self) -> float: ... def Reverse(self) -> None: ... def ReversedParameter(self, U: float) -> float: ... - def SetBasisCurve(self, C: Geom2d_Curve, isNotCheckC0: Optional[bool] = False) -> None: ... + def SetBasisCurve( + self, C: Geom2d_Curve, isNotCheckC0: Optional[bool] = False + ) -> None: ... def SetOffsetValue(self, D: float) -> None: ... def Transform(self, T: gp_Trsf2d) -> None: ... def TransformedParameter(self, U: float, T: gp_Trsf2d) -> float: ... @@ -275,18 +284,35 @@ class Geom2d_VectorWithMagnitude(Geom2d_Vector): class Geom2d_BSplineCurve(Geom2d_BoundedCurve): @overload - def __init__(self, Poles: TColgp_Array1OfPnt2d, Knots: TColStd_Array1OfReal, Multiplicities: TColStd_Array1OfInteger, Degree: int, Periodic: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Multiplicities: TColStd_Array1OfInteger, Degree: int, Periodic: Optional[bool] = False) -> None: ... + def __init__( + self, + Poles: TColgp_Array1OfPnt2d, + Knots: TColStd_Array1OfReal, + Multiplicities: TColStd_Array1OfInteger, + Degree: int, + Periodic: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Multiplicities: TColStd_Array1OfInteger, + Degree: int, + Periodic: Optional[bool] = False, + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom2d_Geometry: ... def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Degree(self) -> int: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EndPoint(self) -> gp_Pnt2d: ... def FirstParameter(self) -> float: ... def FirstUKnotIndex(self) -> int: ... @@ -296,10 +322,22 @@ class Geom2d_BSplineCurve(Geom2d_BoundedCurve): @overload def IncreaseMultiplicity(self, I1: int, I2: int, M: int) -> None: ... def IncrementMultiplicity(self, I1: int, I2: int, M: int) -> None: ... - def InsertKnot(self, U: float, M: Optional[int] = 1, ParametricTolerance: Optional[float] = 0.0) -> None: ... - def InsertKnots(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, ParametricTolerance: Optional[float] = 0.0, Add: Optional[bool] = False) -> None: ... - def InsertPoleAfter(self, Index: int, P: gp_Pnt2d, Weight: Optional[float] = 1.0) -> None: ... - def InsertPoleBefore(self, Index: int, P: gp_Pnt2d, Weight: Optional[float] = 1.0) -> None: ... + def InsertKnot( + self, U: float, M: Optional[int] = 1, ParametricTolerance: Optional[float] = 0.0 + ) -> None: ... + def InsertKnots( + self, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ParametricTolerance: Optional[float] = 0.0, + Add: Optional[bool] = False, + ) -> None: ... + def InsertPoleAfter( + self, Index: int, P: gp_Pnt2d, Weight: Optional[float] = 1.0 + ) -> None: ... + def InsertPoleBefore( + self, Index: int, P: gp_Pnt2d, Weight: Optional[float] = 1.0 + ) -> None: ... def IsCN(self, N: int) -> bool: ... def IsClosed(self) -> bool: ... def IsG1(self, theTf: float, theTl: float, theAngTol: float) -> bool: ... @@ -318,16 +356,44 @@ class Geom2d_BSplineCurve(Geom2d_BoundedCurve): def LastParameter(self) -> float: ... def LastUKnotIndex(self) -> int: ... def LocalD0(self, U: float, FromK1: int, ToK2: int, P: gp_Pnt2d) -> None: ... - def LocalD1(self, U: float, FromK1: int, ToK2: int, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... - def LocalD2(self, U: float, FromK1: int, ToK2: int, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def LocalD3(self, U: float, FromK1: int, ToK2: int, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def LocalD1( + self, U: float, FromK1: int, ToK2: int, P: gp_Pnt2d, V1: gp_Vec2d + ) -> None: ... + def LocalD2( + self, U: float, FromK1: int, ToK2: int, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... + def LocalD3( + self, + U: float, + FromK1: int, + ToK2: int, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... def LocalDN(self, U: float, FromK1: int, ToK2: int, N: int) -> gp_Vec2d: ... def LocalValue(self, U: float, FromK1: int, ToK2: int) -> gp_Pnt2d: ... - def LocateU(self, U: float, ParametricTolerance: float, WithKnotRepetition: Optional[bool] = False) -> Tuple[int, int]: ... + def LocateU( + self, + U: float, + ParametricTolerance: float, + WithKnotRepetition: Optional[bool] = False, + ) -> Tuple[int, int]: ... @staticmethod def MaxDegree() -> int: ... - def MovePoint(self, U: float, P: gp_Pnt2d, Index1: int, Index2: int) -> Tuple[int, int]: ... - def MovePointAndTangent(self, U: float, P: gp_Pnt2d, Tangent: gp_Vec2d, Tolerance: float, StartingCondition: int, EndingCondition: int) -> int: ... + def MovePoint( + self, U: float, P: gp_Pnt2d, Index1: int, Index2: int + ) -> Tuple[int, int]: ... + def MovePointAndTangent( + self, + U: float, + P: gp_Pnt2d, + Tangent: gp_Vec2d, + Tolerance: float, + StartingCondition: int, + EndingCondition: int, + ) -> int: ... @overload def Multiplicities(self, M: TColStd_Array1OfInteger) -> None: ... @overload @@ -346,7 +412,12 @@ class Geom2d_BSplineCurve(Geom2d_BoundedCurve): def Resolution(self, ToleranceUV: float) -> float: ... def Reverse(self) -> None: ... def ReversedParameter(self, U: float) -> float: ... - def Segment(self, U1: float, U2: float, theTolerance: Optional[float] = Precision.PConfusion()) -> None: ... + def Segment( + self, + U1: float, + U2: float, + theTolerance: Optional[float] = Precision.PConfusion(), + ) -> None: ... @overload def SetKnot(self, Index: int, K: float) -> None: ... @overload @@ -372,21 +443,29 @@ class Geom2d_BezierCurve(Geom2d_BoundedCurve): @overload def __init__(self, CurvePoles: TColgp_Array1OfPnt2d) -> None: ... @overload - def __init__(self, CurvePoles: TColgp_Array1OfPnt2d, PoleWeights: TColStd_Array1OfReal) -> None: ... + def __init__( + self, CurvePoles: TColgp_Array1OfPnt2d, PoleWeights: TColStd_Array1OfReal + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom2d_Geometry: ... def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Degree(self) -> int: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EndPoint(self) -> gp_Pnt2d: ... def FirstParameter(self) -> float: ... def Increase(self, Degree: int) -> None: ... - def InsertPoleAfter(self, Index: int, P: gp_Pnt2d, Weight: Optional[float] = 1.0) -> None: ... - def InsertPoleBefore(self, Index: int, P: gp_Pnt2d, Weight: Optional[float] = 1.0) -> None: ... + def InsertPoleAfter( + self, Index: int, P: gp_Pnt2d, Weight: Optional[float] = 1.0 + ) -> None: ... + def InsertPoleBefore( + self, Index: int, P: gp_Pnt2d, Weight: Optional[float] = 1.0 + ) -> None: ... def IsCN(self, N: int) -> bool: ... def IsClosed(self) -> bool: ... def IsPeriodic(self) -> bool: ... @@ -422,7 +501,9 @@ class Geom2d_Circle(Geom2d_Conic): @overload def __init__(self, C: gp_Circ2d) -> None: ... @overload - def __init__(self, A: gp_Ax2d, Radius: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, A: gp_Ax2d, Radius: float, Sense: Optional[bool] = True + ) -> None: ... @overload def __init__(self, A: gp_Ax22d, Radius: float) -> None: ... def Circ2d(self) -> gp_Circ2d: ... @@ -430,9 +511,11 @@ class Geom2d_Circle(Geom2d_Conic): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def FirstParameter(self) -> float: ... def IsClosed(self) -> bool: ... @@ -448,18 +531,28 @@ class Geom2d_Ellipse(Geom2d_Conic): @overload def __init__(self, E: gp_Elips2d) -> None: ... @overload - def __init__(self, MajorAxis: gp_Ax2d, MajorRadius: float, MinorRadius: float, Sense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Axis: gp_Ax22d, MajorRadius: float, MinorRadius: float) -> None: ... + def __init__( + self, + MajorAxis: gp_Ax2d, + MajorRadius: float, + MinorRadius: float, + Sense: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, Axis: gp_Ax22d, MajorRadius: float, MinorRadius: float + ) -> None: ... def Copy(self) -> Geom2d_Geometry: ... def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Directrix1(self) -> gp_Ax2d: ... def Directrix2(self) -> gp_Ax2d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def Elips2d(self) -> gp_Elips2d: ... def FirstParameter(self) -> float: ... @@ -482,9 +575,17 @@ class Geom2d_Hyperbola(Geom2d_Conic): @overload def __init__(self, H: gp_Hypr2d) -> None: ... @overload - def __init__(self, MajorAxis: gp_Ax2d, MajorRadius: float, MinorRadius: float, Sense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Axis: gp_Ax22d, MajorRadius: float, MinorRadius: float) -> None: ... + def __init__( + self, + MajorAxis: gp_Ax2d, + MajorRadius: float, + MinorRadius: float, + Sense: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, Axis: gp_Ax22d, MajorRadius: float, MinorRadius: float + ) -> None: ... def Asymptote1(self) -> gp_Ax2d: ... def Asymptote2(self) -> gp_Ax2d: ... def ConjugateBranch1(self) -> gp_Hypr2d: ... @@ -493,11 +594,13 @@ class Geom2d_Hyperbola(Geom2d_Conic): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Directrix1(self) -> gp_Ax2d: ... def Directrix2(self) -> gp_Ax2d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def FirstParameter(self) -> float: ... def Focal(self) -> float: ... @@ -521,7 +624,9 @@ class Geom2d_Parabola(Geom2d_Conic): @overload def __init__(self, Prb: gp_Parab2d) -> None: ... @overload - def __init__(self, MirrorAxis: gp_Ax2d, Focal: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, MirrorAxis: gp_Ax2d, Focal: float, Sense: Optional[bool] = True + ) -> None: ... @overload def __init__(self, Axis: gp_Ax22d, Focal: float) -> None: ... @overload @@ -530,10 +635,12 @@ class Geom2d_Parabola(Geom2d_Conic): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Directrix(self) -> gp_Ax2d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eccentricity(self) -> float: ... def FirstParameter(self) -> float: ... def Focal(self) -> float: ... @@ -551,16 +658,25 @@ class Geom2d_Parabola(Geom2d_Conic): def TransformedParameter(self, U: float, T: gp_Trsf2d) -> float: ... class Geom2d_TrimmedCurve(Geom2d_BoundedCurve): - def __init__(self, C: Geom2d_Curve, U1: float, U2: float, Sense: Optional[bool] = True, theAdjustPeriodic: Optional[bool] = True) -> None: ... + def __init__( + self, + C: Geom2d_Curve, + U1: float, + U2: float, + Sense: Optional[bool] = True, + theAdjustPeriodic: Optional[bool] = True, + ) -> None: ... def BasisCurve(self) -> Geom2d_Curve: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom2d_Geometry: ... def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EndPoint(self) -> gp_Pnt2d: ... def FirstParameter(self) -> float: ... def IsCN(self, N: int) -> bool: ... @@ -571,7 +687,13 @@ class Geom2d_TrimmedCurve(Geom2d_BoundedCurve): def Period(self) -> float: ... def Reverse(self) -> None: ... def ReversedParameter(self, U: float) -> float: ... - def SetTrim(self, U1: float, U2: float, Sense: Optional[bool] = True, theAdjustPeriodic: Optional[bool] = True) -> None: ... + def SetTrim( + self, + U1: float, + U2: float, + Sense: Optional[bool] = True, + theAdjustPeriodic: Optional[bool] = True, + ) -> None: ... def StartPoint(self) -> gp_Pnt2d: ... def Transform(self, T: gp_Trsf2d) -> None: ... def TransformedParameter(self, U: float, T: gp_Trsf2d) -> float: ... @@ -579,4 +701,3 @@ class Geom2d_TrimmedCurve(Geom2d_BoundedCurve): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Geom2dAPI.pyi b/src/SWIG_files/wrapper/Geom2dAPI.pyi index ee856b806..c1035a1f5 100644 --- a/src/SWIG_files/wrapper/Geom2dAPI.pyi +++ b/src/SWIG_files/wrapper/Geom2dAPI.pyi @@ -12,10 +12,17 @@ from OCC.Core.TColStd import * from OCC.Core.GeomAbs import * from OCC.Core.Approx import * - class Geom2dAPI_ExtremaCurveCurve: @overload - def __init__(self, C1: Geom2d_Curve, C2: Geom2d_Curve, U1min: float, U1max: float, U2min: float, U2max: float) -> None: ... + def __init__( + self, + C1: Geom2d_Curve, + C2: Geom2d_Curve, + U1min: float, + U1max: float, + U2min: float, + U2max: float, + ) -> None: ... def Distance(self, Index: int) -> float: ... def Extrema(self) -> Extrema_ExtCC2d: ... def LowerDistance(self) -> float: ... @@ -29,56 +36,162 @@ class Geom2dAPI_InterCurveCurve: @overload def __init__(self) -> None: ... @overload - def __init__(self, C1: Geom2d_Curve, C2: Geom2d_Curve, Tol: Optional[float] = 1.0e-6) -> None: ... + def __init__( + self, C1: Geom2d_Curve, C2: Geom2d_Curve, Tol: Optional[float] = 1.0e-6 + ) -> None: ... @overload def __init__(self, C1: Geom2d_Curve, Tol: Optional[float] = 1.0e-6) -> None: ... @overload - def Init(self, C1: Geom2d_Curve, C2: Geom2d_Curve, Tol: Optional[float] = 1.0e-6) -> None: ... + def Init( + self, C1: Geom2d_Curve, C2: Geom2d_Curve, Tol: Optional[float] = 1.0e-6 + ) -> None: ... @overload def Init(self, C1: Geom2d_Curve, Tol: Optional[float] = 1.0e-6) -> None: ... def Intersector(self) -> Geom2dInt_GInter: ... def NbPoints(self) -> int: ... def NbSegments(self) -> int: ... def Point(self, Index: int) -> gp_Pnt2d: ... - def Segment(self, Index: int, Curve1: Geom2d_Curve, Curve2: Geom2d_Curve) -> None: ... + def Segment( + self, Index: int, Curve1: Geom2d_Curve, Curve2: Geom2d_Curve + ) -> None: ... class Geom2dAPI_Interpolate: @overload - def __init__(self, Points: TColgp_HArray1OfPnt2d, PeriodicFlag: bool, Tolerance: float) -> None: ... - @overload - def __init__(self, Points: TColgp_HArray1OfPnt2d, Parameters: TColStd_HArray1OfReal, PeriodicFlag: bool, Tolerance: float) -> None: ... + def __init__( + self, Points: TColgp_HArray1OfPnt2d, PeriodicFlag: bool, Tolerance: float + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_HArray1OfPnt2d, + Parameters: TColStd_HArray1OfReal, + PeriodicFlag: bool, + Tolerance: float, + ) -> None: ... def Curve(self) -> Geom2d_BSplineCurve: ... def IsDone(self) -> bool: ... @overload - def Load(self, InitialTangent: gp_Vec2d, FinalTangent: gp_Vec2d, Scale: Optional[bool] = True) -> None: ... - @overload - def Load(self, Tangents: TColgp_Array1OfVec2d, TangentFlags: TColStd_HArray1OfBoolean, Scale: Optional[bool] = True) -> None: ... + def Load( + self, + InitialTangent: gp_Vec2d, + FinalTangent: gp_Vec2d, + Scale: Optional[bool] = True, + ) -> None: ... + @overload + def Load( + self, + Tangents: TColgp_Array1OfVec2d, + TangentFlags: TColStd_HArray1OfBoolean, + Scale: Optional[bool] = True, + ) -> None: ... def Perform(self) -> None: ... class Geom2dAPI_PointsToBSpline: @overload def __init__(self) -> None: ... @overload - def __init__(self, Points: TColgp_Array1OfPnt2d, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol2D: Optional[float] = 1.0e-6) -> None: ... - @overload - def __init__(self, YValues: TColStd_Array1OfReal, X0: float, DX: float, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol2D: Optional[float] = 1.0e-6) -> None: ... - @overload - def __init__(self, Points: TColgp_Array1OfPnt2d, ParType: Approx_ParametrizationType, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol2D: Optional[float] = 1.0e-3) -> None: ... - @overload - def __init__(self, Points: TColgp_Array1OfPnt2d, Parameters: TColStd_Array1OfReal, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol2D: Optional[float] = 1.0e-3) -> None: ... - @overload - def __init__(self, Points: TColgp_Array1OfPnt2d, Weight1: float, Weight2: float, Weight3: float, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... + def __init__( + self, + Points: TColgp_Array1OfPnt2d, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-6, + ) -> None: ... + @overload + def __init__( + self, + YValues: TColStd_Array1OfReal, + X0: float, + DX: float, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-6, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt2d, + ParType: Approx_ParametrizationType, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt2d, + Parameters: TColStd_Array1OfReal, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt2d, + Weight1: float, + Weight2: float, + Weight3: float, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... def Curve(self) -> Geom2d_BSplineCurve: ... @overload - def Init(self, Points: TColgp_Array1OfPnt2d, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol2D: Optional[float] = 1.0e-6) -> None: ... - @overload - def Init(self, YValues: TColStd_Array1OfReal, X0: float, DX: float, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol2D: Optional[float] = 1.0e-6) -> None: ... - @overload - def Init(self, Points: TColgp_Array1OfPnt2d, ParType: Approx_ParametrizationType, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol2D: Optional[float] = 1.0e-3) -> None: ... - @overload - def Init(self, Points: TColgp_Array1OfPnt2d, Parameters: TColStd_Array1OfReal, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol2D: Optional[float] = 1.0e-3) -> None: ... - @overload - def Init(self, Points: TColgp_Array1OfPnt2d, Weight1: float, Weight2: float, Weight3: float, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol2D: Optional[float] = 1.0e-3) -> None: ... + def Init( + self, + Points: TColgp_Array1OfPnt2d, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-6, + ) -> None: ... + @overload + def Init( + self, + YValues: TColStd_Array1OfReal, + X0: float, + DX: float, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-6, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt2d, + ParType: Approx_ParametrizationType, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt2d, + Parameters: TColStd_Array1OfReal, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt2d, + Weight1: float, + Weight2: float, + Weight3: float, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... def IsDone(self) -> bool: ... class Geom2dAPI_ProjectPointOnCurve: @@ -87,13 +200,17 @@ class Geom2dAPI_ProjectPointOnCurve: @overload def __init__(self, P: gp_Pnt2d, Curve: Geom2d_Curve) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, Curve: Geom2d_Curve, Umin: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, Curve: Geom2d_Curve, Umin: float, Usup: float + ) -> None: ... def Distance(self, Index: int) -> float: ... def Extrema(self) -> Extrema_ExtPC2d: ... @overload def Init(self, P: gp_Pnt2d, Curve: Geom2d_Curve) -> None: ... @overload - def Init(self, P: gp_Pnt2d, Curve: Geom2d_Curve, Umin: float, Usup: float) -> None: ... + def Init( + self, P: gp_Pnt2d, Curve: Geom2d_Curve, Umin: float, Usup: float + ) -> None: ... def LowerDistance(self) -> float: ... def LowerDistanceParameter(self) -> float: ... def NbPoints(self) -> int: ... @@ -107,4 +224,3 @@ class Geom2dAPI_ProjectPointOnCurve: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Geom2dAdaptor.pyi b/src/SWIG_files/wrapper/Geom2dAdaptor.pyi index c359c6b43..2189fdd43 100644 --- a/src/SWIG_files/wrapper/Geom2dAdaptor.pyi +++ b/src/SWIG_files/wrapper/Geom2dAdaptor.pyi @@ -9,7 +9,6 @@ from OCC.Core.gp import * from OCC.Core.GeomAbs import * from OCC.Core.TColStd import * - class geom2dadaptor: @staticmethod def MakeCurve(HC: Adaptor2d_Curve2d) -> Geom2d_Curve: ... @@ -29,7 +28,9 @@ class Geom2dAdaptor_Curve(Adaptor2d_Curve2d): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Degree(self) -> int: ... def Ellipse(self) -> gp_Elips2d: ... @@ -45,7 +46,9 @@ class Geom2dAdaptor_Curve(Adaptor2d_Curve2d): @overload def Load(self, theCurve: Geom2d_Curve) -> None: ... @overload - def Load(self, theCurve: Geom2d_Curve, theUFirst: float, theULast: float) -> None: ... + def Load( + self, theCurve: Geom2d_Curve, theUFirst: float, theULast: float + ) -> None: ... def NbIntervals(self, S: GeomAbs_Shape) -> int: ... def NbKnots(self) -> int: ... def NbPoles(self) -> int: ... @@ -61,4 +64,3 @@ class Geom2dAdaptor_Curve(Adaptor2d_Curve2d): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Geom2dConvert.pyi b/src/SWIG_files/wrapper/Geom2dConvert.pyi index 74de85fd6..469be271e 100644 --- a/src/SWIG_files/wrapper/Geom2dConvert.pyi +++ b/src/SWIG_files/wrapper/Geom2dConvert.pyi @@ -11,57 +11,123 @@ from OCC.Core.Adaptor2d import * from OCC.Core.GeomAbs import * from OCC.Core.gp import * - class Geom2dConvert_SequenceOfPPoint: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: Geom2dConvert_PPoint) -> Geom2dConvert_PPoint: ... def Clear(self) -> None: ... def First(self) -> Geom2dConvert_PPoint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Geom2dConvert_PPoint: ... def Length(self) -> int: ... - def Append(self, theItem: Geom2dConvert_PPoint) -> Geom2dConvert_PPoint: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Geom2dConvert_PPoint) -> Geom2dConvert_PPoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Geom2dConvert_PPoint: ... def SetValue(self, theIndex: int, theValue: Geom2dConvert_PPoint) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Geom2dConvert_PPoint: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class geom2dconvert: @overload @staticmethod - def C0BSplineToArrayOfC1BSplineCurve(BS: Geom2d_BSplineCurve, tabBS: TColGeom2d_HArray1OfBSplineCurve, Tolerance: float) -> None: ... + def C0BSplineToArrayOfC1BSplineCurve( + BS: Geom2d_BSplineCurve, + tabBS: TColGeom2d_HArray1OfBSplineCurve, + Tolerance: float, + ) -> None: ... @overload @staticmethod - def C0BSplineToArrayOfC1BSplineCurve(BS: Geom2d_BSplineCurve, tabBS: TColGeom2d_HArray1OfBSplineCurve, AngularTolerance: float, Tolerance: float) -> None: ... + def C0BSplineToArrayOfC1BSplineCurve( + BS: Geom2d_BSplineCurve, + tabBS: TColGeom2d_HArray1OfBSplineCurve, + AngularTolerance: float, + Tolerance: float, + ) -> None: ... @staticmethod - def C0BSplineToC1BSplineCurve(BS: Geom2d_BSplineCurve, Tolerance: float) -> None: ... + def C0BSplineToC1BSplineCurve( + BS: Geom2d_BSplineCurve, Tolerance: float + ) -> None: ... @overload @staticmethod - def ConcatC1(ArrayOfCurves: TColGeom2d_Array1OfBSplineCurve, ArrayOfToler: TColStd_Array1OfReal, ArrayOfIndices: TColStd_HArray1OfInteger, ArrayOfConcatenated: TColGeom2d_HArray1OfBSplineCurve, ClosedTolerance: float) -> bool: ... + def ConcatC1( + ArrayOfCurves: TColGeom2d_Array1OfBSplineCurve, + ArrayOfToler: TColStd_Array1OfReal, + ArrayOfIndices: TColStd_HArray1OfInteger, + ArrayOfConcatenated: TColGeom2d_HArray1OfBSplineCurve, + ClosedTolerance: float, + ) -> bool: ... @overload @staticmethod - def ConcatC1(ArrayOfCurves: TColGeom2d_Array1OfBSplineCurve, ArrayOfToler: TColStd_Array1OfReal, ArrayOfIndices: TColStd_HArray1OfInteger, ArrayOfConcatenated: TColGeom2d_HArray1OfBSplineCurve, ClosedTolerance: float, AngularTolerance: float) -> bool: ... + def ConcatC1( + ArrayOfCurves: TColGeom2d_Array1OfBSplineCurve, + ArrayOfToler: TColStd_Array1OfReal, + ArrayOfIndices: TColStd_HArray1OfInteger, + ArrayOfConcatenated: TColGeom2d_HArray1OfBSplineCurve, + ClosedTolerance: float, + AngularTolerance: float, + ) -> bool: ... @staticmethod - def ConcatG1(ArrayOfCurves: TColGeom2d_Array1OfBSplineCurve, ArrayOfToler: TColStd_Array1OfReal, ArrayOfConcatenated: TColGeom2d_HArray1OfBSplineCurve, ClosedTolerance: float) -> bool: ... + def ConcatG1( + ArrayOfCurves: TColGeom2d_Array1OfBSplineCurve, + ArrayOfToler: TColStd_Array1OfReal, + ArrayOfConcatenated: TColGeom2d_HArray1OfBSplineCurve, + ClosedTolerance: float, + ) -> bool: ... @staticmethod - def CurveToBSplineCurve(C: Geom2d_Curve, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> Geom2d_BSplineCurve: ... + def CurveToBSplineCurve( + C: Geom2d_Curve, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> Geom2d_BSplineCurve: ... @overload @staticmethod - def SplitBSplineCurve(C: Geom2d_BSplineCurve, FromK1: int, ToK2: int, SameOrientation: Optional[bool] = True) -> Geom2d_BSplineCurve: ... + def SplitBSplineCurve( + C: Geom2d_BSplineCurve, + FromK1: int, + ToK2: int, + SameOrientation: Optional[bool] = True, + ) -> Geom2d_BSplineCurve: ... @overload @staticmethod - def SplitBSplineCurve(C: Geom2d_BSplineCurve, FromU1: float, ToU2: float, ParametricTolerance: float, SameOrientation: Optional[bool] = True) -> Geom2d_BSplineCurve: ... + def SplitBSplineCurve( + C: Geom2d_BSplineCurve, + FromU1: float, + ToU2: float, + ParametricTolerance: float, + SameOrientation: Optional[bool] = True, + ) -> Geom2d_BSplineCurve: ... class Geom2dConvert_ApproxArcsSegments: - def __init__(self, theCurve: Adaptor2d_Curve2d, theTolerance: float, theAngleTol: float) -> None: ... + def __init__( + self, theCurve: Adaptor2d_Curve2d, theTolerance: float, theAngleTol: float + ) -> None: ... def GetResult(self) -> TColGeom2d_SequenceOfCurve: ... class Geom2dConvert_ApproxCurve: @overload - def __init__(self, Curve: Geom2d_Curve, Tol2d: float, Order: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> None: ... + def __init__( + self, + Curve: Geom2d_Curve, + Tol2d: float, + Order: GeomAbs_Shape, + MaxSegments: int, + MaxDegree: int, + ) -> None: ... @overload - def __init__(self, Curve: Adaptor2d_Curve2d, Tol2d: float, Order: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> None: ... + def __init__( + self, + Curve: Adaptor2d_Curve2d, + Tol2d: float, + Order: GeomAbs_Shape, + MaxSegments: int, + MaxDegree: int, + ) -> None: ... def Curve(self) -> Geom2d_BSplineCurve: ... def Dump(self) -> str: ... def HasResult(self) -> bool: ... @@ -69,7 +135,9 @@ class Geom2dConvert_ApproxCurve: def MaxError(self) -> float: ... class Geom2dConvert_BSplineCurveKnotSplitting: - def __init__(self, BasisCurve: Geom2d_BSplineCurve, ContinuityRange: int) -> None: ... + def __init__( + self, BasisCurve: Geom2d_BSplineCurve, ContinuityRange: int + ) -> None: ... def NbSplits(self) -> int: ... def SplitValue(self, Index: int) -> int: ... def Splitting(self, SplitValues: TColStd_Array1OfInteger) -> None: ... @@ -78,7 +146,13 @@ class Geom2dConvert_BSplineCurveToBezierCurve: @overload def __init__(self, BasisCurve: Geom2d_BSplineCurve) -> None: ... @overload - def __init__(self, BasisCurve: Geom2d_BSplineCurve, U1: float, U2: float, ParametricTolerance: float) -> None: ... + def __init__( + self, + BasisCurve: Geom2d_BSplineCurve, + U1: float, + U2: float, + ParametricTolerance: float, + ) -> None: ... def Arc(self, Index: int) -> Geom2d_BezierCurve: ... def Arcs(self, Curves: TColGeom2d_Array1OfBezierCurve) -> None: ... def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... @@ -86,10 +160,26 @@ class Geom2dConvert_BSplineCurveToBezierCurve: class Geom2dConvert_CompCurveToBSplineCurve: @overload - def __init__(self, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> None: ... + def __init__( + self, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... @overload - def __init__(self, BasisCurve: Geom2d_BoundedCurve, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> None: ... - def Add(self, NewCurve: Geom2d_BoundedCurve, Tolerance: float, After: Optional[bool] = False) -> bool: ... + def __init__( + self, + BasisCurve: Geom2d_BoundedCurve, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... + def Add( + self, + NewCurve: Geom2d_BoundedCurve, + Tolerance: float, + After: Optional[bool] = False, + ) -> bool: ... def BSplineCurve(self) -> Geom2d_BSplineCurve: ... def Clear(self) -> None: ... @@ -109,4 +199,3 @@ class Geom2dConvert_PPoint: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Geom2dEvaluator.pyi b/src/SWIG_files/wrapper/Geom2dEvaluator.pyi index 741c3c07c..67bad1c59 100644 --- a/src/SWIG_files/wrapper/Geom2dEvaluator.pyi +++ b/src/SWIG_files/wrapper/Geom2dEvaluator.pyi @@ -7,22 +7,47 @@ from OCC.Core.gp import * from OCC.Core.Geom2d import * from OCC.Core.Geom2dAdaptor import * - class geom2devaluator: @staticmethod def CalculateD0(theValue: gp_Pnt2d, theD1: gp_Vec2d, theOffset: float) -> None: ... @staticmethod - def CalculateD1(theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d, theOffset: float) -> None: ... + def CalculateD1( + theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d, theOffset: float + ) -> None: ... @staticmethod - def CalculateD2(theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d, theD3: gp_Vec2d, theIsDirChange: bool, theOffset: float) -> None: ... + def CalculateD2( + theValue: gp_Pnt2d, + theD1: gp_Vec2d, + theD2: gp_Vec2d, + theD3: gp_Vec2d, + theIsDirChange: bool, + theOffset: float, + ) -> None: ... @staticmethod - def CalculateD3(theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d, theD3: gp_Vec2d, theD4: gp_Vec2d, theIsDirChange: bool, theOffset: float) -> None: ... + def CalculateD3( + theValue: gp_Pnt2d, + theD1: gp_Vec2d, + theD2: gp_Vec2d, + theD3: gp_Vec2d, + theD4: gp_Vec2d, + theIsDirChange: bool, + theOffset: float, + ) -> None: ... class Geom2dEvaluator_Curve(Standard_Transient): def D0(self, theU: float, theValue: gp_Pnt2d) -> None: ... def D1(self, theU: float, theValue: gp_Pnt2d, theD1: gp_Vec2d) -> None: ... - def D2(self, theU: float, theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d) -> None: ... - def D3(self, theU: float, theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d, theD3: gp_Vec2d) -> None: ... + def D2( + self, theU: float, theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d + ) -> None: ... + def D3( + self, + theU: float, + theValue: gp_Pnt2d, + theD1: gp_Vec2d, + theD2: gp_Vec2d, + theD3: gp_Vec2d, + ) -> None: ... def DN(self, theU: float, theDerU: int) -> gp_Vec2d: ... def ShallowCopy(self) -> Geom2dEvaluator_Curve: ... @@ -33,8 +58,17 @@ class Geom2dEvaluator_OffsetCurve(Geom2dEvaluator_Curve): def __init__(self, theBase: Geom2dAdaptor_Curve, theOffset: float) -> None: ... def D0(self, theU: float, theValue: gp_Pnt2d) -> None: ... def D1(self, theU: float, theValue: gp_Pnt2d, theD1: gp_Vec2d) -> None: ... - def D2(self, theU: float, theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d) -> None: ... - def D3(self, theU: float, theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d, theD3: gp_Vec2d) -> None: ... + def D2( + self, theU: float, theValue: gp_Pnt2d, theD1: gp_Vec2d, theD2: gp_Vec2d + ) -> None: ... + def D3( + self, + theU: float, + theValue: gp_Pnt2d, + theD1: gp_Vec2d, + theD2: gp_Vec2d, + theD3: gp_Vec2d, + ) -> None: ... def DN(self, theU: float, theDeriv: int) -> gp_Vec2d: ... def SetOffsetValue(self, theOffset: float) -> None: ... def ShallowCopy(self) -> Geom2dEvaluator_Curve: ... @@ -42,4 +76,3 @@ class Geom2dEvaluator_OffsetCurve(Geom2dEvaluator_Curve): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Geom2dGcc.pyi b/src/SWIG_files/wrapper/Geom2dGcc.pyi index 5f802f22f..03eb6575f 100644 --- a/src/SWIG_files/wrapper/Geom2dGcc.pyi +++ b/src/SWIG_files/wrapper/Geom2dGcc.pyi @@ -10,7 +10,6 @@ from OCC.Core.GccAna import * from OCC.Core.GccEnt import * from OCC.Core.math import * - class Geom2dGcc_Type1(IntEnum): Geom2dGcc_CuCuCu: int = ... Geom2dGcc_CiCuCu: int = ... @@ -72,11 +71,34 @@ class geom2dgcc: class Geom2dGcc_Circ2d2TanOn: @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Qualified2: Geom2dGcc_QualifiedCurve, OnCurve: Geom2dAdaptor_Curve, Tolerance: float, Param1: float, Param2: float, ParamOn: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Point: Geom2d_Point, OnCurve: Geom2dAdaptor_Curve, Tolerance: float, Param1: float, ParamOn: float) -> None: ... - @overload - def __init__(self, Point1: Geom2d_Point, Point2: Geom2d_Point, OnCurve: Geom2dAdaptor_Curve, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Qualified2: Geom2dGcc_QualifiedCurve, + OnCurve: Geom2dAdaptor_Curve, + Tolerance: float, + Param1: float, + Param2: float, + ParamOn: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Point: Geom2d_Point, + OnCurve: Geom2dAdaptor_Curve, + Tolerance: float, + Param1: float, + ParamOn: float, + ) -> None: ... + @overload + def __init__( + self, + Point1: Geom2d_Point, + Point2: Geom2d_Point, + OnCurve: Geom2dAdaptor_Curve, + Tolerance: float, + ) -> None: ... def CenterOn3(self, Index: int, PntSol: gp_Pnt2d) -> float: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... @@ -93,17 +115,53 @@ class Geom2dGcc_Circ2d2TanOn: class Geom2dGcc_Circ2d2TanOnGeo: @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedCirc, OnCurv: Geom2dAdaptor_Curve, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedLin, OnCurv: Geom2dAdaptor_Curve, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Point2: gp_Pnt2d, OnCurv: Geom2dAdaptor_Curve, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: GccEnt_QualifiedLin, OnCurv: Geom2dAdaptor_Curve, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: gp_Pnt2d, OnCurv: Geom2dAdaptor_Curve, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: gp_Pnt2d, Point2: gp_Pnt2d, OnCurv: Geom2dAdaptor_Curve, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedCirc, + OnCurv: Geom2dAdaptor_Curve, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedLin, + OnCurv: Geom2dAdaptor_Curve, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Point2: gp_Pnt2d, + OnCurv: Geom2dAdaptor_Curve, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: GccEnt_QualifiedLin, + OnCurv: Geom2dAdaptor_Curve, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: gp_Pnt2d, + OnCurv: Geom2dAdaptor_Curve, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Point1: gp_Pnt2d, + Point2: gp_Pnt2d, + OnCurv: Geom2dAdaptor_Curve, + Tolerance: float, + ) -> None: ... def CenterOn3(self, Index: int, PntSol: gp_Pnt2d) -> float: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... @@ -116,29 +174,134 @@ class Geom2dGcc_Circ2d2TanOnGeo: class Geom2dGcc_Circ2d2TanOnIter: @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: Geom2dGcc_QCurve, OnLine: gp_Lin2d, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: Geom2dGcc_QCurve, OnLine: gp_Lin2d, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Qualified2: Geom2dGcc_QCurve, OnLine: gp_Lin2d, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Point2: gp_Pnt2d, OnLine: gp_Lin2d, Param1: float, Param2: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: Geom2dGcc_QCurve, OnCirc: gp_Circ2d, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: Geom2dGcc_QCurve, OnCirc: gp_Circ2d, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Qualified2: Geom2dGcc_QCurve, OnCirc: gp_Circ2d, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Point2: gp_Pnt2d, OnCirc: gp_Circ2d, Param1: float, Param2: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: Geom2dGcc_QCurve, OnCurv: Geom2dAdaptor_Curve, Param1: float, Param2: float, ParamOn: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: Geom2dGcc_QCurve, OnCurve: Geom2dAdaptor_Curve, Param1: float, Param2: float, ParamOn: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Point2: gp_Pnt2d, OnCurve: Geom2dAdaptor_Curve, Param1: float, ParamOn: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Qualified2: Geom2dGcc_QCurve, OnCurve: Geom2dAdaptor_Curve, Param1: float, Param2: float, ParamOn: float, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: Geom2dGcc_QCurve, + OnLine: gp_Lin2d, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: Geom2dGcc_QCurve, + OnLine: gp_Lin2d, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Qualified2: Geom2dGcc_QCurve, + OnLine: gp_Lin2d, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Point2: gp_Pnt2d, + OnLine: gp_Lin2d, + Param1: float, + Param2: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: Geom2dGcc_QCurve, + OnCirc: gp_Circ2d, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: Geom2dGcc_QCurve, + OnCirc: gp_Circ2d, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Qualified2: Geom2dGcc_QCurve, + OnCirc: gp_Circ2d, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Point2: gp_Pnt2d, + OnCirc: gp_Circ2d, + Param1: float, + Param2: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: Geom2dGcc_QCurve, + OnCurv: Geom2dAdaptor_Curve, + Param1: float, + Param2: float, + ParamOn: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: Geom2dGcc_QCurve, + OnCurve: Geom2dAdaptor_Curve, + Param1: float, + Param2: float, + ParamOn: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Point2: gp_Pnt2d, + OnCurve: Geom2dAdaptor_Curve, + Param1: float, + ParamOn: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Qualified2: Geom2dGcc_QCurve, + OnCurve: Geom2dAdaptor_Curve, + Param1: float, + Param2: float, + ParamOn: float, + Tolerance: float, + ) -> None: ... def CenterOn3(self, PntSol: gp_Pnt2d) -> float: ... def IsDone(self) -> bool: ... def IsTheSame1(self) -> bool: ... @@ -150,11 +313,29 @@ class Geom2dGcc_Circ2d2TanOnIter: class Geom2dGcc_Circ2d2TanRad: @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Qualified2: Geom2dGcc_QualifiedCurve, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Point: Geom2d_Point, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: Geom2d_Point, Point2: Geom2d_Point, Radius: float, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Qualified2: Geom2dGcc_QualifiedCurve, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Point: Geom2d_Point, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Point1: Geom2d_Point, + Point2: Geom2d_Point, + Radius: float, + Tolerance: float, + ) -> None: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... def IsTheSame2(self, Index: int) -> bool: ... @@ -170,13 +351,37 @@ class Geom2dGcc_Circ2d2TanRad: class Geom2dGcc_Circ2d2TanRadGeo: @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: Geom2dGcc_QCurve, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: Geom2dGcc_QCurve, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Qualified2: Geom2dGcc_QCurve, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Point2: gp_Pnt2d, Radius: float, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: Geom2dGcc_QCurve, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: Geom2dGcc_QCurve, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Qualified2: Geom2dGcc_QCurve, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Point2: gp_Pnt2d, + Radius: float, + Tolerance: float, + ) -> None: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... def IsTheSame2(self, Index: int) -> bool: ... @@ -188,46 +393,165 @@ class Geom2dGcc_Circ2d2TanRadGeo: class Geom2dGcc_Circ2d3Tan: @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Qualified2: Geom2dGcc_QualifiedCurve, Qualified3: Geom2dGcc_QualifiedCurve, Tolerance: float, Param1: float, Param2: float, Param3: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Qualified2: Geom2dGcc_QualifiedCurve, Point: Geom2d_Point, Tolerance: float, Param1: float, Param2: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Point1: Geom2d_Point, Point2: Geom2d_Point, Tolerance: float, Param1: float) -> None: ... - @overload - def __init__(self, Point1: Geom2d_Point, Point2: Geom2d_Point, Point3: Geom2d_Point, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Qualified2: Geom2dGcc_QualifiedCurve, + Qualified3: Geom2dGcc_QualifiedCurve, + Tolerance: float, + Param1: float, + Param2: float, + Param3: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Qualified2: Geom2dGcc_QualifiedCurve, + Point: Geom2d_Point, + Tolerance: float, + Param1: float, + Param2: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Point1: Geom2d_Point, + Point2: Geom2d_Point, + Tolerance: float, + Param1: float, + ) -> None: ... + @overload + def __init__( + self, + Point1: Geom2d_Point, + Point2: Geom2d_Point, + Point3: Geom2d_Point, + Tolerance: float, + ) -> None: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... def IsTheSame2(self, Index: int) -> bool: ... def IsTheSame3(self, Index: int) -> bool: ... def NbSolutions(self) -> int: ... - def Results(self, Circ: GccAna_Circ2d3Tan, Rank1: int, Rank2: int, Rank3: int) -> None: ... + def Results( + self, Circ: GccAna_Circ2d3Tan, Rank1: int, Rank2: int, Rank3: int + ) -> None: ... def Tangency1(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def Tangency2(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def Tangency3(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def ThisSolution(self, Index: int) -> gp_Circ2d: ... - def WhichQualifier(self, Index: int) -> Tuple[GccEnt_Position, GccEnt_Position, GccEnt_Position]: ... + def WhichQualifier( + self, Index: int + ) -> Tuple[GccEnt_Position, GccEnt_Position, GccEnt_Position]: ... class Geom2dGcc_Circ2d3TanIter: @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedCirc, Qualified3: Geom2dGcc_QCurve, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: Geom2dGcc_QCurve, Qualified3: Geom2dGcc_QCurve, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: GccEnt_QualifiedLin, Qualified3: Geom2dGcc_QCurve, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: Geom2dGcc_QCurve, Point3: gp_Pnt2d, Param1: float, Param2: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: GccEnt_QualifiedLin, Qualified3: Geom2dGcc_QCurve, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: Geom2dGcc_QCurve, Qualified3: Geom2dGcc_QCurve, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, Qualified2: Geom2dGcc_QCurve, Point3: gp_Pnt2d, Param1: float, Param2: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Point1: gp_Pnt2d, Point2: gp_Pnt2d, Param1: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Qualified2: Geom2dGcc_QCurve, Point2: gp_Pnt2d, Param1: float, Param2: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Qualified2: Geom2dGcc_QCurve, Qualified3: Geom2dGcc_QCurve, Param1: float, Param2: float, Param3: float, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedCirc, + Qualified3: Geom2dGcc_QCurve, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: Geom2dGcc_QCurve, + Qualified3: Geom2dGcc_QCurve, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: GccEnt_QualifiedLin, + Qualified3: Geom2dGcc_QCurve, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: Geom2dGcc_QCurve, + Point3: gp_Pnt2d, + Param1: float, + Param2: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: GccEnt_QualifiedLin, + Qualified3: Geom2dGcc_QCurve, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: Geom2dGcc_QCurve, + Qualified3: Geom2dGcc_QCurve, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + Qualified2: Geom2dGcc_QCurve, + Point3: gp_Pnt2d, + Param1: float, + Param2: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Point1: gp_Pnt2d, + Point2: gp_Pnt2d, + Param1: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Qualified2: Geom2dGcc_QCurve, + Point2: gp_Pnt2d, + Param1: float, + Param2: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Qualified2: Geom2dGcc_QCurve, + Qualified3: Geom2dGcc_QCurve, + Param1: float, + Param2: float, + Param3: float, + Tolerance: float, + ) -> None: ... def IsDone(self) -> bool: ... def IsTheSame1(self) -> bool: ... def IsTheSame2(self) -> bool: ... @@ -236,10 +560,17 @@ class Geom2dGcc_Circ2d3TanIter: def Tangency2(self, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def Tangency3(self, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def ThisSolution(self) -> gp_Circ2d: ... - def WhichQualifier(self) -> Tuple[GccEnt_Position, GccEnt_Position, GccEnt_Position]: ... + def WhichQualifier( + self, + ) -> Tuple[GccEnt_Position, GccEnt_Position, GccEnt_Position]: ... class Geom2dGcc_Circ2dTanCen: - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Pcenter: Geom2d_Point, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Pcenter: Geom2d_Point, + Tolerance: float, + ) -> None: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... def NbSolutions(self) -> int: ... @@ -248,7 +579,9 @@ class Geom2dGcc_Circ2dTanCen: def WhichQualifier(self, Index: int) -> GccEnt_Position: ... class Geom2dGcc_Circ2dTanCenGeo: - def __init__(self, Qualified1: Geom2dGcc_QCurve, Pcenter: gp_Pnt2d, Tolerance: float) -> None: ... + def __init__( + self, Qualified1: Geom2dGcc_QCurve, Pcenter: gp_Pnt2d, Tolerance: float + ) -> None: ... def IsDone(self) -> bool: ... def NbSolutions(self) -> int: ... def Tangency1(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... @@ -257,9 +590,21 @@ class Geom2dGcc_Circ2dTanCenGeo: class Geom2dGcc_Circ2dTanOnRad: @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, OnCurv: Geom2dAdaptor_Curve, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: Geom2d_Point, OnCurv: Geom2dAdaptor_Curve, Radius: float, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + OnCurv: Geom2dAdaptor_Curve, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Point1: Geom2d_Point, + OnCurv: Geom2dAdaptor_Curve, + Radius: float, + Tolerance: float, + ) -> None: ... def CenterOn3(self, Index: int, PntSol: gp_Pnt2d) -> float: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... @@ -274,17 +619,53 @@ class Geom2dGcc_Circ2dTanOnRad: class Geom2dGcc_Circ2dTanOnRadGeo: @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, OnLine: gp_Lin2d, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, OnCirc: gp_Circ2d, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, OnCurv: Geom2dAdaptor_Curve, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedLin, OnCurv: Geom2dAdaptor_Curve, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, OnCurv: Geom2dAdaptor_Curve, Radius: float, Tolerance: float) -> None: ... - @overload - def __init__(self, Point1: gp_Pnt2d, OnCurv: Geom2dAdaptor_Curve, Radius: float, Tolerance: float) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + OnLine: gp_Lin2d, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + OnCirc: gp_Circ2d, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + OnCurv: Geom2dAdaptor_Curve, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedLin, + OnCurv: Geom2dAdaptor_Curve, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + OnCurv: Geom2dAdaptor_Curve, + Radius: float, + Tolerance: float, + ) -> None: ... + @overload + def __init__( + self, + Point1: gp_Pnt2d, + OnCurv: Geom2dAdaptor_Curve, + Radius: float, + Tolerance: float, + ) -> None: ... def CenterOn3(self, Index: int, PntSol: gp_Pnt2d) -> float: ... def IsDone(self) -> bool: ... def IsTheSame1(self, Index: int) -> bool: ... @@ -297,9 +678,18 @@ class Geom2dGcc_CurveTool: @staticmethod def D1(C: Geom2dAdaptor_Curve, U: float, P: gp_Pnt2d, T: gp_Vec2d) -> None: ... @staticmethod - def D2(C: Geom2dAdaptor_Curve, U: float, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d) -> None: ... + def D2( + C: Geom2dAdaptor_Curve, U: float, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d + ) -> None: ... @staticmethod - def D3(C: Geom2dAdaptor_Curve, U: float, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d, dN: gp_Vec2d) -> None: ... + def D3( + C: Geom2dAdaptor_Curve, + U: float, + P: gp_Pnt2d, + T: gp_Vec2d, + N: gp_Vec2d, + dN: gp_Vec2d, + ) -> None: ... @staticmethod def EpsX(C: Geom2dAdaptor_Curve, Tol: float) -> float: ... @staticmethod @@ -319,11 +709,22 @@ class Geom2dGcc_FunctionTanCirCu(math_FunctionWithDerivative): class Geom2dGcc_FunctionTanCuCu(math_FunctionSetWithDerivatives): @overload - def __init__(self, Curv1: Geom2dAdaptor_Curve, Curv2: Geom2dAdaptor_Curve) -> None: ... + def __init__( + self, Curv1: Geom2dAdaptor_Curve, Curv2: Geom2dAdaptor_Curve + ) -> None: ... @overload def __init__(self, Circ1: gp_Circ2d, Curv2: Geom2dAdaptor_Curve) -> None: ... def Derivatives(self, X: math_Vector, Deriv: math_Matrix) -> bool: ... - def InitDerivative(self, X: math_Vector, Point1: gp_Pnt2d, Point2: gp_Pnt2d, Tan1: gp_Vec2d, Tan2: gp_Vec2d, D21: gp_Vec2d, D22: gp_Vec2d) -> None: ... + def InitDerivative( + self, + X: math_Vector, + Point1: gp_Pnt2d, + Point2: gp_Pnt2d, + Tan1: gp_Vec2d, + Tan2: gp_Vec2d, + D21: gp_Vec2d, + D22: gp_Vec2d, + ) -> None: ... def NbEquations(self) -> int: ... def NbVariables(self) -> int: ... def Value(self, X: math_Vector, F: math_Vector) -> bool: ... @@ -331,31 +732,91 @@ class Geom2dGcc_FunctionTanCuCu(math_FunctionSetWithDerivatives): class Geom2dGcc_FunctionTanCuCuOnCu(math_FunctionSetWithDerivatives): @overload - def __init__(self, C1: Geom2dAdaptor_Curve, C2: Geom2dAdaptor_Curve, OnCi: gp_Circ2d, Rad: float) -> None: ... - @overload - def __init__(self, C1: gp_Circ2d, C2: Geom2dAdaptor_Curve, OnCi: gp_Circ2d, Rad: float) -> None: ... - @overload - def __init__(self, L1: gp_Lin2d, C2: Geom2dAdaptor_Curve, OnCi: gp_Circ2d, Rad: float) -> None: ... - @overload - def __init__(self, C1: Geom2dAdaptor_Curve, P2: gp_Pnt2d, OnCi: gp_Circ2d, Rad: float) -> None: ... - @overload - def __init__(self, C1: Geom2dAdaptor_Curve, C2: Geom2dAdaptor_Curve, OnLi: gp_Lin2d, Rad: float) -> None: ... - @overload - def __init__(self, C1: gp_Circ2d, C2: Geom2dAdaptor_Curve, OnLi: gp_Lin2d, Rad: float) -> None: ... - @overload - def __init__(self, L1: gp_Lin2d, C2: Geom2dAdaptor_Curve, OnLi: gp_Lin2d, Rad: float) -> None: ... - @overload - def __init__(self, C1: Geom2dAdaptor_Curve, P2: gp_Pnt2d, OnLi: gp_Lin2d, Rad: float) -> None: ... - @overload - def __init__(self, C1: Geom2dAdaptor_Curve, C2: Geom2dAdaptor_Curve, OnCu: Geom2dAdaptor_Curve, Rad: float) -> None: ... - @overload - def __init__(self, C1: gp_Circ2d, C2: Geom2dAdaptor_Curve, OnCu: Geom2dAdaptor_Curve, Rad: float) -> None: ... - @overload - def __init__(self, L1: gp_Lin2d, C2: Geom2dAdaptor_Curve, OnCu: Geom2dAdaptor_Curve, Rad: float) -> None: ... - @overload - def __init__(self, C1: Geom2dAdaptor_Curve, P1: gp_Pnt2d, OnCu: Geom2dAdaptor_Curve, Rad: float) -> None: ... + def __init__( + self, + C1: Geom2dAdaptor_Curve, + C2: Geom2dAdaptor_Curve, + OnCi: gp_Circ2d, + Rad: float, + ) -> None: ... + @overload + def __init__( + self, C1: gp_Circ2d, C2: Geom2dAdaptor_Curve, OnCi: gp_Circ2d, Rad: float + ) -> None: ... + @overload + def __init__( + self, L1: gp_Lin2d, C2: Geom2dAdaptor_Curve, OnCi: gp_Circ2d, Rad: float + ) -> None: ... + @overload + def __init__( + self, C1: Geom2dAdaptor_Curve, P2: gp_Pnt2d, OnCi: gp_Circ2d, Rad: float + ) -> None: ... + @overload + def __init__( + self, + C1: Geom2dAdaptor_Curve, + C2: Geom2dAdaptor_Curve, + OnLi: gp_Lin2d, + Rad: float, + ) -> None: ... + @overload + def __init__( + self, C1: gp_Circ2d, C2: Geom2dAdaptor_Curve, OnLi: gp_Lin2d, Rad: float + ) -> None: ... + @overload + def __init__( + self, L1: gp_Lin2d, C2: Geom2dAdaptor_Curve, OnLi: gp_Lin2d, Rad: float + ) -> None: ... + @overload + def __init__( + self, C1: Geom2dAdaptor_Curve, P2: gp_Pnt2d, OnLi: gp_Lin2d, Rad: float + ) -> None: ... + @overload + def __init__( + self, + C1: Geom2dAdaptor_Curve, + C2: Geom2dAdaptor_Curve, + OnCu: Geom2dAdaptor_Curve, + Rad: float, + ) -> None: ... + @overload + def __init__( + self, + C1: gp_Circ2d, + C2: Geom2dAdaptor_Curve, + OnCu: Geom2dAdaptor_Curve, + Rad: float, + ) -> None: ... + @overload + def __init__( + self, + L1: gp_Lin2d, + C2: Geom2dAdaptor_Curve, + OnCu: Geom2dAdaptor_Curve, + Rad: float, + ) -> None: ... + @overload + def __init__( + self, + C1: Geom2dAdaptor_Curve, + P1: gp_Pnt2d, + OnCu: Geom2dAdaptor_Curve, + Rad: float, + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... - def InitDerivative(self, X: math_Vector, Point1: gp_Pnt2d, Point2: gp_Pnt2d, Point3: gp_Pnt2d, Tan1: gp_Vec2d, Tan2: gp_Vec2d, Tan3: gp_Vec2d, D21: gp_Vec2d, D22: gp_Vec2d, D23: gp_Vec2d) -> None: ... + def InitDerivative( + self, + X: math_Vector, + Point1: gp_Pnt2d, + Point2: gp_Pnt2d, + Point3: gp_Pnt2d, + Tan1: gp_Vec2d, + Tan2: gp_Vec2d, + Tan3: gp_Vec2d, + D21: gp_Vec2d, + D22: gp_Vec2d, + D23: gp_Vec2d, + ) -> None: ... def NbEquations(self) -> int: ... def NbVariables(self) -> int: ... def Value(self, X: math_Vector, F: math_Vector) -> bool: ... @@ -375,13 +836,33 @@ class Geom2dGcc_FunctionTanObl(math_FunctionWithDerivative): class Geom2dGcc_Lin2d2Tan: @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Qualified2: Geom2dGcc_QualifiedCurve, Tolang: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, ThePoint: gp_Pnt2d, Tolang: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, Qualified2: Geom2dGcc_QualifiedCurve, Tolang: float, Param1: float, Param2: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, ThePoint: gp_Pnt2d, Tolang: float, Param1: float) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Qualified2: Geom2dGcc_QualifiedCurve, + Tolang: float, + ) -> None: ... + @overload + def __init__( + self, Qualified1: Geom2dGcc_QualifiedCurve, ThePoint: gp_Pnt2d, Tolang: float + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + Qualified2: Geom2dGcc_QualifiedCurve, + Tolang: float, + Param1: float, + Param2: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + ThePoint: gp_Pnt2d, + Tolang: float, + Param1: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbSolutions(self) -> int: ... def Tangency1(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... @@ -391,11 +872,30 @@ class Geom2dGcc_Lin2d2Tan: class Geom2dGcc_Lin2d2TanIter: @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, ThePoint: gp_Pnt2d, Param1: float, Tolang: float) -> None: ... - @overload - def __init__(self, Qualified1: GccEnt_QualifiedCirc, Qualified2: Geom2dGcc_QCurve, Param2: float, Tolang: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QCurve, Qualified2: Geom2dGcc_QCurve, Param1: float, Param2: float, Tolang: float) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + ThePoint: gp_Pnt2d, + Param1: float, + Tolang: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: GccEnt_QualifiedCirc, + Qualified2: Geom2dGcc_QCurve, + Param2: float, + Tolang: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + Qualified2: Geom2dGcc_QCurve, + Param1: float, + Param2: float, + Tolang: float, + ) -> None: ... def IsDone(self) -> bool: ... def Tangency1(self, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def Tangency2(self, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... @@ -404,9 +904,22 @@ class Geom2dGcc_Lin2d2TanIter: class Geom2dGcc_Lin2dTanObl: @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, TheLin: gp_Lin2d, TolAng: float, Angle: float) -> None: ... - @overload - def __init__(self, Qualified1: Geom2dGcc_QualifiedCurve, TheLin: gp_Lin2d, TolAng: float, Param1: float, Angle: float) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + TheLin: gp_Lin2d, + TolAng: float, + Angle: float, + ) -> None: ... + @overload + def __init__( + self, + Qualified1: Geom2dGcc_QualifiedCurve, + TheLin: gp_Lin2d, + TolAng: float, + Param1: float, + Angle: float, + ) -> None: ... def Intersection2(self, Index: int, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def IsDone(self) -> bool: ... def NbSolutions(self) -> int: ... @@ -415,7 +928,14 @@ class Geom2dGcc_Lin2dTanObl: def WhichQualifier(self, Index: int) -> GccEnt_Position: ... class Geom2dGcc_Lin2dTanOblIter: - def __init__(self, Qualified1: Geom2dGcc_QCurve, TheLin: gp_Lin2d, Param1: float, TolAng: float, Angle: Optional[float] = 0) -> None: ... + def __init__( + self, + Qualified1: Geom2dGcc_QCurve, + TheLin: gp_Lin2d, + Param1: float, + TolAng: float, + Angle: Optional[float] = 0, + ) -> None: ... def Intersection2(self, PntSol: gp_Pnt2d) -> Tuple[float, float]: ... def IsDone(self) -> bool: ... def IsParallel2(self) -> bool: ... @@ -424,7 +944,9 @@ class Geom2dGcc_Lin2dTanOblIter: def WhichQualifier(self) -> GccEnt_Position: ... class Geom2dGcc_QCurve: - def __init__(self, Curve: Geom2dAdaptor_Curve, Qualifier: GccEnt_Position) -> None: ... + def __init__( + self, Curve: Geom2dAdaptor_Curve, Qualifier: GccEnt_Position + ) -> None: ... def IsEnclosed(self) -> bool: ... def IsEnclosing(self) -> bool: ... def IsOutside(self) -> bool: ... @@ -433,7 +955,9 @@ class Geom2dGcc_QCurve: def Qualifier(self) -> GccEnt_Position: ... class Geom2dGcc_QualifiedCurve: - def __init__(self, Curve: Geom2dAdaptor_Curve, Qualifier: GccEnt_Position) -> None: ... + def __init__( + self, Curve: Geom2dAdaptor_Curve, Qualifier: GccEnt_Position + ) -> None: ... def IsEnclosed(self) -> bool: ... def IsEnclosing(self) -> bool: ... def IsOutside(self) -> bool: ... @@ -441,10 +965,9 @@ class Geom2dGcc_QualifiedCurve: def Qualified(self) -> Geom2dAdaptor_Curve: ... def Qualifier(self) -> GccEnt_Position: ... -#classnotwrapped +# classnotwrapped class Geom2dGcc_FunctionTanCuCuCu: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Geom2dHatch.pyi b/src/SWIG_files/wrapper/Geom2dHatch.pyi index 0787db250..16feb4223 100644 --- a/src/SWIG_files/wrapper/Geom2dHatch.pyi +++ b/src/SWIG_files/wrapper/Geom2dHatch.pyi @@ -11,7 +11,6 @@ from OCC.Core.Geom2d import * from OCC.Core.HatchGen import * from OCC.Core.Geom2dInt import * - class Geom2dHatch_Classifier: @overload def __init__(self) -> None: ... @@ -29,7 +28,11 @@ class Geom2dHatch_Element: @overload def __init__(self) -> None: ... @overload - def __init__(self, Curve: Geom2dAdaptor_Curve, Orientation: Optional[TopAbs_Orientation] = TopAbs_FORWARD) -> None: ... + def __init__( + self, + Curve: Geom2dAdaptor_Curve, + Orientation: Optional[TopAbs_Orientation] = TopAbs_FORWARD, + ) -> None: ... def ChangeCurve(self) -> Geom2dAdaptor_Curve: ... def Curve(self) -> Geom2dAdaptor_Curve: ... @overload @@ -73,11 +76,26 @@ class Geom2dHatch_FClass2dOfClassifier: def State(self) -> TopAbs_State: ... class Geom2dHatch_Hatcher: - def __init__(self, Intersector: Geom2dHatch_Intersector, Confusion2d: float, Confusion3d: float, KeepPnt: Optional[bool] = False, KeepSeg: Optional[bool] = False) -> None: ... - @overload - def AddElement(self, Curve: Geom2dAdaptor_Curve, Orientation: Optional[TopAbs_Orientation] = TopAbs_FORWARD) -> int: ... - @overload - def AddElement(self, Curve: Geom2d_Curve, Orientation: Optional[TopAbs_Orientation] = TopAbs_FORWARD) -> int: ... + def __init__( + self, + Intersector: Geom2dHatch_Intersector, + Confusion2d: float, + Confusion3d: float, + KeepPnt: Optional[bool] = False, + KeepSeg: Optional[bool] = False, + ) -> None: ... + @overload + def AddElement( + self, + Curve: Geom2dAdaptor_Curve, + Orientation: Optional[TopAbs_Orientation] = TopAbs_FORWARD, + ) -> int: ... + @overload + def AddElement( + self, + Curve: Geom2d_Curve, + Orientation: Optional[TopAbs_Orientation] = TopAbs_FORWARD, + ) -> int: ... def AddHatching(self, Curve: Geom2dAdaptor_Curve) -> int: ... def ChangeIntersector(self) -> Geom2dHatch_Intersector: ... def Clear(self) -> None: ... @@ -169,8 +187,12 @@ class Geom2dHatch_Intersector(Geom2dInt_GInter): def __init__(self) -> None: ... def ConfusionTolerance(self) -> float: ... def Intersect(self, C1: Geom2dAdaptor_Curve, C2: Geom2dAdaptor_Curve) -> None: ... - def LocalGeometry(self, E: Geom2dAdaptor_Curve, U: float, T: gp_Dir2d, N: gp_Dir2d) -> float: ... - def Perform(self, L: gp_Lin2d, P: float, Tol: float, E: Geom2dAdaptor_Curve) -> None: ... + def LocalGeometry( + self, E: Geom2dAdaptor_Curve, U: float, T: gp_Dir2d, N: gp_Dir2d + ) -> float: ... + def Perform( + self, L: gp_Lin2d, P: float, Tol: float, E: Geom2dAdaptor_Curve + ) -> None: ... def SetConfusionTolerance(self, Confusion: float) -> None: ... def SetTangencyTolerance(self, Tangency: float) -> None: ... def TangencyTolerance(self) -> float: ... @@ -178,4 +200,3 @@ class Geom2dHatch_Intersector(Geom2dInt_GInter): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Geom2dInt.pyi b/src/SWIG_files/wrapper/Geom2dInt.pyi index ce8053be6..bcb083d18 100644 --- a/src/SWIG_files/wrapper/Geom2dInt.pyi +++ b/src/SWIG_files/wrapper/Geom2dInt.pyi @@ -14,15 +14,22 @@ from OCC.Core.Extrema import * from OCC.Core.Intf import * from OCC.Core.Bnd import * - class Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter: - def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, Tol: float) -> None: ... + def __init__( + self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, Tol: float + ) -> None: ... def AnErrorOccurred(self) -> bool: ... def NbRoots(self) -> int: ... @overload - def Perform(self, Poly1: Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter, Poly2: Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter) -> Tuple[int, int, float, float]: ... + def Perform( + self, + Poly1: Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter, + Poly2: Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter, + ) -> Tuple[int, int, float, float]: ... @overload - def Perform(self, Uo: float, Vo: float, UInf: float, VInf: float, USup: float, VSup: float) -> None: ... + def Perform( + self, Uo: float, Vo: float, UInf: float, VInf: float, USup: float, VSup: float + ) -> None: ... def Roots(self) -> Tuple[float, float]: ... class Geom2dInt_GInter(IntRes2d_Intersection): @@ -31,29 +38,83 @@ class Geom2dInt_GInter(IntRes2d_Intersection): @overload def __init__(self, C: Adaptor2d_Curve2d, TolConf: float, Tol: float) -> None: ... @overload - def __init__(self, C: Adaptor2d_Curve2d, D: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, C2: Adaptor2d_Curve2d, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, C2: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - def ComputeDomain(self, C1: Adaptor2d_Curve2d, TolDomain: float) -> IntRes2d_Domain: ... + def __init__( + self, C: Adaptor2d_Curve2d, D: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... + @overload + def __init__( + self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, TolConf: float, Tol: float + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + D1: IntRes2d_Domain, + C2: Adaptor2d_Curve2d, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + D1: IntRes2d_Domain, + C2: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def ComputeDomain( + self, C1: Adaptor2d_Curve2d, TolDomain: float + ) -> IntRes2d_Domain: ... def GetMinNbSamples(self) -> int: ... @overload - def Perform(self, C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, C2: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def Perform( + self, + C1: Adaptor2d_Curve2d, + D1: IntRes2d_Domain, + C2: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... @overload - def Perform(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, TolConf: float, Tol: float) -> None: ... + def Perform( + self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, TolConf: float, Tol: float + ) -> None: ... @overload - def Perform(self, C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def Perform( + self, C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... @overload def Perform(self, C1: Adaptor2d_Curve2d, TolConf: float, Tol: float) -> None: ... @overload - def Perform(self, C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, C2: Adaptor2d_Curve2d, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def Perform( + self, + C1: Adaptor2d_Curve2d, + D1: IntRes2d_Domain, + C2: Adaptor2d_Curve2d, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... def SetMinNbSamples(self, theMinNbSamples: int) -> None: ... class Geom2dInt_Geom2dCurveTool: @@ -64,9 +125,18 @@ class Geom2dInt_Geom2dCurveTool: @staticmethod def D1(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, T: gp_Vec2d) -> None: ... @staticmethod - def D2(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d) -> None: ... + def D2( + C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d + ) -> None: ... @staticmethod - def D3(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d, V: gp_Vec2d) -> None: ... + def D3( + C: Adaptor2d_Curve2d, + U: float, + P: gp_Pnt2d, + T: gp_Vec2d, + N: gp_Vec2d, + V: gp_Vec2d, + ) -> None: ... @staticmethod def DN(C: Adaptor2d_Curve2d, U: float, N: int) -> gp_Vec2d: ... @staticmethod @@ -82,7 +152,9 @@ class Geom2dInt_Geom2dCurveTool: @staticmethod def FirstParameter(C: Adaptor2d_Curve2d) -> float: ... @staticmethod - def GetInterval(C: Adaptor2d_Curve2d, Index: int, Tab: TColStd_Array1OfReal) -> Tuple[float, float]: ... + def GetInterval( + C: Adaptor2d_Curve2d, Index: int, Tab: TColStd_Array1OfReal + ) -> Tuple[float, float]: ... @staticmethod def GetType(C: Adaptor2d_Curve2d) -> GeomAbs_CurveType: ... @staticmethod @@ -110,33 +182,117 @@ class Geom2dInt_IntConicCurveOfGInter(IntRes2d_Intersection): @overload def __init__(self) -> None: ... @overload - def __init__(self, L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... -class Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter(math_FunctionWithDerivative): +class Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter( + math_FunctionWithDerivative +): def __init__(self, IT: IntCurve_IConicTool, PC: Adaptor2d_Curve2d) -> None: ... def Derivative(self, Param: float) -> Tuple[bool, float]: ... def Value(self, Param: float) -> Tuple[bool, float]: ... def Values(self, Param: float) -> Tuple[bool, float, float]: ... -class Geom2dInt_PCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(math_FunctionWithDerivative): +class Geom2dInt_PCLocFOfTheLocateExtPCOfTheProjPCurOfGInter( + math_FunctionWithDerivative +): @overload def __init__(self) -> None: ... @overload @@ -157,8 +313,12 @@ class Geom2dInt_PCLocFOfTheLocateExtPCOfTheProjPCurOfGInter(math_FunctionWithDer class Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter: pass -class Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter(math_FunctionSetWithDerivatives): - def __init__(self, curve1: Adaptor2d_Curve2d, curve2: Adaptor2d_Curve2d) -> None: ... +class Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter( + math_FunctionSetWithDerivatives +): + def __init__( + self, curve1: Adaptor2d_Curve2d, curve2: Adaptor2d_Curve2d + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def NbEquations(self) -> int: ... def NbVariables(self) -> int: ... @@ -169,53 +329,202 @@ class Geom2dInt_TheIntConicCurveOfGInter(IntRes2d_Intersection): @overload def __init__(self) -> None: ... @overload - def __init__(self, L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... class Geom2dInt_TheIntPCurvePCurveOfGInter(IntRes2d_Intersection): def __init__(self) -> None: ... def GetMinNbSamples(self) -> int: ... @overload - def Perform(self, Curve1: Adaptor2d_Curve2d, Domain1: IntRes2d_Domain, Curve2: Adaptor2d_Curve2d, Domain2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, Curve1: Adaptor2d_Curve2d, Domain1: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def Perform( + self, + Curve1: Adaptor2d_Curve2d, + Domain1: IntRes2d_Domain, + Curve2: Adaptor2d_Curve2d, + Domain2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Curve1: Adaptor2d_Curve2d, + Domain1: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... def SetMinNbSamples(self, theMinNbSamples: int) -> None: ... class Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter(IntRes2d_Intersection): @overload def __init__(self) -> None: ... @overload - def __init__(self, ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, Dom2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - def And_Domaine_Objet1_Intersections(self, TheImpTool: IntCurve_IConicTool, TheParCurve: Adaptor2d_Curve2d, TheImpCurveDomain: IntRes2d_Domain, TheParCurveDomain: IntRes2d_Domain, Inter2_And_Domain2: TColStd_Array1OfReal, Inter1: TColStd_Array1OfReal, Resultat1: TColStd_Array1OfReal, Resultat2: TColStd_Array1OfReal, EpsNul: float) -> int: ... - def FindU(self, parameter: float, point: gp_Pnt2d, TheParCurev: Adaptor2d_Curve2d, TheImpTool: IntCurve_IConicTool) -> float: ... - def FindV(self, parameter: float, point: gp_Pnt2d, TheImpTool: IntCurve_IConicTool, ParCurve: Adaptor2d_Curve2d, TheParCurveDomain: IntRes2d_Domain, V0: float, V1: float, Tolerance: float) -> float: ... - def Perform(self, ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, Dom2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def And_Domaine_Objet1_Intersections( + self, + TheImpTool: IntCurve_IConicTool, + TheParCurve: Adaptor2d_Curve2d, + TheImpCurveDomain: IntRes2d_Domain, + TheParCurveDomain: IntRes2d_Domain, + Inter2_And_Domain2: TColStd_Array1OfReal, + Inter1: TColStd_Array1OfReal, + Resultat1: TColStd_Array1OfReal, + Resultat2: TColStd_Array1OfReal, + EpsNul: float, + ) -> int: ... + def FindU( + self, + parameter: float, + point: gp_Pnt2d, + TheParCurev: Adaptor2d_Curve2d, + TheImpTool: IntCurve_IConicTool, + ) -> float: ... + def FindV( + self, + parameter: float, + point: gp_Pnt2d, + TheImpTool: IntCurve_IConicTool, + ParCurve: Adaptor2d_Curve2d, + TheParCurveDomain: IntRes2d_Domain, + V0: float, + V1: float, + Tolerance: float, + ) -> float: ... + def Perform( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... class Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, TolU: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, Umin: float, Usup: float, TolU: float) -> None: ... - def Initialize(self, C: Adaptor2d_Curve2d, Umin: float, Usup: float, TolU: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, TolU: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + U0: float, + Umin: float, + Usup: float, + TolU: float, + ) -> None: ... + def Initialize( + self, C: Adaptor2d_Curve2d, Umin: float, Usup: float, TolU: float + ) -> None: ... def IsDone(self) -> bool: ... def IsMin(self) -> bool: ... def Perform(self, P: gp_Pnt2d, U0: float) -> None: ... @@ -223,10 +532,14 @@ class Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter: def SquareDistance(self) -> float: ... class Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter(Intf_Polygon2d): - def __init__(self, Curve: Adaptor2d_Curve2d, NbPnt: int, Domain: IntRes2d_Domain, Tol: float) -> None: ... + def __init__( + self, Curve: Adaptor2d_Curve2d, NbPnt: int, Domain: IntRes2d_Domain, Tol: float + ) -> None: ... def ApproxParamOnCurve(self, Index: int, ParamOnLine: float) -> float: ... def AutoIntersectionIsPossible(self) -> bool: ... - def CalculRegion(self, x: float, y: float, x1: float, x2: float, y1: float, y2: float) -> int: ... + def CalculRegion( + self, x: float, y: float, x1: float, x2: float, y1: float, y2: float + ) -> int: ... @overload def Closed(self, clos: bool) -> None: ... @overload @@ -246,9 +559,14 @@ class Geom2dInt_TheProjPCurOfGInter: def FindParameter(C: Adaptor2d_Curve2d, Pnt: gp_Pnt2d, Tol: float) -> float: ... @overload @staticmethod - def FindParameter(C: Adaptor2d_Curve2d, Pnt: gp_Pnt2d, LowParameter: float, HighParameter: float, Tol: float) -> float: ... + def FindParameter( + C: Adaptor2d_Curve2d, + Pnt: gp_Pnt2d, + LowParameter: float, + HighParameter: float, + Tol: float, + ) -> float: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Geom2dLProp.pyi b/src/SWIG_files/wrapper/Geom2dLProp.pyi index b2438ff98..82a72fa5d 100644 --- a/src/SWIG_files/wrapper/Geom2dLProp.pyi +++ b/src/SWIG_files/wrapper/Geom2dLProp.pyi @@ -8,12 +8,13 @@ from OCC.Core.gp import * from OCC.Core.LProp import * from OCC.Core.math import * - class Geom2dLProp_CLProps2d: @overload def __init__(self, C: Geom2d_Curve, N: int, Resolution: float) -> None: ... @overload - def __init__(self, C: Geom2d_Curve, U: float, N: int, Resolution: float) -> None: ... + def __init__( + self, C: Geom2d_Curve, U: float, N: int, Resolution: float + ) -> None: ... @overload def __init__(self, N: int, Resolution: float) -> None: ... def CentreOfCurvature(self, P: gp_Pnt2d) -> None: ... @@ -41,9 +42,13 @@ class Geom2dLProp_Curve2dTool: @staticmethod def D1(C: Geom2d_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... @staticmethod - def D2(C: Geom2d_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + C: Geom2d_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @staticmethod - def D3(C: Geom2d_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + C: Geom2d_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... @staticmethod def FirstParameter(C: Geom2d_Curve) -> float: ... @staticmethod @@ -70,13 +75,16 @@ class Geom2dLProp_NumericCurInf2d: @overload def PerformCurExt(self, C: Geom2d_Curve, Result: LProp_CurAndInf) -> None: ... @overload - def PerformCurExt(self, C: Geom2d_Curve, UMin: float, UMax: float, Result: LProp_CurAndInf) -> None: ... + def PerformCurExt( + self, C: Geom2d_Curve, UMin: float, UMax: float, Result: LProp_CurAndInf + ) -> None: ... @overload def PerformInf(self, C: Geom2d_Curve, Result: LProp_CurAndInf) -> None: ... @overload - def PerformInf(self, C: Geom2d_Curve, UMin: float, UMax: float, Result: LProp_CurAndInf) -> None: ... + def PerformInf( + self, C: Geom2d_Curve, UMin: float, UMax: float, Result: LProp_CurAndInf + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomAPI.pyi b/src/SWIG_files/wrapper/GeomAPI.pyi index a5fe27f65..643333520 100644 --- a/src/SWIG_files/wrapper/GeomAPI.pyi +++ b/src/SWIG_files/wrapper/GeomAPI.pyi @@ -12,7 +12,6 @@ from OCC.Core.TColStd import * from OCC.Core.GeomAbs import * from OCC.Core.Approx import * - class geomapi: @staticmethod def To2d(C: Geom_Curve, P: gp_Pln) -> Geom2d_Curve: ... @@ -25,13 +24,29 @@ class GeomAPI_ExtremaCurveCurve: @overload def __init__(self, C1: Geom_Curve, C2: Geom_Curve) -> None: ... @overload - def __init__(self, C1: Geom_Curve, C2: Geom_Curve, U1min: float, U1max: float, U2min: float, U2max: float) -> None: ... + def __init__( + self, + C1: Geom_Curve, + C2: Geom_Curve, + U1min: float, + U1max: float, + U2min: float, + U2max: float, + ) -> None: ... def Distance(self, Index: int) -> float: ... def Extrema(self) -> Extrema_ExtCC: ... @overload def Init(self, C1: Geom_Curve, C2: Geom_Curve) -> None: ... @overload - def Init(self, C1: Geom_Curve, C2: Geom_Curve, U1min: float, U1max: float, U2min: float, U2max: float) -> None: ... + def Init( + self, + C1: Geom_Curve, + C2: Geom_Curve, + U1min: float, + U1max: float, + U2min: float, + U2max: float, + ) -> None: ... def IsParallel(self) -> bool: ... def LowerDistance(self) -> float: ... def LowerDistanceParameters(self) -> Tuple[float, float]: ... @@ -49,13 +64,33 @@ class GeomAPI_ExtremaCurveSurface: @overload def __init__(self, Curve: Geom_Curve, Surface: Geom_Surface) -> None: ... @overload - def __init__(self, Curve: Geom_Curve, Surface: Geom_Surface, Wmin: float, Wmax: float, Umin: float, Umax: float, Vmin: float, Vmax: float) -> None: ... + def __init__( + self, + Curve: Geom_Curve, + Surface: Geom_Surface, + Wmin: float, + Wmax: float, + Umin: float, + Umax: float, + Vmin: float, + Vmax: float, + ) -> None: ... def Distance(self, Index: int) -> float: ... def Extrema(self) -> Extrema_ExtCS: ... @overload def Init(self, Curve: Geom_Curve, Surface: Geom_Surface) -> None: ... @overload - def Init(self, Curve: Geom_Curve, Surface: Geom_Surface, Wmin: float, Wmax: float, Umin: float, Umax: float, Vmin: float, Vmax: float) -> None: ... + def Init( + self, + Curve: Geom_Curve, + Surface: Geom_Surface, + Wmin: float, + Wmax: float, + Umin: float, + Umax: float, + Vmin: float, + Vmax: float, + ) -> None: ... def IsParallel(self) -> bool: ... def LowerDistance(self) -> float: ... def LowerDistanceParameters(self) -> Tuple[float, float, float]: ... @@ -70,13 +105,37 @@ class GeomAPI_ExtremaSurfaceSurface: @overload def __init__(self, S1: Geom_Surface, S2: Geom_Surface) -> None: ... @overload - def __init__(self, S1: Geom_Surface, S2: Geom_Surface, U1min: float, U1max: float, V1min: float, V1max: float, U2min: float, U2max: float, V2min: float, V2max: float) -> None: ... + def __init__( + self, + S1: Geom_Surface, + S2: Geom_Surface, + U1min: float, + U1max: float, + V1min: float, + V1max: float, + U2min: float, + U2max: float, + V2min: float, + V2max: float, + ) -> None: ... def Distance(self, Index: int) -> float: ... def Extrema(self) -> Extrema_ExtSS: ... @overload def Init(self, S1: Geom_Surface, S2: Geom_Surface) -> None: ... @overload - def Init(self, S1: Geom_Surface, S2: Geom_Surface, U1min: float, U1max: float, V1min: float, V1max: float, U2min: float, U2max: float, V2min: float, V2max: float) -> None: ... + def Init( + self, + S1: Geom_Surface, + S2: Geom_Surface, + U1min: float, + U1max: float, + V1min: float, + V1max: float, + U2min: float, + U2max: float, + V2min: float, + V2max: float, + ) -> None: ... def IsParallel(self) -> bool: ... def LowerDistance(self) -> float: ... def LowerDistanceParameters(self) -> Tuple[float, float, float, float]: ... @@ -113,64 +172,223 @@ class GeomAPI_IntSS: class GeomAPI_Interpolate: @overload - def __init__(self, Points: TColgp_HArray1OfPnt, PeriodicFlag: bool, Tolerance: float) -> None: ... - @overload - def __init__(self, Points: TColgp_HArray1OfPnt, Parameters: TColStd_HArray1OfReal, PeriodicFlag: bool, Tolerance: float) -> None: ... + def __init__( + self, Points: TColgp_HArray1OfPnt, PeriodicFlag: bool, Tolerance: float + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_HArray1OfPnt, + Parameters: TColStd_HArray1OfReal, + PeriodicFlag: bool, + Tolerance: float, + ) -> None: ... def Curve(self) -> Geom_BSplineCurve: ... def IsDone(self) -> bool: ... @overload - def Load(self, InitialTangent: gp_Vec, FinalTangent: gp_Vec, Scale: Optional[bool] = True) -> None: ... + def Load( + self, InitialTangent: gp_Vec, FinalTangent: gp_Vec, Scale: Optional[bool] = True + ) -> None: ... @overload - def Load(self, Tangents: TColgp_Array1OfVec, TangentFlags: TColStd_HArray1OfBoolean, Scale: Optional[bool] = True) -> None: ... + def Load( + self, + Tangents: TColgp_Array1OfVec, + TangentFlags: TColStd_HArray1OfBoolean, + Scale: Optional[bool] = True, + ) -> None: ... def Perform(self) -> None: ... class GeomAPI_PointsToBSpline: @overload def __init__(self) -> None: ... @overload - def __init__(self, Points: TColgp_Array1OfPnt, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def __init__(self, Points: TColgp_Array1OfPnt, ParType: Approx_ParametrizationType, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def __init__(self, Points: TColgp_Array1OfPnt, Parameters: TColStd_Array1OfReal, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def __init__(self, Points: TColgp_Array1OfPnt, Weight1: float, Weight2: float, Weight3: float, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... + def __init__( + self, + Points: TColgp_Array1OfPnt, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt, + ParType: Approx_ParametrizationType, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt, + Parameters: TColStd_Array1OfReal, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt, + Weight1: float, + Weight2: float, + Weight3: float, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... def Curve(self) -> Geom_BSplineCurve: ... @overload - def Init(self, Points: TColgp_Array1OfPnt, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def Init(self, Points: TColgp_Array1OfPnt, ParType: Approx_ParametrizationType, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def Init(self, Points: TColgp_Array1OfPnt, Parameters: TColStd_Array1OfReal, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def Init(self, Points: TColgp_Array1OfPnt, Weight1: float, Weight2: float, Weight3: float, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... + def Init( + self, + Points: TColgp_Array1OfPnt, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt, + ParType: Approx_ParametrizationType, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt, + Parameters: TColStd_Array1OfReal, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt, + Weight1: float, + Weight2: float, + Weight3: float, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... def IsDone(self) -> bool: ... class GeomAPI_PointsToBSplineSurface: @overload def __init__(self) -> None: ... @overload - def __init__(self, Points: TColgp_Array2OfPnt, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def __init__(self, Points: TColgp_Array2OfPnt, ParType: Approx_ParametrizationType, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def __init__(self, Points: TColgp_Array2OfPnt, Weight1: float, Weight2: float, Weight3: float, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def __init__(self, ZPoints: TColStd_Array2OfReal, X0: float, dX: float, Y0: float, dY: float, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def Init(self, Points: TColgp_Array2OfPnt, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def Init(self, ZPoints: TColStd_Array2OfReal, X0: float, dX: float, Y0: float, dY: float, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def Init(self, Points: TColgp_Array2OfPnt, ParType: Approx_ParametrizationType, DegMin: Optional[int] = 3, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3, thePeriodic: Optional[bool] = False) -> None: ... - @overload - def Init(self, Points: TColgp_Array2OfPnt, Weight1: float, Weight2: float, Weight3: float, DegMax: Optional[int] = 8, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Tol3D: Optional[float] = 1.0e-3) -> None: ... - @overload - def Interpolate(self, Points: TColgp_Array2OfPnt, thePeriodic: Optional[bool] = False) -> None: ... - @overload - def Interpolate(self, Points: TColgp_Array2OfPnt, ParType: Approx_ParametrizationType, thePeriodic: Optional[bool] = False) -> None: ... - @overload - def Interpolate(self, ZPoints: TColStd_Array2OfReal, X0: float, dX: float, Y0: float, dY: float) -> None: ... + def __init__( + self, + Points: TColgp_Array2OfPnt, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array2OfPnt, + ParType: Approx_ParametrizationType, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array2OfPnt, + Weight1: float, + Weight2: float, + Weight3: float, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + ZPoints: TColStd_Array2OfReal, + X0: float, + dX: float, + Y0: float, + dY: float, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array2OfPnt, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + ZPoints: TColStd_Array2OfReal, + X0: float, + dX: float, + Y0: float, + dY: float, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array2OfPnt, + ParType: Approx_ParametrizationType, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + thePeriodic: Optional[bool] = False, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array2OfPnt, + Weight1: float, + Weight2: float, + Weight3: float, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Interpolate( + self, Points: TColgp_Array2OfPnt, thePeriodic: Optional[bool] = False + ) -> None: ... + @overload + def Interpolate( + self, + Points: TColgp_Array2OfPnt, + ParType: Approx_ParametrizationType, + thePeriodic: Optional[bool] = False, + ) -> None: ... + @overload + def Interpolate( + self, ZPoints: TColStd_Array2OfReal, X0: float, dX: float, Y0: float, dY: float + ) -> None: ... def IsDone(self) -> bool: ... def Surface(self) -> Geom_BSplineSurface: ... @@ -180,7 +398,9 @@ class GeomAPI_ProjectPointOnCurve: @overload def __init__(self, P: gp_Pnt, Curve: Geom_Curve) -> None: ... @overload - def __init__(self, P: gp_Pnt, Curve: Geom_Curve, Umin: float, Usup: float) -> None: ... + def __init__( + self, P: gp_Pnt, Curve: Geom_Curve, Umin: float, Usup: float + ) -> None: ... def Distance(self, Index: int) -> float: ... def Extrema(self) -> Extrema_ExtPC: ... @overload @@ -204,27 +424,104 @@ class GeomAPI_ProjectPointOnSurf: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, Surface: Geom_Surface, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def __init__(self, P: gp_Pnt, Surface: Geom_Surface, Tolerance: float, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def __init__(self, P: gp_Pnt, Surface: Geom_Surface, Umin: float, Usup: float, Vmin: float, Vsup: float, Tolerance: float, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def __init__(self, P: gp_Pnt, Surface: Geom_Surface, Umin: float, Usup: float, Vmin: float, Vsup: float, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... + def __init__( + self, + P: gp_Pnt, + Surface: Geom_Surface, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + Surface: Geom_Surface, + Tolerance: float, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + Surface: Geom_Surface, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Tolerance: float, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + Surface: Geom_Surface, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... def Distance(self, Index: int) -> float: ... def Extrema(self) -> Extrema_ExtPS: ... @overload - def Init(self, P: gp_Pnt, Surface: Geom_Surface, Tolerance: float, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def Init(self, P: gp_Pnt, Surface: Geom_Surface, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def Init(self, P: gp_Pnt, Surface: Geom_Surface, Umin: float, Usup: float, Vmin: float, Vsup: float, Tolerance: float, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def Init(self, P: gp_Pnt, Surface: Geom_Surface, Umin: float, Usup: float, Vmin: float, Vsup: float, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def Init(self, Surface: Geom_Surface, Umin: float, Usup: float, Vmin: float, Vsup: float, Tolerance: float, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... - @overload - def Init(self, Surface: Geom_Surface, Umin: float, Usup: float, Vmin: float, Vsup: float, Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad) -> None: ... + def Init( + self, + P: gp_Pnt, + Surface: Geom_Surface, + Tolerance: float, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def Init( + self, + P: gp_Pnt, + Surface: Geom_Surface, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def Init( + self, + P: gp_Pnt, + Surface: Geom_Surface, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Tolerance: float, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def Init( + self, + P: gp_Pnt, + Surface: Geom_Surface, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def Init( + self, + Surface: Geom_Surface, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Tolerance: float, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def Init( + self, + Surface: Geom_Surface, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Algo: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... def IsDone(self) -> bool: ... def LowerDistance(self) -> float: ... def LowerDistanceParameters(self) -> Tuple[float, float]: ... @@ -239,4 +536,3 @@ class GeomAPI_ProjectPointOnSurf: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomAbs.pyi b/src/SWIG_files/wrapper/GeomAbs.pyi index 6e15de0f1..a7dcd97df 100644 --- a/src/SWIG_files/wrapper/GeomAbs.pyi +++ b/src/SWIG_files/wrapper/GeomAbs.pyi @@ -4,7 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class GeomAbs_BSplKnotDistribution(IntEnum): GeomAbs_NonUniform: int = ... GeomAbs_Uniform: int = ... @@ -100,4 +99,3 @@ GeomAbs_OtherSurface = GeomAbs_SurfaceType.GeomAbs_OtherSurface # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomAdaptor.pyi b/src/SWIG_files/wrapper/GeomAdaptor.pyi index 28ba919fb..34fb7c8b4 100644 --- a/src/SWIG_files/wrapper/GeomAdaptor.pyi +++ b/src/SWIG_files/wrapper/GeomAdaptor.pyi @@ -9,12 +9,13 @@ from OCC.Core.gp import * from OCC.Core.GeomAbs import * from OCC.Core.TColStd import * - class geomadaptor: @staticmethod def MakeCurve(C: Adaptor3d_Curve) -> Geom_Curve: ... @staticmethod - def MakeSurface(theS: Adaptor3d_Surface, theTrimFlag: Optional[bool] = True) -> Geom_Surface: ... + def MakeSurface( + theS: Adaptor3d_Surface, theTrimFlag: Optional[bool] = True + ) -> Geom_Surface: ... class GeomAdaptor_Curve(Adaptor3d_Curve): @overload @@ -22,7 +23,9 @@ class GeomAdaptor_Curve(Adaptor3d_Curve): @overload def __init__(self, theCurve: Geom_Curve) -> None: ... @overload - def __init__(self, theCurve: Geom_Curve, theUFirst: float, theULast: float) -> None: ... + def __init__( + self, theCurve: Geom_Curve, theUFirst: float, theULast: float + ) -> None: ... def BSpline(self) -> Geom_BSplineCurve: ... def Bezier(self) -> Geom_BezierCurve: ... def Circle(self) -> gp_Circ: ... @@ -66,7 +69,16 @@ class GeomAdaptor_Surface(Adaptor3d_Surface): @overload def __init__(self, theSurf: Geom_Surface) -> None: ... @overload - def __init__(self, theSurf: Geom_Surface, theUFirst: float, theULast: float, theVFirst: float, theVLast: float, theTolU: Optional[float] = 0.0, theTolV: Optional[float] = 0.0) -> None: ... + def __init__( + self, + theSurf: Geom_Surface, + theUFirst: float, + theULast: float, + theVFirst: float, + theVLast: float, + theTolU: Optional[float] = 0.0, + theTolV: Optional[float] = 0.0, + ) -> None: ... def AxeOfRevolution(self) -> gp_Ax1: ... def BSpline(self) -> Geom_BSplineSurface: ... def BasisCurve(self) -> Adaptor3d_Curve: ... @@ -76,8 +88,32 @@ class GeomAdaptor_Surface(Adaptor3d_Surface): def Cylinder(self) -> gp_Cylinder: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... def Direction(self) -> gp_Dir: ... def FirstUParameter(self) -> float: ... @@ -94,7 +130,16 @@ class GeomAdaptor_Surface(Adaptor3d_Surface): @overload def Load(self, theSurf: Geom_Surface) -> None: ... @overload - def Load(self, theSurf: Geom_Surface, theUFirst: float, theULast: float, theVFirst: float, theVLast: float, theTolU: Optional[float] = 0.0, theTolV: Optional[float] = 0.0) -> None: ... + def Load( + self, + theSurf: Geom_Surface, + theUFirst: float, + theULast: float, + theVFirst: float, + theVLast: float, + theTolU: Optional[float] = 0.0, + theTolV: Optional[float] = 0.0, + ) -> None: ... def NbUIntervals(self, S: GeomAbs_Shape) -> int: ... def NbUKnots(self) -> int: ... def NbUPoles(self) -> int: ... @@ -221,4 +266,3 @@ class GeomAdaptor_SurfaceOfRevolution(GeomAdaptor_Surface): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomConvert.pyi b/src/SWIG_files/wrapper/GeomConvert.pyi index ba96923dc..c5c1d8400 100644 --- a/src/SWIG_files/wrapper/GeomConvert.pyi +++ b/src/SWIG_files/wrapper/GeomConvert.pyi @@ -14,7 +14,6 @@ from OCC.Core.gp import * from OCC.Core.math import * from OCC.Core.Geom2d import * - class GeomConvert_ConvType(IntEnum): GeomConvert_Target: int = ... GeomConvert_Simplest: int = ... @@ -27,48 +26,137 @@ GeomConvert_MinGap = GeomConvert_ConvType.GeomConvert_MinGap class geomconvert: @overload @staticmethod - def C0BSplineToArrayOfC1BSplineCurve(BS: Geom_BSplineCurve, tabBS: TColGeom_HArray1OfBSplineCurve, tolerance: float) -> None: ... + def C0BSplineToArrayOfC1BSplineCurve( + BS: Geom_BSplineCurve, tabBS: TColGeom_HArray1OfBSplineCurve, tolerance: float + ) -> None: ... @overload @staticmethod - def C0BSplineToArrayOfC1BSplineCurve(BS: Geom_BSplineCurve, tabBS: TColGeom_HArray1OfBSplineCurve, AngularTolerance: float, tolerance: float) -> None: ... + def C0BSplineToArrayOfC1BSplineCurve( + BS: Geom_BSplineCurve, + tabBS: TColGeom_HArray1OfBSplineCurve, + AngularTolerance: float, + tolerance: float, + ) -> None: ... @staticmethod - def C0BSplineToC1BSplineCurve(BS: Geom_BSplineCurve, tolerance: float, AngularTolerance: Optional[float] = 1.0e-7) -> None: ... + def C0BSplineToC1BSplineCurve( + BS: Geom_BSplineCurve, + tolerance: float, + AngularTolerance: Optional[float] = 1.0e-7, + ) -> None: ... @overload @staticmethod - def ConcatC1(ArrayOfCurves: TColGeom_Array1OfBSplineCurve, ArrayOfToler: TColStd_Array1OfReal, ArrayOfIndices: TColStd_HArray1OfInteger, ArrayOfConcatenated: TColGeom_HArray1OfBSplineCurve, ClosedTolerance: float) -> bool: ... + def ConcatC1( + ArrayOfCurves: TColGeom_Array1OfBSplineCurve, + ArrayOfToler: TColStd_Array1OfReal, + ArrayOfIndices: TColStd_HArray1OfInteger, + ArrayOfConcatenated: TColGeom_HArray1OfBSplineCurve, + ClosedTolerance: float, + ) -> bool: ... @overload @staticmethod - def ConcatC1(ArrayOfCurves: TColGeom_Array1OfBSplineCurve, ArrayOfToler: TColStd_Array1OfReal, ArrayOfIndices: TColStd_HArray1OfInteger, ArrayOfConcatenated: TColGeom_HArray1OfBSplineCurve, ClosedTolerance: float, AngularTolerance: float) -> bool: ... + def ConcatC1( + ArrayOfCurves: TColGeom_Array1OfBSplineCurve, + ArrayOfToler: TColStd_Array1OfReal, + ArrayOfIndices: TColStd_HArray1OfInteger, + ArrayOfConcatenated: TColGeom_HArray1OfBSplineCurve, + ClosedTolerance: float, + AngularTolerance: float, + ) -> bool: ... @staticmethod - def ConcatG1(ArrayOfCurves: TColGeom_Array1OfBSplineCurve, ArrayOfToler: TColStd_Array1OfReal, ArrayOfConcatenated: TColGeom_HArray1OfBSplineCurve, ClosedTolerance: float) -> bool: ... + def ConcatG1( + ArrayOfCurves: TColGeom_Array1OfBSplineCurve, + ArrayOfToler: TColStd_Array1OfReal, + ArrayOfConcatenated: TColGeom_HArray1OfBSplineCurve, + ClosedTolerance: float, + ) -> bool: ... @staticmethod - def CurveToBSplineCurve(C: Geom_Curve, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> Geom_BSplineCurve: ... + def CurveToBSplineCurve( + C: Geom_Curve, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> Geom_BSplineCurve: ... @overload @staticmethod - def SplitBSplineCurve(C: Geom_BSplineCurve, FromK1: int, ToK2: int, SameOrientation: Optional[bool] = True) -> Geom_BSplineCurve: ... + def SplitBSplineCurve( + C: Geom_BSplineCurve, + FromK1: int, + ToK2: int, + SameOrientation: Optional[bool] = True, + ) -> Geom_BSplineCurve: ... @overload @staticmethod - def SplitBSplineCurve(C: Geom_BSplineCurve, FromU1: float, ToU2: float, ParametricTolerance: float, SameOrientation: Optional[bool] = True) -> Geom_BSplineCurve: ... + def SplitBSplineCurve( + C: Geom_BSplineCurve, + FromU1: float, + ToU2: float, + ParametricTolerance: float, + SameOrientation: Optional[bool] = True, + ) -> Geom_BSplineCurve: ... @overload @staticmethod - def SplitBSplineSurface(S: Geom_BSplineSurface, FromUK1: int, ToUK2: int, FromVK1: int, ToVK2: int, SameUOrientation: Optional[bool] = True, SameVOrientation: Optional[bool] = True) -> Geom_BSplineSurface: ... + def SplitBSplineSurface( + S: Geom_BSplineSurface, + FromUK1: int, + ToUK2: int, + FromVK1: int, + ToVK2: int, + SameUOrientation: Optional[bool] = True, + SameVOrientation: Optional[bool] = True, + ) -> Geom_BSplineSurface: ... @overload @staticmethod - def SplitBSplineSurface(S: Geom_BSplineSurface, FromK1: int, ToK2: int, USplit: bool, SameOrientation: Optional[bool] = True) -> Geom_BSplineSurface: ... + def SplitBSplineSurface( + S: Geom_BSplineSurface, + FromK1: int, + ToK2: int, + USplit: bool, + SameOrientation: Optional[bool] = True, + ) -> Geom_BSplineSurface: ... @overload @staticmethod - def SplitBSplineSurface(S: Geom_BSplineSurface, FromU1: float, ToU2: float, FromV1: float, ToV2: float, ParametricTolerance: float, SameUOrientation: Optional[bool] = True, SameVOrientation: Optional[bool] = True) -> Geom_BSplineSurface: ... + def SplitBSplineSurface( + S: Geom_BSplineSurface, + FromU1: float, + ToU2: float, + FromV1: float, + ToV2: float, + ParametricTolerance: float, + SameUOrientation: Optional[bool] = True, + SameVOrientation: Optional[bool] = True, + ) -> Geom_BSplineSurface: ... @overload @staticmethod - def SplitBSplineSurface(S: Geom_BSplineSurface, FromParam1: float, ToParam2: float, USplit: bool, ParametricTolerance: float, SameOrientation: Optional[bool] = True) -> Geom_BSplineSurface: ... + def SplitBSplineSurface( + S: Geom_BSplineSurface, + FromParam1: float, + ToParam2: float, + USplit: bool, + ParametricTolerance: float, + SameOrientation: Optional[bool] = True, + ) -> Geom_BSplineSurface: ... @staticmethod def SurfaceToBSplineSurface(S: Geom_Surface) -> Geom_BSplineSurface: ... class GeomConvert_ApproxCurve: @overload - def __init__(self, Curve: Geom_Curve, Tol3d: float, Order: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> None: ... - @overload - def __init__(self, Curve: Adaptor3d_Curve, Tol3d: float, Order: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> None: ... + def __init__( + self, + Curve: Geom_Curve, + Tol3d: float, + Order: GeomAbs_Shape, + MaxSegments: int, + MaxDegree: int, + ) -> None: ... + @overload + def __init__( + self, + Curve: Adaptor3d_Curve, + Tol3d: float, + Order: GeomAbs_Shape, + MaxSegments: int, + MaxDegree: int, + ) -> None: ... def Curve(self) -> Geom_BSplineCurve: ... def Dump(self) -> str: ... def HasResult(self) -> bool: ... @@ -77,9 +165,29 @@ class GeomConvert_ApproxCurve: class GeomConvert_ApproxSurface: @overload - def __init__(self, Surf: Geom_Surface, Tol3d: float, UContinuity: GeomAbs_Shape, VContinuity: GeomAbs_Shape, MaxDegU: int, MaxDegV: int, MaxSegments: int, PrecisCode: int) -> None: ... - @overload - def __init__(self, Surf: Adaptor3d_Surface, Tol3d: float, UContinuity: GeomAbs_Shape, VContinuity: GeomAbs_Shape, MaxDegU: int, MaxDegV: int, MaxSegments: int, PrecisCode: int) -> None: ... + def __init__( + self, + Surf: Geom_Surface, + Tol3d: float, + UContinuity: GeomAbs_Shape, + VContinuity: GeomAbs_Shape, + MaxDegU: int, + MaxDegV: int, + MaxSegments: int, + PrecisCode: int, + ) -> None: ... + @overload + def __init__( + self, + Surf: Adaptor3d_Surface, + Tol3d: float, + UContinuity: GeomAbs_Shape, + VContinuity: GeomAbs_Shape, + MaxDegU: int, + MaxDegV: int, + MaxSegments: int, + PrecisCode: int, + ) -> None: ... def Dump(self) -> str: ... def HasResult(self) -> bool: ... def IsDone(self) -> bool: ... @@ -96,17 +204,30 @@ class GeomConvert_BSplineCurveToBezierCurve: @overload def __init__(self, BasisCurve: Geom_BSplineCurve) -> None: ... @overload - def __init__(self, BasisCurve: Geom_BSplineCurve, U1: float, U2: float, ParametricTolerance: float) -> None: ... + def __init__( + self, + BasisCurve: Geom_BSplineCurve, + U1: float, + U2: float, + ParametricTolerance: float, + ) -> None: ... def Arc(self, Index: int) -> Geom_BezierCurve: ... def Arcs(self, Curves: TColGeom_Array1OfBezierCurve) -> None: ... def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... def NbArcs(self) -> int: ... class GeomConvert_BSplineSurfaceKnotSplitting: - def __init__(self, BasisSurface: Geom_BSplineSurface, UContinuityRange: int, VContinuityRange: int) -> None: ... + def __init__( + self, + BasisSurface: Geom_BSplineSurface, + UContinuityRange: int, + VContinuityRange: int, + ) -> None: ... def NbUSplits(self) -> int: ... def NbVSplits(self) -> int: ... - def Splitting(self, USplit: TColStd_Array1OfInteger, VSplit: TColStd_Array1OfInteger) -> None: ... + def Splitting( + self, USplit: TColStd_Array1OfInteger, VSplit: TColStd_Array1OfInteger + ) -> None: ... def USplitValue(self, UIndex: int) -> int: ... def VSplitValue(self, VIndex: int) -> int: ... @@ -114,7 +235,15 @@ class GeomConvert_BSplineSurfaceToBezierSurface: @overload def __init__(self, BasisSurface: Geom_BSplineSurface) -> None: ... @overload - def __init__(self, BasisSurface: Geom_BSplineSurface, U1: float, U2: float, V1: float, V2: float, ParametricTolerance: float) -> None: ... + def __init__( + self, + BasisSurface: Geom_BSplineSurface, + U1: float, + U2: float, + V1: float, + V2: float, + ParametricTolerance: float, + ) -> None: ... def NbUPatches(self) -> int: ... def NbVPatches(self) -> int: ... def Patch(self, UIndex: int, VIndex: int) -> Geom_BezierSurface: ... @@ -126,9 +255,22 @@ class GeomConvert_CompBezierSurfacesToBSplineSurface: @overload def __init__(self, Beziers: TColGeom_Array2OfBezierSurface) -> None: ... @overload - def __init__(self, Beziers: TColGeom_Array2OfBezierSurface, Tolerance: float, RemoveKnots: Optional[bool] = True) -> None: ... - @overload - def __init__(self, Beziers: TColGeom_Array2OfBezierSurface, UKnots: TColStd_Array1OfReal, VKnots: TColStd_Array1OfReal, UContinuity: Optional[GeomAbs_Shape] = GeomAbs_C0, VContinuity: Optional[GeomAbs_Shape] = GeomAbs_C0, Tolerance: Optional[float] = 1.0e-4) -> None: ... + def __init__( + self, + Beziers: TColGeom_Array2OfBezierSurface, + Tolerance: float, + RemoveKnots: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + Beziers: TColGeom_Array2OfBezierSurface, + UKnots: TColStd_Array1OfReal, + VKnots: TColStd_Array1OfReal, + UContinuity: Optional[GeomAbs_Shape] = GeomAbs_C0, + VContinuity: Optional[GeomAbs_Shape] = GeomAbs_C0, + Tolerance: Optional[float] = 1.0e-4, + ) -> None: ... def IsDone(self) -> bool: ... def NbUKnots(self) -> int: ... def NbUPoles(self) -> int: ... @@ -144,10 +286,28 @@ class GeomConvert_CompBezierSurfacesToBSplineSurface: class GeomConvert_CompCurveToBSplineCurve: @overload - def __init__(self, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> None: ... - @overload - def __init__(self, BasisCurve: Geom_BoundedCurve, Parameterisation: Optional[Convert_ParameterisationType] = Convert_TgtThetaOver2) -> None: ... - def Add(self, NewCurve: Geom_BoundedCurve, Tolerance: float, After: Optional[bool] = False, WithRatio: Optional[bool] = True, MinM: Optional[int] = 0) -> bool: ... + def __init__( + self, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... + @overload + def __init__( + self, + BasisCurve: Geom_BoundedCurve, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... + def Add( + self, + NewCurve: Geom_BoundedCurve, + Tolerance: float, + After: Optional[bool] = False, + WithRatio: Optional[bool] = True, + MinM: Optional[int] = 0, + ) -> bool: ... def BSplineCurve(self) -> Geom_BSplineCurve: ... class GeomConvert_CurveToAnaCurve: @@ -156,14 +316,29 @@ class GeomConvert_CurveToAnaCurve: @overload def __init__(self, C: Geom_Curve) -> None: ... @staticmethod - def ComputeCircle(curve: Geom_Curve, tolerance: float, c1: float, c2: float) -> Tuple[Geom_Curve, float, float, float]: ... + def ComputeCircle( + curve: Geom_Curve, tolerance: float, c1: float, c2: float + ) -> Tuple[Geom_Curve, float, float, float]: ... @staticmethod - def ComputeCurve(curve: Geom_Curve, tolerance: float, c1: float, c2: float, theCurvType: Optional[GeomConvert_ConvType] = GeomConvert_MinGap, theTarget: Optional[GeomAbs_CurveType] = GeomAbs_Line) -> Tuple[Geom_Curve, float, float, float]: ... + def ComputeCurve( + curve: Geom_Curve, + tolerance: float, + c1: float, + c2: float, + theCurvType: Optional[GeomConvert_ConvType] = GeomConvert_MinGap, + theTarget: Optional[GeomAbs_CurveType] = GeomAbs_Line, + ) -> Tuple[Geom_Curve, float, float, float]: ... @staticmethod - def ComputeEllipse(curve: Geom_Curve, tolerance: float, c1: float, c2: float) -> Tuple[Geom_Curve, float, float, float]: ... + def ComputeEllipse( + curve: Geom_Curve, tolerance: float, c1: float, c2: float + ) -> Tuple[Geom_Curve, float, float, float]: ... @staticmethod - def ComputeLine(curve: Geom_Curve, tolerance: float, c1: float, c2: float) -> Tuple[Geom_Line, float, float, float]: ... - def ConvertToAnalytical(self, theTol: float, theResultCurve: Geom_Curve, F: float, L: float) -> Tuple[bool, float, float]: ... + def ComputeLine( + curve: Geom_Curve, tolerance: float, c1: float, c2: float + ) -> Tuple[Geom_Line, float, float, float]: ... + def ConvertToAnalytical( + self, theTol: float, theResultCurve: Geom_Curve, F: float, L: float + ) -> Tuple[bool, float, float]: ... def Gap(self) -> float: ... @staticmethod def GetCircle(Circ: gp_Circ, P0: gp_Pnt, P1: gp_Pnt, P2: gp_Pnt) -> bool: ... @@ -173,7 +348,9 @@ class GeomConvert_CurveToAnaCurve: def GetTarget(self) -> GeomAbs_CurveType: ... def Init(self, C: Geom_Curve) -> None: ... @staticmethod - def IsLinear(aPoints: TColgp_Array1OfPnt, tolerance: float) -> Tuple[bool, float]: ... + def IsLinear( + aPoints: TColgp_Array1OfPnt, tolerance: float + ) -> Tuple[bool, float]: ... def SetConvType(self, theConvType: GeomConvert_ConvType) -> None: ... def SetTarget(self, theTarget: GeomAbs_CurveType) -> None: ... @@ -218,25 +395,40 @@ class GeomConvert_SurfToAnaSurf: @overload def ConvertToAnalytical(self, InitialToler: float) -> Geom_Surface: ... @overload - def ConvertToAnalytical(self, InitialToler: float, Umin: float, Umax: float, Vmin: float, Vmax: float) -> Geom_Surface: ... + def ConvertToAnalytical( + self, InitialToler: float, Umin: float, Umax: float, Vmin: float, Vmax: float + ) -> Geom_Surface: ... def Gap(self) -> float: ... def Init(self, S: Geom_Surface) -> None: ... @staticmethod def IsCanonical(S: Geom_Surface) -> bool: ... @staticmethod def IsSame(S1: Geom_Surface, S2: Geom_Surface, tol: float) -> bool: ... - def SetConvType(self, theConvType: Optional[GeomConvert_ConvType] = GeomConvert_Simplest) -> None: ... - def SetTarget(self, theSurfType: Optional[GeomAbs_SurfaceType] = GeomAbs_Plane) -> None: ... + def SetConvType( + self, theConvType: Optional[GeomConvert_ConvType] = GeomConvert_Simplest + ) -> None: ... + def SetTarget( + self, theSurfType: Optional[GeomAbs_SurfaceType] = GeomAbs_Plane + ) -> None: ... class GeomConvert_Units: @staticmethod - def DegreeToRadian(theCurve: Geom2d_Curve, theSurface: Geom_Surface, theLengthFactor: float, theFactorRadianDegree: float) -> Geom2d_Curve: ... + def DegreeToRadian( + theCurve: Geom2d_Curve, + theSurface: Geom_Surface, + theLengthFactor: float, + theFactorRadianDegree: float, + ) -> Geom2d_Curve: ... @staticmethod def MirrorPCurve(theCurve: Geom2d_Curve) -> Geom2d_Curve: ... @staticmethod - def RadianToDegree(theCurve: Geom2d_Curve, theSurface: Geom_Surface, theLengthFactor: float, theFactorRadianDegree: float) -> Geom2d_Curve: ... + def RadianToDegree( + theCurve: Geom2d_Curve, + theSurface: Geom_Surface, + theLengthFactor: float, + theFactorRadianDegree: float, + ) -> Geom2d_Curve: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomEvaluator.pyi b/src/SWIG_files/wrapper/GeomEvaluator.pyi index 62c99ef40..e68387dde 100644 --- a/src/SWIG_files/wrapper/GeomEvaluator.pyi +++ b/src/SWIG_files/wrapper/GeomEvaluator.pyi @@ -8,32 +8,69 @@ from OCC.Core.Geom import * from OCC.Core.GeomAdaptor import * from OCC.Core.Adaptor3d import * - class GeomEvaluator_Curve(Standard_Transient): def D0(self, theU: float, theValue: gp_Pnt) -> None: ... def D1(self, theU: float, theValue: gp_Pnt, theD1: gp_Vec) -> None: ... - def D2(self, theU: float, theValue: gp_Pnt, theD1: gp_Vec, theD2: gp_Vec) -> None: ... - def D3(self, theU: float, theValue: gp_Pnt, theD1: gp_Vec, theD2: gp_Vec, theD3: gp_Vec) -> None: ... + def D2( + self, theU: float, theValue: gp_Pnt, theD1: gp_Vec, theD2: gp_Vec + ) -> None: ... + def D3( + self, theU: float, theValue: gp_Pnt, theD1: gp_Vec, theD2: gp_Vec, theD3: gp_Vec + ) -> None: ... def DN(self, theU: float, theDerU: int) -> gp_Vec: ... def ShallowCopy(self) -> GeomEvaluator_Curve: ... class GeomEvaluator_Surface(Standard_Transient): def D0(self, theU: float, theV: float, theValue: gp_Pnt) -> None: ... - def D1(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec) -> None: ... - def D2(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec) -> None: ... - def D3(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec, theD3U: gp_Vec, theD3V: gp_Vec, theD3UUV: gp_Vec, theD3UVV: gp_Vec) -> None: ... + def D1( + self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec + ) -> None: ... + def D2( + self, + theU: float, + theV: float, + theValue: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + ) -> None: ... + def D3( + self, + theU: float, + theV: float, + theValue: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + theD3U: gp_Vec, + theD3V: gp_Vec, + theD3UUV: gp_Vec, + theD3UVV: gp_Vec, + ) -> None: ... def DN(self, theU: float, theV: float, theDerU: int, theDerV: int) -> gp_Vec: ... def ShallowCopy(self) -> GeomEvaluator_Surface: ... class GeomEvaluator_OffsetCurve(GeomEvaluator_Curve): @overload - def __init__(self, theBase: Geom_Curve, theOffset: float, theDirection: gp_Dir) -> None: ... + def __init__( + self, theBase: Geom_Curve, theOffset: float, theDirection: gp_Dir + ) -> None: ... @overload - def __init__(self, theBase: GeomAdaptor_Curve, theOffset: float, theDirection: gp_Dir) -> None: ... + def __init__( + self, theBase: GeomAdaptor_Curve, theOffset: float, theDirection: gp_Dir + ) -> None: ... def D0(self, theU: float, theValue: gp_Pnt) -> None: ... def D1(self, theU: float, theValue: gp_Pnt, theD1: gp_Vec) -> None: ... - def D2(self, theU: float, theValue: gp_Pnt, theD1: gp_Vec, theD2: gp_Vec) -> None: ... - def D3(self, theU: float, theValue: gp_Pnt, theD1: gp_Vec, theD2: gp_Vec, theD3: gp_Vec) -> None: ... + def D2( + self, theU: float, theValue: gp_Pnt, theD1: gp_Vec, theD2: gp_Vec + ) -> None: ... + def D3( + self, theU: float, theValue: gp_Pnt, theD1: gp_Vec, theD2: gp_Vec, theD3: gp_Vec + ) -> None: ... def DN(self, theU: float, theDeriv: int) -> gp_Vec: ... def SetOffsetDirection(self, theDirection: gp_Dir) -> None: ... def SetOffsetValue(self, theOffset: float) -> None: ... @@ -41,13 +78,49 @@ class GeomEvaluator_OffsetCurve(GeomEvaluator_Curve): class GeomEvaluator_OffsetSurface(GeomEvaluator_Surface): @overload - def __init__(self, theBase: Geom_Surface, theOffset: float, theOscSurf: Optional[Geom_OsculatingSurface] = Geom_OsculatingSurface()) -> None: ... + def __init__( + self, + theBase: Geom_Surface, + theOffset: float, + theOscSurf: Optional[Geom_OsculatingSurface] = Geom_OsculatingSurface(), + ) -> None: ... @overload - def __init__(self, theBase: GeomAdaptor_Surface, theOffset: float, theOscSurf: Optional[Geom_OsculatingSurface] = Geom_OsculatingSurface()) -> None: ... + def __init__( + self, + theBase: GeomAdaptor_Surface, + theOffset: float, + theOscSurf: Optional[Geom_OsculatingSurface] = Geom_OsculatingSurface(), + ) -> None: ... def D0(self, theU: float, theV: float, theValue: gp_Pnt) -> None: ... - def D1(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec) -> None: ... - def D2(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec) -> None: ... - def D3(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec, theD3U: gp_Vec, theD3V: gp_Vec, theD3UUV: gp_Vec, theD3UVV: gp_Vec) -> None: ... + def D1( + self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec + ) -> None: ... + def D2( + self, + theU: float, + theV: float, + theValue: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + ) -> None: ... + def D3( + self, + theU: float, + theV: float, + theValue: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + theD3U: gp_Vec, + theD3V: gp_Vec, + theD3UUV: gp_Vec, + theD3UVV: gp_Vec, + ) -> None: ... def DN(self, theU: float, theV: float, theDerU: int, theDerV: int) -> gp_Vec: ... def SetOffsetValue(self, theOffset: float) -> None: ... def ShallowCopy(self) -> GeomEvaluator_Surface: ... @@ -58,22 +131,78 @@ class GeomEvaluator_SurfaceOfExtrusion(GeomEvaluator_Surface): @overload def __init__(self, theBase: Adaptor3d_Curve, theExtrusionDir: gp_Dir) -> None: ... def D0(self, theU: float, theV: float, theValue: gp_Pnt) -> None: ... - def D1(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec) -> None: ... - def D2(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec) -> None: ... - def D3(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec, theD3U: gp_Vec, theD3V: gp_Vec, theD3UUV: gp_Vec, theD3UVV: gp_Vec) -> None: ... + def D1( + self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec + ) -> None: ... + def D2( + self, + theU: float, + theV: float, + theValue: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + ) -> None: ... + def D3( + self, + theU: float, + theV: float, + theValue: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + theD3U: gp_Vec, + theD3V: gp_Vec, + theD3UUV: gp_Vec, + theD3UVV: gp_Vec, + ) -> None: ... def DN(self, theU: float, theV: float, theDerU: int, theDerV: int) -> gp_Vec: ... def SetDirection(self, theDirection: gp_Dir) -> None: ... def ShallowCopy(self) -> GeomEvaluator_Surface: ... class GeomEvaluator_SurfaceOfRevolution(GeomEvaluator_Surface): @overload - def __init__(self, theBase: Geom_Curve, theRevolDir: gp_Dir, theRevolLoc: gp_Pnt) -> None: ... + def __init__( + self, theBase: Geom_Curve, theRevolDir: gp_Dir, theRevolLoc: gp_Pnt + ) -> None: ... @overload - def __init__(self, theBase: Adaptor3d_Curve, theRevolDir: gp_Dir, theRevolLoc: gp_Pnt) -> None: ... + def __init__( + self, theBase: Adaptor3d_Curve, theRevolDir: gp_Dir, theRevolLoc: gp_Pnt + ) -> None: ... def D0(self, theU: float, theV: float, theValue: gp_Pnt) -> None: ... - def D1(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec) -> None: ... - def D2(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec) -> None: ... - def D3(self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec, theD3U: gp_Vec, theD3V: gp_Vec, theD3UUV: gp_Vec, theD3UVV: gp_Vec) -> None: ... + def D1( + self, theU: float, theV: float, theValue: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec + ) -> None: ... + def D2( + self, + theU: float, + theV: float, + theValue: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + ) -> None: ... + def D3( + self, + theU: float, + theV: float, + theValue: gp_Pnt, + theD1U: gp_Vec, + theD1V: gp_Vec, + theD2U: gp_Vec, + theD2V: gp_Vec, + theD2UV: gp_Vec, + theD3U: gp_Vec, + theD3V: gp_Vec, + theD3UUV: gp_Vec, + theD3UVV: gp_Vec, + ) -> None: ... def DN(self, theU: float, theV: float, theDerU: int, theDerV: int) -> gp_Vec: ... def SetAxis(self, theAxis: gp_Ax1) -> None: ... def SetDirection(self, theDirection: gp_Dir) -> None: ... @@ -83,4 +212,3 @@ class GeomEvaluator_SurfaceOfRevolution(GeomEvaluator_Surface): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomFill.pyi b/src/SWIG_files/wrapper/GeomFill.pyi index 06a03c547..c852e8f04 100644 --- a/src/SWIG_files/wrapper/GeomFill.pyi +++ b/src/SWIG_files/wrapper/GeomFill.pyi @@ -17,7 +17,6 @@ from OCC.Core.math import * from OCC.Core.Geom2d import * from OCC.Core.TColGeom import * - class GeomFill_Array1OfLocationLaw: @overload def __init__(self) -> None: ... @@ -67,34 +66,46 @@ class GeomFill_Array1OfSectionLaw: def SetValue(self, theIndex: int, theValue: False) -> None: ... class GeomFill_SequenceOfAx2: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: gp_Ax2) -> gp_Ax2: ... def Clear(self) -> None: ... def First(self) -> gp_Ax2: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Ax2: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Ax2) -> gp_Ax2: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Ax2) -> gp_Ax2: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Ax2: ... def SetValue(self, theIndex: int, theValue: gp_Ax2) -> None: ... - -class GeomFill_SequenceOfTrsf: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Ax2: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class GeomFill_SequenceOfTrsf: + def Assign(self, theItem: gp_Trsf) -> gp_Trsf: ... def Clear(self) -> None: ... def First(self) -> gp_Trsf: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Trsf: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Trsf) -> gp_Trsf: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Trsf) -> gp_Trsf: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Trsf: ... def SetValue(self, theIndex: int, theValue: gp_Trsf) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Trsf: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class GeomFill_ApproxStyle(IntEnum): GeomFill_Section: int = ... @@ -149,23 +160,100 @@ GeomFill_IsDiscreteTrihedron = GeomFill_Trihedron.GeomFill_IsDiscreteTrihedron class geomfill: @overload @staticmethod - def GetCircle(TConv: Convert_ParameterisationType, ns1: gp_Vec, ns2: gp_Vec, nplan: gp_Vec, pt1: gp_Pnt, pt2: gp_Pnt, Rayon: float, Center: gp_Pnt, Poles: TColgp_Array1OfPnt, Weigths: TColStd_Array1OfReal) -> None: ... + def GetCircle( + TConv: Convert_ParameterisationType, + ns1: gp_Vec, + ns2: gp_Vec, + nplan: gp_Vec, + pt1: gp_Pnt, + pt2: gp_Pnt, + Rayon: float, + Center: gp_Pnt, + Poles: TColgp_Array1OfPnt, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod - def GetCircle(TConv: Convert_ParameterisationType, ns1: gp_Vec, ns2: gp_Vec, dn1w: gp_Vec, dn2w: gp_Vec, nplan: gp_Vec, dnplan: gp_Vec, pts1: gp_Pnt, pts2: gp_Pnt, tang1: gp_Vec, tang2: gp_Vec, Rayon: float, DRayon: float, Center: gp_Pnt, DCenter: gp_Vec, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... + def GetCircle( + TConv: Convert_ParameterisationType, + ns1: gp_Vec, + ns2: gp_Vec, + dn1w: gp_Vec, + dn2w: gp_Vec, + nplan: gp_Vec, + dnplan: gp_Vec, + pts1: gp_Pnt, + pts2: gp_Pnt, + tang1: gp_Vec, + tang2: gp_Vec, + Rayon: float, + DRayon: float, + Center: gp_Pnt, + DCenter: gp_Vec, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... @overload @staticmethod - def GetCircle(TConv: Convert_ParameterisationType, ns1: gp_Vec, ns2: gp_Vec, dn1w: gp_Vec, dn2w: gp_Vec, d2n1w: gp_Vec, d2n2w: gp_Vec, nplan: gp_Vec, dnplan: gp_Vec, d2nplan: gp_Vec, pts1: gp_Pnt, pts2: gp_Pnt, tang1: gp_Vec, tang2: gp_Vec, Dtang1: gp_Vec, Dtang2: gp_Vec, Rayon: float, DRayon: float, D2Rayon: float, Center: gp_Pnt, DCenter: gp_Vec, D2Center: gp_Vec, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def GetCircle( + TConv: Convert_ParameterisationType, + ns1: gp_Vec, + ns2: gp_Vec, + dn1w: gp_Vec, + dn2w: gp_Vec, + d2n1w: gp_Vec, + d2n2w: gp_Vec, + nplan: gp_Vec, + dnplan: gp_Vec, + d2nplan: gp_Vec, + pts1: gp_Pnt, + pts2: gp_Pnt, + tang1: gp_Vec, + tang2: gp_Vec, + Dtang1: gp_Vec, + Dtang2: gp_Vec, + Rayon: float, + DRayon: float, + D2Rayon: float, + Center: gp_Pnt, + DCenter: gp_Vec, + D2Center: gp_Vec, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... @staticmethod - def GetMinimalWeights(TConv: Convert_ParameterisationType, AngleMin: float, AngleMax: float, Weigths: TColStd_Array1OfReal) -> None: ... + def GetMinimalWeights( + TConv: Convert_ParameterisationType, + AngleMin: float, + AngleMax: float, + Weigths: TColStd_Array1OfReal, + ) -> None: ... @staticmethod - def GetShape(MaxAng: float) -> Tuple[int, int, int, Convert_ParameterisationType]: ... + def GetShape( + MaxAng: float, + ) -> Tuple[int, int, int, Convert_ParameterisationType]: ... @staticmethod - def GetTolerance(TConv: Convert_ParameterisationType, AngleMin: float, Radius: float, AngularTol: float, SpatialTol: float) -> float: ... + def GetTolerance( + TConv: Convert_ParameterisationType, + AngleMin: float, + Radius: float, + AngularTol: float, + SpatialTol: float, + ) -> float: ... @staticmethod - def Knots(TypeConv: Convert_ParameterisationType, TKnots: TColStd_Array1OfReal) -> None: ... + def Knots( + TypeConv: Convert_ParameterisationType, TKnots: TColStd_Array1OfReal + ) -> None: ... @staticmethod - def Mults(TypeConv: Convert_ParameterisationType, TMults: TColStd_Array1OfInteger) -> None: ... + def Mults( + TypeConv: Convert_ParameterisationType, TMults: TColStd_Array1OfInteger + ) -> None: ... @staticmethod def Surface(Curve1: Geom_Curve, Curve2: Geom_Curve) -> Geom_Surface: ... @@ -173,24 +261,55 @@ class GeomFill_AppSurf(AppBlend_Approx): @overload def __init__(self) -> None: ... @overload - def __init__(self, Degmin: int, Degmax: int, Tol3d: float, Tol2d: float, NbIt: int, KnownParameters: Optional[bool] = False) -> None: ... + def __init__( + self, + Degmin: int, + Degmax: int, + Tol3d: float, + Tol2d: float, + NbIt: int, + KnownParameters: Optional[bool] = False, + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def CriteriumWeight(self) -> Tuple[float, float, float]: ... - def Curve2d(self, Index: int, TPoles: TColgp_Array1OfPnt2d, TKnots: TColStd_Array1OfReal, TMults: TColStd_Array1OfInteger) -> None: ... + def Curve2d( + self, + Index: int, + TPoles: TColgp_Array1OfPnt2d, + TKnots: TColStd_Array1OfReal, + TMults: TColStd_Array1OfInteger, + ) -> None: ... def Curve2dPoles(self, Index: int) -> TColgp_Array1OfPnt2d: ... def Curves2dDegree(self) -> int: ... def Curves2dKnots(self) -> TColStd_Array1OfReal: ... def Curves2dMults(self) -> TColStd_Array1OfInteger: ... def Curves2dShape(self) -> Tuple[int, int, int]: ... - def Init(self, Degmin: int, Degmax: int, Tol3d: float, Tol2d: float, NbIt: int, KnownParameters: Optional[bool] = False) -> None: ... + def Init( + self, + Degmin: int, + Degmax: int, + Tol3d: float, + Tol2d: float, + NbIt: int, + KnownParameters: Optional[bool] = False, + ) -> None: ... def IsDone(self) -> bool: ... def NbCurves2d(self) -> int: ... def ParType(self) -> Approx_ParametrizationType: ... @overload - def Perform(self, Lin: GeomFill_Line, SecGen: GeomFill_SectionGenerator, SpApprox: Optional[bool] = False) -> None: ... - @overload - def Perform(self, Lin: GeomFill_Line, SecGen: GeomFill_SectionGenerator, NbMaxP: int) -> None: ... - def PerformSmoothing(self, Lin: GeomFill_Line, SecGen: GeomFill_SectionGenerator) -> None: ... + def Perform( + self, + Lin: GeomFill_Line, + SecGen: GeomFill_SectionGenerator, + SpApprox: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, Lin: GeomFill_Line, SecGen: GeomFill_SectionGenerator, NbMaxP: int + ) -> None: ... + def PerformSmoothing( + self, Lin: GeomFill_Line, SecGen: GeomFill_SectionGenerator + ) -> None: ... def SetContinuity(self, C: GeomAbs_Shape) -> None: ... def SetCriteriumWeight(self, W1: float, W2: float, W3: float) -> None: ... def SetParType(self, ParType: Approx_ParametrizationType) -> None: ... @@ -201,7 +320,15 @@ class GeomFill_AppSurf(AppBlend_Approx): def SurfVKnots(self) -> TColStd_Array1OfReal: ... def SurfVMults(self) -> TColStd_Array1OfInteger: ... def SurfWeights(self) -> TColStd_Array2OfReal: ... - def Surface(self, TPoles: TColgp_Array2OfPnt, TWeights: TColStd_Array2OfReal, TUKnots: TColStd_Array1OfReal, TVKnots: TColStd_Array1OfReal, TUMults: TColStd_Array1OfInteger, TVMults: TColStd_Array1OfInteger) -> None: ... + def Surface( + self, + TPoles: TColgp_Array2OfPnt, + TWeights: TColStd_Array2OfReal, + TUKnots: TColStd_Array1OfReal, + TVKnots: TColStd_Array1OfReal, + TUMults: TColStd_Array1OfInteger, + TVMults: TColStd_Array1OfInteger, + ) -> None: ... def TolCurveOnSurf(self, Index: int) -> float: ... def TolReached(self) -> Tuple[float, float]: ... def UDegree(self) -> int: ... @@ -211,24 +338,55 @@ class GeomFill_AppSweep(AppBlend_Approx): @overload def __init__(self) -> None: ... @overload - def __init__(self, Degmin: int, Degmax: int, Tol3d: float, Tol2d: float, NbIt: int, KnownParameters: Optional[bool] = False) -> None: ... + def __init__( + self, + Degmin: int, + Degmax: int, + Tol3d: float, + Tol2d: float, + NbIt: int, + KnownParameters: Optional[bool] = False, + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def CriteriumWeight(self) -> Tuple[float, float, float]: ... - def Curve2d(self, Index: int, TPoles: TColgp_Array1OfPnt2d, TKnots: TColStd_Array1OfReal, TMults: TColStd_Array1OfInteger) -> None: ... + def Curve2d( + self, + Index: int, + TPoles: TColgp_Array1OfPnt2d, + TKnots: TColStd_Array1OfReal, + TMults: TColStd_Array1OfInteger, + ) -> None: ... def Curve2dPoles(self, Index: int) -> TColgp_Array1OfPnt2d: ... def Curves2dDegree(self) -> int: ... def Curves2dKnots(self) -> TColStd_Array1OfReal: ... def Curves2dMults(self) -> TColStd_Array1OfInteger: ... def Curves2dShape(self) -> Tuple[int, int, int]: ... - def Init(self, Degmin: int, Degmax: int, Tol3d: float, Tol2d: float, NbIt: int, KnownParameters: Optional[bool] = False) -> None: ... + def Init( + self, + Degmin: int, + Degmax: int, + Tol3d: float, + Tol2d: float, + NbIt: int, + KnownParameters: Optional[bool] = False, + ) -> None: ... def IsDone(self) -> bool: ... def NbCurves2d(self) -> int: ... def ParType(self) -> Approx_ParametrizationType: ... @overload - def Perform(self, Lin: GeomFill_Line, SecGen: GeomFill_SweepSectionGenerator, SpApprox: Optional[bool] = False) -> None: ... - @overload - def Perform(self, Lin: GeomFill_Line, SecGen: GeomFill_SweepSectionGenerator, NbMaxP: int) -> None: ... - def PerformSmoothing(self, Lin: GeomFill_Line, SecGen: GeomFill_SweepSectionGenerator) -> None: ... + def Perform( + self, + Lin: GeomFill_Line, + SecGen: GeomFill_SweepSectionGenerator, + SpApprox: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, Lin: GeomFill_Line, SecGen: GeomFill_SweepSectionGenerator, NbMaxP: int + ) -> None: ... + def PerformSmoothing( + self, Lin: GeomFill_Line, SecGen: GeomFill_SweepSectionGenerator + ) -> None: ... def SetContinuity(self, C: GeomAbs_Shape) -> None: ... def SetCriteriumWeight(self, W1: float, W2: float, W3: float) -> None: ... def SetParType(self, ParType: Approx_ParametrizationType) -> None: ... @@ -239,7 +397,15 @@ class GeomFill_AppSweep(AppBlend_Approx): def SurfVKnots(self) -> TColStd_Array1OfReal: ... def SurfVMults(self) -> TColStd_Array1OfInteger: ... def SurfWeights(self) -> TColStd_Array2OfReal: ... - def Surface(self, TPoles: TColgp_Array2OfPnt, TWeights: TColStd_Array2OfReal, TUKnots: TColStd_Array1OfReal, TVKnots: TColStd_Array1OfReal, TUMults: TColStd_Array1OfInteger, TVMults: TColStd_Array1OfInteger) -> None: ... + def Surface( + self, + TPoles: TColgp_Array2OfPnt, + TWeights: TColStd_Array2OfReal, + TUKnots: TColStd_Array1OfReal, + TVKnots: TColStd_Array1OfReal, + TUMults: TColStd_Array1OfInteger, + TVMults: TColStd_Array1OfInteger, + ) -> None: ... def TolCurveOnSurf(self, Index: int) -> float: ... def TolReached(self) -> Tuple[float, float]: ... def UDegree(self) -> int: ... @@ -249,34 +415,94 @@ class GeomFill_BSplineCurves: @overload def __init__(self) -> None: ... @overload - def __init__(self, C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, C3: Geom_BSplineCurve, C4: Geom_BSplineCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def __init__(self, C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, C3: Geom_BSplineCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def __init__(self, C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def Init(self, C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, C3: Geom_BSplineCurve, C4: Geom_BSplineCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def Init(self, C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, C3: Geom_BSplineCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def Init(self, C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, Type: GeomFill_FillingStyle) -> None: ... + def __init__( + self, + C1: Geom_BSplineCurve, + C2: Geom_BSplineCurve, + C3: Geom_BSplineCurve, + C4: Geom_BSplineCurve, + Type: GeomFill_FillingStyle, + ) -> None: ... + @overload + def __init__( + self, + C1: Geom_BSplineCurve, + C2: Geom_BSplineCurve, + C3: Geom_BSplineCurve, + Type: GeomFill_FillingStyle, + ) -> None: ... + @overload + def __init__( + self, C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, Type: GeomFill_FillingStyle + ) -> None: ... + @overload + def Init( + self, + C1: Geom_BSplineCurve, + C2: Geom_BSplineCurve, + C3: Geom_BSplineCurve, + C4: Geom_BSplineCurve, + Type: GeomFill_FillingStyle, + ) -> None: ... + @overload + def Init( + self, + C1: Geom_BSplineCurve, + C2: Geom_BSplineCurve, + C3: Geom_BSplineCurve, + Type: GeomFill_FillingStyle, + ) -> None: ... + @overload + def Init( + self, C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, Type: GeomFill_FillingStyle + ) -> None: ... def Surface(self) -> Geom_BSplineSurface: ... class GeomFill_BezierCurves: @overload def __init__(self) -> None: ... @overload - def __init__(self, C1: Geom_BezierCurve, C2: Geom_BezierCurve, C3: Geom_BezierCurve, C4: Geom_BezierCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def __init__(self, C1: Geom_BezierCurve, C2: Geom_BezierCurve, C3: Geom_BezierCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def __init__(self, C1: Geom_BezierCurve, C2: Geom_BezierCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def Init(self, C1: Geom_BezierCurve, C2: Geom_BezierCurve, C3: Geom_BezierCurve, C4: Geom_BezierCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def Init(self, C1: Geom_BezierCurve, C2: Geom_BezierCurve, C3: Geom_BezierCurve, Type: GeomFill_FillingStyle) -> None: ... - @overload - def Init(self, C1: Geom_BezierCurve, C2: Geom_BezierCurve, Type: GeomFill_FillingStyle) -> None: ... + def __init__( + self, + C1: Geom_BezierCurve, + C2: Geom_BezierCurve, + C3: Geom_BezierCurve, + C4: Geom_BezierCurve, + Type: GeomFill_FillingStyle, + ) -> None: ... + @overload + def __init__( + self, + C1: Geom_BezierCurve, + C2: Geom_BezierCurve, + C3: Geom_BezierCurve, + Type: GeomFill_FillingStyle, + ) -> None: ... + @overload + def __init__( + self, C1: Geom_BezierCurve, C2: Geom_BezierCurve, Type: GeomFill_FillingStyle + ) -> None: ... + @overload + def Init( + self, + C1: Geom_BezierCurve, + C2: Geom_BezierCurve, + C3: Geom_BezierCurve, + C4: Geom_BezierCurve, + Type: GeomFill_FillingStyle, + ) -> None: ... + @overload + def Init( + self, + C1: Geom_BezierCurve, + C2: Geom_BezierCurve, + C3: Geom_BezierCurve, + Type: GeomFill_FillingStyle, + ) -> None: ... + @overload + def Init( + self, C1: Geom_BezierCurve, C2: Geom_BezierCurve, Type: GeomFill_FillingStyle + ) -> None: ... def Surface(self) -> Geom_BezierSurface: ... class GeomFill_Boundary(Standard_Transient): @@ -287,7 +513,16 @@ class GeomFill_Boundary(Standard_Transient): def IsDegenerated(self) -> bool: ... def Norm(self, U: float) -> gp_Vec: ... def Points(self, PFirst: gp_Pnt, PLast: gp_Pnt) -> None: ... - def Reparametrize(self, First: float, Last: float, HasDF: bool, HasDL: bool, DF: float, DL: float, Rev: bool) -> None: ... + def Reparametrize( + self, + First: float, + Last: float, + HasDF: bool, + HasDL: bool, + DF: float, + DL: float, + Rev: bool, + ) -> None: ... @overload def Tol3d(self) -> float: ... @overload @@ -299,13 +534,59 @@ class GeomFill_Boundary(Standard_Transient): def Value(self, U: float) -> gp_Pnt: ... class GeomFill_CircularBlendFunc(Approx_SweepFunction): - def __init__(self, Path: Adaptor3d_Curve, Curve1: Adaptor3d_Curve, Curve2: Adaptor3d_Curve, Radius: float, Polynomial: Optional[bool] = False) -> None: ... + def __init__( + self, + Path: Adaptor3d_Curve, + Curve1: Adaptor3d_Curve, + Curve2: Adaptor3d_Curve, + Radius: float, + Polynomial: Optional[bool] = False, + ) -> None: ... def BarycentreOfSurf(self) -> gp_Pnt: ... - def D0(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> bool: ... - def D1(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - def D2(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def D0( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> bool: ... + def D1( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + def D2( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: TColStd_Array1OfReal) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: TColStd_Array1OfReal, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... @@ -326,15 +607,34 @@ class GeomFill_ConstrainedFilling: def CheckTgteField(self, I: int) -> None: ... def Eval(self, W: float, Ord: int) -> Tuple[int, float]: ... @overload - def Init(self, B1: GeomFill_Boundary, B2: GeomFill_Boundary, B3: GeomFill_Boundary, NoCheck: Optional[bool] = False) -> None: ... - @overload - def Init(self, B1: GeomFill_Boundary, B2: GeomFill_Boundary, B3: GeomFill_Boundary, B4: GeomFill_Boundary, NoCheck: Optional[bool] = False) -> None: ... + def Init( + self, + B1: GeomFill_Boundary, + B2: GeomFill_Boundary, + B3: GeomFill_Boundary, + NoCheck: Optional[bool] = False, + ) -> None: ... + @overload + def Init( + self, + B1: GeomFill_Boundary, + B2: GeomFill_Boundary, + B3: GeomFill_Boundary, + B4: GeomFill_Boundary, + NoCheck: Optional[bool] = False, + ) -> None: ... def ReBuild(self) -> None: ... def SetDomain(self, l: float, B: GeomFill_BoundWithSurf) -> None: ... def Surface(self) -> Geom_BSplineSurface: ... class GeomFill_CoonsAlgPatch(Standard_Transient): - def __init__(self, B1: GeomFill_Boundary, B2: GeomFill_Boundary, B3: GeomFill_Boundary, B4: GeomFill_Boundary) -> None: ... + def __init__( + self, + B1: GeomFill_Boundary, + B2: GeomFill_Boundary, + B3: GeomFill_Boundary, + B4: GeomFill_Boundary, + ) -> None: ... def Bound(self, I: int) -> GeomFill_Boundary: ... def Corner(self, I: int) -> gp_Pnt: ... def D1U(self, U: float, V: float) -> gp_Vec: ... @@ -376,9 +676,25 @@ class GeomFill_Filling: class GeomFill_FunctionDraft(math_FunctionSetWithDerivatives): def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... - def Deriv2T(self, C: Adaptor3d_Curve, Param: float, W: float, d2N: gp_Vec, teta: float, F: math_Vector) -> bool: ... + def Deriv2T( + self, + C: Adaptor3d_Curve, + Param: float, + W: float, + d2N: gp_Vec, + teta: float, + F: math_Vector, + ) -> bool: ... def Deriv2X(self, X: math_Vector, T: GeomFill_Tensor) -> bool: ... - def DerivT(self, C: Adaptor3d_Curve, Param: float, W: float, dN: gp_Vec, teta: float, F: math_Vector) -> bool: ... + def DerivT( + self, + C: Adaptor3d_Curve, + Param: float, + W: float, + dN: gp_Vec, + teta: float, + F: math_Vector, + ) -> bool: ... def DerivTX(self, dN: gp_Vec, teta: float, D: math_Matrix) -> bool: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def NbEquations(self) -> int: ... @@ -387,12 +703,21 @@ class GeomFill_FunctionDraft(math_FunctionSetWithDerivatives): def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... class GeomFill_FunctionGuide(math_FunctionSetWithDerivatives): - def __init__(self, S: GeomFill_SectionLaw, Guide: Adaptor3d_Curve, ParamOnLaw: Optional[float] = 0.0) -> None: ... - def DerivT(self, X: math_Vector, DCentre: gp_XYZ, DDir: gp_XYZ, DFDT: math_Vector) -> bool: ... + def __init__( + self, + S: GeomFill_SectionLaw, + Guide: Adaptor3d_Curve, + ParamOnLaw: Optional[float] = 0.0, + ) -> None: ... + def DerivT( + self, X: math_Vector, DCentre: gp_XYZ, DDir: gp_XYZ, DFDT: math_Vector + ) -> bool: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def NbEquations(self) -> int: ... def NbVariables(self) -> int: ... - def SetParam(self, Param: float, Centre: gp_Pnt, Dir: gp_XYZ, XDir: gp_XYZ) -> None: ... + def SetParam( + self, Param: float, Centre: gp_Pnt, Dir: gp_XYZ, XDir: gp_XYZ + ) -> None: ... def Value(self, X: math_Vector, F: math_Vector) -> bool: ... def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... @@ -409,16 +734,41 @@ class GeomFill_LocFunction: def D0(self, Param: float, First: float, Last: float) -> bool: ... def D1(self, Param: float, First: float, Last: float) -> bool: ... def D2(self, Param: float, First: float, Last: float) -> bool: ... - def DN(self, Param: float, First: float, Last: float, Order: int) -> Tuple[float, int]: ... + def DN( + self, Param: float, First: float, Last: float, Order: int + ) -> Tuple[float, int]: ... class GeomFill_LocationLaw(Standard_Transient): def Copy(self) -> GeomFill_LocationLaw: ... @overload def D0(self, Param: float, M: gp_Mat, V: gp_Vec) -> bool: ... @overload - def D0(self, Param: float, M: gp_Mat, V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d) -> bool: ... - def D1(self, Param: float, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d) -> bool: ... - def D2(self, Param: float, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, D2M: gp_Mat, D2V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d) -> bool: ... + def D0( + self, Param: float, M: gp_Mat, V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d + ) -> bool: ... + def D1( + self, + Param: float, + M: gp_Mat, + V: gp_Vec, + DM: gp_Mat, + DV: gp_Vec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + ) -> bool: ... + def D2( + self, + Param: float, + M: gp_Mat, + V: gp_Vec, + DM: gp_Mat, + DV: gp_Vec, + D2M: gp_Mat, + D2V: gp_Vec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + ) -> bool: ... def ErrorStatus(self) -> GeomFill_PipeError: ... def GetAverageLaw(self, AM: gp_Mat, AV: gp_Vec) -> None: ... def GetCurve(self) -> Adaptor3d_Curve: ... @@ -446,21 +796,49 @@ class GeomFill_Pipe: @overload def __init__(self, Path: Geom_Curve, Radius: float) -> None: ... @overload - def __init__(self, Path: Geom_Curve, FirstSect: Geom_Curve, Option: Optional[GeomFill_Trihedron] = GeomFill_IsCorrectedFrenet) -> None: ... - @overload - def __init__(self, Path: Geom2d_Curve, Support: Geom_Surface, FirstSect: Geom_Curve) -> None: ... - @overload - def __init__(self, Path: Geom_Curve, FirstSect: Geom_Curve, Dir: gp_Dir) -> None: ... - @overload - def __init__(self, Path: Geom_Curve, FirstSect: Geom_Curve, LastSect: Geom_Curve) -> None: ... - @overload - def __init__(self, Path: Geom_Curve, NSections: TColGeom_SequenceOfCurve) -> None: ... - @overload - def __init__(self, Path: Geom_Curve, Curve1: Geom_Curve, Curve2: Geom_Curve, Radius: float) -> None: ... - @overload - def __init__(self, Path: Adaptor3d_Curve, Curve1: Adaptor3d_Curve, Curve2: Adaptor3d_Curve, Radius: float) -> None: ... - @overload - def __init__(self, Path: Geom_Curve, Guide: Adaptor3d_Curve, FirstSect: Geom_Curve, ByACR: bool, rotat: bool) -> None: ... + def __init__( + self, + Path: Geom_Curve, + FirstSect: Geom_Curve, + Option: Optional[GeomFill_Trihedron] = GeomFill_IsCorrectedFrenet, + ) -> None: ... + @overload + def __init__( + self, Path: Geom2d_Curve, Support: Geom_Surface, FirstSect: Geom_Curve + ) -> None: ... + @overload + def __init__( + self, Path: Geom_Curve, FirstSect: Geom_Curve, Dir: gp_Dir + ) -> None: ... + @overload + def __init__( + self, Path: Geom_Curve, FirstSect: Geom_Curve, LastSect: Geom_Curve + ) -> None: ... + @overload + def __init__( + self, Path: Geom_Curve, NSections: TColGeom_SequenceOfCurve + ) -> None: ... + @overload + def __init__( + self, Path: Geom_Curve, Curve1: Geom_Curve, Curve2: Geom_Curve, Radius: float + ) -> None: ... + @overload + def __init__( + self, + Path: Adaptor3d_Curve, + Curve1: Adaptor3d_Curve, + Curve2: Adaptor3d_Curve, + Radius: float, + ) -> None: ... + @overload + def __init__( + self, + Path: Geom_Curve, + Guide: Adaptor3d_Curve, + FirstSect: Geom_Curve, + ByACR: bool, + rotat: bool, + ) -> None: ... def ErrorOnSurf(self) -> float: ... def ExchangeUV(self) -> bool: ... @overload @@ -471,30 +849,65 @@ class GeomFill_Pipe: @overload def Init(self, Path: Geom_Curve, Radius: float) -> None: ... @overload - def Init(self, Path: Geom_Curve, FirstSect: Geom_Curve, Option: Optional[GeomFill_Trihedron] = GeomFill_IsCorrectedFrenet) -> None: ... + def Init( + self, + Path: Geom_Curve, + FirstSect: Geom_Curve, + Option: Optional[GeomFill_Trihedron] = GeomFill_IsCorrectedFrenet, + ) -> None: ... @overload - def Init(self, Path: Geom2d_Curve, Support: Geom_Surface, FirstSect: Geom_Curve) -> None: ... + def Init( + self, Path: Geom2d_Curve, Support: Geom_Surface, FirstSect: Geom_Curve + ) -> None: ... @overload def Init(self, Path: Geom_Curve, FirstSect: Geom_Curve, Dir: gp_Dir) -> None: ... @overload - def Init(self, Path: Geom_Curve, FirstSect: Geom_Curve, LastSect: Geom_Curve) -> None: ... + def Init( + self, Path: Geom_Curve, FirstSect: Geom_Curve, LastSect: Geom_Curve + ) -> None: ... @overload def Init(self, Path: Geom_Curve, NSections: TColGeom_SequenceOfCurve) -> None: ... @overload - def Init(self, Path: Adaptor3d_Curve, Curve1: Adaptor3d_Curve, Curve2: Adaptor3d_Curve, Radius: float) -> None: ... - @overload - def Init(self, Path: Geom_Curve, Guide: Adaptor3d_Curve, FirstSect: Geom_Curve, ByACR: bool, rotat: bool) -> None: ... + def Init( + self, + Path: Adaptor3d_Curve, + Curve1: Adaptor3d_Curve, + Curve2: Adaptor3d_Curve, + Radius: float, + ) -> None: ... + @overload + def Init( + self, + Path: Geom_Curve, + Guide: Adaptor3d_Curve, + FirstSect: Geom_Curve, + ByACR: bool, + rotat: bool, + ) -> None: ... def IsDone(self) -> bool: ... @overload - def Perform(self, WithParameters: Optional[bool] = False, myPolynomial: Optional[bool] = False) -> None: ... - @overload - def Perform(self, Tol: float, Polynomial: bool, Conti: Optional[GeomAbs_Shape] = GeomAbs_C1, MaxDegree: Optional[int] = 11, NbMaxSegment: Optional[int] = 30) -> None: ... + def Perform( + self, + WithParameters: Optional[bool] = False, + myPolynomial: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + Tol: float, + Polynomial: bool, + Conti: Optional[GeomAbs_Shape] = GeomAbs_C1, + MaxDegree: Optional[int] = 11, + NbMaxSegment: Optional[int] = 30, + ) -> None: ... def Surface(self) -> Geom_Surface: ... class GeomFill_PlanFunc(math_FunctionWithDerivative): def __init__(self, P: gp_Pnt, V: gp_Vec, C: Adaptor3d_Curve) -> None: ... def D2(self, X: float) -> Tuple[float, float, float]: ... - def D2E(self, X: float, DP: gp_Vec, D2P: gp_Vec, DV: gp_Vec, D2V: gp_Vec) -> Tuple[float, float, float]: ... + def D2E( + self, X: float, DP: gp_Vec, D2P: gp_Vec, DV: gp_Vec, D2V: gp_Vec + ) -> Tuple[float, float, float]: ... def DEDT(self, X: float, DP: gp_Vec, DV: gp_Vec) -> float: ... def Derivative(self, X: float) -> Tuple[bool, float]: ... def Value(self, X: float) -> Tuple[bool, float]: ... @@ -505,11 +918,47 @@ class GeomFill_PolynomialConvertor: def Init(self) -> None: ... def Initialized(self) -> bool: ... @overload - def Section(self, FirstPnt: gp_Pnt, Center: gp_Pnt, Dir: gp_Vec, Angle: float, Poles: TColgp_Array1OfPnt) -> None: ... - @overload - def Section(self, FirstPnt: gp_Pnt, DFirstPnt: gp_Vec, Center: gp_Pnt, DCenter: gp_Vec, Dir: gp_Vec, DDir: gp_Vec, Angle: float, DAngle: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec) -> None: ... - @overload - def Section(self, FirstPnt: gp_Pnt, DFirstPnt: gp_Vec, D2FirstPnt: gp_Vec, Center: gp_Pnt, DCenter: gp_Vec, D2Center: gp_Vec, Dir: gp_Vec, DDir: gp_Vec, D2Dir: gp_Vec, Angle: float, DAngle: float, D2Angle: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec) -> None: ... + def Section( + self, + FirstPnt: gp_Pnt, + Center: gp_Pnt, + Dir: gp_Vec, + Angle: float, + Poles: TColgp_Array1OfPnt, + ) -> None: ... + @overload + def Section( + self, + FirstPnt: gp_Pnt, + DFirstPnt: gp_Vec, + Center: gp_Pnt, + DCenter: gp_Vec, + Dir: gp_Vec, + DDir: gp_Vec, + Angle: float, + DAngle: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + ) -> None: ... + @overload + def Section( + self, + FirstPnt: gp_Pnt, + DFirstPnt: gp_Vec, + D2FirstPnt: gp_Vec, + Center: gp_Pnt, + DCenter: gp_Vec, + D2Center: gp_Vec, + Dir: gp_Vec, + DDir: gp_Vec, + D2Dir: gp_Vec, + Angle: float, + DAngle: float, + D2Angle: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + ) -> None: ... class GeomFill_Profiler: def __init__(self) -> None: ... @@ -517,7 +966,9 @@ class GeomFill_Profiler: def Curve(self, Index: int) -> Geom_Curve: ... def Degree(self) -> int: ... def IsPeriodic(self) -> bool: ... - def KnotsAndMults(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> None: ... + def KnotsAndMults( + self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger + ) -> None: ... def NbKnots(self) -> int: ... def NbPoles(self) -> int: ... def Perform(self, PTol: float) -> None: ... @@ -529,24 +980,90 @@ class GeomFill_QuasiAngularConvertor: def Init(self) -> None: ... def Initialized(self) -> bool: ... @overload - def Section(self, FirstPnt: gp_Pnt, Center: gp_Pnt, Dir: gp_Vec, Angle: float, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal) -> None: ... - @overload - def Section(self, FirstPnt: gp_Pnt, DFirstPnt: gp_Vec, Center: gp_Pnt, DCenter: gp_Vec, Dir: gp_Vec, DDir: gp_Vec, Angle: float, DAngle: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Weights: TColStd_Array1OfReal, DWeights: TColStd_Array1OfReal) -> None: ... - @overload - def Section(self, FirstPnt: gp_Pnt, DFirstPnt: gp_Vec, D2FirstPnt: gp_Vec, Center: gp_Pnt, DCenter: gp_Vec, D2Center: gp_Vec, Dir: gp_Vec, DDir: gp_Vec, D2Dir: gp_Vec, Angle: float, DAngle: float, D2Angle: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Weights: TColStd_Array1OfReal, DWeights: TColStd_Array1OfReal, D2Weights: TColStd_Array1OfReal) -> None: ... + def Section( + self, + FirstPnt: gp_Pnt, + Center: gp_Pnt, + Dir: gp_Vec, + Angle: float, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + FirstPnt: gp_Pnt, + DFirstPnt: gp_Vec, + Center: gp_Pnt, + DCenter: gp_Vec, + Dir: gp_Vec, + DDir: gp_Vec, + Angle: float, + DAngle: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Weights: TColStd_Array1OfReal, + DWeights: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + FirstPnt: gp_Pnt, + DFirstPnt: gp_Vec, + D2FirstPnt: gp_Vec, + Center: gp_Pnt, + DCenter: gp_Vec, + D2Center: gp_Vec, + Dir: gp_Vec, + DDir: gp_Vec, + D2Dir: gp_Vec, + Angle: float, + DAngle: float, + D2Angle: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Weights: TColStd_Array1OfReal, + DWeights: TColStd_Array1OfReal, + D2Weights: TColStd_Array1OfReal, + ) -> None: ... class GeomFill_SectionLaw(Standard_Transient): def BSplineSurface(self) -> Geom_BSplineSurface: ... def BarycentreOfSurf(self) -> gp_Pnt: ... def CirclSection(self, Param: float) -> Geom_Curve: ... def ConstantSection(self) -> Geom_Curve: ... - def D0(self, Param: float, Poles: TColgp_Array1OfPnt, Weigths: TColStd_Array1OfReal) -> bool: ... - def D1(self, Param: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - def D2(self, Param: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def D0( + self, Param: float, Poles: TColgp_Array1OfPnt, Weigths: TColStd_Array1OfReal + ) -> bool: ... + def D1( + self, + Param: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + def D2( + self, + Param: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... def GetDomain(self) -> Tuple[float, float]: ... def GetInterval(self) -> Tuple[float, float]: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: TColStd_Array1OfReal) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: TColStd_Array1OfReal, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConicalLaw(self) -> Tuple[bool, float]: ... def IsConstant(self) -> Tuple[bool, float]: ... @@ -577,7 +1094,9 @@ class GeomFill_SectionPlacement: def Perform(self, ParamOnPath: float, Tol: float) -> None: ... def Section(self, WithTranslation: bool) -> Geom_Curve: ... def SetLocation(self, L: GeomFill_LocationLaw) -> None: ... - def Transformation(self, WithTranslation: bool, WithCorrection: Optional[bool] = False) -> gp_Trsf: ... + def Transformation( + self, WithTranslation: bool, WithCorrection: Optional[bool] = False + ) -> gp_Trsf: ... class GeomFill_SnglrFunc(Adaptor3d_Curve): def __init__(self, HC: Adaptor3d_Curve) -> None: ... @@ -599,8 +1118,17 @@ class GeomFill_SnglrFunc(Adaptor3d_Curve): def Value(self, U: float) -> gp_Pnt: ... class GeomFill_Sweep: - def __init__(self, Location: GeomFill_LocationLaw, WithKpart: Optional[bool] = True) -> None: ... - def Build(self, Section: GeomFill_SectionLaw, Methode: Optional[GeomFill_ApproxStyle] = GeomFill_Location, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, Degmax: Optional[int] = 10, Segmax: Optional[int] = 30) -> None: ... + def __init__( + self, Location: GeomFill_LocationLaw, WithKpart: Optional[bool] = True + ) -> None: ... + def Build( + self, + Section: GeomFill_SectionLaw, + Methode: Optional[GeomFill_ApproxStyle] = GeomFill_Location, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Degmax: Optional[int] = 10, + Segmax: Optional[int] = 30, + ) -> None: ... def ErrorOnRestriction(self, IsFirst: bool) -> Tuple[float, float]: ... def ErrorOnSurface(self) -> float: ... def ErrorOnTrace(self, IndexOfTrace: int) -> Tuple[float, float]: ... @@ -608,22 +1136,76 @@ class GeomFill_Sweep: def IsDone(self) -> bool: ... def NumberOfTrace(self) -> int: ... def Restriction(self, IsFirst: bool) -> Geom2d_Curve: ... - def SetDomain(self, First: float, Last: float, SectionFirst: float, SectionLast: float) -> None: ... + def SetDomain( + self, First: float, Last: float, SectionFirst: float, SectionLast: float + ) -> None: ... def SetForceApproxC1(self, ForceApproxC1: bool) -> None: ... - def SetTolerance(self, Tol3d: float, BoundTol: Optional[float] = 1.0, Tol2d: Optional[float] = 1.0e-5, TolAngular: Optional[float] = 1.0) -> None: ... + def SetTolerance( + self, + Tol3d: float, + BoundTol: Optional[float] = 1.0, + Tol2d: Optional[float] = 1.0e-5, + TolAngular: Optional[float] = 1.0, + ) -> None: ... def Surface(self) -> Geom_Surface: ... def Trace(self, IndexOfTrace: int) -> Geom2d_Curve: ... def UReversed(self) -> bool: ... def VReversed(self) -> bool: ... class GeomFill_SweepFunction(Approx_SweepFunction): - def __init__(self, Section: GeomFill_SectionLaw, Location: GeomFill_LocationLaw, FirstParameter: float, FirstParameterOnS: float, RatioParameterOnS: float) -> None: ... + def __init__( + self, + Section: GeomFill_SectionLaw, + Location: GeomFill_LocationLaw, + FirstParameter: float, + FirstParameterOnS: float, + RatioParameterOnS: float, + ) -> None: ... def BarycentreOfSurf(self) -> gp_Pnt: ... - def D0(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> bool: ... - def D1(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - def D2(self, Param: float, First: float, Last: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def D0( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> bool: ... + def D1( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + def D2( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: TColStd_Array1OfReal) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: TColStd_Array1OfReal, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsRational(self) -> bool: ... def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... @@ -655,11 +1237,36 @@ class GeomFill_TgtField(Standard_Transient): class GeomFill_TrihedronLaw(Standard_Transient): def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... def ErrorStatus(self) -> GeomFill_PipeError: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def GetInterval(self) -> Tuple[float, float]: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... @@ -669,23 +1276,59 @@ class GeomFill_TrihedronLaw(Standard_Transient): def SetInterval(self, First: float, Last: float) -> None: ... class GeomFill_BoundWithSurf(GeomFill_Boundary): - def __init__(self, CurveOnSurf: Adaptor3d_CurveOnSurface, Tol3d: float, Tolang: float) -> None: ... + def __init__( + self, CurveOnSurf: Adaptor3d_CurveOnSurface, Tol3d: float, Tolang: float + ) -> None: ... def Bounds(self) -> Tuple[float, float]: ... def D1(self, U: float, P: gp_Pnt, V: gp_Vec) -> None: ... def D1Norm(self, U: float, N: gp_Vec, DN: gp_Vec) -> None: ... def HasNormals(self) -> bool: ... def IsDegenerated(self) -> bool: ... def Norm(self, U: float) -> gp_Vec: ... - def Reparametrize(self, First: float, Last: float, HasDF: bool, HasDL: bool, DF: float, DL: float, Rev: bool) -> None: ... + def Reparametrize( + self, + First: float, + Last: float, + HasDF: bool, + HasDL: bool, + DF: float, + DL: float, + Rev: bool, + ) -> None: ... def Value(self, U: float) -> gp_Pnt: ... class GeomFill_ConstantBiNormal(GeomFill_TrihedronLaw): def __init__(self, BiNormal: gp_Dir) -> None: ... def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... def IsOnlyBy3dCurve(self) -> bool: ... @@ -696,13 +1339,45 @@ class GeomFill_Coons(GeomFill_Filling): @overload def __init__(self) -> None: ... @overload - def __init__(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt) -> None: ... - @overload - def __init__(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt, W1: TColStd_Array1OfReal, W2: TColStd_Array1OfReal, W3: TColStd_Array1OfReal, W4: TColStd_Array1OfReal) -> None: ... - @overload - def Init(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt) -> None: ... - @overload - def Init(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt, W1: TColStd_Array1OfReal, W2: TColStd_Array1OfReal, W3: TColStd_Array1OfReal, W4: TColStd_Array1OfReal) -> None: ... + def __init__( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + ) -> None: ... + @overload + def __init__( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + W1: TColStd_Array1OfReal, + W2: TColStd_Array1OfReal, + W3: TColStd_Array1OfReal, + W4: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Init( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + ) -> None: ... + @overload + def Init( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + W1: TColStd_Array1OfReal, + W2: TColStd_Array1OfReal, + W3: TColStd_Array1OfReal, + W4: TColStd_Array1OfReal, + ) -> None: ... class GeomFill_CorrectedFrenet(GeomFill_TrihedronLaw): @overload @@ -710,11 +1385,36 @@ class GeomFill_CorrectedFrenet(GeomFill_TrihedronLaw): @overload def __init__(self, ForEvaluation: bool) -> None: ... def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... def EvaluateBestMode(self) -> GeomFill_Trihedron: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... def IsOnlyBy3dCurve(self) -> bool: ... @@ -728,9 +1428,32 @@ class GeomFill_CurveAndTrihedron(GeomFill_LocationLaw): @overload def D0(self, Param: float, M: gp_Mat, V: gp_Vec) -> bool: ... @overload - def D0(self, Param: float, M: gp_Mat, V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d) -> bool: ... - def D1(self, Param: float, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d) -> bool: ... - def D2(self, Param: float, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, D2M: gp_Mat, D2V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d) -> bool: ... + def D0( + self, Param: float, M: gp_Mat, V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d + ) -> bool: ... + def D1( + self, + Param: float, + M: gp_Mat, + V: gp_Vec, + DM: gp_Mat, + DV: gp_Vec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + ) -> bool: ... + def D2( + self, + Param: float, + M: gp_Mat, + V: gp_Vec, + DM: gp_Mat, + DV: gp_Vec, + D2M: gp_Mat, + D2V: gp_Vec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + ) -> bool: ... def GetAverageLaw(self, AM: gp_Mat, AV: gp_Vec) -> None: ... def GetCurve(self) -> Adaptor3d_Curve: ... def GetDomain(self) -> Tuple[float, float]: ... @@ -749,49 +1472,154 @@ class GeomFill_Curved(GeomFill_Filling): @overload def __init__(self) -> None: ... @overload - def __init__(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt) -> None: ... - @overload - def __init__(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt, W1: TColStd_Array1OfReal, W2: TColStd_Array1OfReal, W3: TColStd_Array1OfReal, W4: TColStd_Array1OfReal) -> None: ... + def __init__( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + ) -> None: ... + @overload + def __init__( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + W1: TColStd_Array1OfReal, + W2: TColStd_Array1OfReal, + W3: TColStd_Array1OfReal, + W4: TColStd_Array1OfReal, + ) -> None: ... @overload def __init__(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt) -> None: ... @overload - def __init__(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, W1: TColStd_Array1OfReal, W2: TColStd_Array1OfReal) -> None: ... - @overload - def Init(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt) -> None: ... - @overload - def Init(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt, W1: TColStd_Array1OfReal, W2: TColStd_Array1OfReal, W3: TColStd_Array1OfReal, W4: TColStd_Array1OfReal) -> None: ... + def __init__( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + W1: TColStd_Array1OfReal, + W2: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Init( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + ) -> None: ... + @overload + def Init( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + W1: TColStd_Array1OfReal, + W2: TColStd_Array1OfReal, + W3: TColStd_Array1OfReal, + W4: TColStd_Array1OfReal, + ) -> None: ... @overload def Init(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt) -> None: ... @overload - def Init(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, W1: TColStd_Array1OfReal, W2: TColStd_Array1OfReal) -> None: ... + def Init( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + W1: TColStd_Array1OfReal, + W2: TColStd_Array1OfReal, + ) -> None: ... class GeomFill_Darboux(GeomFill_TrihedronLaw): def __init__(self) -> None: ... def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... def IsOnlyBy3dCurve(self) -> bool: ... def NbIntervals(self, S: GeomAbs_Shape) -> int: ... class GeomFill_DegeneratedBound(GeomFill_Boundary): - def __init__(self, Point: gp_Pnt, First: float, Last: float, Tol3d: float, Tolang: float) -> None: ... + def __init__( + self, Point: gp_Pnt, First: float, Last: float, Tol3d: float, Tolang: float + ) -> None: ... def Bounds(self) -> Tuple[float, float]: ... def D1(self, U: float, P: gp_Pnt, V: gp_Vec) -> None: ... def IsDegenerated(self) -> bool: ... - def Reparametrize(self, First: float, Last: float, HasDF: bool, HasDL: bool, DF: float, DL: float, Rev: bool) -> None: ... + def Reparametrize( + self, + First: float, + Last: float, + HasDF: bool, + HasDL: bool, + DF: float, + DL: float, + Rev: bool, + ) -> None: ... def Value(self, U: float) -> gp_Pnt: ... class GeomFill_DiscreteTrihedron(GeomFill_TrihedronLaw): def __init__(self) -> None: ... def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def Init(self) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... @@ -802,10 +1630,35 @@ class GeomFill_DiscreteTrihedron(GeomFill_TrihedronLaw): class GeomFill_DraftTrihedron(GeomFill_TrihedronLaw): def __init__(self, BiNormal: gp_Vec, Angle: float) -> None: ... def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... def IsOnlyBy3dCurve(self) -> bool: ... @@ -817,13 +1670,37 @@ class GeomFill_EvolvedSection(GeomFill_SectionLaw): def BSplineSurface(self) -> Geom_BSplineSurface: ... def BarycentreOfSurf(self) -> gp_Pnt: ... def ConstantSection(self) -> Geom_Curve: ... - def D0(self, Param: float, Poles: TColgp_Array1OfPnt, Weigths: TColStd_Array1OfReal) -> bool: ... - def D1(self, Param: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - def D2(self, Param: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def D0( + self, Param: float, Poles: TColgp_Array1OfPnt, Weigths: TColStd_Array1OfReal + ) -> bool: ... + def D1( + self, + Param: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + def D2( + self, + Param: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... def GetDomain(self) -> Tuple[float, float]: ... def GetInterval(self) -> Tuple[float, float]: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: TColStd_Array1OfReal) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: TColStd_Array1OfReal, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> Tuple[bool, float]: ... def IsRational(self) -> bool: ... @@ -839,10 +1716,35 @@ class GeomFill_EvolvedSection(GeomFill_SectionLaw): class GeomFill_Fixed(GeomFill_TrihedronLaw): def __init__(self, Tangent: gp_Vec, Normal: gp_Vec) -> None: ... def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... def NbIntervals(self, S: GeomAbs_Shape) -> int: ... @@ -850,10 +1752,35 @@ class GeomFill_Fixed(GeomFill_TrihedronLaw): class GeomFill_Frenet(GeomFill_TrihedronLaw): def __init__(self) -> None: ... def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def Init(self) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... @@ -872,9 +1799,32 @@ class GeomFill_LocationDraft(GeomFill_LocationLaw): @overload def D0(self, Param: float, M: gp_Mat, V: gp_Vec) -> bool: ... @overload - def D0(self, Param: float, M: gp_Mat, V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d) -> bool: ... - def D1(self, Param: float, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d) -> bool: ... - def D2(self, Param: float, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, D2M: gp_Mat, D2V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d) -> bool: ... + def D0( + self, Param: float, M: gp_Mat, V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d + ) -> bool: ... + def D1( + self, + Param: float, + M: gp_Mat, + V: gp_Vec, + DM: gp_Mat, + DV: gp_Vec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + ) -> bool: ... + def D2( + self, + Param: float, + M: gp_Mat, + V: gp_Vec, + DM: gp_Mat, + DV: gp_Vec, + D2M: gp_Mat, + D2V: gp_Vec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + ) -> bool: ... def Direction(self) -> gp_Dir: ... def GetAverageLaw(self, AM: gp_Mat, AV: gp_Vec) -> None: ... def GetCurve(self) -> Adaptor3d_Curve: ... @@ -899,14 +1849,39 @@ class GeomFill_LocationDraft(GeomFill_LocationLaw): class GeomFill_LocationGuide(GeomFill_LocationLaw): def __init__(self, Triedre: GeomFill_TrihedronWithGuide) -> None: ... - def ComputeAutomaticLaw(self, ParAndRad: TColgp_HArray1OfPnt2d) -> GeomFill_PipeError: ... + def ComputeAutomaticLaw( + self, ParAndRad: TColgp_HArray1OfPnt2d + ) -> GeomFill_PipeError: ... def Copy(self) -> GeomFill_LocationLaw: ... @overload def D0(self, Param: float, M: gp_Mat, V: gp_Vec) -> bool: ... @overload - def D0(self, Param: float, M: gp_Mat, V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d) -> bool: ... - def D1(self, Param: float, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d) -> bool: ... - def D2(self, Param: float, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, D2M: gp_Mat, D2V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, D2Poles2d: TColgp_Array1OfVec2d) -> bool: ... + def D0( + self, Param: float, M: gp_Mat, V: gp_Vec, Poles2d: TColgp_Array1OfPnt2d + ) -> bool: ... + def D1( + self, + Param: float, + M: gp_Mat, + V: gp_Vec, + DM: gp_Mat, + DV: gp_Vec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + ) -> bool: ... + def D2( + self, + Param: float, + M: gp_Mat, + V: gp_Vec, + DM: gp_Mat, + DV: gp_Vec, + D2M: gp_Mat, + D2V: gp_Vec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + D2Poles2d: TColgp_Array1OfVec2d, + ) -> bool: ... def EraseRotation(self) -> None: ... def ErrorStatus(self) -> GeomFill_PipeError: ... def GetAverageLaw(self, AM: gp_Mat, AV: gp_Vec) -> None: ... @@ -924,7 +1899,14 @@ class GeomFill_LocationGuide(GeomFill_LocationLaw): def Resolution(self, Index: int, Tol: float) -> Tuple[float, float]: ... def Rotation(self, Center: gp_Pnt) -> None: ... def Section(self) -> Geom_Curve: ... - def Set(self, Section: GeomFill_SectionLaw, rotat: bool, SFirst: float, SLast: float, PrecAngle: float) -> float: ... + def Set( + self, + Section: GeomFill_SectionLaw, + rotat: bool, + SFirst: float, + SLast: float, + PrecAngle: float, + ) -> float: ... def SetCurve(self, C: Adaptor3d_Curve) -> bool: ... def SetInterval(self, First: float, Last: float) -> None: ... def SetOrigine(self, Param1: float, Param2: float) -> None: ... @@ -936,23 +1918,67 @@ class GeomFill_NSections(GeomFill_SectionLaw): @overload def __init__(self, NC: TColGeom_SequenceOfCurve) -> None: ... @overload - def __init__(self, NC: TColGeom_SequenceOfCurve, NP: TColStd_SequenceOfReal) -> None: ... - @overload - def __init__(self, NC: TColGeom_SequenceOfCurve, NP: TColStd_SequenceOfReal, UF: float, UL: float, VF: float, VL: float) -> None: ... - @overload - def __init__(self, NC: TColGeom_SequenceOfCurve, Trsfs: GeomFill_SequenceOfTrsf, NP: TColStd_SequenceOfReal, UF: float, UL: float, VF: float, VL: float, Surf: Geom_BSplineSurface) -> None: ... + def __init__( + self, NC: TColGeom_SequenceOfCurve, NP: TColStd_SequenceOfReal + ) -> None: ... + @overload + def __init__( + self, + NC: TColGeom_SequenceOfCurve, + NP: TColStd_SequenceOfReal, + UF: float, + UL: float, + VF: float, + VL: float, + ) -> None: ... + @overload + def __init__( + self, + NC: TColGeom_SequenceOfCurve, + Trsfs: GeomFill_SequenceOfTrsf, + NP: TColStd_SequenceOfReal, + UF: float, + UL: float, + VF: float, + VL: float, + Surf: Geom_BSplineSurface, + ) -> None: ... def BSplineSurface(self) -> Geom_BSplineSurface: ... def BarycentreOfSurf(self) -> gp_Pnt: ... def CirclSection(self, Param: float) -> Geom_Curve: ... def ComputeSurface(self) -> None: ... def ConstantSection(self) -> Geom_Curve: ... - def D0(self, Param: float, Poles: TColgp_Array1OfPnt, Weigths: TColStd_Array1OfReal) -> bool: ... - def D1(self, Param: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - def D2(self, Param: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def D0( + self, Param: float, Poles: TColgp_Array1OfPnt, Weigths: TColStd_Array1OfReal + ) -> bool: ... + def D1( + self, + Param: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + def D2( + self, + Param: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... def GetDomain(self) -> Tuple[float, float]: ... def GetInterval(self) -> Tuple[float, float]: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: TColStd_Array1OfReal) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: TColStd_Array1OfReal, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConicalLaw(self) -> Tuple[bool, float]: ... def IsConstant(self) -> Tuple[bool, float]: ... @@ -974,9 +2000,24 @@ class GeomFill_SectionGenerator(GeomFill_Profiler): def Mults(self, TMults: TColStd_Array1OfInteger) -> None: ... def Parameter(self, P: int) -> float: ... @overload - def Section(self, P: int, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Poles2d: TColgp_Array1OfPnt2d, DPoles2d: TColgp_Array1OfVec2d, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - @overload - def Section(self, P: int, Poles: TColgp_Array1OfPnt, Poles2d: TColgp_Array1OfPnt2d, Weigths: TColStd_Array1OfReal) -> None: ... + def Section( + self, + P: int, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: int, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... def SetParam(self, Params: TColStd_HArray1OfReal) -> None: ... class GeomFill_SimpleBound(GeomFill_Boundary): @@ -984,20 +2025,61 @@ class GeomFill_SimpleBound(GeomFill_Boundary): def Bounds(self) -> Tuple[float, float]: ... def D1(self, U: float, P: gp_Pnt, V: gp_Vec) -> None: ... def IsDegenerated(self) -> bool: ... - def Reparametrize(self, First: float, Last: float, HasDF: bool, HasDL: bool, DF: float, DL: float, Rev: bool) -> None: ... + def Reparametrize( + self, + First: float, + Last: float, + HasDF: bool, + HasDL: bool, + DF: float, + DL: float, + Rev: bool, + ) -> None: ... def Value(self, U: float) -> gp_Pnt: ... class GeomFill_Stretch(GeomFill_Filling): @overload def __init__(self) -> None: ... @overload - def __init__(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt) -> None: ... - @overload - def __init__(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt, W1: TColStd_Array1OfReal, W2: TColStd_Array1OfReal, W3: TColStd_Array1OfReal, W4: TColStd_Array1OfReal) -> None: ... - @overload - def Init(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt) -> None: ... - @overload - def Init(self, P1: TColgp_Array1OfPnt, P2: TColgp_Array1OfPnt, P3: TColgp_Array1OfPnt, P4: TColgp_Array1OfPnt, W1: TColStd_Array1OfReal, W2: TColStd_Array1OfReal, W3: TColStd_Array1OfReal, W4: TColStd_Array1OfReal) -> None: ... + def __init__( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + ) -> None: ... + @overload + def __init__( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + W1: TColStd_Array1OfReal, + W2: TColStd_Array1OfReal, + W3: TColStd_Array1OfReal, + W4: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Init( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + ) -> None: ... + @overload + def Init( + self, + P1: TColgp_Array1OfPnt, + P2: TColgp_Array1OfPnt, + P3: TColgp_Array1OfPnt, + P4: TColgp_Array1OfPnt, + W1: TColStd_Array1OfReal, + W2: TColStd_Array1OfReal, + W3: TColStd_Array1OfReal, + W4: TColStd_Array1OfReal, + ) -> None: ... class GeomFill_TgtOnCoons(GeomFill_TgtField): def __init__(self, K: GeomFill_CoonsAlgPatch, I: int) -> None: ... @@ -1013,17 +2095,46 @@ class GeomFill_TrihedronWithGuide(GeomFill_TrihedronLaw): def Origine(self, Param1: float, Param2: float) -> None: ... class GeomFill_UniformSection(GeomFill_SectionLaw): - def __init__(self, C: Geom_Curve, FirstParameter: Optional[float] = 0.0, LastParameter: Optional[float] = 1.0) -> None: ... + def __init__( + self, + C: Geom_Curve, + FirstParameter: Optional[float] = 0.0, + LastParameter: Optional[float] = 1.0, + ) -> None: ... def BSplineSurface(self) -> Geom_BSplineSurface: ... def BarycentreOfSurf(self) -> gp_Pnt: ... def ConstantSection(self) -> Geom_Curve: ... - def D0(self, Param: float, Poles: TColgp_Array1OfPnt, Weigths: TColStd_Array1OfReal) -> bool: ... - def D1(self, Param: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal) -> bool: ... - def D2(self, Param: float, Poles: TColgp_Array1OfPnt, DPoles: TColgp_Array1OfVec, D2Poles: TColgp_Array1OfVec, Weigths: TColStd_Array1OfReal, DWeigths: TColStd_Array1OfReal, D2Weigths: TColStd_Array1OfReal) -> bool: ... + def D0( + self, Param: float, Poles: TColgp_Array1OfPnt, Weigths: TColStd_Array1OfReal + ) -> bool: ... + def D1( + self, + Param: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + def D2( + self, + Param: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + D2Poles: TColgp_Array1OfVec, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + D2Weigths: TColStd_Array1OfReal, + ) -> bool: ... def GetDomain(self) -> Tuple[float, float]: ... def GetInterval(self) -> Tuple[float, float]: ... def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... - def GetTolerance(self, BoundTol: float, SurfTol: float, AngleTol: float, Tol3d: TColStd_Array1OfReal) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: TColStd_Array1OfReal, + ) -> None: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> Tuple[bool, float]: ... def IsRational(self) -> bool: ... @@ -1039,10 +2150,35 @@ class GeomFill_UniformSection(GeomFill_SectionLaw): class GeomFill_GuideTrihedronAC(GeomFill_TrihedronWithGuide): def __init__(self, guide: Adaptor3d_Curve) -> None: ... def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def Guide(self) -> Adaptor3d_Curve: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... @@ -1055,11 +2191,36 @@ class GeomFill_GuideTrihedronAC(GeomFill_TrihedronWithGuide): class GeomFill_GuideTrihedronPlan(GeomFill_TrihedronWithGuide): def __init__(self, theGuide: Adaptor3d_Curve) -> None: ... def Copy(self) -> GeomFill_TrihedronLaw: ... - def D0(self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec) -> bool: ... - def D1(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec) -> bool: ... - def D2(self, Param: float, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec) -> bool: ... + def D0( + self, Param: float, Tangent: gp_Vec, Normal: gp_Vec, BiNormal: gp_Vec + ) -> bool: ... + def D1( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + ) -> bool: ... + def D2( + self, + Param: float, + Tangent: gp_Vec, + DTangent: gp_Vec, + D2Tangent: gp_Vec, + Normal: gp_Vec, + DNormal: gp_Vec, + D2Normal: gp_Vec, + BiNormal: gp_Vec, + DBiNormal: gp_Vec, + D2BiNormal: gp_Vec, + ) -> bool: ... def ErrorStatus(self) -> GeomFill_PipeError: ... - def GetAverageLaw(self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec) -> None: ... + def GetAverageLaw( + self, ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec + ) -> None: ... def Guide(self) -> Adaptor3d_Curve: ... def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... def IsConstant(self) -> bool: ... @@ -1069,7 +2230,7 @@ class GeomFill_GuideTrihedronPlan(GeomFill_TrihedronWithGuide): def SetCurve(self, thePath: Adaptor3d_Curve) -> bool: ... def SetInterval(self, First: float, Last: float) -> None: ... -#classnotwrapped +# classnotwrapped class GeomFill_SweepSectionGenerator: ... # harray1 classes @@ -1078,7 +2239,6 @@ class GeomFill_HArray1OfLocationLaw(GeomFill_Array1OfLocationLaw, Standard_Trans def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> GeomFill_Array1OfLocationLaw: ... - class GeomFill_HArray1OfSectionLaw(GeomFill_Array1OfSectionLaw, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> GeomFill_Array1OfSectionLaw: ... @@ -1093,5 +2253,3 @@ class GeomFill_HSequenceOfAx2(GeomFill_SequenceOfAx2, Standard_Transient): def __init__(self, other: GeomFill_SequenceOfAx2) -> None: ... def Sequence(self) -> GeomFill_SequenceOfAx2: ... def Append(self, theSequence: GeomFill_SequenceOfAx2) -> None: ... - - diff --git a/src/SWIG_files/wrapper/GeomInt.pyi b/src/SWIG_files/wrapper/GeomInt.pyi index 602785735..2cda6f322 100644 --- a/src/SWIG_files/wrapper/GeomInt.pyi +++ b/src/SWIG_files/wrapper/GeomInt.pyi @@ -24,38 +24,80 @@ from OCC.Core.TColgp import * GeomInt_VectorOfReal = NewType("GeomInt_VectorOfReal", Any) class GeomInt_SequenceOfParameterAndOrientation: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign( + self, theItem: GeomInt_ParameterAndOrientation + ) -> GeomInt_ParameterAndOrientation: ... def Clear(self) -> None: ... def First(self) -> GeomInt_ParameterAndOrientation: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> GeomInt_ParameterAndOrientation: ... def Length(self) -> int: ... - def Append(self, theItem: GeomInt_ParameterAndOrientation) -> GeomInt_ParameterAndOrientation: ... - def Prepend(self, theItem: GeomInt_ParameterAndOrientation) -> GeomInt_ParameterAndOrientation: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: GeomInt_ParameterAndOrientation + ) -> GeomInt_ParameterAndOrientation: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: GeomInt_ParameterAndOrientation + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> GeomInt_ParameterAndOrientation: ... - def SetValue(self, theIndex: int, theValue: GeomInt_ParameterAndOrientation) -> None: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class geomint: @staticmethod - def AdjustPeriodic(thePar: float, theParMin: float, theParMax: float, thePeriod: float, theEps: Optional[float] = 0.0) -> Tuple[bool, float, float]: ... + def AdjustPeriodic( + thePar: float, + theParMin: float, + theParMax: float, + thePeriod: float, + theEps: Optional[float] = 0.0, + ) -> Tuple[bool, float, float]: ... class GeomInt_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfWLApprox(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... -class GeomInt_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfWLApprox(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NbPol: int) -> None: ... +class GeomInt_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfWLApprox( + math_MultipleVarFunctionWithGradient +): + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NbPol: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiBSpCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def FunctionMatrix(self) -> math_Matrix: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... def Index(self) -> math_IntegerVector: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -67,13 +109,51 @@ class GeomInt_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfWLApprox(math_Mult class GeomInt_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfWLApprox: @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -90,32 +170,84 @@ class GeomInt_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfWLApprox: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class GeomInt_Gradient_BFGSOfMyGradientOfTheComputeLineBezierOfWLApprox(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... class GeomInt_Gradient_BFGSOfMyGradientbisOfTheComputeLineOfWLApprox(math_BFGS): - def __init__(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: float, Tolerance2d: float, Eps: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + F: math_MultipleVarFunctionWithGradient, + StartingPoint: math_Vector, + Tolerance3d: float, + Tolerance2d: float, + Eps: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... class GeomInt_IntSS: @overload def __init__(self) -> None: ... @overload - def __init__(self, S1: Geom_Surface, S2: Geom_Surface, Tol: float, Approx: Optional[bool] = True, ApproxS1: Optional[bool] = False, ApproxS2: Optional[bool] = False) -> None: ... + def __init__( + self, + S1: Geom_Surface, + S2: Geom_Surface, + Tol: float, + Approx: Optional[bool] = True, + ApproxS1: Optional[bool] = False, + ApproxS2: Optional[bool] = False, + ) -> None: ... def Boundary(self, Index: int) -> Geom_Curve: ... @overload @staticmethod - def BuildPCurves(theFirst: float, theLast: float, theUmin: float, theUmax: float, theVmin: float, theVmax: float, theSurface: Geom_Surface, theCurve: Geom_Curve, theCurve2d: Geom2d_Curve) -> float: ... + def BuildPCurves( + theFirst: float, + theLast: float, + theUmin: float, + theUmax: float, + theVmin: float, + theVmax: float, + theSurface: Geom_Surface, + theCurve: Geom_Curve, + theCurve2d: Geom2d_Curve, + ) -> float: ... @overload @staticmethod - def BuildPCurves(f: float, l: float, S: Geom_Surface, C: Geom_Curve, C2d: Geom2d_Curve) -> float: ... + def BuildPCurves( + f: float, l: float, S: Geom_Surface, C: Geom_Curve, C2d: Geom2d_Curve + ) -> float: ... def HasLineOnS1(self, Index: int) -> bool: ... def HasLineOnS2(self, Index: int) -> bool: ... def IsDone(self) -> bool: ... @@ -125,38 +257,106 @@ class GeomInt_IntSS: @staticmethod def MakeBSpline(WL: IntPatch_WLine, ideb: int, ifin: int) -> Geom_Curve: ... @staticmethod - def MakeBSpline2d(theWLine: IntPatch_WLine, ideb: int, ifin: int, onFirst: bool) -> Geom2d_BSplineCurve: ... + def MakeBSpline2d( + theWLine: IntPatch_WLine, ideb: int, ifin: int, onFirst: bool + ) -> Geom2d_BSplineCurve: ... def NbBoundaries(self) -> int: ... def NbLines(self) -> int: ... def NbPoints(self) -> int: ... @overload - def Perform(self, S1: Geom_Surface, S2: Geom_Surface, Tol: float, Approx: Optional[bool] = True, ApproxS1: Optional[bool] = False, ApproxS2: Optional[bool] = False) -> None: ... - @overload - def Perform(self, HS1: GeomAdaptor_Surface, HS2: GeomAdaptor_Surface, Tol: float, Approx: Optional[bool] = True, ApproxS1: Optional[bool] = False, ApproxS2: Optional[bool] = False) -> None: ... - @overload - def Perform(self, S1: Geom_Surface, S2: Geom_Surface, Tol: float, U1: float, V1: float, U2: float, V2: float, Approx: Optional[bool] = True, ApproxS1: Optional[bool] = False, ApproxS2: Optional[bool] = False) -> None: ... - @overload - def Perform(self, HS1: GeomAdaptor_Surface, HS2: GeomAdaptor_Surface, Tol: float, U1: float, V1: float, U2: float, V2: float, Approx: Optional[bool] = True, ApproxS1: Optional[bool] = False, ApproxS2: Optional[bool] = False) -> None: ... + def Perform( + self, + S1: Geom_Surface, + S2: Geom_Surface, + Tol: float, + Approx: Optional[bool] = True, + ApproxS1: Optional[bool] = False, + ApproxS2: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + HS1: GeomAdaptor_Surface, + HS2: GeomAdaptor_Surface, + Tol: float, + Approx: Optional[bool] = True, + ApproxS1: Optional[bool] = False, + ApproxS2: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + S1: Geom_Surface, + S2: Geom_Surface, + Tol: float, + U1: float, + V1: float, + U2: float, + V2: float, + Approx: Optional[bool] = True, + ApproxS1: Optional[bool] = False, + ApproxS2: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + HS1: GeomAdaptor_Surface, + HS2: GeomAdaptor_Surface, + Tol: float, + U1: float, + V1: float, + U2: float, + V2: float, + Approx: Optional[bool] = True, + ApproxS1: Optional[bool] = False, + ApproxS2: Optional[bool] = False, + ) -> None: ... def Pnt2d(self, Index: int, OnFirst: bool) -> gp_Pnt2d: ... def Point(self, Index: int) -> gp_Pnt: ... def TolReached2d(self) -> float: ... def TolReached3d(self) -> float: ... @staticmethod - def TreatRLine(theRL: IntPatch_RLine, theHS1: GeomAdaptor_Surface, theHS2: GeomAdaptor_Surface, theC3d: Geom_Curve, theC2d1: Geom2d_Curve, theC2d2: Geom2d_Curve) -> float: ... + def TreatRLine( + theRL: IntPatch_RLine, + theHS1: GeomAdaptor_Surface, + theHS2: GeomAdaptor_Surface, + theC3d: Geom_Curve, + theC2d1: Geom2d_Curve, + theC2d2: Geom2d_Curve, + ) -> float: ... @staticmethod - def TrimILineOnSurfBoundaries(theC2d1: Geom2d_Curve, theC2d2: Geom2d_Curve, theBound1: Bnd_Box2d, theBound2: Bnd_Box2d, theArrayOfParameters: GeomInt_VectorOfReal) -> None: ... + def TrimILineOnSurfBoundaries( + theC2d1: Geom2d_Curve, + theC2d2: Geom2d_Curve, + theBound1: Bnd_Box2d, + theBound2: Bnd_Box2d, + theArrayOfParameters: GeomInt_VectorOfReal, + ) -> None: ... class GeomInt_LineConstructor: def __init__(self) -> None: ... def IsDone(self) -> bool: ... - def Load(self, D1: Adaptor3d_TopolTool, D2: Adaptor3d_TopolTool, S1: GeomAdaptor_Surface, S2: GeomAdaptor_Surface) -> None: ... + def Load( + self, + D1: Adaptor3d_TopolTool, + D2: Adaptor3d_TopolTool, + S1: GeomAdaptor_Surface, + S2: GeomAdaptor_Surface, + ) -> None: ... def NbParts(self) -> int: ... def Part(self, I: int) -> Tuple[float, float]: ... def Perform(self, L: IntPatch_Line) -> None: ... class GeomInt_LineTool: @staticmethod - def DecompositionOfWLine(theWLine: IntPatch_WLine, theSurface1: GeomAdaptor_Surface, theSurface2: GeomAdaptor_Surface, aTolSum: float, theLConstructor: GeomInt_LineConstructor, theNewLines: IntPatch_SequenceOfLine) -> bool: ... + def DecompositionOfWLine( + theWLine: IntPatch_WLine, + theSurface1: GeomAdaptor_Surface, + theSurface2: GeomAdaptor_Surface, + aTolSum: float, + theLConstructor: GeomInt_LineConstructor, + theNewLines: IntPatch_SequenceOfLine, + ) -> bool: ... @staticmethod def FirstParameter(L: IntPatch_Line) -> float: ... @staticmethod @@ -168,9 +368,37 @@ class GeomInt_LineTool: class GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox: @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 1) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Deg: int, Tol3d: float, Tol2d: float, NbIterations: int, lambda1: float, lambda2: float) -> None: ... + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 1, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: int, + lambda1: float, + lambda2: float, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -179,7 +407,18 @@ class GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox: def Value(self) -> AppParCurves_MultiBSpCurve: ... class GeomInt_MyGradientOfTheComputeLineBezierOfWLApprox: - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -188,7 +427,18 @@ class GeomInt_MyGradientOfTheComputeLineBezierOfWLApprox: def Value(self) -> AppParCurves_MultiCurve: ... class GeomInt_MyGradientbisOfTheComputeLineOfWLApprox: - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int, Tol3d: float, Tol2d: float, NbIterations: Optional[int] = 200) -> None: ... + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + Tol3d: float, + Tol2d: float, + NbIterations: Optional[int] = 200, + ) -> None: ... def AverageError(self) -> float: ... def Error(self, Index: int) -> float: ... def IsDone(self) -> bool: ... @@ -196,13 +446,27 @@ class GeomInt_MyGradientbisOfTheComputeLineOfWLApprox: def MaxError3d(self) -> float: ... def Value(self) -> AppParCurves_MultiCurve: ... -class GeomInt_ParFunctionOfMyGradientOfTheComputeLineBezierOfWLApprox(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int) -> None: ... +class GeomInt_ParFunctionOfMyGradientOfTheComputeLineBezierOfWLApprox( + math_MultipleVarFunctionWithGradient +): + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiCurve: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -210,13 +474,27 @@ class GeomInt_ParFunctionOfMyGradientOfTheComputeLineBezierOfWLApprox(math_Multi def Value(self, X: math_Vector) -> Tuple[bool, float]: ... def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... -class GeomInt_ParFunctionOfMyGradientbisOfTheComputeLineOfWLApprox(math_MultipleVarFunctionWithGradient): - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, TheConstraints: AppParCurves_HArray1OfConstraintCouple, Parameters: math_Vector, Deg: int) -> None: ... +class GeomInt_ParFunctionOfMyGradientbisOfTheComputeLineOfWLApprox( + math_MultipleVarFunctionWithGradient +): + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + TheConstraints: AppParCurves_HArray1OfConstraintCouple, + Parameters: math_Vector, + Deg: int, + ) -> None: ... def CurveValue(self) -> AppParCurves_MultiCurve: ... def Error(self, IPoint: int, CurveIndex: int) -> float: ... - def FirstConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int) -> AppParCurves_Constraint: ... + def FirstConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, FirstPoint: int + ) -> AppParCurves_Constraint: ... def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... - def LastConstraint(self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int) -> AppParCurves_Constraint: ... + def LastConstraint( + self, TheConstraints: AppParCurves_HArray1OfConstraintCouple, LastPoint: int + ) -> AppParCurves_Constraint: ... def MaxError2d(self) -> float: ... def MaxError3d(self) -> float: ... def NbVariables(self) -> int: ... @@ -226,13 +504,51 @@ class GeomInt_ParFunctionOfMyGradientbisOfTheComputeLineOfWLApprox(math_Multiple class GeomInt_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfWLApprox: @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -249,21 +565,75 @@ class GeomInt_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfWLApprox: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... class GeomInt_ParLeastSquareOfMyGradientbisOfTheComputeLineOfWLApprox: @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: int) -> None: ... - @overload - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, FirstPoint: int, LastPoint: int, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: int) -> None: ... + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + Parameters: math_Vector, + NbPol: int, + ) -> None: ... + @overload + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + FirstPoint: int, + LastPoint: int, + FirstCons: AppParCurves_Constraint, + LastCons: AppParCurves_Constraint, + NbPol: int, + ) -> None: ... def BSplineValue(self) -> AppParCurves_MultiBSpCurve: ... def BezierValue(self) -> AppParCurves_MultiCurve: ... def DerivativeFunctionMatrix(self) -> math_Matrix: ... @@ -280,9 +650,25 @@ class GeomInt_ParLeastSquareOfMyGradientbisOfTheComputeLineOfWLApprox: @overload def Perform(self, Parameters: math_Vector, l1: float, l2: float) -> None: ... @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: float, l2: float) -> None: ... - @overload - def Perform(self, Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: float, l2: float) -> None: ... + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + l1: float, + l2: float, + ) -> None: ... + @overload + def Perform( + self, + Parameters: math_Vector, + V1t: math_Vector, + V2t: math_Vector, + V1c: math_Vector, + V2c: math_Vector, + l1: float, + l2: float, + ) -> None: ... def Points(self) -> math_Matrix: ... def Poles(self) -> math_Matrix: ... @@ -290,7 +676,9 @@ class GeomInt_ParameterAndOrientation: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: float, Or1: TopAbs_Orientation, Or2: TopAbs_Orientation) -> None: ... + def __init__( + self, P: float, Or1: TopAbs_Orientation, Or2: TopAbs_Orientation + ) -> None: ... def Orientation1(self) -> TopAbs_Orientation: ... def Orientation2(self) -> TopAbs_Orientation: ... def Parameter(self) -> float: ... @@ -298,16 +686,48 @@ class GeomInt_ParameterAndOrientation: def SetOrientation2(self, Or: TopAbs_Orientation) -> None: ... class GeomInt_ResConstraintOfMyGradientOfTheComputeLineBezierOfWLApprox: - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, SCurv: AppParCurves_MultiCurve, FirstPoint: int, LastPoint: int, Constraints: AppParCurves_HArray1OfConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance: Optional[float] = 1.0e-10) -> None: ... - def ConstraintDerivative(self, SSP: GeomInt_TheMultiLineOfWLApprox, Parameters: math_Vector, Deg: int, DA: math_Matrix) -> math_Matrix: ... + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + SCurv: AppParCurves_MultiCurve, + FirstPoint: int, + LastPoint: int, + Constraints: AppParCurves_HArray1OfConstraintCouple, + Bern: math_Matrix, + DerivativeBern: math_Matrix, + Tolerance: Optional[float] = 1.0e-10, + ) -> None: ... + def ConstraintDerivative( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + Parameters: math_Vector, + Deg: int, + DA: math_Matrix, + ) -> math_Matrix: ... def ConstraintMatrix(self) -> math_Matrix: ... def Duale(self) -> math_Vector: ... def InverseMatrix(self) -> math_Matrix: ... def IsDone(self) -> bool: ... class GeomInt_ResConstraintOfMyGradientbisOfTheComputeLineOfWLApprox: - def __init__(self, SSP: GeomInt_TheMultiLineOfWLApprox, SCurv: AppParCurves_MultiCurve, FirstPoint: int, LastPoint: int, Constraints: AppParCurves_HArray1OfConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance: Optional[float] = 1.0e-10) -> None: ... - def ConstraintDerivative(self, SSP: GeomInt_TheMultiLineOfWLApprox, Parameters: math_Vector, Deg: int, DA: math_Matrix) -> math_Matrix: ... + def __init__( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + SCurv: AppParCurves_MultiCurve, + FirstPoint: int, + LastPoint: int, + Constraints: AppParCurves_HArray1OfConstraintCouple, + Bern: math_Matrix, + DerivativeBern: math_Matrix, + Tolerance: Optional[float] = 1.0e-10, + ) -> None: ... + def ConstraintDerivative( + self, + SSP: GeomInt_TheMultiLineOfWLApprox, + Parameters: math_Vector, + Deg: int, + DA: math_Matrix, + ) -> math_Matrix: ... def ConstraintMatrix(self) -> math_Matrix: ... def Duale(self) -> math_Vector: ... def InverseMatrix(self) -> math_Matrix: ... @@ -315,23 +735,77 @@ class GeomInt_ResConstraintOfMyGradientbisOfTheComputeLineOfWLApprox: class GeomInt_TheComputeLineBezierOfWLApprox: @overload - def __init__(self, Line: GeomInt_TheMultiLineOfWLApprox, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-3, Tolerance2d: Optional[float] = 1.0e-6, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Line: GeomInt_TheMultiLineOfWLApprox, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def __init__( + self, + Line: GeomInt_TheMultiLineOfWLApprox, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-3, + Tolerance2d: Optional[float] = 1.0e-6, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Line: GeomInt_TheMultiLineOfWLApprox, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def ChangeValue(self, Index: Optional[int] = 1) -> AppParCurves_MultiCurve: ... def Error(self, Index: int) -> Tuple[float, float]: ... - def Init(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def Init( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def IsAllApproximated(self) -> bool: ... def IsToleranceReached(self) -> bool: ... def NbMultiCurves(self) -> int: ... def Parameters(self, Index: Optional[int] = 1) -> TColStd_Array1OfReal: ... def Parametrization(self) -> Approx_ParametrizationType: ... def Perform(self, Line: GeomInt_TheMultiLineOfWLApprox) -> None: ... - def SetConstraints(self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint) -> None: ... + def SetConstraints( + self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint + ) -> None: ... def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... def SetTolerances(self, Tolerance3d: float, Tolerance2d: float) -> None: ... def SplineValue(self) -> AppParCurves_MultiBSpCurve: ... @@ -339,41 +813,112 @@ class GeomInt_TheComputeLineBezierOfWLApprox: class GeomInt_TheComputeLineOfWLApprox: @overload - def __init__(self, Line: GeomInt_TheMultiLineOfWLApprox, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-3, Tolerance2d: Optional[float] = 1.0e-6, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Line: GeomInt_TheMultiLineOfWLApprox, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, Parameters: math_Vector, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, Squares: Optional[bool] = False) -> None: ... - @overload - def __init__(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def __init__( + self, + Line: GeomInt_TheMultiLineOfWLApprox, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-3, + Tolerance2d: Optional[float] = 1.0e-6, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Line: GeomInt_TheMultiLineOfWLApprox, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Parameters: math_Vector, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + Squares: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def ChangeValue(self) -> AppParCurves_MultiBSpCurve: ... def Error(self) -> Tuple[float, float]: ... - def Init(self, degreemin: Optional[int] = 4, degreemax: Optional[int] = 8, Tolerance3d: Optional[float] = 1.0e-03, Tolerance2d: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 5, cutting: Optional[bool] = True, parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, Squares: Optional[bool] = False) -> None: ... + def Init( + self, + degreemin: Optional[int] = 4, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-03, + Tolerance2d: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 5, + cutting: Optional[bool] = True, + parametrization: Optional[Approx_ParametrizationType] = Approx_ChordLength, + Squares: Optional[bool] = False, + ) -> None: ... def Interpol(self, Line: GeomInt_TheMultiLineOfWLApprox) -> None: ... def IsAllApproximated(self) -> bool: ... def IsToleranceReached(self) -> bool: ... def Parameters(self) -> TColStd_Array1OfReal: ... def Perform(self, Line: GeomInt_TheMultiLineOfWLApprox) -> None: ... - def SetConstraints(self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint) -> None: ... + def SetConstraints( + self, firstC: AppParCurves_Constraint, lastC: AppParCurves_Constraint + ) -> None: ... def SetContinuity(self, C: int) -> None: ... def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... def SetKnots(self, Knots: TColStd_Array1OfReal) -> None: ... - def SetKnotsAndMultiplicities(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger) -> None: ... + def SetKnotsAndMultiplicities( + self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger + ) -> None: ... def SetParameters(self, ThePar: math_Vector) -> None: ... def SetPeriodic(self, thePeriodic: bool) -> None: ... def SetTolerances(self, Tolerance3d: float, Tolerance2d: float) -> None: ... def Value(self) -> AppParCurves_MultiBSpCurve: ... -class GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox(math_FunctionSetWithDerivatives): +class GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox( + math_FunctionSetWithDerivatives +): def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface) -> None: ... def AuxillarSurface1(self) -> Adaptor3d_Surface: ... def AuxillarSurface2(self) -> Adaptor3d_Surface: ... - def ComputeParameters(self, ChoixIso: IntImp_ConstIsoparametric, Param: TColStd_Array1OfReal, UVap: math_Vector, BornInf: math_Vector, BornSup: math_Vector, Tolerance: math_Vector) -> None: ... + def ComputeParameters( + self, + ChoixIso: IntImp_ConstIsoparametric, + Param: TColStd_Array1OfReal, + UVap: math_Vector, + BornInf: math_Vector, + BornSup: math_Vector, + Tolerance: math_Vector, + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def Direction(self) -> gp_Dir: ... def DirectionOnS1(self) -> gp_Dir2d: ... def DirectionOnS2(self) -> gp_Dir2d: ... - def IsTangent(self, UVap: math_Vector, Param: TColStd_Array1OfReal, BestChoix: IntImp_ConstIsoparametric) -> bool: ... + def IsTangent( + self, + UVap: math_Vector, + Param: TColStd_Array1OfReal, + BestChoix: IntImp_ConstIsoparametric, + ) -> bool: ... def NbEquations(self) -> int: ... def NbVariables(self) -> int: ... def Point(self) -> gp_Pnt: ... @@ -386,44 +931,114 @@ class GeomInt_TheImpPrmSvSurfacesOfWLApprox(ApproxInt_SvSurfaces): def __init__(self, Surf1: Adaptor3d_Surface, Surf2: IntSurf_Quadric) -> None: ... @overload def __init__(self, Surf1: IntSurf_Quadric, Surf2: Adaptor3d_Surface) -> None: ... - def Compute(self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d) -> Tuple[bool, float, float, float, float]: ... + def Compute( + self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d + ) -> Tuple[bool, float, float, float, float]: ... def Pnt(self, u1: float, v1: float, u2: float, v2: float, P: gp_Pnt) -> None: ... - def SeekPoint(self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S) -> bool: ... - def Tangency(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec) -> bool: ... - def TangencyOnSurf1(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... - def TangencyOnSurf2(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... + def SeekPoint( + self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S + ) -> bool: ... + def Tangency( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec + ) -> bool: ... + def TangencyOnSurf1( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... + def TangencyOnSurf2( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... class GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox: @overload - def __init__(self, Param: TColStd_Array1OfReal, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: float) -> None: ... - @overload - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: float) -> None: ... + def __init__( + self, + Param: TColStd_Array1OfReal, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + TolTangency: float, + ) -> None: ... + @overload + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: float + ) -> None: ... def ChangePoint(self) -> IntSurf_PntOn2S: ... def Direction(self) -> gp_Dir: ... def DirectionOnS1(self) -> gp_Dir2d: ... def DirectionOnS2(self) -> gp_Dir2d: ... - def Function(self) -> GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox: ... + def Function( + self, + ) -> GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox: ... def IsDone(self) -> bool: ... def IsEmpty(self) -> bool: ... def IsTangent(self) -> bool: ... @overload - def Perform(self, Param: TColStd_Array1OfReal, Rsnld: math_FunctionSetRoot) -> IntImp_ConstIsoparametric: ... + def Perform( + self, Param: TColStd_Array1OfReal, Rsnld: math_FunctionSetRoot + ) -> IntImp_ConstIsoparametric: ... @overload - def Perform(self, Param: TColStd_Array1OfReal, Rsnld: math_FunctionSetRoot, ChoixIso: IntImp_ConstIsoparametric) -> IntImp_ConstIsoparametric: ... + def Perform( + self, + Param: TColStd_Array1OfReal, + Rsnld: math_FunctionSetRoot, + ChoixIso: IntImp_ConstIsoparametric, + ) -> IntImp_ConstIsoparametric: ... def Point(self) -> IntSurf_PntOn2S: ... class GeomInt_TheMultiLineOfWLApprox: @overload def __init__(self) -> None: ... @overload - def __init__(self, line: IntPatch_WLine, PtrSvSurfaces: None, NbP3d: int, NbP2d: int, ApproxU1V1: bool, ApproxU2V2: bool, xo: float, yo: float, zo: float, u1o: float, v1o: float, u2o: float, v2o: float, P2DOnFirst: bool, IndMin: Optional[int] = 0, IndMax: Optional[int] = 0) -> None: ... - @overload - def __init__(self, line: IntPatch_WLine, NbP3d: int, NbP2d: int, ApproxU1V1: bool, ApproxU2V2: bool, xo: float, yo: float, zo: float, u1o: float, v1o: float, u2o: float, v2o: float, P2DOnFirst: bool, IndMin: Optional[int] = 0, IndMax: Optional[int] = 0) -> None: ... + def __init__( + self, + line: IntPatch_WLine, + PtrSvSurfaces: None, + NbP3d: int, + NbP2d: int, + ApproxU1V1: bool, + ApproxU2V2: bool, + xo: float, + yo: float, + zo: float, + u1o: float, + v1o: float, + u2o: float, + v2o: float, + P2DOnFirst: bool, + IndMin: Optional[int] = 0, + IndMax: Optional[int] = 0, + ) -> None: ... + @overload + def __init__( + self, + line: IntPatch_WLine, + NbP3d: int, + NbP2d: int, + ApproxU1V1: bool, + ApproxU2V2: bool, + xo: float, + yo: float, + zo: float, + u1o: float, + v1o: float, + u2o: float, + v2o: float, + P2DOnFirst: bool, + IndMin: Optional[int] = 0, + IndMax: Optional[int] = 0, + ) -> None: ... def Dump(self) -> None: ... def FirstPoint(self) -> int: ... def LastPoint(self) -> int: ... - def MakeMLBetween(self, Low: int, High: int, NbPointsToInsert: int) -> GeomInt_TheMultiLineOfWLApprox: ... - def MakeMLOneMorePoint(self, Low: int, High: int, indbad: int, OtherLine: GeomInt_TheMultiLineOfWLApprox) -> bool: ... + def MakeMLBetween( + self, Low: int, High: int, NbPointsToInsert: int + ) -> GeomInt_TheMultiLineOfWLApprox: ... + def MakeMLOneMorePoint( + self, + Low: int, + High: int, + indbad: int, + OtherLine: GeomInt_TheMultiLineOfWLApprox, + ) -> bool: ... def NbP2d(self) -> int: ... def NbP3d(self) -> int: ... @overload @@ -431,25 +1046,40 @@ class GeomInt_TheMultiLineOfWLApprox: @overload def Tangency(self, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d) -> bool: ... @overload - def Tangency(self, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Tangency( + self, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d + ) -> bool: ... @overload def Value(self, MPointIndex: int, tabPt: TColgp_Array1OfPnt) -> None: ... @overload def Value(self, MPointIndex: int, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... @overload - def Value(self, MPointIndex: int, tabPt: TColgp_Array1OfPnt, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... + def Value( + self, MPointIndex: int, tabPt: TColgp_Array1OfPnt, tabPt2d: TColgp_Array1OfPnt2d + ) -> None: ... def WhatStatus(self) -> Approx_Status: ... class GeomInt_TheMultiLineToolOfWLApprox: @overload @staticmethod - def Curvature(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabV: TColgp_Array1OfVec) -> bool: ... + def Curvature( + ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabV: TColgp_Array1OfVec + ) -> bool: ... @overload @staticmethod - def Curvature(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Curvature( + ML: GeomInt_TheMultiLineOfWLApprox, + MPointIndex: int, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @overload @staticmethod - def Curvature(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Curvature( + ML: GeomInt_TheMultiLineOfWLApprox, + MPointIndex: int, + tabV: TColgp_Array1OfVec, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @staticmethod def Dump(ML: GeomInt_TheMultiLineOfWLApprox) -> None: ... @staticmethod @@ -457,44 +1087,88 @@ class GeomInt_TheMultiLineToolOfWLApprox: @staticmethod def LastPoint(ML: GeomInt_TheMultiLineOfWLApprox) -> int: ... @staticmethod - def MakeMLBetween(ML: GeomInt_TheMultiLineOfWLApprox, I1: int, I2: int, NbPMin: int) -> GeomInt_TheMultiLineOfWLApprox: ... + def MakeMLBetween( + ML: GeomInt_TheMultiLineOfWLApprox, I1: int, I2: int, NbPMin: int + ) -> GeomInt_TheMultiLineOfWLApprox: ... @staticmethod - def MakeMLOneMorePoint(ML: GeomInt_TheMultiLineOfWLApprox, I1: int, I2: int, indbad: int, OtherLine: GeomInt_TheMultiLineOfWLApprox) -> bool: ... + def MakeMLOneMorePoint( + ML: GeomInt_TheMultiLineOfWLApprox, + I1: int, + I2: int, + indbad: int, + OtherLine: GeomInt_TheMultiLineOfWLApprox, + ) -> bool: ... @staticmethod def NbP2d(ML: GeomInt_TheMultiLineOfWLApprox) -> int: ... @staticmethod def NbP3d(ML: GeomInt_TheMultiLineOfWLApprox) -> int: ... @overload @staticmethod - def Tangency(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabV: TColgp_Array1OfVec) -> bool: ... + def Tangency( + ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabV: TColgp_Array1OfVec + ) -> bool: ... @overload @staticmethod - def Tangency(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Tangency( + ML: GeomInt_TheMultiLineOfWLApprox, + MPointIndex: int, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @overload @staticmethod - def Tangency(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabV: TColgp_Array1OfVec, tabV2d: TColgp_Array1OfVec2d) -> bool: ... + def Tangency( + ML: GeomInt_TheMultiLineOfWLApprox, + MPointIndex: int, + tabV: TColgp_Array1OfVec, + tabV2d: TColgp_Array1OfVec2d, + ) -> bool: ... @overload @staticmethod - def Value(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabPt: TColgp_Array1OfPnt) -> None: ... + def Value( + ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabPt: TColgp_Array1OfPnt + ) -> None: ... @overload @staticmethod - def Value(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... + def Value( + ML: GeomInt_TheMultiLineOfWLApprox, + MPointIndex: int, + tabPt2d: TColgp_Array1OfPnt2d, + ) -> None: ... @overload @staticmethod - def Value(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: int, tabPt: TColgp_Array1OfPnt, tabPt2d: TColgp_Array1OfPnt2d) -> None: ... + def Value( + ML: GeomInt_TheMultiLineOfWLApprox, + MPointIndex: int, + tabPt: TColgp_Array1OfPnt, + tabPt2d: TColgp_Array1OfPnt2d, + ) -> None: ... @staticmethod - def WhatStatus(ML: GeomInt_TheMultiLineOfWLApprox, I1: int, I2: int) -> Approx_Status: ... + def WhatStatus( + ML: GeomInt_TheMultiLineOfWLApprox, I1: int, I2: int + ) -> Approx_Status: ... class GeomInt_ThePrmPrmSvSurfacesOfWLApprox(ApproxInt_SvSurfaces): def __init__(self, Surf1: Adaptor3d_Surface, Surf2: Adaptor3d_Surface) -> None: ... - def Compute(self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d) -> Tuple[bool, float, float, float, float]: ... + def Compute( + self, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d + ) -> Tuple[bool, float, float, float, float]: ... def Pnt(self, u1: float, v1: float, u2: float, v2: float, P: gp_Pnt) -> None: ... - def SeekPoint(self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S) -> bool: ... - def Tangency(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec) -> bool: ... - def TangencyOnSurf1(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... - def TangencyOnSurf2(self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d) -> bool: ... + def SeekPoint( + self, u1: float, v1: float, u2: float, v2: float, Point: IntSurf_PntOn2S + ) -> bool: ... + def Tangency( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec + ) -> bool: ... + def TangencyOnSurf1( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... + def TangencyOnSurf2( + self, u1: float, v1: float, u2: float, v2: float, Tg: gp_Vec2d + ) -> bool: ... -class GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox(math_FunctionSetWithDerivatives): +class GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox( + math_FunctionSetWithDerivatives +): @overload def __init__(self) -> None: ... @overload @@ -520,10 +1194,9 @@ class GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox(math_FunctionSetWithD def Value(self, X: math_Vector, F: math_Vector) -> bool: ... def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... -#classnotwrapped +# classnotwrapped class GeomInt_WLApprox: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomLProp.pyi b/src/SWIG_files/wrapper/GeomLProp.pyi index f0b7ad4b4..f33e4fb3e 100644 --- a/src/SWIG_files/wrapper/GeomLProp.pyi +++ b/src/SWIG_files/wrapper/GeomLProp.pyi @@ -7,14 +7,24 @@ from OCC.Core.Geom import * from OCC.Core.GeomAbs import * from OCC.Core.gp import * - class geomlprop: @overload @staticmethod - def Continuity(C1: Geom_Curve, C2: Geom_Curve, u1: float, u2: float, r1: bool, r2: bool, tl: float, ta: float) -> GeomAbs_Shape: ... + def Continuity( + C1: Geom_Curve, + C2: Geom_Curve, + u1: float, + u2: float, + r1: bool, + r2: bool, + tl: float, + ta: float, + ) -> GeomAbs_Shape: ... @overload @staticmethod - def Continuity(C1: Geom_Curve, C2: Geom_Curve, u1: float, u2: float, r1: bool, r2: bool) -> GeomAbs_Shape: ... + def Continuity( + C1: Geom_Curve, C2: Geom_Curve, u1: float, u2: float, r1: bool, r2: bool + ) -> GeomAbs_Shape: ... class GeomLProp_CLProps: @overload @@ -43,7 +53,9 @@ class GeomLProp_CurveTool: @staticmethod def D2(C: Geom_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... @staticmethod - def D3(C: Geom_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + C: Geom_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @staticmethod def FirstParameter(C: Geom_Curve) -> float: ... @staticmethod @@ -53,7 +65,9 @@ class GeomLProp_CurveTool: class GeomLProp_SLProps: @overload - def __init__(self, S: Geom_Surface, U: float, V: float, N: int, Resolution: float) -> None: ... + def __init__( + self, S: Geom_Surface, U: float, V: float, N: int, Resolution: float + ) -> None: ... @overload def __init__(self, S: Geom_Surface, N: int, Resolution: float) -> None: ... @overload @@ -86,9 +100,21 @@ class GeomLProp_SurfaceTool: @staticmethod def Continuity(S: Geom_Surface) -> int: ... @staticmethod - def D1(S: Geom_Surface, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... + def D1( + S: Geom_Surface, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec + ) -> None: ... @staticmethod - def D2(S: Geom_Surface, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, DUV: gp_Vec) -> None: ... + def D2( + S: Geom_Surface, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + DUV: gp_Vec, + ) -> None: ... @staticmethod def DN(S: Geom_Surface, U: float, V: float, IU: int, IV: int) -> gp_Vec: ... @staticmethod @@ -97,4 +123,3 @@ class GeomLProp_SurfaceTool: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomLib.pyi b/src/SWIG_files/wrapper/GeomLib.pyi index 32a38efc0..ab8e18bb5 100644 --- a/src/SWIG_files/wrapper/GeomLib.pyi +++ b/src/SWIG_files/wrapper/GeomLib.pyi @@ -15,8 +15,10 @@ from OCC.Core.math import * from OCC.Core.AdvApprox import * from OCC.Core.Geom2dAdaptor import * -Adaptor2d_Curve2d = NewType("Adaptor2d_Curve2d", Adaptor2d_Curve2d) -GeomLib_DenominatorMultiplierPtr = NewType("GeomLib_DenominatorMultiplierPtr", GeomLib_DenominatorMultiplier) +Adaptor2d_Curve2d = NewType("Adaptor2d_Curve2d", Adaptor2d_Curve2d) +GeomLib_DenominatorMultiplierPtr = NewType( + "GeomLib_DenominatorMultiplierPtr", GeomLib_DenominatorMultiplier +) class GeomLib_Array1OfMat: @overload @@ -55,61 +57,137 @@ GeomLib_InversionProblem = GeomLib_InterpolationErrors.GeomLib_InversionProblem class geomlib: @staticmethod - def AdjustExtremity(Curve: Geom_BoundedCurve, P1: gp_Pnt, P2: gp_Pnt, T1: gp_Vec, T2: gp_Vec) -> None: ... + def AdjustExtremity( + Curve: Geom_BoundedCurve, P1: gp_Pnt, P2: gp_Pnt, T1: gp_Vec, T2: gp_Vec + ) -> None: ... @staticmethod - def AxeOfInertia(Points: TColgp_Array1OfPnt, Axe: gp_Ax2, Tol: Optional[float] = 1.0e-7) -> bool: ... + def AxeOfInertia( + Points: TColgp_Array1OfPnt, Axe: gp_Ax2, Tol: Optional[float] = 1.0e-7 + ) -> bool: ... @staticmethod - def BuildCurve3d(Tolerance: float, CurvePtr: Adaptor3d_CurveOnSurface, FirstParameter: float, LastParameter: float, NewCurvePtr: Geom_Curve, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, MaxDegree: Optional[int] = 14, MaxSegment: Optional[int] = 30) -> Tuple[float, float]: ... + def BuildCurve3d( + Tolerance: float, + CurvePtr: Adaptor3d_CurveOnSurface, + FirstParameter: float, + LastParameter: float, + NewCurvePtr: Geom_Curve, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + MaxDegree: Optional[int] = 14, + MaxSegment: Optional[int] = 30, + ) -> Tuple[float, float]: ... @staticmethod - def CancelDenominatorDerivative(BSurf: Geom_BSplineSurface, UDirection: bool, VDirection: bool) -> None: ... + def CancelDenominatorDerivative( + BSurf: Geom_BSplineSurface, UDirection: bool, VDirection: bool + ) -> None: ... @staticmethod - def DensifyArray1OfReal(MinNumPoints: int, InParameters: TColStd_Array1OfReal, OutParameters: TColStd_HArray1OfReal) -> None: ... + def DensifyArray1OfReal( + MinNumPoints: int, + InParameters: TColStd_Array1OfReal, + OutParameters: TColStd_HArray1OfReal, + ) -> None: ... @staticmethod - def EvalMaxDistanceAlongParameter(Curve: Adaptor3d_Curve, AReferenceCurve: Adaptor3d_Curve, Tolerance: float, Parameters: TColStd_Array1OfReal) -> float: ... + def EvalMaxDistanceAlongParameter( + Curve: Adaptor3d_Curve, + AReferenceCurve: Adaptor3d_Curve, + Tolerance: float, + Parameters: TColStd_Array1OfReal, + ) -> float: ... @staticmethod - def EvalMaxParametricDistance(Curve: Adaptor3d_Curve, AReferenceCurve: Adaptor3d_Curve, Tolerance: float, Parameters: TColStd_Array1OfReal) -> float: ... + def EvalMaxParametricDistance( + Curve: Adaptor3d_Curve, + AReferenceCurve: Adaptor3d_Curve, + Tolerance: float, + Parameters: TColStd_Array1OfReal, + ) -> float: ... @staticmethod - def ExtendCurveToPoint(Curve: Geom_BoundedCurve, Point: gp_Pnt, Cont: int, After: bool) -> None: ... + def ExtendCurveToPoint( + Curve: Geom_BoundedCurve, Point: gp_Pnt, Cont: int, After: bool + ) -> None: ... @staticmethod - def ExtendSurfByLength(Surf: Geom_BoundedSurface, Length: float, Cont: int, InU: bool, After: bool) -> None: ... + def ExtendSurfByLength( + Surf: Geom_BoundedSurface, Length: float, Cont: int, InU: bool, After: bool + ) -> None: ... @staticmethod - def FuseIntervals(Interval1: TColStd_Array1OfReal, Interval2: TColStd_Array1OfReal, Fusion: TColStd_SequenceOfReal, Confusion: Optional[float] = 1.0e-9, IsAdjustToFirstInterval: Optional[bool] = False) -> None: ... + def FuseIntervals( + Interval1: TColStd_Array1OfReal, + Interval2: TColStd_Array1OfReal, + Fusion: TColStd_SequenceOfReal, + Confusion: Optional[float] = 1.0e-9, + IsAdjustToFirstInterval: Optional[bool] = False, + ) -> None: ... @staticmethod def GTransform(Curve: Geom2d_Curve, GTrsf: gp_GTrsf2d) -> Geom2d_Curve: ... @staticmethod - def Inertia(Points: TColgp_Array1OfPnt, Bary: gp_Pnt, XDir: gp_Dir, YDir: gp_Dir) -> Tuple[float, float, float]: ... + def Inertia( + Points: TColgp_Array1OfPnt, Bary: gp_Pnt, XDir: gp_Dir, YDir: gp_Dir + ) -> Tuple[float, float, float]: ... @staticmethod - def IsBSplUClosed(S: Geom_BSplineSurface, U1: float, U2: float, Tol: float) -> bool: ... + def IsBSplUClosed( + S: Geom_BSplineSurface, U1: float, U2: float, Tol: float + ) -> bool: ... @staticmethod - def IsBSplVClosed(S: Geom_BSplineSurface, V1: float, V2: float, Tol: float) -> bool: ... + def IsBSplVClosed( + S: Geom_BSplineSurface, V1: float, V2: float, Tol: float + ) -> bool: ... @staticmethod - def IsBzUClosed(S: Geom_BezierSurface, U1: float, U2: float, Tol: float) -> bool: ... + def IsBzUClosed( + S: Geom_BezierSurface, U1: float, U2: float, Tol: float + ) -> bool: ... @staticmethod - def IsBzVClosed(S: Geom_BezierSurface, V1: float, V2: float, Tol: float) -> bool: ... + def IsBzVClosed( + S: Geom_BezierSurface, V1: float, V2: float, Tol: float + ) -> bool: ... @staticmethod def IsClosed(S: Geom_Surface, Tol: float) -> Tuple[bool, bool]: ... @staticmethod - def NormEstim(theSurf: Geom_Surface, theUV: gp_Pnt2d, theTol: float, theNorm: gp_Dir) -> int: ... + def NormEstim( + theSurf: Geom_Surface, theUV: gp_Pnt2d, theTol: float, theNorm: gp_Dir + ) -> int: ... @staticmethod - def RemovePointsFromArray(NumPoints: int, InParameters: TColStd_Array1OfReal, OutParameters: TColStd_HArray1OfReal) -> None: ... + def RemovePointsFromArray( + NumPoints: int, + InParameters: TColStd_Array1OfReal, + OutParameters: TColStd_HArray1OfReal, + ) -> None: ... @staticmethod - def SameRange(Tolerance: float, Curve2dPtr: Geom2d_Curve, First: float, Last: float, RequestedFirst: float, RequestedLast: float, NewCurve2dPtr: Geom2d_Curve) -> None: ... + def SameRange( + Tolerance: float, + Curve2dPtr: Geom2d_Curve, + First: float, + Last: float, + RequestedFirst: float, + RequestedLast: float, + NewCurve2dPtr: Geom2d_Curve, + ) -> None: ... @staticmethod def To3d(Position: gp_Ax2, Curve2d: Geom2d_Curve) -> Geom_Curve: ... @staticmethod - def buildC3dOnIsoLine(theC2D: Adaptor2d_Curve2d, theSurf: Adaptor3d_Surface, theFirst: float, theLast: float, theTolerance: float, theIsU: bool, theParam: float, theIsForward: bool) -> Geom_Curve: ... + def buildC3dOnIsoLine( + theC2D: Adaptor2d_Curve2d, + theSurf: Adaptor3d_Surface, + theFirst: float, + theLast: float, + theTolerance: float, + theIsU: bool, + theParam: float, + theIsForward: bool, + ) -> Geom_Curve: ... @staticmethod def isIsoLine(theC2D: Adaptor2d_Curve2d) -> Tuple[bool, bool, float, bool]: ... class GeomLib_Check2dBSplineCurve: - def __init__(self, Curve: Geom2d_BSplineCurve, Tolerance: float, AngularTolerance: float) -> None: ... + def __init__( + self, Curve: Geom2d_BSplineCurve, Tolerance: float, AngularTolerance: float + ) -> None: ... def FixTangent(self, FirstFlag: bool, LastFlag: bool) -> None: ... def FixedTangent(self, FirstFlag: bool, LastFlag: bool) -> Geom2d_BSplineCurve: ... def IsDone(self) -> bool: ... def NeedTangentFix(self) -> Tuple[bool, bool]: ... class GeomLib_CheckBSplineCurve: - def __init__(self, Curve: Geom_BSplineCurve, Tolerance: float, AngularTolerance: float) -> None: ... + def __init__( + self, Curve: Geom_BSplineCurve, Tolerance: float, AngularTolerance: float + ) -> None: ... def FixTangent(self, FirstFlag: bool, LastFlag: bool) -> None: ... def FixedTangent(self, FirstFlag: bool, LastFlag: bool) -> Geom_BSplineCurve: ... def IsDone(self) -> bool: ... @@ -119,10 +197,18 @@ class GeomLib_CheckCurveOnSurface: @overload def __init__(self) -> None: ... @overload - def __init__(self, theCurve: Adaptor3d_Curve, theTolRange: Optional[float] = Precision.PConfusion()) -> None: ... + def __init__( + self, + theCurve: Adaptor3d_Curve, + theTolRange: Optional[float] = Precision.PConfusion(), + ) -> None: ... def ErrorStatus(self) -> int: ... @overload - def Init(self, theCurve: Adaptor3d_Curve, theTolRange: Optional[float] = Precision.PConfusion()) -> None: ... + def Init( + self, + theCurve: Adaptor3d_Curve, + theTolRange: Optional[float] = Precision.PConfusion(), + ) -> None: ... @overload def Init(self) -> None: ... def IsDone(self) -> bool: ... @@ -133,11 +219,19 @@ class GeomLib_CheckCurveOnSurface: def SetParallel(self, theIsParallel: bool) -> None: ... class GeomLib_DenominatorMultiplier: - def __init__(self, Surface: Geom_BSplineSurface, KnotVector: TColStd_Array1OfReal) -> None: ... + def __init__( + self, Surface: Geom_BSplineSurface, KnotVector: TColStd_Array1OfReal + ) -> None: ... def Value(self, UParameter: float, VParameter: float) -> float: ... class GeomLib_Interpolate: - def __init__(self, Degree: int, NumPoints: int, Points: TColgp_Array1OfPnt, Parameters: TColStd_Array1OfReal) -> None: ... + def __init__( + self, + Degree: int, + NumPoints: int, + Points: TColgp_Array1OfPnt, + Parameters: TColStd_Array1OfReal, + ) -> None: ... def Curve(self) -> Geom_BSplineCurve: ... def Error(self) -> GeomLib_InterpolationErrors: ... def IsDone(self) -> bool: ... @@ -176,20 +270,42 @@ class GeomLib_PolyFunc(math_FunctionWithDerivative): class GeomLib_Tool: @overload @staticmethod - def ComputeDeviation(theCurve: Geom2dAdaptor_Curve, theFPar: float, theLPar: float, theStartParameter: float, theNbIters: Optional[int] = 100, thePrmOnCurve: Optional[float] = None, thePtOnCurve: Optional[gp_Pnt2d] = None, theVecCurvLine: Optional[gp_Vec2d] = None, theLine: Optional[gp_Lin2d] = None) -> float: ... + def ComputeDeviation( + theCurve: Geom2dAdaptor_Curve, + theFPar: float, + theLPar: float, + theStartParameter: float, + theNbIters: Optional[int] = 100, + thePrmOnCurve: Optional[float] = None, + thePtOnCurve: Optional[gp_Pnt2d] = None, + theVecCurvLine: Optional[gp_Vec2d] = None, + theLine: Optional[gp_Lin2d] = None, + ) -> float: ... @overload @staticmethod - def ComputeDeviation(theCurve: Geom2dAdaptor_Curve, theFPar: float, theLPar: float, theNbSubIntervals: int, theNbIters: Optional[int] = 10, thePrmOnCurve: Optional[float] = None) -> float: ... + def ComputeDeviation( + theCurve: Geom2dAdaptor_Curve, + theFPar: float, + theLPar: float, + theNbSubIntervals: int, + theNbIters: Optional[int] = 10, + thePrmOnCurve: Optional[float] = None, + ) -> float: ... @overload @staticmethod - def Parameter(Curve: Geom_Curve, Point: gp_Pnt, MaxDist: float) -> Tuple[bool, float]: ... + def Parameter( + Curve: Geom_Curve, Point: gp_Pnt, MaxDist: float + ) -> Tuple[bool, float]: ... @overload @staticmethod - def Parameter(Curve: Geom2d_Curve, Point: gp_Pnt2d, MaxDist: float) -> Tuple[bool, float]: ... + def Parameter( + Curve: Geom2d_Curve, Point: gp_Pnt2d, MaxDist: float + ) -> Tuple[bool, float]: ... @staticmethod - def Parameters(Surface: Geom_Surface, Point: gp_Pnt, MaxDist: float) -> Tuple[bool, float, float]: ... + def Parameters( + Surface: Geom_Surface, Point: gp_Pnt, MaxDist: float + ) -> Tuple[bool, float, float]: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomPlate.pyi b/src/SWIG_files/wrapper/GeomPlate.pyi index c3dde1c83..3d0eecada 100644 --- a/src/SWIG_files/wrapper/GeomPlate.pyi +++ b/src/SWIG_files/wrapper/GeomPlate.pyi @@ -18,7 +18,6 @@ from OCC.Core.AdvApp2Var import * from OCC.Core.GeomAbs import * from OCC.Core.Plate import * - class GeomPlate_Array1OfHCurve: @overload def __init__(self) -> None: ... @@ -68,49 +67,67 @@ class GeomPlate_Array1OfSequenceOfReal: def SetValue(self, theIndex: int, theValue: TColStd_SequenceOfReal) -> None: ... class GeomPlate_SequenceOfAij: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: GeomPlate_Aij) -> GeomPlate_Aij: ... def Clear(self) -> None: ... def First(self) -> GeomPlate_Aij: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> GeomPlate_Aij: ... def Length(self) -> int: ... - def Append(self, theItem: GeomPlate_Aij) -> GeomPlate_Aij: ... + def Lower(self) -> int: ... def Prepend(self, theItem: GeomPlate_Aij) -> GeomPlate_Aij: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> GeomPlate_Aij: ... def SetValue(self, theIndex: int, theValue: GeomPlate_Aij) -> None: ... - -class GeomPlate_SequenceOfCurveConstraint: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> GeomPlate_Aij: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class GeomPlate_SequenceOfCurveConstraint: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class GeomPlate_SequenceOfPointConstraint: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class GeomPlate_SequenceOfPointConstraint: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class GeomPlate_Aij: @overload @@ -120,11 +137,26 @@ class GeomPlate_Aij: class GeomPlate_BuildAveragePlane: @overload - def __init__(self, Pts: TColgp_HArray1OfPnt, NbBoundPoints: int, Tol: float, POption: int, NOption: int) -> None: ... + def __init__( + self, + Pts: TColgp_HArray1OfPnt, + NbBoundPoints: int, + Tol: float, + POption: int, + NOption: int, + ) -> None: ... @overload - def __init__(self, Normals: TColgp_SequenceOfVec, Pts: TColgp_HArray1OfPnt) -> None: ... + def __init__( + self, Normals: TColgp_SequenceOfVec, Pts: TColgp_HArray1OfPnt + ) -> None: ... @staticmethod - def HalfSpace(NewNormals: TColgp_SequenceOfVec, Normals: TColgp_SequenceOfVec, Bset: GeomPlate_SequenceOfAij, LinTol: float, AngTol: float) -> bool: ... + def HalfSpace( + NewNormals: TColgp_SequenceOfVec, + Normals: TColgp_SequenceOfVec, + Bset: GeomPlate_SequenceOfAij, + LinTol: float, + AngTol: float, + ) -> bool: ... def IsLine(self) -> bool: ... def IsPlane(self) -> bool: ... def Line(self) -> Geom_Line: ... @@ -133,11 +165,44 @@ class GeomPlate_BuildAveragePlane: class GeomPlate_BuildPlateSurface: @overload - def __init__(self, NPoints: TColStd_HArray1OfInteger, TabCurve: GeomPlate_HArray1OfHCurve, Tang: TColStd_HArray1OfInteger, Degree: int, NbIter: Optional[int] = 3, Tol2d: Optional[float] = 0.00001, Tol3d: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1, Anisotropie: Optional[bool] = False) -> None: ... + def __init__( + self, + NPoints: TColStd_HArray1OfInteger, + TabCurve: GeomPlate_HArray1OfHCurve, + Tang: TColStd_HArray1OfInteger, + Degree: int, + NbIter: Optional[int] = 3, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + Anisotropie: Optional[bool] = False, + ) -> None: ... @overload - def __init__(self, Surf: Geom_Surface, Degree: Optional[int] = 3, NbPtsOnCur: Optional[int] = 10, NbIter: Optional[int] = 3, Tol2d: Optional[float] = 0.00001, Tol3d: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1, Anisotropie: Optional[bool] = False) -> None: ... + def __init__( + self, + Surf: Geom_Surface, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 10, + NbIter: Optional[int] = 3, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + Anisotropie: Optional[bool] = False, + ) -> None: ... @overload - def __init__(self, Degree: Optional[int] = 3, NbPtsOnCur: Optional[int] = 10, NbIter: Optional[int] = 3, Tol2d: Optional[float] = 0.00001, Tol3d: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1, Anisotropie: Optional[bool] = False) -> None: ... + def __init__( + self, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 10, + NbIter: Optional[int] = 3, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + Anisotropie: Optional[bool] = False, + ) -> None: ... @overload def Add(self, Cont: GeomPlate_CurveConstraint) -> None: ... @overload @@ -145,7 +210,9 @@ class GeomPlate_BuildPlateSurface: def CurveConstraint(self, order: int) -> GeomPlate_CurveConstraint: ... def Curves2d(self) -> TColGeom2d_HArray1OfCurve: ... def Disc2dContour(self, nbp: int, Seq2d: TColgp_SequenceOfXY) -> None: ... - def Disc3dContour(self, nbp: int, iordre: int, Seq3d: TColgp_SequenceOfXYZ) -> None: ... + def Disc3dContour( + self, nbp: int, iordre: int, Seq3d: TColgp_SequenceOfXYZ + ) -> None: ... @overload def G0Error(self) -> float: ... @overload @@ -162,7 +229,9 @@ class GeomPlate_BuildPlateSurface: def IsDone(self) -> bool: ... def LoadInitSurface(self, Surf: Geom_Surface) -> None: ... def Order(self) -> TColStd_HArray1OfInteger: ... - def Perform(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Perform( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def PointConstraint(self, order: int) -> GeomPlate_PointConstraint: ... def Sense(self) -> TColStd_HArray1OfInteger: ... def SetNbBounds(self, NbBounds: int) -> None: ... @@ -173,12 +242,29 @@ class GeomPlate_CurveConstraint(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, Boundary: Adaptor3d_Curve, Order: int, NPt: Optional[int] = 10, TolDist: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1) -> None: ... + def __init__( + self, + Boundary: Adaptor3d_Curve, + Order: int, + NPt: Optional[int] = 10, + TolDist: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + ) -> None: ... def Curve2dOnSurf(self) -> Geom2d_Curve: ... def Curve3d(self) -> Adaptor3d_Curve: ... def D0(self, U: float, P: gp_Pnt) -> None: ... def D1(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... - def D2(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec, V4: gp_Vec, V5: gp_Vec) -> None: ... + def D2( + self, + U: float, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + V3: gp_Vec, + V4: gp_Vec, + V5: gp_Vec, + ) -> None: ... def FirstParameter(self) -> float: ... def G0Criterion(self, U: float) -> float: ... def G1Criterion(self, U: float) -> float: ... @@ -195,35 +281,83 @@ class GeomPlate_CurveConstraint(Standard_Transient): def SetG2Criterion(self, G2Crit: Law_Function) -> None: ... def SetNbPoints(self, NewNb: int) -> None: ... def SetOrder(self, Order: int) -> None: ... - def SetProjectedCurve(self, Curve2d: Adaptor2d_Curve2d, TolU: float, TolV: float) -> None: ... + def SetProjectedCurve( + self, Curve2d: Adaptor2d_Curve2d, TolU: float, TolV: float + ) -> None: ... class GeomPlate_MakeApprox: @overload - def __init__(self, SurfPlate: GeomPlate_Surface, PlateCrit: AdvApp2Var_Criterion, Tol3d: float, Nbmax: int, dgmax: int, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, EnlargeCoeff: Optional[float] = 1.1) -> None: ... + def __init__( + self, + SurfPlate: GeomPlate_Surface, + PlateCrit: AdvApp2Var_Criterion, + Tol3d: float, + Nbmax: int, + dgmax: int, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + EnlargeCoeff: Optional[float] = 1.1, + ) -> None: ... @overload - def __init__(self, SurfPlate: GeomPlate_Surface, Tol3d: float, Nbmax: int, dgmax: int, dmax: float, CritOrder: Optional[int] = 0, Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, EnlargeCoeff: Optional[float] = 1.1) -> None: ... + def __init__( + self, + SurfPlate: GeomPlate_Surface, + Tol3d: float, + Nbmax: int, + dgmax: int, + dmax: float, + CritOrder: Optional[int] = 0, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + EnlargeCoeff: Optional[float] = 1.1, + ) -> None: ... def ApproxError(self) -> float: ... def CriterionError(self) -> float: ... def Surface(self) -> Geom_BSplineSurface: ... class GeomPlate_PlateG0Criterion(AdvApp2Var_Criterion): - def __init__(self, Data: TColgp_SequenceOfXY, G0Data: TColgp_SequenceOfXYZ, Maximum: float, Type: Optional[AdvApp2Var_CriterionType] = AdvApp2Var_Absolute, Repart: Optional[AdvApp2Var_CriterionRepartition] = AdvApp2Var_Regular) -> None: ... + def __init__( + self, + Data: TColgp_SequenceOfXY, + G0Data: TColgp_SequenceOfXYZ, + Maximum: float, + Type: Optional[AdvApp2Var_CriterionType] = AdvApp2Var_Absolute, + Repart: Optional[AdvApp2Var_CriterionRepartition] = AdvApp2Var_Regular, + ) -> None: ... def IsSatisfied(self, P: AdvApp2Var_Patch) -> bool: ... def Value(self, P: AdvApp2Var_Patch, C: AdvApp2Var_Context) -> None: ... class GeomPlate_PlateG1Criterion(AdvApp2Var_Criterion): - def __init__(self, Data: TColgp_SequenceOfXY, G1Data: TColgp_SequenceOfXYZ, Maximum: float, Type: Optional[AdvApp2Var_CriterionType] = AdvApp2Var_Absolute, Repart: Optional[AdvApp2Var_CriterionRepartition] = AdvApp2Var_Regular) -> None: ... + def __init__( + self, + Data: TColgp_SequenceOfXY, + G1Data: TColgp_SequenceOfXYZ, + Maximum: float, + Type: Optional[AdvApp2Var_CriterionType] = AdvApp2Var_Absolute, + Repart: Optional[AdvApp2Var_CriterionRepartition] = AdvApp2Var_Regular, + ) -> None: ... def IsSatisfied(self, P: AdvApp2Var_Patch) -> bool: ... def Value(self, P: AdvApp2Var_Patch, C: AdvApp2Var_Context) -> None: ... class GeomPlate_PointConstraint(Standard_Transient): @overload - def __init__(self, Pt: gp_Pnt, Order: int, TolDist: Optional[float] = 0.0001) -> None: ... + def __init__( + self, Pt: gp_Pnt, Order: int, TolDist: Optional[float] = 0.0001 + ) -> None: ... @overload - def __init__(self, U: float, V: float, Surf: Geom_Surface, Order: int, TolDist: Optional[float] = 0.0001, TolAng: Optional[float] = 0.01, TolCurv: Optional[float] = 0.1) -> None: ... + def __init__( + self, + U: float, + V: float, + Surf: Geom_Surface, + Order: int, + TolDist: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + ) -> None: ... def D0(self, P: gp_Pnt) -> None: ... def D1(self, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... - def D2(self, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec, V4: gp_Vec, V5: gp_Vec) -> None: ... + def D2( + self, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec, V4: gp_Vec, V5: gp_Vec + ) -> None: ... def G0Criterion(self) -> float: ... def G1Criterion(self) -> float: ... def G2Criterion(self) -> float: ... @@ -246,8 +380,32 @@ class GeomPlate_Surface(Geom_Surface): def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... @@ -275,15 +433,18 @@ class GeomPlate_HArray1OfHCurve(GeomPlate_Array1OfHCurve, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> GeomPlate_Array1OfHCurve: ... - -class GeomPlate_HArray1OfSequenceOfReal(GeomPlate_Array1OfSequenceOfReal, Standard_Transient): +class GeomPlate_HArray1OfSequenceOfReal( + GeomPlate_Array1OfSequenceOfReal, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> GeomPlate_Array1OfSequenceOfReal: ... # harray2 classes # hsequence classes -class GeomPlate_HSequenceOfCurveConstraint(GeomPlate_SequenceOfCurveConstraint, Standard_Transient): +class GeomPlate_HSequenceOfCurveConstraint( + GeomPlate_SequenceOfCurveConstraint, Standard_Transient +): @overload def __init__(self) -> None: ... @overload @@ -291,13 +452,12 @@ class GeomPlate_HSequenceOfCurveConstraint(GeomPlate_SequenceOfCurveConstraint, def Sequence(self) -> GeomPlate_SequenceOfCurveConstraint: ... def Append(self, theSequence: GeomPlate_SequenceOfCurveConstraint) -> None: ... - -class GeomPlate_HSequenceOfPointConstraint(GeomPlate_SequenceOfPointConstraint, Standard_Transient): +class GeomPlate_HSequenceOfPointConstraint( + GeomPlate_SequenceOfPointConstraint, Standard_Transient +): @overload def __init__(self) -> None: ... @overload def __init__(self, other: GeomPlate_SequenceOfPointConstraint) -> None: ... def Sequence(self) -> GeomPlate_SequenceOfPointConstraint: ... def Append(self, theSequence: GeomPlate_SequenceOfPointConstraint) -> None: ... - - diff --git a/src/SWIG_files/wrapper/GeomProjLib.pyi b/src/SWIG_files/wrapper/GeomProjLib.pyi index 06404f4b7..77cf505ce 100644 --- a/src/SWIG_files/wrapper/GeomProjLib.pyi +++ b/src/SWIG_files/wrapper/GeomProjLib.pyi @@ -7,32 +7,59 @@ from OCC.Core.Geom import * from OCC.Core.Geom2d import * from OCC.Core.gp import * - class geomprojlib: @overload @staticmethod - def Curve2d(C: Geom_Curve, First: float, Last: float, S: Geom_Surface, UFirst: float, ULast: float, VFirst: float, VLast: float) -> Tuple[Geom2d_Curve, float]: ... + def Curve2d( + C: Geom_Curve, + First: float, + Last: float, + S: Geom_Surface, + UFirst: float, + ULast: float, + VFirst: float, + VLast: float, + ) -> Tuple[Geom2d_Curve, float]: ... @overload @staticmethod - def Curve2d(C: Geom_Curve, First: float, Last: float, S: Geom_Surface) -> Tuple[Geom2d_Curve, float]: ... + def Curve2d( + C: Geom_Curve, First: float, Last: float, S: Geom_Surface + ) -> Tuple[Geom2d_Curve, float]: ... @overload @staticmethod - def Curve2d(C: Geom_Curve, First: float, Last: float, S: Geom_Surface) -> Geom2d_Curve: ... + def Curve2d( + C: Geom_Curve, First: float, Last: float, S: Geom_Surface + ) -> Geom2d_Curve: ... @overload @staticmethod def Curve2d(C: Geom_Curve, S: Geom_Surface) -> Geom2d_Curve: ... @overload @staticmethod - def Curve2d(C: Geom_Curve, S: Geom_Surface, UDeb: float, UFin: float, VDeb: float, VFin: float) -> Geom2d_Curve: ... + def Curve2d( + C: Geom_Curve, + S: Geom_Surface, + UDeb: float, + UFin: float, + VDeb: float, + VFin: float, + ) -> Geom2d_Curve: ... @overload @staticmethod - def Curve2d(C: Geom_Curve, S: Geom_Surface, UDeb: float, UFin: float, VDeb: float, VFin: float) -> Tuple[Geom2d_Curve, float]: ... + def Curve2d( + C: Geom_Curve, + S: Geom_Surface, + UDeb: float, + UFin: float, + VDeb: float, + VFin: float, + ) -> Tuple[Geom2d_Curve, float]: ... @staticmethod def Project(C: Geom_Curve, S: Geom_Surface) -> Geom_Curve: ... @staticmethod - def ProjectOnPlane(Curve: Geom_Curve, Plane: Geom_Plane, Dir: gp_Dir, KeepParametrization: bool) -> Geom_Curve: ... + def ProjectOnPlane( + Curve: Geom_Curve, Plane: Geom_Plane, Dir: gp_Dir, KeepParametrization: bool + ) -> Geom_Curve: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomToStep.pyi b/src/SWIG_files/wrapper/GeomToStep.pyi index 0db11dd9f..d50e40dd9 100644 --- a/src/SWIG_files/wrapper/GeomToStep.pyi +++ b/src/SWIG_files/wrapper/GeomToStep.pyi @@ -10,72 +10,149 @@ from OCC.Core.Geom2d import * from OCC.Core.StepGeom import * from OCC.Core.TColgp import * - class GeomToStep_Root: def IsDone(self) -> bool: ... class GeomToStep_MakeAxis1Placement(GeomToStep_Root): @overload - def __init__(self, A: gp_Ax1, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, A: gp_Ax2d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, A: Geom_Axis1Placement, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, A: Geom2d_AxisPlacement, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + A: gp_Ax1, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + A: gp_Ax2d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + A: Geom_Axis1Placement, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + A: Geom2d_AxisPlacement, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Axis1Placement: ... class GeomToStep_MakeAxis2Placement2d(GeomToStep_Root): @overload - def __init__(self, A: gp_Ax2, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, A: gp_Ax22d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + A: gp_Ax2, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + A: gp_Ax22d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Axis2Placement2d: ... class GeomToStep_MakeAxis2Placement3d(GeomToStep_Root): @overload - def __init__(self, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, A: gp_Ax2, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, A: gp_Ax3, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, T: gp_Trsf, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, A: Geom_Axis2Placement, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, theLocalFactors: Optional[StepData_Factors] = StepData_Factors() + ) -> None: ... + @overload + def __init__( + self, + A: gp_Ax2, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + A: gp_Ax3, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + T: gp_Trsf, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + A: Geom_Axis2Placement, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Axis2Placement3d: ... class GeomToStep_MakeBSplineCurveWithKnots(GeomToStep_Root): @overload - def __init__(self, Bsplin: Geom_BSplineCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, Bsplin: Geom2d_BSplineCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + Bsplin: Geom_BSplineCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + Bsplin: Geom2d_BSplineCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_BSplineCurveWithKnots: ... class GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve(GeomToStep_Root): @overload - def __init__(self, Bsplin: Geom_BSplineCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, Bsplin: Geom2d_BSplineCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + Bsplin: Geom_BSplineCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + Bsplin: Geom2d_BSplineCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve: ... class GeomToStep_MakeBSplineSurfaceWithKnots(GeomToStep_Root): - def __init__(self, Bsplin: Geom_BSplineSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + Bsplin: Geom_BSplineSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_BSplineSurfaceWithKnots: ... class GeomToStep_MakeBSplineSurfaceWithKnotsAndRationalBSplineSurface(GeomToStep_Root): - def __init__(self, Bsplin: Geom_BSplineSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + Bsplin: Geom_BSplineSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface: ... class GeomToStep_MakeBoundedCurve(GeomToStep_Root): @overload - def __init__(self, C: Geom_BoundedCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom2d_BoundedCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + C: Geom_BoundedCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom2d_BoundedCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_BoundedCurve: ... class GeomToStep_MakeBoundedSurface(GeomToStep_Root): - def __init__(self, C: Geom_BoundedSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + C: Geom_BoundedSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_BoundedSurface: ... class GeomToStep_MakeCartesianPoint(GeomToStep_Root): @@ -91,33 +168,69 @@ class GeomToStep_MakeCartesianPoint(GeomToStep_Root): class GeomToStep_MakeCircle(GeomToStep_Root): @overload - def __init__(self, C: gp_Circ, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom_Circle, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom2d_Circle, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + C: gp_Circ, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom_Circle, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom2d_Circle, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Circle: ... class GeomToStep_MakeConic(GeomToStep_Root): @overload - def __init__(self, C: Geom_Conic, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom2d_Conic, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + C: Geom_Conic, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom2d_Conic, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Conic: ... class GeomToStep_MakeConicalSurface(GeomToStep_Root): - def __init__(self, CSurf: Geom_ConicalSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + CSurf: Geom_ConicalSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_ConicalSurface: ... class GeomToStep_MakeCurve(GeomToStep_Root): @overload - def __init__(self, C: Geom_Curve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom2d_Curve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + C: Geom_Curve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom2d_Curve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Curve: ... class GeomToStep_MakeCylindricalSurface(GeomToStep_Root): - def __init__(self, CSurf: Geom_CylindricalSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + CSurf: Geom_CylindricalSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_CylindricalSurface: ... class GeomToStep_MakeDirection(GeomToStep_Root): @@ -132,97 +245,204 @@ class GeomToStep_MakeDirection(GeomToStep_Root): def Value(self) -> StepGeom_Direction: ... class GeomToStep_MakeElementarySurface(GeomToStep_Root): - def __init__(self, S: Geom_ElementarySurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + S: Geom_ElementarySurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_ElementarySurface: ... class GeomToStep_MakeEllipse(GeomToStep_Root): @overload - def __init__(self, C: gp_Elips, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom_Ellipse, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom2d_Ellipse, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + C: gp_Elips, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom_Ellipse, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom2d_Ellipse, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Ellipse: ... class GeomToStep_MakeHyperbola(GeomToStep_Root): @overload - def __init__(self, C: Geom2d_Hyperbola, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom_Hyperbola, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + C: Geom2d_Hyperbola, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom_Hyperbola, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Hyperbola: ... class GeomToStep_MakeLine(GeomToStep_Root): @overload - def __init__(self, L: gp_Lin, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, L: gp_Lin2d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom_Line, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom2d_Line, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + L: gp_Lin, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + L: gp_Lin2d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom_Line, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom2d_Line, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Line: ... class GeomToStep_MakeParabola(GeomToStep_Root): @overload - def __init__(self, C: Geom2d_Parabola, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, C: Geom_Parabola, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + C: Geom2d_Parabola, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + C: Geom_Parabola, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Parabola: ... class GeomToStep_MakePlane(GeomToStep_Root): @overload - def __init__(self, P: gp_Pln, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, P: Geom_Plane, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + P: gp_Pln, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + P: Geom_Plane, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Plane: ... class GeomToStep_MakePolyline(GeomToStep_Root): @overload - def __init__(self, P: TColgp_Array1OfPnt, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, P: TColgp_Array1OfPnt2d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + P: TColgp_Array1OfPnt, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + P: TColgp_Array1OfPnt2d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Polyline: ... class GeomToStep_MakeRectangularTrimmedSurface(GeomToStep_Root): - def __init__(self, RTSurf: Geom_RectangularTrimmedSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + RTSurf: Geom_RectangularTrimmedSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_RectangularTrimmedSurface: ... class GeomToStep_MakeSphericalSurface(GeomToStep_Root): - def __init__(self, CSurf: Geom_SphericalSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + CSurf: Geom_SphericalSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_SphericalSurface: ... class GeomToStep_MakeSurface(GeomToStep_Root): - def __init__(self, C: Geom_Surface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + C: Geom_Surface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Surface: ... class GeomToStep_MakeSurfaceOfLinearExtrusion(GeomToStep_Root): - def __init__(self, CSurf: Geom_SurfaceOfLinearExtrusion, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + CSurf: Geom_SurfaceOfLinearExtrusion, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_SurfaceOfLinearExtrusion: ... class GeomToStep_MakeSurfaceOfRevolution(GeomToStep_Root): - def __init__(self, RevSurf: Geom_SurfaceOfRevolution, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + RevSurf: Geom_SurfaceOfRevolution, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_SurfaceOfRevolution: ... class GeomToStep_MakeSweptSurface(GeomToStep_Root): - def __init__(self, S: Geom_SweptSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + S: Geom_SweptSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_SweptSurface: ... class GeomToStep_MakeToroidalSurface(GeomToStep_Root): - def __init__(self, TorSurf: Geom_ToroidalSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + TorSurf: Geom_ToroidalSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_ToroidalSurface: ... class GeomToStep_MakeVector(GeomToStep_Root): @overload - def __init__(self, V: gp_Vec, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, V: gp_Vec2d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, V: Geom_Vector, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, V: Geom2d_Vector, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + V: gp_Vec, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + V: gp_Vec2d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + V: Geom_Vector, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + V: Geom2d_Vector, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepGeom_Vector: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/GeomTools.pyi b/src/SWIG_files/wrapper/GeomTools.pyi index 949f30db1..08a5ab3d9 100644 --- a/src/SWIG_files/wrapper/GeomTools.pyi +++ b/src/SWIG_files/wrapper/GeomTools.pyi @@ -7,7 +7,6 @@ from OCC.Core.Geom import * from OCC.Core.Geom2d import * from OCC.Core.Message import * - class geomtools: @overload @staticmethod @@ -52,10 +51,16 @@ class GeomTools_Curve2dSet: def Index(self, C: Geom2d_Curve) -> int: ... @staticmethod def PrintCurve2d(C: Geom2d_Curve, compact: Optional[bool] = False) -> str: ... - def Read(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @staticmethod def ReadCurve2d(IS: str) -> Geom2d_Curve: ... - def Write(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... class GeomTools_CurveSet: def __init__(self) -> None: ... @@ -66,10 +71,16 @@ class GeomTools_CurveSet: def Index(self, C: Geom_Curve) -> int: ... @staticmethod def PrintCurve(C: Geom_Curve, compact: Optional[bool] = False) -> str: ... - def Read(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @staticmethod def ReadCurve(IS: str) -> Geom_Curve: ... - def Write(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... class GeomTools_SurfaceSet: def __init__(self) -> None: ... @@ -79,11 +90,17 @@ class GeomTools_SurfaceSet: def Index(self, S: Geom_Surface) -> int: ... @staticmethod def PrintSurface(S: Geom_Surface, compact: Optional[bool] = False) -> str: ... - def Read(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @staticmethod def ReadSurface(IS: str) -> Geom_Surface: ... def Surface(self, I: int) -> Geom_Surface: ... - def Write(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... class GeomTools_UndefinedTypeHandler(Standard_Transient): def __init__(self) -> None: ... @@ -97,4 +114,3 @@ class GeomTools_UndefinedTypeHandler(Standard_Transient): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Graphic3d.i b/src/SWIG_files/wrapper/Graphic3d.i index fb7f92633..38c4868f2 100644 --- a/src/SWIG_files/wrapper/Graphic3d.i +++ b/src/SWIG_files/wrapper/Graphic3d.i @@ -1695,6 +1695,12 @@ Array1ExtendIter(Graphic3d_Attribute) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = Graphic3d_ListIteratorOfGraphicDriverFactoryList(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(Graphic3d_IndexedMapOfStructure) NCollection_IndexedMap; diff --git a/src/SWIG_files/wrapper/Graphic3d.pyi b/src/SWIG_files/wrapper/Graphic3d.pyi index 581578261..96b10d4ea 100644 --- a/src/SWIG_files/wrapper/Graphic3d.pyi +++ b/src/SWIG_files/wrapper/Graphic3d.pyi @@ -17,7 +17,9 @@ from OCC.Core.Media import * Graphic3d_ArrayFlags = NewType("Graphic3d_ArrayFlags", Standard_Integer) # the following typedef cannot be wrapped as is -Graphic3d_ArrayOfIndexedMapOfStructure = NewType("Graphic3d_ArrayOfIndexedMapOfStructure", Any) +Graphic3d_ArrayOfIndexedMapOfStructure = NewType( + "Graphic3d_ArrayOfIndexedMapOfStructure", Any +) # the following typedef cannot be wrapped as is Graphic3d_BndBox3d = NewType("Graphic3d_BndBox3d", Any) # the following typedef cannot be wrapped as is @@ -31,7 +33,9 @@ Graphic3d_IndexedMapOfStructure = NewType("Graphic3d_IndexedMapOfStructure", Any # the following typedef cannot be wrapped as is Graphic3d_IndexedMapOfView = NewType("Graphic3d_IndexedMapOfView", Any) # the following typedef cannot be wrapped as is -Graphic3d_MapIteratorOfMapOfStructure = NewType("Graphic3d_MapIteratorOfMapOfStructure", Any) +Graphic3d_MapIteratorOfMapOfStructure = NewType( + "Graphic3d_MapIteratorOfMapOfStructure", Any +) # the following typedef cannot be wrapped as is Graphic3d_MapOfStructure = NewType("Graphic3d_MapOfStructure", Any) # the following typedef cannot be wrapped as is @@ -114,93 +118,125 @@ class Graphic3d_Array1OfAttribute: def SetValue(self, theIndex: int, theValue: Graphic3d_Attribute) -> None: ... class Graphic3d_GraphicDriverFactoryList: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: Graphic3d_GraphicDriverFactoryList + ) -> Graphic3d_GraphicDriverFactoryList: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Graphic3d_SequenceOfGroup: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class Graphic3d_SequenceOfGroup: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Graphic3d_SequenceOfStructure: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Graphic3d_SequenceOfStructure: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Graphic3d_ShaderAttributeList: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Graphic3d_ShaderAttributeList: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Graphic3d_ShaderObjectList: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Graphic3d_ShaderObjectList: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Graphic3d_ShaderVariableList: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Graphic3d_ShaderVariableList: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Graphic3d_AlphaMode(IntEnum): Graphic3d_AlphaMode_Opaque: int = ... @@ -215,7 +251,6 @@ Graphic3d_AlphaMode_Blend = Graphic3d_AlphaMode.Graphic3d_AlphaMode_Blend Graphic3d_AlphaMode_MaskBlend = Graphic3d_AlphaMode.Graphic3d_AlphaMode_MaskBlend Graphic3d_AlphaMode_BlendAuto = Graphic3d_AlphaMode.Graphic3d_AlphaMode_BlendAuto - class Graphic3d_FresnelModel(IntEnum): Graphic3d_FM_SCHLICK: int = ... Graphic3d_FM_CONSTANT: int = ... @@ -280,10 +315,18 @@ class Graphic3d_CappingFlags(IntEnum): Graphic3d_CappingFlags_ObjectAspect: int = ... Graphic3d_CappingFlags_None = Graphic3d_CappingFlags.Graphic3d_CappingFlags_None -Graphic3d_CappingFlags_ObjectMaterial = Graphic3d_CappingFlags.Graphic3d_CappingFlags_ObjectMaterial -Graphic3d_CappingFlags_ObjectTexture = Graphic3d_CappingFlags.Graphic3d_CappingFlags_ObjectTexture -Graphic3d_CappingFlags_ObjectShader = Graphic3d_CappingFlags.Graphic3d_CappingFlags_ObjectShader -Graphic3d_CappingFlags_ObjectAspect = Graphic3d_CappingFlags.Graphic3d_CappingFlags_ObjectAspect +Graphic3d_CappingFlags_ObjectMaterial = ( + Graphic3d_CappingFlags.Graphic3d_CappingFlags_ObjectMaterial +) +Graphic3d_CappingFlags_ObjectTexture = ( + Graphic3d_CappingFlags.Graphic3d_CappingFlags_ObjectTexture +) +Graphic3d_CappingFlags_ObjectShader = ( + Graphic3d_CappingFlags.Graphic3d_CappingFlags_ObjectShader +) +Graphic3d_CappingFlags_ObjectAspect = ( + Graphic3d_CappingFlags.Graphic3d_CappingFlags_ObjectAspect +) class Graphic3d_ClipState(IntEnum): Graphic3d_ClipState_Out: int = ... @@ -320,15 +363,29 @@ class Graphic3d_DiagnosticInfo(IntEnum): Graphic3d_DiagnosticInfo_Basic: int = ... Graphic3d_DiagnosticInfo_Complete: int = ... -Graphic3d_DiagnosticInfo_Device = Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Device -Graphic3d_DiagnosticInfo_FrameBuffer = Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_FrameBuffer -Graphic3d_DiagnosticInfo_Limits = Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Limits -Graphic3d_DiagnosticInfo_Memory = Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Memory -Graphic3d_DiagnosticInfo_NativePlatform = Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_NativePlatform -Graphic3d_DiagnosticInfo_Extensions = Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Extensions +Graphic3d_DiagnosticInfo_Device = ( + Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Device +) +Graphic3d_DiagnosticInfo_FrameBuffer = ( + Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_FrameBuffer +) +Graphic3d_DiagnosticInfo_Limits = ( + Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Limits +) +Graphic3d_DiagnosticInfo_Memory = ( + Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Memory +) +Graphic3d_DiagnosticInfo_NativePlatform = ( + Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_NativePlatform +) +Graphic3d_DiagnosticInfo_Extensions = ( + Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Extensions +) Graphic3d_DiagnosticInfo_Short = Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Short Graphic3d_DiagnosticInfo_Basic = Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Basic -Graphic3d_DiagnosticInfo_Complete = Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Complete +Graphic3d_DiagnosticInfo_Complete = ( + Graphic3d_DiagnosticInfo.Graphic3d_DiagnosticInfo_Complete +) class Graphic3d_DisplayPriority(IntEnum): Graphic3d_DisplayPriority_INVALID: int = ... @@ -344,19 +401,42 @@ class Graphic3d_DisplayPriority(IntEnum): Graphic3d_DisplayPriority_Highlight: int = ... Graphic3d_DisplayPriority_Topmost: int = ... -Graphic3d_DisplayPriority_INVALID = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_INVALID -Graphic3d_DisplayPriority_Bottom = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Bottom -Graphic3d_DisplayPriority_AlmostBottom = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_AlmostBottom -Graphic3d_DisplayPriority_Below2 = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Below2 -Graphic3d_DisplayPriority_Below1 = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Below1 -Graphic3d_DisplayPriority_Below = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Below -Graphic3d_DisplayPriority_Normal = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Normal -Graphic3d_DisplayPriority_Above = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Above -Graphic3d_DisplayPriority_Above1 = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Above1 -Graphic3d_DisplayPriority_Above2 = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Above2 -Graphic3d_DisplayPriority_Highlight = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Highlight -Graphic3d_DisplayPriority_Topmost = Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Topmost - +Graphic3d_DisplayPriority_INVALID = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_INVALID +) +Graphic3d_DisplayPriority_Bottom = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Bottom +) +Graphic3d_DisplayPriority_AlmostBottom = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_AlmostBottom +) +Graphic3d_DisplayPriority_Below2 = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Below2 +) +Graphic3d_DisplayPriority_Below1 = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Below1 +) +Graphic3d_DisplayPriority_Below = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Below +) +Graphic3d_DisplayPriority_Normal = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Normal +) +Graphic3d_DisplayPriority_Above = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Above +) +Graphic3d_DisplayPriority_Above1 = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Above1 +) +Graphic3d_DisplayPriority_Above2 = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Above2 +) +Graphic3d_DisplayPriority_Highlight = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Highlight +) +Graphic3d_DisplayPriority_Topmost = ( + Graphic3d_DisplayPriority.Graphic3d_DisplayPriority_Topmost +) class Graphic3d_FrameStatsCounter(IntEnum): Graphic3d_FrameStatsCounter_NbLayers: int = ... @@ -387,34 +467,87 @@ class Graphic3d_FrameStatsCounter(IntEnum): Graphic3d_FrameStatsCounter_NbLinesImmediate: int = ... Graphic3d_FrameStatsCounter_NbPointsImmediate: int = ... -Graphic3d_FrameStatsCounter_NbLayers = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLayers -Graphic3d_FrameStatsCounter_NbStructs = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbStructs -Graphic3d_FrameStatsCounter_EstimatedBytesGeom = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_EstimatedBytesGeom -Graphic3d_FrameStatsCounter_EstimatedBytesFbos = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_EstimatedBytesFbos -Graphic3d_FrameStatsCounter_EstimatedBytesTextures = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_EstimatedBytesTextures -Graphic3d_FrameStatsCounter_NbLayersNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLayersNotCulled -Graphic3d_FrameStatsCounter_NbStructsNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbStructsNotCulled -Graphic3d_FrameStatsCounter_NbGroupsNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbGroupsNotCulled -Graphic3d_FrameStatsCounter_NbElemsNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsNotCulled -Graphic3d_FrameStatsCounter_NbElemsFillNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsFillNotCulled -Graphic3d_FrameStatsCounter_NbElemsLineNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsLineNotCulled -Graphic3d_FrameStatsCounter_NbElemsPointNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsPointNotCulled -Graphic3d_FrameStatsCounter_NbElemsTextNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsTextNotCulled -Graphic3d_FrameStatsCounter_NbTrianglesNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbTrianglesNotCulled -Graphic3d_FrameStatsCounter_NbLinesNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLinesNotCulled -Graphic3d_FrameStatsCounter_NbPointsNotCulled = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbPointsNotCulled -Graphic3d_FrameStatsCounter_NbLayersImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLayersImmediate -Graphic3d_FrameStatsCounter_NbStructsImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbStructsImmediate -Graphic3d_FrameStatsCounter_NbGroupsImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbGroupsImmediate -Graphic3d_FrameStatsCounter_NbElemsImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsImmediate -Graphic3d_FrameStatsCounter_NbElemsFillImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsFillImmediate -Graphic3d_FrameStatsCounter_NbElemsLineImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsLineImmediate -Graphic3d_FrameStatsCounter_NbElemsPointImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsPointImmediate -Graphic3d_FrameStatsCounter_NbElemsTextImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsTextImmediate -Graphic3d_FrameStatsCounter_NbTrianglesImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbTrianglesImmediate -Graphic3d_FrameStatsCounter_NbLinesImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLinesImmediate -Graphic3d_FrameStatsCounter_NbPointsImmediate = Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbPointsImmediate - +Graphic3d_FrameStatsCounter_NbLayers = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLayers +) +Graphic3d_FrameStatsCounter_NbStructs = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbStructs +) +Graphic3d_FrameStatsCounter_EstimatedBytesGeom = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_EstimatedBytesGeom +) +Graphic3d_FrameStatsCounter_EstimatedBytesFbos = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_EstimatedBytesFbos +) +Graphic3d_FrameStatsCounter_EstimatedBytesTextures = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_EstimatedBytesTextures +) +Graphic3d_FrameStatsCounter_NbLayersNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLayersNotCulled +) +Graphic3d_FrameStatsCounter_NbStructsNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbStructsNotCulled +) +Graphic3d_FrameStatsCounter_NbGroupsNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbGroupsNotCulled +) +Graphic3d_FrameStatsCounter_NbElemsNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsNotCulled +) +Graphic3d_FrameStatsCounter_NbElemsFillNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsFillNotCulled +) +Graphic3d_FrameStatsCounter_NbElemsLineNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsLineNotCulled +) +Graphic3d_FrameStatsCounter_NbElemsPointNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsPointNotCulled +) +Graphic3d_FrameStatsCounter_NbElemsTextNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsTextNotCulled +) +Graphic3d_FrameStatsCounter_NbTrianglesNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbTrianglesNotCulled +) +Graphic3d_FrameStatsCounter_NbLinesNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLinesNotCulled +) +Graphic3d_FrameStatsCounter_NbPointsNotCulled = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbPointsNotCulled +) +Graphic3d_FrameStatsCounter_NbLayersImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLayersImmediate +) +Graphic3d_FrameStatsCounter_NbStructsImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbStructsImmediate +) +Graphic3d_FrameStatsCounter_NbGroupsImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbGroupsImmediate +) +Graphic3d_FrameStatsCounter_NbElemsImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsImmediate +) +Graphic3d_FrameStatsCounter_NbElemsFillImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsFillImmediate +) +Graphic3d_FrameStatsCounter_NbElemsLineImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsLineImmediate +) +Graphic3d_FrameStatsCounter_NbElemsPointImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsPointImmediate +) +Graphic3d_FrameStatsCounter_NbElemsTextImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbElemsTextImmediate +) +Graphic3d_FrameStatsCounter_NbTrianglesImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbTrianglesImmediate +) +Graphic3d_FrameStatsCounter_NbLinesImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbLinesImmediate +) +Graphic3d_FrameStatsCounter_NbPointsImmediate = ( + Graphic3d_FrameStatsCounter.Graphic3d_FrameStatsCounter_NbPointsImmediate +) class Graphic3d_FrameStatsTimer(IntEnum): Graphic3d_FrameStatsTimer_ElapsedFrame: int = ... @@ -423,12 +556,21 @@ class Graphic3d_FrameStatsTimer(IntEnum): Graphic3d_FrameStatsTimer_CpuPicking: int = ... Graphic3d_FrameStatsTimer_CpuDynamics: int = ... -Graphic3d_FrameStatsTimer_ElapsedFrame = Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_ElapsedFrame -Graphic3d_FrameStatsTimer_CpuFrame = Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_CpuFrame -Graphic3d_FrameStatsTimer_CpuCulling = Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_CpuCulling -Graphic3d_FrameStatsTimer_CpuPicking = Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_CpuPicking -Graphic3d_FrameStatsTimer_CpuDynamics = Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_CpuDynamics - +Graphic3d_FrameStatsTimer_ElapsedFrame = ( + Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_ElapsedFrame +) +Graphic3d_FrameStatsTimer_CpuFrame = ( + Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_CpuFrame +) +Graphic3d_FrameStatsTimer_CpuCulling = ( + Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_CpuCulling +) +Graphic3d_FrameStatsTimer_CpuPicking = ( + Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_CpuPicking +) +Graphic3d_FrameStatsTimer_CpuDynamics = ( + Graphic3d_FrameStatsTimer.Graphic3d_FrameStatsTimer_CpuDynamics +) class Graphic3d_GroupAspect(IntEnum): Graphic3d_ASPECT_LINE: int = ... @@ -516,31 +658,65 @@ class Graphic3d_NameOfMaterial(IntEnum): Graphic3d_NOM_UserDefined: int = ... Graphic3d_NameOfMaterial_Brass = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Brass -Graphic3d_NameOfMaterial_Bronze = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Bronze -Graphic3d_NameOfMaterial_Copper = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Copper +Graphic3d_NameOfMaterial_Bronze = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Bronze +) +Graphic3d_NameOfMaterial_Copper = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Copper +) Graphic3d_NameOfMaterial_Gold = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Gold -Graphic3d_NameOfMaterial_Pewter = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Pewter -Graphic3d_NameOfMaterial_Plastered = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Plastered -Graphic3d_NameOfMaterial_Plastified = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Plastified -Graphic3d_NameOfMaterial_Silver = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Silver +Graphic3d_NameOfMaterial_Pewter = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Pewter +) +Graphic3d_NameOfMaterial_Plastered = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Plastered +) +Graphic3d_NameOfMaterial_Plastified = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Plastified +) +Graphic3d_NameOfMaterial_Silver = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Silver +) Graphic3d_NameOfMaterial_Steel = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Steel Graphic3d_NameOfMaterial_Stone = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Stone -Graphic3d_NameOfMaterial_ShinyPlastified = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_ShinyPlastified +Graphic3d_NameOfMaterial_ShinyPlastified = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_ShinyPlastified +) Graphic3d_NameOfMaterial_Satin = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Satin -Graphic3d_NameOfMaterial_Metalized = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Metalized -Graphic3d_NameOfMaterial_Ionized = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Ionized -Graphic3d_NameOfMaterial_Chrome = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Chrome -Graphic3d_NameOfMaterial_Aluminum = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Aluminum -Graphic3d_NameOfMaterial_Obsidian = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Obsidian +Graphic3d_NameOfMaterial_Metalized = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Metalized +) +Graphic3d_NameOfMaterial_Ionized = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Ionized +) +Graphic3d_NameOfMaterial_Chrome = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Chrome +) +Graphic3d_NameOfMaterial_Aluminum = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Aluminum +) +Graphic3d_NameOfMaterial_Obsidian = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Obsidian +) Graphic3d_NameOfMaterial_Neon = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Neon Graphic3d_NameOfMaterial_Jade = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Jade -Graphic3d_NameOfMaterial_Charcoal = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Charcoal +Graphic3d_NameOfMaterial_Charcoal = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Charcoal +) Graphic3d_NameOfMaterial_Water = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Water Graphic3d_NameOfMaterial_Glass = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Glass -Graphic3d_NameOfMaterial_Diamond = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Diamond -Graphic3d_NameOfMaterial_Transparent = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Transparent -Graphic3d_NameOfMaterial_DEFAULT = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_DEFAULT -Graphic3d_NameOfMaterial_UserDefined = Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_UserDefined +Graphic3d_NameOfMaterial_Diamond = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Diamond +) +Graphic3d_NameOfMaterial_Transparent = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_Transparent +) +Graphic3d_NameOfMaterial_DEFAULT = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_DEFAULT +) +Graphic3d_NameOfMaterial_UserDefined = ( + Graphic3d_NameOfMaterial.Graphic3d_NameOfMaterial_UserDefined +) Graphic3d_NOM_BRASS = Graphic3d_NameOfMaterial.Graphic3d_NOM_BRASS Graphic3d_NOM_BRONZE = Graphic3d_NameOfMaterial.Graphic3d_NOM_BRONZE Graphic3d_NOM_COPPER = Graphic3d_NameOfMaterial.Graphic3d_NOM_COPPER @@ -603,7 +779,9 @@ class Graphic3d_NameOfTexture2D(IntEnum): Graphic3d_NOT_2D_MATRA = Graphic3d_NameOfTexture2D.Graphic3d_NOT_2D_MATRA Graphic3d_NOT_2D_ALIENSKIN = Graphic3d_NameOfTexture2D.Graphic3d_NOT_2D_ALIENSKIN Graphic3d_NOT_2D_BLUE_ROCK = Graphic3d_NameOfTexture2D.Graphic3d_NOT_2D_BLUE_ROCK -Graphic3d_NOT_2D_BLUEWHITE_PAPER = Graphic3d_NameOfTexture2D.Graphic3d_NOT_2D_BLUEWHITE_PAPER +Graphic3d_NOT_2D_BLUEWHITE_PAPER = ( + Graphic3d_NameOfTexture2D.Graphic3d_NOT_2D_BLUEWHITE_PAPER +) Graphic3d_NOT_2D_BRUSHED = Graphic3d_NameOfTexture2D.Graphic3d_NOT_2D_BRUSHED Graphic3d_NOT_2D_BUBBLES = Graphic3d_NameOfTexture2D.Graphic3d_NOT_2D_BUBBLES Graphic3d_NOT_2D_BUMP = Graphic3d_NameOfTexture2D.Graphic3d_NOT_2D_BUMP @@ -661,9 +839,13 @@ class Graphic3d_RenderTransparentMethod(IntEnum): Graphic3d_RTM_BLEND_OIT: int = ... Graphic3d_RTM_DEPTH_PEELING_OIT: int = ... -Graphic3d_RTM_BLEND_UNORDERED = Graphic3d_RenderTransparentMethod.Graphic3d_RTM_BLEND_UNORDERED +Graphic3d_RTM_BLEND_UNORDERED = ( + Graphic3d_RenderTransparentMethod.Graphic3d_RTM_BLEND_UNORDERED +) Graphic3d_RTM_BLEND_OIT = Graphic3d_RenderTransparentMethod.Graphic3d_RTM_BLEND_OIT -Graphic3d_RTM_DEPTH_PEELING_OIT = Graphic3d_RenderTransparentMethod.Graphic3d_RTM_DEPTH_PEELING_OIT +Graphic3d_RTM_DEPTH_PEELING_OIT = ( + Graphic3d_RenderTransparentMethod.Graphic3d_RTM_DEPTH_PEELING_OIT +) class Graphic3d_RenderingMode(IntEnum): Graphic3d_RM_RASTERIZATION: int = ... @@ -695,25 +877,53 @@ class Graphic3d_ShaderFlags(IntEnum): Graphic3d_ShaderFlags_NeedsGeomShader: int = ... Graphic3d_ShaderFlags_VertColor = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_VertColor -Graphic3d_ShaderFlags_TextureRGB = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_TextureRGB -Graphic3d_ShaderFlags_TextureEnv = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_TextureEnv -Graphic3d_ShaderFlags_TextureNormal = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_TextureNormal -Graphic3d_ShaderFlags_PointSimple = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_PointSimple -Graphic3d_ShaderFlags_PointSprite = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_PointSprite -Graphic3d_ShaderFlags_PointSpriteA = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_PointSpriteA -Graphic3d_ShaderFlags_StippleLine = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_StippleLine -Graphic3d_ShaderFlags_ClipPlanes1 = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_ClipPlanes1 -Graphic3d_ShaderFlags_ClipPlanes2 = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_ClipPlanes2 -Graphic3d_ShaderFlags_ClipPlanesN = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_ClipPlanesN -Graphic3d_ShaderFlags_ClipChains = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_ClipChains +Graphic3d_ShaderFlags_TextureRGB = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_TextureRGB +) +Graphic3d_ShaderFlags_TextureEnv = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_TextureEnv +) +Graphic3d_ShaderFlags_TextureNormal = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_TextureNormal +) +Graphic3d_ShaderFlags_PointSimple = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_PointSimple +) +Graphic3d_ShaderFlags_PointSprite = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_PointSprite +) +Graphic3d_ShaderFlags_PointSpriteA = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_PointSpriteA +) +Graphic3d_ShaderFlags_StippleLine = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_StippleLine +) +Graphic3d_ShaderFlags_ClipPlanes1 = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_ClipPlanes1 +) +Graphic3d_ShaderFlags_ClipPlanes2 = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_ClipPlanes2 +) +Graphic3d_ShaderFlags_ClipPlanesN = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_ClipPlanesN +) +Graphic3d_ShaderFlags_ClipChains = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_ClipChains +) Graphic3d_ShaderFlags_MeshEdges = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_MeshEdges Graphic3d_ShaderFlags_AlphaTest = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_AlphaTest Graphic3d_ShaderFlags_WriteOit = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_WriteOit -Graphic3d_ShaderFlags_OitDepthPeeling = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_OitDepthPeeling +Graphic3d_ShaderFlags_OitDepthPeeling = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_OitDepthPeeling +) Graphic3d_ShaderFlags_NB = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_NB Graphic3d_ShaderFlags_IsPoint = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_IsPoint -Graphic3d_ShaderFlags_HasTextures = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_HasTextures -Graphic3d_ShaderFlags_NeedsGeomShader = Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_NeedsGeomShader +Graphic3d_ShaderFlags_HasTextures = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_HasTextures +) +Graphic3d_ShaderFlags_NeedsGeomShader = ( + Graphic3d_ShaderFlags.Graphic3d_ShaderFlags_NeedsGeomShader +) class Graphic3d_GlslExtension(IntEnum): Graphic3d_GlslExtension_GL_OES_standard_derivatives: int = ... @@ -721,11 +931,18 @@ class Graphic3d_GlslExtension(IntEnum): Graphic3d_GlslExtension_GL_EXT_frag_depth: int = ... Graphic3d_GlslExtension_GL_EXT_gpu_shader4: int = ... -Graphic3d_GlslExtension_GL_OES_standard_derivatives = Graphic3d_GlslExtension.Graphic3d_GlslExtension_GL_OES_standard_derivatives -Graphic3d_GlslExtension_GL_EXT_shader_texture_lod = Graphic3d_GlslExtension.Graphic3d_GlslExtension_GL_EXT_shader_texture_lod -Graphic3d_GlslExtension_GL_EXT_frag_depth = Graphic3d_GlslExtension.Graphic3d_GlslExtension_GL_EXT_frag_depth -Graphic3d_GlslExtension_GL_EXT_gpu_shader4 = Graphic3d_GlslExtension.Graphic3d_GlslExtension_GL_EXT_gpu_shader4 - +Graphic3d_GlslExtension_GL_OES_standard_derivatives = ( + Graphic3d_GlslExtension.Graphic3d_GlslExtension_GL_OES_standard_derivatives +) +Graphic3d_GlslExtension_GL_EXT_shader_texture_lod = ( + Graphic3d_GlslExtension.Graphic3d_GlslExtension_GL_EXT_shader_texture_lod +) +Graphic3d_GlslExtension_GL_EXT_frag_depth = ( + Graphic3d_GlslExtension.Graphic3d_GlslExtension_GL_EXT_frag_depth +) +Graphic3d_GlslExtension_GL_EXT_gpu_shader4 = ( + Graphic3d_GlslExtension.Graphic3d_GlslExtension_GL_EXT_gpu_shader4 +) class Graphic3d_StereoMode(IntEnum): Graphic3d_StereoMode_QuadBuffer: int = ... @@ -740,15 +957,20 @@ class Graphic3d_StereoMode(IntEnum): Graphic3d_StereoMode_QuadBuffer = Graphic3d_StereoMode.Graphic3d_StereoMode_QuadBuffer Graphic3d_StereoMode_Anaglyph = Graphic3d_StereoMode.Graphic3d_StereoMode_Anaglyph -Graphic3d_StereoMode_RowInterlaced = Graphic3d_StereoMode.Graphic3d_StereoMode_RowInterlaced -Graphic3d_StereoMode_ColumnInterlaced = Graphic3d_StereoMode.Graphic3d_StereoMode_ColumnInterlaced +Graphic3d_StereoMode_RowInterlaced = ( + Graphic3d_StereoMode.Graphic3d_StereoMode_RowInterlaced +) +Graphic3d_StereoMode_ColumnInterlaced = ( + Graphic3d_StereoMode.Graphic3d_StereoMode_ColumnInterlaced +) Graphic3d_StereoMode_ChessBoard = Graphic3d_StereoMode.Graphic3d_StereoMode_ChessBoard Graphic3d_StereoMode_SideBySide = Graphic3d_StereoMode.Graphic3d_StereoMode_SideBySide Graphic3d_StereoMode_OverUnder = Graphic3d_StereoMode.Graphic3d_StereoMode_OverUnder -Graphic3d_StereoMode_SoftPageFlip = Graphic3d_StereoMode.Graphic3d_StereoMode_SoftPageFlip +Graphic3d_StereoMode_SoftPageFlip = ( + Graphic3d_StereoMode.Graphic3d_StereoMode_SoftPageFlip +) Graphic3d_StereoMode_OpenVR = Graphic3d_StereoMode.Graphic3d_StereoMode_OpenVR - class Graphic3d_TextPath(IntEnum): Graphic3d_TP_UP: int = ... Graphic3d_TP_DOWN: int = ... @@ -769,11 +991,21 @@ class Graphic3d_TextureSetBits(IntEnum): Graphic3d_TextureSetBits_MetallicRoughness: int = ... Graphic3d_TextureSetBits_NONE = Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_NONE -Graphic3d_TextureSetBits_BaseColor = Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_BaseColor -Graphic3d_TextureSetBits_Emissive = Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_Emissive -Graphic3d_TextureSetBits_Occlusion = Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_Occlusion -Graphic3d_TextureSetBits_Normal = Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_Normal -Graphic3d_TextureSetBits_MetallicRoughness = Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_MetallicRoughness +Graphic3d_TextureSetBits_BaseColor = ( + Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_BaseColor +) +Graphic3d_TextureSetBits_Emissive = ( + Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_Emissive +) +Graphic3d_TextureSetBits_Occlusion = ( + Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_Occlusion +) +Graphic3d_TextureSetBits_Normal = ( + Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_Normal +) +Graphic3d_TextureSetBits_MetallicRoughness = ( + Graphic3d_TextureSetBits.Graphic3d_TextureSetBits_MetallicRoughness +) class Graphic3d_TextureUnit(IntEnum): Graphic3d_TextureUnit_0: int = ... @@ -826,23 +1058,40 @@ Graphic3d_TextureUnit_BaseColor = Graphic3d_TextureUnit.Graphic3d_TextureUnit_Ba Graphic3d_TextureUnit_Emissive = Graphic3d_TextureUnit.Graphic3d_TextureUnit_Emissive Graphic3d_TextureUnit_Occlusion = Graphic3d_TextureUnit.Graphic3d_TextureUnit_Occlusion Graphic3d_TextureUnit_Normal = Graphic3d_TextureUnit.Graphic3d_TextureUnit_Normal -Graphic3d_TextureUnit_MetallicRoughness = Graphic3d_TextureUnit.Graphic3d_TextureUnit_MetallicRoughness +Graphic3d_TextureUnit_MetallicRoughness = ( + Graphic3d_TextureUnit.Graphic3d_TextureUnit_MetallicRoughness +) Graphic3d_TextureUnit_EnvMap = Graphic3d_TextureUnit.Graphic3d_TextureUnit_EnvMap -Graphic3d_TextureUnit_PointSprite = Graphic3d_TextureUnit.Graphic3d_TextureUnit_PointSprite -Graphic3d_TextureUnit_DepthPeelingDepth = Graphic3d_TextureUnit.Graphic3d_TextureUnit_DepthPeelingDepth -Graphic3d_TextureUnit_DepthPeelingFrontColor = Graphic3d_TextureUnit.Graphic3d_TextureUnit_DepthPeelingFrontColor +Graphic3d_TextureUnit_PointSprite = ( + Graphic3d_TextureUnit.Graphic3d_TextureUnit_PointSprite +) +Graphic3d_TextureUnit_DepthPeelingDepth = ( + Graphic3d_TextureUnit.Graphic3d_TextureUnit_DepthPeelingDepth +) +Graphic3d_TextureUnit_DepthPeelingFrontColor = ( + Graphic3d_TextureUnit.Graphic3d_TextureUnit_DepthPeelingFrontColor +) Graphic3d_TextureUnit_ShadowMap = Graphic3d_TextureUnit.Graphic3d_TextureUnit_ShadowMap -Graphic3d_TextureUnit_PbrEnvironmentLUT = Graphic3d_TextureUnit.Graphic3d_TextureUnit_PbrEnvironmentLUT -Graphic3d_TextureUnit_PbrIblDiffuseSH = Graphic3d_TextureUnit.Graphic3d_TextureUnit_PbrIblDiffuseSH -Graphic3d_TextureUnit_PbrIblSpecular = Graphic3d_TextureUnit.Graphic3d_TextureUnit_PbrIblSpecular - +Graphic3d_TextureUnit_PbrEnvironmentLUT = ( + Graphic3d_TextureUnit.Graphic3d_TextureUnit_PbrEnvironmentLUT +) +Graphic3d_TextureUnit_PbrIblDiffuseSH = ( + Graphic3d_TextureUnit.Graphic3d_TextureUnit_PbrIblDiffuseSH +) +Graphic3d_TextureUnit_PbrIblSpecular = ( + Graphic3d_TextureUnit.Graphic3d_TextureUnit_PbrIblSpecular +) class Graphic3d_ToneMappingMethod(IntEnum): Graphic3d_ToneMappingMethod_Disabled: int = ... Graphic3d_ToneMappingMethod_Filmic: int = ... -Graphic3d_ToneMappingMethod_Disabled = Graphic3d_ToneMappingMethod.Graphic3d_ToneMappingMethod_Disabled -Graphic3d_ToneMappingMethod_Filmic = Graphic3d_ToneMappingMethod.Graphic3d_ToneMappingMethod_Filmic +Graphic3d_ToneMappingMethod_Disabled = ( + Graphic3d_ToneMappingMethod.Graphic3d_ToneMappingMethod_Disabled +) +Graphic3d_ToneMappingMethod_Filmic = ( + Graphic3d_ToneMappingMethod.Graphic3d_ToneMappingMethod_Filmic +) class Graphic3d_TransModeFlags(IntEnum): Graphic3d_TMF_None: int = ... @@ -888,10 +1137,18 @@ class Graphic3d_TypeOfBackfacingModel(IntEnum): V3d_TOBM_ALWAYS_DISPLAYED: int = ... V3d_TOBM_NEVER_DISPLAYED: int = ... -Graphic3d_TypeOfBackfacingModel_Auto = Graphic3d_TypeOfBackfacingModel.Graphic3d_TypeOfBackfacingModel_Auto -Graphic3d_TypeOfBackfacingModel_DoubleSided = Graphic3d_TypeOfBackfacingModel.Graphic3d_TypeOfBackfacingModel_DoubleSided -Graphic3d_TypeOfBackfacingModel_BackCulled = Graphic3d_TypeOfBackfacingModel.Graphic3d_TypeOfBackfacingModel_BackCulled -Graphic3d_TypeOfBackfacingModel_FrontCulled = Graphic3d_TypeOfBackfacingModel.Graphic3d_TypeOfBackfacingModel_FrontCulled +Graphic3d_TypeOfBackfacingModel_Auto = ( + Graphic3d_TypeOfBackfacingModel.Graphic3d_TypeOfBackfacingModel_Auto +) +Graphic3d_TypeOfBackfacingModel_DoubleSided = ( + Graphic3d_TypeOfBackfacingModel.Graphic3d_TypeOfBackfacingModel_DoubleSided +) +Graphic3d_TypeOfBackfacingModel_BackCulled = ( + Graphic3d_TypeOfBackfacingModel.Graphic3d_TypeOfBackfacingModel_BackCulled +) +Graphic3d_TypeOfBackfacingModel_FrontCulled = ( + Graphic3d_TypeOfBackfacingModel.Graphic3d_TypeOfBackfacingModel_FrontCulled +) Graphic3d_TOBM_AUTOMATIC = Graphic3d_TypeOfBackfacingModel.Graphic3d_TOBM_AUTOMATIC Graphic3d_TOBM_FORCE = Graphic3d_TypeOfBackfacingModel.Graphic3d_TOBM_FORCE Graphic3d_TOBM_DISABLE = Graphic3d_TypeOfBackfacingModel.Graphic3d_TOBM_DISABLE @@ -910,7 +1167,6 @@ Graphic3d_TOB_GRADIENT = Graphic3d_TypeOfBackground.Graphic3d_TOB_GRADIENT Graphic3d_TOB_TEXTURE = Graphic3d_TypeOfBackground.Graphic3d_TOB_TEXTURE Graphic3d_TOB_CUBEMAP = Graphic3d_TypeOfBackground.Graphic3d_TOB_CUBEMAP - class Graphic3d_TypeOfConnection(IntEnum): Graphic3d_TOC_ANCESTOR: int = ... Graphic3d_TOC_DESCENDANT: int = ... @@ -932,10 +1188,18 @@ class Graphic3d_TypeOfLightSource(IntEnum): V3d_POSITIONAL: int = ... V3d_SPOT: int = ... -Graphic3d_TypeOfLightSource_Ambient = Graphic3d_TypeOfLightSource.Graphic3d_TypeOfLightSource_Ambient -Graphic3d_TypeOfLightSource_Directional = Graphic3d_TypeOfLightSource.Graphic3d_TypeOfLightSource_Directional -Graphic3d_TypeOfLightSource_Positional = Graphic3d_TypeOfLightSource.Graphic3d_TypeOfLightSource_Positional -Graphic3d_TypeOfLightSource_Spot = Graphic3d_TypeOfLightSource.Graphic3d_TypeOfLightSource_Spot +Graphic3d_TypeOfLightSource_Ambient = ( + Graphic3d_TypeOfLightSource.Graphic3d_TypeOfLightSource_Ambient +) +Graphic3d_TypeOfLightSource_Directional = ( + Graphic3d_TypeOfLightSource.Graphic3d_TypeOfLightSource_Directional +) +Graphic3d_TypeOfLightSource_Positional = ( + Graphic3d_TypeOfLightSource.Graphic3d_TypeOfLightSource_Positional +) +Graphic3d_TypeOfLightSource_Spot = ( + Graphic3d_TypeOfLightSource.Graphic3d_TypeOfLightSource_Spot +) Graphic3d_TOLS_AMBIENT = Graphic3d_TypeOfLightSource.Graphic3d_TOLS_AMBIENT Graphic3d_TOLS_DIRECTIONAL = Graphic3d_TypeOfLightSource.Graphic3d_TOLS_DIRECTIONAL Graphic3d_TOLS_POSITIONAL = Graphic3d_TypeOfLightSource.Graphic3d_TOLS_POSITIONAL @@ -945,7 +1209,6 @@ V3d_DIRECTIONAL = Graphic3d_TypeOfLightSource.V3d_DIRECTIONAL V3d_POSITIONAL = Graphic3d_TypeOfLightSource.V3d_POSITIONAL V3d_SPOT = Graphic3d_TypeOfLightSource.V3d_SPOT - class Graphic3d_TypeOfLimit(IntEnum): Graphic3d_TypeOfLimit_MaxNbLights: int = ... Graphic3d_TypeOfLimit_MaxNbClipPlanes: int = ... @@ -968,25 +1231,57 @@ class Graphic3d_TypeOfLimit(IntEnum): Graphic3d_TypeOfLimit_IsWorkaroundFBO: int = ... Graphic3d_TypeOfLimit_NB: int = ... -Graphic3d_TypeOfLimit_MaxNbLights = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxNbLights -Graphic3d_TypeOfLimit_MaxNbClipPlanes = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxNbClipPlanes -Graphic3d_TypeOfLimit_MaxNbViews = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxNbViews -Graphic3d_TypeOfLimit_MaxTextureSize = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxTextureSize -Graphic3d_TypeOfLimit_MaxViewDumpSizeX = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxViewDumpSizeX -Graphic3d_TypeOfLimit_MaxViewDumpSizeY = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxViewDumpSizeY -Graphic3d_TypeOfLimit_MaxCombinedTextureUnits = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxCombinedTextureUnits +Graphic3d_TypeOfLimit_MaxNbLights = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxNbLights +) +Graphic3d_TypeOfLimit_MaxNbClipPlanes = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxNbClipPlanes +) +Graphic3d_TypeOfLimit_MaxNbViews = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxNbViews +) +Graphic3d_TypeOfLimit_MaxTextureSize = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxTextureSize +) +Graphic3d_TypeOfLimit_MaxViewDumpSizeX = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxViewDumpSizeX +) +Graphic3d_TypeOfLimit_MaxViewDumpSizeY = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxViewDumpSizeY +) +Graphic3d_TypeOfLimit_MaxCombinedTextureUnits = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxCombinedTextureUnits +) Graphic3d_TypeOfLimit_MaxMsaa = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_MaxMsaa Graphic3d_TypeOfLimit_HasPBR = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasPBR -Graphic3d_TypeOfLimit_HasRayTracing = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasRayTracing -Graphic3d_TypeOfLimit_HasRayTracingTextures = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasRayTracingTextures -Graphic3d_TypeOfLimit_HasRayTracingAdaptiveSampling = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasRayTracingAdaptiveSampling -Graphic3d_TypeOfLimit_HasRayTracingAdaptiveSamplingAtomic = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasRayTracingAdaptiveSamplingAtomic +Graphic3d_TypeOfLimit_HasRayTracing = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasRayTracing +) +Graphic3d_TypeOfLimit_HasRayTracingTextures = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasRayTracingTextures +) +Graphic3d_TypeOfLimit_HasRayTracingAdaptiveSampling = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasRayTracingAdaptiveSampling +) +Graphic3d_TypeOfLimit_HasRayTracingAdaptiveSamplingAtomic = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasRayTracingAdaptiveSamplingAtomic +) Graphic3d_TypeOfLimit_HasSRGB = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasSRGB -Graphic3d_TypeOfLimit_HasBlendedOit = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasBlendedOit -Graphic3d_TypeOfLimit_HasBlendedOitMsaa = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasBlendedOitMsaa -Graphic3d_TypeOfLimit_HasFlatShading = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasFlatShading -Graphic3d_TypeOfLimit_HasMeshEdges = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasMeshEdges -Graphic3d_TypeOfLimit_IsWorkaroundFBO = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_IsWorkaroundFBO +Graphic3d_TypeOfLimit_HasBlendedOit = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasBlendedOit +) +Graphic3d_TypeOfLimit_HasBlendedOitMsaa = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasBlendedOitMsaa +) +Graphic3d_TypeOfLimit_HasFlatShading = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasFlatShading +) +Graphic3d_TypeOfLimit_HasMeshEdges = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_HasMeshEdges +) +Graphic3d_TypeOfLimit_IsWorkaroundFBO = ( + Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_IsWorkaroundFBO +) Graphic3d_TypeOfLimit_NB = Graphic3d_TypeOfLimit.Graphic3d_TypeOfLimit_NB class Graphic3d_TypeOfMaterial(IntEnum): @@ -1017,14 +1312,26 @@ Graphic3d_TOPA_POINTS = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_POINTS Graphic3d_TOPA_SEGMENTS = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_SEGMENTS Graphic3d_TOPA_POLYLINES = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_POLYLINES Graphic3d_TOPA_TRIANGLES = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_TRIANGLES -Graphic3d_TOPA_TRIANGLESTRIPS = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_TRIANGLESTRIPS +Graphic3d_TOPA_TRIANGLESTRIPS = ( + Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_TRIANGLESTRIPS +) Graphic3d_TOPA_TRIANGLEFANS = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_TRIANGLEFANS -Graphic3d_TOPA_LINES_ADJACENCY = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_LINES_ADJACENCY -Graphic3d_TOPA_LINE_STRIP_ADJACENCY = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_LINE_STRIP_ADJACENCY -Graphic3d_TOPA_TRIANGLES_ADJACENCY = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_TRIANGLES_ADJACENCY -Graphic3d_TOPA_TRIANGLE_STRIP_ADJACENCY = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_TRIANGLE_STRIP_ADJACENCY +Graphic3d_TOPA_LINES_ADJACENCY = ( + Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_LINES_ADJACENCY +) +Graphic3d_TOPA_LINE_STRIP_ADJACENCY = ( + Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_LINE_STRIP_ADJACENCY +) +Graphic3d_TOPA_TRIANGLES_ADJACENCY = ( + Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_TRIANGLES_ADJACENCY +) +Graphic3d_TOPA_TRIANGLE_STRIP_ADJACENCY = ( + Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_TRIANGLE_STRIP_ADJACENCY +) Graphic3d_TOPA_QUADRANGLES = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_QUADRANGLES -Graphic3d_TOPA_QUADRANGLESTRIPS = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_QUADRANGLESTRIPS +Graphic3d_TOPA_QUADRANGLESTRIPS = ( + Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_QUADRANGLESTRIPS +) Graphic3d_TOPA_POLYGONS = Graphic3d_TypeOfPrimitiveArray.Graphic3d_TOPA_POLYGONS class Graphic3d_TypeOfReflection(IntEnum): @@ -1038,7 +1345,6 @@ Graphic3d_TOR_DIFFUSE = Graphic3d_TypeOfReflection.Graphic3d_TOR_DIFFUSE Graphic3d_TOR_SPECULAR = Graphic3d_TypeOfReflection.Graphic3d_TOR_SPECULAR Graphic3d_TOR_EMISSION = Graphic3d_TypeOfReflection.Graphic3d_TOR_EMISSION - class Graphic3d_TypeOfShaderObject(IntEnum): Graphic3d_TOS_VERTEX: int = ... Graphic3d_TOS_TESS_CONTROL: int = ... @@ -1049,7 +1355,9 @@ class Graphic3d_TypeOfShaderObject(IntEnum): Graphic3d_TOS_VERTEX = Graphic3d_TypeOfShaderObject.Graphic3d_TOS_VERTEX Graphic3d_TOS_TESS_CONTROL = Graphic3d_TypeOfShaderObject.Graphic3d_TOS_TESS_CONTROL -Graphic3d_TOS_TESS_EVALUATION = Graphic3d_TypeOfShaderObject.Graphic3d_TOS_TESS_EVALUATION +Graphic3d_TOS_TESS_EVALUATION = ( + Graphic3d_TypeOfShaderObject.Graphic3d_TOS_TESS_EVALUATION +) Graphic3d_TOS_GEOMETRY = Graphic3d_TypeOfShaderObject.Graphic3d_TOS_GEOMETRY Graphic3d_TOS_FRAGMENT = Graphic3d_TypeOfShaderObject.Graphic3d_TOS_FRAGMENT Graphic3d_TOS_COMPUTE = Graphic3d_TypeOfShaderObject.Graphic3d_TOS_COMPUTE @@ -1075,13 +1383,27 @@ class Graphic3d_TypeOfShadingModel(IntEnum): V3d_GOURAUD: int = ... V3d_PHONG: int = ... -Graphic3d_TypeOfShadingModel_DEFAULT = Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_DEFAULT -Graphic3d_TypeOfShadingModel_Unlit = Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_Unlit -Graphic3d_TypeOfShadingModel_PhongFacet = Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_PhongFacet -Graphic3d_TypeOfShadingModel_Gouraud = Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_Gouraud -Graphic3d_TypeOfShadingModel_Phong = Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_Phong -Graphic3d_TypeOfShadingModel_Pbr = Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_Pbr -Graphic3d_TypeOfShadingModel_PbrFacet = Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_PbrFacet +Graphic3d_TypeOfShadingModel_DEFAULT = ( + Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_DEFAULT +) +Graphic3d_TypeOfShadingModel_Unlit = ( + Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_Unlit +) +Graphic3d_TypeOfShadingModel_PhongFacet = ( + Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_PhongFacet +) +Graphic3d_TypeOfShadingModel_Gouraud = ( + Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_Gouraud +) +Graphic3d_TypeOfShadingModel_Phong = ( + Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_Phong +) +Graphic3d_TypeOfShadingModel_Pbr = ( + Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_Pbr +) +Graphic3d_TypeOfShadingModel_PbrFacet = ( + Graphic3d_TypeOfShadingModel.Graphic3d_TypeOfShadingModel_PbrFacet +) Graphic3d_TOSM_DEFAULT = Graphic3d_TypeOfShadingModel.Graphic3d_TOSM_DEFAULT Graphic3d_TOSM_UNLIT = Graphic3d_TypeOfShadingModel.Graphic3d_TOSM_UNLIT Graphic3d_TOSM_FACET = Graphic3d_TypeOfShadingModel.Graphic3d_TOSM_FACET @@ -1095,7 +1417,6 @@ V3d_FLAT = Graphic3d_TypeOfShadingModel.V3d_FLAT V3d_GOURAUD = Graphic3d_TypeOfShadingModel.V3d_GOURAUD V3d_PHONG = Graphic3d_TypeOfShadingModel.V3d_PHONG - class Graphic3d_TypeOfStructure(IntEnum): Graphic3d_TOS_WIREFRAME: int = ... Graphic3d_TOS_SHADING: int = ... @@ -1120,7 +1441,9 @@ class Graphic3d_TypeOfTexture(IntEnum): Graphic3d_TypeOfTexture_1D = Graphic3d_TypeOfTexture.Graphic3d_TypeOfTexture_1D Graphic3d_TypeOfTexture_2D = Graphic3d_TypeOfTexture.Graphic3d_TypeOfTexture_2D Graphic3d_TypeOfTexture_3D = Graphic3d_TypeOfTexture.Graphic3d_TypeOfTexture_3D -Graphic3d_TypeOfTexture_CUBEMAP = Graphic3d_TypeOfTexture.Graphic3d_TypeOfTexture_CUBEMAP +Graphic3d_TypeOfTexture_CUBEMAP = ( + Graphic3d_TypeOfTexture.Graphic3d_TypeOfTexture_CUBEMAP +) Graphic3d_TOT_2D_MIPMAP = Graphic3d_TypeOfTexture.Graphic3d_TOT_2D_MIPMAP Graphic3d_TOT_1D = Graphic3d_TypeOfTexture.Graphic3d_TOT_1D Graphic3d_TOT_2D = Graphic3d_TypeOfTexture.Graphic3d_TOT_2D @@ -1166,36 +1489,65 @@ Graphic3d_VTA_CENTER = Graphic3d_VerticalTextAlignment.Graphic3d_VTA_CENTER Graphic3d_VTA_TOP = Graphic3d_VerticalTextAlignment.Graphic3d_VTA_TOP Graphic3d_VTA_TOPFIRSTLINE = Graphic3d_VerticalTextAlignment.Graphic3d_VTA_TOPFIRSTLINE - class Graphic3d_ArrayOfPrimitives(Standard_Transient): @overload def AddBound(self, theEdgeNumber: int) -> int: ... @overload def AddBound(self, theEdgeNumber: int, theBColor: Quantity_Color) -> int: ... @overload - def AddBound(self, theEdgeNumber: int, theR: float, theG: float, theB: float) -> int: ... + def AddBound( + self, theEdgeNumber: int, theR: float, theG: float, theB: float + ) -> int: ... def AddEdge(self, theVertexIndex: int) -> int: ... @overload def AddEdges(self, theVertexIndex1: int, theVertexIndex2: int) -> int: ... @overload - def AddEdges(self, theVertexIndex1: int, theVertexIndex2: int, theVertexIndex3: int) -> int: ... - @overload - def AddEdges(self, theVertexIndex1: int, theVertexIndex2: int, theVertexIndex3: int, theVertexIndex4: int) -> int: ... - def AddPolylineEdges(self, theVertexLower: int, theVertexUpper: int, theToClose: bool) -> None: ... - def AddQuadEdges(self, theVertexIndex1: int, theVertexIndex2: int, theVertexIndex3: int, theVertexIndex4: int) -> int: ... - @overload - def AddQuadTriangleEdges(self, theVertexIndex1: int, theVertexIndex2: int, theVertexIndex3: int, theVertexIndex4: int) -> int: ... + def AddEdges( + self, theVertexIndex1: int, theVertexIndex2: int, theVertexIndex3: int + ) -> int: ... + @overload + def AddEdges( + self, + theVertexIndex1: int, + theVertexIndex2: int, + theVertexIndex3: int, + theVertexIndex4: int, + ) -> int: ... + def AddPolylineEdges( + self, theVertexLower: int, theVertexUpper: int, theToClose: bool + ) -> None: ... + def AddQuadEdges( + self, + theVertexIndex1: int, + theVertexIndex2: int, + theVertexIndex3: int, + theVertexIndex4: int, + ) -> int: ... + @overload + def AddQuadTriangleEdges( + self, + theVertexIndex1: int, + theVertexIndex2: int, + theVertexIndex3: int, + theVertexIndex4: int, + ) -> int: ... @overload def AddQuadTriangleEdges(self, theIndexes: Graphic3d_Vec4i) -> int: ... def AddSegmentEdges(self, theVertexIndex1: int, theVertexIndex2: int) -> int: ... @overload - def AddTriangleEdges(self, theVertexIndex1: int, theVertexIndex2: int, theVertexIndex3: int) -> int: ... + def AddTriangleEdges( + self, theVertexIndex1: int, theVertexIndex2: int, theVertexIndex3: int + ) -> int: ... @overload def AddTriangleEdges(self, theIndexes: Graphic3d_Vec3i) -> int: ... @overload def AddTriangleEdges(self, theIndexes: Graphic3d_Vec4i) -> int: ... - def AddTriangleFanEdges(self, theVertexLower: int, theVertexUpper: int, theToClose: bool) -> None: ... - def AddTriangleStripEdges(self, theVertexLower: int, theVertexUpper: int) -> None: ... + def AddTriangleFanEdges( + self, theVertexLower: int, theVertexUpper: int, theToClose: bool + ) -> None: ... + def AddTriangleStripEdges( + self, theVertexLower: int, theVertexUpper: int + ) -> None: ... @overload def AddVertex(self, theVertex: gp_Pnt) -> int: ... @overload @@ -1213,25 +1565,71 @@ class Graphic3d_ArrayOfPrimitives(Standard_Transient): @overload def AddVertex(self, theVertex: gp_Pnt, theNormal: gp_Dir) -> int: ... @overload - def AddVertex(self, theX: float, theY: float, theZ: float, theNX: float, theNY: float, theNZ: float) -> int: ... - @overload - def AddVertex(self, theX: float, theY: float, theZ: float, theNX: float, theNY: float, theNZ: float) -> int: ... - @overload - def AddVertex(self, theVertex: gp_Pnt, theNormal: gp_Dir, theColor: Quantity_Color) -> int: ... - @overload - def AddVertex(self, theVertex: gp_Pnt, theNormal: gp_Dir, theColor32: int) -> int: ... + def AddVertex( + self, + theX: float, + theY: float, + theZ: float, + theNX: float, + theNY: float, + theNZ: float, + ) -> int: ... + @overload + def AddVertex( + self, + theX: float, + theY: float, + theZ: float, + theNX: float, + theNY: float, + theNZ: float, + ) -> int: ... + @overload + def AddVertex( + self, theVertex: gp_Pnt, theNormal: gp_Dir, theColor: Quantity_Color + ) -> int: ... + @overload + def AddVertex( + self, theVertex: gp_Pnt, theNormal: gp_Dir, theColor32: int + ) -> int: ... @overload def AddVertex(self, theVertex: gp_Pnt, theTexel: gp_Pnt2d) -> int: ... @overload - def AddVertex(self, theX: float, theY: float, theZ: float, theTX: float, theTY: float) -> int: ... - @overload - def AddVertex(self, theX: float, theY: float, theZ: float, theTX: float, theTY: float) -> int: ... - @overload - def AddVertex(self, theVertex: gp_Pnt, theNormal: gp_Dir, theTexel: gp_Pnt2d) -> int: ... - @overload - def AddVertex(self, theX: float, theY: float, theZ: float, theNX: float, theNY: float, theNZ: float, theTX: float, theTY: float) -> int: ... - @overload - def AddVertex(self, theX: float, theY: float, theZ: float, theNX: float, theNY: float, theNZ: float, theTX: float, theTY: float) -> int: ... + def AddVertex( + self, theX: float, theY: float, theZ: float, theTX: float, theTY: float + ) -> int: ... + @overload + def AddVertex( + self, theX: float, theY: float, theZ: float, theTX: float, theTY: float + ) -> int: ... + @overload + def AddVertex( + self, theVertex: gp_Pnt, theNormal: gp_Dir, theTexel: gp_Pnt2d + ) -> int: ... + @overload + def AddVertex( + self, + theX: float, + theY: float, + theZ: float, + theNX: float, + theNY: float, + theNZ: float, + theTX: float, + theTY: float, + ) -> int: ... + @overload + def AddVertex( + self, + theX: float, + theY: float, + theZ: float, + theNX: float, + theNY: float, + theNZ: float, + theTX: float, + theTY: float, + ) -> int: ... def Attributes(self) -> Graphic3d_Buffer: ... def Bound(self, theRank: int) -> int: ... @overload @@ -1243,10 +1641,21 @@ class Graphic3d_ArrayOfPrimitives(Standard_Transient): def Bounds(self) -> Graphic3d_BoundBuffer: ... @overload @staticmethod - def CreateArray(theType: Graphic3d_TypeOfPrimitiveArray, theMaxVertexs: int, theMaxEdges: int, theArrayFlags: int) -> Graphic3d_ArrayOfPrimitives: ... + def CreateArray( + theType: Graphic3d_TypeOfPrimitiveArray, + theMaxVertexs: int, + theMaxEdges: int, + theArrayFlags: int, + ) -> Graphic3d_ArrayOfPrimitives: ... @overload @staticmethod - def CreateArray(theType: Graphic3d_TypeOfPrimitiveArray, theMaxVertexs: int, theMaxBounds: int, theMaxEdges: int, theArrayFlags: int) -> Graphic3d_ArrayOfPrimitives: ... + def CreateArray( + theType: Graphic3d_TypeOfPrimitiveArray, + theMaxVertexs: int, + theMaxBounds: int, + theMaxEdges: int, + theArrayFlags: int, + ) -> Graphic3d_ArrayOfPrimitives: ... def Edge(self, theRank: int) -> int: ... def EdgeNumber(self) -> int: ... def EdgeNumberAllocated(self) -> int: ... @@ -1260,11 +1669,15 @@ class Graphic3d_ArrayOfPrimitives(Standard_Transient): @overload def SetBoundColor(self, theIndex: int, theColor: Quantity_Color) -> None: ... @overload - def SetBoundColor(self, theIndex: int, theR: float, theG: float, theB: float) -> None: ... + def SetBoundColor( + self, theIndex: int, theR: float, theG: float, theB: float + ) -> None: ... @overload def SetVertexColor(self, theIndex: int, theColor: Quantity_Color) -> None: ... @overload - def SetVertexColor(self, theIndex: int, theR: float, theG: float, theB: float) -> None: ... + def SetVertexColor( + self, theIndex: int, theR: float, theG: float, theB: float + ) -> None: ... @overload def SetVertexColor(self, theIndex: int, theColor: Graphic3d_Vec4ub) -> None: ... @overload @@ -1272,7 +1685,9 @@ class Graphic3d_ArrayOfPrimitives(Standard_Transient): @overload def SetVertexNormal(self, theIndex: int, theNormal: gp_Dir) -> None: ... @overload - def SetVertexNormal(self, theIndex: int, theNX: float, theNY: float, theNZ: float) -> None: ... + def SetVertexNormal( + self, theIndex: int, theNX: float, theNY: float, theNZ: float + ) -> None: ... @overload def SetVertexTexel(self, theIndex: int, theTexel: gp_Pnt2d) -> None: ... @overload @@ -1280,7 +1695,9 @@ class Graphic3d_ArrayOfPrimitives(Standard_Transient): @overload def SetVertice(self, theIndex: int, theVertex: gp_Pnt) -> None: ... @overload - def SetVertice(self, theIndex: int, theX: float, theY: float, theZ: float) -> None: ... + def SetVertice( + self, theIndex: int, theX: float, theY: float, theZ: float + ) -> None: ... def StringType(self) -> str: ... def Type(self) -> Graphic3d_TypeOfPrimitiveArray: ... @overload @@ -1324,7 +1741,7 @@ class Graphic3d_Aspects(Standard_Transient): @staticmethod def DefaultLinePatternForType(theType: Aspect_TypeOfLine) -> False: ... def Distinguish(self) -> bool: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EdgeColor(self) -> Quantity_Color: ... def EdgeColorRGBA(self) -> Quantity_ColorRGBA: ... def EdgeLineType(self) -> Aspect_TypeOfLine: ... @@ -1347,7 +1764,9 @@ class Graphic3d_Aspects(Standard_Transient): def MarkerType(self) -> Aspect_TypeOfMarker: ... def PolygonOffset(self) -> Graphic3d_PolygonOffset: ... def PolygonOffsets(self) -> Tuple[int, float, float]: ... - def SetAlphaMode(self, theMode: Graphic3d_AlphaMode, theAlphaCutoff: Optional[float] = 0.5) -> None: ... + def SetAlphaMode( + self, theMode: Graphic3d_AlphaMode, theAlphaCutoff: Optional[float] = 0.5 + ) -> None: ... @overload def SetBackInteriorColor(self, theColor: Quantity_Color) -> None: ... @overload @@ -1388,9 +1807,16 @@ class Graphic3d_Aspects(Standard_Transient): def SetMarkerScale(self, theScale: float) -> None: ... def SetMarkerType(self, theType: Aspect_TypeOfMarker) -> None: ... def SetPolygonOffset(self, theOffset: Graphic3d_PolygonOffset) -> None: ... - def SetPolygonOffsets(self, theMode: int, theFactor: Optional[float] = 1.0, theUnits: Optional[float] = 0.0) -> None: ... + def SetPolygonOffsets( + self, + theMode: int, + theFactor: Optional[float] = 1.0, + theUnits: Optional[float] = 0.0, + ) -> None: ... def SetShaderProgram(self, theProgram: Graphic3d_ShaderProgram) -> None: ... - def SetShadingModel(self, theShadingModel: Graphic3d_TypeOfShadingModel) -> None: ... + def SetShadingModel( + self, theShadingModel: Graphic3d_TypeOfShadingModel + ) -> None: ... def SetSkipFirstEdge(self, theToSkipFirstEdge: bool) -> None: ... def SetSuppressBackFaces(self, theToSuppress: bool) -> None: ... def SetTextAngle(self, theAngle: float) -> None: ... @@ -1434,19 +1860,30 @@ class Graphic3d_BSDF: @staticmethod def CreateDiffuse(theWeight: Graphic3d_Vec3) -> Graphic3d_BSDF: ... @staticmethod - def CreateGlass(theWeight: Graphic3d_Vec3, theAbsorptionColor: Graphic3d_Vec3, theAbsorptionCoeff: float, theRefractionIndex: float) -> Graphic3d_BSDF: ... + def CreateGlass( + theWeight: Graphic3d_Vec3, + theAbsorptionColor: Graphic3d_Vec3, + theAbsorptionCoeff: float, + theRefractionIndex: float, + ) -> Graphic3d_BSDF: ... @staticmethod - def CreateMetallic(theWeight: Graphic3d_Vec3, theFresnel: Graphic3d_Fresnel, theRoughness: float) -> Graphic3d_BSDF: ... + def CreateMetallic( + theWeight: Graphic3d_Vec3, theFresnel: Graphic3d_Fresnel, theRoughness: float + ) -> Graphic3d_BSDF: ... @staticmethod def CreateMetallicRoughness(thePbr: Graphic3d_PBRMaterial) -> Graphic3d_BSDF: ... @staticmethod - def CreateTransparent(theWeight: Graphic3d_Vec3, theAbsorptionColor: Graphic3d_Vec3, theAbsorptionCoeff: float) -> Graphic3d_BSDF: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def CreateTransparent( + theWeight: Graphic3d_Vec3, + theAbsorptionColor: Graphic3d_Vec3, + theAbsorptionCoeff: float, + ) -> Graphic3d_BSDF: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Normalize(self) -> None: ... class Graphic3d_BoundBuffer(NCollection_Buffer): def __init__(self, theAlloc: NCollection_BaseAllocator) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Init(self, theNbBounds: int, theHasColors: bool) -> bool: ... class Graphic3d_BufferRange: @@ -1479,7 +1916,7 @@ class Graphic3d_CLight(Standard_Transient): @overload def Direction(self) -> Tuple[float, float, float]: ... def DisplayPosition(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetId(self) -> str: ... def HasRange(self) -> bool: ... def Headlight(self) -> bool: ... @@ -1499,7 +1936,9 @@ class Graphic3d_CLight(Standard_Transient): def Range(self) -> float: ... def Revision(self) -> int: ... def SetAngle(self, theAngle: float) -> None: ... - def SetAttenuation(self, theConstAttenuation: float, theLinearAttenuation: float) -> None: ... + def SetAttenuation( + self, theConstAttenuation: float, theLinearAttenuation: float + ) -> None: ... def SetCastShadows(self, theToCast: bool) -> None: ... def SetColor(self, theColor: Quantity_Color) -> None: ... def SetConcentration(self, theConcentration: float) -> None: ... @@ -1531,7 +1970,7 @@ class Graphic3d_CStructure(Standard_Transient): def ClipPlanes(self) -> Graphic3d_SequenceOfHClipPlane: ... def Connect(self, theStructure: Graphic3d_CStructure) -> None: ... def Disconnect(self, theStructure: Graphic3d_CStructure) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GraphicDriver(self) -> Graphic3d_GraphicDriver: ... def GraphicHighlight(self, theStyle: Graphic3d_PresentationAttributes) -> None: ... def GraphicUnhighlight(self) -> None: ... @@ -1560,7 +1999,9 @@ class Graphic3d_CStructure(Standard_Transient): def SetTransformPersistence(self, theTrsfPers: Graphic3d_TransformPers) -> None: ... def SetTransformation(self, theTrsf: TopLoc_Datum3D) -> None: ... def SetZLayer(self, theLayerIndex: int) -> None: ... - def ShadowLink(self, theManager: Graphic3d_StructureManager) -> Graphic3d_CStructure: ... + def ShadowLink( + self, theManager: Graphic3d_StructureManager + ) -> Graphic3d_CStructure: ... def TransformPersistence(self) -> Graphic3d_TransformPers: ... def Transformation(self) -> TopLoc_Datum3D: ... def ZLayer(self) -> Graphic3d_ZLayerId: ... @@ -1583,17 +2024,32 @@ class Graphic3d_Camera(Standard_Transient): def CopyOrientationData(self, theOtherCamera: Graphic3d_Camera) -> None: ... def Direction(self) -> gp_Dir: ... def Distance(self) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eye(self) -> gp_Pnt: ... def FOV2d(self) -> float: ... def FOVx(self) -> float: ... def FOVy(self) -> float: ... - def FitMinMax(self, theBox: Bnd_Box, theResolution: float, theToEnlargeIfLine: bool) -> bool: ... - def Frustum(self, theLeft: gp_Pln, theRight: gp_Pln, theBottom: gp_Pln, theTop: gp_Pln, theNear: gp_Pln, theFar: gp_Pln) -> None: ... + def FitMinMax( + self, theBox: Bnd_Box, theResolution: float, theToEnlargeIfLine: bool + ) -> bool: ... + def Frustum( + self, + theLeft: gp_Pln, + theRight: gp_Pln, + theBottom: gp_Pln, + theTop: gp_Pln, + theNear: gp_Pln, + theFar: gp_Pln, + ) -> None: ... def GetIODType(self) -> False: ... def IOD(self) -> float: ... @staticmethod - def Interpolate(theStart: Graphic3d_Camera, theEnd: Graphic3d_Camera, theT: float, theCamera: Graphic3d_Camera) -> None: ... + def Interpolate( + theStart: Graphic3d_Camera, + theEnd: Graphic3d_Camera, + theT: float, + theCamera: Graphic3d_Camera, + ) -> None: ... def InvalidateOrientation(self) -> None: ... def InvalidateProjection(self) -> None: ... def IsCustomMonoProjection(self) -> bool: ... @@ -1624,7 +2080,13 @@ class Graphic3d_Camera(Standard_Transient): def SetAxialScale(self, theAxialScale: gp_XYZ) -> None: ... def SetCenter(self, theCenter: gp_Pnt) -> None: ... def SetCustomMonoProjection(self, theProj: Graphic3d_Mat4d) -> None: ... - def SetCustomStereoProjection(self, theProjL: Graphic3d_Mat4d, theHeadToEyeL: Graphic3d_Mat4d, theProjR: Graphic3d_Mat4d, theHeadToEyeR: Graphic3d_Mat4d) -> None: ... + def SetCustomStereoProjection( + self, + theProjL: Graphic3d_Mat4d, + theHeadToEyeL: Graphic3d_Mat4d, + theProjR: Graphic3d_Mat4d, + theHeadToEyeR: Graphic3d_Mat4d, + ) -> None: ... def SetDirection(self, theDir: gp_Dir) -> None: ... def SetDirectionFromEye(self, theDir: gp_Dir) -> None: ... def SetDistance(self, theDistance: float) -> None: ... @@ -1639,8 +2101,20 @@ class Graphic3d_Camera(Standard_Transient): def SetZRange(self, theZNear: float, theZFar: float) -> None: ... def SetZeroToOneDepth(self, theIsZeroToOne: bool) -> None: ... def SideRight(self) -> gp_Dir: ... - def StereoProjection(self, theProjL: Graphic3d_Mat4d, theHeadToEyeL: Graphic3d_Mat4d, theProjR: Graphic3d_Mat4d, theHeadToEyeR: Graphic3d_Mat4d) -> None: ... - def StereoProjectionF(self, theProjL: Graphic3d_Mat4, theHeadToEyeL: Graphic3d_Mat4, theProjR: Graphic3d_Mat4, theHeadToEyeR: Graphic3d_Mat4) -> None: ... + def StereoProjection( + self, + theProjL: Graphic3d_Mat4d, + theHeadToEyeL: Graphic3d_Mat4d, + theProjR: Graphic3d_Mat4d, + theHeadToEyeR: Graphic3d_Mat4d, + ) -> None: ... + def StereoProjectionF( + self, + theProjL: Graphic3d_Mat4, + theHeadToEyeL: Graphic3d_Mat4, + theProjR: Graphic3d_Mat4, + theHeadToEyeR: Graphic3d_Mat4, + ) -> None: ... def Tile(self) -> Graphic3d_CameraTile: ... def Transform(self, theTrsf: gp_Trsf) -> None: ... def UnProject(self, thePnt: gp_Pnt) -> gp_Pnt: ... @@ -1653,9 +2127,13 @@ class Graphic3d_Camera(Standard_Transient): def WorldViewState(self) -> int: ... def ZFar(self) -> float: ... @overload - def ZFitAll(self, theScaleFactor: float, theMinMax: Bnd_Box, theGraphicBB: Bnd_Box) -> Tuple[bool, float, float]: ... + def ZFitAll( + self, theScaleFactor: float, theMinMax: Bnd_Box, theGraphicBB: Bnd_Box + ) -> Tuple[bool, float, float]: ... @overload - def ZFitAll(self, theScaleFactor: float, theMinMax: Bnd_Box, theGraphicBB: Bnd_Box) -> None: ... + def ZFitAll( + self, theScaleFactor: float, theMinMax: Bnd_Box, theGraphicBB: Bnd_Box + ) -> None: ... def ZFocus(self) -> float: ... def ZFocusType(self) -> False: ... def ZNear(self) -> float: ... @@ -1663,7 +2141,7 @@ class Graphic3d_Camera(Standard_Transient): class Graphic3d_CameraTile: def __init__(self) -> None: ... def Cropped(self) -> Graphic3d_CameraTile: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsValid(self) -> bool: ... def OffsetLowerLeft(self) -> Graphic3d_Vec2i: ... @@ -1685,7 +2163,7 @@ class Graphic3d_ClipPlane(Standard_Transient): def ChainNextPlane(self) -> Graphic3d_ClipPlane: ... def ChainPreviousPlane(self) -> Graphic3d_ClipPlane: ... def Clone(self) -> Graphic3d_ClipPlane: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetEquation(self) -> Graphic3d_Vec4d: ... def GetId(self) -> str: ... def IsBoxFullInHalfspace(self, theBox: Graphic3d_BndBox3d) -> bool: ... @@ -1700,7 +2178,9 @@ class Graphic3d_ClipPlane(Standard_Transient): def NbChainNextPlanes(self) -> int: ... def ProbeBox(self, theBox: Graphic3d_BndBox3d) -> Graphic3d_ClipState: ... def ProbeBoxHalfspace(self, theBox: Graphic3d_BndBox3d) -> Graphic3d_ClipState: ... - def ProbeBoxMaxPointHalfspace(self, theBox: Graphic3d_BndBox3d) -> Graphic3d_ClipState: ... + def ProbeBoxMaxPointHalfspace( + self, theBox: Graphic3d_BndBox3d + ) -> Graphic3d_ClipState: ... def ProbeBoxTouch(self, theBox: Graphic3d_BndBox3d) -> bool: ... def ProbePoint(self, thePoint: Graphic3d_Vec4d) -> Graphic3d_ClipState: ... def ProbePointHalfspace(self, thePoint: Graphic3d_Vec4d) -> Graphic3d_ClipState: ... @@ -1735,11 +2215,24 @@ class Graphic3d_CullingTool: def Camera(self) -> Graphic3d_Camera: ... def CameraDirection(self) -> Graphic3d_Vec3d: ... def CameraEye(self) -> Graphic3d_Vec3d: ... - def IsOutFrustum(self, theMinPnt: Graphic3d_Vec3d, theMaxPnt: Graphic3d_Vec3d, theIsInside: Optional[bool] = None) -> bool: ... + def IsOutFrustum( + self, + theMinPnt: Graphic3d_Vec3d, + theMaxPnt: Graphic3d_Vec3d, + theIsInside: Optional[bool] = None, + ) -> bool: ... def ProjectionMatrix(self) -> Graphic3d_Mat4d: ... - def SetViewVolume(self, theCamera: Graphic3d_Camera, theModelWorld: Optional[Graphic3d_Mat4d] = Graphic3d_Mat4d()) -> None: ... - def SetViewportSize(self, theViewportWidth: int, theViewportHeight: int, theResolutionRatio: float) -> None: ... - def SignedPlanePointDistance(self, theNormal: Graphic3d_Vec4d, thePnt: Graphic3d_Vec4d) -> float: ... + def SetViewVolume( + self, + theCamera: Graphic3d_Camera, + theModelWorld: Optional[Graphic3d_Mat4d] = Graphic3d_Mat4d(), + ) -> None: ... + def SetViewportSize( + self, theViewportWidth: int, theViewportHeight: int, theResolutionRatio: float + ) -> None: ... + def SignedPlanePointDistance( + self, theNormal: Graphic3d_Vec4d, thePnt: Graphic3d_Vec4d + ) -> float: ... def ViewportHeight(self) -> int: ... def ViewportWidth(self) -> int: ... def WorldViewMatrix(self) -> Graphic3d_Mat4d: ... @@ -1753,14 +2246,18 @@ class Graphic3d_FrameStats(Standard_Transient): def ChangeCounter(self, theCounter: Graphic3d_FrameStatsCounter) -> int: ... def ChangeDataFrames(self) -> False: ... def GetChangeTimer(self, theTimer: Graphic3d_FrameStatsTimer) -> float: ... - def SetChangeTimer(self, theTimer: Graphic3d_FrameStatsTimer, value: float) -> None: ... + def SetChangeTimer( + self, theTimer: Graphic3d_FrameStatsTimer, value: float + ) -> None: ... def CounterValue(self, theCounter: Graphic3d_FrameStatsCounter) -> int: ... def DataFrames(self) -> False: ... def FrameDuration(self) -> float: ... def FrameEnd(self, theView: Graphic3d_CView, theIsImmediateOnly: bool) -> None: ... def FrameRate(self) -> float: ... def FrameRateCpu(self) -> float: ... - def FrameStart(self, theView: Graphic3d_CView, theIsImmediateOnly: bool) -> None: ... + def FrameStart( + self, theView: Graphic3d_CView, theIsImmediateOnly: bool + ) -> None: ... def HasCulledLayers(self) -> bool: ... def HasCulledStructs(self) -> bool: ... def IsLongLineFormat(self) -> bool: ... @@ -1791,17 +2288,21 @@ class Graphic3d_Fresnel: def __init__(self) -> None: ... @overload @staticmethod - def CreateConductor(theRefractionIndex: float, theAbsorptionIndex: float) -> Graphic3d_Fresnel: ... + def CreateConductor( + theRefractionIndex: float, theAbsorptionIndex: float + ) -> Graphic3d_Fresnel: ... @overload @staticmethod - def CreateConductor(theRefractionIndex: Graphic3d_Vec3, theAbsorptionIndex: Graphic3d_Vec3) -> Graphic3d_Fresnel: ... + def CreateConductor( + theRefractionIndex: Graphic3d_Vec3, theAbsorptionIndex: Graphic3d_Vec3 + ) -> Graphic3d_Fresnel: ... @staticmethod def CreateConstant(theReflection: float) -> Graphic3d_Fresnel: ... @staticmethod def CreateDielectric(theRefractionIndex: float) -> Graphic3d_Fresnel: ... @staticmethod def CreateSchlick(theSpecularColor: Graphic3d_Vec3) -> Graphic3d_Fresnel: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FresnelType(self) -> Graphic3d_FresnelModel: ... def Serialize(self) -> Graphic3d_Vec4: ... @@ -1835,18 +2336,30 @@ class Graphic3d_GraduatedTrihedron: def ZAxisAspect(self) -> False: ... class Graphic3d_GraphicDriver(Standard_Transient): - def CreateStructure(self, theManager: Graphic3d_StructureManager) -> Graphic3d_CStructure: ... + def CreateStructure( + self, theManager: Graphic3d_StructureManager + ) -> Graphic3d_CStructure: ... def CreateView(self, theMgr: Graphic3d_StructureManager) -> Graphic3d_CView: ... def DefaultTextHeight(self) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EnableVBO(self, status: bool) -> None: ... def GetDisplayConnection(self) -> Aspect_DisplayConnection: ... def InquireLightLimit(self) -> int: ... def InquireLimit(self, theType: Graphic3d_TypeOfLimit) -> int: ... def InquirePlaneLimit(self) -> int: ... def InquireViewLimit(self) -> int: ... - def InsertLayerAfter(self, theNewLayerId: int, theSettings: Graphic3d_ZLayerSettings, theLayerBefore: int) -> None: ... - def InsertLayerBefore(self, theNewLayerId: int, theSettings: Graphic3d_ZLayerSettings, theLayerAfter: int) -> None: ... + def InsertLayerAfter( + self, + theNewLayerId: int, + theSettings: Graphic3d_ZLayerSettings, + theLayerBefore: int, + ) -> None: ... + def InsertLayerBefore( + self, + theNewLayerId: int, + theSettings: Graphic3d_ZLayerSettings, + theLayerAfter: int, + ) -> None: ... def IsVerticalSync(self) -> bool: ... def MemoryInfo(self, theFreeBytes: int, theInfo: str) -> bool: ... def NewIdentification(self) -> int: ... @@ -1855,45 +2368,79 @@ class Graphic3d_GraphicDriver(Standard_Transient): def RemoveView(self, theView: Graphic3d_CView) -> None: ... def RemoveZLayer(self, theLayerId: int) -> None: ... def SetVerticalSync(self, theToEnable: bool) -> None: ... - def SetZLayerSettings(self, theLayerId: int, theSettings: Graphic3d_ZLayerSettings) -> None: ... - def TextSize(self, theView: Graphic3d_CView, theText: str, theHeight: float) -> Tuple[float, float, float]: ... - def ViewExists(self, theWindow: Aspect_Window, theView: Graphic3d_CView) -> bool: ... + def SetZLayerSettings( + self, theLayerId: int, theSettings: Graphic3d_ZLayerSettings + ) -> None: ... + def TextSize( + self, theView: Graphic3d_CView, theText: str, theHeight: float + ) -> Tuple[float, float, float]: ... + def ViewExists( + self, theWindow: Aspect_Window, theView: Graphic3d_CView + ) -> bool: ... def ZLayerSettings(self, theLayerId: int) -> Graphic3d_ZLayerSettings: ... def ZLayers(self, theLayerSeq: TColStd_SequenceOfInteger) -> None: ... class Graphic3d_GraphicDriverFactory(Standard_Transient): - def CreateDriver(self, theDisp: Aspect_DisplayConnection) -> Graphic3d_GraphicDriver: ... + def CreateDriver( + self, theDisp: Aspect_DisplayConnection + ) -> Graphic3d_GraphicDriver: ... @staticmethod def DefaultDriverFactory() -> Graphic3d_GraphicDriverFactory: ... @staticmethod def DriverFactories() -> Graphic3d_GraphicDriverFactoryList: ... def Name(self) -> str: ... @staticmethod - def RegisterFactory(theFactory: Graphic3d_GraphicDriverFactory, theIsPreferred: Optional[bool] = false) -> None: ... + def RegisterFactory( + theFactory: Graphic3d_GraphicDriverFactory, + theIsPreferred: Optional[bool] = false, + ) -> None: ... @staticmethod def UnregisterFactory(theName: str) -> None: ... class Graphic3d_Group(Standard_Transient): @overload - def AddPrimitiveArray(self, theType: Graphic3d_TypeOfPrimitiveArray, theIndices: Graphic3d_IndexBuffer, theAttribs: Graphic3d_Buffer, theBounds: Graphic3d_BoundBuffer, theToEvalMinMax: Optional[bool] = True) -> None: ... - @overload - def AddPrimitiveArray(self, thePrim: Graphic3d_ArrayOfPrimitives, theToEvalMinMax: Optional[bool] = True) -> None: ... - def AddText(self, theTextParams: Graphic3d_Text, theToEvalMinMax: Optional[bool] = True) -> None: ... + def AddPrimitiveArray( + self, + theType: Graphic3d_TypeOfPrimitiveArray, + theIndices: Graphic3d_IndexBuffer, + theAttribs: Graphic3d_Buffer, + theBounds: Graphic3d_BoundBuffer, + theToEvalMinMax: Optional[bool] = True, + ) -> None: ... + @overload + def AddPrimitiveArray( + self, + thePrim: Graphic3d_ArrayOfPrimitives, + theToEvalMinMax: Optional[bool] = True, + ) -> None: ... + def AddText( + self, theTextParams: Graphic3d_Text, theToEvalMinMax: Optional[bool] = True + ) -> None: ... def Aspects(self) -> Graphic3d_Aspects: ... def BoundingBox(self) -> Graphic3d_BndBox4f: ... def ChangeBoundingBox(self) -> Graphic3d_BndBox4f: ... def Clear(self, theUpdateStructureMgr: Optional[bool] = True) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsClosed(self) -> bool: ... def IsDeleted(self) -> bool: ... def IsEmpty(self) -> bool: ... - def Marker(self, thePoint: Graphic3d_Vertex, theToEvalMinMax: Optional[bool] = True) -> None: ... + def Marker( + self, thePoint: Graphic3d_Vertex, theToEvalMinMax: Optional[bool] = True + ) -> None: ... def MinMaxValues(self) -> Tuple[float, float, float, float, float, float]: ... def Remove(self) -> None: ... def ReplaceAspects(self, theMap: Graphic3d_MapOfAspectsToAspects) -> None: ... def SetClosed(self, theIsClosed: bool) -> None: ... def SetFlippingOptions(self, theIsEnabled: bool, theRefPlane: gp_Ax2) -> None: ... - def SetMinMaxValues(self, theXMin: float, theYMin: float, theZMin: float, theXMax: float, theYMax: float, theZMax: float) -> None: ... + def SetMinMaxValues( + self, + theXMin: float, + theYMin: float, + theZMin: float, + theXMax: float, + theYMax: float, + theZMax: float, + ) -> None: ... def SetPrimitivesAspect(self, theAspect: Graphic3d_Aspects) -> None: ... def SetStencilTestOptions(self, theIsEnabled: bool) -> None: ... def SetTransformPersistence(self, theTrsfPers: Graphic3d_TransformPers) -> None: ... @@ -1901,17 +2448,71 @@ class Graphic3d_Group(Standard_Transient): def Structure(self) -> Graphic3d_Structure: ... def SynchronizeAspects(self) -> None: ... @overload - def Text(self, AText: str, APoint: Graphic3d_Vertex, AHeight: float, AAngle: float, ATp: Graphic3d_TextPath, AHta: Graphic3d_HorizontalTextAlignment, AVta: Graphic3d_VerticalTextAlignment, EvalMinMax: Optional[bool] = True) -> None: ... - @overload - def Text(self, AText: str, APoint: Graphic3d_Vertex, AHeight: float, EvalMinMax: Optional[bool] = True) -> None: ... - @overload - def Text(self, AText: str, APoint: Graphic3d_Vertex, AHeight: float, AAngle: float, ATp: Graphic3d_TextPath, AHta: Graphic3d_HorizontalTextAlignment, AVta: Graphic3d_VerticalTextAlignment, EvalMinMax: Optional[bool] = True) -> None: ... - @overload - def Text(self, AText: str, APoint: Graphic3d_Vertex, AHeight: float, EvalMinMax: Optional[bool] = True) -> None: ... - @overload - def Text(self, theTextUtf: str, theOrientation: gp_Ax2, theHeight: float, theAngle: float, theTp: Graphic3d_TextPath, theHTA: Graphic3d_HorizontalTextAlignment, theVTA: Graphic3d_VerticalTextAlignment, theToEvalMinMax: Optional[bool] = True, theHasOwnAnchor: Optional[bool] = True) -> None: ... - @overload - def Text(self, theText: str, theOrientation: gp_Ax2, theHeight: float, theAngle: float, theTp: Graphic3d_TextPath, theHTA: Graphic3d_HorizontalTextAlignment, theVTA: Graphic3d_VerticalTextAlignment, theToEvalMinMax: Optional[bool] = True, theHasOwnAnchor: Optional[bool] = True) -> None: ... + def Text( + self, + AText: str, + APoint: Graphic3d_Vertex, + AHeight: float, + AAngle: float, + ATp: Graphic3d_TextPath, + AHta: Graphic3d_HorizontalTextAlignment, + AVta: Graphic3d_VerticalTextAlignment, + EvalMinMax: Optional[bool] = True, + ) -> None: ... + @overload + def Text( + self, + AText: str, + APoint: Graphic3d_Vertex, + AHeight: float, + EvalMinMax: Optional[bool] = True, + ) -> None: ... + @overload + def Text( + self, + AText: str, + APoint: Graphic3d_Vertex, + AHeight: float, + AAngle: float, + ATp: Graphic3d_TextPath, + AHta: Graphic3d_HorizontalTextAlignment, + AVta: Graphic3d_VerticalTextAlignment, + EvalMinMax: Optional[bool] = True, + ) -> None: ... + @overload + def Text( + self, + AText: str, + APoint: Graphic3d_Vertex, + AHeight: float, + EvalMinMax: Optional[bool] = True, + ) -> None: ... + @overload + def Text( + self, + theTextUtf: str, + theOrientation: gp_Ax2, + theHeight: float, + theAngle: float, + theTp: Graphic3d_TextPath, + theHTA: Graphic3d_HorizontalTextAlignment, + theVTA: Graphic3d_VerticalTextAlignment, + theToEvalMinMax: Optional[bool] = True, + theHasOwnAnchor: Optional[bool] = True, + ) -> None: ... + @overload + def Text( + self, + theText: str, + theOrientation: gp_Ax2, + theHeight: float, + theAngle: float, + theTp: Graphic3d_TextPath, + theHTA: Graphic3d_HorizontalTextAlignment, + theVTA: Graphic3d_VerticalTextAlignment, + theToEvalMinMax: Optional[bool] = True, + theHasOwnAnchor: Optional[bool] = True, + ) -> None: ... def TransformPersistence(self) -> Graphic3d_TransformPers: ... def Transformation(self) -> gp_Trsf: ... @@ -1920,18 +2521,30 @@ class Graphic3d_HatchStyle(Standard_Transient): def __init__(self, thePattern: Image_PixMap) -> None: ... @overload def __init__(self, theType: Aspect_HatchStyle) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def HatchType(self) -> int: ... def Pattern(self) -> str: ... class Graphic3d_Layer(Standard_Transient): - def Add(self, theStruct: Graphic3d_CStructure, thePriority: Graphic3d_DisplayPriority, isForChangePriority: Optional[bool] = False) -> None: ... + def Add( + self, + theStruct: Graphic3d_CStructure, + thePriority: Graphic3d_DisplayPriority, + isForChangePriority: Optional[bool] = False, + ) -> None: ... def Append(self, theOther: Graphic3d_Layer) -> bool: ... def ArrayOfStructures(self) -> Graphic3d_ArrayOfIndexedMapOfStructure: ... - def BoundingBox(self, theViewId: int, theCamera: Graphic3d_Camera, theWindowWidth: int, theWindowHeight: int, theToIncludeAuxiliary: bool) -> Bnd_Box: ... + def BoundingBox( + self, + theViewId: int, + theCamera: Graphic3d_Camera, + theWindowWidth: int, + theWindowHeight: int, + theToIncludeAuxiliary: bool, + ) -> Bnd_Box: ... def CullableStructuresBVH(self) -> Graphic3d_BvhCStructureSet: ... def CullableTrsfPersStructuresBVH(self) -> Graphic3d_BvhCStructureSetTrsfPers: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def InvalidateBVHData(self) -> None: ... def InvalidateBoundingBox(self) -> None: ... def IsCulled(self) -> bool: ... @@ -1943,10 +2556,22 @@ class Graphic3d_Layer(Standard_Transient): def NbStructures(self) -> int: ... def NbStructuresNotCulled(self) -> int: ... def NonCullableStructures(self) -> False: ... - def Remove(self, theStruct: Graphic3d_CStructure, isForChangePriority: Optional[bool] = False) -> Tuple[bool, Graphic3d_DisplayPriority]: ... + def Remove( + self, + theStruct: Graphic3d_CStructure, + isForChangePriority: Optional[bool] = False, + ) -> Tuple[bool, Graphic3d_DisplayPriority]: ... def SetLayerSettings(self, theSettings: Graphic3d_ZLayerSettings) -> None: ... - def Structures(self, thePriority: Graphic3d_DisplayPriority) -> Graphic3d_IndexedMapOfStructure: ... - def considerZoomPersistenceObjects(self, theViewId: int, theCamera: Graphic3d_Camera, theWindowWidth: int, theWindowHeight: int) -> float: ... + def Structures( + self, thePriority: Graphic3d_DisplayPriority + ) -> Graphic3d_IndexedMapOfStructure: ... + def considerZoomPersistenceObjects( + self, + theViewId: int, + theCamera: Graphic3d_Camera, + theWindowWidth: int, + theWindowHeight: int, + ) -> float: ... class Graphic3d_LightSet(Standard_Transient): def __init__(self) -> None: ... @@ -1970,10 +2595,18 @@ class Graphic3d_LightSet(Standard_Transient): class Graphic3d_MarkerImage(Standard_Transient): @overload - def __init__(self, theImage: Image_PixMap, theImageAlpha: Optional[Image_PixMap] = Image_PixMap()) -> None: ... - @overload - def __init__(self, theBitMap: TColStd_HArray1OfByte, theWidth: int, theHeight: int) -> None: ... - def GetBitMapArray(self, theAlphaValue: Optional[float] = 0.5, theIsTopDown: Optional[bool] = false) -> TColStd_HArray1OfByte: ... + def __init__( + self, + theImage: Image_PixMap, + theImageAlpha: Optional[Image_PixMap] = Image_PixMap(), + ) -> None: ... + @overload + def __init__( + self, theBitMap: TColStd_HArray1OfByte, theWidth: int, theHeight: int + ) -> None: ... + def GetBitMapArray( + self, theAlphaValue: Optional[float] = 0.5, theIsTopDown: Optional[bool] = false + ) -> TColStd_HArray1OfByte: ... def GetImage(self) -> Image_PixMap: ... def GetImageAlpha(self) -> Image_PixMap: ... def GetImageAlphaId(self) -> str: ... @@ -1981,7 +2614,9 @@ class Graphic3d_MarkerImage(Standard_Transient): def GetTextureSize(self) -> Tuple[int, int]: ... def IsColoredImage(self) -> bool: ... @staticmethod - def StandardMarker(theMarkerType: Aspect_TypeOfMarker, theScale: float, theColor: Graphic3d_Vec4) -> Graphic3d_MarkerImage: ... + def StandardMarker( + theMarkerType: Aspect_TypeOfMarker, theScale: float, theColor: Graphic3d_Vec4 + ) -> Graphic3d_MarkerImage: ... class Graphic3d_MaterialAspect: @overload @@ -1993,7 +2628,7 @@ class Graphic3d_MaterialAspect: def BSDF(self) -> Graphic3d_BSDF: ... def Color(self) -> Quantity_Color: ... def DiffuseColor(self) -> Quantity_Color: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EmissiveColor(self) -> Quantity_Color: ... def IncreaseShine(self, theDelta: float) -> None: ... def IsDifferent(self, theOther: Graphic3d_MaterialAspect) -> bool: ... @@ -2050,10 +2685,12 @@ class Graphic3d_PBRMaterial: def __init__(self, theBSDF: Graphic3d_BSDF) -> None: ... def Alpha(self) -> float: ... def Color(self) -> Quantity_ColorRGBA: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Emission(self) -> Graphic3d_Vec3: ... @staticmethod - def GenerateEnvLUT(theLUT: Image_PixMap, theNbIntegralSamples: Optional[int] = 1024) -> None: ... + def GenerateEnvLUT( + theLUT: Image_PixMap, theNbIntegralSamples: Optional[int] = 1024 + ) -> None: ... def IOR(self) -> float: ... def Metallic(self) -> float: ... @staticmethod @@ -2067,7 +2704,9 @@ class Graphic3d_PBRMaterial: @overload def Roughness(self) -> float: ... @staticmethod - def RoughnessFromSpecular(theSpecular: Quantity_Color, theShiness: float) -> float: ... + def RoughnessFromSpecular( + theSpecular: Quantity_Color, theShiness: float + ) -> float: ... def SetAlpha(self, theAlpha: float) -> None: ... def SetBSDF(self, theBSDF: Graphic3d_BSDF) -> None: ... @overload @@ -2079,11 +2718,13 @@ class Graphic3d_PBRMaterial: def SetMetallic(self, theMetallic: float) -> None: ... def SetRoughness(self, theRoughness: float) -> None: ... @staticmethod - def SpecIBLMapSamplesFactor(theProbability: float, theRoughness: float) -> float: ... + def SpecIBLMapSamplesFactor( + theProbability: float, theRoughness: float + ) -> float: ... class Graphic3d_PolygonOffset: def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... class Graphic3d_PresentationAttributes(Standard_Transient): def __init__(self) -> None: ... @@ -2091,7 +2732,7 @@ class Graphic3d_PresentationAttributes(Standard_Transient): def Color(self) -> Quantity_Color: ... def ColorRGBA(self) -> Quantity_ColorRGBA: ... def DisplayMode(self) -> int: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Method(self) -> Aspect_TypeOfHighlightMethod: ... def SetBasicFillAreaAspect(self, theAspect: Graphic3d_AspectFillArea3d) -> None: ... def SetColor(self, theColor: Quantity_Color) -> None: ... @@ -2104,14 +2745,14 @@ class Graphic3d_PresentationAttributes(Standard_Transient): class Graphic3d_RenderingParams: def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ResolutionRatio(self) -> float: ... class Graphic3d_SequenceOfHClipPlane(Standard_Transient): def __init__(self) -> None: ... def Append(self, theItem: Graphic3d_ClipPlane) -> bool: ... def Clear(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def First(self) -> Graphic3d_ClipPlane: ... def IsEmpty(self) -> bool: ... def SetOverrideGlobal(self, theToOverride: bool) -> None: ... @@ -2125,7 +2766,9 @@ class Graphic3d_ShaderAttribute(Standard_Transient): class Graphic3d_ShaderManager(Standard_Transient): def __init__(self, theGapi: Aspect_GraphicsLibrary) -> None: ... - def EnableGlslExtension(self, theExt: Graphic3d_GlslExtension, theToEnable: Optional[bool] = true) -> None: ... + def EnableGlslExtension( + self, theExt: Graphic3d_GlslExtension, theToEnable: Optional[bool] = true + ) -> None: ... def GapiVersionMajor(self) -> int: ... def GapiVersionMinor(self) -> int: ... def HasFlatShading(self) -> bool: ... @@ -2141,9 +2784,13 @@ class Graphic3d_ShaderManager(Standard_Transient): class Graphic3d_ShaderObject(Standard_Transient): @staticmethod - def CreateFromFile(theType: Graphic3d_TypeOfShaderObject, thePath: str) -> Graphic3d_ShaderObject: ... + def CreateFromFile( + theType: Graphic3d_TypeOfShaderObject, thePath: str + ) -> Graphic3d_ShaderObject: ... @staticmethod - def CreateFromSource(theType: Graphic3d_TypeOfShaderObject, theSource: str) -> Graphic3d_ShaderObject: ... + def CreateFromSource( + theType: Graphic3d_TypeOfShaderObject, theSource: str + ) -> Graphic3d_ShaderObject: ... def GetId(self) -> str: ... def IsDone(self) -> bool: ... def Path(self) -> OSD_Path: ... @@ -2186,7 +2833,9 @@ class Graphic3d_ShaderProgram(Standard_Transient): def SetOitOutput(self, theOutput: Graphic3d_RenderTransparentMethod) -> None: ... def SetPBR(self, theIsPBR: bool) -> None: ... def SetTextureSetBits(self, theBits: int) -> None: ... - def SetVertexAttributes(self, theAttributes: Graphic3d_ShaderAttributeList) -> None: ... + def SetVertexAttributes( + self, theAttributes: Graphic3d_ShaderAttributeList + ) -> None: ... def ShaderObjects(self) -> Graphic3d_ShaderObjectList: ... @staticmethod def ShadersFolder() -> str: ... @@ -2200,9 +2849,17 @@ class Graphic3d_ShaderVariable(Standard_Transient): def Value(self) -> Graphic3d_ValueInterface: ... class Graphic3d_Structure(Standard_Transient): - def __init__(self, theManager: Graphic3d_StructureManager, theLinkPrs: Optional[Graphic3d_Structure] = Graphic3d_Structure()) -> None: ... + def __init__( + self, + theManager: Graphic3d_StructureManager, + theLinkPrs: Optional[Graphic3d_Structure] = Graphic3d_Structure(), + ) -> None: ... @staticmethod - def AcceptConnection(theStructure1: Graphic3d_Structure, theStructure2: Graphic3d_Structure, theType: Graphic3d_TypeOfConnection) -> bool: ... + def AcceptConnection( + theStructure1: Graphic3d_Structure, + theStructure2: Graphic3d_Structure, + theType: Graphic3d_TypeOfConnection, + ) -> bool: ... def Ancestors(self, SG: Graphic3d_MapOfStructure) -> None: ... def CStructure(self) -> Graphic3d_CStructure: ... def CalculateBoundBox(self) -> None: ... @@ -2211,7 +2868,12 @@ class Graphic3d_Structure(Standard_Transient): def Compute(self) -> None: ... def ComputeVisual(self) -> Graphic3d_TypeOfStructure: ... @overload - def Connect(self, theStructure: Graphic3d_Structure, theType: Graphic3d_TypeOfConnection, theWithCheck: Optional[bool] = False) -> None: ... + def Connect( + self, + theStructure: Graphic3d_Structure, + theType: Graphic3d_TypeOfConnection, + theWithCheck: Optional[bool] = False, + ) -> None: ... @overload def Connect(self, thePrs: Graphic3d_Structure) -> None: ... def CurrentGroup(self) -> Graphic3d_Group: ... @@ -2220,7 +2882,7 @@ class Graphic3d_Structure(Standard_Transient): def DisconnectAll(self, AType: Graphic3d_TypeOfConnection) -> None: ... def Display(self) -> None: ... def DisplayPriority(self) -> Graphic3d_DisplayPriority: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Erase(self) -> None: ... def GetZLayer(self) -> Graphic3d_ZLayerId: ... def GraphicClear(self, WithDestruction: bool) -> None: ... @@ -2229,7 +2891,11 @@ class Graphic3d_Structure(Standard_Transient): def GraphicTransform(self, theTrsf: TopLoc_Datum3D) -> None: ... def Groups(self) -> Graphic3d_SequenceOfGroup: ... def HLRValidation(self) -> bool: ... - def Highlight(self, theStyle: Graphic3d_PresentationAttributes, theToUpdateMgr: Optional[bool] = True) -> None: ... + def Highlight( + self, + theStyle: Graphic3d_PresentationAttributes, + theToUpdateMgr: Optional[bool] = True, + ) -> None: ... def HighlightStyle(self) -> Graphic3d_PresentationAttributes: ... def Identification(self) -> int: ... def IsDeleted(self) -> bool: ... @@ -2240,12 +2906,16 @@ class Graphic3d_Structure(Standard_Transient): def IsMutable(self) -> bool: ... def IsTransformed(self) -> bool: ... def IsVisible(self) -> bool: ... - def MinMaxValues(self, theToIgnoreInfiniteFlag: Optional[bool] = False) -> Bnd_Box: ... + def MinMaxValues( + self, theToIgnoreInfiniteFlag: Optional[bool] = False + ) -> Bnd_Box: ... def NewGroup(self) -> Graphic3d_Group: ... def NumberOfGroups(self) -> int: ... def Owner(self) -> None: ... @staticmethod - def PrintNetwork(AStructure: Graphic3d_Structure, AType: Graphic3d_TypeOfConnection) -> None: ... + def PrintNetwork( + AStructure: Graphic3d_Structure, AType: Graphic3d_TypeOfConnection + ) -> None: ... @overload def ReCompute(self) -> None: ... @overload @@ -2256,7 +2926,9 @@ class Graphic3d_Structure(Standard_Transient): @overload def Remove(self, thePrs: Graphic3d_Structure) -> None: ... @overload - def Remove(self, thePtr: Graphic3d_Structure, theType: Graphic3d_TypeOfConnection) -> None: ... + def Remove( + self, thePtr: Graphic3d_Structure, theType: Graphic3d_TypeOfConnection + ) -> None: ... def RemoveAll(self) -> None: ... def ResetDisplayPriority(self) -> None: ... def SetClipPlanes(self, thePlanes: Graphic3d_SequenceOfHClipPlane) -> None: ... @@ -2279,22 +2951,39 @@ class Graphic3d_Structure(Standard_Transient): def TransformPersistence(self) -> Graphic3d_TransformPers: ... def Transformation(self) -> TopLoc_Datum3D: ... @staticmethod - def Transforms(theTrsf: gp_Trsf, theX: float, theY: float, theZ: float) -> Tuple[float, float, float]: ... + def Transforms( + theTrsf: gp_Trsf, theX: float, theY: float, theZ: float + ) -> Tuple[float, float, float]: ... def UnHighlight(self) -> None: ... def Visual(self) -> Graphic3d_TypeOfStructure: ... - def computeHLR(self, theProjector: Graphic3d_Camera, theStructure: Graphic3d_Structure) -> None: ... + def computeHLR( + self, theProjector: Graphic3d_Camera, theStructure: Graphic3d_Structure + ) -> None: ... class Graphic3d_StructureManager(Standard_Transient): def __init__(self, theDriver: Graphic3d_GraphicDriver) -> None: ... - def ChangeDisplayPriority(self, theStructure: Graphic3d_Structure, theOldPriority: Graphic3d_DisplayPriority, theNewPriority: Graphic3d_DisplayPriority) -> None: ... - def ChangeZLayer(self, theStructure: Graphic3d_Structure, theLayerId: int) -> None: ... - def Clear(self, theStructure: Graphic3d_Structure, theWithDestruction: bool) -> None: ... - def Connect(self, theMother: Graphic3d_Structure, theDaughter: Graphic3d_Structure) -> None: ... + def ChangeDisplayPriority( + self, + theStructure: Graphic3d_Structure, + theOldPriority: Graphic3d_DisplayPriority, + theNewPriority: Graphic3d_DisplayPriority, + ) -> None: ... + def ChangeZLayer( + self, theStructure: Graphic3d_Structure, theLayerId: int + ) -> None: ... + def Clear( + self, theStructure: Graphic3d_Structure, theWithDestruction: bool + ) -> None: ... + def Connect( + self, theMother: Graphic3d_Structure, theDaughter: Graphic3d_Structure + ) -> None: ... def DefinedViews(self) -> Graphic3d_IndexedMapOfView: ... - def Disconnect(self, theMother: Graphic3d_Structure, theDaughter: Graphic3d_Structure) -> None: ... + def Disconnect( + self, theMother: Graphic3d_Structure, theDaughter: Graphic3d_Structure + ) -> None: ... def Display(self, theStructure: Graphic3d_Structure) -> None: ... def DisplayedStructures(self, SG: Graphic3d_MapOfStructure) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Erase(self) -> None: ... @overload @@ -2308,24 +2997,36 @@ class Graphic3d_StructureManager(Standard_Transient): def Identification(self, AId: int) -> Graphic3d_Structure: ... def IsDeviceLost(self) -> bool: ... def MaxNumOfViews(self) -> int: ... - def ObjectAffinity(self, theObject: Standard_Transient) -> Graphic3d_ViewAffinity: ... + def ObjectAffinity( + self, theObject: Standard_Transient + ) -> Graphic3d_ViewAffinity: ... @overload def ReCompute(self, theStructure: Graphic3d_Structure) -> None: ... @overload - def ReCompute(self, theStructure: Graphic3d_Structure, theProjector: Graphic3d_DataStructureManager) -> None: ... + def ReCompute( + self, + theStructure: Graphic3d_Structure, + theProjector: Graphic3d_DataStructureManager, + ) -> None: ... @overload def RecomputeStructures(self) -> None: ... - def RegisterObject(self, theObject: Standard_Transient, theAffinity: Graphic3d_ViewAffinity) -> None: ... + def RegisterObject( + self, theObject: Standard_Transient, theAffinity: Graphic3d_ViewAffinity + ) -> None: ... def Remove(self) -> None: ... def SetDeviceLost(self) -> None: ... - def SetTransform(self, theStructure: Graphic3d_Structure, theTrsf: TopLoc_Datum3D) -> None: ... + def SetTransform( + self, theStructure: Graphic3d_Structure, theTrsf: TopLoc_Datum3D + ) -> None: ... @overload def UnHighlight(self, AStructure: Graphic3d_Structure) -> None: ... @overload def UnHighlight(self) -> None: ... def UnIdentification(self, theView: Graphic3d_CView) -> None: ... def UnregisterObject(self, theObject: Standard_Transient) -> None: ... - def Update(self, theLayerId: Optional[int] = Graphic3d_ZLayerId_UNKNOWN) -> None: ... + def Update( + self, theLayerId: Optional[int] = Graphic3d_ZLayerId_UNKNOWN + ) -> None: ... class Graphic3d_Text(Standard_Transient): def __init__(self, theHeight: float) -> None: ... @@ -2337,7 +3038,9 @@ class Graphic3d_Text(Standard_Transient): def Position(self) -> gp_Pnt: ... def ResetOrientation(self) -> None: ... def SetHeight(self, theHeight: float) -> None: ... - def SetHorizontalAlignment(self, theJustification: Graphic3d_HorizontalTextAlignment) -> None: ... + def SetHorizontalAlignment( + self, theJustification: Graphic3d_HorizontalTextAlignment + ) -> None: ... def SetOrientation(self, theOrientation: gp_Ax2) -> None: ... def SetOwnAnchorPoint(self, theHasOwnAnchor: bool) -> None: ... def SetPosition(self, thePoint: gp_Pnt) -> None: ... @@ -2347,7 +3050,9 @@ class Graphic3d_Text(Standard_Transient): def SetText(self, theText: str) -> None: ... @overload def SetText(self, theText: str) -> None: ... - def SetVerticalAlignment(self, theJustification: Graphic3d_VerticalTextAlignment) -> None: ... + def SetVerticalAlignment( + self, theJustification: Graphic3d_VerticalTextAlignment + ) -> None: ... def Text(self) -> NCollection_String: ... def TextFormatter(self) -> False: ... def VerticalAlignment(self) -> Graphic3d_VerticalTextAlignment: ... @@ -2368,8 +3073,15 @@ class Graphic3d_TextureParams(Standard_Transient): def Scale(self) -> Graphic3d_Vec2: ... def SetAnisoFilter(self, theLevel: Graphic3d_LevelOfTextureAnisotropy) -> None: ... def SetFilter(self, theFilter: Graphic3d_TypeOfTextureFilter) -> None: ... - def SetGenMode(self, theMode: Graphic3d_TypeOfTextureMode, thePlaneS: Graphic3d_Vec4, thePlaneT: Graphic3d_Vec4) -> None: ... - def SetLevelsRange(self, theFirstLevel: int, theSecondLevel: Optional[int] = 0) -> None: ... + def SetGenMode( + self, + theMode: Graphic3d_TypeOfTextureMode, + thePlaneS: Graphic3d_Vec4, + thePlaneT: Graphic3d_Vec4, + ) -> None: ... + def SetLevelsRange( + self, theFirstLevel: int, theSecondLevel: Optional[int] = 0 + ) -> None: ... def SetModulate(self, theToModulate: bool) -> None: ... def SetRepeat(self, theToRepeat: bool) -> None: ... def SetRotation(self, theAngleDegrees: float) -> None: ... @@ -2380,7 +3092,9 @@ class Graphic3d_TextureParams(Standard_Transient): def Translation(self) -> Graphic3d_Vec2: ... class Graphic3d_TextureRoot(Standard_Transient): - def GetCompressedImage(self, theSupported: Image_SupportedFormats) -> Image_CompressedPixMap: ... + def GetCompressedImage( + self, theSupported: Image_SupportedFormats + ) -> Image_CompressedPixMap: ... def GetId(self) -> str: ... def GetImage(self, theSupported: Image_SupportedFormats) -> Image_PixMap: ... def GetParams(self) -> Graphic3d_TextureParams: ... @@ -2403,11 +3117,22 @@ class Graphic3d_TransformPers(Standard_Transient): @overload def __init__(self, theMode: Graphic3d_TransModeFlags, thePnt: gp_Pnt) -> None: ... @overload - def __init__(self, theMode: Graphic3d_TransModeFlags, theCorner: Aspect_TypeOfTriedronPosition, theOffset: Optional[Graphic3d_Vec2i] = Graphic3d_Vec2i(0,0)) -> None: ... + def __init__( + self, + theMode: Graphic3d_TransModeFlags, + theCorner: Aspect_TypeOfTriedronPosition, + theOffset: Optional[Graphic3d_Vec2i] = Graphic3d_Vec2i(0, 0), + ) -> None: ... def AnchorPoint(self) -> gp_Pnt: ... - def ComputeApply(self, theCamera: Graphic3d_Camera, theViewportWidth: int, theViewportHeight: int, theAnchor: Optional[gp_Pnt] = None) -> False: ... + def ComputeApply( + self, + theCamera: Graphic3d_Camera, + theViewportWidth: int, + theViewportHeight: int, + theAnchor: Optional[gp_Pnt] = None, + ) -> False: ... def Corner2d(self) -> Aspect_TypeOfTriedronPosition: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Flags(self) -> Graphic3d_TransModeFlags: ... @overload @staticmethod @@ -2435,11 +3160,22 @@ class Graphic3d_TransformPers(Standard_Transient): def SetCorner2d(self, thePos: Aspect_TypeOfTriedronPosition) -> None: ... def SetOffset2d(self, theOffset: Graphic3d_Vec2i) -> None: ... @overload - def SetPersistence(self, theMode: Graphic3d_TransModeFlags, thePnt: gp_Pnt) -> None: ... - @overload - def SetPersistence(self, theMode: Graphic3d_TransModeFlags, theCorner: Aspect_TypeOfTriedronPosition, theOffset: Graphic3d_Vec2i) -> None: ... - def persistentRotationMatrix(self, theCamera: Graphic3d_Camera, theViewportWidth: int, theViewportHeight: int) -> False: ... - def persistentScale(self, theCamera: Graphic3d_Camera, theViewportWidth: int, theViewportHeight: int) -> float: ... + def SetPersistence( + self, theMode: Graphic3d_TransModeFlags, thePnt: gp_Pnt + ) -> None: ... + @overload + def SetPersistence( + self, + theMode: Graphic3d_TransModeFlags, + theCorner: Aspect_TypeOfTriedronPosition, + theOffset: Graphic3d_Vec2i, + ) -> None: ... + def persistentRotationMatrix( + self, theCamera: Graphic3d_Camera, theViewportWidth: int, theViewportHeight: int + ) -> False: ... + def persistentScale( + self, theCamera: Graphic3d_Camera, theViewportWidth: int, theViewportHeight: int + ) -> float: ... class Graphic3d_UniformValueTypeID: pass @@ -2483,7 +3219,7 @@ class Graphic3d_Vertex: @overload def Coord(self) -> Tuple[float, float, float]: ... def Distance(self, theOther: Graphic3d_Vertex) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def SetCoord(self, theX: float, theY: float, theZ: float) -> None: ... @overload @@ -2494,7 +3230,7 @@ class Graphic3d_Vertex: class Graphic3d_ViewAffinity(Standard_Transient): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsVisible(self, theViewId: int) -> bool: ... @overload def SetVisible(self, theIsVisible: bool) -> None: ... @@ -2505,10 +3241,20 @@ class Graphic3d_WorldViewProjState: @overload def __init__(self) -> None: ... @overload - def __init__(self, theProjectionState: int, theWorldViewState: int, theCamera: Optional[Standard_Transient] = None) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - @overload - def Initialize(self, theProjectionState: int, theWorldViewState: int, theCamera: Optional[Standard_Transient] = None) -> None: ... + def __init__( + self, + theProjectionState: int, + theWorldViewState: int, + theCamera: Optional[Standard_Transient] = None, + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + @overload + def Initialize( + self, + theProjectionState: int, + theWorldViewState: int, + theCamera: Optional[Standard_Transient] = None, + ) -> None: ... @overload def Initialize(self, theCamera: Optional[Standard_Transient] = None) -> None: ... def IsChanged(self, theState: Graphic3d_WorldViewProjState) -> bool: ... @@ -2524,7 +3270,7 @@ class Graphic3d_ZLayerSettings: def ChangePolygonOffset(self) -> Graphic3d_PolygonOffset: ... def CullingDistance(self) -> float: ... def CullingSize(self) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def HasCullingDistance(self) -> bool: ... def HasCullingSize(self) -> bool: ... def IsImmediate(self) -> bool: ... @@ -2559,68 +3305,167 @@ class Graphic3d_ArrayOfPoints(Graphic3d_ArrayOfPrimitives): @overload def __init__(self, theMaxVertexs: int, theArrayFlags: int) -> None: ... @overload - def __init__(self, theMaxVertexs: int, theHasVColors: Optional[bool] = False, theHasVNormals: Optional[bool] = False) -> None: ... + def __init__( + self, + theMaxVertexs: int, + theHasVColors: Optional[bool] = False, + theHasVNormals: Optional[bool] = False, + ) -> None: ... class Graphic3d_ArrayOfPolygons(Graphic3d_ArrayOfPrimitives): @overload - def __init__(self, theMaxVertexs: int, theMaxBounds: int, theMaxEdges: int, theArrayFlags: int) -> None: ... - @overload - def __init__(self, theMaxVertexs: int, theMaxBounds: Optional[int] = 0, theMaxEdges: Optional[int] = 0, theHasVNormals: Optional[bool] = False, theHasVColors: Optional[bool] = False, theHasBColors: Optional[bool] = False, theHasVTexels: Optional[bool] = False) -> None: ... + def __init__( + self, + theMaxVertexs: int, + theMaxBounds: int, + theMaxEdges: int, + theArrayFlags: int, + ) -> None: ... + @overload + def __init__( + self, + theMaxVertexs: int, + theMaxBounds: Optional[int] = 0, + theMaxEdges: Optional[int] = 0, + theHasVNormals: Optional[bool] = False, + theHasVColors: Optional[bool] = False, + theHasBColors: Optional[bool] = False, + theHasVTexels: Optional[bool] = False, + ) -> None: ... class Graphic3d_ArrayOfPolylines(Graphic3d_ArrayOfPrimitives): @overload - def __init__(self, theMaxVertexs: int, theMaxBounds: int, theMaxEdges: int, theArrayFlags: int) -> None: ... - @overload - def __init__(self, theMaxVertexs: int, theMaxBounds: Optional[int] = 0, theMaxEdges: Optional[int] = 0, theHasVColors: Optional[bool] = False, theHasBColors: Optional[bool] = False) -> None: ... + def __init__( + self, + theMaxVertexs: int, + theMaxBounds: int, + theMaxEdges: int, + theArrayFlags: int, + ) -> None: ... + @overload + def __init__( + self, + theMaxVertexs: int, + theMaxBounds: Optional[int] = 0, + theMaxEdges: Optional[int] = 0, + theHasVColors: Optional[bool] = False, + theHasBColors: Optional[bool] = False, + ) -> None: ... class Graphic3d_ArrayOfQuadrangleStrips(Graphic3d_ArrayOfPrimitives): @overload - def __init__(self, theMaxVertexs: int, theMaxStrips: int, theArrayFlags: int) -> None: ... + def __init__( + self, theMaxVertexs: int, theMaxStrips: int, theArrayFlags: int + ) -> None: ... @overload - def __init__(self, theMaxVertexs: int, theMaxStrips: Optional[int] = 0, theHasVNormals: Optional[bool] = False, theHasVColors: Optional[bool] = False, theHasSColors: Optional[bool] = False, theHasVTexels: Optional[bool] = False) -> None: ... + def __init__( + self, + theMaxVertexs: int, + theMaxStrips: Optional[int] = 0, + theHasVNormals: Optional[bool] = False, + theHasVColors: Optional[bool] = False, + theHasSColors: Optional[bool] = False, + theHasVTexels: Optional[bool] = False, + ) -> None: ... class Graphic3d_ArrayOfQuadrangles(Graphic3d_ArrayOfPrimitives): @overload - def __init__(self, theMaxVertexs: int, theMaxEdges: int, theArrayFlags: int) -> None: ... + def __init__( + self, theMaxVertexs: int, theMaxEdges: int, theArrayFlags: int + ) -> None: ... @overload - def __init__(self, theMaxVertexs: int, theMaxEdges: Optional[int] = 0, theHasVNormals: Optional[bool] = False, theHasVColors: Optional[bool] = False, theHasVTexels: Optional[bool] = False) -> None: ... + def __init__( + self, + theMaxVertexs: int, + theMaxEdges: Optional[int] = 0, + theHasVNormals: Optional[bool] = False, + theHasVColors: Optional[bool] = False, + theHasVTexels: Optional[bool] = False, + ) -> None: ... class Graphic3d_ArrayOfSegments(Graphic3d_ArrayOfPrimitives): @overload - def __init__(self, theMaxVertexs: int, theMaxEdges: int, theArrayFlags: int) -> None: ... + def __init__( + self, theMaxVertexs: int, theMaxEdges: int, theArrayFlags: int + ) -> None: ... @overload - def __init__(self, theMaxVertexs: int, theMaxEdges: Optional[int] = 0, theHasVColors: Optional[bool] = False) -> None: ... + def __init__( + self, + theMaxVertexs: int, + theMaxEdges: Optional[int] = 0, + theHasVColors: Optional[bool] = False, + ) -> None: ... class Graphic3d_ArrayOfTriangleFans(Graphic3d_ArrayOfPrimitives): @overload - def __init__(self, theMaxVertexs: int, theMaxFans: int, theArrayFlags: int) -> None: ... + def __init__( + self, theMaxVertexs: int, theMaxFans: int, theArrayFlags: int + ) -> None: ... @overload - def __init__(self, theMaxVertexs: int, theMaxFans: Optional[int] = 0, theHasVNormals: Optional[bool] = False, theHasVColors: Optional[bool] = False, theHasBColors: Optional[bool] = False, theHasVTexels: Optional[bool] = False) -> None: ... + def __init__( + self, + theMaxVertexs: int, + theMaxFans: Optional[int] = 0, + theHasVNormals: Optional[bool] = False, + theHasVColors: Optional[bool] = False, + theHasBColors: Optional[bool] = False, + theHasVTexels: Optional[bool] = False, + ) -> None: ... class Graphic3d_ArrayOfTriangleStrips(Graphic3d_ArrayOfPrimitives): @overload - def __init__(self, theMaxVertexs: int, theMaxStrips: int, theArrayFlags: int) -> None: ... + def __init__( + self, theMaxVertexs: int, theMaxStrips: int, theArrayFlags: int + ) -> None: ... @overload - def __init__(self, theMaxVertexs: int, theMaxStrips: Optional[int] = 0, theHasVNormals: Optional[bool] = False, theHasVColors: Optional[bool] = False, theHasBColors: Optional[bool] = False, theHasVTexels: Optional[bool] = False) -> None: ... + def __init__( + self, + theMaxVertexs: int, + theMaxStrips: Optional[int] = 0, + theHasVNormals: Optional[bool] = False, + theHasVColors: Optional[bool] = False, + theHasBColors: Optional[bool] = False, + theHasVTexels: Optional[bool] = False, + ) -> None: ... class Graphic3d_ArrayOfTriangles(Graphic3d_ArrayOfPrimitives): @overload - def __init__(self, theMaxVertexs: int, theMaxEdges: int, theArrayFlags: int) -> None: ... + def __init__( + self, theMaxVertexs: int, theMaxEdges: int, theArrayFlags: int + ) -> None: ... @overload - def __init__(self, theMaxVertexs: int, theMaxEdges: Optional[int] = 0, theHasVNormals: Optional[bool] = False, theHasVColors: Optional[bool] = False, theHasVTexels: Optional[bool] = False) -> None: ... + def __init__( + self, + theMaxVertexs: int, + theMaxEdges: Optional[int] = 0, + theHasVNormals: Optional[bool] = False, + theHasVColors: Optional[bool] = False, + theHasVTexels: Optional[bool] = False, + ) -> None: ... class Graphic3d_AspectFillArea3d(Graphic3d_Aspects): @overload def __init__(self) -> None: ... @overload - def __init__(self, theInterior: Aspect_InteriorStyle, theInteriorColor: Quantity_Color, theEdgeColor: Quantity_Color, theEdgeLineType: Aspect_TypeOfLine, theEdgeWidth: float, theFrontMaterial: Graphic3d_MaterialAspect, theBackMaterial: Graphic3d_MaterialAspect) -> None: ... + def __init__( + self, + theInterior: Aspect_InteriorStyle, + theInteriorColor: Quantity_Color, + theEdgeColor: Quantity_Color, + theEdgeLineType: Aspect_TypeOfLine, + theEdgeWidth: float, + theFrontMaterial: Graphic3d_MaterialAspect, + theBackMaterial: Graphic3d_MaterialAspect, + ) -> None: ... def Edge(self) -> bool: ... class Graphic3d_AspectLine3d(Graphic3d_Aspects): @overload def __init__(self) -> None: ... @overload - def __init__(self, theColor: Quantity_Color, theType: Aspect_TypeOfLine, theWidth: float) -> None: ... + def __init__( + self, theColor: Quantity_Color, theType: Aspect_TypeOfLine, theWidth: float + ) -> None: ... def SetType(self, theType: Aspect_TypeOfLine) -> None: ... @overload def SetWidth(self, theWidth: float) -> None: ... @@ -2633,15 +3478,25 @@ class Graphic3d_AspectMarker3d(Graphic3d_Aspects): @overload def __init__(self) -> None: ... @overload - def __init__(self, theType: Aspect_TypeOfMarker, theColor: Quantity_Color, theScale: float) -> None: ... + def __init__( + self, theType: Aspect_TypeOfMarker, theColor: Quantity_Color, theScale: float + ) -> None: ... @overload - def __init__(self, theColor: Quantity_Color, theWidth: int, theHeight: int, theTextureBitmap: TColStd_HArray1OfByte) -> None: ... + def __init__( + self, + theColor: Quantity_Color, + theWidth: int, + theHeight: int, + theTextureBitmap: TColStd_HArray1OfByte, + ) -> None: ... @overload def __init__(self, theTextureImage: Image_PixMap) -> None: ... def GetMarkerImage(self) -> Graphic3d_MarkerImage: ... def GetTextureSize(self) -> Tuple[int, int]: ... def Scale(self) -> float: ... - def SetBitMap(self, theWidth: int, theHeight: int, theTexture: TColStd_HArray1OfByte) -> None: ... + def SetBitMap( + self, theWidth: int, theHeight: int, theTexture: TColStd_HArray1OfByte + ) -> None: ... @overload def SetScale(self, theScale: float) -> None: ... @overload @@ -2653,11 +3508,19 @@ class Graphic3d_AspectText3d(Graphic3d_Aspects): @overload def __init__(self) -> None: ... @overload - def __init__(self, theColor: Quantity_Color, theFont: str, theExpansionFactor: float, theSpace: float, theStyle: Optional[Aspect_TypeOfStyleText] = Aspect_TOST_NORMAL, theDisplayType: Optional[Aspect_TypeOfDisplayText] = Aspect_TODT_NORMAL) -> None: ... + def __init__( + self, + theColor: Quantity_Color, + theFont: str, + theExpansionFactor: float, + theSpace: float, + theStyle: Optional[Aspect_TypeOfStyleText] = Aspect_TOST_NORMAL, + theDisplayType: Optional[Aspect_TypeOfDisplayText] = Aspect_TODT_NORMAL, + ) -> None: ... def Color(self) -> Quantity_Color: ... def ColorRGBA(self) -> Quantity_ColorRGBA: ... def DisplayType(self) -> Aspect_TypeOfDisplayText: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Font(self) -> str: ... def GetTextAngle(self) -> float: ... def GetTextFontAspect(self) -> False: ... @@ -2678,15 +3541,21 @@ class Graphic3d_AspectText3d(Graphic3d_Aspects): class Graphic3d_AttribBuffer(Graphic3d_Buffer): def __init__(self, theAlloc: NCollection_BaseAllocator) -> None: ... @overload - def Init(self, theNbElems: int, theAttribs: Graphic3d_Attribute, theNbAttribs: int) -> bool: ... + def Init( + self, theNbElems: int, theAttribs: Graphic3d_Attribute, theNbAttribs: int + ) -> bool: ... @overload - def Init(self, theNbElems: int, theAttribs: Graphic3d_Array1OfAttribute) -> bool: ... + def Init( + self, theNbElems: int, theAttribs: Graphic3d_Array1OfAttribute + ) -> bool: ... @overload def Invalidate(self) -> None: ... @overload def Invalidate(self, theAttributeIndex: int) -> None: ... @overload - def Invalidate(self, theAttributeIndex: int, theVertexLower: int, theVertexUpper: int) -> None: ... + def Invalidate( + self, theAttributeIndex: int, theVertexLower: int, theVertexUpper: int + ) -> None: ... @overload def Invalidate(self, theVertexLower: int, theVertexUpper: int) -> None: ... def InvalidatedRange(self) -> Graphic3d_BufferRange: ... @@ -2708,41 +3577,71 @@ class Graphic3d_CView(Graphic3d_DataStructureManager): def BackgroundSkydome(self) -> Aspect_SkydomeBackground: ... def BackgroundType(self) -> Graphic3d_TypeOfBackground: ... def BaseXRCamera(self) -> Graphic3d_Camera: ... - def BufferDump(self, theImage: Image_PixMap, theBufferType: Graphic3d_BufferType) -> bool: ... + def BufferDump( + self, theImage: Image_PixMap, theBufferType: Graphic3d_BufferType + ) -> bool: ... def Camera(self) -> Graphic3d_Camera: ... def ChangeRenderingParams(self) -> Graphic3d_RenderingParams: ... def ClipPlanes(self) -> Graphic3d_SequenceOfHClipPlane: ... def Compute(self) -> None: ... - def ComputeXRBaseCameraFromPosed(self, theCamPosed: Graphic3d_Camera, thePoseTrsf: gp_Trsf) -> None: ... - def ComputeXRPosedCameraFromBase(self, theCam: Graphic3d_Camera, theXRTrsf: gp_Trsf) -> None: ... + def ComputeXRBaseCameraFromPosed( + self, theCamPosed: Graphic3d_Camera, thePoseTrsf: gp_Trsf + ) -> None: ... + def ComputeXRPosedCameraFromBase( + self, theCam: Graphic3d_Camera, theXRTrsf: gp_Trsf + ) -> None: ... def ComputedMode(self) -> bool: ... def ConsiderZoomPersistenceObjects(self) -> float: ... def CopySettings(self, theOther: Graphic3d_CView) -> None: ... def Deactivate(self) -> None: ... - def DiagnosticInformation(self, theDict: TColStd_IndexedDataMapOfStringString, theFlags: Graphic3d_DiagnosticInfo) -> None: ... + def DiagnosticInformation( + self, + theDict: TColStd_IndexedDataMapOfStringString, + theFlags: Graphic3d_DiagnosticInfo, + ) -> None: ... def DisplayedStructures(self, theStructures: Graphic3d_MapOfStructure) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FBO(self) -> Standard_Transient: ... - def FBOChangeViewport(self, theFbo: Standard_Transient, theWidth: int, theHeight: int) -> None: ... + def FBOChangeViewport( + self, theFbo: Standard_Transient, theWidth: int, theHeight: int + ) -> None: ... def FBOCreate(self, theWidth: int, theHeight: int) -> Standard_Transient: ... - def FBOGetDimensions(self, theFbo: Standard_Transient) -> Tuple[int, int, int, int]: ... + def FBOGetDimensions( + self, theFbo: Standard_Transient + ) -> Tuple[int, int, int, int]: ... def FBORelease(self, theFbo: Standard_Transient) -> None: ... def GetGraduatedTrihedron(self) -> Graphic3d_GraduatedTrihedron: ... def GradientBackground(self) -> Aspect_GradientBackground: ... - def GraduatedTrihedronDisplay(self, theTrihedronData: Graphic3d_GraduatedTrihedron) -> None: ... + def GraduatedTrihedronDisplay( + self, theTrihedronData: Graphic3d_GraduatedTrihedron + ) -> None: ... def GraduatedTrihedronErase(self) -> None: ... - def GraduatedTrihedronMinMaxValues(self, theMin: Graphic3d_Vec3, theMax: Graphic3d_Vec3) -> None: ... + def GraduatedTrihedronMinMaxValues( + self, theMin: Graphic3d_Vec3, theMax: Graphic3d_Vec3 + ) -> None: ... def IBLCubeMap(self) -> Graphic3d_CubeMap: ... def Identification(self) -> int: ... def InitXR(self) -> bool: ... - def InsertLayerAfter(self, theNewLayerId: int, theSettings: Graphic3d_ZLayerSettings, theLayerBefore: int) -> None: ... - def InsertLayerBefore(self, theNewLayerId: int, theSettings: Graphic3d_ZLayerSettings, theLayerAfter: int) -> None: ... + def InsertLayerAfter( + self, + theNewLayerId: int, + theSettings: Graphic3d_ZLayerSettings, + theLayerBefore: int, + ) -> None: ... + def InsertLayerBefore( + self, + theNewLayerId: int, + theSettings: Graphic3d_ZLayerSettings, + theLayerAfter: int, + ) -> None: ... def Invalidate(self) -> None: ... def InvalidateBVHData(self, theLayerId: int) -> None: ... def InvalidateZLayerBoundingBox(self, theLayerId: int) -> None: ... def IsActive(self) -> bool: ... def IsActiveXR(self) -> bool: ... - def IsComputed(self, theStructId: int, theComputedStruct: Graphic3d_Structure) -> bool: ... + def IsComputed( + self, theStructId: int, theComputedStruct: Graphic3d_Structure + ) -> bool: ... def IsDefined(self) -> bool: ... def IsInvalidated(self) -> bool: ... def IsRemoved(self) -> bool: ... @@ -2753,9 +3652,15 @@ class Graphic3d_CView(Graphic3d_DataStructureManager): def Layers(self) -> False: ... def Lights(self) -> Graphic3d_LightSet: ... @overload - def MinMaxValues(self, theToIncludeAuxiliary: Optional[bool] = False) -> Bnd_Box: ... + def MinMaxValues( + self, theToIncludeAuxiliary: Optional[bool] = False + ) -> Bnd_Box: ... @overload - def MinMaxValues(self, theSet: Graphic3d_MapOfStructure, theToIncludeAuxiliary: Optional[bool] = False) -> Bnd_Box: ... + def MinMaxValues( + self, + theSet: Graphic3d_MapOfStructure, + theToIncludeAuxiliary: Optional[bool] = False, + ) -> Bnd_Box: ... def NumberOfDisplayedStructures(self) -> int: ... def ParentView(self) -> Graphic3d_CView: ... def PoseXRToWorld(self, thePoseXR: gp_Trsf) -> gp_Trsf: ... @@ -2772,16 +3677,26 @@ class Graphic3d_CView(Graphic3d_DataStructureManager): def Resized(self) -> None: ... def SetBackfacingModel(self, theModel: Graphic3d_TypeOfBackfacingModel) -> None: ... def SetBackground(self, theBackground: Aspect_Background) -> None: ... - def SetBackgroundImage(self, theTextureMap: Graphic3d_TextureMap, theToUpdatePBREnv: Optional[bool] = True) -> None: ... + def SetBackgroundImage( + self, + theTextureMap: Graphic3d_TextureMap, + theToUpdatePBREnv: Optional[bool] = True, + ) -> None: ... def SetBackgroundImageStyle(self, theFillStyle: Aspect_FillMethod) -> None: ... - def SetBackgroundSkydome(self, theAspect: Aspect_SkydomeBackground, theToUpdatePBREnv: Optional[bool] = True) -> None: ... + def SetBackgroundSkydome( + self, + theAspect: Aspect_SkydomeBackground, + theToUpdatePBREnv: Optional[bool] = True, + ) -> None: ... def SetBackgroundType(self, theType: Graphic3d_TypeOfBackground) -> None: ... def SetBaseXRCamera(self, theCamera: Graphic3d_Camera) -> None: ... def SetCamera(self, theCamera: Graphic3d_Camera) -> None: ... def SetClipPlanes(self, thePlanes: Graphic3d_SequenceOfHClipPlane) -> None: ... def SetComputedMode(self, theMode: bool) -> None: ... def SetFBO(self, theFbo: Standard_Transient) -> None: ... - def SetGradientBackground(self, theBackground: Aspect_GradientBackground) -> None: ... + def SetGradientBackground( + self, theBackground: Aspect_GradientBackground + ) -> None: ... def SetImageBasedLighting(self, theToEnableIBL: bool) -> None: ... def SetImmediateModeDrawToFront(self, theDrawToFrontBuffer: bool) -> bool: ... def SetLights(self, theLights: Graphic3d_LightSet) -> None: ... @@ -2795,10 +3710,17 @@ class Graphic3d_CView(Graphic3d_DataStructureManager): def SetTextureEnv(self, theTextureEnv: Graphic3d_TextureEnv) -> None: ... def SetUnitFactor(self, theFactor: float) -> None: ... def SetVisualizationType(self, theType: Graphic3d_TypeOfVisualization) -> None: ... - def SetWindow(self, theParentVIew: Graphic3d_CView, theWindow: Aspect_Window, theContext: Aspect_RenderingContext) -> None: ... + def SetWindow( + self, + theParentVIew: Graphic3d_CView, + theWindow: Aspect_Window, + theContext: Aspect_RenderingContext, + ) -> None: ... def SetXRSession(self, theSession: Aspect_XRSession) -> None: ... def SetZLayerRedrawMode(self, theMode: bool) -> None: ... - def SetZLayerSettings(self, theLayerId: int, theSettings: Graphic3d_ZLayerSettings) -> None: ... + def SetZLayerSettings( + self, theLayerId: int, theSettings: Graphic3d_ZLayerSettings + ) -> None: ... def SetZLayerTarget(self, theTarget: int) -> None: ... def SetupXRPosedCamera(self) -> None: ... def ShadingModel(self) -> Graphic3d_TypeOfShadingModel: ... @@ -2806,7 +3728,9 @@ class Graphic3d_CView(Graphic3d_DataStructureManager): @overload def StatisticInformation(self) -> str: ... @overload - def StatisticInformation(self, theDict: TColStd_IndexedDataMapOfStringString) -> None: ... + def StatisticInformation( + self, theDict: TColStd_IndexedDataMapOfStringString + ) -> None: ... def StructureManager(self) -> Graphic3d_StructureManager: ... def SubviewCorner(self) -> Aspect_TypeOfTriedronPosition: ... def SubviewMargins(self) -> Graphic3d_Vec2i: ... @@ -2822,7 +3746,9 @@ class Graphic3d_CView(Graphic3d_DataStructureManager): def TurnViewXRCamera(self, theTrsfTurn: gp_Trsf) -> None: ... def UnitFactor(self) -> float: ... def UnsetXRPosedCamera(self) -> None: ... - def Update(self, theLayerId: Optional[int] = Graphic3d_ZLayerId_UNKNOWN) -> None: ... + def Update( + self, theLayerId: Optional[int] = Graphic3d_ZLayerId_UNKNOWN + ) -> None: ... def ViewAxisInWorld(self, thePoseXR: gp_Trsf) -> gp_Ax1: ... def VisualizationType(self) -> Graphic3d_TypeOfVisualization: ... def Window(self) -> Aspect_Window: ... @@ -2844,7 +3770,9 @@ class Graphic3d_FrameStatsDataTmp(Graphic3d_FrameStatsData): def SetChangeImmediateFrameRateCpu(self, value: float) -> None: ... def ChangeTimer(self, theTimer: Graphic3d_FrameStatsTimer) -> OSD_Timer: ... def GetChangeTimerValue(self, theIndex: Graphic3d_FrameStatsTimer) -> float: ... - def SetChangeTimerValue(self, theIndex: Graphic3d_FrameStatsTimer, value: float) -> None: ... + def SetChangeTimerValue( + self, theIndex: Graphic3d_FrameStatsTimer, value: float + ) -> None: ... def FlushTimers(self, theNbFrames: int, theIsFinal: bool) -> None: ... def Reset(self) -> None: ... @@ -2890,10 +3818,14 @@ class Graphic3d_TextureMap(Graphic3d_TextureRoot): class Graphic3d_TransformPersScaledAbove(Graphic3d_TransformPers): def __init__(self, theScale: float, thePnt: gp_Pnt) -> None: ... - def persistentScale(self, theCamera: Graphic3d_Camera, theViewportWidth: int, theViewportHeight: int) -> float: ... + def persistentScale( + self, theCamera: Graphic3d_Camera, theViewportWidth: int, theViewportHeight: int + ) -> float: ... class Graphic3d_CubeMap(Graphic3d_TextureMap): - def CompressedValue(self, theSupported: Image_SupportedFormats) -> Image_CompressedPixMap: ... + def CompressedValue( + self, theSupported: Image_SupportedFormats + ) -> Image_CompressedPixMap: ... def CurrentSide(self) -> Graphic3d_CubeMapSide: ... def HasMipmaps(self) -> bool: ... def More(self) -> bool: ... @@ -2945,12 +3877,16 @@ class Graphic3d_Texture3D(Graphic3d_TextureMap): def SetImage(self, thePixMap: Image_PixMap) -> None: ... class Graphic3d_CubeMapSeparate(Graphic3d_CubeMap): - def CompressedValue(self, theSupported: Image_SupportedFormats) -> Image_CompressedPixMap: ... + def CompressedValue( + self, theSupported: Image_SupportedFormats + ) -> Image_CompressedPixMap: ... def IsDone(self) -> bool: ... def Value(self, theSupported: Image_SupportedFormats) -> Image_PixMap: ... class Graphic3d_MediaTexture(Graphic3d_Texture2D): - def __init__(self, theMutex: Standard_HMutex, thePlane: Optional[int] = -1) -> None: ... + def __init__( + self, theMutex: Standard_HMutex, thePlane: Optional[int] = -1 + ) -> None: ... def Frame(self) -> Media_Frame: ... def GenerateNewId(self) -> None: ... def GetImage(self, theSupported: Image_SupportedFormats) -> Image_PixMap: ... @@ -2972,7 +3908,15 @@ class Graphic3d_Texture1Dsegment(Graphic3d_Texture1D): @overload def __init__(self, thePixMap: Image_PixMap) -> None: ... def Segment(self) -> Tuple[float, float, float, float, float, float]: ... - def SetSegment(self, theX1: float, theY1: float, theZ1: float, theX2: float, theY2: float, theZ2: float) -> None: ... + def SetSegment( + self, + theX1: float, + theY1: float, + theZ1: float, + theX2: float, + theY2: float, + theZ2: float, + ) -> None: ... class Graphic3d_Texture2Dplane(Graphic3d_Texture2D): @overload @@ -2998,34 +3942,33 @@ class Graphic3d_Texture2Dplane(Graphic3d_Texture2D): def TranslateS(self) -> float: ... def TranslateT(self) -> float: ... -#classnotwrapped +# classnotwrapped class Graphic3d_UniformValue: ... -#classnotwrapped +# classnotwrapped class Graphic3d_UniformValueType: ... -#classnotwrapped +# classnotwrapped class Graphic3d_UniformValueTypeID: ... -#classnotwrapped +# classnotwrapped class Graphic3d_Buffer: ... -#classnotwrapped +# classnotwrapped class Graphic3d_IndexBuffer: ... -#classnotwrapped +# classnotwrapped class Graphic3d_TextureSet: ... -#classnotwrapped +# classnotwrapped class Graphic3d_CubeMapOrder: ... -#classnotwrapped +# classnotwrapped class Graphic3d_CubeMapPacked: ... -#classnotwrapped +# classnotwrapped class Graphic3d_BvhCStructureSetTrsfPers: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/HLRAlgo.i b/src/SWIG_files/wrapper/HLRAlgo.i index 5e48ea9ca..92e8078ef 100644 --- a/src/SWIG_files/wrapper/HLRAlgo.i +++ b/src/SWIG_files/wrapper/HLRAlgo.i @@ -149,6 +149,12 @@ Array1ExtendIter(HLRAlgo_TriangleData) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = HLRAlgo_ListIteratorOfInterferenceList(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(HLRAlgo_ListIteratorOfInterferenceList) NCollection_TListIterator; @@ -159,6 +165,12 @@ Array1ExtendIter(HLRAlgo_TriangleData) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = HLRAlgo_ListIteratorOfListOfBPoint(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/HLRAlgo.pyi b/src/SWIG_files/wrapper/HLRAlgo.pyi index 5774a698b..4d213352d 100644 --- a/src/SWIG_files/wrapper/HLRAlgo.pyi +++ b/src/SWIG_files/wrapper/HLRAlgo.pyi @@ -7,7 +7,6 @@ from OCC.Core.TopAbs import * from OCC.Core.TColgp import * from OCC.Core.gp import * - class HLRAlgo_Array1OfPHDat: @overload def __init__(self) -> None: ... @@ -78,7 +77,9 @@ class HLRAlgo_Array1OfPISeg: def First(self) -> HLRAlgo_PolyInternalSegment: ... def Last(self) -> HLRAlgo_PolyInternalSegment: ... def Value(self, theIndex: int) -> HLRAlgo_PolyInternalSegment: ... - def SetValue(self, theIndex: int, theValue: HLRAlgo_PolyInternalSegment) -> None: ... + def SetValue( + self, theIndex: int, theValue: HLRAlgo_PolyInternalSegment + ) -> None: ... class HLRAlgo_Array1OfTData: @overload @@ -105,32 +106,32 @@ class HLRAlgo_Array1OfTData: def SetValue(self, theIndex: int, theValue: HLRAlgo_TriangleData) -> None: ... class HLRAlgo_InterferenceList: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: HLRAlgo_Interference) -> HLRAlgo_Interference: ... + def Assign(self, theItem: HLRAlgo_InterferenceList) -> HLRAlgo_InterferenceList: ... def Clear(self) -> None: ... def First(self) -> HLRAlgo_Interference: ... def Last(self) -> HLRAlgo_Interference: ... - def Append(self, theItem: HLRAlgo_Interference) -> HLRAlgo_Interference: ... def Prepend(self, theItem: HLRAlgo_Interference) -> HLRAlgo_Interference: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> HLRAlgo_Interference: ... - def SetValue(self, theIndex: int, theValue: HLRAlgo_Interference) -> None: ... - -class HLRAlgo_ListOfBPoint: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> HLRAlgo_Interference: ... + +class HLRAlgo_ListOfBPoint: + def Append(self, theItem: HLRAlgo_BiPoint) -> HLRAlgo_BiPoint: ... + def Assign(self, theItem: HLRAlgo_ListOfBPoint) -> HLRAlgo_ListOfBPoint: ... def Clear(self) -> None: ... def First(self) -> HLRAlgo_BiPoint: ... def Last(self) -> HLRAlgo_BiPoint: ... - def Append(self, theItem: HLRAlgo_BiPoint) -> HLRAlgo_BiPoint: ... def Prepend(self, theItem: HLRAlgo_BiPoint) -> HLRAlgo_BiPoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> HLRAlgo_BiPoint: ... - def SetValue(self, theIndex: int, theValue: HLRAlgo_BiPoint) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> HLRAlgo_BiPoint: ... class HLRAlgo_PolyMask(IntEnum): HLRAlgo_PolyMask_EMskOutLin1: int = ... @@ -163,27 +164,156 @@ HLRAlgo_PolyMask_FMskFrBack = HLRAlgo_PolyMask.HLRAlgo_PolyMask_FMskFrBack class hlralgo: @staticmethod - def EnlargeMinMax(tol: float, Min_list: List[float], Max_list: List[float]) -> None: ... + def EnlargeMinMax( + tol: float, Min_list: List[float], Max_list: List[float] + ) -> None: ... @staticmethod - def InitMinMax(Big: float, Min_list: List[float], Max_list: List[float]) -> None: ... + def InitMinMax( + Big: float, Min_list: List[float], Max_list: List[float] + ) -> None: ... @staticmethod - def UpdateMinMax(x: float, y: float, z: float, Min_list: List[float], Max_list: List[float]) -> None: ... + def UpdateMinMax( + x: float, y: float, z: float, Min_list: List[float], Max_list: List[float] + ) -> None: ... class HLRAlgo_BiPoint: @overload def __init__(self) -> None: ... @overload - def __init__(self, X1: float, Y1: float, Z1: float, X2: float, Y2: float, Z2: float, XT1: float, YT1: float, ZT1: float, XT2: float, YT2: float, ZT2: float, Index: int, reg1: bool, regn: bool, outl: bool, intl: bool) -> None: ... - @overload - def __init__(self, X1: float, Y1: float, Z1: float, X2: float, Y2: float, Z2: float, XT1: float, YT1: float, ZT1: float, XT2: float, YT2: float, ZT2: float, Index: int, flag: int) -> None: ... - @overload - def __init__(self, X1: float, Y1: float, Z1: float, X2: float, Y2: float, Z2: float, XT1: float, YT1: float, ZT1: float, XT2: float, YT2: float, ZT2: float, Index: int, i1: int, i1p1: int, i1p2: int, reg1: bool, regn: bool, outl: bool, intl: bool) -> None: ... - @overload - def __init__(self, X1: float, Y1: float, Z1: float, X2: float, Y2: float, Z2: float, XT1: float, YT1: float, ZT1: float, XT2: float, YT2: float, ZT2: float, Index: int, i1: int, i1p1: int, i1p2: int, flag: int) -> None: ... - @overload - def __init__(self, X1: float, Y1: float, Z1: float, X2: float, Y2: float, Z2: float, XT1: float, YT1: float, ZT1: float, XT2: float, YT2: float, ZT2: float, Index: int, i1: int, i1p1: int, i1p2: int, i2: int, i2p1: int, i2p2: int, reg1: bool, regn: bool, outl: bool, intl: bool) -> None: ... - @overload - def __init__(self, X1: float, Y1: float, Z1: float, X2: float, Y2: float, Z2: float, XT1: float, YT1: float, ZT1: float, XT2: float, YT2: float, ZT2: float, Index: int, i1: int, i1p1: int, i1p2: int, i2: int, i2p1: int, i2p2: int, flag: int) -> None: ... + def __init__( + self, + X1: float, + Y1: float, + Z1: float, + X2: float, + Y2: float, + Z2: float, + XT1: float, + YT1: float, + ZT1: float, + XT2: float, + YT2: float, + ZT2: float, + Index: int, + reg1: bool, + regn: bool, + outl: bool, + intl: bool, + ) -> None: ... + @overload + def __init__( + self, + X1: float, + Y1: float, + Z1: float, + X2: float, + Y2: float, + Z2: float, + XT1: float, + YT1: float, + ZT1: float, + XT2: float, + YT2: float, + ZT2: float, + Index: int, + flag: int, + ) -> None: ... + @overload + def __init__( + self, + X1: float, + Y1: float, + Z1: float, + X2: float, + Y2: float, + Z2: float, + XT1: float, + YT1: float, + ZT1: float, + XT2: float, + YT2: float, + ZT2: float, + Index: int, + i1: int, + i1p1: int, + i1p2: int, + reg1: bool, + regn: bool, + outl: bool, + intl: bool, + ) -> None: ... + @overload + def __init__( + self, + X1: float, + Y1: float, + Z1: float, + X2: float, + Y2: float, + Z2: float, + XT1: float, + YT1: float, + ZT1: float, + XT2: float, + YT2: float, + ZT2: float, + Index: int, + i1: int, + i1p1: int, + i1p2: int, + flag: int, + ) -> None: ... + @overload + def __init__( + self, + X1: float, + Y1: float, + Z1: float, + X2: float, + Y2: float, + Z2: float, + XT1: float, + YT1: float, + ZT1: float, + XT2: float, + YT2: float, + ZT2: float, + Index: int, + i1: int, + i1p1: int, + i1p2: int, + i2: int, + i2p1: int, + i2p2: int, + reg1: bool, + regn: bool, + outl: bool, + intl: bool, + ) -> None: ... + @overload + def __init__( + self, + X1: float, + Y1: float, + Z1: float, + X2: float, + Y2: float, + Z2: float, + XT1: float, + YT1: float, + ZT1: float, + XT2: float, + YT2: float, + ZT2: float, + Index: int, + i1: int, + i1p1: int, + i1p2: int, + i2: int, + i2p1: int, + i2p2: int, + flag: int, + ) -> None: ... @overload def Hidden(self) -> bool: ... @overload @@ -227,7 +357,9 @@ class HLRAlgo_EdgeStatus: @overload def __init__(self) -> None: ... @overload - def __init__(self, Start: float, TolStart: float, End: float, TolEnd: float) -> None: ... + def __init__( + self, Start: float, TolStart: float, End: float, TolEnd: float + ) -> None: ... @overload def AllHidden(self) -> bool: ... @overload @@ -237,9 +369,19 @@ class HLRAlgo_EdgeStatus: @overload def AllVisible(self, B: bool) -> None: ... def Bounds(self) -> Tuple[float, float, float, float]: ... - def Hide(self, Start: float, TolStart: float, End: float, TolEnd: float, OnFace: bool, OnBoundary: bool) -> None: ... + def Hide( + self, + Start: float, + TolStart: float, + End: float, + TolEnd: float, + OnFace: bool, + OnBoundary: bool, + ) -> None: ... def HideAll(self) -> None: ... - def Initialize(self, Start: float, TolStart: float, End: float, TolEnd: float) -> None: ... + def Initialize( + self, Start: float, TolStart: float, End: float, TolEnd: float + ) -> None: ... def NbVisiblePart(self) -> int: ... def ShowAll(self) -> None: ... def VisiblePart(self, Index: int) -> Tuple[float, float, float, float]: ... @@ -277,7 +419,14 @@ class HLRAlgo_Interference: @overload def __init__(self) -> None: ... @overload - def __init__(self, Inters: HLRAlgo_Intersection, Bound: HLRAlgo_Coincidence, Orient: TopAbs_Orientation, Trans: TopAbs_Orientation, BTrans: TopAbs_Orientation) -> None: ... + def __init__( + self, + Inters: HLRAlgo_Intersection, + Bound: HLRAlgo_Coincidence, + Orient: TopAbs_Orientation, + Trans: TopAbs_Orientation, + BTrans: TopAbs_Orientation, + ) -> None: ... @overload def Boundary(self, B: HLRAlgo_Coincidence) -> None: ... @overload @@ -305,7 +454,16 @@ class HLRAlgo_Intersection: @overload def __init__(self) -> None: ... @overload - def __init__(self, Ori: TopAbs_Orientation, Lev: int, SegInd: int, Ind: int, P: float, Tol: float, S: TopAbs_State) -> None: ... + def __init__( + self, + Ori: TopAbs_Orientation, + Lev: int, + SegInd: int, + Ind: int, + P: float, + Tol: float, + S: TopAbs_State, + ) -> None: ... @overload def Index(self, Ind: int) -> None: ... @overload @@ -339,7 +497,9 @@ class HLRAlgo_PolyAlgo(Standard_Transient): def __init__(self) -> None: ... def ChangePolyShell(self) -> False: ... def Clear(self) -> None: ... - def Hide(self, status: HLRAlgo_EdgeStatus) -> Tuple[False, int, bool, bool, bool, bool]: ... + def Hide( + self, status: HLRAlgo_EdgeStatus + ) -> Tuple[False, int, bool, bool, bool, bool]: ... def Init(self, theNbShells: int) -> None: ... def InitHide(self) -> None: ... def InitShow(self) -> None: ... @@ -371,9 +531,15 @@ class HLRAlgo_PolyInternalData(Standard_Transient): def DecPISeg(self) -> None: ... def DecTData(self) -> None: ... def Dump(self) -> None: ... - def IncPINod(self, thePINod1: HLRAlgo_Array1OfPINod, thePINod2: HLRAlgo_Array1OfPINod) -> None: ... - def IncPISeg(self, PISeg1: HLRAlgo_Array1OfPISeg, PISeg2: HLRAlgo_Array1OfPISeg) -> None: ... - def IncTData(self, TData1: HLRAlgo_Array1OfTData, TData2: HLRAlgo_Array1OfTData) -> None: ... + def IncPINod( + self, thePINod1: HLRAlgo_Array1OfPINod, thePINod2: HLRAlgo_Array1OfPINod + ) -> None: ... + def IncPISeg( + self, PISeg1: HLRAlgo_Array1OfPISeg, PISeg2: HLRAlgo_Array1OfPISeg + ) -> None: ... + def IncTData( + self, TData1: HLRAlgo_Array1OfTData, TData2: HLRAlgo_Array1OfTData + ) -> None: ... @overload def IntOutL(self) -> bool: ... @overload @@ -389,9 +555,25 @@ class HLRAlgo_PolyInternalData(Standard_Transient): def Planar(self, B: bool) -> None: ... def TData(self) -> HLRAlgo_Array1OfTData: ... @overload - def UpdateLinks(self, theTData: HLRAlgo_Array1OfTData, thePISeg: HLRAlgo_Array1OfPISeg, thePINod: HLRAlgo_Array1OfPINod) -> None: ... - @overload - def UpdateLinks(self, theIp1: int, theIp2: int, theIp3: int, theTData1: HLRAlgo_Array1OfTData, theTData2: HLRAlgo_Array1OfTData, thePISeg1: HLRAlgo_Array1OfPISeg, thePISeg2: HLRAlgo_Array1OfPISeg, thePINod1: HLRAlgo_Array1OfPINod, thePINod2: HLRAlgo_Array1OfPINod) -> None: ... + def UpdateLinks( + self, + theTData: HLRAlgo_Array1OfTData, + thePISeg: HLRAlgo_Array1OfPISeg, + thePINod: HLRAlgo_Array1OfPINod, + ) -> None: ... + @overload + def UpdateLinks( + self, + theIp1: int, + theIp2: int, + theIp3: int, + theTData1: HLRAlgo_Array1OfTData, + theTData2: HLRAlgo_Array1OfTData, + thePISeg1: HLRAlgo_Array1OfPISeg, + thePISeg2: HLRAlgo_Array1OfPISeg, + thePINod1: HLRAlgo_Array1OfPINod, + thePINod2: HLRAlgo_Array1OfPINod, + ) -> None: ... class HLRAlgo_PolyInternalNode(Standard_Transient): def __init__(self) -> None: ... @@ -414,7 +596,15 @@ class HLRAlgo_Projector: @overload def __init__(self, T: gp_Trsf, Persp: bool, Focus: float) -> None: ... @overload - def __init__(self, T: gp_Trsf, Persp: bool, Focus: float, v1: gp_Vec2d, v2: gp_Vec2d, v3: gp_Vec2d) -> None: ... + def __init__( + self, + T: gp_Trsf, + Persp: bool, + Focus: float, + v1: gp_Vec2d, + v2: gp_Vec2d, + v3: gp_Vec2d, + ) -> None: ... def Directions(self, D1: gp_Vec2d, D2: gp_Vec2d, D3: gp_Vec2d) -> None: ... def Focus(self) -> float: ... def FullTransformation(self) -> gp_Trsf: ... @@ -425,7 +615,9 @@ class HLRAlgo_Projector: @overload def Project(self, P: gp_Pnt) -> Tuple[float, float, float]: ... @overload - def Project(self, P: gp_Pnt, D1: gp_Vec, Pout: gp_Pnt2d, D1out: gp_Vec2d) -> None: ... + def Project( + self, P: gp_Pnt, D1: gp_Vec, Pout: gp_Pnt2d, D1out: gp_Vec2d + ) -> None: ... def Scaled(self, On: Optional[bool] = False) -> None: ... def Set(self, T: gp_Trsf, Persp: bool, Focus: float) -> None: ... def Shoot(self, X: float, Y: float) -> gp_Lin: ... @@ -442,13 +634,13 @@ class HLRAlgo_WiresBlock(Standard_Transient): def Set(self, I: int, W: HLRAlgo_EdgesBlock) -> None: ... def Wire(self, I: int) -> HLRAlgo_EdgesBlock: ... -#classnotwrapped +# classnotwrapped class HLRAlgo_TriangleData: ... -#classnotwrapped +# classnotwrapped class HLRAlgo_PolyInternalSegment: ... -#classnotwrapped +# classnotwrapped class HLRAlgo_PolyHidingData: ... # harray1 classes @@ -457,21 +649,17 @@ class HLRAlgo_HArray1OfPHDat(HLRAlgo_Array1OfPHDat, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> HLRAlgo_Array1OfPHDat: ... - class HLRAlgo_HArray1OfPINod(HLRAlgo_Array1OfPINod, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> HLRAlgo_Array1OfPINod: ... - class HLRAlgo_HArray1OfPISeg(HLRAlgo_Array1OfPISeg, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> HLRAlgo_Array1OfPISeg: ... - class HLRAlgo_HArray1OfTData(HLRAlgo_Array1OfTData, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> HLRAlgo_Array1OfTData: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/HLRAppli.pyi b/src/SWIG_files/wrapper/HLRAppli.pyi index e96372aaa..db5086c8f 100644 --- a/src/SWIG_files/wrapper/HLRAppli.pyi +++ b/src/SWIG_files/wrapper/HLRAppli.pyi @@ -6,15 +6,26 @@ from OCC.Core.NCollection import * from OCC.Core.TopoDS import * from OCC.Core.HLRBRep import * - class HLRAppli_ReflectLines: def __init__(self, aShape: TopoDS_Shape) -> None: ... - def GetCompoundOf3dEdges(self, type: HLRBRep_TypeOfResultingEdge, visible: bool, In3d: bool) -> TopoDS_Shape: ... + def GetCompoundOf3dEdges( + self, type: HLRBRep_TypeOfResultingEdge, visible: bool, In3d: bool + ) -> TopoDS_Shape: ... def GetResult(self) -> TopoDS_Shape: ... def Perform(self) -> None: ... - def SetAxes(self, Nx: float, Ny: float, Nz: float, XAt: float, YAt: float, ZAt: float, XUp: float, YUp: float, ZUp: float) -> None: ... + def SetAxes( + self, + Nx: float, + Ny: float, + Nz: float, + XAt: float, + YAt: float, + ZAt: float, + XUp: float, + YUp: float, + ZUp: float, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/HLRBRep.i b/src/SWIG_files/wrapper/HLRBRep.i index 96934586d..2939f5637 100644 --- a/src/SWIG_files/wrapper/HLRBRep.i +++ b/src/SWIG_files/wrapper/HLRBRep.i @@ -162,6 +162,12 @@ Array1ExtendIter(HLRBRep_FaceData) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = HLRBRep_ListIteratorOfListOfBPnt2D(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(HLRBRep_ListOfBPoint) NCollection_List; @@ -170,6 +176,12 @@ Array1ExtendIter(HLRBRep_FaceData) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = HLRBRep_ListIteratorOfListOfBPoint(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(HLRBRep_SeqOfShapeBounds) NCollection_Sequence; diff --git a/src/SWIG_files/wrapper/HLRBRep.pyi b/src/SWIG_files/wrapper/HLRBRep.pyi index 5a1e907b4..bade9c5a7 100644 --- a/src/SWIG_files/wrapper/HLRBRep.pyi +++ b/src/SWIG_files/wrapper/HLRBRep.pyi @@ -26,7 +26,6 @@ from OCC.Core.Adaptor3d import * from OCC.Core.Intf import * from OCC.Core.IntSurf import * - class HLRBRep_Array1OfEData: @overload def __init__(self) -> None: ... @@ -76,47 +75,53 @@ class HLRBRep_Array1OfFData: def SetValue(self, theIndex: int, theValue: HLRBRep_FaceData) -> None: ... class HLRBRep_ListOfBPnt2D: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: HLRBRep_BiPnt2D) -> HLRBRep_BiPnt2D: ... + def Assign(self, theItem: HLRBRep_ListOfBPnt2D) -> HLRBRep_ListOfBPnt2D: ... def Clear(self) -> None: ... def First(self) -> HLRBRep_BiPnt2D: ... def Last(self) -> HLRBRep_BiPnt2D: ... - def Append(self, theItem: HLRBRep_BiPnt2D) -> HLRBRep_BiPnt2D: ... def Prepend(self, theItem: HLRBRep_BiPnt2D) -> HLRBRep_BiPnt2D: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> HLRBRep_BiPnt2D: ... - def SetValue(self, theIndex: int, theValue: HLRBRep_BiPnt2D) -> None: ... - -class HLRBRep_ListOfBPoint: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> HLRBRep_BiPnt2D: ... + +class HLRBRep_ListOfBPoint: + def Append(self, theItem: HLRBRep_BiPoint) -> HLRBRep_BiPoint: ... + def Assign(self, theItem: HLRBRep_ListOfBPoint) -> HLRBRep_ListOfBPoint: ... def Clear(self) -> None: ... def First(self) -> HLRBRep_BiPoint: ... def Last(self) -> HLRBRep_BiPoint: ... - def Append(self, theItem: HLRBRep_BiPoint) -> HLRBRep_BiPoint: ... def Prepend(self, theItem: HLRBRep_BiPoint) -> HLRBRep_BiPoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> HLRBRep_BiPoint: ... - def SetValue(self, theIndex: int, theValue: HLRBRep_BiPoint) -> None: ... - -class HLRBRep_SeqOfShapeBounds: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> HLRBRep_BiPoint: ... + +class HLRBRep_SeqOfShapeBounds: + def Assign(self, theItem: HLRBRep_ShapeBounds) -> HLRBRep_ShapeBounds: ... def Clear(self) -> None: ... def First(self) -> HLRBRep_ShapeBounds: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> HLRBRep_ShapeBounds: ... def Length(self) -> int: ... - def Append(self, theItem: HLRBRep_ShapeBounds) -> HLRBRep_ShapeBounds: ... + def Lower(self) -> int: ... def Prepend(self, theItem: HLRBRep_ShapeBounds) -> HLRBRep_ShapeBounds: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> HLRBRep_ShapeBounds: ... def SetValue(self, theIndex: int, theValue: HLRBRep_ShapeBounds) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> HLRBRep_ShapeBounds: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class HLRBRep_TypeOfResultingEdge(IntEnum): HLRBRep_Undefined: int = ... @@ -142,7 +147,16 @@ class hlrbrep: def PolyHLRAngleAndDeflection(InAngl: float) -> Tuple[float, float]: ... class HLRBRep_AreaLimit(Standard_Transient): - def __init__(self, V: HLRAlgo_Intersection, Boundary: bool, Interference: bool, StateBefore: TopAbs_State, StateAfter: TopAbs_State, EdgeBefore: TopAbs_State, EdgeAfter: TopAbs_State) -> None: ... + def __init__( + self, + V: HLRAlgo_Intersection, + Boundary: bool, + Interference: bool, + StateBefore: TopAbs_State, + StateAfter: TopAbs_State, + EdgeBefore: TopAbs_State, + EdgeAfter: TopAbs_State, + ) -> None: ... def Clear(self) -> None: ... @overload def EdgeAfter(self, St: TopAbs_State) -> None: ... @@ -186,9 +200,13 @@ class HLRBRep_BCurveTool: @staticmethod def D1(C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V: gp_Vec) -> None: ... @staticmethod - def D2(C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def D2( + C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec + ) -> None: ... @staticmethod - def D3(C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @staticmethod def DN(C: BRepAdaptor_Curve, U: float, N: int) -> gp_Vec: ... @staticmethod @@ -202,7 +220,9 @@ class HLRBRep_BCurveTool: @staticmethod def Hyperbola(C: BRepAdaptor_Curve) -> gp_Hypr: ... @staticmethod - def Intervals(C: BRepAdaptor_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def Intervals( + C: BRepAdaptor_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... @staticmethod def IsClosed(C: BRepAdaptor_Curve) -> bool: ... @staticmethod @@ -228,7 +248,9 @@ class HLRBRep_BCurveTool: @staticmethod def Poles(C: BRepAdaptor_Curve, T: TColgp_Array1OfPnt) -> None: ... @staticmethod - def PolesAndWeights(C: BRepAdaptor_Curve, T: TColgp_Array1OfPnt, W: TColStd_Array1OfReal) -> None: ... + def PolesAndWeights( + C: BRepAdaptor_Curve, T: TColgp_Array1OfPnt, W: TColStd_Array1OfReal + ) -> None: ... @staticmethod def Resolution(C: BRepAdaptor_Curve, R3d: float) -> float: ... @staticmethod @@ -238,9 +260,29 @@ class HLRBRep_BiPnt2D: @overload def __init__(self) -> None: ... @overload - def __init__(self, x1: float, y1: float, x2: float, y2: float, S: TopoDS_Shape, reg1: bool, regn: bool, outl: bool, intl: bool) -> None: ... - @overload - def __init__(self, thePoint1: gp_XY, thePoint2: gp_XY, S: TopoDS_Shape, reg1: bool, regn: bool, outl: bool, intl: bool) -> None: ... + def __init__( + self, + x1: float, + y1: float, + x2: float, + y2: float, + S: TopoDS_Shape, + reg1: bool, + regn: bool, + outl: bool, + intl: bool, + ) -> None: ... + @overload + def __init__( + self, + thePoint1: gp_XY, + thePoint2: gp_XY, + S: TopoDS_Shape, + reg1: bool, + regn: bool, + outl: bool, + intl: bool, + ) -> None: ... @overload def IntLine(self) -> bool: ... @overload @@ -268,7 +310,20 @@ class HLRBRep_BiPoint: @overload def __init__(self) -> None: ... @overload - def __init__(self, x1: float, y1: float, z1: float, x2: float, y2: float, z2: float, S: TopoDS_Shape, reg1: bool, regn: bool, outl: bool, intl: bool) -> None: ... + def __init__( + self, + x1: float, + y1: float, + z1: float, + x2: float, + y2: float, + z2: float, + S: TopoDS_Shape, + reg1: bool, + regn: bool, + outl: bool, + intl: bool, + ) -> None: ... @overload def IntLine(self) -> bool: ... @overload @@ -298,36 +353,66 @@ class HLRBRep_CInter(IntRes2d_Intersection): @overload def __init__(self, C: None, TolConf: float, Tol: float) -> None: ... @overload - def __init__(self, C: None, D: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, C: None, D: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... @overload def __init__(self, C1: None, C2: None, TolConf: float, Tol: float) -> None: ... @overload - def __init__(self, C1: None, D1: IntRes2d_Domain, C2: None, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C1: None, C2: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C1: None, D1: IntRes2d_Domain, C2: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, C1: None, D1: IntRes2d_Domain, C2: None, TolConf: float, Tol: float + ) -> None: ... + @overload + def __init__( + self, C1: None, C2: None, D2: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... + @overload + def __init__( + self, + C1: None, + D1: IntRes2d_Domain, + C2: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... def ComputeDomain(self, C1: None, TolDomain: float) -> IntRes2d_Domain: ... def GetMinNbSamples(self) -> int: ... @overload - def Perform(self, C1: None, D1: IntRes2d_Domain, C2: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def Perform( + self, + C1: None, + D1: IntRes2d_Domain, + C2: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... @overload def Perform(self, C1: None, C2: None, TolConf: float, Tol: float) -> None: ... @overload - def Perform(self, C1: None, D1: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def Perform( + self, C1: None, D1: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... @overload def Perform(self, C1: None, TolConf: float, Tol: float) -> None: ... @overload - def Perform(self, C1: None, D1: IntRes2d_Domain, C2: None, TolConf: float, Tol: float) -> None: ... + def Perform( + self, C1: None, D1: IntRes2d_Domain, C2: None, TolConf: float, Tol: float + ) -> None: ... @overload - def Perform(self, C1: None, C2: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def Perform( + self, C1: None, C2: None, D2: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... def SetMinNbSamples(self, theMinNbSamples: int) -> None: ... class HLRBRep_CLProps: @overload def __init__(self, C: HLRBRep_Curve, N: int, Resolution: float) -> None: ... @overload - def __init__(self, C: HLRBRep_Curve, U: float, N: int, Resolution: float) -> None: ... + def __init__( + self, C: HLRBRep_Curve, U: float, N: int, Resolution: float + ) -> None: ... @overload def __init__(self, N: int, Resolution: float) -> None: ... def CentreOfCurvature(self, P: gp_Pnt2d) -> None: ... @@ -348,9 +433,18 @@ class HLRBRep_CLPropsATool: @staticmethod def D1(A: HLRBRep_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... @staticmethod - def D2(A: HLRBRep_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + A: HLRBRep_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @staticmethod - def D3(A: HLRBRep_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + A: HLRBRep_Curve, + U: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... @staticmethod def FirstParameter(A: HLRBRep_Curve) -> float: ... @staticmethod @@ -375,7 +469,9 @@ class HLRBRep_Curve: @overload def D1(self, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Degree(self) -> int: ... def Ellipse(self) -> gp_Elips2d: ... @@ -403,14 +499,23 @@ class HLRBRep_Curve: @overload def Poles(self, aCurve: Geom_BSplineCurve, TP: TColgp_Array1OfPnt2d) -> None: ... @overload - def PolesAndWeights(self, TP: TColgp_Array1OfPnt2d, TW: TColStd_Array1OfReal) -> None: ... + def PolesAndWeights( + self, TP: TColgp_Array1OfPnt2d, TW: TColStd_Array1OfReal + ) -> None: ... @overload - def PolesAndWeights(self, aCurve: Geom_BSplineCurve, TP: TColgp_Array1OfPnt2d, TW: TColStd_Array1OfReal) -> None: ... + def PolesAndWeights( + self, + aCurve: Geom_BSplineCurve, + TP: TColgp_Array1OfPnt2d, + TW: TColStd_Array1OfReal, + ) -> None: ... def Projector(self, Proj: HLRAlgo_Projector) -> None: ... def Resolution(self, R3d: float) -> float: ... def Tangent(self, AtStart: bool, P: gp_Pnt2d, D: gp_Dir2d) -> None: ... def Update(self, TotMin_list: List[float], TotMax_list: List[float]) -> float: ... - def UpdateMinMax(self, TotMin_list: List[float], TotMax_list: List[float]) -> float: ... + def UpdateMinMax( + self, TotMin_list: List[float], TotMax_list: List[float] + ) -> float: ... def Value(self, U: float) -> gp_Pnt2d: ... def Value3D(self, U: float) -> gp_Pnt: ... def Z(self, U: float) -> float: ... @@ -431,7 +536,9 @@ class HLRBRep_CurveTool: @staticmethod def D2(C: None, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... @staticmethod - def D3(C: None, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + C: None, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... @staticmethod def DN(C: None, U: float, N: int) -> gp_Vec2d: ... @staticmethod @@ -443,7 +550,9 @@ class HLRBRep_CurveTool: @staticmethod def FirstParameter(C: None) -> float: ... @staticmethod - def GetInterval(C: None, Index: int, Tab: TColStd_Array1OfReal) -> Tuple[float, float]: ... + def GetInterval( + C: None, Index: int, Tab: TColStd_Array1OfReal + ) -> Tuple[float, float]: ... @staticmethod def GetType(C: None) -> GeomAbs_CurveType: ... @staticmethod @@ -480,7 +589,9 @@ class HLRBRep_CurveTool: class HLRBRep_Data(Standard_Transient): def __init__(self, NV: int, NE: int, NF: int) -> None: ... def AboveInterference(self) -> bool: ... - def Classify(self, E: int, ED: HLRBRep_EdgeData, LevelFlag: bool, param: float) -> Tuple[TopAbs_State, int]: ... + def Classify( + self, E: int, ED: HLRBRep_EdgeData, LevelFlag: bool, param: float + ) -> Tuple[TopAbs_State, int]: ... def Compare(self, E: int, ED: HLRBRep_EdgeData) -> TopAbs_State: ... def Destroy(self) -> None: ... def EDataArray(self) -> HLRBRep_Array1OfEData: ... @@ -490,13 +601,17 @@ class HLRBRep_Data(Standard_Transient): def EdgeState(self, p1: float, p2: float) -> Tuple[TopAbs_State, TopAbs_State]: ... def FDataArray(self) -> HLRBRep_Array1OfFData: ... def FaceMap(self) -> TopTools_IndexedMapOfShape: ... - def HidingStartLevel(self, E: int, ED: HLRBRep_EdgeData, IL: HLRAlgo_InterferenceList) -> int: ... + def HidingStartLevel( + self, E: int, ED: HLRBRep_EdgeData, IL: HLRAlgo_InterferenceList + ) -> int: ... def HidingTheFace(self) -> bool: ... def InitEdge(self, FI: int, MST: BRepTopAdaptor_MapOfShapeTool) -> None: ... def InitInterference(self) -> None: ... def Interference(self) -> HLRAlgo_Interference: ... def IsBadFace(self) -> bool: ... - def LocalFEGeometry2D(self, FE: int, Param: float, Tg: gp_Dir2d, Nm: gp_Dir2d) -> float: ... + def LocalFEGeometry2D( + self, FE: int, Param: float, Tg: gp_Dir2d, Nm: gp_Dir2d + ) -> float: ... def LocalLEGeometry2D(self, Param: float, Tg: gp_Dir2d, Nm: gp_Dir2d) -> float: ... def MoreEdge(self) -> bool: ... def MoreInterference(self) -> bool: ... @@ -507,7 +622,9 @@ class HLRBRep_Data(Standard_Transient): def NextInterference(self) -> None: ... def Projector(self) -> HLRAlgo_Projector: ... def RejectedInterference(self) -> bool: ... - def SimplClassify(self, E: int, ED: HLRBRep_EdgeData, Nbp: int, p1: float, p2: float) -> TopAbs_State: ... + def SimplClassify( + self, E: int, ED: HLRBRep_EdgeData, Nbp: int, p1: float, p2: float + ) -> TopAbs_State: ... def SimpleHidingFace(self) -> bool: ... @overload def Tolerance(self, tol: float) -> None: ... @@ -579,7 +696,22 @@ class HLRBRep_EdgeData: def Selected(self) -> bool: ... @overload def Selected(self, B: bool) -> None: ... - def Set(self, Reg1: bool, RegN: bool, EG: TopoDS_Edge, V1: int, V2: int, Out1: bool, Out2: bool, Cut1: bool, Cut2: bool, Start: float, TolStart: float, End: float, TolEnd: float) -> None: ... + def Set( + self, + Reg1: bool, + RegN: bool, + EG: TopoDS_Edge, + V1: int, + V2: int, + Out1: bool, + Out2: bool, + Cut1: bool, + Cut2: bool, + Start: float, + TolStart: float, + End: float, + TolEnd: float, + ) -> None: ... @overload def Simple(self) -> bool: ... @overload @@ -619,9 +751,15 @@ class HLRBRep_EdgeFaceTool: class HLRBRep_EdgeIList: @staticmethod - def AddInterference(IL: HLRAlgo_InterferenceList, I: HLRAlgo_Interference, T: HLRBRep_EdgeInterferenceTool) -> None: ... + def AddInterference( + IL: HLRAlgo_InterferenceList, + I: HLRAlgo_Interference, + T: HLRBRep_EdgeInterferenceTool, + ) -> None: ... @staticmethod - def ProcessComplex(IL: HLRAlgo_InterferenceList, T: HLRBRep_EdgeInterferenceTool) -> None: ... + def ProcessComplex( + IL: HLRAlgo_InterferenceList, T: HLRBRep_EdgeInterferenceTool + ) -> None: ... class HLRBRep_EdgeInterferenceTool: def __init__(self, DS: HLRBRep_Data) -> None: ... @@ -630,13 +768,17 @@ class HLRBRep_EdgeInterferenceTool: def CurrentVertex(self) -> HLRAlgo_Intersection: ... def EdgeGeometry(self, Param: float, Tgt: gp_Dir, Nrm: gp_Dir) -> float: ... def InitVertices(self) -> None: ... - def InterferenceBoundaryGeometry(self, I: HLRAlgo_Interference, Tang: gp_Dir, Norm: gp_Dir) -> float: ... + def InterferenceBoundaryGeometry( + self, I: HLRAlgo_Interference, Tang: gp_Dir, Norm: gp_Dir + ) -> float: ... def IsPeriodic(self) -> bool: ... def LoadEdge(self) -> None: ... def MoreVertices(self) -> bool: ... def NextVertex(self) -> None: ... def ParameterOfInterference(self, I: HLRAlgo_Interference) -> float: ... - def SameInterferences(self, I1: HLRAlgo_Interference, I2: HLRAlgo_Interference) -> bool: ... + def SameInterferences( + self, I1: HLRAlgo_Interference, I2: HLRAlgo_Interference + ) -> bool: ... def SameVertexAndInterference(self, I: HLRAlgo_Interference) -> bool: ... class HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter: @@ -644,9 +786,15 @@ class HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter: def AnErrorOccurred(self) -> bool: ... def NbRoots(self) -> int: ... @overload - def Perform(self, Poly1: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter, Poly2: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter) -> Tuple[int, int, float, float]: ... + def Perform( + self, + Poly1: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter, + Poly2: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter, + ) -> Tuple[int, int, float, float]: ... @overload - def Perform(self, Uo: float, Vo: float, UInf: float, VInf: float, USup: float, VSup: float) -> None: ... + def Perform( + self, Uo: float, Vo: float, UInf: float, VInf: float, USup: float, VSup: float + ) -> None: ... def Roots(self) -> Tuple[float, float]: ... class HLRBRep_FaceData: @@ -688,8 +836,20 @@ class HLRBRep_FaceData: def Selected(self) -> bool: ... @overload def Selected(self, B: bool) -> None: ... - def Set(self, FG: TopoDS_Face, Or: TopAbs_Orientation, Cl: bool, NW: int) -> None: ... - def SetWEdge(self, WI: int, EWI: int, EI: int, Or: TopAbs_Orientation, OutL: bool, Inte: bool, Dble: bool, IsoL: bool) -> None: ... + def Set( + self, FG: TopoDS_Face, Or: TopAbs_Orientation, Cl: bool, NW: int + ) -> None: ... + def SetWEdge( + self, + WI: int, + EWI: int, + EI: int, + Or: TopAbs_Orientation, + OutL: bool, + Inte: bool, + Dble: bool, + IsoL: bool, + ) -> None: ... def SetWire(self, WI: int, NE: int) -> None: ... @overload def Side(self) -> bool: ... @@ -737,9 +897,17 @@ class HLRBRep_FaceIterator: class HLRBRep_HLRToShape: def __init__(self, A: HLRBRep_Algo) -> None: ... @overload - def CompoundOfEdges(self, type: HLRBRep_TypeOfResultingEdge, visible: bool, In3d: bool) -> TopoDS_Shape: ... + def CompoundOfEdges( + self, type: HLRBRep_TypeOfResultingEdge, visible: bool, In3d: bool + ) -> TopoDS_Shape: ... @overload - def CompoundOfEdges(self, S: TopoDS_Shape, type: HLRBRep_TypeOfResultingEdge, visible: bool, In3d: bool) -> TopoDS_Shape: ... + def CompoundOfEdges( + self, + S: TopoDS_Shape, + type: HLRBRep_TypeOfResultingEdge, + visible: bool, + In3d: bool, + ) -> TopoDS_Shape: ... @overload def HCompound(self) -> TopoDS_Shape: ... @overload @@ -791,38 +959,138 @@ class HLRBRep_IntConicCurveOfCInter(IntRes2d_Intersection): @overload def __init__(self) -> None: ... @overload - def __init__(self, L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... class HLRBRep_InterCSurf(IntCurveSurface_Intersection): def __init__(self) -> None: ... @overload def Perform(self, Curve: gp_Lin, Surface: None) -> None: ... @overload - def Perform(self, Curve: gp_Lin, Polygon: HLRBRep_ThePolygonOfInterCSurf, Surface: None) -> None: ... - @overload - def Perform(self, Curve: gp_Lin, ThePolygon: HLRBRep_ThePolygonOfInterCSurf, Surface: None, Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... - @overload - def Perform(self, Curve: gp_Lin, ThePolygon: HLRBRep_ThePolygonOfInterCSurf, Surface: None, Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf, BndBSB: Bnd_BoundSortBox) -> None: ... - @overload - def Perform(self, Curve: gp_Lin, Surface: None, Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... + def Perform( + self, Curve: gp_Lin, Polygon: HLRBRep_ThePolygonOfInterCSurf, Surface: None + ) -> None: ... + @overload + def Perform( + self, + Curve: gp_Lin, + ThePolygon: HLRBRep_ThePolygonOfInterCSurf, + Surface: None, + Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... + @overload + def Perform( + self, + Curve: gp_Lin, + ThePolygon: HLRBRep_ThePolygonOfInterCSurf, + Surface: None, + Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf, + BndBSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Perform( + self, + Curve: gp_Lin, + Surface: None, + Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... class HLRBRep_InternalAlgo(Standard_Transient): @overload @@ -847,7 +1115,12 @@ class HLRBRep_InternalAlgo(Standard_Transient): def Index(self, S: HLRTopoBRep_OutLiner) -> int: ... def InitEdgeStatus(self) -> None: ... @overload - def Load(self, S: HLRTopoBRep_OutLiner, SData: Standard_Transient, nbIso: Optional[int] = 0) -> None: ... + def Load( + self, + S: HLRTopoBRep_OutLiner, + SData: Standard_Transient, + nbIso: Optional[int] = 0, + ) -> None: ... @overload def Load(self, S: HLRTopoBRep_OutLiner, nbIso: Optional[int] = 0) -> None: ... def NbShapes(self) -> int: ... @@ -884,7 +1157,18 @@ class HLRBRep_Intersector: @overload def Perform(self, A1: None, da1: float, db1: float) -> None: ... @overload - def Perform(self, nA: int, A1: None, da1: float, db1: float, nB: int, A2: None, da2: float, db2: float, NoBound: bool) -> None: ... + def Perform( + self, + nA: int, + A1: None, + da1: float, + db1: float, + nB: int, + A2: None, + da2: float, + db2: float, + NoBound: bool, + ) -> None: ... @overload def Perform(self, L: gp_Lin, P: float) -> None: ... def Point(self, N: int) -> IntRes2d_IntersectionPoint: ... @@ -907,7 +1191,9 @@ class HLRBRep_LineTool: @staticmethod def D2(C: gp_Lin, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... @staticmethod - def D3(C: gp_Lin, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + C: gp_Lin, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @staticmethod def DN(C: gp_Lin, U: float, N: int) -> gp_Vec: ... @staticmethod @@ -935,7 +1221,9 @@ class HLRBRep_LineTool: @staticmethod def IsRational(C: gp_Lin) -> bool: ... @staticmethod - def KnotsAndMultiplicities(C: gp_Lin, TK: TColStd_Array1OfReal, TM: TColStd_Array1OfInteger) -> None: ... + def KnotsAndMultiplicities( + C: gp_Lin, TK: TColStd_Array1OfReal, TM: TColStd_Array1OfInteger + ) -> None: ... @staticmethod def LastParameter(C: gp_Lin) -> float: ... @staticmethod @@ -955,15 +1243,26 @@ class HLRBRep_LineTool: @staticmethod def Poles(C: gp_Lin, TP: TColgp_Array1OfPnt) -> None: ... @staticmethod - def PolesAndWeights(C: gp_Lin, TP: TColgp_Array1OfPnt, TW: TColStd_Array1OfReal) -> None: ... + def PolesAndWeights( + C: gp_Lin, TP: TColgp_Array1OfPnt, TW: TColStd_Array1OfReal + ) -> None: ... @staticmethod def Resolution(C: gp_Lin, R3d: float) -> float: ... @staticmethod - def SamplePars(C: gp_Lin, U0: float, U1: float, Defl: float, NbMin: int, Pars: TColStd_HArray1OfReal) -> None: ... + def SamplePars( + C: gp_Lin, + U0: float, + U1: float, + Defl: float, + NbMin: int, + Pars: TColStd_HArray1OfReal, + ) -> None: ... @staticmethod def Value(C: gp_Lin, U: float) -> gp_Pnt: ... -class HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter(math_FunctionWithDerivative): +class HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter( + math_FunctionWithDerivative +): def __init__(self, IT: IntCurve_IConicTool, PC: None) -> None: ... def Derivative(self, Param: float) -> Tuple[bool, float]: ... def Value(self, Param: float) -> Tuple[bool, float]: ... @@ -999,7 +1298,9 @@ class HLRBRep_PolyAlgo(Standard_Transient): def Debug(self) -> bool: ... @overload def Debug(self, theDebug: bool) -> None: ... - def Hide(self, status: HLRAlgo_EdgeStatus, S: TopoDS_Shape) -> Tuple[False, bool, bool, bool, bool]: ... + def Hide( + self, status: HLRAlgo_EdgeStatus, S: TopoDS_Shape + ) -> Tuple[False, bool, bool, bool, bool]: ... def Index(self, S: TopoDS_Shape) -> int: ... def InitHide(self) -> None: ... def InitShow(self) -> None: ... @@ -1067,7 +1368,9 @@ class HLRBRep_PolyHLRToShape: class HLRBRep_SLProps: @overload - def __init__(self, S: None, U: float, V: float, N: int, Resolution: float) -> None: ... + def __init__( + self, S: None, U: float, V: float, N: int, Resolution: float + ) -> None: ... @overload def __init__(self, S: None, N: int, Resolution: float) -> None: ... @overload @@ -1100,9 +1403,21 @@ class HLRBRep_SLPropsATool: @staticmethod def Continuity(A: None) -> int: ... @staticmethod - def D1(A: None, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - @staticmethod - def D2(A: None, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, DUV: gp_Vec) -> None: ... + def D1( + A: None, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec + ) -> None: ... + @staticmethod + def D2( + A: None, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + DUV: gp_Vec, + ) -> None: ... @staticmethod def DN(A: None, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... @staticmethod @@ -1112,9 +1427,30 @@ class HLRBRep_ShapeBounds: @overload def __init__(self) -> None: ... @overload - def __init__(self, S: HLRTopoBRep_OutLiner, SData: Standard_Transient, nbIso: int, V1: int, V2: int, E1: int, E2: int, F1: int, F2: int) -> None: ... - @overload - def __init__(self, S: HLRTopoBRep_OutLiner, nbIso: int, V1: int, V2: int, E1: int, E2: int, F1: int, F2: int) -> None: ... + def __init__( + self, + S: HLRTopoBRep_OutLiner, + SData: Standard_Transient, + nbIso: int, + V1: int, + V2: int, + E1: int, + E2: int, + F1: int, + F2: int, + ) -> None: ... + @overload + def __init__( + self, + S: HLRTopoBRep_OutLiner, + nbIso: int, + V1: int, + V2: int, + E1: int, + E2: int, + F1: int, + F2: int, + ) -> None: ... def Bounds(self) -> Tuple[int, int, int, int, int, int]: ... def MinMax(self) -> False: ... @overload @@ -1134,7 +1470,12 @@ class HLRBRep_ShapeBounds: class HLRBRep_ShapeToHLR: @staticmethod - def Load(S: HLRTopoBRep_OutLiner, P: HLRAlgo_Projector, MST: BRepTopAdaptor_MapOfShapeTool, nbIso: Optional[int] = 0) -> HLRBRep_Data: ... + def Load( + S: HLRTopoBRep_OutLiner, + P: HLRAlgo_Projector, + MST: BRepTopAdaptor_MapOfShapeTool, + nbIso: Optional[int] = 0, + ) -> HLRBRep_Data: ... class HLRBRep_SurfaceTool: @staticmethod @@ -1154,11 +1495,37 @@ class HLRBRep_SurfaceTool: @staticmethod def D0(S: None, u: float, v: float, P: gp_Pnt) -> None: ... @staticmethod - def D1(S: None, u: float, v: float, P: gp_Pnt, D1u: gp_Vec, D1v: gp_Vec) -> None: ... - @staticmethod - def D2(S: None, u: float, v: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - @staticmethod - def D3(S: None, u: float, v: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D1( + S: None, u: float, v: float, P: gp_Pnt, D1u: gp_Vec, D1v: gp_Vec + ) -> None: ... + @staticmethod + def D2( + S: None, + u: float, + v: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + @staticmethod + def D3( + S: None, + u: float, + v: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... @staticmethod def DN(S: None, u: float, v: float, Nu: int, Nv: int) -> gp_Vec: ... @staticmethod @@ -1236,7 +1603,9 @@ class HLRBRep_TheCSFunctionOfInterCSurf(math_FunctionSetWithDerivatives): def Value(self, X: math_Vector, F: math_Vector) -> bool: ... def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... -class HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter(math_FunctionSetWithDerivatives): +class HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter( + math_FunctionSetWithDerivatives +): def __init__(self, curve1: None, curve2: None) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def NbEquations(self) -> int: ... @@ -1246,91 +1615,301 @@ class HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter(math_FunctionSet class HLRBRep_TheExactInterCSurf: @overload - def __init__(self, U: float, V: float, W: float, F: HLRBRep_TheCSFunctionOfInterCSurf, TolTangency: float, MarginCoef: Optional[float] = 0.0) -> None: ... - @overload - def __init__(self, F: HLRBRep_TheCSFunctionOfInterCSurf, TolTangency: float) -> None: ... + def __init__( + self, + U: float, + V: float, + W: float, + F: HLRBRep_TheCSFunctionOfInterCSurf, + TolTangency: float, + MarginCoef: Optional[float] = 0.0, + ) -> None: ... + @overload + def __init__( + self, F: HLRBRep_TheCSFunctionOfInterCSurf, TolTangency: float + ) -> None: ... def Function(self) -> HLRBRep_TheCSFunctionOfInterCSurf: ... def IsDone(self) -> bool: ... def IsEmpty(self) -> bool: ... def ParameterOnCurve(self) -> float: ... def ParameterOnSurface(self) -> Tuple[float, float]: ... - def Perform(self, U: float, V: float, W: float, Rsnld: math_FunctionSetRoot, u0: float, v0: float, u1: float, v1: float, w0: float, w1: float) -> None: ... + def Perform( + self, + U: float, + V: float, + W: float, + Rsnld: math_FunctionSetRoot, + u0: float, + v0: float, + u1: float, + v1: float, + w0: float, + w1: float, + ) -> None: ... def Point(self) -> gp_Pnt: ... class HLRBRep_TheIntConicCurveOfCInter(IntRes2d_Intersection): @overload def __init__(self) -> None: ... @overload - def __init__(self, L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: None, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... class HLRBRep_TheIntPCurvePCurveOfCInter(IntRes2d_Intersection): def __init__(self) -> None: ... def GetMinNbSamples(self) -> int: ... @overload - def Perform(self, Curve1: None, Domain1: IntRes2d_Domain, Curve2: None, Domain2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, Curve1: None, Domain1: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def Perform( + self, + Curve1: None, + Domain1: IntRes2d_Domain, + Curve2: None, + Domain2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, Curve1: None, Domain1: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... def SetMinNbSamples(self, theMinNbSamples: int) -> None: ... class HLRBRep_TheInterferenceOfInterCSurf(Intf_Interference): @overload def __init__(self) -> None: ... @overload - def __init__(self, thePolyg: HLRBRep_ThePolygonOfInterCSurf, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... - @overload - def __init__(self, theLin: gp_Lin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... - @overload - def __init__(self, theLins: Intf_Array1OfLin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... - @overload - def __init__(self, thePolyg: HLRBRep_ThePolygonOfInterCSurf, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def __init__(self, theLin: gp_Lin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def __init__(self, theLins: Intf_Array1OfLin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def Interference(self, thePolyg: HLRBRep_ThePolygonOfInterCSurf, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def Interference(self, thePolyg: HLRBRep_ThePolygonOfInterCSurf, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... - @overload - def Perform(self, thePolyg: HLRBRep_ThePolygonOfInterCSurf, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... - @overload - def Perform(self, theLin: gp_Lin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... - @overload - def Perform(self, theLins: Intf_Array1OfLin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... - @overload - def Perform(self, thePolyg: HLRBRep_ThePolygonOfInterCSurf, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def Perform(self, theLin: gp_Lin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def Perform(self, theLins: Intf_Array1OfLin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, theBoundSB: Bnd_BoundSortBox) -> None: ... + def __init__( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... + @overload + def __init__( + self, theLin: gp_Lin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + ) -> None: ... + @overload + def __init__( + self, theLins: Intf_Array1OfLin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + ) -> None: ... + @overload + def __init__( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def __init__( + self, + theLin: gp_Lin, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def __init__( + self, + theLins: Intf_Array1OfLin, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Interference( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Interference( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... + @overload + def Perform( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... + @overload + def Perform( + self, theLin: gp_Lin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + ) -> None: ... + @overload + def Perform( + self, theLins: Intf_Array1OfLin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + ) -> None: ... + @overload + def Perform( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Perform( + self, + theLin: gp_Lin, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Perform( + self, + theLins: Intf_Array1OfLin, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... class HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter(IntRes2d_Intersection): @overload def __init__(self) -> None: ... @overload - def __init__(self, ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: None, Dom2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - def And_Domaine_Objet1_Intersections(self, TheImpTool: IntCurve_IConicTool, TheParCurve: None, TheImpCurveDomain: IntRes2d_Domain, TheParCurveDomain: IntRes2d_Domain, Inter2_And_Domain2: TColStd_Array1OfReal, Inter1: TColStd_Array1OfReal, Resultat1: TColStd_Array1OfReal, Resultat2: TColStd_Array1OfReal, EpsNul: float) -> int: ... - def FindU(self, parameter: float, point: gp_Pnt2d, TheParCurev: None, TheImpTool: IntCurve_IConicTool) -> float: ... - def FindV(self, parameter: float, point: gp_Pnt2d, TheImpTool: IntCurve_IConicTool, ParCurve: None, TheParCurveDomain: IntRes2d_Domain, V0: float, V1: float, Tolerance: float) -> float: ... - def Perform(self, ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: None, Dom2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: None, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def And_Domaine_Objet1_Intersections( + self, + TheImpTool: IntCurve_IConicTool, + TheParCurve: None, + TheImpCurveDomain: IntRes2d_Domain, + TheParCurveDomain: IntRes2d_Domain, + Inter2_And_Domain2: TColStd_Array1OfReal, + Inter1: TColStd_Array1OfReal, + Resultat1: TColStd_Array1OfReal, + Resultat2: TColStd_Array1OfReal, + EpsNul: float, + ) -> int: ... + def FindU( + self, + parameter: float, + point: gp_Pnt2d, + TheParCurev: None, + TheImpTool: IntCurve_IConicTool, + ) -> float: ... + def FindV( + self, + parameter: float, + point: gp_Pnt2d, + TheImpTool: IntCurve_IConicTool, + ParCurve: None, + TheParCurveDomain: IntRes2d_Domain, + V0: float, + V1: float, + Tolerance: float, + ) -> float: ... + def Perform( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: None, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... class HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter: @overload @@ -1338,7 +1917,9 @@ class HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter: @overload def __init__(self, P: gp_Pnt2d, C: None, U0: float, TolU: float) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, C: None, U0: float, Umin: float, Usup: float, TolU: float) -> None: ... + def __init__( + self, P: gp_Pnt2d, C: None, U0: float, Umin: float, Usup: float, TolU: float + ) -> None: ... def Initialize(self, C: None, Umin: float, Usup: float, TolU: float) -> None: ... def IsDone(self) -> bool: ... def IsMin(self) -> bool: ... @@ -1347,10 +1928,14 @@ class HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter: def SquareDistance(self) -> float: ... class HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter(Intf_Polygon2d): - def __init__(self, Curve: None, NbPnt: int, Domain: IntRes2d_Domain, Tol: float) -> None: ... + def __init__( + self, Curve: None, NbPnt: int, Domain: IntRes2d_Domain, Tol: float + ) -> None: ... def ApproxParamOnCurve(self, Index: int, ParamOnLine: float) -> float: ... def AutoIntersectionIsPossible(self) -> bool: ... - def CalculRegion(self, x: float, y: float, x1: float, x2: float, y1: float, y2: float) -> int: ... + def CalculRegion( + self, x: float, y: float, x1: float, x2: float, y1: float, y2: float + ) -> int: ... @overload def Closed(self, clos: bool) -> None: ... @overload @@ -1388,13 +1973,17 @@ class HLRBRep_ThePolygonOfInterCSurf: class HLRBRep_ThePolygonToolOfInterCSurf: @staticmethod - def BeginOfSeg(thePolygon: HLRBRep_ThePolygonOfInterCSurf, Index: int) -> gp_Pnt: ... + def BeginOfSeg( + thePolygon: HLRBRep_ThePolygonOfInterCSurf, Index: int + ) -> gp_Pnt: ... @staticmethod def Bounding(thePolygon: HLRBRep_ThePolygonOfInterCSurf) -> Bnd_Box: ... @staticmethod def Closed(thePolygon: HLRBRep_ThePolygonOfInterCSurf) -> bool: ... @staticmethod - def DeflectionOverEstimation(thePolygon: HLRBRep_ThePolygonOfInterCSurf) -> float: ... + def DeflectionOverEstimation( + thePolygon: HLRBRep_ThePolygonOfInterCSurf, + ) -> float: ... @staticmethod def Dump(thePolygon: HLRBRep_ThePolygonOfInterCSurf) -> None: ... @staticmethod @@ -1406,23 +1995,33 @@ class HLRBRep_ThePolyhedronToolOfInterCSurf: @staticmethod def Bounding(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> Bnd_Box: ... @staticmethod - def ComponentsBounding(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> Bnd_HArray1OfBox: ... + def ComponentsBounding( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> Bnd_HArray1OfBox: ... @staticmethod - def DeflectionOverEstimation(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> float: ... + def DeflectionOverEstimation( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> float: ... @staticmethod def Dump(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... @staticmethod def GetBorderDeflection(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> float: ... @staticmethod - def IsOnBound(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Index1: int, Index2: int) -> bool: ... + def IsOnBound( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Index1: int, Index2: int + ) -> bool: ... @staticmethod def NbTriangles(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> int: ... @staticmethod def Point(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Index: int) -> gp_Pnt: ... @staticmethod - def TriConnex(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Triang: int, Pivot: int, Pedge: int) -> Tuple[int, int, int]: ... + def TriConnex( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Triang: int, Pivot: int, Pedge: int + ) -> Tuple[int, int, int]: ... @staticmethod - def Triangle(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Index: int) -> Tuple[int, int, int]: ... + def Triangle( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Index: int + ) -> Tuple[int, int, int]: ... class HLRBRep_TheProjPCurOfCInter: @overload @@ -1430,7 +2029,9 @@ class HLRBRep_TheProjPCurOfCInter: def FindParameter(C: None, Pnt: gp_Pnt2d, Tol: float) -> float: ... @overload @staticmethod - def FindParameter(C: None, Pnt: gp_Pnt2d, LowParameter: float, HighParameter: float, Tol: float) -> float: ... + def FindParameter( + C: None, Pnt: gp_Pnt2d, LowParameter: float, HighParameter: float, Tol: float + ) -> float: ... class HLRBRep_TheQuadCurvExactInterCSurf: def __init__(self, S: None, C: gp_Lin) -> None: ... @@ -1447,7 +2048,9 @@ class HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf(math_FunctionWithDeriv def Values(self, Param: float) -> Tuple[bool, float, float]: ... class HLRBRep_VertexList: - def __init__(self, T: HLRBRep_EdgeInterferenceTool, I: HLRAlgo_ListIteratorOfInterferenceList) -> None: ... + def __init__( + self, T: HLRBRep_EdgeInterferenceTool, I: HLRAlgo_ListIteratorOfInterferenceList + ) -> None: ... def BoundaryTransition(self) -> TopAbs_Orientation: ... def Current(self) -> HLRAlgo_Intersection: ... def IsBoundary(self) -> bool: ... @@ -1464,25 +2067,26 @@ class HLRBRep_Algo(HLRBRep_InternalAlgo): @overload def __init__(self, A: HLRBRep_Algo) -> None: ... @overload - def Add(self, S: TopoDS_Shape, SData: Standard_Transient, nbIso: Optional[int] = 0) -> None: ... + def Add( + self, S: TopoDS_Shape, SData: Standard_Transient, nbIso: Optional[int] = 0 + ) -> None: ... @overload def Add(self, S: TopoDS_Shape, nbIso: Optional[int] = 0) -> None: ... def Index(self, S: TopoDS_Shape) -> int: ... def OutLinedShapeNullify(self) -> None: ... -#classnotwrapped +# classnotwrapped class HLRBRep_ThePolyhedronOfInterCSurf: ... -#classnotwrapped +# classnotwrapped class HLRBRep_BSurfaceTool: ... -#classnotwrapped +# classnotwrapped class HLRBRep_Surface: ... -#classnotwrapped +# classnotwrapped class HLRBRep_TheCurveLocatorOfTheProjPCurOfCInter: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/HLRTopoBRep.i b/src/SWIG_files/wrapper/HLRTopoBRep.i index 63af2e8f4..3b51fbe25 100644 --- a/src/SWIG_files/wrapper/HLRTopoBRep.i +++ b/src/SWIG_files/wrapper/HLRTopoBRep.i @@ -103,6 +103,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = HLRTopoBRep_ListIteratorOfListOfVData(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(HLRTopoBRep_MapOfShapeListOfVData) NCollection_DataMap; diff --git a/src/SWIG_files/wrapper/HLRTopoBRep.pyi b/src/SWIG_files/wrapper/HLRTopoBRep.pyi index 73046b4ba..e6664be62 100644 --- a/src/SWIG_files/wrapper/HLRTopoBRep.pyi +++ b/src/SWIG_files/wrapper/HLRTopoBRep.pyi @@ -11,24 +11,29 @@ from OCC.Core.Geom2d import * from OCC.Core.gp import * from OCC.Core.HLRAlgo import * - class HLRTopoBRep_ListOfVData: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: HLRTopoBRep_VData) -> HLRTopoBRep_VData: ... + def Assign(self, theItem: HLRTopoBRep_ListOfVData) -> HLRTopoBRep_ListOfVData: ... def Clear(self) -> None: ... def First(self) -> HLRTopoBRep_VData: ... def Last(self) -> HLRTopoBRep_VData: ... - def Append(self, theItem: HLRTopoBRep_VData) -> HLRTopoBRep_VData: ... def Prepend(self, theItem: HLRTopoBRep_VData) -> HLRTopoBRep_VData: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> HLRTopoBRep_VData: ... - def SetValue(self, theIndex: int, theValue: HLRTopoBRep_VData) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> HLRTopoBRep_VData: ... class HLRTopoBRep_DSFiller: @staticmethod - def Insert(S: TopoDS_Shape, FO: Contap_Contour, DS: HLRTopoBRep_Data, MST: BRepTopAdaptor_MapOfShapeTool, nbIso: int) -> None: ... + def Insert( + S: TopoDS_Shape, + FO: Contap_Contour, + DS: HLRTopoBRep_Data, + MST: BRepTopAdaptor_MapOfShapeTool, + nbIso: int, + ) -> None: ... class HLRTopoBRep_Data: def __init__(self) -> None: ... @@ -79,9 +84,20 @@ class HLRTopoBRep_FaceData: class HLRTopoBRep_FaceIsoLiner: @staticmethod - def MakeIsoLine(F: TopoDS_Face, Iso: Geom2d_Line, V1: TopoDS_Vertex, V2: TopoDS_Vertex, U1: float, U2: float, Tol: float, DS: HLRTopoBRep_Data) -> None: ... + def MakeIsoLine( + F: TopoDS_Face, + Iso: Geom2d_Line, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + U1: float, + U2: float, + Tol: float, + DS: HLRTopoBRep_Data, + ) -> None: ... @staticmethod - def MakeVertex(E: TopoDS_Edge, P: gp_Pnt, Par: float, Tol: float, DS: HLRTopoBRep_Data) -> TopoDS_Vertex: ... + def MakeVertex( + E: TopoDS_Edge, P: gp_Pnt, Par: float, Tol: float, DS: HLRTopoBRep_Data + ) -> TopoDS_Vertex: ... @staticmethod def Perform(FI: int, F: TopoDS_Face, DS: HLRTopoBRep_Data, nbIsos: int) -> None: ... @@ -93,7 +109,9 @@ class HLRTopoBRep_OutLiner(Standard_Transient): @overload def __init__(self, OriS: TopoDS_Shape, OutS: TopoDS_Shape) -> None: ... def DataStructure(self) -> HLRTopoBRep_Data: ... - def Fill(self, P: HLRAlgo_Projector, MST: BRepTopAdaptor_MapOfShapeTool, nbIso: int) -> None: ... + def Fill( + self, P: HLRAlgo_Projector, MST: BRepTopAdaptor_MapOfShapeTool, nbIso: int + ) -> None: ... @overload def OriginalShape(self, OriS: TopoDS_Shape) -> None: ... @overload @@ -114,4 +132,3 @@ class HLRTopoBRep_VData: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Hatch.pyi b/src/SWIG_files/wrapper/Hatch.pyi index c7ada2839..5b18e2787 100644 --- a/src/SWIG_files/wrapper/Hatch.pyi +++ b/src/SWIG_files/wrapper/Hatch.pyi @@ -5,36 +5,47 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.gp import * - class Hatch_SequenceOfLine: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: Hatch_Line) -> Hatch_Line: ... def Clear(self) -> None: ... def First(self) -> Hatch_Line: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Hatch_Line: ... def Length(self) -> int: ... - def Append(self, theItem: Hatch_Line) -> Hatch_Line: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Hatch_Line) -> Hatch_Line: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Hatch_Line: ... def SetValue(self, theIndex: int, theValue: Hatch_Line) -> None: ... - -class Hatch_SequenceOfParameter: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Hatch_Line: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Hatch_SequenceOfParameter: + def Assign(self, theItem: Hatch_Parameter) -> Hatch_Parameter: ... def Clear(self) -> None: ... def First(self) -> Hatch_Parameter: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Hatch_Parameter: ... def Length(self) -> int: ... - def Append(self, theItem: Hatch_Parameter) -> Hatch_Parameter: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Hatch_Parameter) -> Hatch_Parameter: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Hatch_Parameter: ... def SetValue(self, theIndex: int, theValue: Hatch_Parameter) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Hatch_Parameter: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Hatch_LineForm(IntEnum): Hatch_XLINE: int = ... @@ -48,7 +59,9 @@ Hatch_ANYLINE = Hatch_LineForm.Hatch_ANYLINE class Hatch_Hatcher: def __init__(self, Tol: float, Oriented: Optional[bool] = True) -> None: ... @overload - def AddLine(self, L: gp_Lin2d, T: Optional[Hatch_LineForm] = Hatch_ANYLINE) -> None: ... + def AddLine( + self, L: gp_Lin2d, T: Optional[Hatch_LineForm] = Hatch_ANYLINE + ) -> None: ... @overload def AddLine(self, D: gp_Dir2d, Dist: float) -> None: ... def AddXLine(self, X: float) -> None: ... @@ -74,7 +87,9 @@ class Hatch_Hatcher: @overload def Trim(self, L: gp_Lin2d, Index: Optional[int] = 0) -> None: ... @overload - def Trim(self, L: gp_Lin2d, Start: float, End: float, Index: Optional[int] = 0) -> None: ... + def Trim( + self, L: gp_Lin2d, Start: float, End: float, Index: Optional[int] = 0 + ) -> None: ... @overload def Trim(self, P1: gp_Pnt2d, P2: gp_Pnt2d, Index: Optional[int] = 0) -> None: ... @@ -83,15 +98,22 @@ class Hatch_Line: def __init__(self) -> None: ... @overload def __init__(self, L: gp_Lin2d, T: Hatch_LineForm) -> None: ... - def AddIntersection(self, Par1: float, Start: bool, Index: int, Par2: float, theToler: float) -> None: ... + def AddIntersection( + self, Par1: float, Start: bool, Index: int, Par2: float, theToler: float + ) -> None: ... class Hatch_Parameter: @overload def __init__(self) -> None: ... @overload - def __init__(self, Par1: float, Start: bool, Index: Optional[int] = 0, Par2: Optional[float] = 0) -> None: ... + def __init__( + self, + Par1: float, + Start: bool, + Index: Optional[int] = 0, + Par2: Optional[float] = 0, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/HatchGen.pyi b/src/SWIG_files/wrapper/HatchGen.pyi index 7d239135c..e6d7e4694 100644 --- a/src/SWIG_files/wrapper/HatchGen.pyi +++ b/src/SWIG_files/wrapper/HatchGen.pyi @@ -6,51 +6,70 @@ from OCC.Core.NCollection import * from OCC.Core.TopAbs import * from OCC.Core.IntRes2d import * - class HatchGen_Domains: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: HatchGen_Domain) -> HatchGen_Domain: ... def Clear(self) -> None: ... def First(self) -> HatchGen_Domain: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> HatchGen_Domain: ... def Length(self) -> int: ... - def Append(self, theItem: HatchGen_Domain) -> HatchGen_Domain: ... + def Lower(self) -> int: ... def Prepend(self, theItem: HatchGen_Domain) -> HatchGen_Domain: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> HatchGen_Domain: ... def SetValue(self, theIndex: int, theValue: HatchGen_Domain) -> None: ... - -class HatchGen_PointsOnElement: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> HatchGen_Domain: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class HatchGen_PointsOnElement: + def Assign(self, theItem: HatchGen_PointOnElement) -> HatchGen_PointOnElement: ... def Clear(self) -> None: ... def First(self) -> HatchGen_PointOnElement: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> HatchGen_PointOnElement: ... def Length(self) -> int: ... - def Append(self, theItem: HatchGen_PointOnElement) -> HatchGen_PointOnElement: ... + def Lower(self) -> int: ... def Prepend(self, theItem: HatchGen_PointOnElement) -> HatchGen_PointOnElement: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> HatchGen_PointOnElement: ... def SetValue(self, theIndex: int, theValue: HatchGen_PointOnElement) -> None: ... - -class HatchGen_PointsOnHatching: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> HatchGen_PointOnElement: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class HatchGen_PointsOnHatching: + def Assign(self, theItem: HatchGen_PointOnHatching) -> HatchGen_PointOnHatching: ... def Clear(self) -> None: ... def First(self) -> HatchGen_PointOnHatching: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> HatchGen_PointOnHatching: ... def Length(self) -> int: ... - def Append(self, theItem: HatchGen_PointOnHatching) -> HatchGen_PointOnHatching: ... - def Prepend(self, theItem: HatchGen_PointOnHatching) -> HatchGen_PointOnHatching: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: HatchGen_PointOnHatching + ) -> HatchGen_PointOnHatching: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> HatchGen_PointOnHatching: ... def SetValue(self, theIndex: int, theValue: HatchGen_PointOnHatching) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> HatchGen_PointOnHatching: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class HatchGen_ErrorStatus(IntEnum): HatchGen_NoProblem: int = ... @@ -80,7 +99,9 @@ class HatchGen_Domain: @overload def __init__(self) -> None: ... @overload - def __init__(self, P1: HatchGen_PointOnHatching, P2: HatchGen_PointOnHatching) -> None: ... + def __init__( + self, P1: HatchGen_PointOnHatching, P2: HatchGen_PointOnHatching + ) -> None: ... @overload def __init__(self, P: HatchGen_PointOnHatching, First: bool) -> None: ... def Dump(self, Index: Optional[int] = 0) -> None: ... @@ -93,7 +114,9 @@ class HatchGen_Domain: @overload def SetFirstPoint(self) -> None: ... @overload - def SetPoints(self, P1: HatchGen_PointOnHatching, P2: HatchGen_PointOnHatching) -> None: ... + def SetPoints( + self, P1: HatchGen_PointOnHatching, P2: HatchGen_PointOnHatching + ) -> None: ... @overload def SetPoints(self) -> None: ... @overload @@ -147,4 +170,3 @@ class HatchGen_PointOnHatching(HatchGen_IntersectionPoint): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/HeaderSection.pyi b/src/SWIG_files/wrapper/HeaderSection.pyi index 1634c0f4f..649d228a5 100644 --- a/src/SWIG_files/wrapper/HeaderSection.pyi +++ b/src/SWIG_files/wrapper/HeaderSection.pyi @@ -7,7 +7,6 @@ from OCC.Core.Interface import * from OCC.Core.TCollection import * from OCC.Core.StepData import * - class headersection: @staticmethod def Protocol() -> HeaderSection_Protocol: ... @@ -17,17 +16,32 @@ class HeaderSection_FileDescription(Standard_Transient): def Description(self) -> Interface_HArray1OfHAsciiString: ... def DescriptionValue(self, num: int) -> TCollection_HAsciiString: ... def ImplementationLevel(self) -> TCollection_HAsciiString: ... - def Init(self, aDescription: Interface_HArray1OfHAsciiString, aImplementationLevel: TCollection_HAsciiString) -> None: ... + def Init( + self, + aDescription: Interface_HArray1OfHAsciiString, + aImplementationLevel: TCollection_HAsciiString, + ) -> None: ... def NbDescription(self) -> int: ... def SetDescription(self, aDescription: Interface_HArray1OfHAsciiString) -> None: ... - def SetImplementationLevel(self, aImplementationLevel: TCollection_HAsciiString) -> None: ... + def SetImplementationLevel( + self, aImplementationLevel: TCollection_HAsciiString + ) -> None: ... class HeaderSection_FileName(Standard_Transient): def __init__(self) -> None: ... def Author(self) -> Interface_HArray1OfHAsciiString: ... def AuthorValue(self, num: int) -> TCollection_HAsciiString: ... def Authorisation(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aTimeStamp: TCollection_HAsciiString, aAuthor: Interface_HArray1OfHAsciiString, aOrganization: Interface_HArray1OfHAsciiString, aPreprocessorVersion: TCollection_HAsciiString, aOriginatingSystem: TCollection_HAsciiString, aAuthorisation: TCollection_HAsciiString) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aTimeStamp: TCollection_HAsciiString, + aAuthor: Interface_HArray1OfHAsciiString, + aOrganization: Interface_HArray1OfHAsciiString, + aPreprocessorVersion: TCollection_HAsciiString, + aOriginatingSystem: TCollection_HAsciiString, + aAuthorisation: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def NbAuthor(self) -> int: ... def NbOrganization(self) -> int: ... @@ -38,9 +52,15 @@ class HeaderSection_FileName(Standard_Transient): def SetAuthor(self, aAuthor: Interface_HArray1OfHAsciiString) -> None: ... def SetAuthorisation(self, aAuthorisation: TCollection_HAsciiString) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... - def SetOrganization(self, aOrganization: Interface_HArray1OfHAsciiString) -> None: ... - def SetOriginatingSystem(self, aOriginatingSystem: TCollection_HAsciiString) -> None: ... - def SetPreprocessorVersion(self, aPreprocessorVersion: TCollection_HAsciiString) -> None: ... + def SetOrganization( + self, aOrganization: Interface_HArray1OfHAsciiString + ) -> None: ... + def SetOriginatingSystem( + self, aOriginatingSystem: TCollection_HAsciiString + ) -> None: ... + def SetPreprocessorVersion( + self, aPreprocessorVersion: TCollection_HAsciiString + ) -> None: ... def SetTimeStamp(self, aTimeStamp: TCollection_HAsciiString) -> None: ... def TimeStamp(self) -> TCollection_HAsciiString: ... @@ -50,7 +70,9 @@ class HeaderSection_FileSchema(Standard_Transient): def NbSchemaIdentifiers(self) -> int: ... def SchemaIdentifiers(self) -> Interface_HArray1OfHAsciiString: ... def SchemaIdentifiersValue(self, num: int) -> TCollection_HAsciiString: ... - def SetSchemaIdentifiers(self, aSchemaIdentifiers: Interface_HArray1OfHAsciiString) -> None: ... + def SetSchemaIdentifiers( + self, aSchemaIdentifiers: Interface_HArray1OfHAsciiString + ) -> None: ... class HeaderSection_Protocol(StepData_Protocol): def __init__(self) -> None: ... @@ -59,4 +81,3 @@ class HeaderSection_Protocol(StepData_Protocol): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Hermit.pyi b/src/SWIG_files/wrapper/Hermit.pyi index 998b42cc7..ab75096b2 100644 --- a/src/SWIG_files/wrapper/Hermit.pyi +++ b/src/SWIG_files/wrapper/Hermit.pyi @@ -6,18 +6,28 @@ from OCC.Core.NCollection import * from OCC.Core.Geom import * from OCC.Core.Geom2d import * - class hermit: @overload @staticmethod - def Solution(BS: Geom_BSplineCurve, TolPoles: Optional[float] = 0.000001, TolKnots: Optional[float] = 0.000001) -> Geom2d_BSplineCurve: ... + def Solution( + BS: Geom_BSplineCurve, + TolPoles: Optional[float] = 0.000001, + TolKnots: Optional[float] = 0.000001, + ) -> Geom2d_BSplineCurve: ... @overload @staticmethod - def Solution(BS: Geom2d_BSplineCurve, TolPoles: Optional[float] = 0.000001, TolKnots: Optional[float] = 0.000001) -> Geom2d_BSplineCurve: ... + def Solution( + BS: Geom2d_BSplineCurve, + TolPoles: Optional[float] = 0.000001, + TolKnots: Optional[float] = 0.000001, + ) -> Geom2d_BSplineCurve: ... @staticmethod - def Solutionbis(BS: Geom_BSplineCurve, TolPoles: Optional[float] = 0.000001, TolKnots: Optional[float] = 0.000001) -> Tuple[float, float]: ... + def Solutionbis( + BS: Geom_BSplineCurve, + TolPoles: Optional[float] = 0.000001, + TolKnots: Optional[float] = 0.000001, + ) -> Tuple[float, float]: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IFSelect.pyi b/src/SWIG_files/wrapper/IFSelect.pyi index cbbddac39..27974ab3b 100644 --- a/src/SWIG_files/wrapper/IFSelect.pyi +++ b/src/SWIG_files/wrapper/IFSelect.pyi @@ -8,81 +8,110 @@ from OCC.Core.TColStd import * from OCC.Core.TCollection import * from OCC.Core.MoniTool import * - class IFSelect_SequenceOfAppliedModifiers: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class IFSelect_SequenceOfGeneralModifier: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IFSelect_SequenceOfGeneralModifier: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class IFSelect_SequenceOfInterfaceModel: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IFSelect_SequenceOfInterfaceModel: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class IFSelect_TSeqOfDispatch: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IFSelect_TSeqOfDispatch: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class IFSelect_TSeqOfSelection: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IFSelect_TSeqOfSelection: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class IFSelect_EditValue(IntEnum): IFSelect_Optional: int = ... @@ -161,10 +190,16 @@ class IFSelect_Activator(Standard_Transient): def Add(self, number: int, command: str) -> None: ... def AddSet(self, number: int, command: str) -> None: ... @staticmethod - def Adding(actor: IFSelect_Activator, number: int, command: str, mode: int) -> None: ... + def Adding( + actor: IFSelect_Activator, number: int, command: str, mode: int + ) -> None: ... @staticmethod - def Commands(mode: Optional[int] = -1, command: Optional[str] = "") -> TColStd_HSequenceOfAsciiString: ... - def Do(self, number: int, pilot: IFSelect_SessionPilot) -> IFSelect_ReturnStatus: ... + def Commands( + mode: Optional[int] = -1, command: Optional[str] = "" + ) -> TColStd_HSequenceOfAsciiString: ... + def Do( + self, number: int, pilot: IFSelect_SessionPilot + ) -> IFSelect_ReturnStatus: ... def File(self) -> str: ... def Group(self) -> str: ... def Help(self, number: int) -> str: ... @@ -188,12 +223,23 @@ class IFSelect_AppliedModifiers(Standard_Transient): class IFSelect_ContextModif: @overload - def __init__(self, graph: Interface_Graph, TC: Interface_CopyTool, filename: Optional[str] = "") -> None: ... + def __init__( + self, + graph: Interface_Graph, + TC: Interface_CopyTool, + filename: Optional[str] = "", + ) -> None: ... @overload - def __init__(self, graph: Interface_Graph, filename: Optional[str] = "") -> None: ... + def __init__( + self, graph: Interface_Graph, filename: Optional[str] = "" + ) -> None: ... def AddCheck(self, check: Interface_Check) -> None: ... - def AddFail(self, start: Standard_Transient, mess: str, orig: Optional[str] = "") -> None: ... - def AddWarning(self, start: Standard_Transient, mess: str, orig: Optional[str] = "") -> None: ... + def AddFail( + self, start: Standard_Transient, mess: str, orig: Optional[str] = "" + ) -> None: ... + def AddWarning( + self, start: Standard_Transient, mess: str, orig: Optional[str] = "" + ) -> None: ... @overload def CCheck(self, num: Optional[int] = 0) -> Interface_Check: ... @overload @@ -224,12 +270,28 @@ class IFSelect_ContextModif: class IFSelect_ContextWrite: @overload - def __init__(self, model: Interface_InterfaceModel, proto: Interface_Protocol, applieds: IFSelect_AppliedModifiers, filename: str) -> None: ... + def __init__( + self, + model: Interface_InterfaceModel, + proto: Interface_Protocol, + applieds: IFSelect_AppliedModifiers, + filename: str, + ) -> None: ... @overload - def __init__(self, hgraph: Interface_HGraph, proto: Interface_Protocol, applieds: IFSelect_AppliedModifiers, filename: str) -> None: ... + def __init__( + self, + hgraph: Interface_HGraph, + proto: Interface_Protocol, + applieds: IFSelect_AppliedModifiers, + filename: str, + ) -> None: ... def AddCheck(self, check: Interface_Check) -> None: ... - def AddFail(self, start: Standard_Transient, mess: str, orig: Optional[str] = "") -> None: ... - def AddWarning(self, start: Standard_Transient, mess: str, orig: Optional[str] = "") -> None: ... + def AddFail( + self, start: Standard_Transient, mess: str, orig: Optional[str] = "" + ) -> None: ... + def AddWarning( + self, start: Standard_Transient, mess: str, orig: Optional[str] = "" + ) -> None: ... def AppliedModifiers(self) -> IFSelect_AppliedModifiers: ... @overload def CCheck(self, num: Optional[int] = 0) -> Interface_Check: ... @@ -267,11 +329,26 @@ class IFSelect_Dispatch(Standard_Transient): class IFSelect_EditForm(Standard_Transient): @overload - def __init__(self, editor: IFSelect_Editor, readonly: bool, undoable: bool, label: Optional[str] = "") -> None: ... + def __init__( + self, + editor: IFSelect_Editor, + readonly: bool, + undoable: bool, + label: Optional[str] = "", + ) -> None: ... @overload - def __init__(self, editor: IFSelect_Editor, nums: TColStd_SequenceOfInteger, readonly: bool, undoable: bool, label: Optional[str] = "") -> None: ... + def __init__( + self, + editor: IFSelect_Editor, + nums: TColStd_SequenceOfInteger, + readonly: bool, + undoable: bool, + label: Optional[str] = "", + ) -> None: ... def Apply(self) -> bool: ... - def ApplyData(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def ApplyData( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... def ClearData(self) -> None: ... def ClearEdit(self, num: Optional[int] = 0) -> None: ... def GetEditKeepStatus(self) -> bool: ... @@ -287,7 +364,9 @@ class IFSelect_EditForm(Standard_Transient): def Label(self) -> str: ... def ListEditor(self, num: int) -> IFSelect_ListEditor: ... @overload - def LoadData(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def LoadData( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... @overload def LoadData(self) -> bool: ... def LoadDefault(self) -> None: ... @@ -296,9 +375,21 @@ class IFSelect_EditForm(Standard_Transient): def LoadModel(self, model: Interface_InterfaceModel) -> bool: ... def LoadValue(self, num: int, val: TCollection_HAsciiString) -> None: ... def Model(self) -> Interface_InterfaceModel: ... - def Modify(self, num: int, newval: TCollection_HAsciiString, enforce: Optional[bool] = False) -> bool: ... - def ModifyList(self, num: int, edited: IFSelect_ListEditor, enforce: Optional[bool] = False) -> bool: ... - def ModifyListValue(self, num: int, list: TColStd_HSequenceOfHAsciiString, enforce: Optional[bool] = False) -> bool: ... + def Modify( + self, + num: int, + newval: TCollection_HAsciiString, + enforce: Optional[bool] = False, + ) -> bool: ... + def ModifyList( + self, num: int, edited: IFSelect_ListEditor, enforce: Optional[bool] = False + ) -> bool: ... + def ModifyListValue( + self, + num: int, + list: TColStd_HSequenceOfHAsciiString, + enforce: Optional[bool] = False, + ) -> bool: ... def NameNumber(self, name: str) -> int: ... def NameRank(self, name: str) -> int: ... def NbValues(self, editable: bool) -> int: ... @@ -306,10 +397,14 @@ class IFSelect_EditForm(Standard_Transient): def OriginalList(self, num: int) -> TColStd_HSequenceOfHAsciiString: ... def OriginalValue(self, num: int) -> TCollection_HAsciiString: ... def PrintDefs(self) -> str: ... - def PrintValues(self, what: int, names: bool, alsolist: Optional[bool] = False) -> str: ... + def PrintValues( + self, what: int, names: bool, alsolist: Optional[bool] = False + ) -> str: ... def RankFromNumber(self, number: int) -> int: ... def Recognize(self) -> bool: ... - def SetData(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> None: ... + def SetData( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> None: ... def SetEntity(self, ent: Standard_Transient) -> None: ... def SetModel(self, model: Interface_InterfaceModel) -> None: ... def Touch(self, num: int, newval: TCollection_HAsciiString) -> bool: ... @@ -317,14 +412,28 @@ class IFSelect_EditForm(Standard_Transient): def Undo(self) -> bool: ... class IFSelect_Editor(Standard_Transient): - def Apply(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Apply( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def EditMode(self, num: int) -> IFSelect_EditValue: ... - def Form(self, readonly: bool, undoable: Optional[bool] = True) -> IFSelect_EditForm: ... + def Form( + self, readonly: bool, undoable: Optional[bool] = True + ) -> IFSelect_EditForm: ... def IsList(self, num: int) -> bool: ... def Label(self) -> str: ... def ListEditor(self, num: int) -> IFSelect_ListEditor: ... - def ListValue(self, form: IFSelect_EditForm, num: int) -> TColStd_HSequenceOfHAsciiString: ... - def Load(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def ListValue( + self, form: IFSelect_EditForm, num: int + ) -> TColStd_HSequenceOfHAsciiString: ... + def Load( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def MaxList(self, num: int) -> int: ... def MaxNameLength(self, what: int) -> int: ... def Name(self, num: int, isshort: Optional[bool] = False) -> str: ... @@ -334,21 +443,47 @@ class IFSelect_Editor(Standard_Transient): def PrintNames(self) -> str: ... def Recognize(self, form: IFSelect_EditForm) -> bool: ... def SetList(self, num: int, max: Optional[int] = 0) -> None: ... - def SetValue(self, num: int, typval: Interface_TypedValue, shortname: Optional[str] = "", accessmode: Optional[IFSelect_EditValue] = IFSelect_Editable) -> None: ... - def StringValue(self, form: IFSelect_EditForm, num: int) -> TCollection_HAsciiString: ... + def SetValue( + self, + num: int, + typval: Interface_TypedValue, + shortname: Optional[str] = "", + accessmode: Optional[IFSelect_EditValue] = IFSelect_Editable, + ) -> None: ... + def StringValue( + self, form: IFSelect_EditForm, num: int + ) -> TCollection_HAsciiString: ... def TypedValue(self, num: int) -> Interface_TypedValue: ... - def Update(self, form: IFSelect_EditForm, num: int, newval: TCollection_HAsciiString, enforce: bool) -> bool: ... - def UpdateList(self, form: IFSelect_EditForm, num: int, newlist: TColStd_HSequenceOfHAsciiString, enforce: bool) -> bool: ... + def Update( + self, + form: IFSelect_EditForm, + num: int, + newval: TCollection_HAsciiString, + enforce: bool, + ) -> bool: ... + def UpdateList( + self, + form: IFSelect_EditForm, + num: int, + newlist: TColStd_HSequenceOfHAsciiString, + enforce: bool, + ) -> bool: ... class IFSelect_Functions: @staticmethod - def GiveDispatch(WS: IFSelect_WorkSession, name: str, mode: Optional[bool] = True) -> IFSelect_Dispatch: ... + def GiveDispatch( + WS: IFSelect_WorkSession, name: str, mode: Optional[bool] = True + ) -> IFSelect_Dispatch: ... @staticmethod - def GiveEntity(WS: IFSelect_WorkSession, name: Optional[str] = "") -> Standard_Transient: ... + def GiveEntity( + WS: IFSelect_WorkSession, name: Optional[str] = "" + ) -> Standard_Transient: ... @staticmethod def GiveEntityNumber(WS: IFSelect_WorkSession, name: Optional[str] = "") -> int: ... @staticmethod - def GiveList(WS: IFSelect_WorkSession, first: Optional[str] = "", second: Optional[str] = "") -> TColStd_HSequenceOfTransient: ... + def GiveList( + WS: IFSelect_WorkSession, first: Optional[str] = "", second: Optional[str] = "" + ) -> TColStd_HSequenceOfTransient: ... @staticmethod def Init() -> None: ... @@ -374,7 +509,9 @@ class IFSelect_ListEditor(Standard_Transient): def __init__(self) -> None: ... @overload def __init__(self, def_: Interface_TypedValue, max: Optional[int] = 0) -> None: ... - def AddValue(self, val: TCollection_HAsciiString, atnum: Optional[int] = 0) -> bool: ... + def AddValue( + self, val: TCollection_HAsciiString, atnum: Optional[int] = 0 + ) -> bool: ... def ClearEdit(self) -> None: ... def EditedValues(self) -> TColStd_HSequenceOfHAsciiString: ... def IsAdded(self, num: int) -> bool: ... @@ -389,7 +526,9 @@ class IFSelect_ListEditor(Standard_Transient): def Remove(self, num: Optional[int] = 0, howmany: Optional[int] = 1) -> bool: ... def SetTouched(self) -> None: ... def SetValue(self, num: int, val: TCollection_HAsciiString) -> bool: ... - def Value(self, num: int, edited: Optional[bool] = True) -> TCollection_HAsciiString: ... + def Value( + self, num: int, edited: Optional[bool] = True + ) -> TCollection_HAsciiString: ... class IFSelect_ModelCopier(Standard_Transient): def __init__(self) -> None: ... @@ -400,18 +539,51 @@ class IFSelect_ModelCopier(Standard_Transient): def ClearAppliedModifiers(self, num: int) -> bool: ... def ClearFile(self, num: int) -> bool: ... def ClearResult(self) -> None: ... - def CopiedRemaining(self, G: Interface_Graph, WL: IFSelect_WorkLibrary, TC: Interface_CopyTool, newmod: Interface_InterfaceModel) -> None: ... - def Copy(self, eval: IFSelect_ShareOutResult, WL: IFSelect_WorkLibrary, protocol: Interface_Protocol) -> Interface_CheckIterator: ... + def CopiedRemaining( + self, + G: Interface_Graph, + WL: IFSelect_WorkLibrary, + TC: Interface_CopyTool, + newmod: Interface_InterfaceModel, + ) -> None: ... + def Copy( + self, + eval: IFSelect_ShareOutResult, + WL: IFSelect_WorkLibrary, + protocol: Interface_Protocol, + ) -> Interface_CheckIterator: ... def FileModel(self, num: int) -> Interface_InterfaceModel: ... def FileName(self, num: int) -> str: ... def NameFile(self, num: int, filename: str) -> bool: ... def NbFiles(self) -> int: ... - def Send(self, eval: IFSelect_ShareOutResult, WL: IFSelect_WorkLibrary, protocol: Interface_Protocol) -> Interface_CheckIterator: ... - def SendAll(self, filename: str, G: Interface_Graph, WL: IFSelect_WorkLibrary, protocol: Interface_Protocol) -> Interface_CheckIterator: ... - def SendCopied(self, WL: IFSelect_WorkLibrary, protocol: Interface_Protocol) -> Interface_CheckIterator: ... - def SendSelected(self, filename: str, G: Interface_Graph, WL: IFSelect_WorkLibrary, protocol: Interface_Protocol, iter: Interface_EntityIterator) -> Interface_CheckIterator: ... + def Send( + self, + eval: IFSelect_ShareOutResult, + WL: IFSelect_WorkLibrary, + protocol: Interface_Protocol, + ) -> Interface_CheckIterator: ... + def SendAll( + self, + filename: str, + G: Interface_Graph, + WL: IFSelect_WorkLibrary, + protocol: Interface_Protocol, + ) -> Interface_CheckIterator: ... + def SendCopied( + self, WL: IFSelect_WorkLibrary, protocol: Interface_Protocol + ) -> Interface_CheckIterator: ... + def SendSelected( + self, + filename: str, + G: Interface_Graph, + WL: IFSelect_WorkLibrary, + protocol: Interface_Protocol, + iter: Interface_EntityIterator, + ) -> Interface_CheckIterator: ... def SentFiles(self) -> TColStd_HSequenceOfHAsciiString: ... - def SetAppliedModifiers(self, num: int, applied: IFSelect_AppliedModifiers) -> bool: ... + def SetAppliedModifiers( + self, num: int, applied: IFSelect_AppliedModifiers + ) -> bool: ... def SetRemaining(self, CG: Interface_Graph) -> bool: ... def SetShareOut(self, sho: IFSelect_ShareOut) -> None: ... @@ -453,15 +625,21 @@ class IFSelect_SessionDumper(Standard_Transient): @staticmethod def First() -> IFSelect_SessionDumper: ... def Next(self) -> IFSelect_SessionDumper: ... - def ReadOwn(self, file: IFSelect_SessionFile, type: str, item: Standard_Transient) -> bool: ... - def WriteOwn(self, file: IFSelect_SessionFile, item: Standard_Transient) -> bool: ... + def ReadOwn( + self, file: IFSelect_SessionFile, type: str, item: Standard_Transient + ) -> bool: ... + def WriteOwn( + self, file: IFSelect_SessionFile, item: Standard_Transient + ) -> bool: ... class IFSelect_SessionFile: @overload def __init__(self, WS: IFSelect_WorkSession) -> None: ... @overload def __init__(self, WS: IFSelect_WorkSession, filename: str) -> None: ... - def AddItem(self, item: Standard_Transient, active: Optional[bool] = True) -> None: ... + def AddItem( + self, item: Standard_Transient, active: Optional[bool] = True + ) -> None: ... def AddLine(self, line: str) -> None: ... def ClearLines(self) -> None: ... def Destroy(self) -> None: ... @@ -500,11 +678,18 @@ class IFSelect_SessionFile: class IFSelect_ShareOut(Standard_Transient): def __init__(self) -> None: ... def AddDispatch(self, disp: IFSelect_Dispatch) -> None: ... - def AddModif(self, modifier: IFSelect_GeneralModifier, formodel: bool, atnum: Optional[int] = 0) -> None: ... + def AddModif( + self, + modifier: IFSelect_GeneralModifier, + formodel: bool, + atnum: Optional[int] = 0, + ) -> None: ... @overload def AddModifier(self, modifier: IFSelect_GeneralModifier, atnum: int) -> None: ... @overload - def AddModifier(self, modifier: IFSelect_GeneralModifier, dispnum: int, atnum: int) -> None: ... + def AddModifier( + self, modifier: IFSelect_GeneralModifier, dispnum: int, atnum: int + ) -> None: ... def ChangeModifierRank(self, formodel: bool, befor: int, after: int) -> bool: ... def Clear(self, onlydisp: bool) -> None: ... def ClearResult(self, alsoname: bool) -> None: ... @@ -534,11 +719,15 @@ class IFSelect_ShareOut(Standard_Transient): class IFSelect_ShareOutResult: @overload - def __init__(self, sho: IFSelect_ShareOut, mod: Interface_InterfaceModel) -> None: ... + def __init__( + self, sho: IFSelect_ShareOut, mod: Interface_InterfaceModel + ) -> None: ... @overload def __init__(self, sho: IFSelect_ShareOut, G: Interface_Graph) -> None: ... @overload - def __init__(self, disp: IFSelect_Dispatch, mod: Interface_InterfaceModel) -> None: ... + def __init__( + self, disp: IFSelect_Dispatch, mod: Interface_InterfaceModel + ) -> None: ... @overload def __init__(self, disp: IFSelect_Dispatch, G: Interface_Graph) -> None: ... def Dispatch(self) -> IFSelect_Dispatch: ... @@ -567,9 +756,17 @@ class IFSelect_Signature(Interface_SignType): def Label(self) -> str: ... @staticmethod def MatchValue(val: str, text: str, exact: bool) -> bool: ... - def Matches(self, ent: Standard_Transient, model: Interface_InterfaceModel, text: str, exact: bool) -> bool: ... + def Matches( + self, + ent: Standard_Transient, + model: Interface_InterfaceModel, + text: str, + exact: bool, + ) -> bool: ... def Name(self) -> str: ... - def SetIntCase(self, hasmin: bool, valmin: int, hasmax: bool, valmax: int) -> None: ... + def SetIntCase( + self, hasmin: bool, valmin: int, hasmax: bool, valmax: int + ) -> None: ... class IFSelect_SignatureList(Standard_Transient): def __init__(self, withlist: Optional[bool] = False) -> None: ... @@ -585,7 +782,11 @@ class IFSelect_SignatureList(Standard_Transient): def NbNulls(self) -> int: ... def NbTimes(self, sign: str) -> int: ... def PrintCount(self) -> str: ... - def PrintList(self, model: Interface_InterfaceModel, mod: Optional[IFSelect_PrintCount] = IFSelect_ListByItem) -> str: ... + def PrintList( + self, + model: Interface_InterfaceModel, + mod: Optional[IFSelect_PrintCount] = IFSelect_ListByItem, + ) -> str: ... def PrintSum(self) -> str: ... def SetList(self, withlist: bool) -> None: ... def SetName(self, name: str) -> None: ... @@ -593,43 +794,96 @@ class IFSelect_SignatureList(Standard_Transient): class IFSelect_Transformer(Standard_Transient): def ChangeProtocol(self, newproto: Interface_Protocol) -> bool: ... def Label(self) -> str: ... - def Perform(self, G: Interface_Graph, protocol: Interface_Protocol, checks: Interface_CheckIterator, newmod: Interface_InterfaceModel) -> bool: ... - def Updated(self, entfrom: Standard_Transient, entto: Standard_Transient) -> bool: ... + def Perform( + self, + G: Interface_Graph, + protocol: Interface_Protocol, + checks: Interface_CheckIterator, + newmod: Interface_InterfaceModel, + ) -> bool: ... + def Updated( + self, entfrom: Standard_Transient, entto: Standard_Transient + ) -> bool: ... class IFSelect_WorkLibrary(Standard_Transient): - def CopyModel(self, original: Interface_InterfaceModel, newmodel: Interface_InterfaceModel, list: Interface_EntityIterator, TC: Interface_CopyTool) -> bool: ... + def CopyModel( + self, + original: Interface_InterfaceModel, + newmodel: Interface_InterfaceModel, + list: Interface_EntityIterator, + TC: Interface_CopyTool, + ) -> bool: ... @overload - def DumpEntity(self, model: Interface_InterfaceModel, protocol: Interface_Protocol, entity: Standard_Transient, level: int) -> str: ... + def DumpEntity( + self, + model: Interface_InterfaceModel, + protocol: Interface_Protocol, + entity: Standard_Transient, + level: int, + ) -> str: ... @overload - def DumpEntity(self, model: Interface_InterfaceModel, protocol: Interface_Protocol, entity: Standard_Transient) -> str: ... + def DumpEntity( + self, + model: Interface_InterfaceModel, + protocol: Interface_Protocol, + entity: Standard_Transient, + ) -> str: ... def DumpHelp(self, level: int) -> str: ... def DumpLevels(self) -> Tuple[int, int]: ... - def ReadFile(self, name: str, model: Interface_InterfaceModel, protocol: Interface_Protocol) -> int: ... - def ReadStream(self, theName: str, theIStream: str, model: Interface_InterfaceModel, protocol: Interface_Protocol) -> int: ... + def ReadFile( + self, name: str, model: Interface_InterfaceModel, protocol: Interface_Protocol + ) -> int: ... + def ReadStream( + self, + theName: str, + theIStream: str, + model: Interface_InterfaceModel, + protocol: Interface_Protocol, + ) -> int: ... def SetDumpHelp(self, level: int, help: str) -> None: ... def SetDumpLevels(self, def_: int, max: int) -> None: ... def WriteFile(self, ctx: IFSelect_ContextWrite) -> bool: ... class IFSelect_WorkSession(Standard_Transient): def __init__(self) -> None: ... - def AddItem(self, item: Standard_Transient, active: Optional[bool] = True) -> int: ... - def AddNamedItem(self, name: str, item: Standard_Transient, active: Optional[bool] = True) -> int: ... + def AddItem( + self, item: Standard_Transient, active: Optional[bool] = True + ) -> int: ... + def AddNamedItem( + self, name: str, item: Standard_Transient, active: Optional[bool] = True + ) -> int: ... def AppliedDispatches(self) -> TColStd_HSequenceOfInteger: ... def BeginSentFiles(self, record: bool) -> None: ... def CategoryName(self, ent: Standard_Transient) -> str: ... def CategoryNumber(self, ent: Standard_Transient) -> int: ... def ChangeModifierRank(self, formodel: bool, before: int, after: int) -> bool: ... - def CheckOne(self, ent: Standard_Transient, complete: Optional[bool] = True) -> Interface_CheckIterator: ... + def CheckOne( + self, ent: Standard_Transient, complete: Optional[bool] = True + ) -> Interface_CheckIterator: ... def ClearData(self, mode: int) -> None: ... def ClearFile(self) -> None: ... def ClearFinalModifiers(self) -> None: ... def ClearItems(self) -> None: ... def ClearShareOut(self, onlydisp: bool) -> None: ... - def CombineAdd(self, selcomb: IFSelect_Selection, seladd: IFSelect_Selection, atnum: Optional[int] = 0) -> int: ... - def CombineRemove(self, selcomb: IFSelect_Selection, selrem: IFSelect_Selection) -> bool: ... + def CombineAdd( + self, + selcomb: IFSelect_Selection, + seladd: IFSelect_Selection, + atnum: Optional[int] = 0, + ) -> int: ... + def CombineRemove( + self, selcomb: IFSelect_Selection, selrem: IFSelect_Selection + ) -> bool: ... def ComputeCheck(self, enforce: Optional[bool] = False) -> bool: ... - def ComputeCounter(self, counter: IFSelect_SignCounter, forced: Optional[bool] = False) -> bool: ... - def ComputeCounterFromList(self, counter: IFSelect_SignCounter, list: TColStd_HSequenceOfTransient, clear: Optional[bool] = True) -> bool: ... + def ComputeCounter( + self, counter: IFSelect_SignCounter, forced: Optional[bool] = False + ) -> bool: ... + def ComputeCounterFromList( + self, + counter: IFSelect_SignCounter, + list: TColStd_HSequenceOfTransient, + clear: Optional[bool] = True, + ) -> bool: ... def ComputeGraph(self, enforce: Optional[bool] = False) -> bool: ... def DefaultFileRoot(self) -> TCollection_HAsciiString: ... def Dispatch(self, id: int) -> IFSelect_Dispatch: ... @@ -644,7 +898,9 @@ class IFSelect_WorkSession(Standard_Transient): def EvalSelection(self, sel: IFSelect_Selection) -> Interface_EntityIterator: ... def EvalSplit(self) -> IFSelect_PacketList: ... def EvaluateComplete(self, mode: Optional[int] = 0) -> None: ... - def EvaluateDispatch(self, disp: IFSelect_Dispatch, mode: Optional[int] = 0) -> None: ... + def EvaluateDispatch( + self, disp: IFSelect_Dispatch, mode: Optional[int] = 0 + ) -> None: ... def EvaluateFile(self) -> None: ... def EvaluateSelection(self, sel: IFSelect_Selection) -> None: ... def FileExtension(self) -> TCollection_HAsciiString: ... @@ -660,9 +916,18 @@ class IFSelect_WorkSession(Standard_Transient): @overload def GiveList(self, obj: Standard_Transient) -> TColStd_HSequenceOfTransient: ... @overload - def GiveList(self, first: str, second: Optional[str] = "") -> TColStd_HSequenceOfTransient: ... - def GiveListCombined(self, l1: TColStd_HSequenceOfTransient, l2: TColStd_HSequenceOfTransient, mode: int) -> TColStd_HSequenceOfTransient: ... - def GiveListFromList(self, selname: str, ent: Standard_Transient) -> TColStd_HSequenceOfTransient: ... + def GiveList( + self, first: str, second: Optional[str] = "" + ) -> TColStd_HSequenceOfTransient: ... + def GiveListCombined( + self, + l1: TColStd_HSequenceOfTransient, + l2: TColStd_HSequenceOfTransient, + mode: int, + ) -> TColStd_HSequenceOfTransient: ... + def GiveListFromList( + self, selname: str, ent: Standard_Transient + ) -> TColStd_HSequenceOfTransient: ... def GiveSelection(self, selname: str) -> IFSelect_Selection: ... def Graph(self) -> Interface_Graph: ... def HGraph(self) -> Interface_HGraph: ... @@ -687,7 +952,9 @@ class IFSelect_WorkSession(Standard_Transient): def MaxIdent(self) -> int: ... def MaxSendingCount(self) -> int: ... def Model(self) -> Interface_InterfaceModel: ... - def ModelCheckList(self, complete: Optional[bool] = True) -> Interface_CheckIterator: ... + def ModelCheckList( + self, complete: Optional[bool] = True + ) -> Interface_CheckIterator: ... def ModelCopier(self) -> IFSelect_ModelCopier: ... def ModelModifier(self, id: int) -> IFSelect_Modifier: ... def ModifierRank(self, item: IFSelect_GeneralModifier) -> int: ... @@ -702,19 +969,36 @@ class IFSelect_WorkSession(Standard_Transient): def NbSources(self, sel: IFSelect_Selection) -> int: ... def NbStartingEntities(self) -> int: ... def NewIntParam(self, name: Optional[str] = "") -> IFSelect_IntParam: ... - def NewParamFromStatic(self, statname: str, name: Optional[str] = "") -> Standard_Transient: ... - def NewSelectPointed(self, list: TColStd_HSequenceOfTransient, name: str) -> IFSelect_Selection: ... + def NewParamFromStatic( + self, statname: str, name: Optional[str] = "" + ) -> Standard_Transient: ... + def NewSelectPointed( + self, list: TColStd_HSequenceOfTransient, name: str + ) -> IFSelect_Selection: ... def NewTextParam(self, name: Optional[str] = "") -> TCollection_HAsciiString: ... - def NewTransformStandard(self, copy: bool, name: Optional[str] = "") -> IFSelect_Transformer: ... - def NextIdentForLabel(self, label: str, id: int, mode: Optional[int] = 0) -> int: ... + def NewTransformStandard( + self, copy: bool, name: Optional[str] = "" + ) -> IFSelect_Transformer: ... + def NextIdentForLabel( + self, label: str, id: int, mode: Optional[int] = 0 + ) -> int: ... def NumberFromLabel(self, val: str, afternum: Optional[int] = 0) -> int: ... - def PrintCheckList(self, checklist: Interface_CheckIterator, failsonly: bool, mode: IFSelect_PrintCount) -> str: ... + def PrintCheckList( + self, + checklist: Interface_CheckIterator, + failsonly: bool, + mode: IFSelect_PrintCount, + ) -> str: ... def PrintEntityStatus(self, ent: Standard_Transient) -> str: ... - def PrintSignatureList(self, signlist: IFSelect_SignatureList, mode: IFSelect_PrintCount) -> str: ... + def PrintSignatureList( + self, signlist: IFSelect_SignatureList, mode: IFSelect_PrintCount + ) -> str: ... def Protocol(self) -> Interface_Protocol: ... def QueryCheckList(self, chl: Interface_CheckIterator) -> None: ... def QueryCheckStatus(self, ent: Standard_Transient) -> int: ... - def QueryParent(self, entdad: Standard_Transient, entson: Standard_Transient) -> int: ... + def QueryParent( + self, entdad: Standard_Transient, entson: Standard_Transient + ) -> int: ... def ReadFile(self, filename: str) -> IFSelect_ReturnStatus: ... def ReadStream(self, theName: str, theIStream: str) -> IFSelect_ReturnStatus: ... def RemoveItem(self, item: Standard_Transient) -> bool: ... @@ -723,36 +1007,64 @@ class IFSelect_WorkSession(Standard_Transient): def ResetAppliedModifier(self, modif: IFSelect_GeneralModifier) -> bool: ... def ResetItemSelection(self, item: Standard_Transient) -> bool: ... def RunModifier(self, modif: IFSelect_Modifier, copy: bool) -> int: ... - def RunModifierSelected(self, modif: IFSelect_Modifier, sel: IFSelect_Selection, copy: bool) -> int: ... + def RunModifierSelected( + self, modif: IFSelect_Modifier, sel: IFSelect_Selection, copy: bool + ) -> int: ... def RunTransformer(self, transf: IFSelect_Transformer) -> int: ... def Selection(self, id: int) -> IFSelect_Selection: ... - def SelectionResult(self, sel: IFSelect_Selection) -> TColStd_HSequenceOfTransient: ... - def SelectionResultFromList(self, sel: IFSelect_Selection, list: TColStd_HSequenceOfTransient) -> TColStd_HSequenceOfTransient: ... - def SendAll(self, filename: str, computegraph: Optional[bool] = False) -> IFSelect_ReturnStatus: ... - def SendSelected(self, filename: str, sel: IFSelect_Selection, computegraph: Optional[bool] = False) -> IFSelect_ReturnStatus: ... + def SelectionResult( + self, sel: IFSelect_Selection + ) -> TColStd_HSequenceOfTransient: ... + def SelectionResultFromList( + self, sel: IFSelect_Selection, list: TColStd_HSequenceOfTransient + ) -> TColStd_HSequenceOfTransient: ... + def SendAll( + self, filename: str, computegraph: Optional[bool] = False + ) -> IFSelect_ReturnStatus: ... + def SendSelected( + self, + filename: str, + sel: IFSelect_Selection, + computegraph: Optional[bool] = False, + ) -> IFSelect_ReturnStatus: ... def SendSplit(self) -> bool: ... def SentFiles(self) -> TColStd_HSequenceOfHAsciiString: ... def SentList(self, count: Optional[int] = -1) -> Interface_EntityIterator: ... def SetActive(self, item: Standard_Transient, mode: bool) -> bool: ... - def SetAppliedModifier(self, modif: IFSelect_GeneralModifier, item: Standard_Transient) -> bool: ... - def SetControl(self, sel: IFSelect_Selection, sc: IFSelect_Selection, formain: Optional[bool] = True) -> bool: ... + def SetAppliedModifier( + self, modif: IFSelect_GeneralModifier, item: Standard_Transient + ) -> bool: ... + def SetControl( + self, + sel: IFSelect_Selection, + sc: IFSelect_Selection, + formain: Optional[bool] = True, + ) -> bool: ... def SetDefaultFileRoot(self, name: str) -> bool: ... def SetErrorHandle(self, toHandle: bool) -> None: ... def SetFileExtension(self, name: str) -> None: ... def SetFilePrefix(self, name: str) -> None: ... def SetFileRoot(self, disp: IFSelect_Dispatch, name: str) -> bool: ... - def SetInputSelection(self, sel: IFSelect_Selection, input: IFSelect_Selection) -> bool: ... + def SetInputSelection( + self, sel: IFSelect_Selection, input: IFSelect_Selection + ) -> bool: ... def SetIntValue(self, it: IFSelect_IntParam, val: int) -> bool: ... - def SetItemSelection(self, item: Standard_Transient, sel: IFSelect_Selection) -> bool: ... + def SetItemSelection( + self, item: Standard_Transient, sel: IFSelect_Selection + ) -> bool: ... def SetLibrary(self, theLib: IFSelect_WorkLibrary) -> None: ... def SetLoadedFile(self, theFileName: str) -> None: ... def SetModeStat(self, theMode: bool) -> None: ... - def SetModel(self, model: Interface_InterfaceModel, clearpointed: Optional[bool] = True) -> None: ... + def SetModel( + self, model: Interface_InterfaceModel, clearpointed: Optional[bool] = True + ) -> None: ... def SetModelContent(self, sel: IFSelect_Selection, keep: bool) -> bool: ... def SetModelCopier(self, copier: IFSelect_ModelCopier) -> None: ... def SetProtocol(self, protocol: Interface_Protocol) -> None: ... def SetRemaining(self, mode: IFSelect_RemainMode) -> bool: ... - def SetSelectPointed(self, sel: IFSelect_Selection, list: TColStd_HSequenceOfTransient, mode: int) -> bool: ... + def SetSelectPointed( + self, sel: IFSelect_Selection, list: TColStd_HSequenceOfTransient, mode: int + ) -> bool: ... def SetShareOut(self, shareout: IFSelect_ShareOut) -> None: ... def SetSignType(self, signtype: IFSelect_Signature) -> None: ... def SetTextValue(self, par: TCollection_HAsciiString, val: str) -> bool: ... @@ -763,7 +1075,9 @@ class IFSelect_WorkSession(Standard_Transient): def SignType(self) -> IFSelect_Signature: ... def SignValue(self, sign: IFSelect_Signature, ent: Standard_Transient) -> str: ... def Signature(self, id: int) -> IFSelect_Signature: ... - def Source(self, sel: IFSelect_Selection, num: Optional[int] = 1) -> IFSelect_Selection: ... + def Source( + self, sel: IFSelect_Selection, num: Optional[int] = 1 + ) -> IFSelect_Selection: ... def Sources(self, sel: IFSelect_Selection) -> IFSelect_SelectionIterator: ... def StartingEntity(self, num: int) -> Standard_Transient: ... def StartingNumber(self, ent: Standard_Transient) -> int: ... @@ -774,13 +1088,17 @@ class IFSelect_WorkSession(Standard_Transient): def TraceDumpModel(self, mode: int) -> None: ... def TraceStatics(self, use: int, mode: Optional[int] = 0) -> None: ... def Transformer(self, id: int) -> IFSelect_Transformer: ... - def UsesAppliedModifier(self, modif: IFSelect_GeneralModifier) -> Standard_Transient: ... + def UsesAppliedModifier( + self, modif: IFSelect_GeneralModifier + ) -> Standard_Transient: ... def ValidityName(self, ent: Standard_Transient) -> str: ... def WorkLibrary(self) -> IFSelect_WorkLibrary: ... @overload def WriteFile(self, filename: str) -> IFSelect_ReturnStatus: ... @overload - def WriteFile(self, filename: str, sel: IFSelect_Selection) -> IFSelect_ReturnStatus: ... + def WriteFile( + self, filename: str, sel: IFSelect_Selection + ) -> IFSelect_ReturnStatus: ... class IFSelect_Act(IFSelect_Activator): def __init__(self, name: str, help: str, func: IFSelect_ActFunc) -> None: ... @@ -788,19 +1106,31 @@ class IFSelect_Act(IFSelect_Activator): def AddFSet(name: str, help: str, func: IFSelect_ActFunc) -> None: ... @staticmethod def AddFunc(name: str, help: str, func: IFSelect_ActFunc) -> None: ... - def Do(self, number: int, pilot: IFSelect_SessionPilot) -> IFSelect_ReturnStatus: ... + def Do( + self, number: int, pilot: IFSelect_SessionPilot + ) -> IFSelect_ReturnStatus: ... def Help(self, number: int) -> str: ... @staticmethod def SetGroup(group: str, file: Optional[str] = "") -> None: ... class IFSelect_BasicDumper(IFSelect_SessionDumper): def __init__(self) -> None: ... - def ReadOwn(self, file: IFSelect_SessionFile, type: str, item: Standard_Transient) -> bool: ... - def WriteOwn(self, file: IFSelect_SessionFile, item: Standard_Transient) -> bool: ... + def ReadOwn( + self, file: IFSelect_SessionFile, type: str, item: Standard_Transient + ) -> bool: ... + def WriteOwn( + self, file: IFSelect_SessionFile, item: Standard_Transient + ) -> bool: ... class IFSelect_CheckCounter(IFSelect_SignatureList): def __init__(self, withlist: Optional[bool] = False) -> None: ... - def Analyse(self, list: Interface_CheckIterator, model: Interface_InterfaceModel, original: Optional[bool] = False, failsonly: Optional[bool] = False) -> None: ... + def Analyse( + self, + list: Interface_CheckIterator, + model: Interface_InterfaceModel, + original: Optional[bool] = False, + failsonly: Optional[bool] = False, + ) -> None: ... def SetSignature(self, sign: MoniTool_SignText) -> None: ... def Signature(self) -> MoniTool_SignText: ... @@ -839,19 +1169,45 @@ class IFSelect_DispPerSignature(IFSelect_Dispatch): def SignName(self) -> str: ... class IFSelect_Modifier(IFSelect_GeneralModifier): - def Perform(self, ctx: IFSelect_ContextModif, target: Interface_InterfaceModel, protocol: Interface_Protocol, TC: Interface_CopyTool) -> None: ... + def Perform( + self, + ctx: IFSelect_ContextModif, + target: Interface_InterfaceModel, + protocol: Interface_Protocol, + TC: Interface_CopyTool, + ) -> None: ... class IFSelect_ParamEditor(IFSelect_Editor): - def __init__(self, nbmax: Optional[int] = 100, label: Optional[str] = "") -> None: ... - def AddConstantText(self, val: str, shortname: str, completename: Optional[str] = "") -> None: ... - def AddValue(self, val: Interface_TypedValue, shortname: Optional[str] = "") -> None: ... - def Apply(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def __init__( + self, nbmax: Optional[int] = 100, label: Optional[str] = "" + ) -> None: ... + def AddConstantText( + self, val: str, shortname: str, completename: Optional[str] = "" + ) -> None: ... + def AddValue( + self, val: Interface_TypedValue, shortname: Optional[str] = "" + ) -> None: ... + def Apply( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def Label(self) -> str: ... - def Load(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Load( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def Recognize(self, form: IFSelect_EditForm) -> bool: ... @staticmethod - def StaticEditor(list: TColStd_HSequenceOfHAsciiString, label: Optional[str] = "") -> IFSelect_ParamEditor: ... - def StringValue(self, form: IFSelect_EditForm, num: int) -> TCollection_HAsciiString: ... + def StaticEditor( + list: TColStd_HSequenceOfHAsciiString, label: Optional[str] = "" + ) -> IFSelect_ParamEditor: ... + def StringValue( + self, form: IFSelect_EditForm, num: int + ) -> TCollection_HAsciiString: ... class IFSelect_SelectBase(IFSelect_Selection): def FillIterator(self, iter: IFSelect_SelectionIterator) -> None: ... @@ -891,10 +1247,17 @@ class IFSelect_SessionPilot(IFSelect_Activator): def Command(self, num: int) -> str: ... def CommandLine(self) -> str: ... def CommandPart(self, numarg: Optional[int] = 0) -> str: ... - def Do(self, number: int, session: IFSelect_SessionPilot) -> IFSelect_ReturnStatus: ... + def Do( + self, number: int, session: IFSelect_SessionPilot + ) -> IFSelect_ReturnStatus: ... def Execute(self, command: str) -> IFSelect_ReturnStatus: ... def ExecuteAlias(self, aliasname: str) -> IFSelect_ReturnStatus: ... - def ExecuteCounter(self, counter: IFSelect_SignCounter, numword: int, mode: Optional[IFSelect_PrintCount] = IFSelect_CountByItem) -> IFSelect_ReturnStatus: ... + def ExecuteCounter( + self, + counter: IFSelect_SignCounter, + numword: int, + mode: Optional[IFSelect_PrintCount] = IFSelect_CountByItem, + ) -> IFSelect_ReturnStatus: ... def Help(self, number: int) -> str: ... def Library(self) -> IFSelect_WorkLibrary: ... def NbCommands(self) -> int: ... @@ -915,57 +1278,120 @@ class IFSelect_SessionPilot(IFSelect_Activator): class IFSelect_SignCategory(IFSelect_Signature): def __init__(self) -> None: ... - def Value(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> str: ... + def Value( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> str: ... class IFSelect_SignCounter(IFSelect_SignatureList): @overload - def __init__(self, withmap: Optional[bool] = True, withlist: Optional[bool] = False) -> None: ... + def __init__( + self, withmap: Optional[bool] = True, withlist: Optional[bool] = False + ) -> None: ... @overload - def __init__(self, matcher: IFSelect_Signature, withmap: Optional[bool] = True, withlist: Optional[bool] = False) -> None: ... - def AddEntity(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def __init__( + self, + matcher: IFSelect_Signature, + withmap: Optional[bool] = True, + withlist: Optional[bool] = False, + ) -> None: ... + def AddEntity( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... def AddFromSelection(self, sel: IFSelect_Selection, G: Interface_Graph) -> None: ... - def AddList(self, list: TColStd_HSequenceOfTransient, model: Interface_InterfaceModel) -> None: ... + def AddList( + self, list: TColStd_HSequenceOfTransient, model: Interface_InterfaceModel + ) -> None: ... def AddModel(self, model: Interface_InterfaceModel) -> None: ... - def AddSign(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> None: ... - def AddWithGraph(self, list: TColStd_HSequenceOfTransient, graph: Interface_Graph) -> None: ... - def ComputeSelected(self, G: Interface_Graph, forced: Optional[bool] = False) -> bool: ... + def AddSign( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> None: ... + def AddWithGraph( + self, list: TColStd_HSequenceOfTransient, graph: Interface_Graph + ) -> None: ... + def ComputeSelected( + self, G: Interface_Graph, forced: Optional[bool] = False + ) -> bool: ... def ComputedSign(self, ent: Standard_Transient, G: Interface_Graph) -> str: ... def SelMode(self) -> int: ... def Selection(self) -> IFSelect_Selection: ... def SetMap(self, withmap: bool) -> None: ... def SetSelMode(self, selmode: int) -> None: ... def SetSelection(self, sel: IFSelect_Selection) -> None: ... - def Sign(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> TCollection_HAsciiString: ... + def Sign( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> TCollection_HAsciiString: ... def Signature(self) -> IFSelect_Signature: ... class IFSelect_SignMultiple(IFSelect_Signature): def __init__(self, name: str) -> None: ... - def Add(self, subsign: IFSelect_Signature, width: Optional[int] = 0, maxi: Optional[bool] = False) -> None: ... - def Matches(self, ent: Standard_Transient, model: Interface_InterfaceModel, text: str, exact: bool) -> bool: ... - def Value(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> str: ... + def Add( + self, + subsign: IFSelect_Signature, + width: Optional[int] = 0, + maxi: Optional[bool] = False, + ) -> None: ... + def Matches( + self, + ent: Standard_Transient, + model: Interface_InterfaceModel, + text: str, + exact: bool, + ) -> bool: ... + def Value( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> str: ... class IFSelect_SignType(IFSelect_Signature): def __init__(self, nopk: Optional[bool] = False) -> None: ... - def Value(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> str: ... + def Value( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> str: ... class IFSelect_SignValidity(IFSelect_Signature): def __init__(self) -> None: ... @staticmethod def CVal(ent: Standard_Transient, model: Interface_InterfaceModel) -> str: ... - def Value(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> str: ... + def Value( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> str: ... class IFSelect_TransformStandard(IFSelect_Transformer): def __init__(self) -> None: ... - def AddModifier(self, modif: IFSelect_Modifier, atnum: Optional[int] = 0) -> bool: ... - def ApplyModifiers(self, G: Interface_Graph, protocol: Interface_Protocol, TC: Interface_CopyTool, checks: Interface_CheckIterator, newmod: Interface_InterfaceModel) -> bool: ... - def Copy(self, G: Interface_Graph, TC: Interface_CopyTool, newmod: Interface_InterfaceModel) -> None: ... + def AddModifier( + self, modif: IFSelect_Modifier, atnum: Optional[int] = 0 + ) -> bool: ... + def ApplyModifiers( + self, + G: Interface_Graph, + protocol: Interface_Protocol, + TC: Interface_CopyTool, + checks: Interface_CheckIterator, + newmod: Interface_InterfaceModel, + ) -> bool: ... + def Copy( + self, + G: Interface_Graph, + TC: Interface_CopyTool, + newmod: Interface_InterfaceModel, + ) -> None: ... def CopyOption(self) -> bool: ... def Label(self) -> str: ... def Modifier(self, num: int) -> IFSelect_Modifier: ... def ModifierRank(self, modif: IFSelect_Modifier) -> int: ... def NbModifiers(self) -> int: ... - def OnTheSpot(self, G: Interface_Graph, TC: Interface_CopyTool, newmod: Interface_InterfaceModel) -> None: ... - def Perform(self, G: Interface_Graph, protocol: Interface_Protocol, checks: Interface_CheckIterator, newmod: Interface_InterfaceModel) -> bool: ... + def OnTheSpot( + self, + G: Interface_Graph, + TC: Interface_CopyTool, + newmod: Interface_InterfaceModel, + ) -> None: ... + def Perform( + self, + G: Interface_Graph, + protocol: Interface_Protocol, + checks: Interface_CheckIterator, + newmod: Interface_InterfaceModel, + ) -> bool: ... @overload def RemoveModifier(self, modif: IFSelect_Modifier) -> bool: ... @overload @@ -973,12 +1399,23 @@ class IFSelect_TransformStandard(IFSelect_Transformer): def Selection(self) -> IFSelect_Selection: ... def SetCopyOption(self, option: bool) -> None: ... def SetSelection(self, sel: IFSelect_Selection) -> None: ... - def StandardCopy(self, G: Interface_Graph, TC: Interface_CopyTool, newmod: Interface_InterfaceModel) -> None: ... - def Updated(self, entfrom: Standard_Transient, entto: Standard_Transient) -> bool: ... + def StandardCopy( + self, + G: Interface_Graph, + TC: Interface_CopyTool, + newmod: Interface_InterfaceModel, + ) -> None: ... + def Updated( + self, entfrom: Standard_Transient, entto: Standard_Transient + ) -> bool: ... class IFSelect_GraphCounter(IFSelect_SignCounter): - def __init__(self, withmap: Optional[bool] = True, withlist: Optional[bool] = False) -> None: ... - def AddWithGraph(self, list: TColStd_HSequenceOfTransient, graph: Interface_Graph) -> None: ... + def __init__( + self, withmap: Optional[bool] = True, withlist: Optional[bool] = False + ) -> None: ... + def AddWithGraph( + self, list: TColStd_HSequenceOfTransient, graph: Interface_Graph + ) -> None: ... def Applied(self) -> IFSelect_SelectDeduct: ... def SetApplied(self, sel: IFSelect_SelectDeduct) -> None: ... @@ -986,15 +1423,29 @@ class IFSelect_ModifEditForm(IFSelect_Modifier): def __init__(self, editform: IFSelect_EditForm) -> None: ... def EditForm(self) -> IFSelect_EditForm: ... def Label(self) -> str: ... - def Perform(self, ctx: IFSelect_ContextModif, target: Interface_InterfaceModel, protocol: Interface_Protocol, TC: Interface_CopyTool) -> None: ... + def Perform( + self, + ctx: IFSelect_ContextModif, + target: Interface_InterfaceModel, + protocol: Interface_Protocol, + TC: Interface_CopyTool, + ) -> None: ... class IFSelect_ModifReorder(IFSelect_Modifier): def __init__(self, rootlast: Optional[bool] = True) -> None: ... def Label(self) -> str: ... - def Perform(self, ctx: IFSelect_ContextModif, target: Interface_InterfaceModel, protocol: Interface_Protocol, TC: Interface_CopyTool) -> None: ... + def Perform( + self, + ctx: IFSelect_ContextModif, + target: Interface_InterfaceModel, + protocol: Interface_Protocol, + TC: Interface_CopyTool, + ) -> None: ... class IFSelect_SelectAnyList(IFSelect_SelectDeduct): - def FillResult(self, n1: int, n2: int, ent: Standard_Transient, res: Interface_EntityIterator) -> None: ... + def FillResult( + self, n1: int, n2: int, ent: Standard_Transient, res: Interface_EntityIterator + ) -> None: ... def HasLower(self) -> bool: ... def HasUpper(self) -> bool: ... def KeepInputEntity(self, iter: Interface_EntityIterator) -> None: ... @@ -1006,7 +1457,9 @@ class IFSelect_SelectAnyList(IFSelect_SelectDeduct): def RootResult(self, G: Interface_Graph) -> Interface_EntityIterator: ... def SetFrom(self, rankfrom: IFSelect_IntParam) -> None: ... def SetOne(self, rank: IFSelect_IntParam) -> None: ... - def SetRange(self, rankfrom: IFSelect_IntParam, rankto: IFSelect_IntParam) -> None: ... + def SetRange( + self, rankfrom: IFSelect_IntParam, rankto: IFSelect_IntParam + ) -> None: ... def SetUntil(self, rankto: IFSelect_IntParam) -> None: ... def Upper(self) -> IFSelect_IntParam: ... def UpperValue(self) -> int: ... @@ -1024,7 +1477,13 @@ class IFSelect_SelectEntityNumber(IFSelect_SelectBase): def SetNumber(self, num: IFSelect_IntParam) -> None: ... class IFSelect_SelectExplore(IFSelect_SelectDeduct): - def Explore(self, level: int, ent: Standard_Transient, G: Interface_Graph, explored: Interface_EntityIterator) -> bool: ... + def Explore( + self, + level: int, + ent: Standard_Transient, + G: Interface_Graph, + explored: Interface_EntityIterator, + ) -> bool: ... def ExploreLabel(self) -> str: ... def Label(self) -> str: ... def Level(self) -> int: ... @@ -1036,8 +1495,12 @@ class IFSelect_SelectExtract(IFSelect_SelectDeduct): def Label(self) -> str: ... def RootResult(self, G: Interface_Graph) -> Interface_EntityIterator: ... def SetDirect(self, direct: bool) -> None: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... - def SortInGraph(self, rank: int, ent: Standard_Transient, G: Interface_Graph) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... + def SortInGraph( + self, rank: int, ent: Standard_Transient, G: Interface_Graph + ) -> bool: ... class IFSelect_SelectIntersection(IFSelect_SelectCombine): def __init__(self) -> None: ... @@ -1105,26 +1568,44 @@ class IFSelect_SelectUnion(IFSelect_SelectCombine): class IFSelect_SignAncestor(IFSelect_SignType): def __init__(self, nopk: Optional[bool] = False) -> None: ... - def Matches(self, ent: Standard_Transient, model: Interface_InterfaceModel, text: str, exact: bool) -> bool: ... + def Matches( + self, + ent: Standard_Transient, + model: Interface_InterfaceModel, + text: str, + exact: bool, + ) -> bool: ... class IFSelect_SelectAnyType(IFSelect_SelectExtract): - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... def TypeForMatch(self) -> Standard_Type: ... class IFSelect_SelectErrorEntities(IFSelect_SelectExtract): def __init__(self) -> None: ... def ExtractLabel(self) -> str: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... class IFSelect_SelectFlag(IFSelect_SelectExtract): def __init__(self, flagname: str) -> None: ... def ExtractLabel(self) -> str: ... def FlagName(self) -> str: ... def RootResult(self, G: Interface_Graph) -> Interface_EntityIterator: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... class IFSelect_SelectInList(IFSelect_SelectAnyList): - def FillResult(self, n1: int, n2: int, ent: Standard_Transient, result: Interface_EntityIterator) -> None: ... + def FillResult( + self, + n1: int, + n2: int, + ent: Standard_Transient, + result: Interface_EntityIterator, + ) -> None: ... def ListedEntity(self, num: int, ent: Standard_Transient) -> Standard_Transient: ... class IFSelect_SelectRange(IFSelect_SelectExtract): @@ -1136,9 +1617,13 @@ class IFSelect_SelectRange(IFSelect_SelectExtract): def LowerValue(self) -> int: ... def SetFrom(self, rankfrom: IFSelect_IntParam) -> None: ... def SetOne(self, rank: IFSelect_IntParam) -> None: ... - def SetRange(self, rankfrom: IFSelect_IntParam, rankto: IFSelect_IntParam) -> None: ... + def SetRange( + self, rankfrom: IFSelect_IntParam, rankto: IFSelect_IntParam + ) -> None: ... def SetUntil(self, rankto: IFSelect_IntParam) -> None: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... def Upper(self) -> IFSelect_IntParam: ... def UpperValue(self) -> int: ... @@ -1146,48 +1631,90 @@ class IFSelect_SelectRootComps(IFSelect_SelectExtract): def __init__(self) -> None: ... def ExtractLabel(self) -> str: ... def RootResult(self, G: Interface_Graph) -> Interface_EntityIterator: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... class IFSelect_SelectRoots(IFSelect_SelectExtract): def __init__(self) -> None: ... def ExtractLabel(self) -> str: ... def RootResult(self, G: Interface_Graph) -> Interface_EntityIterator: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... class IFSelect_SelectSent(IFSelect_SelectExtract): - def __init__(self, sentcount: Optional[int] = 1, atleast: Optional[bool] = True) -> None: ... + def __init__( + self, sentcount: Optional[int] = 1, atleast: Optional[bool] = True + ) -> None: ... def AtLeast(self) -> bool: ... def ExtractLabel(self) -> str: ... def RootResult(self, G: Interface_Graph) -> Interface_EntityIterator: ... def SentCount(self) -> int: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... class IFSelect_SelectSignature(IFSelect_SelectExtract): @overload - def __init__(self, matcher: IFSelect_Signature, signtext: str, exact: Optional[bool] = True) -> None: ... + def __init__( + self, matcher: IFSelect_Signature, signtext: str, exact: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, matcher: IFSelect_Signature, signtext: str, exact: Optional[bool] = True) -> None: ... + def __init__( + self, matcher: IFSelect_Signature, signtext: str, exact: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, matcher: IFSelect_SignCounter, signtext: str, exact: Optional[bool] = True) -> None: ... + def __init__( + self, matcher: IFSelect_SignCounter, signtext: str, exact: Optional[bool] = True + ) -> None: ... def Counter(self) -> IFSelect_SignCounter: ... def ExtractLabel(self) -> str: ... def IsExact(self) -> bool: ... def Signature(self) -> IFSelect_Signature: ... def SignatureText(self) -> str: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... - def SortInGraph(self, rank: int, ent: Standard_Transient, G: Interface_Graph) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... + def SortInGraph( + self, rank: int, ent: Standard_Transient, G: Interface_Graph + ) -> bool: ... class IFSelect_SelectSignedShared(IFSelect_SelectExplore): - def __init__(self, matcher: IFSelect_Signature, signtext: str, exact: Optional[bool] = True, level: Optional[int] = 0) -> None: ... - def Explore(self, level: int, ent: Standard_Transient, G: Interface_Graph, explored: Interface_EntityIterator) -> bool: ... + def __init__( + self, + matcher: IFSelect_Signature, + signtext: str, + exact: Optional[bool] = True, + level: Optional[int] = 0, + ) -> None: ... + def Explore( + self, + level: int, + ent: Standard_Transient, + G: Interface_Graph, + explored: Interface_EntityIterator, + ) -> bool: ... def ExploreLabel(self) -> str: ... def IsExact(self) -> bool: ... def Signature(self) -> IFSelect_Signature: ... def SignatureText(self) -> str: ... class IFSelect_SelectSignedSharing(IFSelect_SelectExplore): - def __init__(self, matcher: IFSelect_Signature, signtext: str, exact: Optional[bool] = True, level: Optional[int] = 0) -> None: ... - def Explore(self, level: int, ent: Standard_Transient, G: Interface_Graph, explored: Interface_EntityIterator) -> bool: ... + def __init__( + self, + matcher: IFSelect_Signature, + signtext: str, + exact: Optional[bool] = True, + level: Optional[int] = 0, + ) -> None: ... + def Explore( + self, + level: int, + ent: Standard_Transient, + G: Interface_Graph, + explored: Interface_EntityIterator, + ) -> bool: ... def ExploreLabel(self) -> str: ... def IsExact(self) -> bool: ... def Signature(self) -> IFSelect_Signature: ... @@ -1196,7 +1723,9 @@ class IFSelect_SelectSignedSharing(IFSelect_SelectExplore): class IFSelect_SelectUnknownEntities(IFSelect_SelectExtract): def __init__(self) -> None: ... def ExtractLabel(self) -> str: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... class IFSelect_SelectIncorrectEntities(IFSelect_SelectFlag): def __init__(self) -> None: ... @@ -1221,5 +1750,3 @@ class IFSelect_HSeqOfSelection(IFSelect_TSeqOfSelection, Standard_Transient): def __init__(self, other: IFSelect_TSeqOfSelection) -> None: ... def Sequence(self) -> IFSelect_TSeqOfSelection: ... def Append(self, theSequence: IFSelect_TSeqOfSelection) -> None: ... - - diff --git a/src/SWIG_files/wrapper/IGESCAFControl.pyi b/src/SWIG_files/wrapper/IGESCAFControl.pyi index 30f948305..762aa8db2 100644 --- a/src/SWIG_files/wrapper/IGESCAFControl.pyi +++ b/src/SWIG_files/wrapper/IGESCAFControl.pyi @@ -11,7 +11,6 @@ from OCC.Core.TDocStd import * from OCC.Core.Message import * from OCC.Core.TDF import * - class igescafcontrol: @staticmethod def DecodeColor(col: int) -> Quantity_Color: ... @@ -22,44 +21,83 @@ class IGESCAFControl_Reader(IGESControl_Reader): @overload def __init__(self) -> None: ... @overload - def __init__(self, theWS: XSControl_WorkSession, FromScratch: Optional[bool] = True) -> None: ... + def __init__( + self, theWS: XSControl_WorkSession, FromScratch: Optional[bool] = True + ) -> None: ... def GetColorMode(self) -> bool: ... def GetLayerMode(self) -> bool: ... def GetNameMode(self) -> bool: ... @overload - def Perform(self, theFileName: str, theDoc: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + theFileName: str, + theDoc: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Perform(self, theFileName: str, theDoc: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + theFileName: str, + theDoc: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... def SetColorMode(self, theMode: bool) -> None: ... def SetLayerMode(self, theMode: bool) -> None: ... def SetNameMode(self, theMode: bool) -> None: ... - def Transfer(self, theDoc: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Transfer( + self, + theDoc: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... class IGESCAFControl_Writer(IGESControl_Writer): @overload def __init__(self) -> None: ... @overload - def __init__(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... + def __init__( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... @overload def __init__(self, theWS: XSControl_WorkSession, theUnit: str) -> None: ... def GetColorMode(self) -> bool: ... def GetLayerMode(self) -> bool: ... def GetNameMode(self) -> bool: ... @overload - def Perform(self, doc: TDocStd_Document, filename: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + doc: TDocStd_Document, + filename: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Perform(self, doc: TDocStd_Document, filename: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + doc: TDocStd_Document, + filename: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... def SetColorMode(self, colormode: bool) -> None: ... def SetLayerMode(self, layermode: bool) -> None: ... def SetNameMode(self, namemode: bool) -> None: ... @overload - def Transfer(self, doc: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Transfer( + self, + doc: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Transfer(self, labels: TDF_LabelSequence, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Transfer( + self, + labels: TDF_LabelSequence, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Transfer(self, label: TDF_Label, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Transfer( + self, + label: TDF_Label, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IGESControl.pyi b/src/SWIG_files/wrapper/IGESControl.pyi index 91838cc30..d0e307a1d 100644 --- a/src/SWIG_files/wrapper/IGESControl.pyi +++ b/src/SWIG_files/wrapper/IGESControl.pyi @@ -13,40 +13,59 @@ from OCC.Core.IFSelect import * from OCC.Core.IGESData import * from OCC.Core.DE import * - class IGESControl_ActorWrite(Transfer_ActorOfFinderProcess): def __init__(self) -> None: ... def Recognize(self, start: Transfer_Finder) -> bool: ... - def Transfer(self, start: Transfer_Finder, FP: Transfer_FinderProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... + def Transfer( + self, + start: Transfer_Finder, + FP: Transfer_FinderProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... class IGESControl_AlgoContainer(IGESToBRep_AlgoContainer): def __init__(self) -> None: ... class IGESControl_Controller(XSControl_Controller): def __init__(self, modefnes: Optional[bool] = False) -> None: ... - def ActorRead(self, model: Interface_InterfaceModel) -> Transfer_ActorOfTransientProcess: ... + def ActorRead( + self, model: Interface_InterfaceModel + ) -> Transfer_ActorOfTransientProcess: ... def Customise(self, WS: XSControl_WorkSession) -> None: ... @staticmethod def Init() -> bool: ... def NewModel(self) -> Interface_InterfaceModel: ... - def TransferWriteShape(self, shape: TopoDS_Shape, FP: Transfer_FinderProcess, model: Interface_InterfaceModel, modetrans: Optional[int] = 0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> IFSelect_ReturnStatus: ... + def TransferWriteShape( + self, + shape: TopoDS_Shape, + FP: Transfer_FinderProcess, + model: Interface_InterfaceModel, + modetrans: Optional[int] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... class IGESControl_IGESBoundary(IGESToBRep_IGESBoundary): @overload def __init__(self) -> None: ... @overload def __init__(self, CS: IGESToBRep_CurveAndSurface) -> None: ... - def Check(self, result: bool, checkclosure: bool, okCurve3d: bool, okCurve2d: bool) -> None: ... + def Check( + self, result: bool, checkclosure: bool, okCurve3d: bool, okCurve2d: bool + ) -> None: ... class IGESControl_Reader(XSControl_Reader): @overload def __init__(self) -> None: ... @overload - def __init__(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... + def __init__( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... def GetReadVisible(self) -> bool: ... def IGESModel(self) -> IGESData_IGESModel: ... def NbRootsForTransfer(self) -> int: ... - def PrintTransferInfo(self, failwarn: IFSelect_PrintFail, mode: IFSelect_PrintCount) -> None: ... + def PrintTransferInfo( + self, failwarn: IFSelect_PrintFail, mode: IFSelect_PrintCount + ) -> None: ... def SetReadVisible(self, ReadRoot: bool) -> None: ... class IGESControl_ToolContainer(IGESToBRep_ToolContainer): @@ -59,10 +78,16 @@ class IGESControl_Writer: @overload def __init__(self, theUnit: str, theModecr: Optional[int] = 0) -> None: ... @overload - def __init__(self, theModel: IGESData_IGESModel, theModecr: Optional[int] = 0) -> None: ... + def __init__( + self, theModel: IGESData_IGESModel, theModecr: Optional[int] = 0 + ) -> None: ... def AddEntity(self, ent: IGESData_IGESEntity) -> bool: ... def AddGeom(self, geom: Standard_Transient) -> bool: ... - def AddShape(self, sh: TopoDS_Shape, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def AddShape( + self, + sh: TopoDS_Shape, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... def ComputeModel(self) -> None: ... def GetShapeFixParameters(self) -> False: ... def GetShapeProcessFlags(self) -> False: ... @@ -77,4 +102,3 @@ class IGESControl_Writer: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IGESData.pyi b/src/SWIG_files/wrapper/IGESData.pyi index 705d93c20..8aa181e88 100644 --- a/src/SWIG_files/wrapper/IGESData.pyi +++ b/src/SWIG_files/wrapper/IGESData.pyi @@ -9,7 +9,6 @@ from OCC.Core.gp import * from OCC.Core.TColStd import * from OCC.Core.Message import * - class IGESData_Array1OfDirPart: @overload def __init__(self) -> None: ... @@ -122,7 +121,9 @@ class IGESData_BasicEditor: @overload def __init__(self, protocol: IGESData_Protocol) -> None: ... @overload - def __init__(self, model: IGESData_IGESModel, protocol: IGESData_Protocol) -> None: ... + def __init__( + self, model: IGESData_IGESModel, protocol: IGESData_Protocol + ) -> None: ... def ApplyUnit(self, enforce: Optional[bool] = False) -> None: ... def AutoCorrect(self, ent: IGESData_IGESEntity) -> bool: ... def AutoCorrectModel(self) -> int: ... @@ -172,7 +173,9 @@ class IGESData_DirChecker: def BlankStatusIgnored(self) -> None: ... def BlankStatusRequired(self, val: int) -> None: ... def Check(self, ach: Interface_Check, ent: IGESData_IGESEntity) -> None: ... - def CheckTypeAndForm(self, ach: Interface_Check, ent: IGESData_IGESEntity) -> None: ... + def CheckTypeAndForm( + self, ach: Interface_Check, ent: IGESData_IGESEntity + ) -> None: ... def Color(self, crit: IGESData_DefType) -> None: ... def Correct(self, ent: IGESData_IGESEntity) -> bool: ... def GraphicsIgnored(self, hierarchy: Optional[int] = -1) -> None: ... @@ -190,9 +193,50 @@ class IGESData_DirChecker: class IGESData_DirPart: def __init__(self) -> None: ... - def Init(self, i1: int, i2: int, i3: int, i4: int, i5: int, i6: int, i7: int, i8: int, i9: int, i19: int, i11: int, i12: int, i13: int, i14: int, i15: int, i16: int, i17: int, res1: str, res2: str, label: str, subscript: str) -> None: ... + def Init( + self, + i1: int, + i2: int, + i3: int, + i4: int, + i5: int, + i6: int, + i7: int, + i8: int, + i9: int, + i19: int, + i11: int, + i12: int, + i13: int, + i14: int, + i15: int, + i16: int, + i17: int, + res1: str, + res2: str, + label: str, + subscript: str, + ) -> None: ... def Type(self) -> IGESData_IGESType: ... - def Values(self, res1: str, res2: str, label: str, subscript: str) -> Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]: ... + def Values(self, res1: str, res2: str, label: str, subscript: str) -> Tuple[ + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + ]: ... class IGESData_FileRecognizer(Standard_Transient): def Add(self, reco: IGESData_FileRecognizer) -> None: ... @@ -201,32 +245,84 @@ class IGESData_FileRecognizer(Standard_Transient): class IGESData_GeneralModule(Interface_GeneralModule): def CanCopy(self, CN: int, ent: Standard_Transient) -> bool: ... - def CheckCase(self, CN: int, ent: Standard_Transient, shares: Interface_ShareTool, ach: Interface_Check) -> None: ... - def CopyCase(self, CN: int, entfrom: Standard_Transient, entto: Standard_Transient, TC: Interface_CopyTool) -> None: ... + def CheckCase( + self, + CN: int, + ent: Standard_Transient, + shares: Interface_ShareTool, + ach: Interface_Check, + ) -> None: ... + def CopyCase( + self, + CN: int, + entfrom: Standard_Transient, + entto: Standard_Transient, + TC: Interface_CopyTool, + ) -> None: ... def DirChecker(self, CN: int, ent: IGESData_IGESEntity) -> IGESData_DirChecker: ... - def FillSharedCase(self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator) -> None: ... - def ListImpliedCase(self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator) -> None: ... - def Name(self, CN: int, ent: Standard_Transient, shares: Interface_ShareTool) -> TCollection_HAsciiString: ... + def FillSharedCase( + self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator + ) -> None: ... + def ListImpliedCase( + self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator + ) -> None: ... + def Name( + self, CN: int, ent: Standard_Transient, shares: Interface_ShareTool + ) -> TCollection_HAsciiString: ... def NewVoid(self, CN: int, entto: Standard_Transient) -> bool: ... - def OwnCheckCase(self, CN: int, ent: IGESData_IGESEntity, shares: Interface_ShareTool, ach: Interface_Check) -> None: ... - def OwnCopyCase(self, CN: int, entfrom: IGESData_IGESEntity, entto: IGESData_IGESEntity, TC: Interface_CopyTool) -> None: ... + def OwnCheckCase( + self, + CN: int, + ent: IGESData_IGESEntity, + shares: Interface_ShareTool, + ach: Interface_Check, + ) -> None: ... + def OwnCopyCase( + self, + CN: int, + entfrom: IGESData_IGESEntity, + entto: IGESData_IGESEntity, + TC: Interface_CopyTool, + ) -> None: ... def OwnDeleteCase(self, CN: int, ent: IGESData_IGESEntity) -> None: ... - def OwnImpliedCase(self, CN: int, ent: IGESData_IGESEntity, iter: Interface_EntityIterator) -> None: ... - def OwnRenewCase(self, CN: int, entfrom: IGESData_IGESEntity, entto: IGESData_IGESEntity, TC: Interface_CopyTool) -> None: ... - def OwnSharedCase(self, CN: int, ent: IGESData_IGESEntity, iter: Interface_EntityIterator) -> None: ... - def RenewImpliedCase(self, CN: int, entfrom: Standard_Transient, entto: Standard_Transient, TC: Interface_CopyTool) -> None: ... - def WhenDeleteCase(self, CN: int, ent: Standard_Transient, dispatched: bool) -> None: ... + def OwnImpliedCase( + self, CN: int, ent: IGESData_IGESEntity, iter: Interface_EntityIterator + ) -> None: ... + def OwnRenewCase( + self, + CN: int, + entfrom: IGESData_IGESEntity, + entto: IGESData_IGESEntity, + TC: Interface_CopyTool, + ) -> None: ... + def OwnSharedCase( + self, CN: int, ent: IGESData_IGESEntity, iter: Interface_EntityIterator + ) -> None: ... + def RenewImpliedCase( + self, + CN: int, + entfrom: Standard_Transient, + entto: Standard_Transient, + TC: Interface_CopyTool, + ) -> None: ... + def WhenDeleteCase( + self, CN: int, ent: Standard_Transient, dispatched: bool + ) -> None: ... class IGESData_GlobalNodeOfSpecificLib(Standard_Transient): def __init__(self) -> None: ... - def Add(self, amodule: IGESData_SpecificModule, aprotocol: IGESData_Protocol) -> None: ... + def Add( + self, amodule: IGESData_SpecificModule, aprotocol: IGESData_Protocol + ) -> None: ... def Module(self) -> IGESData_SpecificModule: ... def Next(self) -> IGESData_GlobalNodeOfSpecificLib: ... def Protocol(self) -> IGESData_Protocol: ... class IGESData_GlobalNodeOfWriterLib(Standard_Transient): def __init__(self) -> None: ... - def Add(self, amodule: IGESData_ReadWriteModule, aprotocol: IGESData_Protocol) -> None: ... + def Add( + self, amodule: IGESData_ReadWriteModule, aprotocol: IGESData_Protocol + ) -> None: ... def Module(self) -> IGESData_ReadWriteModule: ... def Next(self) -> IGESData_GlobalNodeOfWriterLib: ... def Protocol(self) -> IGESData_Protocol: ... @@ -261,10 +357,20 @@ class IGESData_GlobalSection: def MaxPower10Single(self) -> int: ... @overload @staticmethod - def NewDateString(year: int, month: int, day: int, hour: int, minut: int, second: int, mode: Optional[int] = -1) -> TCollection_HAsciiString: ... + def NewDateString( + year: int, + month: int, + day: int, + hour: int, + minut: int, + second: int, + mode: Optional[int] = -1, + ) -> TCollection_HAsciiString: ... @overload @staticmethod - def NewDateString(date: TCollection_HAsciiString, mode: Optional[int] = 1) -> TCollection_HAsciiString: ... + def NewDateString( + date: TCollection_HAsciiString, mode: Optional[int] = 1 + ) -> TCollection_HAsciiString: ... def Params(self) -> Interface_ParamSet: ... def ReceiveName(self) -> TCollection_HAsciiString: ... def Resolution(self) -> float: ... @@ -302,14 +408,20 @@ class IGESData_GlobalSection: def SetUnitFlag(self, val: int) -> None: ... def SetUnitName(self, val: TCollection_HAsciiString) -> None: ... def SystemId(self) -> TCollection_HAsciiString: ... - def TranslatedFromHollerith(self, astr: TCollection_HAsciiString) -> TCollection_HAsciiString: ... + def TranslatedFromHollerith( + self, astr: TCollection_HAsciiString + ) -> TCollection_HAsciiString: ... def UnitFlag(self) -> int: ... def UnitName(self) -> TCollection_HAsciiString: ... def UnitValue(self) -> float: ... class IGESData_IGESDumper: - def __init__(self, model: IGESData_IGESModel, protocol: IGESData_Protocol) -> None: ... - def Dump(self, ent: IGESData_IGESEntity, own: int, attached: Optional[int] = -1) -> str: ... + def __init__( + self, model: IGESData_IGESModel, protocol: IGESData_Protocol + ) -> None: ... + def Dump( + self, ent: IGESData_IGESEntity, own: int, attached: Optional[int] = -1 + ) -> str: ... def OwnDump(self, ent: IGESData_IGESEntity, own: int) -> str: ... def PrintDNum(self, ent: IGESData_IGESEntity) -> str: ... def PrintShort(self, ent: IGESData_IGESEntity) -> str: ... @@ -342,10 +454,18 @@ class IGESData_IGESEntity(Standard_Transient): def IGESType(self) -> IGESData_IGESType: ... def InitColor(self, ent: IGESData_ColorEntity, rank: Optional[int] = 0) -> None: ... def InitDirFieldEntity(self, fieldnum: int, ent: IGESData_IGESEntity) -> None: ... - def InitLevel(self, ent: IGESData_LevelListEntity, val: Optional[int] = 0) -> None: ... - def InitLineFont(self, ent: IGESData_LineFontEntity, rank: Optional[int] = 0) -> None: ... - def InitMisc(self, str: IGESData_IGESEntity, lab: IGESData_LabelDisplayEntity, weightnum: int) -> None: ... - def InitStatus(self, blank: int, subordinate: int, useflag: int, hierarchy: int) -> None: ... + def InitLevel( + self, ent: IGESData_LevelListEntity, val: Optional[int] = 0 + ) -> None: ... + def InitLineFont( + self, ent: IGESData_LineFontEntity, rank: Optional[int] = 0 + ) -> None: ... + def InitMisc( + self, str: IGESData_IGESEntity, lab: IGESData_LabelDisplayEntity, weightnum: int + ) -> None: ... + def InitStatus( + self, blank: int, subordinate: int, useflag: int, hierarchy: int + ) -> None: ... def InitTransf(self, ent: IGESData_TransfEntity) -> None: ... def InitView(self, ent: IGESData_ViewKindEntity) -> None: ... def LabelDisplay(self) -> IGESData_LabelDisplayEntity: ... @@ -364,7 +484,9 @@ class IGESData_IGESEntity(Standard_Transient): def RankColor(self) -> int: ... def RankLineFont(self) -> int: ... def RemoveProperty(self, ent: IGESData_IGESEntity) -> None: ... - def SetLabel(self, label: TCollection_HAsciiString, sub: Optional[int] = -1) -> None: ... + def SetLabel( + self, label: TCollection_HAsciiString, sub: Optional[int] = -1 + ) -> None: ... def SetLineWeight(self, defw: float, maxw: float, gradw: int) -> None: ... def ShortLabel(self) -> TCollection_HAsciiString: ... def SingleView(self) -> IGESData_ViewKindEntity: ... @@ -374,7 +496,9 @@ class IGESData_IGESEntity(Standard_Transient): def Transf(self) -> IGESData_TransfEntity: ... def TypeNumber(self) -> int: ... def TypedAssociativity(self, atype: Standard_Type) -> IGESData_IGESEntity: ... - def TypedProperty(self, atype: Standard_Type, anum: Optional[int] = 0) -> IGESData_IGESEntity: ... + def TypedProperty( + self, atype: Standard_Type, anum: Optional[int] = 0 + ) -> IGESData_IGESEntity: ... def UniqueParent(self) -> IGESData_IGESEntity: ... def UseFlag(self) -> int: ... def VectorLocation(self) -> gp_GTrsf: ... @@ -401,7 +525,9 @@ class IGESData_IGESModel(Interface_InterfaceModel): def PrintToLog(self, ent: Standard_Transient) -> str: ... def SetGlobalSection(self, header: IGESData_GlobalSection) -> None: ... def SetLineWeights(self, defw: float) -> None: ... - def SetStartSection(self, list: TColStd_HSequenceOfHAsciiString, copy: Optional[bool] = True) -> None: ... + def SetStartSection( + self, list: TColStd_HSequenceOfHAsciiString, copy: Optional[bool] = True + ) -> None: ... def StartLine(self, num: int) -> str: ... def StartSection(self) -> TColStd_HSequenceOfHAsciiString: ... def StringLabel(self, ent: Standard_Transient) -> TCollection_HAsciiString: ... @@ -414,28 +540,97 @@ class IGESData_IGESReaderData(Interface_FileReaderData): def DefaultLineWeight(self) -> float: ... def DirPart(self, num: int) -> IGESData_DirPart: ... def DirType(self, num: int) -> IGESData_IGESType: ... - def DirValues(self, num: int, res1: str, res2: str, label: str, subs: str) -> Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]: ... + def DirValues(self, num: int, res1: str, res2: str, label: str, subs: str) -> Tuple[ + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + ]: ... def FindNextRecord(self, num: int) -> int: ... def GlobalCheck(self) -> Interface_Check: ... def GlobalSection(self) -> IGESData_GlobalSection: ... def NbEntities(self) -> int: ... def SetDefaultLineWeight(self, defw: float) -> None: ... - def SetDirPart(self, num: int, i1: int, i2: int, i3: int, i4: int, i5: int, i6: int, i7: int, i8: int, i9: int, i10: int, i11: int, i12: int, i13: int, i14: int, i15: int, i16: int, i17: int, res1: str, res2: str, label: str, subs: str) -> None: ... + def SetDirPart( + self, + num: int, + i1: int, + i2: int, + i3: int, + i4: int, + i5: int, + i6: int, + i7: int, + i8: int, + i9: int, + i10: int, + i11: int, + i12: int, + i13: int, + i14: int, + i15: int, + i16: int, + i17: int, + res1: str, + res2: str, + label: str, + subs: str, + ) -> None: ... def SetEntityNumbers(self) -> None: ... def SetGlobalSection(self) -> None: ... def StartSection(self) -> TColStd_HSequenceOfHAsciiString: ... class IGESData_IGESReaderTool(Interface_FileReaderTool): - def __init__(self, reader: IGESData_IGESReaderData, protocol: IGESData_Protocol) -> None: ... - def AnalyseRecord(self, num: int, anent: Standard_Transient, acheck: Interface_Check) -> bool: ... + def __init__( + self, reader: IGESData_IGESReaderData, protocol: IGESData_Protocol + ) -> None: ... + def AnalyseRecord( + self, num: int, anent: Standard_Transient, acheck: Interface_Check + ) -> bool: ... def BeginRead(self, amodel: Interface_InterfaceModel) -> None: ... def EndRead(self, amodel: Interface_InterfaceModel) -> None: ... def Prepare(self, reco: IGESData_FileRecognizer) -> None: ... - def ReadAssocs(self, ent: IGESData_IGESEntity, IR: IGESData_IGESReaderData, PR: IGESData_ParamReader) -> None: ... - def ReadDir(self, ent: IGESData_IGESEntity, IR: IGESData_IGESReaderData, DP: IGESData_DirPart, ach: Interface_Check) -> None: ... - def ReadOwnParams(self, ent: IGESData_IGESEntity, IR: IGESData_IGESReaderData, PR: IGESData_ParamReader) -> None: ... - def ReadProps(self, ent: IGESData_IGESEntity, IR: IGESData_IGESReaderData, PR: IGESData_ParamReader) -> None: ... - def Recognize(self, num: int, ach: Interface_Check, ent: Standard_Transient) -> bool: ... + def ReadAssocs( + self, + ent: IGESData_IGESEntity, + IR: IGESData_IGESReaderData, + PR: IGESData_ParamReader, + ) -> None: ... + def ReadDir( + self, + ent: IGESData_IGESEntity, + IR: IGESData_IGESReaderData, + DP: IGESData_DirPart, + ach: Interface_Check, + ) -> None: ... + def ReadOwnParams( + self, + ent: IGESData_IGESEntity, + IR: IGESData_IGESReaderData, + PR: IGESData_ParamReader, + ) -> None: ... + def ReadProps( + self, + ent: IGESData_IGESEntity, + IR: IGESData_IGESReaderData, + PR: IGESData_ParamReader, + ) -> None: ... + def Recognize( + self, num: int, ach: Interface_Check, ent: Standard_Transient + ) -> bool: ... class IGESData_IGESType: @overload @@ -507,15 +702,26 @@ class IGESData_ParamCursor: def TermSize(self) -> int: ... class IGESData_ParamReader: - def __init__(self, list: Interface_ParamList, ach: Interface_Check, base: Optional[int] = 1, nbpar: Optional[int] = 0, num: Optional[int] = 0) -> None: ... + def __init__( + self, + list: Interface_ParamList, + ach: Interface_Check, + base: Optional[int] = 1, + nbpar: Optional[int] = 0, + num: Optional[int] = 0, + ) -> None: ... @overload def AddFail(self, afail: str, bfail: Optional[str] = "") -> None: ... @overload - def AddFail(self, af: TCollection_HAsciiString, bf: TCollection_HAsciiString) -> None: ... + def AddFail( + self, af: TCollection_HAsciiString, bf: TCollection_HAsciiString + ) -> None: ... @overload def AddWarning(self, awarn: str, bwarn: Optional[str] = "") -> None: ... @overload - def AddWarning(self, aw: TCollection_HAsciiString, bw: TCollection_HAsciiString) -> None: ... + def AddWarning( + self, aw: TCollection_HAsciiString, bw: TCollection_HAsciiString + ) -> None: ... def CCheck(self) -> Interface_Check: ... def Check(self) -> Interface_Check: ... def Clear(self) -> None: ... @@ -532,52 +738,128 @@ class IGESData_ParamReader: def Mend(self, pref: Optional[str] = "") -> None: ... def NbParams(self) -> int: ... def NextStage(self) -> None: ... - def ParamEntity(self, IR: IGESData_IGESReaderData, num: int) -> IGESData_IGESEntity: ... + def ParamEntity( + self, IR: IGESData_IGESReaderData, num: int + ) -> IGESData_IGESEntity: ... def ParamNumber(self, num: int) -> int: ... def ParamType(self, num: int) -> Interface_ParamType: ... def ParamValue(self, num: int) -> str: ... @overload - def ReadBoolean(self, PC: IGESData_ParamCursor, amsg: Message_Msg, exact: Optional[bool] = True) -> Tuple[bool, bool]: ... + def ReadBoolean( + self, PC: IGESData_ParamCursor, amsg: Message_Msg, exact: Optional[bool] = True + ) -> Tuple[bool, bool]: ... @overload - def ReadBoolean(self, PC: IGESData_ParamCursor, mess: str, exact: Optional[bool] = True) -> Tuple[bool, bool]: ... + def ReadBoolean( + self, PC: IGESData_ParamCursor, mess: str, exact: Optional[bool] = True + ) -> Tuple[bool, bool]: ... @overload - def ReadEntList(self, IR: IGESData_IGESReaderData, PC: IGESData_ParamCursor, amsg: Message_Msg, val: Interface_EntityList, ord: Optional[bool] = True) -> bool: ... + def ReadEntList( + self, + IR: IGESData_IGESReaderData, + PC: IGESData_ParamCursor, + amsg: Message_Msg, + val: Interface_EntityList, + ord: Optional[bool] = True, + ) -> bool: ... @overload - def ReadEntList(self, IR: IGESData_IGESReaderData, PC: IGESData_ParamCursor, mess: str, val: Interface_EntityList, ord: Optional[bool] = True) -> bool: ... + def ReadEntList( + self, + IR: IGESData_IGESReaderData, + PC: IGESData_ParamCursor, + mess: str, + val: Interface_EntityList, + ord: Optional[bool] = True, + ) -> bool: ... @overload - def ReadEnts(self, IR: IGESData_IGESReaderData, PC: IGESData_ParamCursor, amsg: Message_Msg, val: IGESData_HArray1OfIGESEntity, index: Optional[int] = 1) -> bool: ... + def ReadEnts( + self, + IR: IGESData_IGESReaderData, + PC: IGESData_ParamCursor, + amsg: Message_Msg, + val: IGESData_HArray1OfIGESEntity, + index: Optional[int] = 1, + ) -> bool: ... @overload - def ReadEnts(self, IR: IGESData_IGESReaderData, PC: IGESData_ParamCursor, mess: str, val: IGESData_HArray1OfIGESEntity, index: Optional[int] = 1) -> bool: ... + def ReadEnts( + self, + IR: IGESData_IGESReaderData, + PC: IGESData_ParamCursor, + mess: str, + val: IGESData_HArray1OfIGESEntity, + index: Optional[int] = 1, + ) -> bool: ... @overload def ReadInteger(self, PC: IGESData_ParamCursor) -> Tuple[bool, int]: ... @overload def ReadInteger(self, PC: IGESData_ParamCursor, mess: str) -> Tuple[bool, int]: ... @overload - def ReadInts(self, PC: IGESData_ParamCursor, amsg: Message_Msg, val: TColStd_HArray1OfInteger, index: Optional[int] = 1) -> bool: ... + def ReadInts( + self, + PC: IGESData_ParamCursor, + amsg: Message_Msg, + val: TColStd_HArray1OfInteger, + index: Optional[int] = 1, + ) -> bool: ... @overload - def ReadInts(self, PC: IGESData_ParamCursor, mess: str, val: TColStd_HArray1OfInteger, index: Optional[int] = 1) -> bool: ... + def ReadInts( + self, + PC: IGESData_ParamCursor, + mess: str, + val: TColStd_HArray1OfInteger, + index: Optional[int] = 1, + ) -> bool: ... @overload def ReadReal(self, PC: IGESData_ParamCursor) -> Tuple[bool, float]: ... @overload def ReadReal(self, PC: IGESData_ParamCursor, mess: str) -> Tuple[bool, float]: ... @overload - def ReadReals(self, PC: IGESData_ParamCursor, amsg: Message_Msg, val: TColStd_HArray1OfReal, index: Optional[int] = 1) -> bool: ... + def ReadReals( + self, + PC: IGESData_ParamCursor, + amsg: Message_Msg, + val: TColStd_HArray1OfReal, + index: Optional[int] = 1, + ) -> bool: ... @overload - def ReadReals(self, PC: IGESData_ParamCursor, mess: str, val: TColStd_HArray1OfReal, index: Optional[int] = 1) -> bool: ... + def ReadReals( + self, + PC: IGESData_ParamCursor, + mess: str, + val: TColStd_HArray1OfReal, + index: Optional[int] = 1, + ) -> bool: ... @overload - def ReadText(self, thePC: IGESData_ParamCursor, theMsg: Message_Msg) -> Tuple[bool, str]: ... + def ReadText( + self, thePC: IGESData_ParamCursor, theMsg: Message_Msg + ) -> Tuple[bool, str]: ... @overload def ReadText(self, PC: IGESData_ParamCursor, mess: str) -> Tuple[bool, str]: ... @overload - def ReadTexts(self, PC: IGESData_ParamCursor, amsg: Message_Msg, val: Interface_HArray1OfHAsciiString, index: Optional[int] = 1) -> bool: ... + def ReadTexts( + self, + PC: IGESData_ParamCursor, + amsg: Message_Msg, + val: Interface_HArray1OfHAsciiString, + index: Optional[int] = 1, + ) -> bool: ... @overload - def ReadTexts(self, PC: IGESData_ParamCursor, mess: str, val: Interface_HArray1OfHAsciiString, index: Optional[int] = 1) -> bool: ... + def ReadTexts( + self, + PC: IGESData_ParamCursor, + mess: str, + val: Interface_HArray1OfHAsciiString, + index: Optional[int] = 1, + ) -> bool: ... @overload - def ReadXY(self, PC: IGESData_ParamCursor, amsg: Message_Msg, val: gp_XY) -> bool: ... + def ReadXY( + self, PC: IGESData_ParamCursor, amsg: Message_Msg, val: gp_XY + ) -> bool: ... @overload def ReadXY(self, PC: IGESData_ParamCursor, mess: str, val: gp_XY) -> bool: ... @overload - def ReadXYZ(self, PC: IGESData_ParamCursor, amsg: Message_Msg, val: gp_XYZ) -> bool: ... + def ReadXYZ( + self, PC: IGESData_ParamCursor, amsg: Message_Msg, val: gp_XYZ + ) -> bool: ... @overload def ReadXYZ(self, PC: IGESData_ParamCursor, mess: str, val: gp_XYZ) -> bool: ... @overload @@ -606,9 +888,24 @@ class IGESData_Protocol(Interface_Protocol): class IGESData_ReadWriteModule(Interface_ReaderModule): def CaseIGES(self, typenum: int, formnum: int) -> int: ... def CaseNum(self, data: Interface_FileReaderData, num: int) -> int: ... - def Read(self, CN: int, data: Interface_FileReaderData, num: int, ach: Interface_Check, ent: Standard_Transient) -> None: ... - def ReadOwnParams(self, CN: int, ent: IGESData_IGESEntity, IR: IGESData_IGESReaderData, PR: IGESData_ParamReader) -> None: ... - def WriteOwnParams(self, CN: int, ent: IGESData_IGESEntity, IW: IGESData_IGESWriter) -> None: ... + def Read( + self, + CN: int, + data: Interface_FileReaderData, + num: int, + ach: Interface_Check, + ent: Standard_Transient, + ) -> None: ... + def ReadOwnParams( + self, + CN: int, + ent: IGESData_IGESEntity, + IR: IGESData_IGESReaderData, + PR: IGESData_ParamReader, + ) -> None: ... + def WriteOwnParams( + self, CN: int, ent: IGESData_IGESEntity, IW: IGESData_IGESWriter + ) -> None: ... class IGESData_SpecificLib: @overload @@ -621,21 +918,31 @@ class IGESData_SpecificLib: def More(self) -> bool: ... def Next(self) -> None: ... def Protocol(self) -> IGESData_Protocol: ... - def Select(self, obj: IGESData_IGESEntity, module: IGESData_SpecificModule) -> Tuple[bool, int]: ... + def Select( + self, obj: IGESData_IGESEntity, module: IGESData_SpecificModule + ) -> Tuple[bool, int]: ... def SetComplete(self) -> None: ... @staticmethod - def SetGlobal(amodule: IGESData_SpecificModule, aprotocol: IGESData_Protocol) -> None: ... + def SetGlobal( + amodule: IGESData_SpecificModule, aprotocol: IGESData_Protocol + ) -> None: ... def Start(self) -> None: ... class IGESData_SpecificModule(Standard_Transient): def OwnCorrect(self, CN: int, ent: IGESData_IGESEntity) -> bool: ... - def OwnDump(self, CN: int, ent: IGESData_IGESEntity, dumper: IGESData_IGESDumper, own: int) -> str: ... + def OwnDump( + self, CN: int, ent: IGESData_IGESEntity, dumper: IGESData_IGESDumper, own: int + ) -> str: ... class IGESData_ToolLocation(Standard_Transient): - def __init__(self, amodel: IGESData_IGESModel, protocol: IGESData_Protocol) -> None: ... + def __init__( + self, amodel: IGESData_IGESModel, protocol: IGESData_Protocol + ) -> None: ... def AnalyseLocation(self, loc: gp_GTrsf, result: gp_Trsf) -> bool: ... @staticmethod - def ConvertLocation(prec: float, loc: gp_GTrsf, result: gp_Trsf, uni: Optional[float] = 1) -> bool: ... + def ConvertLocation( + prec: float, loc: gp_GTrsf, result: gp_Trsf, uni: Optional[float] = 1 + ) -> bool: ... def EffectiveLocation(self, ent: IGESData_IGESEntity) -> gp_GTrsf: ... def ExplicitLocation(self, ent: IGESData_IGESEntity) -> gp_GTrsf: ... def HasParent(self, ent: IGESData_IGESEntity) -> bool: ... @@ -649,9 +956,13 @@ class IGESData_ToolLocation(Standard_Transient): def ParentLocation(self, ent: IGESData_IGESEntity) -> gp_GTrsf: ... def ResetDependences(self, child: IGESData_IGESEntity) -> None: ... def SetOwnAsDependent(self, ent: IGESData_IGESEntity) -> None: ... - def SetParentAssoc(self, parent: IGESData_IGESEntity, child: IGESData_IGESEntity) -> None: ... + def SetParentAssoc( + self, parent: IGESData_IGESEntity, child: IGESData_IGESEntity + ) -> None: ... def SetPrecision(self, prec: float) -> None: ... - def SetReference(self, parent: IGESData_IGESEntity, child: IGESData_IGESEntity) -> None: ... + def SetReference( + self, parent: IGESData_IGESEntity, child: IGESData_IGESEntity + ) -> None: ... class IGESData_WriterLib: @overload @@ -664,10 +975,14 @@ class IGESData_WriterLib: def More(self) -> bool: ... def Next(self) -> None: ... def Protocol(self) -> IGESData_Protocol: ... - def Select(self, obj: IGESData_IGESEntity, module: IGESData_ReadWriteModule) -> Tuple[bool, int]: ... + def Select( + self, obj: IGESData_IGESEntity, module: IGESData_ReadWriteModule + ) -> Tuple[bool, int]: ... def SetComplete(self) -> None: ... @staticmethod - def SetGlobal(amodule: IGESData_ReadWriteModule, aprotocol: IGESData_Protocol) -> None: ... + def SetGlobal( + amodule: IGESData_ReadWriteModule, aprotocol: IGESData_Protocol + ) -> None: ... def Start(self) -> None: ... class IGESData_ColorEntity(IGESData_IGESEntity): @@ -677,13 +992,29 @@ class IGESData_DefaultGeneral(IGESData_GeneralModule): def __init__(self) -> None: ... def DirChecker(self, CN: int, ent: IGESData_IGESEntity) -> IGESData_DirChecker: ... def NewVoid(self, CN: int, entto: Standard_Transient) -> bool: ... - def OwnCheckCase(self, CN: int, ent: IGESData_IGESEntity, shares: Interface_ShareTool, ach: Interface_Check) -> None: ... - def OwnCopyCase(self, CN: int, entfrom: IGESData_IGESEntity, entto: IGESData_IGESEntity, TC: Interface_CopyTool) -> None: ... - def OwnSharedCase(self, CN: int, ent: IGESData_IGESEntity, iter: Interface_EntityIterator) -> None: ... + def OwnCheckCase( + self, + CN: int, + ent: IGESData_IGESEntity, + shares: Interface_ShareTool, + ach: Interface_Check, + ) -> None: ... + def OwnCopyCase( + self, + CN: int, + entfrom: IGESData_IGESEntity, + entto: IGESData_IGESEntity, + TC: Interface_CopyTool, + ) -> None: ... + def OwnSharedCase( + self, CN: int, ent: IGESData_IGESEntity, iter: Interface_EntityIterator + ) -> None: ... class IGESData_DefaultSpecific(IGESData_SpecificModule): def __init__(self) -> None: ... - def OwnDump(self, CN: int, ent: IGESData_IGESEntity, dumper: IGESData_IGESDumper, own: int) -> str: ... + def OwnDump( + self, CN: int, ent: IGESData_IGESEntity, dumper: IGESData_IGESDumper, own: int + ) -> str: ... class IGESData_FileProtocol(IGESData_Protocol): def __init__(self) -> None: ... @@ -723,8 +1054,12 @@ class IGESData_UndefinedEntity(IGESData_IGESEntity): def DirStatus(self) -> int: ... def HasSubScriptNumber(self) -> bool: ... def IsOKDirPart(self) -> bool: ... - def ReadDir(self, IR: IGESData_IGESReaderData, DP: IGESData_DirPart, ach: Interface_Check) -> bool: ... - def ReadOwnParams(self, IR: IGESData_IGESReaderData, PR: IGESData_ParamReader) -> None: ... + def ReadDir( + self, IR: IGESData_IGESReaderData, DP: IGESData_DirPart, ach: Interface_Check + ) -> bool: ... + def ReadOwnParams( + self, IR: IGESData_IGESReaderData, PR: IGESData_ParamReader + ) -> None: ... def SetNewContent(self, cont: Interface_UndefinedContent) -> None: ... def SetOKDirPart(self) -> None: ... def UndefinedContent(self) -> Interface_UndefinedContent: ... @@ -738,9 +1073,16 @@ class IGESData_ViewKindEntity(IGESData_IGESEntity): class IGESData_FreeFormatEntity(IGESData_UndefinedEntity): def __init__(self) -> None: ... def AddEntities(self, ents: IGESData_HArray1OfIGESEntity) -> None: ... - def AddEntity(self, ptype: Interface_ParamType, ent: IGESData_IGESEntity, negative: Optional[bool] = False) -> None: ... + def AddEntity( + self, + ptype: Interface_ParamType, + ent: IGESData_IGESEntity, + negative: Optional[bool] = False, + ) -> None: ... @overload - def AddLiteral(self, ptype: Interface_ParamType, val: TCollection_HAsciiString) -> None: ... + def AddLiteral( + self, ptype: Interface_ParamType, val: TCollection_HAsciiString + ) -> None: ... @overload def AddLiteral(self, ptype: Interface_ParamType, val: str) -> None: ... def AddNegativePointers(self, list: TColStd_HSequenceOfInteger) -> None: ... @@ -749,7 +1091,9 @@ class IGESData_FreeFormatEntity(IGESData_UndefinedEntity): def IsParamEntity(self, num: int) -> bool: ... def NbParams(self) -> int: ... def NegativePointers(self) -> TColStd_HSequenceOfInteger: ... - def ParamData(self, num: int, ptype: Interface_ParamType, ent: IGESData_IGESEntity) -> Tuple[bool, str]: ... + def ParamData( + self, num: int, ptype: Interface_ParamType, ent: IGESData_IGESEntity + ) -> Tuple[bool, str]: ... def ParamEntity(self, num: int) -> IGESData_IGESEntity: ... def ParamType(self, num: int) -> Interface_ParamType: ... def ParamValue(self, num: int) -> TCollection_HAsciiString: ... @@ -765,4 +1109,3 @@ class IGESData_HArray1OfIGESEntity(IGESData_Array1OfIGESEntity, Standard_Transie # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IGESToBRep.pyi b/src/SWIG_files/wrapper/IGESToBRep.pyi index c788339b5..146a4bb03 100644 --- a/src/SWIG_files/wrapper/IGESToBRep.pyi +++ b/src/SWIG_files/wrapper/IGESToBRep.pyi @@ -15,12 +15,13 @@ from OCC.Core.ShapeExtend import * from OCC.Core.DE import * from OCC.Core.Geom2d import * - class igestobrep: @staticmethod def AlgoContainer() -> IGESToBRep_AlgoContainer: ... @staticmethod - def IGESCurveToSequenceOfIGESCurve(curve: IGESData_IGESEntity, sequence: TColStd_HSequenceOfTransient) -> int: ... + def IGESCurveToSequenceOfIGESCurve( + curve: IGESData_IGESEntity, sequence: TColStd_HSequenceOfTransient + ) -> int: ... @staticmethod def Init() -> None: ... @staticmethod @@ -38,7 +39,9 @@ class igestobrep: @staticmethod def SetAlgoContainer(aContainer: IGESToBRep_AlgoContainer) -> None: ... @staticmethod - def TransferPCurve(fromedge: TopoDS_Edge, toedge: TopoDS_Edge, face: TopoDS_Face) -> bool: ... + def TransferPCurve( + fromedge: TopoDS_Edge, toedge: TopoDS_Edge, face: TopoDS_Face + ) -> bool: ... class IGESToBRep_Actor(Transfer_ActorOfTransientProcess): def __init__(self) -> None: ... @@ -46,7 +49,12 @@ class IGESToBRep_Actor(Transfer_ActorOfTransientProcess): def Recognize(self, start: Standard_Transient) -> bool: ... def SetContinuity(self, continuity: Optional[int] = 0) -> None: ... def SetModel(self, model: Interface_InterfaceModel) -> None: ... - def Transfer(self, start: Standard_Transient, TP: Transfer_TransientProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... + def Transfer( + self, + start: Standard_Transient, + TP: Transfer_TransientProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... def UsedTolerance(self) -> float: ... class IGESToBRep_AlgoContainer(Standard_Transient): @@ -58,8 +66,18 @@ class IGESToBRep_CurveAndSurface: @overload def __init__(self) -> None: ... @overload - def __init__(self, eps: float, epsGeom: float, epsCoeff: float, mode: bool, modeapprox: bool, optimized: bool) -> None: ... - def AddShapeResult(self, start: IGESData_IGESEntity, result: TopoDS_Shape) -> None: ... + def __init__( + self, + eps: float, + epsGeom: float, + epsCoeff: float, + mode: bool, + modeapprox: bool, + optimized: bool, + ) -> None: ... + def AddShapeResult( + self, start: IGESData_IGESEntity, result: TopoDS_Shape + ) -> None: ... def GetContinuity(self) -> int: ... def GetEpsCoeff(self) -> float: ... def GetEpsGeom(self) -> float: ... @@ -94,13 +112,23 @@ class IGESToBRep_CurveAndSurface: def SetModeTransfer(self, mode: bool) -> None: ... def SetModel(self, model: IGESData_IGESModel) -> None: ... def SetOptimized(self, optimized: bool) -> None: ... - def SetShapeResult(self, start: IGESData_IGESEntity, result: TopoDS_Shape) -> None: ... + def SetShapeResult( + self, start: IGESData_IGESEntity, result: TopoDS_Shape + ) -> None: ... def SetSurface(self, theSurface: Geom_Surface) -> None: ... def SetSurfaceCurve(self, ival: int) -> None: ... def SetTransferProcess(self, TP: Transfer_TransientProcess) -> None: ... def Surface(self) -> Geom_Surface: ... - def TransferCurveAndSurface(self, start: IGESData_IGESEntity, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> TopoDS_Shape: ... - def TransferGeometry(self, start: IGESData_IGESEntity, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> TopoDS_Shape: ... + def TransferCurveAndSurface( + self, + start: IGESData_IGESEntity, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> TopoDS_Shape: ... + def TransferGeometry( + self, + start: IGESData_IGESEntity, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> TopoDS_Shape: ... def UpdateMinMaxTol(self) -> None: ... class IGESToBRep_IGESBoundary(Standard_Transient): @@ -108,12 +136,35 @@ class IGESToBRep_IGESBoundary(Standard_Transient): def __init__(self) -> None: ... @overload def __init__(self, CS: IGESToBRep_CurveAndSurface) -> None: ... - def Check(self, result: bool, checkclosure: bool, okCurve3d: bool, okCurve2d: bool) -> None: ... - def Init(self, CS: IGESToBRep_CurveAndSurface, entity: IGESData_IGESEntity, face: TopoDS_Face, trans: gp_Trsf2d, uFact: float, filepreference: int) -> None: ... + def Check( + self, result: bool, checkclosure: bool, okCurve3d: bool, okCurve2d: bool + ) -> None: ... + def Init( + self, + CS: IGESToBRep_CurveAndSurface, + entity: IGESData_IGESEntity, + face: TopoDS_Face, + trans: gp_Trsf2d, + uFact: float, + filepreference: int, + ) -> None: ... @overload - def Transfer(self, curve3d: IGESData_IGESEntity, toreverse3d: bool, curves2d: IGESData_HArray1OfIGESEntity, number: int) -> Tuple[bool, bool, bool, bool]: ... + def Transfer( + self, + curve3d: IGESData_IGESEntity, + toreverse3d: bool, + curves2d: IGESData_HArray1OfIGESEntity, + number: int, + ) -> Tuple[bool, bool, bool, bool]: ... @overload - def Transfer(self, curve3d: ShapeExtend_WireData, curves2d: IGESData_HArray1OfIGESEntity, toreverse2d: bool, number: int, lsewd: ShapeExtend_WireData) -> Tuple[bool, bool, bool, bool]: ... + def Transfer( + self, + curve3d: ShapeExtend_WireData, + curves2d: IGESData_HArray1OfIGESEntity, + toreverse2d: bool, + number: int, + lsewd: ShapeExtend_WireData, + ) -> Tuple[bool, bool, bool, bool]: ... def WireData(self) -> ShapeExtend_WireData: ... def WireData2d(self) -> ShapeExtend_WireData: ... def WireData3d(self) -> ShapeExtend_WireData: ... @@ -133,8 +184,16 @@ class IGESToBRep_Reader: def SetModel(self, model: IGESData_IGESModel) -> None: ... def SetTransientProcess(self, TP: Transfer_TransientProcess) -> None: ... def Shape(self, num: Optional[int] = 1) -> TopoDS_Shape: ... - def Transfer(self, num: int, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... - def TransferRoots(self, onlyvisible: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Transfer( + self, + num: int, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def TransferRoots( + self, + onlyvisible: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def TransientProcess(self) -> Transfer_TransientProcess: ... def UsedTolerance(self) -> float: ... @@ -148,8 +207,20 @@ class IGESToBRep_BRepEntity(IGESToBRep_CurveAndSurface): @overload def __init__(self, CS: IGESToBRep_CurveAndSurface) -> None: ... @overload - def __init__(self, eps: float, epsGeom: float, epsCoeff: float, mode: bool, modeapprox: bool, optimized: bool) -> None: ... - def TransferBRepEntity(self, start: IGESData_IGESEntity, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> TopoDS_Shape: ... + def __init__( + self, + eps: float, + epsGeom: float, + epsCoeff: float, + mode: bool, + modeapprox: bool, + optimized: bool, + ) -> None: ... + def TransferBRepEntity( + self, + start: IGESData_IGESEntity, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> TopoDS_Shape: ... class IGESToBRep_BasicCurve(IGESToBRep_CurveAndSurface): @overload @@ -157,7 +228,15 @@ class IGESToBRep_BasicCurve(IGESToBRep_CurveAndSurface): @overload def __init__(self, CS: IGESToBRep_CurveAndSurface) -> None: ... @overload - def __init__(self, eps: float, epsGeom: float, epsCoeff: float, mode: bool, modeapprox: bool, optimized: bool) -> None: ... + def __init__( + self, + eps: float, + epsGeom: float, + epsCoeff: float, + mode: bool, + modeapprox: bool, + optimized: bool, + ) -> None: ... def Transfer2dBasicCurve(self, start: IGESData_IGESEntity) -> Geom2d_Curve: ... def TransferBasicCurve(self, start: IGESData_IGESEntity) -> Geom_Curve: ... @@ -167,7 +246,15 @@ class IGESToBRep_BasicSurface(IGESToBRep_CurveAndSurface): @overload def __init__(self, CS: IGESToBRep_CurveAndSurface) -> None: ... @overload - def __init__(self, eps: float, epsGeom: float, epsCoeff: float, mode: bool, modeapprox: bool, optimized: bool) -> None: ... + def __init__( + self, + eps: float, + epsGeom: float, + epsCoeff: float, + mode: bool, + modeapprox: bool, + optimized: bool, + ) -> None: ... def TransferBasicSurface(self, start: IGESData_IGESEntity) -> Geom_Surface: ... class IGESToBRep_TopoCurve(IGESToBRep_CurveAndSurface): @@ -178,7 +265,15 @@ class IGESToBRep_TopoCurve(IGESToBRep_CurveAndSurface): @overload def __init__(self, CS: IGESToBRep_TopoCurve) -> None: ... @overload - def __init__(self, eps: float, epsGeom: float, epsCoeff: float, mode: bool, modeapprox: bool, optimized: bool) -> None: ... + def __init__( + self, + eps: float, + epsGeom: float, + epsCoeff: float, + mode: bool, + modeapprox: bool, + optimized: bool, + ) -> None: ... def Approx2dBSplineCurve(self, start: Geom2d_BSplineCurve) -> None: ... def ApproxBSplineCurve(self, start: Geom_BSplineCurve) -> None: ... def BadCase(self) -> bool: ... @@ -187,8 +282,20 @@ class IGESToBRep_TopoCurve(IGESToBRep_CurveAndSurface): def NbCurves(self) -> int: ... def NbCurves2d(self) -> int: ... def SetBadCase(self, value: bool) -> None: ... - def Transfer2dTopoBasicCurve(self, start: IGESData_IGESEntity, face: TopoDS_Face, trans: gp_Trsf2d, uFact: float) -> TopoDS_Shape: ... - def Transfer2dTopoCurve(self, start: IGESData_IGESEntity, face: TopoDS_Face, trans: gp_Trsf2d, uFact: float) -> TopoDS_Shape: ... + def Transfer2dTopoBasicCurve( + self, + start: IGESData_IGESEntity, + face: TopoDS_Face, + trans: gp_Trsf2d, + uFact: float, + ) -> TopoDS_Shape: ... + def Transfer2dTopoCurve( + self, + start: IGESData_IGESEntity, + face: TopoDS_Face, + trans: gp_Trsf2d, + uFact: float, + ) -> TopoDS_Shape: ... def TransferTopoBasicCurve(self, start: IGESData_IGESEntity) -> TopoDS_Shape: ... def TransferTopoCurve(self, start: IGESData_IGESEntity) -> TopoDS_Shape: ... @@ -198,12 +305,21 @@ class IGESToBRep_TopoSurface(IGESToBRep_CurveAndSurface): @overload def __init__(self, CS: IGESToBRep_CurveAndSurface) -> None: ... @overload - def __init__(self, eps: float, epsGeom: float, epsCoeff: float, mode: bool, modeapprox: bool, optimized: bool) -> None: ... - def ParamSurface(self, start: IGESData_IGESEntity, trans: gp_Trsf2d) -> Tuple[TopoDS_Shape, float]: ... + def __init__( + self, + eps: float, + epsGeom: float, + epsCoeff: float, + mode: bool, + modeapprox: bool, + optimized: bool, + ) -> None: ... + def ParamSurface( + self, start: IGESData_IGESEntity, trans: gp_Trsf2d + ) -> Tuple[TopoDS_Shape, float]: ... def TransferTopoBasicSurface(self, start: IGESData_IGESEntity) -> TopoDS_Shape: ... def TransferTopoSurface(self, start: IGESData_IGESEntity) -> TopoDS_Shape: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IMeshData.pyi b/src/SWIG_files/wrapper/IMeshData.pyi index cb54059f4..5391f5f37 100644 --- a/src/SWIG_files/wrapper/IMeshData.pyi +++ b/src/SWIG_files/wrapper/IMeshData.pyi @@ -8,7 +8,6 @@ from OCC.Core.gp import * from OCC.Core.TopAbs import * from OCC.Core.BRepAdaptor import * - class IMeshData_Status(IntEnum): IMeshData_NoError: int = ... IMeshData_OpenWire: int = ... @@ -51,7 +50,9 @@ class IMeshData_StatusOwner: class IMeshData_Curve(IMeshData_ParametersList): def AddPoint(self, thePoint: gp_Pnt, theParamOnCurve: float) -> None: ... def GetPoint(self, theIndex: int) -> gp_Pnt: ... - def InsertPoint(self, thePosition: int, thePoint: gp_Pnt, theParamOnPCurve: float) -> None: ... + def InsertPoint( + self, thePosition: int, thePoint: gp_Pnt, theParamOnPCurve: float + ) -> None: ... def RemovePoint(self, theIndex: int) -> None: ... class IMeshData_Model(IMeshData_Shape): @@ -69,7 +70,9 @@ class IMeshData_PCurve(IMeshData_ParametersList): def GetIndex(self, theIndex: int) -> int: ... def GetOrientation(self) -> TopAbs_Orientation: ... def GetPoint(self, theIndex: int) -> gp_Pnt2d: ... - def InsertPoint(self, thePosition: int, thePoint: gp_Pnt2d, theParamOnPCurve: float) -> None: ... + def InsertPoint( + self, thePosition: int, thePoint: gp_Pnt2d, theParamOnPCurve: float + ) -> None: ... def IsForward(self) -> bool: ... def IsInternal(self) -> bool: ... def RemovePoint(self, theIndex: int) -> None: ... @@ -112,4 +115,3 @@ class IMeshData_Wire(IMeshData_TessellatedShape, IMeshData_StatusOwner): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IMeshTools.pyi b/src/SWIG_files/wrapper/IMeshTools.pyi index 4dd2c834d..aa5693328 100644 --- a/src/SWIG_files/wrapper/IMeshTools.pyi +++ b/src/SWIG_files/wrapper/IMeshTools.pyi @@ -9,15 +9,18 @@ from OCC.Core.gp import * from OCC.Core.GeomAbs import * from OCC.Core.TopoDS import * - class IMeshTools_MeshAlgoType(IntEnum): IMeshTools_MeshAlgoType_DEFAULT: int = ... IMeshTools_MeshAlgoType_Watson: int = ... IMeshTools_MeshAlgoType_Delabella: int = ... -IMeshTools_MeshAlgoType_DEFAULT = IMeshTools_MeshAlgoType.IMeshTools_MeshAlgoType_DEFAULT +IMeshTools_MeshAlgoType_DEFAULT = ( + IMeshTools_MeshAlgoType.IMeshTools_MeshAlgoType_DEFAULT +) IMeshTools_MeshAlgoType_Watson = IMeshTools_MeshAlgoType.IMeshTools_MeshAlgoType_Watson -IMeshTools_MeshAlgoType_Delabella = IMeshTools_MeshAlgoType.IMeshTools_MeshAlgoType_Delabella +IMeshTools_MeshAlgoType_Delabella = ( + IMeshTools_MeshAlgoType.IMeshTools_MeshAlgoType_Delabella +) class IMeshTools_Context(IMeshData_Shape): def __init__(self) -> None: ... @@ -52,7 +55,9 @@ class IMeshTools_MeshAlgo(Standard_Transient): pass class IMeshTools_MeshAlgoFactory(Standard_Transient): - def GetAlgo(self, theSurfaceType: GeomAbs_SurfaceType, theParameters: IMeshTools_Parameters) -> IMeshTools_MeshAlgo: ... + def GetAlgo( + self, theSurfaceType: GeomAbs_SurfaceType, theParameters: IMeshTools_Parameters + ) -> IMeshTools_MeshAlgo: ... class IMeshTools_MeshBuilder(Message_Algorithm): @overload @@ -64,10 +69,17 @@ class IMeshTools_MeshBuilder(Message_Algorithm): def SetContext(self, theContext: IMeshTools_Context) -> None: ... class IMeshTools_ModelAlgo(Standard_Transient): - def Perform(self, theModel: IMeshData_Model, theParameters: IMeshTools_Parameters, theRange: Message_ProgressRange) -> bool: ... + def Perform( + self, + theModel: IMeshData_Model, + theParameters: IMeshTools_Parameters, + theRange: Message_ProgressRange, + ) -> bool: ... class IMeshTools_ModelBuilder(Message_Algorithm): - def Perform(self, theShape: TopoDS_Shape, theParameters: IMeshTools_Parameters) -> IMeshData_Model: ... + def Perform( + self, theShape: TopoDS_Shape, theParameters: IMeshTools_Parameters + ) -> IMeshData_Model: ... class IMeshTools_Parameters: def __init__(self) -> None: ... @@ -87,4 +99,3 @@ class IMeshTools_ShapeVisitor(Standard_Transient): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IVtk.pyi b/src/SWIG_files/wrapper/IVtk.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/IVtk.pyi +++ b/src/SWIG_files/wrapper/IVtk.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IVtkOCC.pyi b/src/SWIG_files/wrapper/IVtkOCC.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/IVtkOCC.pyi +++ b/src/SWIG_files/wrapper/IVtkOCC.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IVtkTools.pyi b/src/SWIG_files/wrapper/IVtkTools.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/IVtkTools.pyi +++ b/src/SWIG_files/wrapper/IVtkTools.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IVtkVTK.pyi b/src/SWIG_files/wrapper/IVtkVTK.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/IVtkVTK.pyi +++ b/src/SWIG_files/wrapper/IVtkVTK.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Image.pyi b/src/SWIG_files/wrapper/Image.pyi index ac0f5e77b..65617c89b 100644 --- a/src/SWIG_files/wrapper/Image.pyi +++ b/src/SWIG_files/wrapper/Image.pyi @@ -4,7 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class Image_CompressedFormat(IntEnum): Image_CompressedFormat_UNKNOWN: int = ... Image_CompressedFormat_RGB_S3TC_DXT1: int = ... @@ -13,11 +12,18 @@ class Image_CompressedFormat(IntEnum): Image_CompressedFormat_RGBA_S3TC_DXT5: int = ... Image_CompressedFormat_UNKNOWN = Image_CompressedFormat.Image_CompressedFormat_UNKNOWN -Image_CompressedFormat_RGB_S3TC_DXT1 = Image_CompressedFormat.Image_CompressedFormat_RGB_S3TC_DXT1 -Image_CompressedFormat_RGBA_S3TC_DXT1 = Image_CompressedFormat.Image_CompressedFormat_RGBA_S3TC_DXT1 -Image_CompressedFormat_RGBA_S3TC_DXT3 = Image_CompressedFormat.Image_CompressedFormat_RGBA_S3TC_DXT3 -Image_CompressedFormat_RGBA_S3TC_DXT5 = Image_CompressedFormat.Image_CompressedFormat_RGBA_S3TC_DXT5 - +Image_CompressedFormat_RGB_S3TC_DXT1 = ( + Image_CompressedFormat.Image_CompressedFormat_RGB_S3TC_DXT1 +) +Image_CompressedFormat_RGBA_S3TC_DXT1 = ( + Image_CompressedFormat.Image_CompressedFormat_RGBA_S3TC_DXT1 +) +Image_CompressedFormat_RGBA_S3TC_DXT3 = ( + Image_CompressedFormat.Image_CompressedFormat_RGBA_S3TC_DXT3 +) +Image_CompressedFormat_RGBA_S3TC_DXT5 = ( + Image_CompressedFormat.Image_CompressedFormat_RGBA_S3TC_DXT5 +) class Image_Format(IntEnum): Image_Format_UNKNOWN: int = ... @@ -62,80 +68,78 @@ Image_Format_RGF_half = Image_Format.Image_Format_RGF_half Image_Format_RGBAF_half = Image_Format.Image_Format_RGBAF_half Image_Format_Gray16 = Image_Format.Image_Format_Gray16 - -#classnotwrapped +# classnotwrapped class Image_AlienPixMap: ... -#classnotwrapped +# classnotwrapped class Image_ColorRGB: ... -#classnotwrapped +# classnotwrapped class Image_ColorRGB32: ... -#classnotwrapped +# classnotwrapped class Image_ColorRGBA: ... -#classnotwrapped +# classnotwrapped class Image_ColorBGR: ... -#classnotwrapped +# classnotwrapped class Image_ColorBGR32: ... -#classnotwrapped +# classnotwrapped class Image_ColorBGRA: ... -#classnotwrapped +# classnotwrapped class Image_ColorRGF: ... -#classnotwrapped +# classnotwrapped class Image_ColorRGBF: ... -#classnotwrapped +# classnotwrapped class Image_ColorBGRF: ... -#classnotwrapped +# classnotwrapped class Image_ColorRGBAF: ... -#classnotwrapped +# classnotwrapped class Image_ColorBGRAF: ... -#classnotwrapped +# classnotwrapped class Image_CompressedPixMap: ... -#classnotwrapped +# classnotwrapped class Image_DDSParser: ... -#classnotwrapped +# classnotwrapped class Image_Diff: ... -#classnotwrapped +# classnotwrapped class Image_PixMap: ... -#classnotwrapped +# classnotwrapped class Image_PixMapData: ... -#classnotwrapped +# classnotwrapped class Image_PixMapTypedData: ... -#classnotwrapped +# classnotwrapped class Image_SupportedFormats: ... -#classnotwrapped +# classnotwrapped class Image_Texture: ... -#classnotwrapped +# classnotwrapped class equal_to: ... -#classnotwrapped +# classnotwrapped class hash: ... -#classnotwrapped +# classnotwrapped class Image_VideoParams: ... -#classnotwrapped +# classnotwrapped class Image_VideoRecorder: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntAna.i b/src/SWIG_files/wrapper/IntAna.i index 36ca49fc5..d3318a947 100644 --- a/src/SWIG_files/wrapper/IntAna.i +++ b/src/SWIG_files/wrapper/IntAna.i @@ -115,6 +115,12 @@ IntAna_NoGeometricSolution = IntAna_ResultType.IntAna_NoGeometricSolution %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = IntAna_ListIteratorOfListOfCurve(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/IntAna.pyi b/src/SWIG_files/wrapper/IntAna.pyi index 89010658c..c76cc51bd 100644 --- a/src/SWIG_files/wrapper/IntAna.pyi +++ b/src/SWIG_files/wrapper/IntAna.pyi @@ -6,20 +6,19 @@ from OCC.Core.NCollection import * from OCC.Core.gp import * from OCC.Core.TColStd import * - class IntAna_ListOfCurve: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: IntAna_Curve) -> IntAna_Curve: ... + def Assign(self, theItem: IntAna_ListOfCurve) -> IntAna_ListOfCurve: ... def Clear(self) -> None: ... def First(self) -> IntAna_Curve: ... def Last(self) -> IntAna_Curve: ... - def Append(self, theItem: IntAna_Curve) -> IntAna_Curve: ... def Prepend(self, theItem: IntAna_Curve) -> IntAna_Curve: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntAna_Curve: ... - def SetValue(self, theIndex: int, theValue: IntAna_Curve) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> IntAna_Curve: ... class IntAna_ResultType(IntEnum): IntAna_Point: int = ... @@ -53,8 +52,44 @@ class IntAna_Curve: def IsFirstOpen(self) -> bool: ... def IsLastOpen(self) -> bool: ... def IsOpen(self) -> bool: ... - def SetConeQuadValues(self, Cone: gp_Cone, Qxx: float, Qyy: float, Qzz: float, Qxy: float, Qxz: float, Qyz: float, Qx: float, Qy: float, Qz: float, Q1: float, Tol: float, DomInf: float, DomSup: float, TwoZForATheta: bool, ZIsPositive: bool) -> None: ... - def SetCylinderQuadValues(self, Cylinder: gp_Cylinder, Qxx: float, Qyy: float, Qzz: float, Qxy: float, Qxz: float, Qyz: float, Qx: float, Qy: float, Qz: float, Q1: float, Tol: float, DomInf: float, DomSup: float, TwoZForATheta: bool, ZIsPositive: bool) -> None: ... + def SetConeQuadValues( + self, + Cone: gp_Cone, + Qxx: float, + Qyy: float, + Qzz: float, + Qxy: float, + Qxz: float, + Qyz: float, + Qx: float, + Qy: float, + Qz: float, + Q1: float, + Tol: float, + DomInf: float, + DomSup: float, + TwoZForATheta: bool, + ZIsPositive: bool, + ) -> None: ... + def SetCylinderQuadValues( + self, + Cylinder: gp_Cylinder, + Qxx: float, + Qyy: float, + Qzz: float, + Qxy: float, + Qxz: float, + Qyz: float, + Qx: float, + Qy: float, + Qz: float, + Q1: float, + Tol: float, + DomInf: float, + DomSup: float, + TwoZForATheta: bool, + ZIsPositive: bool, + ) -> None: ... def SetDomain(self, theFirst: float, theLast: float) -> None: ... def SetIsFirstOpen(self, Flag: bool) -> None: ... def SetIsLastOpen(self, Flag: bool) -> None: ... @@ -84,7 +119,14 @@ class IntAna_IntConicQuad: @overload def __init__(self, H: gp_Hypr, Q: IntAna_Quadric) -> None: ... @overload - def __init__(self, L: gp_Lin, P: gp_Pln, Tolang: float, Tol: Optional[float] = 0, Len: Optional[float] = 0) -> None: ... + def __init__( + self, + L: gp_Lin, + P: gp_Pln, + Tolang: float, + Tol: Optional[float] = 0, + Len: Optional[float] = 0, + ) -> None: ... @overload def __init__(self, C: gp_Circ, P: gp_Pln, Tolang: float, Tol: float) -> None: ... @overload @@ -109,7 +151,14 @@ class IntAna_IntConicQuad: @overload def Perform(self, H: gp_Hypr, Q: IntAna_Quadric) -> None: ... @overload - def Perform(self, L: gp_Lin, P: gp_Pln, Tolang: float, Tol: Optional[float] = 0, Len: Optional[float] = 0) -> None: ... + def Perform( + self, + L: gp_Lin, + P: gp_Pln, + Tolang: float, + Tol: Optional[float] = 0, + Len: Optional[float] = 0, + ) -> None: ... @overload def Perform(self, C: gp_Circ, P: gp_Pln, Tolang: float, Tol: float) -> None: ... @overload @@ -161,7 +210,14 @@ class IntAna_QuadQuadGeo: @overload def __init__(self, P1: gp_Pln, P2: gp_Pln, TolAng: float, Tol: float) -> None: ... @overload - def __init__(self, P: gp_Pln, C: gp_Cylinder, Tolang: float, Tol: float, H: Optional[float] = 0) -> None: ... + def __init__( + self, + P: gp_Pln, + C: gp_Cylinder, + Tolang: float, + Tol: float, + H: Optional[float] = 0, + ) -> None: ... @overload def __init__(self, P: gp_Pln, S: gp_Sphere) -> None: ... @overload @@ -200,7 +256,14 @@ class IntAna_QuadQuadGeo: @overload def Perform(self, P1: gp_Pln, P2: gp_Pln, TolAng: float, Tol: float) -> None: ... @overload - def Perform(self, P: gp_Pln, C: gp_Cylinder, Tolang: float, Tol: float, H: Optional[float] = 0) -> None: ... + def Perform( + self, + P: gp_Pln, + C: gp_Cylinder, + Tolang: float, + Tol: float, + H: Optional[float] = 0, + ) -> None: ... @overload def Perform(self, P: gp_Pln, S: gp_Sphere) -> None: ... @overload @@ -241,8 +304,16 @@ class IntAna_Quadric: def __init__(self, Cyl: gp_Cylinder) -> None: ... @overload def __init__(self, Cone: gp_Cone) -> None: ... - def Coefficients(self) -> Tuple[float, float, float, float, float, float, float, float, float, float]: ... - def NewCoefficients(self, Axis: gp_Ax3) -> Tuple[float, float, float, float, float, float, float, float, float, float]: ... + def Coefficients( + self, + ) -> Tuple[ + float, float, float, float, float, float, float, float, float, float + ]: ... + def NewCoefficients( + self, Axis: gp_Ax3 + ) -> Tuple[ + float, float, float, float, float, float, float, float, float, float + ]: ... @overload def SetQuadric(self, P: gp_Pln) -> None: ... @overload @@ -256,4 +327,3 @@ class IntAna_Quadric: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntAna2d.pyi b/src/SWIG_files/wrapper/IntAna2d.pyi index ebcde67d9..2d14be727 100644 --- a/src/SWIG_files/wrapper/IntAna2d.pyi +++ b/src/SWIG_files/wrapper/IntAna2d.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.gp import * - class IntAna2d_AnaIntersection: @overload def __init__(self) -> None: ... @@ -61,7 +60,9 @@ class IntAna2d_Conic: def __init__(self, C: gp_Elips2d) -> None: ... def Coefficients(self) -> Tuple[float, float, float, float, float, float]: ... def Grad(self, X: float, Y: float) -> gp_XY: ... - def NewCoefficients(self, Axis: gp_Ax2d) -> Tuple[float, float, float, float, float, float]: ... + def NewCoefficients( + self, Axis: gp_Ax2d + ) -> Tuple[float, float, float, float, float, float]: ... def ValAndGrad(self, X: float, Y: float, Grd: gp_XY) -> float: ... def Value(self, X: float, Y: float) -> float: ... @@ -84,4 +85,3 @@ class IntAna2d_IntPoint: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntCurve.pyi b/src/SWIG_files/wrapper/IntCurve.pyi index 128a78e75..7c5cb4f60 100644 --- a/src/SWIG_files/wrapper/IntCurve.pyi +++ b/src/SWIG_files/wrapper/IntCurve.pyi @@ -9,7 +9,6 @@ from OCC.Core.TColStd import * from OCC.Core.math import * from OCC.Core.GeomAbs import * - class IntCurve_IConicTool: @overload def __init__(self) -> None: ... @@ -36,75 +35,358 @@ class IntCurve_IntConicConic(IntRes2d_Intersection): @overload def __init__(self) -> None: ... @overload - def __init__(self, L1: gp_Lin2d, D1: IntRes2d_Domain, L2: gp_Lin2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, L: gp_Lin2d, DL: IntRes2d_Domain, C: gp_Circ2d, DC: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, L: gp_Lin2d, DL: IntRes2d_Domain, E: gp_Elips2d, DE: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, L: gp_Lin2d, DL: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, L: gp_Lin2d, DL: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C1: gp_Circ2d, D1: IntRes2d_Domain, C2: gp_Circ2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C: gp_Circ2d, DC: IntRes2d_Domain, E: gp_Elips2d, DE: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C: gp_Circ2d, DC: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, C: gp_Circ2d, DC: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, E1: gp_Elips2d, D1: IntRes2d_Domain, E2: gp_Elips2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, E: gp_Elips2d, DE: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, E: gp_Elips2d, DE: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, P1: gp_Parab2d, D1: IntRes2d_Domain, P2: gp_Parab2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, P: gp_Parab2d, DP: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def __init__(self, H1: gp_Hypr2d, D1: IntRes2d_Domain, H2: gp_Hypr2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, L1: gp_Lin2d, D1: IntRes2d_Domain, L2: gp_Lin2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, L: gp_Lin2d, DL: IntRes2d_Domain, C: gp_Circ2d, DC: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, L: gp_Lin2d, DL: IntRes2d_Domain, E: gp_Elips2d, DE: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, L: gp_Lin2d, DL: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, L: gp_Lin2d, DL: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, C1: gp_Circ2d, D1: IntRes2d_Domain, C2: gp_Circ2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, C: gp_Circ2d, DC: IntRes2d_Domain, E: gp_Elips2d, DE: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, C: gp_Circ2d, DC: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, C: gp_Circ2d, DC: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, E1: gp_Elips2d, D1: IntRes2d_Domain, E2: gp_Elips2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, E: gp_Elips2d, DE: IntRes2d_Domain, P: gp_Parab2d, DP: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, E: gp_Elips2d, DE: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, P1: gp_Parab2d, D1: IntRes2d_Domain, P2: gp_Parab2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, P: gp_Parab2d, DP: IntRes2d_Domain, H: gp_Hypr2d, DH: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - @overload - def Perform(self, H1: gp_Hypr2d, D1: IntRes2d_Domain, H2: gp_Hypr2d, D2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, + L1: gp_Lin2d, + D1: IntRes2d_Domain, + L2: gp_Lin2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + L: gp_Lin2d, + DL: IntRes2d_Domain, + C: gp_Circ2d, + DC: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + L: gp_Lin2d, + DL: IntRes2d_Domain, + E: gp_Elips2d, + DE: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + L: gp_Lin2d, + DL: IntRes2d_Domain, + P: gp_Parab2d, + DP: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + L: gp_Lin2d, + DL: IntRes2d_Domain, + H: gp_Hypr2d, + DH: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C1: gp_Circ2d, + D1: IntRes2d_Domain, + C2: gp_Circ2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + DC: IntRes2d_Domain, + E: gp_Elips2d, + DE: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + DC: IntRes2d_Domain, + P: gp_Parab2d, + DP: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + DC: IntRes2d_Domain, + H: gp_Hypr2d, + DH: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E1: gp_Elips2d, + D1: IntRes2d_Domain, + E2: gp_Elips2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + DE: IntRes2d_Domain, + P: gp_Parab2d, + DP: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + DE: IntRes2d_Domain, + H: gp_Hypr2d, + DH: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + P1: gp_Parab2d, + D1: IntRes2d_Domain, + P2: gp_Parab2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Parab2d, + DP: IntRes2d_Domain, + H: gp_Hypr2d, + DH: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + H1: gp_Hypr2d, + D1: IntRes2d_Domain, + H2: gp_Hypr2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L1: gp_Lin2d, + D1: IntRes2d_Domain, + L2: gp_Lin2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + DL: IntRes2d_Domain, + C: gp_Circ2d, + DC: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + DL: IntRes2d_Domain, + E: gp_Elips2d, + DE: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + DL: IntRes2d_Domain, + P: gp_Parab2d, + DP: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + DL: IntRes2d_Domain, + H: gp_Hypr2d, + DH: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C1: gp_Circ2d, + D1: IntRes2d_Domain, + C2: gp_Circ2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + DC: IntRes2d_Domain, + E: gp_Elips2d, + DE: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + DC: IntRes2d_Domain, + P: gp_Parab2d, + DP: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + DC: IntRes2d_Domain, + H: gp_Hypr2d, + DH: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E1: gp_Elips2d, + D1: IntRes2d_Domain, + E2: gp_Elips2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + DE: IntRes2d_Domain, + P: gp_Parab2d, + DP: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + DE: IntRes2d_Domain, + H: gp_Hypr2d, + DH: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + P1: gp_Parab2d, + D1: IntRes2d_Domain, + P2: gp_Parab2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + P: gp_Parab2d, + DP: IntRes2d_Domain, + H: gp_Hypr2d, + DH: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + H1: gp_Hypr2d, + D1: IntRes2d_Domain, + H2: gp_Hypr2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... class IntCurve_IntImpConicParConic(IntRes2d_Intersection): @overload def __init__(self) -> None: ... @overload - def __init__(self, ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: IntCurve_PConic, Dom2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... - def And_Domaine_Objet1_Intersections(self, TheImpTool: IntCurve_IConicTool, TheParCurve: IntCurve_PConic, TheImpCurveDomain: IntRes2d_Domain, TheParCurveDomain: IntRes2d_Domain, Inter2_And_Domain2: TColStd_Array1OfReal, Inter1: TColStd_Array1OfReal, Resultat1: TColStd_Array1OfReal, Resultat2: TColStd_Array1OfReal, EpsNul: float) -> int: ... - def FindU(self, parameter: float, point: gp_Pnt2d, TheParCurev: IntCurve_PConic, TheImpTool: IntCurve_IConicTool) -> float: ... - def FindV(self, parameter: float, point: gp_Pnt2d, TheImpTool: IntCurve_IConicTool, ParCurve: IntCurve_PConic, TheParCurveDomain: IntRes2d_Domain, V0: float, V1: float, Tolerance: float) -> float: ... - def Perform(self, ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: IntCurve_PConic, Dom2: IntRes2d_Domain, TolConf: float, Tol: float) -> None: ... + def __init__( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: IntCurve_PConic, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def And_Domaine_Objet1_Intersections( + self, + TheImpTool: IntCurve_IConicTool, + TheParCurve: IntCurve_PConic, + TheImpCurveDomain: IntRes2d_Domain, + TheParCurveDomain: IntRes2d_Domain, + Inter2_And_Domain2: TColStd_Array1OfReal, + Inter1: TColStd_Array1OfReal, + Resultat1: TColStd_Array1OfReal, + Resultat2: TColStd_Array1OfReal, + EpsNul: float, + ) -> int: ... + def FindU( + self, + parameter: float, + point: gp_Pnt2d, + TheParCurev: IntCurve_PConic, + TheImpTool: IntCurve_IConicTool, + ) -> float: ... + def FindV( + self, + parameter: float, + point: gp_Pnt2d, + TheImpTool: IntCurve_IConicTool, + ParCurve: IntCurve_PConic, + TheParCurveDomain: IntRes2d_Domain, + V0: float, + V1: float, + Tolerance: float, + ) -> float: ... + def Perform( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: IntCurve_PConic, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... class IntCurve_MyImpParToolOfIntImpConicParConic(math_FunctionWithDerivative): def __init__(self, IT: IntCurve_IConicTool, PC: IntCurve_PConic) -> None: ... @@ -138,7 +420,9 @@ class IntCurve_PConicTool: @staticmethod def D1(C: IntCurve_PConic, U: float, P: gp_Pnt2d, T: gp_Vec2d) -> None: ... @staticmethod - def D2(C: IntCurve_PConic, U: float, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d) -> None: ... + def D2( + C: IntCurve_PConic, U: float, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d + ) -> None: ... @staticmethod def EpsX(C: IntCurve_PConic) -> float: ... @overload @@ -156,9 +440,14 @@ class IntCurve_ProjectOnPConicTool: def FindParameter(C: IntCurve_PConic, Pnt: gp_Pnt2d, Tol: float) -> float: ... @overload @staticmethod - def FindParameter(C: IntCurve_PConic, Pnt: gp_Pnt2d, LowParameter: float, HighParameter: float, Tol: float) -> float: ... + def FindParameter( + C: IntCurve_PConic, + Pnt: gp_Pnt2d, + LowParameter: float, + HighParameter: float, + Tol: float, + ) -> float: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntCurveSurface.pyi b/src/SWIG_files/wrapper/IntCurveSurface.pyi index 1ee9dad5c..67eff0bba 100644 --- a/src/SWIG_files/wrapper/IntCurveSurface.pyi +++ b/src/SWIG_files/wrapper/IntCurveSurface.pyi @@ -13,36 +13,59 @@ from OCC.Core.Intf import * from OCC.Core.Bnd import * from OCC.Core.IntSurf import * - class IntCurveSurface_SequenceOfPnt: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign( + self, theItem: IntCurveSurface_IntersectionPoint + ) -> IntCurveSurface_IntersectionPoint: ... def Clear(self) -> None: ... def First(self) -> IntCurveSurface_IntersectionPoint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntCurveSurface_IntersectionPoint: ... def Length(self) -> int: ... - def Append(self, theItem: IntCurveSurface_IntersectionPoint) -> IntCurveSurface_IntersectionPoint: ... - def Prepend(self, theItem: IntCurveSurface_IntersectionPoint) -> IntCurveSurface_IntersectionPoint: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: IntCurveSurface_IntersectionPoint + ) -> IntCurveSurface_IntersectionPoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: IntCurveSurface_IntersectionPoint + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> IntCurveSurface_IntersectionPoint: ... - def SetValue(self, theIndex: int, theValue: IntCurveSurface_IntersectionPoint) -> None: ... - -class IntCurveSurface_SequenceOfSeg: def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntCurveSurface_SequenceOfSeg: + def Assign( + self, theItem: IntCurveSurface_IntersectionSegment + ) -> IntCurveSurface_IntersectionSegment: ... def Clear(self) -> None: ... def First(self) -> IntCurveSurface_IntersectionSegment: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntCurveSurface_IntersectionSegment: ... def Length(self) -> int: ... - def Append(self, theItem: IntCurveSurface_IntersectionSegment) -> IntCurveSurface_IntersectionSegment: ... - def Prepend(self, theItem: IntCurveSurface_IntersectionSegment) -> IntCurveSurface_IntersectionSegment: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: IntCurveSurface_IntersectionSegment + ) -> IntCurveSurface_IntersectionSegment: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: IntCurveSurface_IntersectionSegment + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> IntCurveSurface_IntersectionSegment: ... - def SetValue(self, theIndex: int, theValue: IntCurveSurface_IntersectionSegment) -> None: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class IntCurveSurface_TransitionOnCurve(IntEnum): IntCurveSurface_Tangent: int = ... @@ -66,21 +89,41 @@ class IntCurveSurface_IntersectionPoint: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, USurf: float, VSurf: float, UCurv: float, TrCurv: IntCurveSurface_TransitionOnCurve) -> None: ... + def __init__( + self, + P: gp_Pnt, + USurf: float, + VSurf: float, + UCurv: float, + TrCurv: IntCurveSurface_TransitionOnCurve, + ) -> None: ... def Dump(self) -> None: ... def Pnt(self) -> gp_Pnt: ... - def SetValues(self, P: gp_Pnt, USurf: float, VSurf: float, UCurv: float, TrCurv: IntCurveSurface_TransitionOnCurve) -> None: ... + def SetValues( + self, + P: gp_Pnt, + USurf: float, + VSurf: float, + UCurv: float, + TrCurv: IntCurveSurface_TransitionOnCurve, + ) -> None: ... def Transition(self) -> IntCurveSurface_TransitionOnCurve: ... def U(self) -> float: ... def V(self) -> float: ... - def Values(self, P: gp_Pnt) -> Tuple[float, float, float, IntCurveSurface_TransitionOnCurve]: ... + def Values( + self, P: gp_Pnt + ) -> Tuple[float, float, float, IntCurveSurface_TransitionOnCurve]: ... def W(self) -> float: ... class IntCurveSurface_IntersectionSegment: @overload def __init__(self) -> None: ... @overload - def __init__(self, P1: IntCurveSurface_IntersectionPoint, P2: IntCurveSurface_IntersectionPoint) -> None: ... + def __init__( + self, + P1: IntCurveSurface_IntersectionPoint, + P2: IntCurveSurface_IntersectionPoint, + ) -> None: ... def Dump(self) -> None: ... @overload def FirstPoint(self, P1: IntCurveSurface_IntersectionPoint) -> None: ... @@ -90,8 +133,16 @@ class IntCurveSurface_IntersectionSegment: def SecondPoint(self, P2: IntCurveSurface_IntersectionPoint) -> None: ... @overload def SecondPoint(self) -> IntCurveSurface_IntersectionPoint: ... - def SetValues(self, P1: IntCurveSurface_IntersectionPoint, P2: IntCurveSurface_IntersectionPoint) -> None: ... - def Values(self, P1: IntCurveSurface_IntersectionPoint, P2: IntCurveSurface_IntersectionPoint) -> None: ... + def SetValues( + self, + P1: IntCurveSurface_IntersectionPoint, + P2: IntCurveSurface_IntersectionPoint, + ) -> None: ... + def Values( + self, + P1: IntCurveSurface_IntersectionPoint, + P2: IntCurveSurface_IntersectionPoint, + ) -> None: ... class IntCurveSurface_TheCSFunctionOfHInter(math_FunctionSetWithDerivatives): def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... @@ -107,15 +158,37 @@ class IntCurveSurface_TheCSFunctionOfHInter(math_FunctionSetWithDerivatives): class IntCurveSurface_TheExactHInter: @overload - def __init__(self, U: float, V: float, W: float, F: IntCurveSurface_TheCSFunctionOfHInter, TolTangency: float, MarginCoef: Optional[float] = 0.0) -> None: ... - @overload - def __init__(self, F: IntCurveSurface_TheCSFunctionOfHInter, TolTangency: float) -> None: ... + def __init__( + self, + U: float, + V: float, + W: float, + F: IntCurveSurface_TheCSFunctionOfHInter, + TolTangency: float, + MarginCoef: Optional[float] = 0.0, + ) -> None: ... + @overload + def __init__( + self, F: IntCurveSurface_TheCSFunctionOfHInter, TolTangency: float + ) -> None: ... def Function(self) -> IntCurveSurface_TheCSFunctionOfHInter: ... def IsDone(self) -> bool: ... def IsEmpty(self) -> bool: ... def ParameterOnCurve(self) -> float: ... def ParameterOnSurface(self) -> Tuple[float, float]: ... - def Perform(self, U: float, V: float, W: float, Rsnld: math_FunctionSetRoot, u0: float, v0: float, u1: float, v1: float, w0: float, w1: float) -> None: ... + def Perform( + self, + U: float, + V: float, + W: float, + Rsnld: math_FunctionSetRoot, + u0: float, + v0: float, + u1: float, + v1: float, + w0: float, + w1: float, + ) -> None: ... def Point(self) -> gp_Pnt: ... class IntCurveSurface_TheHCurveTool: @@ -134,7 +207,9 @@ class IntCurveSurface_TheHCurveTool: @staticmethod def D2(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... @staticmethod - def D3(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @staticmethod def DN(C: Adaptor3d_Curve, U: float, N: int) -> gp_Vec: ... @staticmethod @@ -146,7 +221,9 @@ class IntCurveSurface_TheHCurveTool: @staticmethod def Hyperbola(C: Adaptor3d_Curve) -> gp_Hypr: ... @staticmethod - def Intervals(C: Adaptor3d_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def Intervals( + C: Adaptor3d_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... @staticmethod def IsClosed(C: Adaptor3d_Curve) -> bool: ... @staticmethod @@ -166,7 +243,14 @@ class IntCurveSurface_TheHCurveTool: @staticmethod def Resolution(C: Adaptor3d_Curve, R3d: float) -> float: ... @staticmethod - def SamplePars(C: Adaptor3d_Curve, U0: float, U1: float, Defl: float, NbMin: int, Pars: TColStd_HArray1OfReal) -> None: ... + def SamplePars( + C: Adaptor3d_Curve, + U0: float, + U1: float, + Defl: float, + NbMin: int, + Pars: TColStd_HArray1OfReal, + ) -> None: ... @staticmethod def Value(C: Adaptor3d_Curve, U: float) -> gp_Pnt: ... @@ -174,39 +258,96 @@ class IntCurveSurface_TheInterferenceOfHInter(Intf_Interference): @overload def __init__(self) -> None: ... @overload - def __init__(self, thePolyg: IntCurveSurface_ThePolygonOfHInter, thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... - @overload - def __init__(self, theLin: gp_Lin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... - @overload - def __init__(self, theLins: Intf_Array1OfLin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... - @overload - def __init__(self, thePolyg: IntCurveSurface_ThePolygonOfHInter, thePolyh: IntCurveSurface_ThePolyhedronOfHInter, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def __init__(self, theLin: gp_Lin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def __init__(self, theLins: Intf_Array1OfLin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def Interference(self, thePolyg: IntCurveSurface_ThePolygonOfHInter, thePolyh: IntCurveSurface_ThePolyhedronOfHInter, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def Interference(self, thePolyg: IntCurveSurface_ThePolygonOfHInter, thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... - @overload - def Perform(self, thePolyg: IntCurveSurface_ThePolygonOfHInter, thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... - @overload - def Perform(self, theLin: gp_Lin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... - @overload - def Perform(self, theLins: Intf_Array1OfLin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... - @overload - def Perform(self, thePolyg: IntCurveSurface_ThePolygonOfHInter, thePolyh: IntCurveSurface_ThePolyhedronOfHInter, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def Perform(self, theLin: gp_Lin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter, theBoundSB: Bnd_BoundSortBox) -> None: ... - @overload - def Perform(self, theLins: Intf_Array1OfLin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter, theBoundSB: Bnd_BoundSortBox) -> None: ... + def __init__( + self, + thePolyg: IntCurveSurface_ThePolygonOfHInter, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + ) -> None: ... + @overload + def __init__( + self, theLin: gp_Lin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter + ) -> None: ... + @overload + def __init__( + self, theLins: Intf_Array1OfLin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter + ) -> None: ... + @overload + def __init__( + self, + thePolyg: IntCurveSurface_ThePolygonOfHInter, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def __init__( + self, + theLin: gp_Lin, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def __init__( + self, + theLins: Intf_Array1OfLin, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Interference( + self, + thePolyg: IntCurveSurface_ThePolygonOfHInter, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Interference( + self, + thePolyg: IntCurveSurface_ThePolygonOfHInter, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + ) -> None: ... + @overload + def Perform( + self, + thePolyg: IntCurveSurface_ThePolygonOfHInter, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + ) -> None: ... + @overload + def Perform( + self, theLin: gp_Lin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter + ) -> None: ... + @overload + def Perform( + self, theLins: Intf_Array1OfLin, thePolyh: IntCurveSurface_ThePolyhedronOfHInter + ) -> None: ... + @overload + def Perform( + self, + thePolyg: IntCurveSurface_ThePolygonOfHInter, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Perform( + self, + theLin: gp_Lin, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Perform( + self, + theLins: Intf_Array1OfLin, + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... class IntCurveSurface_ThePolygonOfHInter: @overload def __init__(self, Curve: Adaptor3d_Curve, NbPnt: int) -> None: ... @overload - def __init__(self, Curve: Adaptor3d_Curve, U1: float, U2: float, NbPnt: int) -> None: ... + def __init__( + self, Curve: Adaptor3d_Curve, U1: float, U2: float, NbPnt: int + ) -> None: ... @overload def __init__(self, Curve: Adaptor3d_Curve, Upars: TColStd_Array1OfReal) -> None: ... def ApproxParamOnCurve(self, Index: int, ParamOnLine: float) -> float: ... @@ -226,17 +367,23 @@ class IntCurveSurface_ThePolygonOfHInter: class IntCurveSurface_ThePolygonToolOfHInter: @staticmethod - def BeginOfSeg(thePolygon: IntCurveSurface_ThePolygonOfHInter, Index: int) -> gp_Pnt: ... + def BeginOfSeg( + thePolygon: IntCurveSurface_ThePolygonOfHInter, Index: int + ) -> gp_Pnt: ... @staticmethod def Bounding(thePolygon: IntCurveSurface_ThePolygonOfHInter) -> Bnd_Box: ... @staticmethod def Closed(thePolygon: IntCurveSurface_ThePolygonOfHInter) -> bool: ... @staticmethod - def DeflectionOverEstimation(thePolygon: IntCurveSurface_ThePolygonOfHInter) -> float: ... + def DeflectionOverEstimation( + thePolygon: IntCurveSurface_ThePolygonOfHInter, + ) -> float: ... @staticmethod def Dump(thePolygon: IntCurveSurface_ThePolygonOfHInter) -> None: ... @staticmethod - def EndOfSeg(thePolygon: IntCurveSurface_ThePolygonOfHInter, Index: int) -> gp_Pnt: ... + def EndOfSeg( + thePolygon: IntCurveSurface_ThePolygonOfHInter, Index: int + ) -> gp_Pnt: ... @staticmethod def NbSegments(thePolygon: IntCurveSurface_ThePolygonOfHInter) -> int: ... @@ -244,23 +391,40 @@ class IntCurveSurface_ThePolyhedronToolOfHInter: @staticmethod def Bounding(thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> Bnd_Box: ... @staticmethod - def ComponentsBounding(thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> Bnd_HArray1OfBox: ... + def ComponentsBounding( + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + ) -> Bnd_HArray1OfBox: ... @staticmethod - def DeflectionOverEstimation(thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> float: ... + def DeflectionOverEstimation( + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + ) -> float: ... @staticmethod def Dump(thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... @staticmethod - def GetBorderDeflection(thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> float: ... + def GetBorderDeflection( + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + ) -> float: ... @staticmethod - def IsOnBound(thePolyh: IntCurveSurface_ThePolyhedronOfHInter, Index1: int, Index2: int) -> bool: ... + def IsOnBound( + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, Index1: int, Index2: int + ) -> bool: ... @staticmethod def NbTriangles(thePolyh: IntCurveSurface_ThePolyhedronOfHInter) -> int: ... @staticmethod - def Point(thePolyh: IntCurveSurface_ThePolyhedronOfHInter, Index: int) -> gp_Pnt: ... + def Point( + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, Index: int + ) -> gp_Pnt: ... @staticmethod - def TriConnex(thePolyh: IntCurveSurface_ThePolyhedronOfHInter, Triang: int, Pivot: int, Pedge: int) -> Tuple[int, int, int]: ... + def TriConnex( + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, + Triang: int, + Pivot: int, + Pedge: int, + ) -> Tuple[int, int, int]: ... @staticmethod - def Triangle(thePolyh: IntCurveSurface_ThePolyhedronOfHInter, Index: int) -> Tuple[int, int, int]: ... + def Triangle( + thePolyh: IntCurveSurface_ThePolyhedronOfHInter, Index: int + ) -> Tuple[int, int, int]: ... class IntCurveSurface_TheQuadCurvExactHInter: def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... @@ -270,7 +434,9 @@ class IntCurveSurface_TheQuadCurvExactHInter: def NbRoots(self) -> int: ... def Root(self, Index: int) -> float: ... -class IntCurveSurface_TheQuadCurvFuncOfTheQuadCurvExactHInter(math_FunctionWithDerivative): +class IntCurveSurface_TheQuadCurvFuncOfTheQuadCurvExactHInter( + math_FunctionWithDerivative +): def __init__(self, Q: IntSurf_Quadric, C: Adaptor3d_Curve) -> None: ... def Derivative(self, Param: float) -> Tuple[bool, float]: ... def Value(self, Param: float) -> Tuple[bool, float]: ... @@ -281,18 +447,40 @@ class IntCurveSurface_HInter(IntCurveSurface_Intersection): @overload def Perform(self, Curve: Adaptor3d_Curve, Surface: Adaptor3d_Surface) -> None: ... @overload - def Perform(self, Curve: Adaptor3d_Curve, Polygon: IntCurveSurface_ThePolygonOfHInter, Surface: Adaptor3d_Surface) -> None: ... - @overload - def Perform(self, Curve: Adaptor3d_Curve, ThePolygon: IntCurveSurface_ThePolygonOfHInter, Surface: Adaptor3d_Surface, Polyhedron: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... - @overload - def Perform(self, Curve: Adaptor3d_Curve, ThePolygon: IntCurveSurface_ThePolygonOfHInter, Surface: Adaptor3d_Surface, Polyhedron: IntCurveSurface_ThePolyhedronOfHInter, BndBSB: Bnd_BoundSortBox) -> None: ... - @overload - def Perform(self, Curve: Adaptor3d_Curve, Surface: Adaptor3d_Surface, Polyhedron: IntCurveSurface_ThePolyhedronOfHInter) -> None: ... + def Perform( + self, + Curve: Adaptor3d_Curve, + Polygon: IntCurveSurface_ThePolygonOfHInter, + Surface: Adaptor3d_Surface, + ) -> None: ... + @overload + def Perform( + self, + Curve: Adaptor3d_Curve, + ThePolygon: IntCurveSurface_ThePolygonOfHInter, + Surface: Adaptor3d_Surface, + Polyhedron: IntCurveSurface_ThePolyhedronOfHInter, + ) -> None: ... + @overload + def Perform( + self, + Curve: Adaptor3d_Curve, + ThePolygon: IntCurveSurface_ThePolygonOfHInter, + Surface: Adaptor3d_Surface, + Polyhedron: IntCurveSurface_ThePolyhedronOfHInter, + BndBSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Perform( + self, + Curve: Adaptor3d_Curve, + Surface: Adaptor3d_Surface, + Polyhedron: IntCurveSurface_ThePolyhedronOfHInter, + ) -> None: ... -#classnotwrapped +# classnotwrapped class IntCurveSurface_ThePolyhedronOfHInter: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntCurvesFace.pyi b/src/SWIG_files/wrapper/IntCurvesFace.pyi index 60fb964e3..182b86b6e 100644 --- a/src/SWIG_files/wrapper/IntCurvesFace.pyi +++ b/src/SWIG_files/wrapper/IntCurvesFace.pyi @@ -11,9 +11,14 @@ from OCC.Core.Adaptor3d import * from OCC.Core.GeomAbs import * from OCC.Core.IntCurveSurface import * - class IntCurvesFace_Intersector(Standard_Transient): - def __init__(self, F: TopoDS_Face, aTol: float, aRestr: Optional[bool] = True, UseBToler: Optional[bool] = True) -> None: ... + def __init__( + self, + F: TopoDS_Face, + aTol: float, + aRestr: Optional[bool] = True, + UseBToler: Optional[bool] = True, + ) -> None: ... def Bounding(self) -> Bnd_Box: ... def ClassifyUVPoint(self, Puv: gp_Pnt2d) -> TopAbs_State: ... def Face(self) -> TopoDS_Face: ... @@ -56,4 +61,3 @@ class IntCurvesFace_ShapeIntersector: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntImp.pyi b/src/SWIG_files/wrapper/IntImp.pyi index 80c6b5546..c282add78 100644 --- a/src/SWIG_files/wrapper/IntImp.pyi +++ b/src/SWIG_files/wrapper/IntImp.pyi @@ -4,7 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class IntImp_ConstIsoparametric(IntEnum): IntImp_UIsoparametricOnCaro1: int = ... IntImp_VIsoparametricOnCaro1: int = ... @@ -19,4 +18,3 @@ IntImp_VIsoparametricOnCaro2 = IntImp_ConstIsoparametric.IntImp_VIsoparametricOn # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntImpParGen.pyi b/src/SWIG_files/wrapper/IntImpParGen.pyi index c7c0d89c6..3dad88706 100644 --- a/src/SWIG_files/wrapper/IntImpParGen.pyi +++ b/src/SWIG_files/wrapper/IntImpParGen.pyi @@ -6,23 +6,41 @@ from OCC.Core.NCollection import * from OCC.Core.IntRes2d import * from OCC.Core.gp import * - class intimppargen: @staticmethod - def DeterminePosition(Pos1: IntRes2d_Position, Dom1: IntRes2d_Domain, P1: gp_Pnt2d, Tol: float) -> None: ... + def DeterminePosition( + Pos1: IntRes2d_Position, Dom1: IntRes2d_Domain, P1: gp_Pnt2d, Tol: float + ) -> None: ... @overload @staticmethod - def DetermineTransition(Pos1: IntRes2d_Position, Tan1: gp_Vec2d, Norm1: gp_Vec2d, Trans1: IntRes2d_Transition, Pos2: IntRes2d_Position, Tan2: gp_Vec2d, Norm2: gp_Vec2d, Trans2: IntRes2d_Transition, Tol: float) -> None: ... + def DetermineTransition( + Pos1: IntRes2d_Position, + Tan1: gp_Vec2d, + Norm1: gp_Vec2d, + Trans1: IntRes2d_Transition, + Pos2: IntRes2d_Position, + Tan2: gp_Vec2d, + Norm2: gp_Vec2d, + Trans2: IntRes2d_Transition, + Tol: float, + ) -> None: ... @overload @staticmethod - def DetermineTransition(Pos1: IntRes2d_Position, Tan1: gp_Vec2d, Trans1: IntRes2d_Transition, Pos2: IntRes2d_Position, Tan2: gp_Vec2d, Trans2: IntRes2d_Transition, Tol: float) -> bool: ... + def DetermineTransition( + Pos1: IntRes2d_Position, + Tan1: gp_Vec2d, + Trans1: IntRes2d_Transition, + Pos2: IntRes2d_Position, + Tan2: gp_Vec2d, + Trans2: IntRes2d_Transition, + Tol: float, + ) -> bool: ... @staticmethod def NormalizeOnDomain(Dom1: IntRes2d_Domain) -> Tuple[float, float]: ... -#classnotwrapped +# classnotwrapped class IntImpParGen_ImpTool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntPatch.pyi b/src/SWIG_files/wrapper/IntPatch.pyi index b5d1ecd8e..8ee779a0c 100644 --- a/src/SWIG_files/wrapper/IntPatch.pyi +++ b/src/SWIG_files/wrapper/IntPatch.pyi @@ -18,79 +18,121 @@ from OCC.Core.IntAna import * IntPatch_SearchPnt = NewType("IntPatch_SearchPnt", Intf_InterferencePolygon2d) class IntPatch_SequenceOfIWLineOfTheIWalking: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class IntPatch_SequenceOfLine: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntPatch_SequenceOfLine: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class IntPatch_SequenceOfPathPointOfTheSOnBounds: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntPatch_SequenceOfPathPointOfTheSOnBounds: + def Assign( + self, theItem: IntPatch_ThePathPointOfTheSOnBounds + ) -> IntPatch_ThePathPointOfTheSOnBounds: ... def Clear(self) -> None: ... def First(self) -> IntPatch_ThePathPointOfTheSOnBounds: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntPatch_ThePathPointOfTheSOnBounds: ... def Length(self) -> int: ... - def Append(self, theItem: IntPatch_ThePathPointOfTheSOnBounds) -> IntPatch_ThePathPointOfTheSOnBounds: ... - def Prepend(self, theItem: IntPatch_ThePathPointOfTheSOnBounds) -> IntPatch_ThePathPointOfTheSOnBounds: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: IntPatch_ThePathPointOfTheSOnBounds + ) -> IntPatch_ThePathPointOfTheSOnBounds: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: IntPatch_ThePathPointOfTheSOnBounds + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> IntPatch_ThePathPointOfTheSOnBounds: ... - def SetValue(self, theIndex: int, theValue: IntPatch_ThePathPointOfTheSOnBounds) -> None: ... - -class IntPatch_SequenceOfPoint: def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntPatch_SequenceOfPoint: + def Assign(self, theItem: IntPatch_Point) -> IntPatch_Point: ... def Clear(self) -> None: ... def First(self) -> IntPatch_Point: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntPatch_Point: ... def Length(self) -> int: ... - def Append(self, theItem: IntPatch_Point) -> IntPatch_Point: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntPatch_Point) -> IntPatch_Point: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntPatch_Point: ... def SetValue(self, theIndex: int, theValue: IntPatch_Point) -> None: ... - -class IntPatch_SequenceOfSegmentOfTheSOnBounds: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntPatch_Point: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntPatch_SequenceOfSegmentOfTheSOnBounds: + def Assign( + self, theItem: IntPatch_TheSegmentOfTheSOnBounds + ) -> IntPatch_TheSegmentOfTheSOnBounds: ... def Clear(self) -> None: ... def First(self) -> IntPatch_TheSegmentOfTheSOnBounds: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntPatch_TheSegmentOfTheSOnBounds: ... def Length(self) -> int: ... - def Append(self, theItem: IntPatch_TheSegmentOfTheSOnBounds) -> IntPatch_TheSegmentOfTheSOnBounds: ... - def Prepend(self, theItem: IntPatch_TheSegmentOfTheSOnBounds) -> IntPatch_TheSegmentOfTheSOnBounds: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: IntPatch_TheSegmentOfTheSOnBounds + ) -> IntPatch_TheSegmentOfTheSOnBounds: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: IntPatch_TheSegmentOfTheSOnBounds + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> IntPatch_TheSegmentOfTheSOnBounds: ... - def SetValue(self, theIndex: int, theValue: IntPatch_TheSegmentOfTheSOnBounds) -> None: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class IntPatch_IType(IntEnum): IntPatch_Lin: int = ... @@ -127,11 +169,24 @@ IntPatch_SPntPoleSeamU = IntPatch_SpecPntType.IntPatch_SPntPoleSeamU IntPatch_SPntPole = IntPatch_SpecPntType.IntPatch_SPntPole class IntPatch_ALineToWLine: - def __init__(self, theS1: Adaptor3d_Surface, theS2: Adaptor3d_Surface, theNbPoints: Optional[int] = 200) -> None: ... - @overload - def MakeWLine(self, aline: IntPatch_ALine, theLines: IntPatch_SequenceOfLine) -> None: ... - @overload - def MakeWLine(self, aline: IntPatch_ALine, paraminf: float, paramsup: float, theLines: IntPatch_SequenceOfLine) -> None: ... + def __init__( + self, + theS1: Adaptor3d_Surface, + theS2: Adaptor3d_Surface, + theNbPoints: Optional[int] = 200, + ) -> None: ... + @overload + def MakeWLine( + self, aline: IntPatch_ALine, theLines: IntPatch_SequenceOfLine + ) -> None: ... + @overload + def MakeWLine( + self, + aline: IntPatch_ALine, + paraminf: float, + paramsup: float, + theLines: IntPatch_SequenceOfLine, + ) -> None: ... def SetTol3D(self, aT: float) -> None: ... def SetTolOpenDomain(self, aT: float) -> None: ... def SetTolTransition(self, aT: float) -> None: ... @@ -158,7 +213,9 @@ class IntPatch_ArcFunction(math_FunctionWithDerivative): def Values(self, X: float) -> Tuple[bool, float, float]: ... class IntPatch_CSFunction(math_FunctionSetWithDerivatives): - def __init__(self, S1: Adaptor3d_Surface, C: Adaptor2d_Curve2d, S2: Adaptor3d_Surface) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, C: Adaptor2d_Curve2d, S2: Adaptor3d_Surface + ) -> None: ... def AuxillarCurve(self) -> Adaptor2d_Curve2d: ... def AuxillarSurface(self) -> Adaptor3d_Surface: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... @@ -171,7 +228,15 @@ class IntPatch_CSFunction(math_FunctionSetWithDerivatives): class IntPatch_CurvIntSurf: @overload - def __init__(self, U: float, V: float, W: float, F: IntPatch_CSFunction, TolTangency: float, MarginCoef: Optional[float] = 0.0) -> None: ... + def __init__( + self, + U: float, + V: float, + W: float, + F: IntPatch_CSFunction, + TolTangency: float, + MarginCoef: Optional[float] = 0.0, + ) -> None: ... @overload def __init__(self, F: IntPatch_CSFunction, TolTangency: float) -> None: ... def Function(self) -> IntPatch_CSFunction: ... @@ -179,7 +244,19 @@ class IntPatch_CurvIntSurf: def IsEmpty(self) -> bool: ... def ParameterOnCurve(self) -> float: ... def ParameterOnSurface(self) -> Tuple[float, float]: ... - def Perform(self, U: float, V: float, W: float, Rsnld: math_FunctionSetRoot, u0: float, v0: float, u1: float, v1: float, w0: float, w1: float) -> None: ... + def Perform( + self, + U: float, + V: float, + W: float, + Rsnld: math_FunctionSetRoot, + u0: float, + v0: float, + u1: float, + v1: float, + w0: float, + w1: float, + ) -> None: ... def Point(self) -> gp_Pnt: ... class IntPatch_HCurve2dTool: @@ -196,9 +273,18 @@ class IntPatch_HCurve2dTool: @staticmethod def D1(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... @staticmethod - def D2(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D2( + C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... @staticmethod - def D3(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + C: Adaptor2d_Curve2d, + U: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... @staticmethod def DN(C: Adaptor2d_Curve2d, U: float, N: int) -> gp_Vec2d: ... @staticmethod @@ -210,7 +296,9 @@ class IntPatch_HCurve2dTool: @staticmethod def Hyperbola(C: Adaptor2d_Curve2d) -> gp_Hypr2d: ... @staticmethod - def Intervals(C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def Intervals( + C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... @staticmethod def IsClosed(C: Adaptor2d_Curve2d) -> bool: ... @staticmethod @@ -260,7 +348,9 @@ class IntPatch_HInterTool: @staticmethod def Parameter(V: Adaptor3d_HVertex, C: Adaptor2d_Curve2d) -> float: ... @staticmethod - def Project(C: Adaptor2d_Curve2d, P: gp_Pnt2d, Ptproj: gp_Pnt2d) -> Tuple[bool, float]: ... + def Project( + C: Adaptor2d_Curve2d, P: gp_Pnt2d, Ptproj: gp_Pnt2d + ) -> Tuple[bool, float]: ... def SamplePoint(self, S: Adaptor3d_Surface, Index: int) -> Tuple[float, float]: ... @staticmethod def SingularOnUMax(S: Adaptor3d_Surface) -> bool: ... @@ -281,14 +371,32 @@ class IntPatch_ImpImpIntersection: @overload def __init__(self) -> None: ... @overload - def __init__(self, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool, TolArc: float, TolTang: float, theIsReqToKeepRLine: Optional[bool] = False) -> None: ... + def __init__( + self, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + S2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + TolArc: float, + TolTang: float, + theIsReqToKeepRLine: Optional[bool] = False, + ) -> None: ... def IsDone(self) -> bool: ... def IsEmpty(self) -> bool: ... def Line(self, Index: int) -> IntPatch_Line: ... def NbLines(self) -> int: ... def NbPnts(self) -> int: ... def OppositeFaces(self) -> bool: ... - def Perform(self, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool, TolArc: float, TolTang: float, theIsReqToKeepRLine: Optional[bool] = False) -> None: ... + def Perform( + self, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + S2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + TolArc: float, + TolTang: float, + theIsReqToKeepRLine: Optional[bool] = False, + ) -> None: ... def Point(self, Index: int) -> IntPatch_Point: ... def TangentFaces(self) -> bool: ... @@ -296,13 +404,33 @@ class IntPatch_ImpPrmIntersection: @overload def __init__(self) -> None: ... @overload - def __init__(self, Surf1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, Surf2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool, TolArc: float, TolTang: float, Fleche: float, Pas: float) -> None: ... + def __init__( + self, + Surf1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + Surf2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + TolArc: float, + TolTang: float, + Fleche: float, + Pas: float, + ) -> None: ... def IsDone(self) -> bool: ... def IsEmpty(self) -> bool: ... def Line(self, Index: int) -> IntPatch_Line: ... def NbLines(self) -> int: ... def NbPnts(self) -> int: ... - def Perform(self, Surf1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, Surf2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool, TolArc: float, TolTang: float, Fleche: float, Pas: float) -> None: ... + def Perform( + self, + Surf1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + Surf2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + TolArc: float, + TolTang: float, + Fleche: float, + Pas: float, + ) -> None: ... def Point(self, Index: int) -> IntPatch_Point: ... def SetStartPoint(self, U: float, V: float) -> None: ... @@ -310,11 +438,15 @@ class IntPatch_InterferencePolyhedron(Intf_Interference): @overload def __init__(self) -> None: ... @overload - def __init__(self, Obje1: IntPatch_Polyhedron, Obje2: IntPatch_Polyhedron) -> None: ... + def __init__( + self, Obje1: IntPatch_Polyhedron, Obje2: IntPatch_Polyhedron + ) -> None: ... @overload def __init__(self, Obje: IntPatch_Polyhedron) -> None: ... @overload - def Perform(self, Obje1: IntPatch_Polyhedron, Obje2: IntPatch_Polyhedron) -> None: ... + def Perform( + self, Obje1: IntPatch_Polyhedron, Obje2: IntPatch_Polyhedron + ) -> None: ... @overload def Perform(self, Obje: IntPatch_Polyhedron) -> None: ... @@ -322,14 +454,42 @@ class IntPatch_Intersection: @overload def __init__(self) -> None: ... @overload - def __init__(self, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool, TolArc: float, TolTang: float) -> None: ... - @overload - def __init__(self, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, TolArc: float, TolTang: float) -> None: ... + def __init__( + self, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + S2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + TolArc: float, + TolTang: float, + ) -> None: ... + @overload + def __init__( + self, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + TolArc: float, + TolTang: float, + ) -> None: ... @staticmethod - def CheckSingularPoints(theS1: Adaptor3d_Surface, theD1: Adaptor3d_TopolTool, theS2: Adaptor3d_Surface) -> Tuple[bool, float]: ... + def CheckSingularPoints( + theS1: Adaptor3d_Surface, theD1: Adaptor3d_TopolTool, theS2: Adaptor3d_Surface + ) -> Tuple[bool, float]: ... @staticmethod - def DefineUVMaxStep(theS1: Adaptor3d_Surface, theD1: Adaptor3d_TopolTool, theS2: Adaptor3d_Surface, theD2: Adaptor3d_TopolTool) -> float: ... - def Dump(self, Mode: int, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool) -> None: ... + def DefineUVMaxStep( + theS1: Adaptor3d_Surface, + theD1: Adaptor3d_TopolTool, + theS2: Adaptor3d_Surface, + theD2: Adaptor3d_TopolTool, + ) -> float: ... + def Dump( + self, + Mode: int, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + S2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + ) -> None: ... def IsDone(self) -> bool: ... def IsEmpty(self) -> bool: ... def Line(self, Index: int) -> IntPatch_Line: ... @@ -337,16 +497,59 @@ class IntPatch_Intersection: def NbPnts(self) -> int: ... def OppositeFaces(self) -> bool: ... @overload - def Perform(self, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool, TolArc: float, TolTang: float, isGeomInt: Optional[bool] = True, theIsReqToKeepRLine: Optional[bool] = False, theIsReqToPostWLProc: Optional[bool] = True) -> None: ... - @overload - def Perform(self, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool, TolArc: float, TolTang: float, LOfPnts: IntSurf_ListOfPntOn2S, isGeomInt: Optional[bool] = True, theIsReqToKeepRLine: Optional[bool] = False, theIsReqToPostWLProc: Optional[bool] = True) -> None: ... - @overload - def Perform(self, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool, U1: float, V1: float, U2: float, V2: float, TolArc: float, TolTang: float) -> None: ... - @overload - def Perform(self, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, TolArc: float, TolTang: float) -> None: ... + def Perform( + self, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + S2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + TolArc: float, + TolTang: float, + isGeomInt: Optional[bool] = True, + theIsReqToKeepRLine: Optional[bool] = False, + theIsReqToPostWLProc: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + S2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + TolArc: float, + TolTang: float, + LOfPnts: IntSurf_ListOfPntOn2S, + isGeomInt: Optional[bool] = True, + theIsReqToKeepRLine: Optional[bool] = False, + theIsReqToPostWLProc: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + S2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + U1: float, + V1: float, + U2: float, + V2: float, + TolArc: float, + TolTang: float, + ) -> None: ... + @overload + def Perform( + self, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + TolArc: float, + TolTang: float, + ) -> None: ... def Point(self, Index: int) -> IntPatch_Point: ... def SequenceOfLine(self) -> IntPatch_SequenceOfLine: ... - def SetTolerances(self, TolArc: float, TolTang: float, UVMaxStep: float, Fleche: float) -> None: ... + def SetTolerances( + self, TolArc: float, TolTang: float, UVMaxStep: float, Fleche: float + ) -> None: ... def TangentFaces(self) -> bool: ... class IntPatch_Line(Standard_Transient): @@ -366,7 +569,16 @@ class IntPatch_LineConstructor: def __init__(self, mode: int) -> None: ... def Line(self, index: int) -> IntPatch_Line: ... def NbLines(self) -> int: ... - def Perform(self, SL: IntPatch_SequenceOfLine, L: IntPatch_Line, S1: Adaptor3d_Surface, D1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, D2: Adaptor3d_TopolTool, Tol: float) -> None: ... + def Perform( + self, + SL: IntPatch_SequenceOfLine, + L: IntPatch_Line, + S1: Adaptor3d_Surface, + D1: Adaptor3d_TopolTool, + S2: Adaptor3d_Surface, + D2: Adaptor3d_TopolTool, + Tol: float, + ) -> None: ... class IntPatch_Point: def __init__(self) -> None: ... @@ -387,7 +599,14 @@ class IntPatch_Point: def ParametersOnS2(self) -> Tuple[float, float]: ... def PntOn2S(self) -> IntSurf_PntOn2S: ... def ReverseTransition(self) -> None: ... - def SetArc(self, OnFirst: bool, A: Adaptor2d_Curve2d, Param: float, TLine: IntSurf_Transition, TArc: IntSurf_Transition) -> None: ... + def SetArc( + self, + OnFirst: bool, + A: Adaptor2d_Curve2d, + Param: float, + TLine: IntSurf_Transition, + TArc: IntSurf_Transition, + ) -> None: ... def SetMultiple(self, IsMult: bool) -> None: ... def SetParameter(self, Para: float) -> None: ... def SetParameters(self, U1: float, V1: float, U2: float, V2: float) -> None: ... @@ -429,13 +648,26 @@ class IntPatch_PolyhedronTool: @staticmethod def Point(thePolyh: IntPatch_Polyhedron, Index: int) -> gp_Pnt: ... @staticmethod - def TriConnex(thePolyh: IntPatch_Polyhedron, Triang: int, Pivot: int, Pedge: int) -> Tuple[int, int, int]: ... + def TriConnex( + thePolyh: IntPatch_Polyhedron, Triang: int, Pivot: int, Pedge: int + ) -> Tuple[int, int, int]: ... @staticmethod def Triangle(thePolyh: IntPatch_Polyhedron, Index: int) -> Tuple[int, int, int]: ... class IntPatch_PrmPrmIntersection: def __init__(self) -> None: ... - def CodeReject(self, x1: float, y1: float, z1: float, x2: float, y2: float, z2: float, x3: float, y3: float, z3: float) -> int: ... + def CodeReject( + self, + x1: float, + y1: float, + z1: float, + x2: float, + y2: float, + z2: float, + x3: float, + y3: float, + z3: float, + ) -> int: ... def DansGrille(self, t: int) -> int: ... def GrilleInteger(self, ix: int, iy: int, iz: int) -> int: ... def IntegerGrille(self, t: int) -> Tuple[int, int, int]: ... @@ -444,27 +676,154 @@ class IntPatch_PrmPrmIntersection: def Line(self, Index: int) -> IntPatch_Line: ... def NbLines(self) -> int: ... def NbPointsGrille(self) -> int: ... - def NewLine(self, Caro1: Adaptor3d_Surface, Caro2: Adaptor3d_Surface, IndexLine: int, LowPoint: int, HighPoint: int, NbPoints: int) -> IntPatch_Line: ... - @overload - def Perform(self, Caro1: Adaptor3d_Surface, Polyhedron1: IntPatch_Polyhedron, Domain1: Adaptor3d_TopolTool, Caro2: Adaptor3d_Surface, Polyhedron2: IntPatch_Polyhedron, Domain2: Adaptor3d_TopolTool, TolTangency: float, Epsilon: float, Deflection: float, Increment: float) -> None: ... - @overload - def Perform(self, Caro1: Adaptor3d_Surface, Polyhedron1: IntPatch_Polyhedron, Domain1: Adaptor3d_TopolTool, TolTangency: float, Epsilon: float, Deflection: float, Increment: float) -> None: ... - @overload - def Perform(self, Caro1: Adaptor3d_Surface, Domain1: Adaptor3d_TopolTool, Caro2: Adaptor3d_Surface, Domain2: Adaptor3d_TopolTool, TolTangency: float, Epsilon: float, Deflection: float, Increment: float, ClearFlag: Optional[bool] = True) -> None: ... - @overload - def Perform(self, Caro1: Adaptor3d_Surface, Domain1: Adaptor3d_TopolTool, Caro2: Adaptor3d_Surface, Domain2: Adaptor3d_TopolTool, TolTangency: float, Epsilon: float, Deflection: float, Increment: float, ListOfPnts: IntSurf_ListOfPntOn2S) -> None: ... - @overload - def Perform(self, Caro1: Adaptor3d_Surface, Domain1: Adaptor3d_TopolTool, Caro2: Adaptor3d_Surface, Domain2: Adaptor3d_TopolTool, U1: float, V1: float, U2: float, V2: float, TolTangency: float, Epsilon: float, Deflection: float, Increment: float) -> None: ... - @overload - def Perform(self, Caro1: Adaptor3d_Surface, Domain1: Adaptor3d_TopolTool, TolTangency: float, Epsilon: float, Deflection: float, Increment: float) -> None: ... - @overload - def Perform(self, Caro1: Adaptor3d_Surface, Domain1: Adaptor3d_TopolTool, Caro2: Adaptor3d_Surface, Polyhedron2: IntPatch_Polyhedron, Domain2: Adaptor3d_TopolTool, TolTangency: float, Epsilon: float, Deflection: float, Increment: float) -> None: ... - @overload - def Perform(self, Caro1: Adaptor3d_Surface, Polyhedron1: IntPatch_Polyhedron, Domain1: Adaptor3d_TopolTool, Caro2: Adaptor3d_Surface, Domain2: Adaptor3d_TopolTool, TolTangency: float, Epsilon: float, Deflection: float, Increment: float) -> None: ... - def PointDepart(self, LineOn2S: IntSurf_LineOn2S, S1: Adaptor3d_Surface, SU1: int, SV1: int, S2: Adaptor3d_Surface, SU2: int, SV2: int) -> None: ... - def Remplit(self, a: int, b: int, c: int, Map: IntPatch_PrmPrmIntersection_T3Bits) -> None: ... - def RemplitLin(self, x1: int, y1: int, z1: int, x2: int, y2: int, z2: int, Map: IntPatch_PrmPrmIntersection_T3Bits) -> None: ... - def RemplitTri(self, x1: int, y1: int, z1: int, x2: int, y2: int, z2: int, x3: int, y3: int, z3: int, Map: IntPatch_PrmPrmIntersection_T3Bits) -> None: ... + def NewLine( + self, + Caro1: Adaptor3d_Surface, + Caro2: Adaptor3d_Surface, + IndexLine: int, + LowPoint: int, + HighPoint: int, + NbPoints: int, + ) -> IntPatch_Line: ... + @overload + def Perform( + self, + Caro1: Adaptor3d_Surface, + Polyhedron1: IntPatch_Polyhedron, + Domain1: Adaptor3d_TopolTool, + Caro2: Adaptor3d_Surface, + Polyhedron2: IntPatch_Polyhedron, + Domain2: Adaptor3d_TopolTool, + TolTangency: float, + Epsilon: float, + Deflection: float, + Increment: float, + ) -> None: ... + @overload + def Perform( + self, + Caro1: Adaptor3d_Surface, + Polyhedron1: IntPatch_Polyhedron, + Domain1: Adaptor3d_TopolTool, + TolTangency: float, + Epsilon: float, + Deflection: float, + Increment: float, + ) -> None: ... + @overload + def Perform( + self, + Caro1: Adaptor3d_Surface, + Domain1: Adaptor3d_TopolTool, + Caro2: Adaptor3d_Surface, + Domain2: Adaptor3d_TopolTool, + TolTangency: float, + Epsilon: float, + Deflection: float, + Increment: float, + ClearFlag: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, + Caro1: Adaptor3d_Surface, + Domain1: Adaptor3d_TopolTool, + Caro2: Adaptor3d_Surface, + Domain2: Adaptor3d_TopolTool, + TolTangency: float, + Epsilon: float, + Deflection: float, + Increment: float, + ListOfPnts: IntSurf_ListOfPntOn2S, + ) -> None: ... + @overload + def Perform( + self, + Caro1: Adaptor3d_Surface, + Domain1: Adaptor3d_TopolTool, + Caro2: Adaptor3d_Surface, + Domain2: Adaptor3d_TopolTool, + U1: float, + V1: float, + U2: float, + V2: float, + TolTangency: float, + Epsilon: float, + Deflection: float, + Increment: float, + ) -> None: ... + @overload + def Perform( + self, + Caro1: Adaptor3d_Surface, + Domain1: Adaptor3d_TopolTool, + TolTangency: float, + Epsilon: float, + Deflection: float, + Increment: float, + ) -> None: ... + @overload + def Perform( + self, + Caro1: Adaptor3d_Surface, + Domain1: Adaptor3d_TopolTool, + Caro2: Adaptor3d_Surface, + Polyhedron2: IntPatch_Polyhedron, + Domain2: Adaptor3d_TopolTool, + TolTangency: float, + Epsilon: float, + Deflection: float, + Increment: float, + ) -> None: ... + @overload + def Perform( + self, + Caro1: Adaptor3d_Surface, + Polyhedron1: IntPatch_Polyhedron, + Domain1: Adaptor3d_TopolTool, + Caro2: Adaptor3d_Surface, + Domain2: Adaptor3d_TopolTool, + TolTangency: float, + Epsilon: float, + Deflection: float, + Increment: float, + ) -> None: ... + def PointDepart( + self, + LineOn2S: IntSurf_LineOn2S, + S1: Adaptor3d_Surface, + SU1: int, + SV1: int, + S2: Adaptor3d_Surface, + SU2: int, + SV2: int, + ) -> None: ... + def Remplit( + self, a: int, b: int, c: int, Map: IntPatch_PrmPrmIntersection_T3Bits + ) -> None: ... + def RemplitLin( + self, + x1: int, + y1: int, + z1: int, + x2: int, + y2: int, + z2: int, + Map: IntPatch_PrmPrmIntersection_T3Bits, + ) -> None: ... + def RemplitTri( + self, + x1: int, + y1: int, + z1: int, + x2: int, + y2: int, + z2: int, + x3: int, + y3: int, + z3: int, + Map: IntPatch_PrmPrmIntersection_T3Bits, + ) -> None: ... class IntPatch_PrmPrmIntersection_T3Bits: def __init__(self, size: int) -> None: ... @@ -476,17 +835,52 @@ class IntPatch_PrmPrmIntersection_T3Bits: class IntPatch_RstInt: @staticmethod - def PutVertexOnLine(L: IntPatch_Line, Surf: Adaptor3d_Surface, Domain: Adaptor3d_TopolTool, OtherSurf: Adaptor3d_Surface, OnFirst: bool, Tol: float) -> None: ... + def PutVertexOnLine( + L: IntPatch_Line, + Surf: Adaptor3d_Surface, + Domain: Adaptor3d_TopolTool, + OtherSurf: Adaptor3d_Surface, + OnFirst: bool, + Tol: float, + ) -> None: ... class IntPatch_SpecialPoints: @staticmethod - def AddCrossUVIsoPoint(theQSurf: Adaptor3d_Surface, thePSurf: Adaptor3d_Surface, theRefPt: IntSurf_PntOn2S, theTol3d: float, theAddedPoint: IntSurf_PntOn2S, theIsReversed: Optional[bool] = False) -> bool: ... + def AddCrossUVIsoPoint( + theQSurf: Adaptor3d_Surface, + thePSurf: Adaptor3d_Surface, + theRefPt: IntSurf_PntOn2S, + theTol3d: float, + theAddedPoint: IntSurf_PntOn2S, + theIsReversed: Optional[bool] = False, + ) -> bool: ... @staticmethod - def AddSingularPole(theQSurf: Adaptor3d_Surface, thePSurf: Adaptor3d_Surface, thePtIso: IntSurf_PntOn2S, theVertex: IntPatch_Point, theAddedPoint: IntSurf_PntOn2S, theIsReversed: Optional[bool] = False, theIsReqRefCheck: Optional[bool] = False) -> bool: ... + def AddSingularPole( + theQSurf: Adaptor3d_Surface, + thePSurf: Adaptor3d_Surface, + thePtIso: IntSurf_PntOn2S, + theVertex: IntPatch_Point, + theAddedPoint: IntSurf_PntOn2S, + theIsReversed: Optional[bool] = False, + theIsReqRefCheck: Optional[bool] = False, + ) -> bool: ... @staticmethod - def AdjustPointAndVertex(theRefPoint: IntSurf_PntOn2S, theArrPeriods_list: List[float], theNewPoint: IntSurf_PntOn2S, theVertex: Optional[IntPatch_Point] = 0) -> None: ... + def AdjustPointAndVertex( + theRefPoint: IntSurf_PntOn2S, + theArrPeriods_list: List[float], + theNewPoint: IntSurf_PntOn2S, + theVertex: Optional[IntPatch_Point] = 0, + ) -> None: ... @staticmethod - def ContinueAfterSpecialPoint(theQSurf: Adaptor3d_Surface, thePSurf: Adaptor3d_Surface, theRefPt: IntSurf_PntOn2S, theSPType: IntPatch_SpecPntType, theTol2D: float, theNewPoint: IntSurf_PntOn2S, theIsReversed: Optional[bool] = False) -> bool: ... + def ContinueAfterSpecialPoint( + theQSurf: Adaptor3d_Surface, + thePSurf: Adaptor3d_Surface, + theRefPt: IntSurf_PntOn2S, + theSPType: IntPatch_SpecPntType, + theTol2D: float, + theNewPoint: IntSurf_PntOn2S, + theIsReversed: Optional[bool] = False, + ) -> bool: ... class IntPatch_TheIWLineOfTheIWalking(Standard_Transient): def __init__(self, theAllocator: Optional[IntSurf_Allocator] = 0) -> None: ... @@ -495,12 +889,18 @@ class IntPatch_TheIWLineOfTheIWalking(Standard_Transient): @overload def AddStatusFirst(self, Closed: bool, HasFirst: bool) -> None: ... @overload - def AddStatusFirst(self, Closed: bool, HasLast: bool, Index: int, P: IntSurf_PathPoint) -> None: ... - def AddStatusFirstLast(self, Closed: bool, HasFirst: bool, HasLast: bool) -> None: ... + def AddStatusFirst( + self, Closed: bool, HasLast: bool, Index: int, P: IntSurf_PathPoint + ) -> None: ... + def AddStatusFirstLast( + self, Closed: bool, HasFirst: bool, HasLast: bool + ) -> None: ... @overload def AddStatusLast(self, HasLast: bool) -> None: ... @overload - def AddStatusLast(self, HasLast: bool, Index: int, P: IntSurf_PathPoint) -> None: ... + def AddStatusLast( + self, HasLast: bool, Index: int, P: IntSurf_PathPoint + ) -> None: ... def Cut(self, Index: int) -> None: ... def FirstPoint(self) -> IntSurf_PathPoint: ... def FirstPointIndex(self) -> int: ... @@ -523,14 +923,33 @@ class IntPatch_TheIWLineOfTheIWalking(Standard_Transient): def Value(self, Index: int) -> IntSurf_PntOn2S: ... class IntPatch_TheIWalking: - def __init__(self, Epsilon: float, Deflection: float, Step: float, theToFillHoles: Optional[bool] = False) -> None: ... + def __init__( + self, + Epsilon: float, + Deflection: float, + Step: float, + theToFillHoles: Optional[bool] = False, + ) -> None: ... def IsDone(self) -> bool: ... def NbLines(self) -> int: ... def NbSinglePnts(self) -> int: ... @overload - def Perform(self, Pnts1: IntSurf_SequenceOfPathPoint, Pnts2: IntSurf_SequenceOfInteriorPoint, Func: IntPatch_TheSurfFunction, S: Adaptor3d_Surface, Reversed: Optional[bool] = False) -> None: ... - @overload - def Perform(self, Pnts1: IntSurf_SequenceOfPathPoint, Func: IntPatch_TheSurfFunction, S: Adaptor3d_Surface, Reversed: Optional[bool] = False) -> None: ... + def Perform( + self, + Pnts1: IntSurf_SequenceOfPathPoint, + Pnts2: IntSurf_SequenceOfInteriorPoint, + Func: IntPatch_TheSurfFunction, + S: Adaptor3d_Surface, + Reversed: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + Pnts1: IntSurf_SequenceOfPathPoint, + Func: IntPatch_TheSurfFunction, + S: Adaptor3d_Surface, + Reversed: Optional[bool] = False, + ) -> None: ... def SetTolerance(self, Epsilon: float, Deflection: float, Step: float) -> None: ... def SinglePnt(self, Index: int) -> IntSurf_PathPoint: ... def Value(self, Index: int) -> IntPatch_TheIWLineOfTheIWalking: ... @@ -539,16 +958,34 @@ class IntPatch_ThePathPointOfTheSOnBounds: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, Tol: float, V: Adaptor3d_HVertex, A: Adaptor2d_Curve2d, Parameter: float) -> None: ... - @overload - def __init__(self, P: gp_Pnt, Tol: float, A: Adaptor2d_Curve2d, Parameter: float) -> None: ... + def __init__( + self, + P: gp_Pnt, + Tol: float, + V: Adaptor3d_HVertex, + A: Adaptor2d_Curve2d, + Parameter: float, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, Tol: float, A: Adaptor2d_Curve2d, Parameter: float + ) -> None: ... def Arc(self) -> Adaptor2d_Curve2d: ... def IsNew(self) -> bool: ... def Parameter(self) -> float: ... @overload - def SetValue(self, P: gp_Pnt, Tol: float, V: Adaptor3d_HVertex, A: Adaptor2d_Curve2d, Parameter: float) -> None: ... - @overload - def SetValue(self, P: gp_Pnt, Tol: float, A: Adaptor2d_Curve2d, Parameter: float) -> None: ... + def SetValue( + self, + P: gp_Pnt, + Tol: float, + V: Adaptor3d_HVertex, + A: Adaptor2d_Curve2d, + Parameter: float, + ) -> None: ... + @overload + def SetValue( + self, P: gp_Pnt, Tol: float, A: Adaptor2d_Curve2d, Parameter: float + ) -> None: ... def Tolerance(self) -> float: ... def Value(self) -> gp_Pnt: ... def Vertex(self) -> Adaptor3d_HVertex: ... @@ -559,7 +996,14 @@ class IntPatch_TheSOnBounds: def IsDone(self) -> bool: ... def NbPoints(self) -> int: ... def NbSegments(self) -> int: ... - def Perform(self, F: IntPatch_ArcFunction, Domain: Adaptor3d_TopolTool, TolBoundary: float, TolTangency: float, RecheckOnRegularity: Optional[bool] = False) -> None: ... + def Perform( + self, + F: IntPatch_ArcFunction, + Domain: Adaptor3d_TopolTool, + TolBoundary: float, + TolTangency: float, + RecheckOnRegularity: Optional[bool] = False, + ) -> None: ... def Point(self, Index: int) -> IntPatch_ThePathPointOfTheSOnBounds: ... def Segment(self, Index: int) -> IntPatch_TheSegmentOfTheSOnBounds: ... @@ -567,13 +1011,31 @@ class IntPatch_TheSearchInside: @overload def __init__(self) -> None: ... @overload - def __init__(self, F: IntPatch_TheSurfFunction, Surf: Adaptor3d_Surface, T: Adaptor3d_TopolTool, Epsilon: float) -> None: ... + def __init__( + self, + F: IntPatch_TheSurfFunction, + Surf: Adaptor3d_Surface, + T: Adaptor3d_TopolTool, + Epsilon: float, + ) -> None: ... def IsDone(self) -> bool: ... def NbPoints(self) -> int: ... @overload - def Perform(self, F: IntPatch_TheSurfFunction, Surf: Adaptor3d_Surface, T: Adaptor3d_TopolTool, Epsilon: float) -> None: ... - @overload - def Perform(self, F: IntPatch_TheSurfFunction, Surf: Adaptor3d_Surface, UStart: float, VStart: float) -> None: ... + def Perform( + self, + F: IntPatch_TheSurfFunction, + Surf: Adaptor3d_Surface, + T: Adaptor3d_TopolTool, + Epsilon: float, + ) -> None: ... + @overload + def Perform( + self, + F: IntPatch_TheSurfFunction, + Surf: Adaptor3d_Surface, + UStart: float, + VStart: float, + ) -> None: ... def Value(self, Index: int) -> IntSurf_InteriorPoint: ... class IntPatch_TheSegmentOfTheSOnBounds: @@ -583,7 +1045,9 @@ class IntPatch_TheSegmentOfTheSOnBounds: def HasFirstPoint(self) -> bool: ... def HasLastPoint(self) -> bool: ... def LastPoint(self) -> IntPatch_ThePathPointOfTheSOnBounds: ... - def SetLimitPoint(self, V: IntPatch_ThePathPointOfTheSOnBounds, First: bool) -> None: ... + def SetLimitPoint( + self, V: IntPatch_ThePathPointOfTheSOnBounds, First: bool + ) -> None: ... def SetValue(self, A: Adaptor2d_Curve2d) -> None: ... class IntPatch_TheSurfFunction(math_FunctionSetWithDerivatives): @@ -614,15 +1078,39 @@ class IntPatch_TheSurfFunction(math_FunctionSetWithDerivatives): class IntPatch_WLineTool: @staticmethod - def ComputePurgedWLine(theWLine: IntPatch_WLine, theS1: Adaptor3d_Surface, theS2: Adaptor3d_Surface, theDom1: Adaptor3d_TopolTool, theDom2: Adaptor3d_TopolTool) -> IntPatch_WLine: ... + def ComputePurgedWLine( + theWLine: IntPatch_WLine, + theS1: Adaptor3d_Surface, + theS2: Adaptor3d_Surface, + theDom1: Adaptor3d_TopolTool, + theDom2: Adaptor3d_TopolTool, + ) -> IntPatch_WLine: ... @staticmethod - def JoinWLines(theSlin: IntPatch_SequenceOfLine, theSPnt: IntPatch_SequenceOfPoint, theS1: Adaptor3d_Surface, theS2: Adaptor3d_Surface, theTol3D: float) -> None: ... + def JoinWLines( + theSlin: IntPatch_SequenceOfLine, + theSPnt: IntPatch_SequenceOfPoint, + theS1: Adaptor3d_Surface, + theS2: Adaptor3d_Surface, + theTol3D: float, + ) -> None: ... class IntPatch_ALine(IntPatch_Line): @overload - def __init__(self, C: IntAna_Curve, Tang: bool, Trans1: IntSurf_TypeTrans, Trans2: IntSurf_TypeTrans) -> None: ... - @overload - def __init__(self, C: IntAna_Curve, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation) -> None: ... + def __init__( + self, + C: IntAna_Curve, + Tang: bool, + Trans1: IntSurf_TypeTrans, + Trans2: IntSurf_TypeTrans, + ) -> None: ... + @overload + def __init__( + self, + C: IntAna_Curve, + Tang: bool, + Situ1: IntSurf_Situation, + Situ2: IntSurf_Situation, + ) -> None: ... @overload def __init__(self, C: IntAna_Curve, Tang: bool) -> None: ... def AddVertex(self, Pnt: IntPatch_Point) -> None: ... @@ -646,33 +1134,81 @@ class IntPatch_ALine(IntPatch_Line): class IntPatch_GLine(IntPatch_Line): @overload - def __init__(self, L: gp_Lin, Tang: bool, Trans1: IntSurf_TypeTrans, Trans2: IntSurf_TypeTrans) -> None: ... + def __init__( + self, + L: gp_Lin, + Tang: bool, + Trans1: IntSurf_TypeTrans, + Trans2: IntSurf_TypeTrans, + ) -> None: ... @overload - def __init__(self, L: gp_Lin, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation) -> None: ... + def __init__( + self, L: gp_Lin, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation + ) -> None: ... @overload def __init__(self, L: gp_Lin, Tang: bool) -> None: ... @overload - def __init__(self, C: gp_Circ, Tang: bool, Trans1: IntSurf_TypeTrans, Trans2: IntSurf_TypeTrans) -> None: ... + def __init__( + self, + C: gp_Circ, + Tang: bool, + Trans1: IntSurf_TypeTrans, + Trans2: IntSurf_TypeTrans, + ) -> None: ... @overload - def __init__(self, C: gp_Circ, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation) -> None: ... + def __init__( + self, C: gp_Circ, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation + ) -> None: ... @overload def __init__(self, C: gp_Circ, Tang: bool) -> None: ... @overload - def __init__(self, E: gp_Elips, Tang: bool, Trans1: IntSurf_TypeTrans, Trans2: IntSurf_TypeTrans) -> None: ... - @overload - def __init__(self, E: gp_Elips, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation) -> None: ... + def __init__( + self, + E: gp_Elips, + Tang: bool, + Trans1: IntSurf_TypeTrans, + Trans2: IntSurf_TypeTrans, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips, + Tang: bool, + Situ1: IntSurf_Situation, + Situ2: IntSurf_Situation, + ) -> None: ... @overload def __init__(self, E: gp_Elips, Tang: bool) -> None: ... @overload - def __init__(self, P: gp_Parab, Tang: bool, Trans1: IntSurf_TypeTrans, Trans2: IntSurf_TypeTrans) -> None: ... - @overload - def __init__(self, P: gp_Parab, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation) -> None: ... + def __init__( + self, + P: gp_Parab, + Tang: bool, + Trans1: IntSurf_TypeTrans, + Trans2: IntSurf_TypeTrans, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Parab, + Tang: bool, + Situ1: IntSurf_Situation, + Situ2: IntSurf_Situation, + ) -> None: ... @overload def __init__(self, P: gp_Parab, Tang: bool) -> None: ... @overload - def __init__(self, H: gp_Hypr, Tang: bool, Trans1: IntSurf_TypeTrans, Trans2: IntSurf_TypeTrans) -> None: ... + def __init__( + self, + H: gp_Hypr, + Tang: bool, + Trans1: IntSurf_TypeTrans, + Trans2: IntSurf_TypeTrans, + ) -> None: ... @overload - def __init__(self, H: gp_Hypr, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation) -> None: ... + def __init__( + self, H: gp_Hypr, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation + ) -> None: ... @overload def __init__(self, H: gp_Hypr, Tang: bool) -> None: ... def AddVertex(self, Pnt: IntPatch_Point) -> None: ... @@ -693,11 +1229,15 @@ class IntPatch_GLine(IntPatch_Line): def Vertex(self, Index: int) -> IntPatch_Point: ... class IntPatch_PointLine(IntPatch_Line): - def AddVertex(self, Pnt: IntPatch_Point, theIsPrepend: Optional[bool] = False) -> None: ... + def AddVertex( + self, Pnt: IntPatch_Point, theIsPrepend: Optional[bool] = False + ) -> None: ... def ChangeVertex(self, Index: int) -> IntPatch_Point: ... def ClearVertexes(self) -> None: ... @staticmethod - def CurvatureRadiusOfIntersLine(theS1: Adaptor3d_Surface, theS2: Adaptor3d_Surface, theUVPoint: IntSurf_PntOn2S) -> float: ... + def CurvatureRadiusOfIntersLine( + theS1: Adaptor3d_Surface, theS2: Adaptor3d_Surface, theUVPoint: IntSurf_PntOn2S + ) -> float: ... def Curve(self) -> IntSurf_LineOn2S: ... def IsOutBox(self, P: gp_Pnt) -> bool: ... def IsOutSurf1Box(self, P1: gp_Pnt2d) -> bool: ... @@ -709,7 +1249,14 @@ class IntPatch_PointLine(IntPatch_Line): def Vertex(self, Index: int) -> IntPatch_Point: ... class IntPatch_PolyArc(IntPatch_Polygo): - def __init__(self, A: Adaptor2d_Curve2d, NbSample: int, Pfirst: float, Plast: float, BoxOtherPolygon: Bnd_Box2d) -> None: ... + def __init__( + self, + A: Adaptor2d_Curve2d, + NbSample: int, + Pfirst: float, + Plast: float, + BoxOtherPolygon: Bnd_Box2d, + ) -> None: ... def Closed(self) -> bool: ... def NbPoints(self) -> int: ... def Parameter(self, Index: int) -> float: ... @@ -729,13 +1276,19 @@ class IntPatch_PolyLine(IntPatch_Polygo): class IntPatch_RLine(IntPatch_PointLine): @overload - def __init__(self, Tang: bool, Trans1: IntSurf_TypeTrans, Trans2: IntSurf_TypeTrans) -> None: ... + def __init__( + self, Tang: bool, Trans1: IntSurf_TypeTrans, Trans2: IntSurf_TypeTrans + ) -> None: ... @overload - def __init__(self, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation) -> None: ... + def __init__( + self, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation + ) -> None: ... @overload def __init__(self, Tang: bool) -> None: ... def Add(self, L: IntSurf_LineOn2S) -> None: ... - def AddVertex(self, Pnt: IntPatch_Point, theIsPrepend: Optional[bool] = False) -> None: ... + def AddVertex( + self, Pnt: IntPatch_Point, theIsPrepend: Optional[bool] = False + ) -> None: ... def ArcOnS1(self) -> Adaptor2d_Curve2d: ... def ArcOnS2(self) -> Adaptor2d_Curve2d: ... def ChangeVertex(self, Index: int) -> IntPatch_Point: ... @@ -770,12 +1323,26 @@ class IntPatch_RLine(IntPatch_PointLine): class IntPatch_WLine(IntPatch_PointLine): @overload - def __init__(self, Line: IntSurf_LineOn2S, Tang: bool, Trans1: IntSurf_TypeTrans, Trans2: IntSurf_TypeTrans) -> None: ... - @overload - def __init__(self, Line: IntSurf_LineOn2S, Tang: bool, Situ1: IntSurf_Situation, Situ2: IntSurf_Situation) -> None: ... + def __init__( + self, + Line: IntSurf_LineOn2S, + Tang: bool, + Trans1: IntSurf_TypeTrans, + Trans2: IntSurf_TypeTrans, + ) -> None: ... + @overload + def __init__( + self, + Line: IntSurf_LineOn2S, + Tang: bool, + Situ1: IntSurf_Situation, + Situ2: IntSurf_Situation, + ) -> None: ... @overload def __init__(self, Line: IntSurf_LineOn2S, Tang: bool) -> None: ... - def AddVertex(self, Pnt: IntPatch_Point, theIsPrepend: Optional[bool] = False) -> None: ... + def AddVertex( + self, Pnt: IntPatch_Point, theIsPrepend: Optional[bool] = False + ) -> None: ... def ChangeVertex(self, Index: int) -> IntPatch_Point: ... def ClearVertexes(self) -> None: ... def ComputeVertexParameters(self, Tol: float) -> None: ... @@ -820,10 +1387,9 @@ class IntPatch_WLine(IntPatch_PointLine): def V2Period(self) -> float: ... def Vertex(self, Index: int) -> IntPatch_Point: ... -#classnotwrapped +# classnotwrapped class IntPatch_Polyhedron: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntPolyh.i b/src/SWIG_files/wrapper/IntPolyh.i index 7ac40500f..bf49b22fb 100644 --- a/src/SWIG_files/wrapper/IntPolyh.i +++ b/src/SWIG_files/wrapper/IntPolyh.i @@ -85,6 +85,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = IntPolyh_ListIteratorOfListOfCouples(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(IntPolyh_SeqOfStartPoints) NCollection_Sequence; diff --git a/src/SWIG_files/wrapper/IntPolyh.pyi b/src/SWIG_files/wrapper/IntPolyh.pyi index 19b05115c..2f445779b 100644 --- a/src/SWIG_files/wrapper/IntPolyh.pyi +++ b/src/SWIG_files/wrapper/IntPolyh.pyi @@ -20,43 +20,55 @@ IntPolyh_ArrayOfTangentZones = NewType("IntPolyh_ArrayOfTangentZones", Any) # the following typedef cannot be wrapped as is IntPolyh_ArrayOfTriangles = NewType("IntPolyh_ArrayOfTriangles", Any) # the following typedef cannot be wrapped as is -IntPolyh_ListIteratorOfListOfCouples = NewType("IntPolyh_ListIteratorOfListOfCouples", Any) -IntPolyh_PMaillageAffinage = NewType("IntPolyh_PMaillageAffinage", IntPolyh_MaillageAffinage) +IntPolyh_ListIteratorOfListOfCouples = NewType( + "IntPolyh_ListIteratorOfListOfCouples", Any +) +IntPolyh_PMaillageAffinage = NewType( + "IntPolyh_PMaillageAffinage", IntPolyh_MaillageAffinage +) class IntPolyh_ListOfCouples: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: IntPolyh_Couple) -> IntPolyh_Couple: ... + def Assign(self, theItem: IntPolyh_ListOfCouples) -> IntPolyh_ListOfCouples: ... def Clear(self) -> None: ... def First(self) -> IntPolyh_Couple: ... def Last(self) -> IntPolyh_Couple: ... - def Append(self, theItem: IntPolyh_Couple) -> IntPolyh_Couple: ... def Prepend(self, theItem: IntPolyh_Couple) -> IntPolyh_Couple: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntPolyh_Couple: ... - def SetValue(self, theIndex: int, theValue: IntPolyh_Couple) -> None: ... - -class IntPolyh_SeqOfStartPoints: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> IntPolyh_Couple: ... + +class IntPolyh_SeqOfStartPoints: + def Assign(self, theItem: IntPolyh_StartPoint) -> IntPolyh_StartPoint: ... def Clear(self) -> None: ... def First(self) -> IntPolyh_StartPoint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntPolyh_StartPoint: ... def Length(self) -> int: ... - def Append(self, theItem: IntPolyh_StartPoint) -> IntPolyh_StartPoint: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntPolyh_StartPoint) -> IntPolyh_StartPoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntPolyh_StartPoint: ... def SetValue(self, theIndex: int, theValue: IntPolyh_StartPoint) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntPolyh_StartPoint: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class IntPolyh_Couple: @overload def __init__(self) -> None: ... @overload - def __init__(self, theTriangle1: int, theTriangle2: int, theAngle: Optional[float] = -2.0) -> None: ... + def __init__( + self, theTriangle1: int, theTriangle2: int, theAngle: Optional[float] = -2.0 + ) -> None: ... def Angle(self) -> float: ... def Dump(self, v: int) -> None: ... def FirstValue(self) -> int: ... @@ -71,7 +83,9 @@ class IntPolyh_Edge: @overload def __init__(self) -> None: ... @overload - def __init__(self, thePoint1: int, thePoint2: int, theTriangle1: int, theTriangle2: int) -> None: ... + def __init__( + self, thePoint1: int, thePoint2: int, theTriangle1: int, theTriangle2: int + ) -> None: ... def Dump(self, v: int) -> None: ... def FirstPoint(self) -> int: ... def FirstTriangle(self) -> int: ... @@ -86,11 +100,31 @@ class IntPolyh_Intersection: @overload def __init__(self, theS1: Adaptor3d_Surface, theS2: Adaptor3d_Surface) -> None: ... @overload - def __init__(self, theS1: Adaptor3d_Surface, theNbSU1: int, theNbSV1: int, theS2: Adaptor3d_Surface, theNbSU2: int, theNbSV2: int) -> None: ... + def __init__( + self, + theS1: Adaptor3d_Surface, + theNbSU1: int, + theNbSV1: int, + theS2: Adaptor3d_Surface, + theNbSU2: int, + theNbSV2: int, + ) -> None: ... @overload - def __init__(self, theS1: Adaptor3d_Surface, theUPars1: TColStd_Array1OfReal, theVPars1: TColStd_Array1OfReal, theS2: Adaptor3d_Surface, theUPars2: TColStd_Array1OfReal, theVPars2: TColStd_Array1OfReal) -> None: ... - def GetLinePoint(self, IndexLine: int, IndexPoint: int) -> Tuple[float, float, float, float, float, float, float, float]: ... - def GetTangentZonePoint(self, IndexLine: int, IndexPoint: int) -> Tuple[float, float, float, float, float, float, float]: ... + def __init__( + self, + theS1: Adaptor3d_Surface, + theUPars1: TColStd_Array1OfReal, + theVPars1: TColStd_Array1OfReal, + theS2: Adaptor3d_Surface, + theUPars2: TColStd_Array1OfReal, + theVPars2: TColStd_Array1OfReal, + ) -> None: ... + def GetLinePoint( + self, IndexLine: int, IndexPoint: int + ) -> Tuple[float, float, float, float, float, float, float, float]: ... + def GetTangentZonePoint( + self, IndexLine: int, IndexPoint: int + ) -> Tuple[float, float, float, float, float, float, float]: ... def IsDone(self) -> bool: ... def IsParallel(self) -> bool: ... def NbPointsInLine(self, IndexLine: int) -> int: ... @@ -111,10 +145,14 @@ class IntPolyh_Point: def Dump(self) -> None: ... @overload def Dump(self, i: int) -> None: ... - def Middle(self, MySurface: Adaptor3d_Surface, P1: IntPolyh_Point, P2: IntPolyh_Point) -> None: ... + def Middle( + self, MySurface: Adaptor3d_Surface, P1: IntPolyh_Point, P2: IntPolyh_Point + ) -> None: ... def Multiplication(self, rr: float) -> IntPolyh_Point: ... def PartOfCommon(self) -> int: ... - def Set(self, x: float, y: float, z: float, u: float, v: float, II: Optional[int] = 1) -> None: ... + def Set( + self, x: float, y: float, z: float, u: float, v: float, II: Optional[int] = 1 + ) -> None: ... def SetDegenerated(self, theFlag: bool) -> None: ... def SetPartOfCommon(self, ii: int) -> None: ... def SetU(self, u: float) -> None: ... @@ -156,7 +194,23 @@ class IntPolyh_StartPoint: @overload def __init__(self) -> None: ... @overload - def __init__(self, xx: float, yy: float, zz: float, uu1: float, vv1: float, uu2: float, vv2: float, T1: int, E1: int, LAM1: float, T2: int, E2: int, LAM2: float, List: int) -> None: ... + def __init__( + self, + xx: float, + yy: float, + zz: float, + uu1: float, + vv1: float, + uu2: float, + vv2: float, + T1: int, + E1: int, + LAM1: float, + T2: int, + E2: int, + LAM2: float, + List: int, + ) -> None: ... def ChainList(self) -> int: ... def CheckSameSP(self, SP: IntPolyh_StartPoint) -> int: ... @overload @@ -166,7 +220,9 @@ class IntPolyh_StartPoint: def E1(self) -> int: ... def E2(self) -> int: ... def GetAngle(self) -> float: ... - def GetEdgePoints(self, Triangle: IntPolyh_Triangle) -> Tuple[int, int, int, int]: ... + def GetEdgePoints( + self, Triangle: IntPolyh_Triangle + ) -> Tuple[int, int, int, int]: ... def Lambda1(self) -> float: ... def Lambda2(self) -> float: ... def SetAngle(self, ang: float) -> None: ... @@ -191,13 +247,29 @@ class IntPolyh_StartPoint: class IntPolyh_Tools: @staticmethod - def ComputeDeflection(theSurf: Adaptor3d_Surface, theUPars: TColStd_Array1OfReal, theVPars: TColStd_Array1OfReal) -> float: ... + def ComputeDeflection( + theSurf: Adaptor3d_Surface, + theUPars: TColStd_Array1OfReal, + theVPars: TColStd_Array1OfReal, + ) -> float: ... @staticmethod - def FillArrayOfPointNormal(theSurf: Adaptor3d_Surface, theUPars: TColStd_Array1OfReal, theVPars: TColStd_Array1OfReal, thePoints: IntPolyh_ArrayOfPointNormal) -> None: ... + def FillArrayOfPointNormal( + theSurf: Adaptor3d_Surface, + theUPars: TColStd_Array1OfReal, + theVPars: TColStd_Array1OfReal, + thePoints: IntPolyh_ArrayOfPointNormal, + ) -> None: ... @staticmethod def IsEnlargePossible(theSurf: Adaptor3d_Surface) -> Tuple[bool, bool]: ... @staticmethod - def MakeSampling(theSurf: Adaptor3d_Surface, theNbSU: int, theNbSV: int, theEnlargeZone: bool, theUPars: TColStd_Array1OfReal, theVPars: TColStd_Array1OfReal) -> None: ... + def MakeSampling( + theSurf: Adaptor3d_Surface, + theNbSU: int, + theNbSV: int, + theEnlargeZone: bool, + theUPars: TColStd_Array1OfReal, + theVPars: TColStd_Array1OfReal, + ) -> None: ... class IntPolyh_Triangle: @overload @@ -205,7 +277,9 @@ class IntPolyh_Triangle: @overload def __init__(self, thePoint1: int, thePoint2: int, thePoint3: int) -> None: ... def BoundingBox(self, thePoints: IntPolyh_ArrayOfPoints) -> Bnd_Box: ... - def ComputeDeflection(self, theSurface: Adaptor3d_Surface, thePoints: IntPolyh_ArrayOfPoints) -> float: ... + def ComputeDeflection( + self, theSurface: Adaptor3d_Surface, thePoints: IntPolyh_ArrayOfPoints + ) -> float: ... def Deflection(self) -> float: ... def Dump(self, v: int) -> None: ... def FirstEdge(self) -> int: ... @@ -213,21 +287,45 @@ class IntPolyh_Triangle: def FirstPoint(self) -> int: ... def GetEdgeNumber(self, theEdgeIndex: int) -> int: ... def GetEdgeOrientation(self, theEdgeIndex: int) -> int: ... - def GetNextTriangle(self, theTriangle: int, theEdgeNum: int, TEdges: IntPolyh_ArrayOfEdges) -> int: ... + def GetNextTriangle( + self, theTriangle: int, theEdgeNum: int, TEdges: IntPolyh_ArrayOfEdges + ) -> int: ... def HasIntersection(self) -> bool: ... def IsDegenerated(self) -> bool: ... def IsIntersectionPossible(self) -> bool: ... - def LinkEdges2Triangle(self, TEdges: IntPolyh_ArrayOfEdges, theEdge1: int, theEdge2: int, theEdge3: int) -> None: ... - def MiddleRefinement(self, theTriangleNumber: int, theSurface: Adaptor3d_Surface, TPoints: IntPolyh_ArrayOfPoints, TTriangles: IntPolyh_ArrayOfTriangles, TEdges: IntPolyh_ArrayOfEdges) -> None: ... - def MultipleMiddleRefinement(self, theRefineCriterion: float, theBox: Bnd_Box, theTriangleNumber: int, theSurface: Adaptor3d_Surface, TPoints: IntPolyh_ArrayOfPoints, TTriangles: IntPolyh_ArrayOfTriangles, TEdges: IntPolyh_ArrayOfEdges) -> None: ... + def LinkEdges2Triangle( + self, TEdges: IntPolyh_ArrayOfEdges, theEdge1: int, theEdge2: int, theEdge3: int + ) -> None: ... + def MiddleRefinement( + self, + theTriangleNumber: int, + theSurface: Adaptor3d_Surface, + TPoints: IntPolyh_ArrayOfPoints, + TTriangles: IntPolyh_ArrayOfTriangles, + TEdges: IntPolyh_ArrayOfEdges, + ) -> None: ... + def MultipleMiddleRefinement( + self, + theRefineCriterion: float, + theBox: Bnd_Box, + theTriangleNumber: int, + theSurface: Adaptor3d_Surface, + TPoints: IntPolyh_ArrayOfPoints, + TTriangles: IntPolyh_ArrayOfTriangles, + TEdges: IntPolyh_ArrayOfEdges, + ) -> None: ... def SecondEdge(self) -> int: ... def SecondEdgeOrientation(self) -> int: ... def SecondPoint(self) -> int: ... def SetDeflection(self, theDeflection: float) -> None: ... def SetDegenerated(self, theDegFlag: bool) -> None: ... def SetEdge(self, theEdgeIndex: int, theEdgeNumber: int) -> None: ... - def SetEdgeAndOrientation(self, theEdge: IntPolyh_Edge, theEdgeIndex: int) -> None: ... - def SetEdgeOrientation(self, theEdgeIndex: int, theEdgeOrientation: int) -> None: ... + def SetEdgeAndOrientation( + self, theEdge: IntPolyh_Edge, theEdgeIndex: int + ) -> None: ... + def SetEdgeOrientation( + self, theEdgeIndex: int, theEdgeOrientation: int + ) -> None: ... def SetFirstEdge(self, theEdge: int, theEdgeOrientation: int) -> None: ... def SetFirstPoint(self, thePoint: int) -> None: ... def SetIntersection(self, theInt: bool) -> None: ... @@ -240,13 +338,12 @@ class IntPolyh_Triangle: def ThirdEdgeOrientation(self) -> int: ... def ThirdPoint(self) -> int: ... -#classnotwrapped +# classnotwrapped class IntPolyh_Array: ... -#classnotwrapped +# classnotwrapped class IntPolyh_MaillageAffinage: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntRes2d.pyi b/src/SWIG_files/wrapper/IntRes2d.pyi index 19ba67799..e8ebe6c93 100644 --- a/src/SWIG_files/wrapper/IntRes2d.pyi +++ b/src/SWIG_files/wrapper/IntRes2d.pyi @@ -5,36 +5,57 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.gp import * - class IntRes2d_SequenceOfIntersectionPoint: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign( + self, theItem: IntRes2d_IntersectionPoint + ) -> IntRes2d_IntersectionPoint: ... def Clear(self) -> None: ... def First(self) -> IntRes2d_IntersectionPoint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntRes2d_IntersectionPoint: ... def Length(self) -> int: ... - def Append(self, theItem: IntRes2d_IntersectionPoint) -> IntRes2d_IntersectionPoint: ... - def Prepend(self, theItem: IntRes2d_IntersectionPoint) -> IntRes2d_IntersectionPoint: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: IntRes2d_IntersectionPoint + ) -> IntRes2d_IntersectionPoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntRes2d_IntersectionPoint: ... def SetValue(self, theIndex: int, theValue: IntRes2d_IntersectionPoint) -> None: ... - -class IntRes2d_SequenceOfIntersectionSegment: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntRes2d_IntersectionPoint: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntRes2d_SequenceOfIntersectionSegment: + def Assign( + self, theItem: IntRes2d_IntersectionSegment + ) -> IntRes2d_IntersectionSegment: ... def Clear(self) -> None: ... def First(self) -> IntRes2d_IntersectionSegment: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntRes2d_IntersectionSegment: ... def Length(self) -> int: ... - def Append(self, theItem: IntRes2d_IntersectionSegment) -> IntRes2d_IntersectionSegment: ... - def Prepend(self, theItem: IntRes2d_IntersectionSegment) -> IntRes2d_IntersectionSegment: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: IntRes2d_IntersectionSegment + ) -> IntRes2d_IntersectionSegment: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: IntRes2d_IntersectionSegment + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> IntRes2d_IntersectionSegment: ... - def SetValue(self, theIndex: int, theValue: IntRes2d_IntersectionSegment) -> None: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class IntRes2d_Position(IntEnum): IntRes2d_Head: int = ... @@ -69,7 +90,15 @@ class IntRes2d_Domain: @overload def __init__(self) -> None: ... @overload - def __init__(self, Pnt1: gp_Pnt2d, Par1: float, Tol1: float, Pnt2: gp_Pnt2d, Par2: float, Tol2: float) -> None: ... + def __init__( + self, + Pnt1: gp_Pnt2d, + Par1: float, + Tol1: float, + Pnt2: gp_Pnt2d, + Par2: float, + Tol2: float, + ) -> None: ... @overload def __init__(self, Pnt: gp_Pnt2d, Par: float, Tol: float, First: bool) -> None: ... def EquivalentParameters(self) -> Tuple[float, float]: ... @@ -84,7 +113,15 @@ class IntRes2d_Domain: def LastTolerance(self) -> float: ... def SetEquivalentParameters(self, zero: float, period: float) -> None: ... @overload - def SetValues(self, Pnt1: gp_Pnt2d, Par1: float, Tol1: float, Pnt2: gp_Pnt2d, Par2: float, Tol2: float) -> None: ... + def SetValues( + self, + Pnt1: gp_Pnt2d, + Par1: float, + Tol1: float, + Pnt2: gp_Pnt2d, + Par2: float, + Tol2: float, + ) -> None: ... @overload def SetValues(self) -> None: ... @overload @@ -103,10 +140,26 @@ class IntRes2d_IntersectionPoint: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt2d, Uc1: float, Uc2: float, Trans1: IntRes2d_Transition, Trans2: IntRes2d_Transition, ReversedFlag: bool) -> None: ... + def __init__( + self, + P: gp_Pnt2d, + Uc1: float, + Uc2: float, + Trans1: IntRes2d_Transition, + Trans2: IntRes2d_Transition, + ReversedFlag: bool, + ) -> None: ... def ParamOnFirst(self) -> float: ... def ParamOnSecond(self) -> float: ... - def SetValues(self, P: gp_Pnt2d, Uc1: float, Uc2: float, Trans1: IntRes2d_Transition, Trans2: IntRes2d_Transition, ReversedFlag: bool) -> None: ... + def SetValues( + self, + P: gp_Pnt2d, + Uc1: float, + Uc2: float, + Trans1: IntRes2d_Transition, + Trans2: IntRes2d_Transition, + ReversedFlag: bool, + ) -> None: ... def TransitionOfFirst(self) -> IntRes2d_Transition: ... def TransitionOfSecond(self) -> IntRes2d_Transition: ... def Value(self) -> gp_Pnt2d: ... @@ -115,9 +168,17 @@ class IntRes2d_IntersectionSegment: @overload def __init__(self) -> None: ... @overload - def __init__(self, P1: IntRes2d_IntersectionPoint, P2: IntRes2d_IntersectionPoint, Oppos: bool, ReverseFlag: bool) -> None: ... + def __init__( + self, + P1: IntRes2d_IntersectionPoint, + P2: IntRes2d_IntersectionPoint, + Oppos: bool, + ReverseFlag: bool, + ) -> None: ... @overload - def __init__(self, P: IntRes2d_IntersectionPoint, First: bool, Oppos: bool, ReverseFlag: bool) -> None: ... + def __init__( + self, P: IntRes2d_IntersectionPoint, First: bool, Oppos: bool, ReverseFlag: bool + ) -> None: ... @overload def __init__(self, Oppos: bool) -> None: ... def FirstPoint(self) -> IntRes2d_IntersectionPoint: ... @@ -130,9 +191,17 @@ class IntRes2d_Transition: @overload def __init__(self) -> None: ... @overload - def __init__(self, Tangent: bool, Pos: IntRes2d_Position, Type: IntRes2d_TypeTrans) -> None: ... + def __init__( + self, Tangent: bool, Pos: IntRes2d_Position, Type: IntRes2d_TypeTrans + ) -> None: ... @overload - def __init__(self, Tangent: bool, Pos: IntRes2d_Position, Situ: IntRes2d_Situation, Oppos: bool) -> None: ... + def __init__( + self, + Tangent: bool, + Pos: IntRes2d_Position, + Situ: IntRes2d_Situation, + Oppos: bool, + ) -> None: ... @overload def __init__(self, Pos: IntRes2d_Position) -> None: ... def IsOpposite(self) -> bool: ... @@ -140,9 +209,17 @@ class IntRes2d_Transition: def PositionOnCurve(self) -> IntRes2d_Position: ... def SetPosition(self, Pos: IntRes2d_Position) -> None: ... @overload - def SetValue(self, Tangent: bool, Pos: IntRes2d_Position, Type: IntRes2d_TypeTrans) -> None: ... + def SetValue( + self, Tangent: bool, Pos: IntRes2d_Position, Type: IntRes2d_TypeTrans + ) -> None: ... @overload - def SetValue(self, Tangent: bool, Pos: IntRes2d_Position, Situ: IntRes2d_Situation, Oppos: bool) -> None: ... + def SetValue( + self, + Tangent: bool, + Pos: IntRes2d_Position, + Situ: IntRes2d_Situation, + Oppos: bool, + ) -> None: ... @overload def SetValue(self, Pos: IntRes2d_Position) -> None: ... def Situation(self) -> IntRes2d_Situation: ... @@ -151,4 +228,3 @@ class IntRes2d_Transition: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntStart.pyi b/src/SWIG_files/wrapper/IntStart.pyi index f459b7eee..324f2fbfa 100644 --- a/src/SWIG_files/wrapper/IntStart.pyi +++ b/src/SWIG_files/wrapper/IntStart.pyi @@ -6,11 +6,9 @@ from OCC.Core.NCollection import * from OCC.Core.gp import * from OCC.Core.TopAbs import * - class IntStart_SITopolTool(Standard_Transient): def Classify(self, P: gp_Pnt2d, Tol: float) -> TopAbs_State: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntSurf.i b/src/SWIG_files/wrapper/IntSurf.i index a7eb86766..f19f8a2f7 100644 --- a/src/SWIG_files/wrapper/IntSurf.i +++ b/src/SWIG_files/wrapper/IntSurf.i @@ -119,6 +119,12 @@ IntSurf_Undecided = IntSurf_TypeTrans.IntSurf_Undecided %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = IntSurf_ListIteratorOfListOfPntOn2S(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(IntSurf_SequenceOfCouple) NCollection_Sequence; diff --git a/src/SWIG_files/wrapper/IntSurf.pyi b/src/SWIG_files/wrapper/IntSurf.pyi index 345f6abdd..eff37d7fc 100644 --- a/src/SWIG_files/wrapper/IntSurf.pyi +++ b/src/SWIG_files/wrapper/IntSurf.pyi @@ -11,78 +11,102 @@ from OCC.Core.GeomAbs import * IntSurf_Allocator = NewType("IntSurf_Allocator", Any) class IntSurf_ListOfPntOn2S: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: IntSurf_PntOn2S) -> IntSurf_PntOn2S: ... + def Assign(self, theItem: IntSurf_ListOfPntOn2S) -> IntSurf_ListOfPntOn2S: ... def Clear(self) -> None: ... def First(self) -> IntSurf_PntOn2S: ... def Last(self) -> IntSurf_PntOn2S: ... - def Append(self, theItem: IntSurf_PntOn2S) -> IntSurf_PntOn2S: ... def Prepend(self, theItem: IntSurf_PntOn2S) -> IntSurf_PntOn2S: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntSurf_PntOn2S: ... - def SetValue(self, theIndex: int, theValue: IntSurf_PntOn2S) -> None: ... - -class IntSurf_SequenceOfCouple: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> IntSurf_PntOn2S: ... + +class IntSurf_SequenceOfCouple: + def Assign(self, theItem: IntSurf_Couple) -> IntSurf_Couple: ... def Clear(self) -> None: ... def First(self) -> IntSurf_Couple: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntSurf_Couple: ... def Length(self) -> int: ... - def Append(self, theItem: IntSurf_Couple) -> IntSurf_Couple: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntSurf_Couple) -> IntSurf_Couple: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntSurf_Couple: ... def SetValue(self, theIndex: int, theValue: IntSurf_Couple) -> None: ... - -class IntSurf_SequenceOfInteriorPoint: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntSurf_Couple: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntSurf_SequenceOfInteriorPoint: + def Assign(self, theItem: IntSurf_InteriorPoint) -> IntSurf_InteriorPoint: ... def Clear(self) -> None: ... def First(self) -> IntSurf_InteriorPoint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntSurf_InteriorPoint: ... def Length(self) -> int: ... - def Append(self, theItem: IntSurf_InteriorPoint) -> IntSurf_InteriorPoint: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntSurf_InteriorPoint) -> IntSurf_InteriorPoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntSurf_InteriorPoint: ... def SetValue(self, theIndex: int, theValue: IntSurf_InteriorPoint) -> None: ... - -class IntSurf_SequenceOfPathPoint: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntSurf_InteriorPoint: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntSurf_SequenceOfPathPoint: + def Assign(self, theItem: IntSurf_PathPoint) -> IntSurf_PathPoint: ... def Clear(self) -> None: ... def First(self) -> IntSurf_PathPoint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntSurf_PathPoint: ... def Length(self) -> int: ... - def Append(self, theItem: IntSurf_PathPoint) -> IntSurf_PathPoint: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntSurf_PathPoint) -> IntSurf_PathPoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntSurf_PathPoint: ... def SetValue(self, theIndex: int, theValue: IntSurf_PathPoint) -> None: ... - -class IntSurf_SequenceOfPntOn2S: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntSurf_PathPoint: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntSurf_SequenceOfPntOn2S: + def Assign(self, theItem: IntSurf_PntOn2S) -> IntSurf_PntOn2S: ... def Clear(self) -> None: ... def First(self) -> IntSurf_PntOn2S: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntSurf_PntOn2S: ... def Length(self) -> int: ... - def Append(self, theItem: IntSurf_PntOn2S) -> IntSurf_PntOn2S: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntSurf_PntOn2S) -> IntSurf_PntOn2S: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntSurf_PntOn2S: ... def SetValue(self, theIndex: int, theValue: IntSurf_PntOn2S) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntSurf_PntOn2S: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class IntSurf_Situation(IntEnum): IntSurf_Inside: int = ... @@ -106,9 +130,19 @@ IntSurf_Undecided = IntSurf_TypeTrans.IntSurf_Undecided class intsurf: @staticmethod - def MakeTransition(TgFirst: gp_Vec, TgSecond: gp_Vec, Normal: gp_Dir, TFirst: IntSurf_Transition, TSecond: IntSurf_Transition) -> None: ... + def MakeTransition( + TgFirst: gp_Vec, + TgSecond: gp_Vec, + Normal: gp_Dir, + TFirst: IntSurf_Transition, + TSecond: IntSurf_Transition, + ) -> None: ... @staticmethod - def SetPeriod(theFirstSurf: Adaptor3d_Surface, theSecondSurf: Adaptor3d_Surface, theArrOfPeriod_list: List[float]) -> None: ... + def SetPeriod( + theFirstSurf: Adaptor3d_Surface, + theSecondSurf: Adaptor3d_Surface, + theArrOfPeriod_list: List[float], + ) -> None: ... class IntSurf_Couple: @overload @@ -122,11 +156,15 @@ class IntSurf_InteriorPoint: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, U: float, V: float, Direc: gp_Vec, Direc2d: gp_Vec2d) -> None: ... + def __init__( + self, P: gp_Pnt, U: float, V: float, Direc: gp_Vec, Direc2d: gp_Vec2d + ) -> None: ... def Direction(self) -> gp_Vec: ... def Direction2d(self) -> gp_Vec2d: ... def Parameters(self) -> Tuple[float, float]: ... - def SetValue(self, P: gp_Pnt, U: float, V: float, Direc: gp_Vec, Direc2d: gp_Vec2d) -> None: ... + def SetValue( + self, P: gp_Pnt, U: float, V: float, Direc: gp_Vec, Direc2d: gp_Vec2d + ) -> None: ... def UParameter(self) -> float: ... def VParameter(self) -> float: ... def Value(self) -> gp_Pnt: ... @@ -199,7 +237,12 @@ class IntSurf_PathPointTool: class IntSurf_PntOn2S: def __init__(self) -> None: ... - def IsSame(self, theOtherPoint: IntSurf_PntOn2S, theTol3D: Optional[float] = 0.0, theTol2D: Optional[float] = -1.0) -> bool: ... + def IsSame( + self, + theOtherPoint: IntSurf_PntOn2S, + theTol3D: Optional[float] = 0.0, + theTol2D: Optional[float] = -1.0, + ) -> bool: ... def Parameters(self) -> Tuple[float, float, float, float]: ... def ParametersOnS1(self) -> Tuple[float, float]: ... def ParametersOnS2(self) -> Tuple[float, float]: ... @@ -209,7 +252,9 @@ class IntSurf_PntOn2S: @overload def SetValue(self, Pt: gp_Pnt, OnFirst: bool, U: float, V: float) -> None: ... @overload - def SetValue(self, Pt: gp_Pnt, U1: float, V1: float, U2: float, V2: float) -> None: ... + def SetValue( + self, Pt: gp_Pnt, U1: float, V1: float, U2: float, V2: float + ) -> None: ... @overload def SetValue(self, OnFirst: bool, U: float, V: float) -> None: ... @overload @@ -260,13 +305,17 @@ class IntSurf_Quadric: class IntSurf_QuadricTool: @staticmethod - def Gradient(Quad: IntSurf_Quadric, X: float, Y: float, Z: float, V: gp_Vec) -> None: ... + def Gradient( + Quad: IntSurf_Quadric, X: float, Y: float, Z: float, V: gp_Vec + ) -> None: ... @staticmethod def Tolerance(Quad: IntSurf_Quadric) -> float: ... @staticmethod def Value(Quad: IntSurf_Quadric, X: float, Y: float, Z: float) -> float: ... @staticmethod - def ValueAndGradient(Quad: IntSurf_Quadric, X: float, Y: float, Z: float, Grad: gp_Vec) -> float: ... + def ValueAndGradient( + Quad: IntSurf_Quadric, X: float, Y: float, Z: float, Grad: gp_Vec + ) -> float: ... class IntSurf_Transition: @overload @@ -289,4 +338,3 @@ class IntSurf_Transition: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntTools.i b/src/SWIG_files/wrapper/IntTools.i index b9c7e5fa1..6362f71f0 100644 --- a/src/SWIG_files/wrapper/IntTools.i +++ b/src/SWIG_files/wrapper/IntTools.i @@ -144,6 +144,12 @@ Array1ExtendIter(IntTools_Root) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = IntTools_ListIteratorOfListOfBox(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(IntTools_ListOfCurveRangeSample) NCollection_List; @@ -152,6 +158,12 @@ Array1ExtendIter(IntTools_Root) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = IntTools_ListIteratorOfListOfCurveRangeSample(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(IntTools_ListOfSurfaceRangeSample) NCollection_List; @@ -160,6 +172,12 @@ Array1ExtendIter(IntTools_Root) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = IntTools_ListIteratorOfListOfSurfaceRangeSample(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(IntTools_MapOfCurveSample) NCollection_Map; diff --git a/src/SWIG_files/wrapper/IntTools.pyi b/src/SWIG_files/wrapper/IntTools.pyi index ffe20327a..8f5695b62 100644 --- a/src/SWIG_files/wrapper/IntTools.pyi +++ b/src/SWIG_files/wrapper/IntTools.pyi @@ -23,9 +23,13 @@ from OCC.Core.GeomInt import * IntTools_CArray1OfReal = NewType("IntTools_CArray1OfReal", TColStd_Array1OfReal) # the following typedef cannot be wrapped as is -IntTools_MapIteratorOfMapOfCurveSample = NewType("IntTools_MapIteratorOfMapOfCurveSample", Any) +IntTools_MapIteratorOfMapOfCurveSample = NewType( + "IntTools_MapIteratorOfMapOfCurveSample", Any +) # the following typedef cannot be wrapped as is -IntTools_MapIteratorOfMapOfSurfaceSample = NewType("IntTools_MapIteratorOfMapOfSurfaceSample", Any) +IntTools_MapIteratorOfMapOfSurfaceSample = NewType( + "IntTools_MapIteratorOfMapOfSurfaceSample", Any +) # the following typedef cannot be wrapped as is IntTools_MapOfCurveSample = NewType("IntTools_MapOfCurveSample", Any) # the following typedef cannot be wrapped as is @@ -80,121 +84,163 @@ class IntTools_Array1OfRoots: def SetValue(self, theIndex: int, theValue: IntTools_Root) -> None: ... class IntTools_ListOfBox: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: Bnd_Box) -> Bnd_Box: ... + def Assign(self, theItem: IntTools_ListOfBox) -> IntTools_ListOfBox: ... def Clear(self) -> None: ... def First(self) -> Bnd_Box: ... def Last(self) -> Bnd_Box: ... - def Append(self, theItem: Bnd_Box) -> Bnd_Box: ... def Prepend(self, theItem: Bnd_Box) -> Bnd_Box: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Bnd_Box: ... - def SetValue(self, theIndex: int, theValue: Bnd_Box) -> None: ... - -class IntTools_ListOfCurveRangeSample: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> Bnd_Box: ... + +class IntTools_ListOfCurveRangeSample: + def Append( + self, theItem: IntTools_CurveRangeSample + ) -> IntTools_CurveRangeSample: ... + def Assign( + self, theItem: IntTools_ListOfCurveRangeSample + ) -> IntTools_ListOfCurveRangeSample: ... def Clear(self) -> None: ... def First(self) -> IntTools_CurveRangeSample: ... def Last(self) -> IntTools_CurveRangeSample: ... - def Append(self, theItem: IntTools_CurveRangeSample) -> IntTools_CurveRangeSample: ... - def Prepend(self, theItem: IntTools_CurveRangeSample) -> IntTools_CurveRangeSample: ... + def Prepend( + self, theItem: IntTools_CurveRangeSample + ) -> IntTools_CurveRangeSample: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntTools_CurveRangeSample: ... - def SetValue(self, theIndex: int, theValue: IntTools_CurveRangeSample) -> None: ... - -class IntTools_ListOfSurfaceRangeSample: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> IntTools_CurveRangeSample: ... + +class IntTools_ListOfSurfaceRangeSample: + def Append( + self, theItem: IntTools_SurfaceRangeSample + ) -> IntTools_SurfaceRangeSample: ... + def Assign( + self, theItem: IntTools_ListOfSurfaceRangeSample + ) -> IntTools_ListOfSurfaceRangeSample: ... def Clear(self) -> None: ... def First(self) -> IntTools_SurfaceRangeSample: ... def Last(self) -> IntTools_SurfaceRangeSample: ... - def Append(self, theItem: IntTools_SurfaceRangeSample) -> IntTools_SurfaceRangeSample: ... - def Prepend(self, theItem: IntTools_SurfaceRangeSample) -> IntTools_SurfaceRangeSample: ... + def Prepend( + self, theItem: IntTools_SurfaceRangeSample + ) -> IntTools_SurfaceRangeSample: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntTools_SurfaceRangeSample: ... - def SetValue(self, theIndex: int, theValue: IntTools_SurfaceRangeSample) -> None: ... - -class IntTools_SequenceOfCommonPrts: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> IntTools_SurfaceRangeSample: ... + +class IntTools_SequenceOfCommonPrts: + def Assign(self, theItem: IntTools_CommonPrt) -> IntTools_CommonPrt: ... def Clear(self) -> None: ... def First(self) -> IntTools_CommonPrt: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntTools_CommonPrt: ... def Length(self) -> int: ... - def Append(self, theItem: IntTools_CommonPrt) -> IntTools_CommonPrt: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntTools_CommonPrt) -> IntTools_CommonPrt: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntTools_CommonPrt: ... def SetValue(self, theIndex: int, theValue: IntTools_CommonPrt) -> None: ... - -class IntTools_SequenceOfCurves: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntTools_CommonPrt: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntTools_SequenceOfCurves: + def Assign(self, theItem: IntTools_Curve) -> IntTools_Curve: ... def Clear(self) -> None: ... def First(self) -> IntTools_Curve: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntTools_Curve: ... def Length(self) -> int: ... - def Append(self, theItem: IntTools_Curve) -> IntTools_Curve: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntTools_Curve) -> IntTools_Curve: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntTools_Curve: ... def SetValue(self, theIndex: int, theValue: IntTools_Curve) -> None: ... - -class IntTools_SequenceOfPntOn2Faces: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntTools_Curve: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntTools_SequenceOfPntOn2Faces: + def Assign(self, theItem: IntTools_PntOn2Faces) -> IntTools_PntOn2Faces: ... def Clear(self) -> None: ... def First(self) -> IntTools_PntOn2Faces: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntTools_PntOn2Faces: ... def Length(self) -> int: ... - def Append(self, theItem: IntTools_PntOn2Faces) -> IntTools_PntOn2Faces: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntTools_PntOn2Faces) -> IntTools_PntOn2Faces: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntTools_PntOn2Faces: ... def SetValue(self, theIndex: int, theValue: IntTools_PntOn2Faces) -> None: ... - -class IntTools_SequenceOfRanges: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntTools_PntOn2Faces: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntTools_SequenceOfRanges: + def Assign(self, theItem: IntTools_Range) -> IntTools_Range: ... def Clear(self) -> None: ... def First(self) -> IntTools_Range: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntTools_Range: ... def Length(self) -> int: ... - def Append(self, theItem: IntTools_Range) -> IntTools_Range: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntTools_Range) -> IntTools_Range: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntTools_Range: ... def SetValue(self, theIndex: int, theValue: IntTools_Range) -> None: ... - -class IntTools_SequenceOfRoots: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntTools_Range: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class IntTools_SequenceOfRoots: + def Assign(self, theItem: IntTools_Root) -> IntTools_Root: ... def Clear(self) -> None: ... def First(self) -> IntTools_Root: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> IntTools_Root: ... def Length(self) -> int: ... - def Append(self, theItem: IntTools_Root) -> IntTools_Root: ... + def Lower(self) -> int: ... def Prepend(self, theItem: IntTools_Root) -> IntTools_Root: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> IntTools_Root: ... def SetValue(self, theIndex: int, theValue: IntTools_Root) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> IntTools_Root: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class inttools: @staticmethod @@ -206,7 +252,14 @@ class inttools: @staticmethod def Parameter(P: gp_Pnt, Curve: Geom_Curve) -> Tuple[int, float]: ... @staticmethod - def PrepareArgs(C: BRepAdaptor_Curve, tMax: float, tMin: float, Discret: int, Deflect: float, anArgs: TColStd_Array1OfReal) -> int: ... + def PrepareArgs( + C: BRepAdaptor_Curve, + tMax: float, + tMin: float, + Discret: int, + Deflect: float, + anArgs: TColStd_Array1OfReal, + ) -> int: ... @staticmethod def RemoveIdenticalRoots(aSeq: IntTools_SequenceOfRoots, anEpsT: float) -> None: ... @staticmethod @@ -226,16 +279,52 @@ class IntTools_BeanFaceIntersector: @overload def __init__(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face) -> None: ... @overload - def __init__(self, theCurve: BRepAdaptor_Curve, theSurface: BRepAdaptor_Surface, theBeanTolerance: float, theFaceTolerance: float) -> None: ... - @overload - def __init__(self, theCurve: BRepAdaptor_Curve, theSurface: BRepAdaptor_Surface, theFirstParOnCurve: float, theLastParOnCurve: float, theUMinParameter: float, theUMaxParameter: float, theVMinParameter: float, theVMaxParameter: float, theBeanTolerance: float, theFaceTolerance: float) -> None: ... + def __init__( + self, + theCurve: BRepAdaptor_Curve, + theSurface: BRepAdaptor_Surface, + theBeanTolerance: float, + theFaceTolerance: float, + ) -> None: ... + @overload + def __init__( + self, + theCurve: BRepAdaptor_Curve, + theSurface: BRepAdaptor_Surface, + theFirstParOnCurve: float, + theLastParOnCurve: float, + theUMinParameter: float, + theUMaxParameter: float, + theVMinParameter: float, + theVMaxParameter: float, + theBeanTolerance: float, + theFaceTolerance: float, + ) -> None: ... def Context(self) -> IntTools_Context: ... @overload def Init(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face) -> None: ... @overload - def Init(self, theCurve: BRepAdaptor_Curve, theSurface: BRepAdaptor_Surface, theBeanTolerance: float, theFaceTolerance: float) -> None: ... - @overload - def Init(self, theCurve: BRepAdaptor_Curve, theSurface: BRepAdaptor_Surface, theFirstParOnCurve: float, theLastParOnCurve: float, theUMinParameter: float, theUMaxParameter: float, theVMinParameter: float, theVMaxParameter: float, theBeanTolerance: float, theFaceTolerance: float) -> None: ... + def Init( + self, + theCurve: BRepAdaptor_Curve, + theSurface: BRepAdaptor_Surface, + theBeanTolerance: float, + theFaceTolerance: float, + ) -> None: ... + @overload + def Init( + self, + theCurve: BRepAdaptor_Curve, + theSurface: BRepAdaptor_Surface, + theFirstParOnCurve: float, + theLastParOnCurve: float, + theUMinParameter: float, + theUMaxParameter: float, + theVMinParameter: float, + theVMaxParameter: float, + theBeanTolerance: float, + theFaceTolerance: float, + ) -> None: ... def IsDone(self) -> bool: ... def MinimalSquareDistance(self) -> float: ... def Perform(self) -> None: ... @@ -243,9 +332,17 @@ class IntTools_BeanFaceIntersector: def Result(self) -> IntTools_SequenceOfRanges: ... @overload def Result(self, theResults: IntTools_SequenceOfRanges) -> None: ... - def SetBeanParameters(self, theFirstParOnCurve: float, theLastParOnCurve: float) -> None: ... + def SetBeanParameters( + self, theFirstParOnCurve: float, theLastParOnCurve: float + ) -> None: ... def SetContext(self, theContext: IntTools_Context) -> None: ... - def SetSurfaceParameters(self, theUMinParameter: float, theUMaxParameter: float, theVMinParameter: float, theVMaxParameter: float) -> None: ... + def SetSurfaceParameters( + self, + theUMinParameter: float, + theUMaxParameter: float, + theVMinParameter: float, + theVMaxParameter: float, + ) -> None: ... class IntTools_CommonPrt: @overload @@ -289,9 +386,21 @@ class IntTools_Context(Standard_Transient): @overload def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... def BndBox(self, theS: TopoDS_Shape) -> Bnd_Box: ... - def ComputePE(self, theP: gp_Pnt, theTolP: float, theE: TopoDS_Edge) -> Tuple[int, float, float]: ... - def ComputeVE(self, theV: TopoDS_Vertex, theE: TopoDS_Edge, theFuzz: Optional[float] = Precision.Confusion()) -> Tuple[int, float, float]: ... - def ComputeVF(self, theVertex: TopoDS_Vertex, theFace: TopoDS_Face, theFuzz: Optional[float] = Precision.Confusion()) -> Tuple[int, float, float, float]: ... + def ComputePE( + self, theP: gp_Pnt, theTolP: float, theE: TopoDS_Edge + ) -> Tuple[int, float, float]: ... + def ComputeVE( + self, + theV: TopoDS_Vertex, + theE: TopoDS_Edge, + theFuzz: Optional[float] = Precision.Confusion(), + ) -> Tuple[int, float, float]: ... + def ComputeVF( + self, + theVertex: TopoDS_Vertex, + theFace: TopoDS_Face, + theFuzz: Optional[float] = Precision.Confusion(), + ) -> Tuple[int, float, float, float]: ... def FClass2d(self, aF: TopoDS_Face) -> IntTools_FClass2d: ... def Hatcher(self, aF: TopoDS_Face) -> Geom2dHatch_Hatcher: ... def IsInfiniteFace(self, theFace: TopoDS_Face) -> bool: ... @@ -300,15 +409,37 @@ class IntTools_Context(Standard_Transient): @overload def IsPointInFace(self, aP3D: gp_Pnt, aF: TopoDS_Face, aTol: float) -> bool: ... def IsPointInOnFace(self, aF: TopoDS_Face, aP2D: gp_Pnt2d) -> bool: ... - def IsValidBlockForFace(self, aT1: float, aT2: float, aIC: IntTools_Curve, aF: TopoDS_Face, aTol: float) -> bool: ... - def IsValidBlockForFaces(self, aT1: float, aT2: float, aIC: IntTools_Curve, aF1: TopoDS_Face, aF2: TopoDS_Face, aTol: float) -> bool: ... - def IsValidPointForFace(self, aP3D: gp_Pnt, aF: TopoDS_Face, aTol: float) -> bool: ... - def IsValidPointForFaces(self, aP3D: gp_Pnt, aF1: TopoDS_Face, aF2: TopoDS_Face, aTol: float) -> bool: ... - @overload - def IsVertexOnLine(self, aV: TopoDS_Vertex, aIC: IntTools_Curve, aTolC: float) -> Tuple[bool, float]: ... - @overload - def IsVertexOnLine(self, aV: TopoDS_Vertex, aTolV: float, aIC: IntTools_Curve, aTolC: float) -> Tuple[bool, float]: ... - def OBB(self, theShape: TopoDS_Shape, theFuzzyValue: Optional[float] = Precision.Confusion()) -> Bnd_OBB: ... + def IsValidBlockForFace( + self, aT1: float, aT2: float, aIC: IntTools_Curve, aF: TopoDS_Face, aTol: float + ) -> bool: ... + def IsValidBlockForFaces( + self, + aT1: float, + aT2: float, + aIC: IntTools_Curve, + aF1: TopoDS_Face, + aF2: TopoDS_Face, + aTol: float, + ) -> bool: ... + def IsValidPointForFace( + self, aP3D: gp_Pnt, aF: TopoDS_Face, aTol: float + ) -> bool: ... + def IsValidPointForFaces( + self, aP3D: gp_Pnt, aF1: TopoDS_Face, aF2: TopoDS_Face, aTol: float + ) -> bool: ... + @overload + def IsVertexOnLine( + self, aV: TopoDS_Vertex, aIC: IntTools_Curve, aTolC: float + ) -> Tuple[bool, float]: ... + @overload + def IsVertexOnLine( + self, aV: TopoDS_Vertex, aTolV: float, aIC: IntTools_Curve, aTolC: float + ) -> Tuple[bool, float]: ... + def OBB( + self, + theShape: TopoDS_Shape, + theFuzzyValue: Optional[float] = Precision.Confusion(), + ) -> Bnd_OBB: ... def ProjPC(self, aE: TopoDS_Edge) -> GeomAPI_ProjectPointOnCurve: ... def ProjPS(self, aF: TopoDS_Face) -> GeomAPI_ProjectPointOnSurf: ... def ProjPT(self, aC: Geom_Curve) -> GeomAPI_ProjectPointOnCurve: ... @@ -324,15 +455,29 @@ class IntTools_Curve: @overload def __init__(self) -> None: ... @overload - def __init__(self, the3dCurve3d: Geom_Curve, the2dCurve1: Geom2d_Curve, the2dCurve2: Geom2d_Curve, theTolerance: Optional[float] = 0.0, theTangentialTolerance: Optional[float] = 0.0) -> None: ... - def Bounds(self, theFirstPnt: gp_Pnt, theLastPnt: gp_Pnt) -> Tuple[bool, float, float]: ... + def __init__( + self, + the3dCurve3d: Geom_Curve, + the2dCurve1: Geom2d_Curve, + the2dCurve2: Geom2d_Curve, + theTolerance: Optional[float] = 0.0, + theTangentialTolerance: Optional[float] = 0.0, + ) -> None: ... + def Bounds( + self, theFirstPnt: gp_Pnt, theLastPnt: gp_Pnt + ) -> Tuple[bool, float, float]: ... def Curve(self) -> Geom_Curve: ... def D0(self, thePar: float, thePnt: gp_Pnt) -> bool: ... def FirstCurve2d(self) -> Geom2d_Curve: ... def HasBounds(self) -> bool: ... def SecondCurve2d(self) -> Geom2d_Curve: ... def SetCurve(self, the3dCurve: Geom_Curve) -> None: ... - def SetCurves(self, the3dCurve: Geom_Curve, the2dCurve1: Geom2d_Curve, the2dCurve2: Geom2d_Curve) -> None: ... + def SetCurves( + self, + the3dCurve: Geom_Curve, + the2dCurve1: Geom2d_Curve, + the2dCurve2: Geom2d_Curve, + ) -> None: ... def SetFirstCurve2d(self, the2dCurve1: Geom2d_Curve) -> None: ... def SetSecondCurve2d(self, the2dCurve2: Geom2d_Curve) -> None: ... def SetTangentialTolerance(self, theTangentialTolerance: float) -> None: ... @@ -357,7 +502,15 @@ class IntTools_EdgeEdge: @overload def __init__(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge) -> None: ... @overload - def __init__(self, theEdge1: TopoDS_Edge, aT11: float, aT12: float, theEdge2: TopoDS_Edge, aT21: float, aT22: float) -> None: ... + def __init__( + self, + theEdge1: TopoDS_Edge, + aT11: float, + aT12: float, + theEdge2: TopoDS_Edge, + aT21: float, + aT22: float, + ) -> None: ... def CommonParts(self) -> IntTools_SequenceOfCommonPrts: ... def FuzzyValue(self) -> float: ... def IsCoincidenceCheckedQuickly(self) -> bool: ... @@ -412,9 +565,13 @@ class IntTools_FClass2d: def __init__(self, F: TopoDS_Face, Tol: float) -> None: ... def Init(self, F: TopoDS_Face, Tol: float) -> None: ... def IsHole(self) -> bool: ... - def Perform(self, Puv: gp_Pnt2d, RecadreOnPeriodic: Optional[bool] = True) -> TopAbs_State: ... + def Perform( + self, Puv: gp_Pnt2d, RecadreOnPeriodic: Optional[bool] = True + ) -> TopAbs_State: ... def PerformInfinitePoint(self) -> TopAbs_State: ... - def TestOnRestriction(self, Puv: gp_Pnt2d, Tol: float, RecadreOnPeriodic: Optional[bool] = True) -> TopAbs_State: ... + def TestOnRestriction( + self, Puv: gp_Pnt2d, Tol: float, RecadreOnPeriodic: Optional[bool] = True + ) -> TopAbs_State: ... class IntTools_FaceFace: def __init__(self) -> None: ... @@ -424,22 +581,34 @@ class IntTools_FaceFace: def FuzzyValue(self) -> float: ... def IsDone(self) -> bool: ... def Lines(self) -> IntTools_SequenceOfCurves: ... - def Perform(self, F1: TopoDS_Face, F2: TopoDS_Face, theToRunParallel: Optional[bool] = False) -> None: ... + def Perform( + self, F1: TopoDS_Face, F2: TopoDS_Face, theToRunParallel: Optional[bool] = False + ) -> None: ... def Points(self) -> IntTools_SequenceOfPntOn2Faces: ... def PrepareLines3D(self, bToSplit: Optional[bool] = True) -> None: ... def SetContext(self, aContext: IntTools_Context) -> None: ... def SetFuzzyValue(self, theFuzz: float) -> None: ... def SetList(self, ListOfPnts: IntSurf_ListOfPntOn2S) -> None: ... - def SetParameters(self, ApproxCurves: bool, ComputeCurveOnS1: bool, ComputeCurveOnS2: bool, ApproximationTolerance: float) -> None: ... + def SetParameters( + self, + ApproxCurves: bool, + ComputeCurveOnS1: bool, + ComputeCurveOnS2: bool, + ApproximationTolerance: float, + ) -> None: ... def TangentFaces(self) -> bool: ... class IntTools_MarkedRangeSet: @overload def __init__(self) -> None: ... @overload - def __init__(self, theFirstBoundary: float, theLastBoundary: float, theInitFlag: int) -> None: ... + def __init__( + self, theFirstBoundary: float, theLastBoundary: float, theInitFlag: int + ) -> None: ... @overload - def __init__(self, theSortedArray: TColStd_Array1OfReal, theInitFlag: int) -> None: ... + def __init__( + self, theSortedArray: TColStd_Array1OfReal, theInitFlag: int + ) -> None: ... def Flag(self, theIndex: int) -> int: ... @overload def GetIndex(self, theValue: float) -> int: ... @@ -447,18 +616,32 @@ class IntTools_MarkedRangeSet: def GetIndex(self, theValue: float, UseLower: bool) -> int: ... def GetIndices(self, theValue: float) -> TColStd_SequenceOfInteger: ... @overload - def InsertRange(self, theFirstBoundary: float, theLastBoundary: float, theFlag: int) -> bool: ... + def InsertRange( + self, theFirstBoundary: float, theLastBoundary: float, theFlag: int + ) -> bool: ... @overload def InsertRange(self, theRange: IntTools_Range, theFlag: int) -> bool: ... @overload - def InsertRange(self, theFirstBoundary: float, theLastBoundary: float, theFlag: int, theIndex: int) -> bool: ... - @overload - def InsertRange(self, theRange: IntTools_Range, theFlag: int, theIndex: int) -> bool: ... + def InsertRange( + self, + theFirstBoundary: float, + theLastBoundary: float, + theFlag: int, + theIndex: int, + ) -> bool: ... + @overload + def InsertRange( + self, theRange: IntTools_Range, theFlag: int, theIndex: int + ) -> bool: ... def Length(self) -> int: ... def Range(self, theIndex: int) -> IntTools_Range: ... - def SetBoundaries(self, theFirstBoundary: float, theLastBoundary: float, theInitFlag: int) -> None: ... + def SetBoundaries( + self, theFirstBoundary: float, theLastBoundary: float, theInitFlag: int + ) -> None: ... def SetFlag(self, theIndex: int, theFlag: int) -> None: ... - def SetRanges(self, theSortedArray: TColStd_Array1OfReal, theInitFlag: int) -> None: ... + def SetRanges( + self, theSortedArray: TColStd_Array1OfReal, theInitFlag: int + ) -> None: ... class IntTools_PntOn2Faces: @overload @@ -524,7 +707,14 @@ class IntTools_ShrunkRange: def Length(self) -> float: ... def Perform(self) -> None: ... def SetContext(self, aCtx: IntTools_Context) -> None: ... - def SetData(self, aE: TopoDS_Edge, aT1: float, aT2: float, aV1: TopoDS_Vertex, aV2: TopoDS_Vertex) -> None: ... + def SetData( + self, + aE: TopoDS_Edge, + aT1: float, + aT2: float, + aV1: TopoDS_Vertex, + aV2: TopoDS_Vertex, + ) -> None: ... def SetShrunkRange(self, aT1: float, aT2: float) -> None: ... def ShrunkRange(self) -> Tuple[float, float]: ... @@ -532,14 +722,26 @@ class IntTools_SurfaceRangeLocalizeData: @overload def __init__(self) -> None: ... @overload - def __init__(self, theNbSampleU: int, theNbSampleV: int, theMinRangeU: float, theMinRangeV: float) -> None: ... + def __init__( + self, + theNbSampleU: int, + theNbSampleV: int, + theMinRangeU: float, + theMinRangeV: float, + ) -> None: ... @overload def __init__(self, Other: IntTools_SurfaceRangeLocalizeData) -> None: ... - def AddBox(self, theRange: IntTools_SurfaceRangeSample, theBox: Bnd_Box) -> None: ... + def AddBox( + self, theRange: IntTools_SurfaceRangeSample, theBox: Bnd_Box + ) -> None: ... def AddOutRange(self, theRange: IntTools_SurfaceRangeSample) -> None: ... - def Assign(self, Other: IntTools_SurfaceRangeLocalizeData) -> IntTools_SurfaceRangeLocalizeData: ... + def Assign( + self, Other: IntTools_SurfaceRangeLocalizeData + ) -> IntTools_SurfaceRangeLocalizeData: ... def ClearGrid(self) -> None: ... - def FindBox(self, theRange: IntTools_SurfaceRangeSample, theBox: Bnd_Box) -> bool: ... + def FindBox( + self, theRange: IntTools_SurfaceRangeSample, theBox: Bnd_Box + ) -> bool: ... def GetGridDeflection(self) -> float: ... def GetGridPoint(self, theUIndex: int, theVIndex: int) -> gp_Pnt: ... def GetMinRangeU(self) -> float: ... @@ -558,9 +760,13 @@ class IntTools_SurfaceRangeLocalizeData: def IsRangeOut(self, theRange: IntTools_SurfaceRangeSample) -> bool: ... def ListRangeOut(self, theList: IntTools_ListOfSurfaceRangeSample) -> None: ... def RemoveRangeOutAll(self) -> None: ... - def SetFrame(self, theUMin: float, theUMax: float, theVMin: float, theVMax: float) -> None: ... + def SetFrame( + self, theUMin: float, theUMax: float, theVMin: float, theVMax: float + ) -> None: ... def SetGridDeflection(self, theDeflection: float) -> None: ... - def SetGridPoint(self, theUIndex: int, theVIndex: int, thePoint: gp_Pnt) -> None: ... + def SetGridPoint( + self, theUIndex: int, theVIndex: int, thePoint: gp_Pnt + ) -> None: ... def SetRangeUGrid(self, theNbUGrid: int) -> None: ... def SetRangeVGrid(self, theNbVGrid: int) -> None: ... def SetUParam(self, theIndex: int, theUParam: float) -> None: ... @@ -570,12 +776,18 @@ class IntTools_SurfaceRangeSample: @overload def __init__(self) -> None: ... @overload - def __init__(self, theIndexU: int, theDepthU: int, theIndexV: int, theDepthV: int) -> None: ... + def __init__( + self, theIndexU: int, theDepthU: int, theIndexV: int, theDepthV: int + ) -> None: ... @overload - def __init__(self, theRangeU: IntTools_CurveRangeSample, theRangeV: IntTools_CurveRangeSample) -> None: ... + def __init__( + self, theRangeU: IntTools_CurveRangeSample, theRangeV: IntTools_CurveRangeSample + ) -> None: ... @overload def __init__(self, Other: IntTools_SurfaceRangeSample) -> None: ... - def Assign(self, Other: IntTools_SurfaceRangeSample) -> IntTools_SurfaceRangeSample: ... + def Assign( + self, Other: IntTools_SurfaceRangeSample + ) -> IntTools_SurfaceRangeSample: ... def GetDepthU(self) -> int: ... def GetDepthV(self) -> int: ... def GetDepths(self) -> Tuple[int, int]: ... @@ -584,9 +796,15 @@ class IntTools_SurfaceRangeSample: def GetIndexes(self) -> Tuple[int, int]: ... def GetRangeIndexUDeeper(self, theNbSampleU: int) -> int: ... def GetRangeIndexVDeeper(self, theNbSampleV: int) -> int: ... - def GetRangeU(self, theFirstU: float, theLastU: float, theNbSampleU: int) -> IntTools_Range: ... - def GetRangeV(self, theFirstV: float, theLastV: float, theNbSampleV: int) -> IntTools_Range: ... - def GetRanges(self, theRangeU: IntTools_CurveRangeSample, theRangeV: IntTools_CurveRangeSample) -> None: ... + def GetRangeU( + self, theFirstU: float, theLastU: float, theNbSampleU: int + ) -> IntTools_Range: ... + def GetRangeV( + self, theFirstV: float, theLastV: float, theNbSampleV: int + ) -> IntTools_Range: ... + def GetRanges( + self, theRangeU: IntTools_CurveRangeSample, theRangeV: IntTools_CurveRangeSample + ) -> None: ... def GetSampleRangeU(self) -> IntTools_CurveRangeSample: ... def GetSampleRangeV(self) -> IntTools_CurveRangeSample: ... def IsEqual(self, Other: IntTools_SurfaceRangeSample) -> bool: ... @@ -595,7 +813,9 @@ class IntTools_SurfaceRangeSample: def SetIndexU(self, theIndexU: int) -> None: ... def SetIndexV(self, theIndexV: int) -> None: ... def SetIndexes(self, theIndexU: int, theIndexV: int) -> None: ... - def SetRanges(self, theRangeU: IntTools_CurveRangeSample, theRangeV: IntTools_CurveRangeSample) -> None: ... + def SetRanges( + self, theRangeU: IntTools_CurveRangeSample, theRangeV: IntTools_CurveRangeSample + ) -> None: ... def SetSampleRangeU(self, theRangeSampleU: IntTools_CurveRangeSample) -> None: ... def SetSampleRangeV(self, theRangeSampleV: IntTools_CurveRangeSample) -> None: ... @@ -607,7 +827,15 @@ class IntTools_Tools: @staticmethod def ComputeIntRange(theTol1: float, theTol2: float, theAngle: float) -> float: ... @staticmethod - def ComputeTolerance(theCurve3D: Geom_Curve, theCurve2D: Geom2d_Curve, theSurf: Geom_Surface, theFirst: float, theLast: float, theTolRange: Optional[float] = Precision.PConfusion(), theToRunParallel: Optional[bool] = False) -> Tuple[bool, float, float]: ... + def ComputeTolerance( + theCurve3D: Geom_Curve, + theCurve2D: Geom2d_Curve, + theSurf: Geom_Surface, + theFirst: float, + theLast: float, + theTolRange: Optional[float] = Precision.PConfusion(), + theToRunParallel: Optional[bool] = False, + ) -> Tuple[bool, float, float]: ... @staticmethod def ComputeVV(V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> int: ... @staticmethod @@ -625,7 +853,9 @@ class IntTools_Tools: @staticmethod def IsDirsCoinside(D1: gp_Dir, D2: gp_Dir, aTol: float) -> bool: ... @staticmethod - def IsInRange(theRRef: IntTools_Range, theR: IntTools_Range, theTol: float) -> bool: ... + def IsInRange( + theRRef: IntTools_Range, theR: IntTools_Range, theTol: float + ) -> bool: ... @staticmethod def IsMiddlePointsEqual(E1: TopoDS_Edge, E2: TopoDS_Edge) -> bool: ... @staticmethod @@ -645,11 +875,23 @@ class IntTools_Tools: @staticmethod def IsVertex(aP: gp_Pnt, aTolPV: float, aV: TopoDS_Vertex) -> bool: ... @staticmethod - def MakeFaceFromWireAndFace(aW: TopoDS_Wire, aF: TopoDS_Face, aFNew: TopoDS_Face) -> None: ... + def MakeFaceFromWireAndFace( + aW: TopoDS_Wire, aF: TopoDS_Face, aFNew: TopoDS_Face + ) -> None: ... @staticmethod - def RejectLines(aSIn: IntTools_SequenceOfCurves, aSOut: IntTools_SequenceOfCurves) -> None: ... + def RejectLines( + aSIn: IntTools_SequenceOfCurves, aSOut: IntTools_SequenceOfCurves + ) -> None: ... @staticmethod - def SegPln(theLin: gp_Lin, theTLin1: float, theTLin2: float, theTolLin: float, thePln: gp_Pln, theTolPln: float, theP: gp_Pnt) -> Tuple[int, float, float, float, float]: ... + def SegPln( + theLin: gp_Lin, + theTLin1: float, + theTLin2: float, + theTolLin: float, + thePln: gp_Pln, + theTolPln: float, + theP: gp_Pnt, + ) -> Tuple[int, float, float, float, float]: ... @staticmethod def SplitCurve(aC: IntTools_Curve, aS: IntTools_SequenceOfCurves) -> int: ... @staticmethod @@ -675,26 +917,29 @@ class IntTools_TopolTool(Adaptor3d_TopolTool): class IntTools_WLineTool: @staticmethod - def NotUseSurfacesForApprox(aF1: TopoDS_Face, aF2: TopoDS_Face, WL: IntPatch_WLine, ifprm: int, ilprm: int) -> bool: ... + def NotUseSurfacesForApprox( + aF1: TopoDS_Face, aF2: TopoDS_Face, WL: IntPatch_WLine, ifprm: int, ilprm: int + ) -> bool: ... class IntTools_CurveRangeSample(IntTools_BaseRangeSample): @overload def __init__(self) -> None: ... @overload def __init__(self, theIndex: int) -> None: ... - def GetRange(self, theFirst: float, theLast: float, theNbSample: int) -> IntTools_Range: ... + def GetRange( + self, theFirst: float, theLast: float, theNbSample: int + ) -> IntTools_Range: ... def GetRangeIndex(self) -> int: ... def GetRangeIndexDeeper(self, theNbSample: int) -> int: ... def IsEqual(self, Other: IntTools_CurveRangeSample) -> bool: ... def SetRangeIndex(self, theIndex: int) -> None: ... -#classnotwrapped +# classnotwrapped class IntTools_CArray1OfInteger: ... -#classnotwrapped +# classnotwrapped class IntTools_CArray1OfReal: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/IntWalk.pyi b/src/SWIG_files/wrapper/IntWalk.pyi index a5abb6c30..4079c3bb9 100644 --- a/src/SWIG_files/wrapper/IntWalk.pyi +++ b/src/SWIG_files/wrapper/IntWalk.pyi @@ -10,7 +10,6 @@ from OCC.Core.TColStd import * from OCC.Core.gp import * from OCC.Core.IntSurf import * - class IntWalk_StatusDeflection(IntEnum): IntWalk_PasTropGrand: int = ... IntWalk_StepTooSmall: int = ... @@ -30,12 +29,22 @@ class IntWalk_TheFunctionOfTheInt2S(math_FunctionSetWithDerivatives): def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface) -> None: ... def AuxillarSurface1(self) -> Adaptor3d_Surface: ... def AuxillarSurface2(self) -> Adaptor3d_Surface: ... - def ComputeParameters(self, ChoixIso: IntImp_ConstIsoparametric, Param: TColStd_Array1OfReal, UVap: math_Vector, BornInf: math_Vector, BornSup: math_Vector, Tolerance: math_Vector) -> None: ... + def ComputeParameters( + self, + ChoixIso: IntImp_ConstIsoparametric, + Param: TColStd_Array1OfReal, + UVap: math_Vector, + BornInf: math_Vector, + BornSup: math_Vector, + Tolerance: math_Vector, + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def Direction(self) -> gp_Dir: ... def DirectionOnS1(self) -> gp_Dir2d: ... def DirectionOnS2(self) -> gp_Dir2d: ... - def IsTangent(self, UVap: math_Vector, Param: TColStd_Array1OfReal) -> Tuple[bool, IntImp_ConstIsoparametric]: ... + def IsTangent( + self, UVap: math_Vector, Param: TColStd_Array1OfReal + ) -> Tuple[bool, IntImp_ConstIsoparametric]: ... def NbEquations(self) -> int: ... def NbVariables(self) -> int: ... def Point(self) -> gp_Pnt: ... @@ -45,9 +54,17 @@ class IntWalk_TheFunctionOfTheInt2S(math_FunctionSetWithDerivatives): class IntWalk_TheInt2S: @overload - def __init__(self, Param: TColStd_Array1OfReal, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: float) -> None: ... + def __init__( + self, + Param: TColStd_Array1OfReal, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + TolTangency: float, + ) -> None: ... @overload - def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: float) -> None: ... + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: float + ) -> None: ... def ChangePoint(self) -> IntSurf_PntOn2S: ... def Direction(self) -> gp_Dir: ... def DirectionOnS1(self) -> gp_Dir2d: ... @@ -57,9 +74,16 @@ class IntWalk_TheInt2S: def IsEmpty(self) -> bool: ... def IsTangent(self) -> bool: ... @overload - def Perform(self, Param: TColStd_Array1OfReal, Rsnld: math_FunctionSetRoot) -> IntImp_ConstIsoparametric: ... + def Perform( + self, Param: TColStd_Array1OfReal, Rsnld: math_FunctionSetRoot + ) -> IntImp_ConstIsoparametric: ... @overload - def Perform(self, Param: TColStd_Array1OfReal, Rsnld: math_FunctionSetRoot, ChoixIso: IntImp_ConstIsoparametric) -> IntImp_ConstIsoparametric: ... + def Perform( + self, + Param: TColStd_Array1OfReal, + Rsnld: math_FunctionSetRoot, + ChoixIso: IntImp_ConstIsoparametric, + ) -> IntImp_ConstIsoparametric: ... def Point(self) -> IntSurf_PntOn2S: ... class IntWalk_WalkingData: @@ -68,4 +92,3 @@ class IntWalk_WalkingData: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Interface.pyi b/src/SWIG_files/wrapper/Interface.pyi index e537eefb7..700249164 100644 --- a/src/SWIG_files/wrapper/Interface.pyi +++ b/src/SWIG_files/wrapper/Interface.pyi @@ -62,19 +62,25 @@ class Interface_Array1OfHAsciiString: def SetValue(self, theIndex: int, theValue: False) -> None: ... class Interface_SequenceOfCheck: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Interface_CheckStatus(IntEnum): Interface_CheckOK: int = ... @@ -139,7 +145,9 @@ class Interface_BitMap: @overload def __init__(self, nbitems: int, resflags: Optional[int] = 0) -> None: ... @overload - def __init__(self, other: Interface_BitMap, copied: Optional[bool] = False) -> None: ... + def __init__( + self, other: Interface_BitMap, copied: Optional[bool] = False + ) -> None: ... def AddFlag(self, name: Optional[str] = "") -> int: ... def AddSomeFlags(self, more: int) -> int: ... def CFalse(self, item: int, flag: Optional[int] = 0) -> bool: ... @@ -151,7 +159,9 @@ class Interface_BitMap: @overload def Initialize(self, nbitems: int, resflags: Optional[int] = 0) -> None: ... @overload - def Initialize(self, other: Interface_BitMap, copied: Optional[bool] = False) -> None: ... + def Initialize( + self, other: Interface_BitMap, copied: Optional[bool] = False + ) -> None: ... def Length(self) -> int: ... def NbFlags(self) -> int: ... def RemoveFlag(self, num: int) -> bool: ... @@ -172,9 +182,13 @@ class Interface_Category: def __init__(self, theGTool: Interface_GTool) -> None: ... @staticmethod def AddCategory(theName: str) -> int: ... - def CatNum(self, theEnt: Standard_Transient, theShares: Interface_ShareTool) -> int: ... + def CatNum( + self, theEnt: Standard_Transient, theShares: Interface_ShareTool + ) -> int: ... def ClearNums(self) -> None: ... - def Compute(self, theModel: Interface_InterfaceModel, theShares: Interface_ShareTool) -> None: ... + def Compute( + self, theModel: Interface_InterfaceModel, theShares: Interface_ShareTool + ) -> None: ... @staticmethod def Init() -> None: ... @staticmethod @@ -194,7 +208,9 @@ class Interface_Check(Standard_Transient): @overload def AddFail(self, amess: TCollection_HAsciiString) -> None: ... @overload - def AddFail(self, amess: TCollection_HAsciiString, orig: TCollection_HAsciiString) -> None: ... + def AddFail( + self, amess: TCollection_HAsciiString, orig: TCollection_HAsciiString + ) -> None: ... @overload def AddFail(self, amess: str, orig: Optional[str] = "") -> None: ... @overload @@ -202,7 +218,9 @@ class Interface_Check(Standard_Transient): @overload def AddWarning(self, amess: TCollection_HAsciiString) -> None: ... @overload - def AddWarning(self, amess: TCollection_HAsciiString, orig: TCollection_HAsciiString) -> None: ... + def AddWarning( + self, amess: TCollection_HAsciiString, orig: TCollection_HAsciiString + ) -> None: ... @overload def AddWarning(self, amess: str, orig: Optional[str] = "") -> None: ... @overload @@ -217,32 +235,48 @@ class Interface_Check(Standard_Transient): @overload def Complies(self, status: Interface_CheckStatus) -> bool: ... @overload - def Complies(self, mess: TCollection_HAsciiString, incl: int, status: Interface_CheckStatus) -> bool: ... + def Complies( + self, mess: TCollection_HAsciiString, incl: int, status: Interface_CheckStatus + ) -> bool: ... def Entity(self) -> Standard_Transient: ... - def Fail(self, num: int, final: Optional[bool] = True) -> TCollection_HAsciiString: ... - def Fails(self, final: Optional[bool] = True) -> TColStd_HSequenceOfHAsciiString: ... + def Fail( + self, num: int, final: Optional[bool] = True + ) -> TCollection_HAsciiString: ... + def Fails( + self, final: Optional[bool] = True + ) -> TColStd_HSequenceOfHAsciiString: ... def GetAsWarning(self, other: Interface_Check, failsonly: bool) -> None: ... def GetEntity(self, anentity: Standard_Transient) -> None: ... def GetMessages(self, other: Interface_Check) -> None: ... def HasEntity(self) -> bool: ... def HasFailed(self) -> bool: ... def HasWarnings(self) -> bool: ... - def InfoMsg(self, num: int, final: Optional[bool] = True) -> TCollection_HAsciiString: ... - def InfoMsgs(self, final: Optional[bool] = True) -> TColStd_HSequenceOfHAsciiString: ... + def InfoMsg( + self, num: int, final: Optional[bool] = True + ) -> TCollection_HAsciiString: ... + def InfoMsgs( + self, final: Optional[bool] = True + ) -> TColStd_HSequenceOfHAsciiString: ... def Mend(self, pref: str, num: Optional[int] = 0) -> bool: ... def NbFails(self) -> int: ... def NbInfoMsgs(self) -> int: ... def NbWarnings(self) -> int: ... def Print(self, level: int, final: Optional[int] = 1) -> str: ... - def Remove(self, mess: TCollection_HAsciiString, incl: int, status: Interface_CheckStatus) -> bool: ... + def Remove( + self, mess: TCollection_HAsciiString, incl: int, status: Interface_CheckStatus + ) -> bool: ... def SendFail(self, amsg: Message_Msg) -> None: ... def SendMsg(self, amsg: Message_Msg) -> None: ... def SendWarning(self, amsg: Message_Msg) -> None: ... def SetEntity(self, anentity: Standard_Transient) -> None: ... def Status(self) -> Interface_CheckStatus: ... def Trace(self, level: Optional[int] = -1, final: Optional[int] = 1) -> None: ... - def Warning(self, num: int, final: Optional[bool] = True) -> TCollection_HAsciiString: ... - def Warnings(self, final: Optional[bool] = True) -> TColStd_HSequenceOfHAsciiString: ... + def Warning( + self, num: int, final: Optional[bool] = True + ) -> TCollection_HAsciiString: ... + def Warnings( + self, final: Optional[bool] = True + ) -> TColStd_HSequenceOfHAsciiString: ... class Interface_CheckIterator: @overload @@ -258,14 +292,18 @@ class Interface_CheckIterator: def Check(self, num: int) -> Interface_Check: ... @overload def Check(self, ent: Standard_Transient) -> Interface_Check: ... - def Checkeds(self, failsonly: bool, global_: bool) -> TColStd_HSequenceOfTransient: ... + def Checkeds( + self, failsonly: bool, global_: bool + ) -> TColStd_HSequenceOfTransient: ... def Clear(self) -> None: ... def Complies(self, status: Interface_CheckStatus) -> bool: ... def Destroy(self) -> None: ... @overload def Extract(self, status: Interface_CheckStatus) -> Interface_CheckIterator: ... @overload - def Extract(self, mess: str, incl: int, status: Interface_CheckStatus) -> Interface_CheckIterator: ... + def Extract( + self, mess: str, incl: int, status: Interface_CheckStatus + ) -> Interface_CheckIterator: ... def IsEmpty(self, failsonly: bool) -> bool: ... def Merge(self, other: Interface_CheckIterator) -> None: ... def Model(self) -> Interface_InterfaceModel: ... @@ -276,7 +314,9 @@ class Interface_CheckIterator: @overload def Print(self, failsonly: bool, final: Optional[int] = 0) -> str: ... @overload - def Print(self, model: Interface_InterfaceModel, failsonly: bool, final: Optional[int] = 0) -> str: ... + def Print( + self, model: Interface_InterfaceModel, failsonly: bool, final: Optional[int] = 0 + ) -> str: ... def Remove(self, mess: str, incl: int, status: Interface_CheckStatus) -> bool: ... def SetModel(self, model: Interface_InterfaceModel) -> None: ... def SetName(self, name: str) -> None: ... @@ -286,7 +326,9 @@ class Interface_CheckIterator: class Interface_CheckTool: @overload - def __init__(self, model: Interface_InterfaceModel, protocol: Interface_Protocol) -> None: ... + def __init__( + self, model: Interface_InterfaceModel, protocol: Interface_Protocol + ) -> None: ... @overload def __init__(self, model: Interface_InterfaceModel) -> None: ... @overload @@ -298,7 +340,9 @@ class Interface_CheckTool: def CheckList(self) -> Interface_CheckIterator: ... def CheckSuccess(self, reset: Optional[bool] = False) -> None: ... def CompleteCheckList(self) -> Interface_CheckIterator: ... - def FillCheck(self, ent: Standard_Transient, sh: Interface_ShareTool, ach: Interface_Check) -> None: ... + def FillCheck( + self, ent: Standard_Transient, sh: Interface_ShareTool, ach: Interface_Check + ) -> None: ... @overload def Print(self, ach: Interface_Check) -> str: ... @overload @@ -314,22 +358,38 @@ class Interface_CopyControl(Standard_Transient): class Interface_CopyTool: @overload - def __init__(self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib + ) -> None: ... @overload - def __init__(self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol + ) -> None: ... @overload def __init__(self, amodel: Interface_InterfaceModel) -> None: ... def Bind(self, ent: Standard_Transient, res: Standard_Transient) -> None: ... def Clear(self) -> None: ... def ClearLastFlags(self) -> None: ... - def CompleteResult(self, withreports: Optional[bool] = False) -> Interface_EntityIterator: ... + def CompleteResult( + self, withreports: Optional[bool] = False + ) -> Interface_EntityIterator: ... def Control(self) -> Interface_CopyControl: ... - def Copy(self, entfrom: Standard_Transient, entto: Standard_Transient, mapped: bool, errstat: bool) -> bool: ... + def Copy( + self, + entfrom: Standard_Transient, + entto: Standard_Transient, + mapped: bool, + errstat: bool, + ) -> bool: ... def FillModel(self, bmodel: Interface_InterfaceModel) -> None: ... - def LastCopiedAfter(self, numfrom: int, ent: Standard_Transient, res: Standard_Transient) -> int: ... + def LastCopiedAfter( + self, numfrom: int, ent: Standard_Transient, res: Standard_Transient + ) -> int: ... def Model(self) -> Interface_InterfaceModel: ... def RenewImpliedRefs(self) -> None: ... - def RootResult(self, withreports: Optional[bool] = False) -> Interface_EntityIterator: ... + def RootResult( + self, withreports: Optional[bool] = False + ) -> Interface_EntityIterator: ... def Search(self, ent: Standard_Transient, res: Standard_Transient) -> bool: ... def SetControl(self, othermap: Interface_CopyControl) -> None: ... def TransferEntity(self, ent: Standard_Transient) -> None: ... @@ -343,7 +403,9 @@ class Interface_EntityCluster(Standard_Transient): @overload def __init__(self, ec: Interface_EntityCluster) -> None: ... @overload - def __init__(self, ant: Standard_Transient, ec: Interface_EntityCluster) -> None: ... + def __init__( + self, ant: Standard_Transient, ec: Interface_EntityCluster + ) -> None: ... def Append(self, ent: Standard_Transient) -> None: ... def FillIterator(self, iter: Interface_EntityIterator) -> None: ... def NbEntities(self) -> int: ... @@ -387,7 +449,9 @@ class Interface_EntityList: @overload def Remove(self, num: int) -> None: ... def SetValue(self, num: int, ent: Standard_Transient) -> None: ... - def TypedEntity(self, atype: Standard_Type, num: Optional[int] = 0) -> Standard_Transient: ... + def TypedEntity( + self, atype: Standard_Type, num: Optional[int] = 0 + ) -> Standard_Transient: ... def Value(self, num: int) -> Standard_Transient: ... class Interface_FileParameter: @@ -405,9 +469,13 @@ class Interface_FileParameter: class Interface_FileReaderData(Standard_Transient): @overload - def AddParam(self, num: int, aval: str, atype: Interface_ParamType, nument: Optional[int] = 0) -> None: ... + def AddParam( + self, num: int, aval: str, atype: Interface_ParamType, nument: Optional[int] = 0 + ) -> None: ... @overload - def AddParam(self, num: int, aval: str, atype: Interface_ParamType, nument: Optional[int] = 0) -> None: ... + def AddParam( + self, num: int, aval: str, atype: Interface_ParamType, nument: Optional[int] = 0 + ) -> None: ... @overload def AddParam(self, num: int, FP: Interface_FileParameter) -> None: ... def BindEntity(self, num: int, ent: Standard_Transient) -> None: ... @@ -435,7 +503,9 @@ class Interface_FileReaderData(Standard_Transient): def SetParam(self, num: int, nump: int, FP: Interface_FileParameter) -> None: ... class Interface_FileReaderTool: - def AnalyseRecord(self, num: int, anent: Standard_Transient, acheck: Interface_Check) -> bool: ... + def AnalyseRecord( + self, num: int, anent: Standard_Transient, acheck: Interface_Check + ) -> bool: ... def BeginRead(self, amodel: Interface_InterfaceModel) -> None: ... def Clear(self) -> None: ... def Data(self) -> Interface_FileReaderData: ... @@ -447,9 +517,20 @@ class Interface_FileReaderTool: def Model(self) -> Interface_InterfaceModel: ... def NewModel(self) -> Interface_InterfaceModel: ... def Protocol(self) -> Interface_Protocol: ... - def Recognize(self, num: int, ach: Interface_Check, ent: Standard_Transient) -> bool: ... - def RecognizeByLib(self, num: int, glib: Interface_GeneralLib, rlib: Interface_ReaderLib, ach: Interface_Check, ent: Standard_Transient) -> bool: ... - def SetData(self, reader: Interface_FileReaderData, protocol: Interface_Protocol) -> None: ... + def Recognize( + self, num: int, ach: Interface_Check, ent: Standard_Transient + ) -> bool: ... + def RecognizeByLib( + self, + num: int, + glib: Interface_GeneralLib, + rlib: Interface_ReaderLib, + ach: Interface_Check, + ent: Standard_Transient, + ) -> bool: ... + def SetData( + self, reader: Interface_FileReaderData, protocol: Interface_Protocol + ) -> None: ... def SetEntities(self) -> None: ... def SetErrorHandle(self, err: bool) -> None: ... def SetMessenger(self, messenger: Message_Messenger) -> None: ... @@ -461,7 +542,15 @@ class Interface_FileReaderTool: class Interface_FloatWriter: def __init__(self, chars: Optional[int] = 0) -> None: ... @staticmethod - def Convert(val: float, text: str, zerosup: bool, Range1: float, Range2: float, mainform: str, rangeform: str) -> int: ... + def Convert( + val: float, + text: str, + zerosup: bool, + Range1: float, + Range2: float, + mainform: str, + rangeform: str, + ) -> int: ... def FormatForRange(self) -> str: ... def MainFormat(self) -> str: ... def Options(self) -> Tuple[bool, bool, float, float]: ... @@ -480,12 +569,21 @@ class Interface_GTool(Standard_Transient): def Lib(self) -> Interface_GeneralLib: ... def Protocol(self) -> Interface_Protocol: ... def Reservate(self, nb: int, enforce: Optional[bool] = False) -> None: ... - def Select(self, ent: Standard_Transient, gmod: Interface_GeneralModule, enforce: Optional[bool] = False) -> Tuple[bool, int]: ... - def SetProtocol(self, proto: Interface_Protocol, enforce: Optional[bool] = False) -> None: ... + def Select( + self, + ent: Standard_Transient, + gmod: Interface_GeneralModule, + enforce: Optional[bool] = False, + ) -> Tuple[bool, int]: ... + def SetProtocol( + self, proto: Interface_Protocol, enforce: Optional[bool] = False + ) -> None: ... def SetSignType(self, sign: Interface_SignType) -> None: ... def SignName(self) -> str: ... def SignType(self) -> Interface_SignType: ... - def SignValue(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> str: ... + def SignValue( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> str: ... class Interface_GeneralLib: @overload @@ -498,63 +596,153 @@ class Interface_GeneralLib: def More(self) -> bool: ... def Next(self) -> None: ... def Protocol(self) -> Interface_Protocol: ... - def Select(self, obj: Standard_Transient, module: Interface_GeneralModule) -> Tuple[bool, int]: ... + def Select( + self, obj: Standard_Transient, module: Interface_GeneralModule + ) -> Tuple[bool, int]: ... def SetComplete(self) -> None: ... @staticmethod - def SetGlobal(amodule: Interface_GeneralModule, aprotocol: Interface_Protocol) -> None: ... + def SetGlobal( + amodule: Interface_GeneralModule, aprotocol: Interface_Protocol + ) -> None: ... def Start(self) -> None: ... class Interface_GeneralModule(Standard_Transient): def CanCopy(self, CN: int, ent: Standard_Transient) -> bool: ... - def CategoryNumber(self, CN: int, ent: Standard_Transient, shares: Interface_ShareTool) -> int: ... - def CheckCase(self, CN: int, ent: Standard_Transient, shares: Interface_ShareTool, ach: Interface_Check) -> None: ... - def CopyCase(self, CN: int, entfrom: Standard_Transient, entto: Standard_Transient, TC: Interface_CopyTool) -> None: ... - def Dispatch(self, CN: int, entfrom: Standard_Transient, entto: Standard_Transient, TC: Interface_CopyTool) -> bool: ... - def FillShared(self, model: Interface_InterfaceModel, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator) -> None: ... - def FillSharedCase(self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator) -> None: ... - def ListImplied(self, model: Interface_InterfaceModel, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator) -> None: ... - def ListImpliedCase(self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator) -> None: ... - def Name(self, CN: int, ent: Standard_Transient, shares: Interface_ShareTool) -> TCollection_HAsciiString: ... - def NewCopiedCase(self, CN: int, entfrom: Standard_Transient, entto: Standard_Transient, TC: Interface_CopyTool) -> bool: ... + def CategoryNumber( + self, CN: int, ent: Standard_Transient, shares: Interface_ShareTool + ) -> int: ... + def CheckCase( + self, + CN: int, + ent: Standard_Transient, + shares: Interface_ShareTool, + ach: Interface_Check, + ) -> None: ... + def CopyCase( + self, + CN: int, + entfrom: Standard_Transient, + entto: Standard_Transient, + TC: Interface_CopyTool, + ) -> None: ... + def Dispatch( + self, + CN: int, + entfrom: Standard_Transient, + entto: Standard_Transient, + TC: Interface_CopyTool, + ) -> bool: ... + def FillShared( + self, + model: Interface_InterfaceModel, + CN: int, + ent: Standard_Transient, + iter: Interface_EntityIterator, + ) -> None: ... + def FillSharedCase( + self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator + ) -> None: ... + def ListImplied( + self, + model: Interface_InterfaceModel, + CN: int, + ent: Standard_Transient, + iter: Interface_EntityIterator, + ) -> None: ... + def ListImpliedCase( + self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator + ) -> None: ... + def Name( + self, CN: int, ent: Standard_Transient, shares: Interface_ShareTool + ) -> TCollection_HAsciiString: ... + def NewCopiedCase( + self, + CN: int, + entfrom: Standard_Transient, + entto: Standard_Transient, + TC: Interface_CopyTool, + ) -> bool: ... def NewVoid(self, CN: int, entto: Standard_Transient) -> bool: ... - def RenewImpliedCase(self, CN: int, entfrom: Standard_Transient, entto: Standard_Transient, TC: Interface_CopyTool) -> None: ... - def Share(self, iter: Interface_EntityIterator, shared: Standard_Transient) -> None: ... - def WhenDeleteCase(self, CN: int, ent: Standard_Transient, dispatched: bool) -> None: ... + def RenewImpliedCase( + self, + CN: int, + entfrom: Standard_Transient, + entto: Standard_Transient, + TC: Interface_CopyTool, + ) -> None: ... + def Share( + self, iter: Interface_EntityIterator, shared: Standard_Transient + ) -> None: ... + def WhenDeleteCase( + self, CN: int, ent: Standard_Transient, dispatched: bool + ) -> None: ... class Interface_GlobalNodeOfGeneralLib(Standard_Transient): def __init__(self) -> None: ... - def Add(self, amodule: Interface_GeneralModule, aprotocol: Interface_Protocol) -> None: ... + def Add( + self, amodule: Interface_GeneralModule, aprotocol: Interface_Protocol + ) -> None: ... def Module(self) -> Interface_GeneralModule: ... def Next(self) -> Interface_GlobalNodeOfGeneralLib: ... def Protocol(self) -> Interface_Protocol: ... class Interface_GlobalNodeOfReaderLib(Standard_Transient): def __init__(self) -> None: ... - def Add(self, amodule: Interface_ReaderModule, aprotocol: Interface_Protocol) -> None: ... + def Add( + self, amodule: Interface_ReaderModule, aprotocol: Interface_Protocol + ) -> None: ... def Module(self) -> Interface_ReaderModule: ... def Next(self) -> Interface_GlobalNodeOfReaderLib: ... def Protocol(self) -> Interface_Protocol: ... class Interface_Graph: @overload - def __init__(self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib, theModeStats: Optional[bool] = True) -> None: ... - @overload - def __init__(self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol, theModeStats: Optional[bool] = True) -> None: ... - @overload - def __init__(self, amodel: Interface_InterfaceModel, gtool: Interface_GTool, theModeStats: Optional[bool] = True) -> None: ... - @overload - def __init__(self, amodel: Interface_InterfaceModel, theModeStats: Optional[bool] = True) -> None: ... - @overload - def __init__(self, agraph: Interface_Graph, copied: Optional[bool] = False) -> None: ... + def __init__( + self, + amodel: Interface_InterfaceModel, + lib: Interface_GeneralLib, + theModeStats: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + amodel: Interface_InterfaceModel, + protocol: Interface_Protocol, + theModeStats: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + amodel: Interface_InterfaceModel, + gtool: Interface_GTool, + theModeStats: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, amodel: Interface_InterfaceModel, theModeStats: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, agraph: Interface_Graph, copied: Optional[bool] = False + ) -> None: ... def BitMap(self) -> Interface_BitMap: ... def CBitMap(self) -> Interface_BitMap: ... def ChangeStatus(self, oldstat: int, newstat: int) -> None: ... def Entity(self, num: int) -> Standard_Transient: ... def EntityNumber(self, ent: Standard_Transient) -> int: ... @overload - def GetFromEntity(self, ent: Standard_Transient, shared: bool, newstat: Optional[int] = 0) -> None: ... + def GetFromEntity( + self, ent: Standard_Transient, shared: bool, newstat: Optional[int] = 0 + ) -> None: ... @overload - def GetFromEntity(self, ent: Standard_Transient, shared: bool, newstat: int, overlapstat: int, cumul: bool) -> None: ... + def GetFromEntity( + self, + ent: Standard_Transient, + shared: bool, + newstat: int, + overlapstat: int, + cumul: bool, + ) -> None: ... @overload def GetFromGraph(self, agraph: Interface_Graph) -> None: ... @overload @@ -562,7 +750,13 @@ class Interface_Graph: @overload def GetFromIter(self, iter: Interface_EntityIterator, newstat: int) -> None: ... @overload - def GetFromIter(self, iter: Interface_EntityIterator, newstat: int, overlapstat: int, cumul: bool) -> None: ... + def GetFromIter( + self, + iter: Interface_EntityIterator, + newstat: int, + overlapstat: int, + cumul: bool, + ) -> None: ... def GetFromModel(self) -> None: ... def GetShareds(self, ent: Standard_Transient) -> TColStd_HSequenceOfTransient: ... def GetSharings(self, ent: Standard_Transient) -> TColStd_HSequenceOfTransient: ... @@ -586,19 +780,38 @@ class Interface_Graph: def Sharings(self, ent: Standard_Transient) -> Interface_EntityIterator: ... def Size(self) -> int: ... def Status(self, num: int) -> int: ... - def TypedSharings(self, ent: Standard_Transient, type: Standard_Type) -> Interface_EntityIterator: ... + def TypedSharings( + self, ent: Standard_Transient, type: Standard_Type + ) -> Interface_EntityIterator: ... class Interface_HGraph(Standard_Transient): @overload def __init__(self, agraph: Interface_Graph) -> None: ... @overload - def __init__(self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib, theModeStats: Optional[bool] = True) -> None: ... - @overload - def __init__(self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol, theModeStats: Optional[bool] = True) -> None: ... - @overload - def __init__(self, amodel: Interface_InterfaceModel, gtool: Interface_GTool, theModeStats: Optional[bool] = True) -> None: ... - @overload - def __init__(self, amodel: Interface_InterfaceModel, theModeStats: Optional[bool] = True) -> None: ... + def __init__( + self, + amodel: Interface_InterfaceModel, + lib: Interface_GeneralLib, + theModeStats: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + amodel: Interface_InterfaceModel, + protocol: Interface_Protocol, + theModeStats: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + amodel: Interface_InterfaceModel, + gtool: Interface_GTool, + theModeStats: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, amodel: Interface_InterfaceModel, theModeStats: Optional[bool] = True + ) -> None: ... def CGraph(self) -> Interface_Graph: ... def Graph(self) -> Interface_Graph: ... @@ -613,10 +826,14 @@ class Interface_IntList: def AdjustSize(self, margin: Optional[int] = 0) -> None: ... def Clear(self) -> None: ... def Initialize(self, nbe: int) -> None: ... - def Internals(self, ents: TColStd_HArray1OfInteger, refs: TColStd_HArray1OfInteger) -> int: ... + def Internals( + self, ents: TColStd_HArray1OfInteger, refs: TColStd_HArray1OfInteger + ) -> int: ... def IsRedefined(self, num: Optional[int] = 0) -> bool: ... def Length(self) -> int: ... - def List(self, number: int, copied: Optional[bool] = False) -> Interface_IntList: ... + def List( + self, number: int, copied: Optional[bool] = False + ) -> Interface_IntList: ... def NbEntities(self) -> int: ... def Number(self) -> int: ... def Remove(self, num: int) -> bool: ... @@ -634,15 +851,36 @@ class Interface_IntVal(Standard_Transient): class Interface_InterfaceModel(Standard_Transient): def AddEntity(self, anentity: Standard_Transient) -> None: ... - def AddReportEntity(self, rep: Interface_ReportEntity, semantic: Optional[bool] = False) -> bool: ... - @overload - def AddWithRefs(self, anent: Standard_Transient, proto: Interface_Protocol, level: Optional[int] = 0, listall: Optional[bool] = False) -> None: ... - @overload - def AddWithRefs(self, anent: Standard_Transient, level: Optional[int] = 0, listall: Optional[bool] = False) -> None: ... - @overload - def AddWithRefs(self, anent: Standard_Transient, lib: Interface_GeneralLib, level: Optional[int] = 0, listall: Optional[bool] = False) -> None: ... + def AddReportEntity( + self, rep: Interface_ReportEntity, semantic: Optional[bool] = False + ) -> bool: ... + @overload + def AddWithRefs( + self, + anent: Standard_Transient, + proto: Interface_Protocol, + level: Optional[int] = 0, + listall: Optional[bool] = False, + ) -> None: ... + @overload + def AddWithRefs( + self, + anent: Standard_Transient, + level: Optional[int] = 0, + listall: Optional[bool] = False, + ) -> None: ... + @overload + def AddWithRefs( + self, + anent: Standard_Transient, + lib: Interface_GeneralLib, + level: Optional[int] = 0, + listall: Optional[bool] = False, + ) -> None: ... def CategoryNumber(self, num: int) -> int: ... - def ChangeOrder(self, oldnum: int, newnum: int, count: Optional[int] = 1) -> None: ... + def ChangeOrder( + self, oldnum: int, newnum: int, count: Optional[int] = 1 + ) -> None: ... def Check(self, num: int, syntactic: bool) -> Interface_Check: ... @staticmethod def ClassName(typnam: str) -> str: ... @@ -659,7 +897,9 @@ class Interface_InterfaceModel(Standard_Transient): def Entities(self) -> Interface_EntityIterator: ... def EntityState(self, num: int) -> Interface_DataState: ... def FillIterator(self, iter: Interface_EntityIterator) -> None: ... - def FillSemanticChecks(self, checks: Interface_CheckIterator, clear: Optional[bool] = True) -> None: ... + def FillSemanticChecks( + self, checks: Interface_CheckIterator, clear: Optional[bool] = True + ) -> None: ... def GTool(self) -> Interface_GTool: ... def GetFromAnother(self, other: Interface_InterfaceModel) -> None: ... def GetFromTransfer(self, aniter: Interface_EntityIterator) -> None: ... @@ -676,7 +916,9 @@ class Interface_InterfaceModel(Standard_Transient): def NbEntities(self) -> int: ... def NbTypes(self, ent: Standard_Transient) -> int: ... def NewEmptyModel(self) -> Interface_InterfaceModel: ... - def NextNumberForLabel(self, label: str, lastnum: Optional[int] = 0, exact: Optional[bool] = True) -> int: ... + def NextNumberForLabel( + self, label: str, lastnum: Optional[int] = 0, exact: Optional[bool] = True + ) -> int: ... def Number(self, anentity: Standard_Transient) -> int: ... def Print(self, ent: Standard_Transient, mode: Optional[int] = 0) -> str: ... def PrintLabel(self, ent: Standard_Transient) -> str: ... @@ -684,7 +926,9 @@ class Interface_InterfaceModel(Standard_Transient): def Protocol(self) -> Interface_Protocol: ... def Redefineds(self) -> Interface_EntityIterator: ... def ReplaceEntity(self, nument: int, anent: Standard_Transient) -> None: ... - def ReportEntity(self, num: int, semantic: Optional[bool] = False) -> Interface_ReportEntity: ... + def ReportEntity( + self, num: int, semantic: Optional[bool] = False + ) -> Interface_ReportEntity: ... def Reports(self, semantic: Optional[bool] = False) -> Interface_EntityIterator: ... def Reservate(self, nbent: int) -> None: ... def ReverseOrders(self, after: Optional[int] = 0) -> None: ... @@ -698,8 +942,12 @@ class Interface_InterfaceModel(Standard_Transient): def StringLabel(self, ent: Standard_Transient) -> TCollection_HAsciiString: ... @staticmethod def Template(name: str) -> Interface_InterfaceModel: ... - def Type(self, ent: Standard_Transient, num: Optional[int] = 1) -> Standard_Type: ... - def TypeName(self, ent: Standard_Transient, complete: Optional[bool] = True) -> str: ... + def Type( + self, ent: Standard_Transient, num: Optional[int] = 1 + ) -> Standard_Type: ... + def TypeName( + self, ent: Standard_Transient, complete: Optional[bool] = True + ) -> str: ... def Value(self, num: int) -> Standard_Transient: ... def VerifyCheck(self, ach: Interface_Check) -> None: ... @@ -753,7 +1001,9 @@ class Interface_MSG: def CDate(text1: str, text2: str) -> int: ... def Destroy(self) -> None: ... @staticmethod - def Intervalled(val: float, order: Optional[int] = 3, upper: Optional[bool] = False) -> float: ... + def Intervalled( + val: float, order: Optional[int] = 3, upper: Optional[bool] = False + ) -> float: ... @staticmethod def IsKey(mess: str) -> bool: ... @staticmethod @@ -775,7 +1025,16 @@ class Interface_MSG: @staticmethod def SetTrace(toprint: bool, torecord: bool) -> None: ... @staticmethod - def TDate(text: str, yy: int, mm: int, dd: int, hh: int, mn: int, ss: int, format: Optional[str] = "") -> None: ... + def TDate( + text: str, + yy: int, + mm: int, + dd: int, + hh: int, + mn: int, + ss: int, + format: Optional[str] = "", + ) -> None: ... @staticmethod def Translated(key: str) -> str: ... def Value(self) -> str: ... @@ -809,7 +1068,9 @@ class Interface_ParamList(Standard_Transient): class Interface_ParamSet(Standard_Transient): def __init__(self, nres: int, nst: Optional[int] = 1) -> None: ... @overload - def Append(self, val: str, lnval: int, typ: Interface_ParamType, nument: int) -> int: ... + def Append( + self, val: str, lnval: int, typ: Interface_ParamType, nument: int + ) -> int: ... @overload def Append(self, FP: Interface_FileParameter) -> int: ... def ChangeParam(self, num: int) -> Interface_FileParameter: ... @@ -850,22 +1111,42 @@ class Interface_ReaderLib: def More(self) -> bool: ... def Next(self) -> None: ... def Protocol(self) -> Interface_Protocol: ... - def Select(self, obj: Standard_Transient, module: Interface_ReaderModule) -> Tuple[bool, int]: ... + def Select( + self, obj: Standard_Transient, module: Interface_ReaderModule + ) -> Tuple[bool, int]: ... def SetComplete(self) -> None: ... @staticmethod - def SetGlobal(amodule: Interface_ReaderModule, aprotocol: Interface_Protocol) -> None: ... + def SetGlobal( + amodule: Interface_ReaderModule, aprotocol: Interface_Protocol + ) -> None: ... def Start(self) -> None: ... class Interface_ReaderModule(Standard_Transient): def CaseNum(self, data: Interface_FileReaderData, num: int) -> int: ... - def NewRead(self, casenum: int, data: Interface_FileReaderData, num: int, ach: Interface_Check, ent: Standard_Transient) -> bool: ... - def Read(self, casenum: int, data: Interface_FileReaderData, num: int, ach: Interface_Check, ent: Standard_Transient) -> None: ... + def NewRead( + self, + casenum: int, + data: Interface_FileReaderData, + num: int, + ach: Interface_Check, + ent: Standard_Transient, + ) -> bool: ... + def Read( + self, + casenum: int, + data: Interface_FileReaderData, + num: int, + ach: Interface_Check, + ent: Standard_Transient, + ) -> None: ... class Interface_ReportEntity(Standard_Transient): @overload def __init__(self, unknown: Standard_Transient) -> None: ... @overload - def __init__(self, acheck: Interface_Check, concerned: Standard_Transient) -> None: ... + def __init__( + self, acheck: Interface_Check, concerned: Standard_Transient + ) -> None: ... def CCheck(self) -> Interface_Check: ... def Check(self) -> Interface_Check: ... def Concerned(self) -> Standard_Transient: ... @@ -886,7 +1167,14 @@ class Interface_STAT: def Description(self, title: str) -> Tuple[int, float]: ... @staticmethod def End() -> None: ... - def Internals(self, phn: TColStd_HSequenceOfAsciiString, phw: TColStd_HSequenceOfReal, phdeb: TColStd_HSequenceOfInteger, phfin: TColStd_HSequenceOfInteger, stw: TColStd_HSequenceOfReal) -> Tuple[str, float]: ... + def Internals( + self, + phn: TColStd_HSequenceOfAsciiString, + phw: TColStd_HSequenceOfReal, + phdeb: TColStd_HSequenceOfInteger, + phfin: TColStd_HSequenceOfInteger, + stw: TColStd_HSequenceOfReal, + ) -> Tuple[str, float]: ... @staticmethod def NextCycle(items: int) -> None: ... @staticmethod @@ -909,11 +1197,17 @@ class Interface_STAT: class Interface_ShareFlags: @overload - def __init__(self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib + ) -> None: ... @overload - def __init__(self, amodel: Interface_InterfaceModel, gtool: Interface_GTool) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, gtool: Interface_GTool + ) -> None: ... @overload - def __init__(self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol + ) -> None: ... @overload def __init__(self, amodel: Interface_InterfaceModel) -> None: ... @overload @@ -926,18 +1220,26 @@ class Interface_ShareFlags: class Interface_ShareTool: @overload - def __init__(self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib + ) -> None: ... @overload - def __init__(self, amodel: Interface_InterfaceModel, gtool: Interface_GTool) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, gtool: Interface_GTool + ) -> None: ... @overload - def __init__(self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol + ) -> None: ... @overload def __init__(self, amodel: Interface_InterfaceModel) -> None: ... @overload def __init__(self, agraph: Interface_Graph) -> None: ... @overload def __init__(self, ahgraph: Interface_HGraph) -> None: ... - def All(self, ent: Standard_Transient, rootlast: Optional[bool] = True) -> Interface_EntityIterator: ... + def All( + self, ent: Standard_Transient, rootlast: Optional[bool] = True + ) -> Interface_EntityIterator: ... def Graph(self) -> Interface_Graph: ... def IsShared(self, ent: Standard_Transient) -> bool: ... def Model(self) -> Interface_InterfaceModel: ... @@ -946,7 +1248,9 @@ class Interface_ShareTool: def RootEntities(self) -> Interface_EntityIterator: ... def Shareds(self, ent: Standard_Transient) -> Interface_EntityIterator: ... def Sharings(self, ent: Standard_Transient) -> Interface_EntityIterator: ... - def TypedSharing(self, ent: Standard_Transient, atype: Standard_Type) -> Standard_Transient: ... + def TypedSharing( + self, ent: Standard_Transient, atype: Standard_Type + ) -> Standard_Transient: ... class Interface_SignLabel(MoniTool_SignText): def __init__(self) -> None: ... @@ -957,10 +1261,17 @@ class Interface_SignType(MoniTool_SignText): @staticmethod def ClassName(typnam: str) -> str: ... def Text(self, ent: Standard_Transient, context: Standard_Transient) -> str: ... - def Value(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> str: ... + def Value( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> str: ... class Interface_TypedValue(MoniTool_TypedValue): - def __init__(self, name: str, type: Optional[Interface_ParamType] = Interface_ParamText, init: Optional[str] = "") -> None: ... + def __init__( + self, + name: str, + type: Optional[Interface_ParamType] = Interface_ParamText, + init: Optional[str] = "", + ) -> None: ... @staticmethod def ParamTypeToValueType(typ: Interface_ParamType) -> MoniTool_ValueType: ... def Type(self) -> Interface_ParamType: ... @@ -969,24 +1280,36 @@ class Interface_TypedValue(MoniTool_TypedValue): class Interface_UndefinedContent(Standard_Transient): def __init__(self) -> None: ... - def AddEntity(self, ptype: Interface_ParamType, ent: Standard_Transient) -> None: ... - def AddLiteral(self, ptype: Interface_ParamType, val: TCollection_HAsciiString) -> None: ... + def AddEntity( + self, ptype: Interface_ParamType, ent: Standard_Transient + ) -> None: ... + def AddLiteral( + self, ptype: Interface_ParamType, val: TCollection_HAsciiString + ) -> None: ... def EntityList(self) -> Interface_EntityList: ... - def GetFromAnother(self, other: Interface_UndefinedContent, TC: Interface_CopyTool) -> None: ... + def GetFromAnother( + self, other: Interface_UndefinedContent, TC: Interface_CopyTool + ) -> None: ... def IsParamEntity(self, num: int) -> bool: ... def NbLiterals(self) -> int: ... def NbParams(self) -> int: ... - def ParamData(self, num: int, ent: Standard_Transient) -> Tuple[bool, Interface_ParamType, str]: ... + def ParamData( + self, num: int, ent: Standard_Transient + ) -> Tuple[bool, Interface_ParamType, str]: ... def ParamEntity(self, num: int) -> Standard_Transient: ... def ParamType(self, num: int) -> Interface_ParamType: ... def ParamValue(self, num: int) -> TCollection_HAsciiString: ... def RemoveParam(self, num: int) -> None: ... def Reservate(self, nb: int, nblit: int) -> None: ... @overload - def SetEntity(self, num: int, ptype: Interface_ParamType, ent: Standard_Transient) -> None: ... + def SetEntity( + self, num: int, ptype: Interface_ParamType, ent: Standard_Transient + ) -> None: ... @overload def SetEntity(self, num: int, ent: Standard_Transient) -> None: ... - def SetLiteral(self, num: int, ptype: Interface_ParamType, val: TCollection_HAsciiString) -> None: ... + def SetLiteral( + self, num: int, ptype: Interface_ParamType, val: TCollection_HAsciiString + ) -> None: ... class Interface_CopyMap(Interface_CopyControl): def __init__(self, amodel: Interface_InterfaceModel) -> None: ... @@ -1014,7 +1337,13 @@ class Interface_GraphContent(Interface_EntityIterator): class Interface_Static(Interface_TypedValue): @overload - def __init__(self, family: str, name: str, type: Optional[Interface_ParamType] = Interface_ParamText, init: Optional[str] = "") -> None: ... + def __init__( + self, + family: str, + name: str, + type: Optional[Interface_ParamType] = Interface_ParamText, + init: Optional[str] = "", + ) -> None: ... @overload def __init__(self, family: str, name: str, other: Interface_Static) -> None: ... @staticmethod @@ -1028,7 +1357,9 @@ class Interface_Static(Interface_TypedValue): def IVal(name: str) -> int: ... @overload @staticmethod - def Init(family: str, name: str, type: Interface_ParamType, init: Optional[str] = "") -> bool: ... + def Init( + family: str, name: str, type: Interface_ParamType, init: Optional[str] = "" + ) -> bool: ... @overload @staticmethod def Init(family: str, name: str, type: str, init: Optional[str] = "") -> bool: ... @@ -1039,7 +1370,9 @@ class Interface_Static(Interface_TypedValue): @staticmethod def IsUpdated(name: str) -> bool: ... @staticmethod - def Items(mode: Optional[int] = 0, criter: Optional[str] = "") -> TColStd_HSequenceOfHAsciiString: ... + def Items( + mode: Optional[int] = 0, criter: Optional[str] = "" + ) -> TColStd_HSequenceOfHAsciiString: ... def PrintStatic(self) -> str: ... @staticmethod def RVal(name: str) -> float: ... @@ -1062,7 +1395,9 @@ class Interface_Static(Interface_TypedValue): # harray1 classes -class Interface_HArray1OfHAsciiString(Interface_Array1OfHAsciiString, Standard_Transient): +class Interface_HArray1OfHAsciiString( + Interface_Array1OfHAsciiString, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Interface_Array1OfHAsciiString: ... @@ -1076,5 +1411,3 @@ class Interface_HSequenceOfCheck(Interface_SequenceOfCheck, Standard_Transient): def __init__(self, other: Interface_SequenceOfCheck) -> None: ... def Sequence(self) -> Interface_SequenceOfCheck: ... def Append(self, theSequence: Interface_SequenceOfCheck) -> None: ... - - diff --git a/src/SWIG_files/wrapper/InterfaceGraphic.pyi b/src/SWIG_files/wrapper/InterfaceGraphic.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/InterfaceGraphic.pyi +++ b/src/SWIG_files/wrapper/InterfaceGraphic.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Intf.pyi b/src/SWIG_files/wrapper/Intf.pyi index e4a94d0b4..365ec4b97 100644 --- a/src/SWIG_files/wrapper/Intf.pyi +++ b/src/SWIG_files/wrapper/Intf.pyi @@ -6,7 +6,6 @@ from OCC.Core.NCollection import * from OCC.Core.gp import * from OCC.Core.Bnd import * - class Intf_Array1OfLin: @overload def __init__(self) -> None: ... @@ -32,49 +31,67 @@ class Intf_Array1OfLin: def SetValue(self, theIndex: int, theValue: gp_Lin) -> None: ... class Intf_SeqOfSectionLine: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: Intf_SectionLine) -> Intf_SectionLine: ... def Clear(self) -> None: ... def First(self) -> Intf_SectionLine: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Intf_SectionLine: ... def Length(self) -> int: ... - def Append(self, theItem: Intf_SectionLine) -> Intf_SectionLine: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Intf_SectionLine) -> Intf_SectionLine: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Intf_SectionLine: ... def SetValue(self, theIndex: int, theValue: Intf_SectionLine) -> None: ... - -class Intf_SeqOfSectionPoint: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Intf_SectionLine: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Intf_SeqOfSectionPoint: + def Assign(self, theItem: Intf_SectionPoint) -> Intf_SectionPoint: ... def Clear(self) -> None: ... def First(self) -> Intf_SectionPoint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Intf_SectionPoint: ... def Length(self) -> int: ... - def Append(self, theItem: Intf_SectionPoint) -> Intf_SectionPoint: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Intf_SectionPoint) -> Intf_SectionPoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Intf_SectionPoint: ... def SetValue(self, theIndex: int, theValue: Intf_SectionPoint) -> None: ... - -class Intf_SeqOfTangentZone: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Intf_SectionPoint: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Intf_SeqOfTangentZone: + def Assign(self, theItem: Intf_TangentZone) -> Intf_TangentZone: ... def Clear(self) -> None: ... def First(self) -> Intf_TangentZone: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Intf_TangentZone: ... def Length(self) -> int: ... - def Append(self, theItem: Intf_TangentZone) -> Intf_TangentZone: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Intf_TangentZone) -> Intf_TangentZone: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Intf_TangentZone: ... def SetValue(self, theIndex: int, theValue: Intf_TangentZone) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Intf_TangentZone: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Intf_PIType(IntEnum): Intf_EXTERNAL: int = ... @@ -91,7 +108,9 @@ class intf: @staticmethod def Contain(P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, ThePnt: gp_Pnt) -> bool: ... @staticmethod - def PlaneEquation(P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, NormalVector: gp_XYZ) -> float: ... + def PlaneEquation( + P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, NormalVector: gp_XYZ + ) -> float: ... class Intf_Interference: def Contains(self, ThePnt: Intf_SectionPoint) -> bool: ... @@ -142,9 +161,31 @@ class Intf_SectionPoint: @overload def __init__(self) -> None: ... @overload - def __init__(self, Where: gp_Pnt, DimeO: Intf_PIType, AddrO1: int, AddrO2: int, ParamO: float, DimeT: Intf_PIType, AddrT1: int, AddrT2: int, ParamT: float, Incid: float) -> None: ... + def __init__( + self, + Where: gp_Pnt, + DimeO: Intf_PIType, + AddrO1: int, + AddrO2: int, + ParamO: float, + DimeT: Intf_PIType, + AddrT1: int, + AddrT2: int, + ParamT: float, + Incid: float, + ) -> None: ... @overload - def __init__(self, Where: gp_Pnt2d, DimeO: Intf_PIType, AddrO1: int, ParamO: float, DimeT: Intf_PIType, AddrT1: int, ParamT: float, Incid: float) -> None: ... + def __init__( + self, + Where: gp_Pnt2d, + DimeO: Intf_PIType, + AddrO1: int, + ParamO: float, + DimeT: Intf_PIType, + AddrT1: int, + ParamT: float, + Incid: float, + ) -> None: ... def Dump(self, Indent: int) -> None: ... def Incidence(self) -> float: ... @overload @@ -190,13 +231,23 @@ class Intf_Tool: def __init__(self) -> None: ... def BeginParam(self, SegmentNum: int) -> float: ... def EndParam(self, SegmentNum: int) -> float: ... - def Hypr2dBox(self, theHypr2d: gp_Hypr2d, bounding: Bnd_Box2d, boxHypr: Bnd_Box2d) -> None: ... - def HyprBox(self, theHypr: gp_Hypr, bounding: Bnd_Box, boxHypr: Bnd_Box) -> None: ... - def Lin2dBox(self, theLin2d: gp_Lin2d, bounding: Bnd_Box2d, boxLin: Bnd_Box2d) -> None: ... + def Hypr2dBox( + self, theHypr2d: gp_Hypr2d, bounding: Bnd_Box2d, boxHypr: Bnd_Box2d + ) -> None: ... + def HyprBox( + self, theHypr: gp_Hypr, bounding: Bnd_Box, boxHypr: Bnd_Box + ) -> None: ... + def Lin2dBox( + self, theLin2d: gp_Lin2d, bounding: Bnd_Box2d, boxLin: Bnd_Box2d + ) -> None: ... def LinBox(self, theLin: gp_Lin, bounding: Bnd_Box, boxLin: Bnd_Box) -> None: ... def NbSegments(self) -> int: ... - def Parab2dBox(self, theParab2d: gp_Parab2d, bounding: Bnd_Box2d, boxHypr: Bnd_Box2d) -> None: ... - def ParabBox(self, theParab: gp_Parab, bounding: Bnd_Box, boxHypr: Bnd_Box) -> None: ... + def Parab2dBox( + self, theParab2d: gp_Parab2d, bounding: Bnd_Box2d, boxHypr: Bnd_Box2d + ) -> None: ... + def ParabBox( + self, theParab: gp_Parab, bounding: Bnd_Box, boxHypr: Bnd_Box + ) -> None: ... class Intf_InterferencePolygon2d(Intf_Interference): @overload @@ -214,4 +265,3 @@ class Intf_InterferencePolygon2d(Intf_Interference): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Intrv.pyi b/src/SWIG_files/wrapper/Intrv.pyi index 4b6e657b3..31ff115b1 100644 --- a/src/SWIG_files/wrapper/Intrv.pyi +++ b/src/SWIG_files/wrapper/Intrv.pyi @@ -4,21 +4,26 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class Intrv_SequenceOfInterval: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: Intrv_Interval) -> Intrv_Interval: ... def Clear(self) -> None: ... def First(self) -> Intrv_Interval: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Intrv_Interval: ... def Length(self) -> int: ... - def Append(self, theItem: Intrv_Interval) -> Intrv_Interval: ... + def Lower(self) -> int: ... def Prepend(self, theItem: Intrv_Interval) -> Intrv_Interval: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Intrv_Interval: ... def SetValue(self, theIndex: int, theValue: Intrv_Interval) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Intrv_Interval: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Intrv_Position(IntEnum): Intrv_Before: int = ... @@ -55,7 +60,9 @@ class Intrv_Interval: @overload def __init__(self, Start: float, End: float) -> None: ... @overload - def __init__(self, Start: float, TolStart: float, End: float, TolEnd: float) -> None: ... + def __init__( + self, Start: float, TolStart: float, End: float, TolEnd: float + ) -> None: ... def Bounds(self) -> Tuple[float, float, float, float]: ... def CutAtEnd(self, End: float, TolEnd: float) -> None: ... def CutAtStart(self, Start: float, TolStart: float) -> None: ... @@ -110,4 +117,3 @@ class Intrv_Intervals: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/LDOM.pyi b/src/SWIG_files/wrapper/LDOM.pyi index ea836c7c3..df6d646bc 100644 --- a/src/SWIG_files/wrapper/LDOM.pyi +++ b/src/SWIG_files/wrapper/LDOM.pyi @@ -4,71 +4,69 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - -#classnotwrapped +# classnotwrapped class LDOM_Attr: ... -#classnotwrapped +# classnotwrapped class LDOM_BasicAttribute: ... -#classnotwrapped +# classnotwrapped class LDOM_BasicElement: ... -#classnotwrapped +# classnotwrapped class LDOM_BasicNode: ... -#classnotwrapped +# classnotwrapped class LDOM_BasicText: ... -#classnotwrapped +# classnotwrapped class LDOM_CDATASection: ... -#classnotwrapped +# classnotwrapped class LDOM_CharReference: ... -#classnotwrapped +# classnotwrapped class LDOM_CharacterData: ... -#classnotwrapped +# classnotwrapped class LDOM_Comment: ... -#classnotwrapped +# classnotwrapped class LDOM_Document: ... -#classnotwrapped +# classnotwrapped class LDOM_DocumentType: ... -#classnotwrapped +# classnotwrapped class LDOM_Element: ... -#classnotwrapped +# classnotwrapped class LDOM_LDOMImplementation: ... -#classnotwrapped +# classnotwrapped class LDOM_MemManager: ... -#classnotwrapped +# classnotwrapped class LDOM_Node: ... -#classnotwrapped +# classnotwrapped class LDOM_NodeList: ... -#classnotwrapped +# classnotwrapped class LDOM_SBuffer: ... -#classnotwrapped +# classnotwrapped class LDOM_OSStream: ... -#classnotwrapped +# classnotwrapped class LDOM_Text: ... -#classnotwrapped +# classnotwrapped class LDOM_XmlReader: ... -#classnotwrapped +# classnotwrapped class LDOM_XmlWriter: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/LProp.pyi b/src/SWIG_files/wrapper/LProp.pyi index 215da7e3c..6525838d7 100644 --- a/src/SWIG_files/wrapper/LProp.pyi +++ b/src/SWIG_files/wrapper/LProp.pyi @@ -5,21 +5,26 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.GeomAbs import * - class LProp_SequenceOfCIType: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: LProp_CIType) -> LProp_CIType: ... def Clear(self) -> None: ... def First(self) -> LProp_CIType: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> LProp_CIType: ... def Length(self) -> int: ... - def Append(self, theItem: LProp_CIType) -> LProp_CIType: ... + def Lower(self) -> int: ... def Prepend(self, theItem: LProp_CIType) -> LProp_CIType: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> LProp_CIType: ... def SetValue(self, theIndex: int, theValue: LProp_CIType) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> LProp_CIType: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class LProp_CIType(IntEnum): LProp_Inflection: int = ... @@ -43,7 +48,9 @@ LProp_Computed = LProp_Status.LProp_Computed class LProp_AnalyticCurInf: def __init__(self) -> None: ... - def Perform(self, T: GeomAbs_CurveType, UFirst: float, ULast: float, Result: LProp_CurAndInf) -> None: ... + def Perform( + self, T: GeomAbs_CurveType, UFirst: float, ULast: float, Result: LProp_CurAndInf + ) -> None: ... class LProp_CurAndInf: def __init__(self) -> None: ... @@ -58,4 +65,3 @@ class LProp_CurAndInf: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/LProp3d.pyi b/src/SWIG_files/wrapper/LProp3d.pyi index 39ab78e4e..5023af114 100644 --- a/src/SWIG_files/wrapper/LProp3d.pyi +++ b/src/SWIG_files/wrapper/LProp3d.pyi @@ -6,12 +6,13 @@ from OCC.Core.NCollection import * from OCC.Core.Adaptor3d import * from OCC.Core.gp import * - class LProp3d_CLProps: @overload def __init__(self, C: Adaptor3d_Curve, N: int, Resolution: float) -> None: ... @overload - def __init__(self, C: Adaptor3d_Curve, U: float, N: int, Resolution: float) -> None: ... + def __init__( + self, C: Adaptor3d_Curve, U: float, N: int, Resolution: float + ) -> None: ... @overload def __init__(self, N: int, Resolution: float) -> None: ... def CentreOfCurvature(self, P: gp_Pnt) -> None: ... @@ -34,7 +35,9 @@ class LProp3d_CurveTool: @staticmethod def D2(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... @staticmethod - def D3(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ... + def D3( + C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... @staticmethod def FirstParameter(C: Adaptor3d_Curve) -> float: ... @staticmethod @@ -44,7 +47,9 @@ class LProp3d_CurveTool: class LProp3d_SLProps: @overload - def __init__(self, S: Adaptor3d_Surface, U: float, V: float, N: int, Resolution: float) -> None: ... + def __init__( + self, S: Adaptor3d_Surface, U: float, V: float, N: int, Resolution: float + ) -> None: ... @overload def __init__(self, S: Adaptor3d_Surface, N: int, Resolution: float) -> None: ... @overload @@ -77,9 +82,21 @@ class LProp3d_SurfaceTool: @staticmethod def Continuity(S: Adaptor3d_Surface) -> int: ... @staticmethod - def D1(S: Adaptor3d_Surface, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... + def D1( + S: Adaptor3d_Surface, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec + ) -> None: ... @staticmethod - def D2(S: Adaptor3d_Surface, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, DUV: gp_Vec) -> None: ... + def D2( + S: Adaptor3d_Surface, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + DUV: gp_Vec, + ) -> None: ... @staticmethod def DN(S: Adaptor3d_Surface, U: float, V: float, IU: int, IV: int) -> gp_Vec: ... @staticmethod @@ -88,4 +105,3 @@ class LProp3d_SurfaceTool: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Law.i b/src/SWIG_files/wrapper/Law.i index feb1653c9..39956be6c 100644 --- a/src/SWIG_files/wrapper/Law.i +++ b/src/SWIG_files/wrapper/Law.i @@ -95,6 +95,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = Law_ListIteratorOfLaws(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(Law_ListIteratorOfLaws) NCollection_TListIterator>; diff --git a/src/SWIG_files/wrapper/Law.pyi b/src/SWIG_files/wrapper/Law.pyi index 67aab4061..b4067752d 100644 --- a/src/SWIG_files/wrapper/Law.pyi +++ b/src/SWIG_files/wrapper/Law.pyi @@ -8,20 +8,19 @@ from OCC.Core.Adaptor3d import * from OCC.Core.GeomAbs import * from OCC.Core.TColgp import * - class Law_Laws: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: Law_Laws) -> Law_Laws: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class law: @overload @@ -29,21 +28,61 @@ class law: def MixBnd(Lin: Law_Linear) -> Law_BSpFunc: ... @overload @staticmethod - def MixBnd(Degree: int, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, Lin: Law_Linear) -> TColStd_HArray1OfReal: ... + def MixBnd( + Degree: int, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + Lin: Law_Linear, + ) -> TColStd_HArray1OfReal: ... @staticmethod - def MixTgt(Degree: int, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, NulOnTheRight: bool, Index: int) -> TColStd_HArray1OfReal: ... + def MixTgt( + Degree: int, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + NulOnTheRight: bool, + Index: int, + ) -> TColStd_HArray1OfReal: ... @staticmethod - def Reparametrize(Curve: Adaptor3d_Curve, First: float, Last: float, HasDF: bool, HasDL: bool, DFirst: float, DLast: float, Rev: bool, NbPoints: int) -> Law_BSpline: ... + def Reparametrize( + Curve: Adaptor3d_Curve, + First: float, + Last: float, + HasDF: bool, + HasDL: bool, + DFirst: float, + DLast: float, + Rev: bool, + NbPoints: int, + ) -> Law_BSpline: ... @staticmethod - def Scale(First: float, Last: float, HasF: bool, HasL: bool, VFirst: float, VLast: float) -> Law_BSpline: ... + def Scale( + First: float, Last: float, HasF: bool, HasL: bool, VFirst: float, VLast: float + ) -> Law_BSpline: ... @staticmethod - def ScaleCub(First: float, Last: float, HasF: bool, HasL: bool, VFirst: float, VLast: float) -> Law_BSpline: ... + def ScaleCub( + First: float, Last: float, HasF: bool, HasL: bool, VFirst: float, VLast: float + ) -> Law_BSpline: ... class Law_BSpline(Standard_Transient): @overload - def __init__(self, Poles: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Multiplicities: TColStd_Array1OfInteger, Degree: int, Periodic: Optional[bool] = False) -> None: ... + def __init__( + self, + Poles: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Multiplicities: TColStd_Array1OfInteger, + Degree: int, + Periodic: Optional[bool] = False, + ) -> None: ... @overload - def __init__(self, Poles: TColStd_Array1OfReal, Weights: TColStd_Array1OfReal, Knots: TColStd_Array1OfReal, Multiplicities: TColStd_Array1OfInteger, Degree: int, Periodic: Optional[bool] = False) -> None: ... + def __init__( + self, + Poles: TColStd_Array1OfReal, + Weights: TColStd_Array1OfReal, + Knots: TColStd_Array1OfReal, + Multiplicities: TColStd_Array1OfInteger, + Degree: int, + Periodic: Optional[bool] = False, + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Law_BSpline: ... def D0(self, U: float) -> float: ... @@ -61,8 +100,20 @@ class Law_BSpline(Standard_Transient): @overload def IncreaseMultiplicity(self, I1: int, I2: int, M: int) -> None: ... def IncrementMultiplicity(self, I1: int, I2: int, M: int) -> None: ... - def InsertKnot(self, U: float, M: Optional[int] = 1, ParametricTolerance: Optional[float] = 0.0, Add: Optional[bool] = True) -> None: ... - def InsertKnots(self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger, ParametricTolerance: Optional[float] = 0.0, Add: Optional[bool] = False) -> None: ... + def InsertKnot( + self, + U: float, + M: Optional[int] = 1, + ParametricTolerance: Optional[float] = 0.0, + Add: Optional[bool] = True, + ) -> None: ... + def InsertKnots( + self, + Knots: TColStd_Array1OfReal, + Mults: TColStd_Array1OfInteger, + ParametricTolerance: Optional[float] = 0.0, + Add: Optional[bool] = False, + ) -> None: ... def IsCN(self, N: int) -> bool: ... def IsClosed(self) -> bool: ... def IsPeriodic(self) -> bool: ... @@ -75,14 +126,31 @@ class Law_BSpline(Standard_Transient): def LastUKnotIndex(self) -> int: ... def LocalD0(self, U: float, FromK1: int, ToK2: int) -> float: ... def LocalD1(self, U: float, FromK1: int, ToK2: int) -> Tuple[float, float]: ... - def LocalD2(self, U: float, FromK1: int, ToK2: int) -> Tuple[float, float, float]: ... - def LocalD3(self, U: float, FromK1: int, ToK2: int) -> Tuple[float, float, float, float]: ... + def LocalD2( + self, U: float, FromK1: int, ToK2: int + ) -> Tuple[float, float, float]: ... + def LocalD3( + self, U: float, FromK1: int, ToK2: int + ) -> Tuple[float, float, float, float]: ... def LocalDN(self, U: float, FromK1: int, ToK2: int, N: int) -> float: ... def LocalValue(self, U: float, FromK1: int, ToK2: int) -> float: ... - def LocateU(self, U: float, ParametricTolerance: float, WithKnotRepetition: Optional[bool] = False) -> Tuple[int, int]: ... + def LocateU( + self, + U: float, + ParametricTolerance: float, + WithKnotRepetition: Optional[bool] = False, + ) -> Tuple[int, int]: ... @staticmethod def MaxDegree() -> int: ... - def MovePointAndTangent(self, U: float, NewValue: float, Derivative: float, Tolerance: float, StartingCondition: int, EndingCondition: int) -> int: ... + def MovePointAndTangent( + self, + U: float, + NewValue: float, + Derivative: float, + Tolerance: float, + StartingCondition: int, + EndingCondition: int, + ) -> int: ... def Multiplicities(self, M: TColStd_Array1OfInteger) -> None: ... def Multiplicity(self, Index: int) -> int: ... def NbKnots(self) -> int: ... @@ -131,15 +199,25 @@ class Law_Function(Standard_Transient): class Law_Interpolate: @overload - def __init__(self, Points: TColStd_HArray1OfReal, PeriodicFlag: bool, Tolerance: float) -> None: ... + def __init__( + self, Points: TColStd_HArray1OfReal, PeriodicFlag: bool, Tolerance: float + ) -> None: ... @overload - def __init__(self, Points: TColStd_HArray1OfReal, Parameters: TColStd_HArray1OfReal, PeriodicFlag: bool, Tolerance: float) -> None: ... + def __init__( + self, + Points: TColStd_HArray1OfReal, + Parameters: TColStd_HArray1OfReal, + PeriodicFlag: bool, + Tolerance: float, + ) -> None: ... def Curve(self) -> Law_BSpline: ... def IsDone(self) -> bool: ... @overload def Load(self, InitialTangent: float, FinalTangent: float) -> None: ... @overload - def Load(self, Tangents: TColStd_Array1OfReal, TangentFlags: TColStd_HArray1OfBoolean) -> None: ... + def Load( + self, Tangents: TColStd_Array1OfReal, TangentFlags: TColStd_HArray1OfBoolean + ) -> None: ... def Perform(self) -> None: ... class Law_BSpFunc(Law_Function): @@ -203,22 +281,51 @@ class Law_Linear(Law_Function): class Law_Interpol(Law_BSpFunc): def __init__(self) -> None: ... @overload - def Set(self, ParAndRad: TColgp_Array1OfPnt2d, Periodic: Optional[bool] = False) -> None: ... + def Set( + self, ParAndRad: TColgp_Array1OfPnt2d, Periodic: Optional[bool] = False + ) -> None: ... @overload - def Set(self, ParAndRad: TColgp_Array1OfPnt2d, Dd: float, Df: float, Periodic: Optional[bool] = False) -> None: ... + def Set( + self, + ParAndRad: TColgp_Array1OfPnt2d, + Dd: float, + Df: float, + Periodic: Optional[bool] = False, + ) -> None: ... @overload - def SetInRelative(self, ParAndRad: TColgp_Array1OfPnt2d, Ud: float, Uf: float, Periodic: Optional[bool] = False) -> None: ... + def SetInRelative( + self, + ParAndRad: TColgp_Array1OfPnt2d, + Ud: float, + Uf: float, + Periodic: Optional[bool] = False, + ) -> None: ... @overload - def SetInRelative(self, ParAndRad: TColgp_Array1OfPnt2d, Ud: float, Uf: float, Dd: float, Df: float, Periodic: Optional[bool] = False) -> None: ... + def SetInRelative( + self, + ParAndRad: TColgp_Array1OfPnt2d, + Ud: float, + Uf: float, + Dd: float, + Df: float, + Periodic: Optional[bool] = False, + ) -> None: ... class Law_S(Law_BSpFunc): def __init__(self) -> None: ... @overload def Set(self, Pdeb: float, Valdeb: float, Pfin: float, Valfin: float) -> None: ... @overload - def Set(self, Pdeb: float, Valdeb: float, Ddeb: float, Pfin: float, Valfin: float, Dfin: float) -> None: ... + def Set( + self, + Pdeb: float, + Valdeb: float, + Ddeb: float, + Pfin: float, + Valfin: float, + Dfin: float, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/LocOpe.pyi b/src/SWIG_files/wrapper/LocOpe.pyi index f98174635..38624d0a8 100644 --- a/src/SWIG_files/wrapper/LocOpe.pyi +++ b/src/SWIG_files/wrapper/LocOpe.pyi @@ -11,51 +11,68 @@ from OCC.Core.TColGeom import * from OCC.Core.gp import * from OCC.Core.Geom import * - class LocOpe_SequenceOfCirc: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: gp_Circ) -> gp_Circ: ... def Clear(self) -> None: ... def First(self) -> gp_Circ: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Circ: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Circ) -> gp_Circ: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Circ) -> gp_Circ: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Circ: ... def SetValue(self, theIndex: int, theValue: gp_Circ) -> None: ... - -class LocOpe_SequenceOfLin: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Circ: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class LocOpe_SequenceOfLin: + def Assign(self, theItem: gp_Lin) -> gp_Lin: ... def Clear(self) -> None: ... def First(self) -> gp_Lin: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Lin: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Lin) -> gp_Lin: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Lin) -> gp_Lin: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Lin: ... def SetValue(self, theIndex: int, theValue: gp_Lin) -> None: ... - -class LocOpe_SequenceOfPntFace: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Lin: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class LocOpe_SequenceOfPntFace: + def Assign(self, theItem: LocOpe_PntFace) -> LocOpe_PntFace: ... def Clear(self) -> None: ... def First(self) -> LocOpe_PntFace: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> LocOpe_PntFace: ... def Length(self) -> int: ... - def Append(self, theItem: LocOpe_PntFace) -> LocOpe_PntFace: ... + def Lower(self) -> int: ... def Prepend(self, theItem: LocOpe_PntFace) -> LocOpe_PntFace: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> LocOpe_PntFace: ... def SetValue(self, theIndex: int, theValue: LocOpe_PntFace) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> LocOpe_PntFace: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class LocOpe_Operation(IntEnum): LocOpe_FUSE: int = ... @@ -90,9 +107,13 @@ class LocOpe_BuildWires: @overload def __init__(self) -> None: ... @overload - def __init__(self, Ledges: TopTools_ListOfShape, PW: LocOpe_WiresOnShape) -> None: ... + def __init__( + self, Ledges: TopTools_ListOfShape, PW: LocOpe_WiresOnShape + ) -> None: ... def IsDone(self) -> bool: ... - def Perform(self, Ledges: TopTools_ListOfShape, PW: LocOpe_WiresOnShape) -> None: ... + def Perform( + self, Ledges: TopTools_ListOfShape, PW: LocOpe_WiresOnShape + ) -> None: ... def Result(self) -> TopTools_ListOfShape: ... class LocOpe_CSIntersector: @@ -104,13 +125,21 @@ class LocOpe_CSIntersector: def Init(self, S: TopoDS_Shape) -> None: ... def IsDone(self) -> bool: ... @overload - def LocalizeAfter(self, I: int, From: float, Tol: float) -> Tuple[bool, TopAbs_Orientation, int, int]: ... + def LocalizeAfter( + self, I: int, From: float, Tol: float + ) -> Tuple[bool, TopAbs_Orientation, int, int]: ... @overload - def LocalizeAfter(self, I: int, FromInd: int, Tol: float) -> Tuple[bool, TopAbs_Orientation, int, int]: ... + def LocalizeAfter( + self, I: int, FromInd: int, Tol: float + ) -> Tuple[bool, TopAbs_Orientation, int, int]: ... @overload - def LocalizeBefore(self, I: int, From: float, Tol: float) -> Tuple[bool, TopAbs_Orientation, int, int]: ... + def LocalizeBefore( + self, I: int, From: float, Tol: float + ) -> Tuple[bool, TopAbs_Orientation, int, int]: ... @overload - def LocalizeBefore(self, I: int, FromInd: int, Tol: float) -> Tuple[bool, TopAbs_Orientation, int, int]: ... + def LocalizeBefore( + self, I: int, FromInd: int, Tol: float + ) -> Tuple[bool, TopAbs_Orientation, int, int]: ... def NbPoints(self, I: int) -> int: ... @overload def Perform(self, Slin: LocOpe_SequenceOfLin) -> None: ... @@ -133,19 +162,29 @@ class LocOpe_CurveShapeIntersector: def Init(self, C: gp_Circ, S: TopoDS_Shape) -> None: ... def IsDone(self) -> bool: ... @overload - def LocalizeAfter(self, From: float) -> Tuple[bool, TopAbs_Orientation, int, int]: ... + def LocalizeAfter( + self, From: float + ) -> Tuple[bool, TopAbs_Orientation, int, int]: ... @overload - def LocalizeAfter(self, FromInd: int) -> Tuple[bool, TopAbs_Orientation, int, int]: ... + def LocalizeAfter( + self, FromInd: int + ) -> Tuple[bool, TopAbs_Orientation, int, int]: ... @overload - def LocalizeBefore(self, From: float) -> Tuple[bool, TopAbs_Orientation, int, int]: ... + def LocalizeBefore( + self, From: float + ) -> Tuple[bool, TopAbs_Orientation, int, int]: ... @overload - def LocalizeBefore(self, FromInd: int) -> Tuple[bool, TopAbs_Orientation, int, int]: ... + def LocalizeBefore( + self, FromInd: int + ) -> Tuple[bool, TopAbs_Orientation, int, int]: ... def NbPoints(self) -> int: ... def Point(self, Index: int) -> LocOpe_PntFace: ... class LocOpe_DPrism: @overload - def __init__(self, Spine: TopoDS_Face, Height1: float, Height2: float, Angle: float) -> None: ... + def __init__( + self, Spine: TopoDS_Face, Height1: float, Height2: float, Angle: float + ) -> None: ... @overload def __init__(self, Spine: TopoDS_Face, Height: float, Angle: float) -> None: ... def BarycCurve(self) -> Geom_Curve: ... @@ -225,15 +264,23 @@ class LocOpe_LinearForm: @overload def __init__(self) -> None: ... @overload - def __init__(self, Base: TopoDS_Shape, V: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt) -> None: ... + def __init__( + self, Base: TopoDS_Shape, V: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt + ) -> None: ... @overload - def __init__(self, Base: TopoDS_Shape, V: gp_Vec, Vectra: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt) -> None: ... + def __init__( + self, Base: TopoDS_Shape, V: gp_Vec, Vectra: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt + ) -> None: ... def FirstShape(self) -> TopoDS_Shape: ... def LastShape(self) -> TopoDS_Shape: ... @overload - def Perform(self, Base: TopoDS_Shape, V: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt) -> None: ... + def Perform( + self, Base: TopoDS_Shape, V: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt + ) -> None: ... @overload - def Perform(self, Base: TopoDS_Shape, V: gp_Vec, Vectra: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt) -> None: ... + def Perform( + self, Base: TopoDS_Shape, V: gp_Vec, Vectra: gp_Vec, Pnt1: gp_Pnt, Pnt2: gp_Pnt + ) -> None: ... def Shape(self) -> TopoDS_Shape: ... def Shapes(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... @@ -252,7 +299,15 @@ class LocOpe_PntFace: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: gp_Pnt, F: TopoDS_Face, Or: TopAbs_Orientation, Param: float, UPar: float, VPar: float) -> None: ... + def __init__( + self, + P: gp_Pnt, + F: TopoDS_Face, + Or: TopAbs_Orientation, + Param: float, + UPar: float, + VPar: float, + ) -> None: ... def ChangeOrientation(self) -> TopAbs_Orientation: ... def Face(self) -> TopoDS_Face: ... def Orientation(self) -> TopAbs_Orientation: ... @@ -288,9 +343,23 @@ class LocOpe_SplitDrafts: def IsDone(self) -> bool: ... def OriginalShape(self) -> TopoDS_Shape: ... @overload - def Perform(self, F: TopoDS_Face, W: TopoDS_Wire, Extractg: gp_Dir, NPlg: gp_Pln, Angleg: float, Extractd: gp_Dir, NPld: gp_Pln, Angled: float, ModifyLeft: Optional[bool] = True, ModifyRight: Optional[bool] = True) -> None: ... - @overload - def Perform(self, F: TopoDS_Face, W: TopoDS_Wire, Extract: gp_Dir, NPl: gp_Pln, Angle: float) -> None: ... + def Perform( + self, + F: TopoDS_Face, + W: TopoDS_Wire, + Extractg: gp_Dir, + NPlg: gp_Pln, + Angleg: float, + Extractd: gp_Dir, + NPld: gp_Pln, + Angled: float, + ModifyLeft: Optional[bool] = True, + ModifyRight: Optional[bool] = True, + ) -> None: ... + @overload + def Perform( + self, F: TopoDS_Face, W: TopoDS_Wire, Extract: gp_Dir, NPl: gp_Pln, Angle: float + ) -> None: ... def Shape(self) -> TopoDS_Shape: ... def ShapesFromShape(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... @@ -349,7 +418,9 @@ class LocOpe_WiresOnShape(Standard_Transient): @overload def OnEdge(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float]: ... @overload - def OnEdge(self, V: TopoDS_Vertex, EdgeFrom: TopoDS_Edge, E: TopoDS_Edge) -> Tuple[bool, float]: ... + def OnEdge( + self, V: TopoDS_Vertex, EdgeFrom: TopoDS_Edge, E: TopoDS_Edge + ) -> Tuple[bool, float]: ... def OnFace(self) -> TopoDS_Face: ... def OnVertex(self, Vwire: TopoDS_Vertex, Vshape: TopoDS_Vertex) -> bool: ... def SetCheckInterior(self, ToCheckInterior: bool) -> None: ... @@ -368,13 +439,12 @@ class LocOpe_GluedShape(LocOpe_GeneratedShape): def Init(self, S: TopoDS_Shape) -> None: ... def OrientedFaces(self) -> TopTools_ListOfShape: ... -#classnotwrapped +# classnotwrapped class LocOpe_Revol: ... -#classnotwrapped +# classnotwrapped class LocOpe_RevolutionForm: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/LocalAnalysis.pyi b/src/SWIG_files/wrapper/LocalAnalysis.pyi index c44e6c8e9..a90458810 100644 --- a/src/SWIG_files/wrapper/LocalAnalysis.pyi +++ b/src/SWIG_files/wrapper/LocalAnalysis.pyi @@ -8,7 +8,6 @@ from OCC.Core.GeomAbs import * from OCC.Core.Geom2d import * from OCC.Core.GeomLProp import * - class LocalAnalysis_StatusErrorType(IntEnum): LocalAnalysis_NullFirstDerivative: int = ... LocalAnalysis_NullSecondDerivative: int = ... @@ -16,11 +15,21 @@ class LocalAnalysis_StatusErrorType(IntEnum): LocalAnalysis_NormalNotDefined: int = ... LocalAnalysis_CurvatureNotDefined: int = ... -LocalAnalysis_NullFirstDerivative = LocalAnalysis_StatusErrorType.LocalAnalysis_NullFirstDerivative -LocalAnalysis_NullSecondDerivative = LocalAnalysis_StatusErrorType.LocalAnalysis_NullSecondDerivative -LocalAnalysis_TangentNotDefined = LocalAnalysis_StatusErrorType.LocalAnalysis_TangentNotDefined -LocalAnalysis_NormalNotDefined = LocalAnalysis_StatusErrorType.LocalAnalysis_NormalNotDefined -LocalAnalysis_CurvatureNotDefined = LocalAnalysis_StatusErrorType.LocalAnalysis_CurvatureNotDefined +LocalAnalysis_NullFirstDerivative = ( + LocalAnalysis_StatusErrorType.LocalAnalysis_NullFirstDerivative +) +LocalAnalysis_NullSecondDerivative = ( + LocalAnalysis_StatusErrorType.LocalAnalysis_NullSecondDerivative +) +LocalAnalysis_TangentNotDefined = ( + LocalAnalysis_StatusErrorType.LocalAnalysis_TangentNotDefined +) +LocalAnalysis_NormalNotDefined = ( + LocalAnalysis_StatusErrorType.LocalAnalysis_NormalNotDefined +) +LocalAnalysis_CurvatureNotDefined = ( + LocalAnalysis_StatusErrorType.LocalAnalysis_CurvatureNotDefined +) class localanalysis: @overload @@ -31,7 +40,22 @@ class localanalysis: def Dump(curvconti: LocalAnalysis_CurveContinuity) -> str: ... class LocalAnalysis_CurveContinuity: - def __init__(self, Curv1: Geom_Curve, u1: float, Curv2: Geom_Curve, u2: float, Order: GeomAbs_Shape, EpsNul: Optional[float] = 0.001, EpsC0: Optional[float] = 0.001, EpsC1: Optional[float] = 0.001, EpsC2: Optional[float] = 0.001, EpsG1: Optional[float] = 0.001, EpsG2: Optional[float] = 0.001, Percent: Optional[float] = 0.01, Maxlen: Optional[float] = 10000) -> None: ... + def __init__( + self, + Curv1: Geom_Curve, + u1: float, + Curv2: Geom_Curve, + u2: float, + Order: GeomAbs_Shape, + EpsNul: Optional[float] = 0.001, + EpsC0: Optional[float] = 0.001, + EpsC1: Optional[float] = 0.001, + EpsC2: Optional[float] = 0.001, + EpsG1: Optional[float] = 0.001, + EpsG2: Optional[float] = 0.001, + Percent: Optional[float] = 0.01, + Maxlen: Optional[float] = 10000, + ) -> None: ... def C0Value(self) -> float: ... def C1Angle(self) -> float: ... def C1Ratio(self) -> float: ... @@ -51,11 +75,51 @@ class LocalAnalysis_CurveContinuity: class LocalAnalysis_SurfaceContinuity: @overload - def __init__(self, Surf1: Geom_Surface, u1: float, v1: float, Surf2: Geom_Surface, u2: float, v2: float, Order: GeomAbs_Shape, EpsNul: Optional[float] = 0.001, EpsC0: Optional[float] = 0.001, EpsC1: Optional[float] = 0.001, EpsC2: Optional[float] = 0.001, EpsG1: Optional[float] = 0.001, Percent: Optional[float] = 0.01, Maxlen: Optional[float] = 10000) -> None: ... + def __init__( + self, + Surf1: Geom_Surface, + u1: float, + v1: float, + Surf2: Geom_Surface, + u2: float, + v2: float, + Order: GeomAbs_Shape, + EpsNul: Optional[float] = 0.001, + EpsC0: Optional[float] = 0.001, + EpsC1: Optional[float] = 0.001, + EpsC2: Optional[float] = 0.001, + EpsG1: Optional[float] = 0.001, + Percent: Optional[float] = 0.01, + Maxlen: Optional[float] = 10000, + ) -> None: ... @overload - def __init__(self, curv1: Geom2d_Curve, curv2: Geom2d_Curve, U: float, Surf1: Geom_Surface, Surf2: Geom_Surface, Order: GeomAbs_Shape, EpsNul: Optional[float] = 0.001, EpsC0: Optional[float] = 0.001, EpsC1: Optional[float] = 0.001, EpsC2: Optional[float] = 0.001, EpsG1: Optional[float] = 0.001, Percent: Optional[float] = 0.01, Maxlen: Optional[float] = 10000) -> None: ... + def __init__( + self, + curv1: Geom2d_Curve, + curv2: Geom2d_Curve, + U: float, + Surf1: Geom_Surface, + Surf2: Geom_Surface, + Order: GeomAbs_Shape, + EpsNul: Optional[float] = 0.001, + EpsC0: Optional[float] = 0.001, + EpsC1: Optional[float] = 0.001, + EpsC2: Optional[float] = 0.001, + EpsG1: Optional[float] = 0.001, + Percent: Optional[float] = 0.01, + Maxlen: Optional[float] = 10000, + ) -> None: ... @overload - def __init__(self, EpsNul: Optional[float] = 0.001, EpsC0: Optional[float] = 0.001, EpsC1: Optional[float] = 0.001, EpsC2: Optional[float] = 0.001, EpsG1: Optional[float] = 0.001, Percent: Optional[float] = 0.01, Maxlen: Optional[float] = 10000) -> None: ... + def __init__( + self, + EpsNul: Optional[float] = 0.001, + EpsC0: Optional[float] = 0.001, + EpsC1: Optional[float] = 0.001, + EpsC2: Optional[float] = 0.001, + EpsG1: Optional[float] = 0.001, + Percent: Optional[float] = 0.01, + Maxlen: Optional[float] = 10000, + ) -> None: ... def C0Value(self) -> float: ... def C1UAngle(self) -> float: ... def C1URatio(self) -> float: ... @@ -65,7 +129,9 @@ class LocalAnalysis_SurfaceContinuity: def C2URatio(self) -> float: ... def C2VAngle(self) -> float: ... def C2VRatio(self) -> float: ... - def ComputeAnalysis(self, Surf1: GeomLProp_SLProps, Surf2: GeomLProp_SLProps, Order: GeomAbs_Shape) -> None: ... + def ComputeAnalysis( + self, Surf1: GeomLProp_SLProps, Surf2: GeomLProp_SLProps, Order: GeomAbs_Shape + ) -> None: ... def ContinuityStatus(self) -> GeomAbs_Shape: ... def G1Angle(self) -> float: ... def G2CurvatureGap(self) -> float: ... @@ -80,4 +146,3 @@ class LocalAnalysis_SurfaceContinuity: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/MAT.pyi b/src/SWIG_files/wrapper/MAT.pyi index 171313a73..9141a70bc 100644 --- a/src/SWIG_files/wrapper/MAT.pyi +++ b/src/SWIG_files/wrapper/MAT.pyi @@ -4,36 +4,47 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class MAT_SequenceOfArc: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class MAT_SequenceOfBasicElt: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class MAT_SequenceOfBasicElt: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class MAT_Side(IntEnum): MAT_Left: int = ... @@ -43,7 +54,13 @@ MAT_Left = MAT_Side.MAT_Left MAT_Right = MAT_Side.MAT_Right class MAT_Arc(Standard_Transient): - def __init__(self, ArcIndex: int, GeomIndex: int, FirstElement: MAT_BasicElt, SecondElement: MAT_BasicElt) -> None: ... + def __init__( + self, + ArcIndex: int, + GeomIndex: int, + FirstElement: MAT_BasicElt, + SecondElement: MAT_BasicElt, + ) -> None: ... def FirstElement(self) -> MAT_BasicElt: ... def FirstNode(self) -> MAT_Node: ... def GeomIndex(self) -> int: ... @@ -57,7 +74,9 @@ class MAT_Arc(Standard_Transient): def SetFirstNode(self, aNode: MAT_Node) -> None: ... def SetGeomIndex(self, anInteger: int) -> None: ... def SetIndex(self, anInteger: int) -> None: ... - def SetNeighbour(self, aSide: MAT_Side, aNode: MAT_Node, anArc: MAT_Arc) -> None: ... + def SetNeighbour( + self, aSide: MAT_Side, aNode: MAT_Node, anArc: MAT_Arc + ) -> None: ... def SetSecondArc(self, aSide: MAT_Side, anArc: MAT_Arc) -> None: ... def SetSecondElement(self, aBasicElt: MAT_BasicElt) -> None: ... def SetSecondNode(self, aNode: MAT_Node) -> None: ... @@ -162,13 +181,21 @@ class MAT_Graph(Standard_Transient): def ChangeBasicElts(self, NewMap: MAT_DataMapOfIntegerBasicElt) -> None: ... def CompactArcs(self) -> None: ... def CompactNodes(self) -> None: ... - def FusionOfBasicElts(self, IndexElt1: int, IndexElt2: int) -> Tuple[bool, int, int, bool, int, int]: ... + def FusionOfBasicElts( + self, IndexElt1: int, IndexElt2: int + ) -> Tuple[bool, int, int, bool, int, int]: ... def Node(self, Index: int) -> MAT_Node: ... def NumberOfArcs(self) -> int: ... def NumberOfBasicElts(self) -> int: ... def NumberOfInfiniteNodes(self) -> int: ... def NumberOfNodes(self) -> int: ... - def Perform(self, SemiInfinite: bool, TheRoots: MAT_ListOfBisector, NbBasicElts: int, NbArcs: int) -> None: ... + def Perform( + self, + SemiInfinite: bool, + TheRoots: MAT_ListOfBisector, + NbBasicElts: int, + NbArcs: int, + ) -> None: ... class MAT_ListOfBisector(Standard_Transient): def __init__(self) -> None: ... @@ -289,4 +316,3 @@ class MAT_Zone(Standard_Transient): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/MAT2d.pyi b/src/SWIG_files/wrapper/MAT2d.pyi index 93abfb45b..7e4fe4e51 100644 --- a/src/SWIG_files/wrapper/MAT2d.pyi +++ b/src/SWIG_files/wrapper/MAT2d.pyi @@ -14,49 +14,77 @@ from OCC.Core.Bisector import * MAT2d_Array2OfConnexion = NewType("MAT2d_Array2OfConnexion", Any) class MAT2d_SequenceOfConnexion: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class MAT2d_SequenceOfSequenceOfCurve: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class MAT2d_SequenceOfSequenceOfCurve: + def Assign( + self, theItem: TColGeom2d_SequenceOfCurve + ) -> TColGeom2d_SequenceOfCurve: ... def Clear(self) -> None: ... def First(self) -> TColGeom2d_SequenceOfCurve: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> TColGeom2d_SequenceOfCurve: ... def Length(self) -> int: ... - def Append(self, theItem: TColGeom2d_SequenceOfCurve) -> TColGeom2d_SequenceOfCurve: ... - def Prepend(self, theItem: TColGeom2d_SequenceOfCurve) -> TColGeom2d_SequenceOfCurve: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: TColGeom2d_SequenceOfCurve + ) -> TColGeom2d_SequenceOfCurve: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TColGeom2d_SequenceOfCurve: ... def SetValue(self, theIndex: int, theValue: TColGeom2d_SequenceOfCurve) -> None: ... - -class MAT2d_SequenceOfSequenceOfGeometry: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> TColGeom2d_SequenceOfCurve: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class MAT2d_SequenceOfSequenceOfGeometry: + def Assign( + self, theItem: TColGeom2d_SequenceOfGeometry + ) -> TColGeom2d_SequenceOfGeometry: ... def Clear(self) -> None: ... def First(self) -> TColGeom2d_SequenceOfGeometry: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> TColGeom2d_SequenceOfGeometry: ... def Length(self) -> int: ... - def Append(self, theItem: TColGeom2d_SequenceOfGeometry) -> TColGeom2d_SequenceOfGeometry: ... - def Prepend(self, theItem: TColGeom2d_SequenceOfGeometry) -> TColGeom2d_SequenceOfGeometry: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: TColGeom2d_SequenceOfGeometry + ) -> TColGeom2d_SequenceOfGeometry: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: TColGeom2d_SequenceOfGeometry + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> TColGeom2d_SequenceOfGeometry: ... - def SetValue(self, theIndex: int, theValue: TColGeom2d_SequenceOfGeometry) -> None: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class MAT2d_BiInt: def __init__(self, I1: int, I2: int) -> None: ... @@ -71,12 +99,22 @@ class MAT2d_BiInt: def SecondIndex(self, I2: int) -> None: ... class MAT2d_Circuit(Standard_Transient): - def __init__(self, aJoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, IsOpenResult: Optional[bool] = False) -> None: ... + def __init__( + self, + aJoinType: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... def Connexion(self, Index: int) -> MAT2d_Connexion: ... def ConnexionOn(self, Index: int) -> bool: ... def LineLength(self, IndexLine: int) -> int: ... def NumberOfItems(self) -> int: ... - def Perform(self, aFigure: MAT2d_SequenceOfSequenceOfGeometry, IsClosed: TColStd_SequenceOfBoolean, IndRefLine: int, Trigo: bool) -> None: ... + def Perform( + self, + aFigure: MAT2d_SequenceOfSequenceOfGeometry, + IsClosed: TColStd_SequenceOfBoolean, + IndRefLine: int, + Trigo: bool, + ) -> None: ... def RefToEqui(self, IndLine: int, IndCurve: int) -> TColStd_SequenceOfInteger: ... def Value(self, Index: int) -> Geom2d_Geometry: ... @@ -84,7 +122,18 @@ class MAT2d_Connexion(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, LineA: int, LineB: int, ItemA: int, ItemB: int, Distance: float, ParameterOnA: float, ParameterOnB: float, PointA: gp_Pnt2d, PointB: gp_Pnt2d) -> None: ... + def __init__( + self, + LineA: int, + LineB: int, + ItemA: int, + ItemB: int, + Distance: float, + ParameterOnA: float, + ParameterOnB: float, + PointA: gp_Pnt2d, + PointB: gp_Pnt2d, + ) -> None: ... @overload def Distance(self) -> float: ... @overload @@ -144,7 +193,9 @@ class MAT2d_MiniPath: def IsConnexionsFrom(self, Index: int) -> bool: ... def IsRoot(self, Index: int) -> bool: ... def Path(self) -> MAT2d_SequenceOfConnexion: ... - def Perform(self, Figure: MAT2d_SequenceOfSequenceOfGeometry, IndStart: int, Sense: bool) -> None: ... + def Perform( + self, Figure: MAT2d_SequenceOfSequenceOfGeometry, IndStart: int, Sense: bool + ) -> None: ... def RunOnConnexions(self) -> None: ... class MAT2d_Tool2d: @@ -153,7 +204,9 @@ class MAT2d_Tool2d: def ChangeGeomBis(self, Index: int) -> Bisector_Bisec: ... def Circuit(self) -> MAT2d_Circuit: ... def CreateBisector(self, abisector: MAT_Bisector) -> None: ... - def Distance(self, abisector: MAT_Bisector, param1: float, param2: float) -> float: ... + def Distance( + self, abisector: MAT_Bisector, param1: float, param2: float + ) -> float: ... def Dump(self, bisector: int, erease: int) -> None: ... def FirstPoint(self, anitem: int) -> Tuple[int, float]: ... def GeomBis(self, Index: int) -> Bisector_Bisec: ... @@ -161,7 +214,9 @@ class MAT2d_Tool2d: def GeomPnt(self, Index: int) -> gp_Pnt2d: ... def GeomVec(self, Index: int) -> gp_Vec2d: ... def InitItems(self, aCircuit: MAT2d_Circuit) -> None: ... - def IntersectBisector(self, bisectorone: MAT_Bisector, bisectortwo: MAT_Bisector) -> Tuple[float, int]: ... + def IntersectBisector( + self, bisectorone: MAT_Bisector, bisectortwo: MAT_Bisector + ) -> Tuple[float, int]: ... def NumberOfItems(self) -> int: ... def Sense(self, aside: MAT_Side) -> None: ... def SetJoinType(self, aJoinType: GeomAbs_JoinType) -> None: ... @@ -174,13 +229,12 @@ class MAT2d_Tool2d: @overload def TrimBisector(self, abisector: MAT_Bisector, apoint: int) -> bool: ... -#classnotwrapped +# classnotwrapped class MAT2d_SketchExplorer: ... -#classnotwrapped +# classnotwrapped class MAT2d_CutCurve: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Media.pyi b/src/SWIG_files/wrapper/Media.pyi index 26c79cb85..570d19e4b 100644 --- a/src/SWIG_files/wrapper/Media.pyi +++ b/src/SWIG_files/wrapper/Media.pyi @@ -7,7 +7,6 @@ from OCC.Core.TCollection import * from OCC.Core.Image import * from OCC.Core.Graphic3d import * - class Media_BufferPool(Standard_Transient): def __init__(self) -> None: ... def BufferSize(self) -> int: ... @@ -46,7 +45,9 @@ class Media_FormatContext(Standard_Transient): @staticmethod def SecondsToUnits(theTimeSeconds: float) -> int: ... def Seek(self, theSeekPts: float, toSeekBack: bool) -> bool: ... - def SeekStream(self, theStreamId: int, theSeekPts: float, toSeekBack: bool) -> bool: ... + def SeekStream( + self, theStreamId: int, theSeekPts: float, toSeekBack: bool + ) -> bool: ... def Stream(self, theIndex: int) -> False: ... class Media_Frame(Standard_Transient): @@ -105,7 +106,12 @@ class Media_PlayerContext(Standard_Transient): def DumpFirstFrame(theSrcVideo: str, theMediaInfo: str) -> Media_Frame: ... @overload @staticmethod - def DumpFirstFrame(theSrcVideo: str, theOutImage: str, theMediaInfo: str, theMaxSize: Optional[int] = 0) -> bool: ... + def DumpFirstFrame( + theSrcVideo: str, + theOutImage: str, + theMediaInfo: str, + theMaxSize: Optional[int] = 0, + ) -> bool: ... def Pause(self) -> None: ... def PlayPause(self) -> Tuple[bool, float, float]: ... def PlaybackState(self) -> Tuple[bool, float, float]: ... @@ -118,7 +124,13 @@ class Media_PlayerContext(Standard_Transient): class Media_Scaler(Standard_Transient): def __init__(self) -> None: ... def Convert(self, theSrc: Media_Frame, theRes: Media_Frame) -> bool: ... - def Init(self, theSrcDims: Graphic3d_Vec2i, theSrcFormat: int, theResDims: Graphic3d_Vec2i, theResFormat: int) -> bool: ... + def Init( + self, + theSrcDims: Graphic3d_Vec2i, + theSrcFormat: int, + theResDims: Graphic3d_Vec2i, + theResFormat: int, + ) -> bool: ... def IsValid(self) -> bool: ... def Release(self) -> None: ... @@ -136,4 +148,3 @@ class Media_Timer(Standard_Transient): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/MeshVS.i b/src/SWIG_files/wrapper/MeshVS.i index c3879d3d5..0917dbc73 100644 --- a/src/SWIG_files/wrapper/MeshVS.i +++ b/src/SWIG_files/wrapper/MeshVS.i @@ -496,6 +496,12 @@ Array1ExtendIter(TColStd_SequenceOfInteger) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = MeshVS_ListIteratorOfPolyhedronVerts(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(MeshVS_PolyhedronVertsIter) NCollection_TListIterator; diff --git a/src/SWIG_files/wrapper/MeshVS.pyi b/src/SWIG_files/wrapper/MeshVS.pyi index 47c62dee0..5653ec6ca 100644 --- a/src/SWIG_files/wrapper/MeshVS.pyi +++ b/src/SWIG_files/wrapper/MeshVS.pyi @@ -53,35 +53,39 @@ class MeshVS_Array1OfSequenceOfInteger: def SetValue(self, theIndex: int, theValue: TColStd_SequenceOfInteger) -> None: ... class MeshVS_PolyhedronVerts: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: MeshVS_PolyhedronVerts) -> MeshVS_PolyhedronVerts: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class MeshVS_SequenceOfPrsBuilder: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class MeshVS_SequenceOfPrsBuilder: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - - + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class MeshVS_DrawerAttribute(IntEnum): MeshVS_DA_InteriorStyle: int = ... @@ -220,7 +224,12 @@ class MeshVS_Buffer: def __init__(self, theSize: int) -> None: ... class MeshVS_CommonSensitiveEntity(Select3D_SensitiveSet): - def __init__(self, theOwner: SelectMgr_EntityOwner, theParentMesh: MeshVS_Mesh, theSelMethod: MeshVS_MeshSelectionMethod) -> None: ... + def __init__( + self, + theOwner: SelectMgr_EntityOwner, + theParentMesh: MeshVS_Mesh, + theSelMethod: MeshVS_MeshSelectionMethod, + ) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def Box(self, theIdx: int) -> Select3D_BndBox3d: ... def Center(self, theIdx: int, theAxis: int) -> float: ... @@ -231,28 +240,73 @@ class MeshVS_CommonSensitiveEntity(Select3D_SensitiveSet): def Swap(self, theIdx1: int, theIdx2: int) -> None: ... class MeshVS_DataSource(Standard_Transient): - def Get3DGeom(self, ID: int, Data: MeshVS_HArray1OfSequenceOfInteger) -> Tuple[bool, int]: ... + def Get3DGeom( + self, ID: int, Data: MeshVS_HArray1OfSequenceOfInteger + ) -> Tuple[bool, int]: ... def GetAddr(self, ID: int, IsElement: bool) -> None: ... def GetAllElements(self) -> TColStd_PackedMapOfInteger: ... def GetAllGroups(self, Ids: TColStd_PackedMapOfInteger) -> None: ... def GetAllNodes(self) -> TColStd_PackedMapOfInteger: ... def GetBoundingBox(self) -> Bnd_Box: ... @overload - def GetDetectedEntities(self, Prs: MeshVS_Mesh, X: float, Y: float, aTol: float, Nodes: TColStd_HPackedMapOfInteger, Elements: TColStd_HPackedMapOfInteger) -> Tuple[bool, float]: ... + def GetDetectedEntities( + self, + Prs: MeshVS_Mesh, + X: float, + Y: float, + aTol: float, + Nodes: TColStd_HPackedMapOfInteger, + Elements: TColStd_HPackedMapOfInteger, + ) -> Tuple[bool, float]: ... @overload - def GetDetectedEntities(self, Prs: MeshVS_Mesh, XMin: float, YMin: float, XMax: float, YMax: float, aTol: float, Nodes: TColStd_HPackedMapOfInteger, Elements: TColStd_HPackedMapOfInteger) -> bool: ... + def GetDetectedEntities( + self, + Prs: MeshVS_Mesh, + XMin: float, + YMin: float, + XMax: float, + YMax: float, + aTol: float, + Nodes: TColStd_HPackedMapOfInteger, + Elements: TColStd_HPackedMapOfInteger, + ) -> bool: ... @overload - def GetDetectedEntities(self, Prs: MeshVS_Mesh, Polyline: TColgp_Array1OfPnt2d, aBox: Bnd_Box2d, aTol: float, Nodes: TColStd_HPackedMapOfInteger, Elements: TColStd_HPackedMapOfInteger) -> bool: ... + def GetDetectedEntities( + self, + Prs: MeshVS_Mesh, + Polyline: TColgp_Array1OfPnt2d, + aBox: Bnd_Box2d, + aTol: float, + Nodes: TColStd_HPackedMapOfInteger, + Elements: TColStd_HPackedMapOfInteger, + ) -> bool: ... @overload - def GetDetectedEntities(self, Prs: MeshVS_Mesh, Nodes: TColStd_HPackedMapOfInteger, Elements: TColStd_HPackedMapOfInteger) -> bool: ... - def GetGeom(self, ID: int, IsElement: bool, Coords: TColStd_Array1OfReal) -> Tuple[bool, int, MeshVS_EntityType]: ... - def GetGeomType(self, ID: int, IsElement: bool) -> Tuple[bool, MeshVS_EntityType]: ... - def GetGroup(self, Id: int, Ids: TColStd_PackedMapOfInteger) -> Tuple[bool, MeshVS_EntityType]: ... + def GetDetectedEntities( + self, + Prs: MeshVS_Mesh, + Nodes: TColStd_HPackedMapOfInteger, + Elements: TColStd_HPackedMapOfInteger, + ) -> bool: ... + def GetGeom( + self, ID: int, IsElement: bool, Coords: TColStd_Array1OfReal + ) -> Tuple[bool, int, MeshVS_EntityType]: ... + def GetGeomType( + self, ID: int, IsElement: bool + ) -> Tuple[bool, MeshVS_EntityType]: ... + def GetGroup( + self, Id: int, Ids: TColStd_PackedMapOfInteger + ) -> Tuple[bool, MeshVS_EntityType]: ... def GetGroupAddr(self, ID: int) -> None: ... - def GetNodeNormal(self, ranknode: int, ElementId: int) -> Tuple[bool, float, float, float]: ... - def GetNodesByElement(self, ID: int, NodeIDs: TColStd_Array1OfInteger) -> Tuple[bool, int]: ... + def GetNodeNormal( + self, ranknode: int, ElementId: int + ) -> Tuple[bool, float, float, float]: ... + def GetNodesByElement( + self, ID: int, NodeIDs: TColStd_Array1OfInteger + ) -> Tuple[bool, int]: ... def GetNormal(self, Id: int, Max: int) -> Tuple[bool, float, float, float]: ... - def GetNormalsByElement(self, Id: int, IsNodal: bool, MaxNodes: int, Normals: TColStd_HArray1OfReal) -> bool: ... + def GetNormalsByElement( + self, Id: int, IsNodal: bool, MaxNodes: int, Normals: TColStd_HArray1OfReal + ) -> bool: ... def IsAdvancedSelectionEnabled(self) -> bool: ... class MeshVS_Drawer(Standard_Transient): @@ -284,17 +338,30 @@ class MeshVS_DummySensitiveEntity(Select3D_SensitiveEntity): def Clear(self) -> None: ... def HasInitLocation(self) -> bool: ... def InvInitLocation(self) -> gp_GTrsf: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def ToBuildBVH(self) -> bool: ... class MeshVS_Mesh(AIS_InteractiveObject): def __init__(self, theIsAllowOverlapped: Optional[bool] = False) -> None: ... def AcceptDisplayMode(self, theMode: int) -> bool: ... - def AddBuilder(self, Builder: MeshVS_PrsBuilder, TreatAsHilighter: Optional[bool] = False) -> None: ... + def AddBuilder( + self, Builder: MeshVS_PrsBuilder, TreatAsHilighter: Optional[bool] = False + ) -> None: ... def ClearSelected(self) -> None: ... - def Compute(self, thePrsMgr: PrsMgr_PresentationManager, thePrs: Prs3d_Presentation, theDispMode: int) -> None: ... - def ComputeSelection(self, theSel: SelectMgr_Selection, theSelMode: int) -> None: ... + def Compute( + self, + thePrsMgr: PrsMgr_PresentationManager, + thePrs: Prs3d_Presentation, + theDispMode: int, + ) -> None: ... + def ComputeSelection( + self, theSel: SelectMgr_Selection, theSelMode: int + ) -> None: ... @overload def FindBuilder(self, TypeString: str) -> MeshVS_PrsBuilder: ... @overload @@ -311,8 +378,17 @@ class MeshVS_Mesh(AIS_InteractiveObject): def GetMeshSelMethod(self) -> MeshVS_MeshSelectionMethod: ... def GetOwnerMaps(self, IsElement: bool) -> MeshVS_DataMapOfIntegerOwner: ... def GetSelectableNodes(self) -> TColStd_HPackedMapOfInteger: ... - def HilightOwnerWithColor(self, thePM: PrsMgr_PresentationManager, theColor: Prs3d_Drawer, theOwner: SelectMgr_EntityOwner) -> None: ... - def HilightSelected(self, thePrsMgr: PrsMgr_PresentationManager, theOwners: SelectMgr_SequenceOfOwner) -> None: ... + def HilightOwnerWithColor( + self, + thePM: PrsMgr_PresentationManager, + theColor: Prs3d_Drawer, + theOwner: SelectMgr_EntityOwner, + ) -> None: ... + def HilightSelected( + self, + thePrsMgr: PrsMgr_PresentationManager, + theOwners: SelectMgr_SequenceOfOwner, + ) -> None: ... def IsHiddenElem(self, ID: int) -> bool: ... def IsHiddenNode(self, ID: int) -> bool: ... def IsSelectableElem(self, ID: int) -> bool: ... @@ -334,34 +410,78 @@ class MeshVS_Mesh(AIS_InteractiveObject): def UpdateSelectableNodes(self) -> None: ... class MeshVS_MeshEntityOwner(SelectMgr_EntityOwner): - def __init__(self, SelObj: SelectMgr_SelectableObject, ID: int, MeshEntity: None, Type: MeshVS_EntityType, Priority: Optional[int] = 0, IsGroup: Optional[bool] = False) -> None: ... - def Clear(self, PM: PrsMgr_PresentationManager, Mode: Optional[int] = 0) -> None: ... - def HilightWithColor(self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int) -> None: ... + def __init__( + self, + SelObj: SelectMgr_SelectableObject, + ID: int, + MeshEntity: None, + Type: MeshVS_EntityType, + Priority: Optional[int] = 0, + IsGroup: Optional[bool] = False, + ) -> None: ... + def Clear( + self, PM: PrsMgr_PresentationManager, Mode: Optional[int] = 0 + ) -> None: ... + def HilightWithColor( + self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int + ) -> None: ... def ID(self) -> int: ... def IsGroup(self) -> bool: ... - def IsHilighted(self, PM: PrsMgr_PresentationManager, Mode: Optional[int] = 0) -> bool: ... + def IsHilighted( + self, PM: PrsMgr_PresentationManager, Mode: Optional[int] = 0 + ) -> bool: ... def Owner(self) -> None: ... def Type(self) -> MeshVS_EntityType: ... - def Unhilight(self, PM: PrsMgr_PresentationManager, Mode: Optional[int] = 0) -> None: ... + def Unhilight( + self, PM: PrsMgr_PresentationManager, Mode: Optional[int] = 0 + ) -> None: ... class MeshVS_MeshOwner(SelectMgr_EntityOwner): - def __init__(self, theSelObj: SelectMgr_SelectableObject, theDS: MeshVS_DataSource, thePriority: Optional[int] = 0) -> None: ... - def AddSelectedEntities(self, Nodes: TColStd_HPackedMapOfInteger, Elems: TColStd_HPackedMapOfInteger) -> None: ... + def __init__( + self, + theSelObj: SelectMgr_SelectableObject, + theDS: MeshVS_DataSource, + thePriority: Optional[int] = 0, + ) -> None: ... + def AddSelectedEntities( + self, Nodes: TColStd_HPackedMapOfInteger, Elems: TColStd_HPackedMapOfInteger + ) -> None: ... def ClearSelectedEntities(self) -> None: ... def GetDataSource(self) -> MeshVS_DataSource: ... def GetDetectedElements(self) -> TColStd_HPackedMapOfInteger: ... def GetDetectedNodes(self) -> TColStd_HPackedMapOfInteger: ... def GetSelectedElements(self) -> TColStd_HPackedMapOfInteger: ... def GetSelectedNodes(self) -> TColStd_HPackedMapOfInteger: ... - def HilightWithColor(self, thePM: PrsMgr_PresentationManager, theColor: Prs3d_Drawer, theMode: int) -> None: ... + def HilightWithColor( + self, thePM: PrsMgr_PresentationManager, theColor: Prs3d_Drawer, theMode: int + ) -> None: ... def IsForcedHilight(self) -> bool: ... - def SetDetectedEntities(self, Nodes: TColStd_HPackedMapOfInteger, Elems: TColStd_HPackedMapOfInteger) -> None: ... - def Unhilight(self, PM: PrsMgr_PresentationManager, Mode: Optional[int] = 0) -> None: ... + def SetDetectedEntities( + self, Nodes: TColStd_HPackedMapOfInteger, Elems: TColStd_HPackedMapOfInteger + ) -> None: ... + def Unhilight( + self, PM: PrsMgr_PresentationManager, Mode: Optional[int] = 0 + ) -> None: ... class MeshVS_PrsBuilder(Standard_Transient): - def Build(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IDsToExclude: TColStd_PackedMapOfInteger, IsElement: bool, DisplayMode: int) -> None: ... - def CustomBuild(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IDsToExclude: TColStd_PackedMapOfInteger, DisplayMode: int) -> None: ... - def CustomSensitiveEntity(self, Owner: SelectMgr_EntityOwner, SelectMode: int) -> Select3D_SensitiveEntity: ... + def Build( + self, + Prs: Prs3d_Presentation, + IDs: TColStd_PackedMapOfInteger, + IDsToExclude: TColStd_PackedMapOfInteger, + IsElement: bool, + DisplayMode: int, + ) -> None: ... + def CustomBuild( + self, + Prs: Prs3d_Presentation, + IDs: TColStd_PackedMapOfInteger, + IDsToExclude: TColStd_PackedMapOfInteger, + DisplayMode: int, + ) -> None: ... + def CustomSensitiveEntity( + self, Owner: SelectMgr_EntityOwner, SelectMode: int + ) -> Select3D_SensitiveEntity: ... def GetDataSource(self) -> MeshVS_DataSource: ... def GetDrawer(self) -> MeshVS_Drawer: ... def GetFlags(self) -> int: ... @@ -376,38 +496,73 @@ class MeshVS_PrsBuilder(Standard_Transient): def TestFlags(self, DisplayMode: int) -> bool: ... class MeshVS_SensitiveFace(Select3D_SensitiveFace): - def __init__(self, theOwner: SelectMgr_EntityOwner, thePoints: TColgp_Array1OfPnt, theSensType: Optional[Select3D_TypeOfSensitivity] = Select3D_TOS_INTERIOR) -> None: ... + def __init__( + self, + theOwner: SelectMgr_EntityOwner, + thePoints: TColgp_Array1OfPnt, + theSensType: Optional[Select3D_TypeOfSensitivity] = Select3D_TOS_INTERIOR, + ) -> None: ... class MeshVS_SensitiveMesh(Select3D_SensitiveEntity): - def __init__(self, theOwner: SelectMgr_EntityOwner, theMode: Optional[int] = 0) -> None: ... + def __init__( + self, theOwner: SelectMgr_EntityOwner, theMode: Optional[int] = 0 + ) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def CenterOfGeometry(self) -> gp_Pnt: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... def GetMode(self) -> int: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... class MeshVS_SensitivePolyhedron(Select3D_SensitiveEntity): - def __init__(self, theOwner: SelectMgr_EntityOwner, theNodes: TColgp_Array1OfPnt, theTopo: MeshVS_HArray1OfSequenceOfInteger) -> None: ... + def __init__( + self, + theOwner: SelectMgr_EntityOwner, + theNodes: TColgp_Array1OfPnt, + theTopo: MeshVS_HArray1OfSequenceOfInteger, + ) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def CenterOfGeometry(self) -> gp_Pnt: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... class MeshVS_SensitiveQuad(Select3D_SensitiveEntity): @overload - def __init__(self, theOwner: SelectMgr_EntityOwner, theQuadVerts: TColgp_Array1OfPnt) -> None: ... + def __init__( + self, theOwner: SelectMgr_EntityOwner, theQuadVerts: TColgp_Array1OfPnt + ) -> None: ... @overload - def __init__(self, theOwner: SelectMgr_EntityOwner, thePnt1: gp_Pnt, thePnt2: gp_Pnt, thePnt3: gp_Pnt, thePnt4: gp_Pnt) -> None: ... + def __init__( + self, + theOwner: SelectMgr_EntityOwner, + thePnt1: gp_Pnt, + thePnt2: gp_Pnt, + thePnt3: gp_Pnt, + thePnt4: gp_Pnt, + ) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def CenterOfGeometry(self) -> gp_Pnt: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... class MeshVS_SensitiveSegment(Select3D_SensitiveSegment): - def __init__(self, theOwner: SelectMgr_EntityOwner, theFirstPnt: gp_Pnt, theLastPnt: gp_Pnt) -> None: ... + def __init__( + self, theOwner: SelectMgr_EntityOwner, theFirstPnt: gp_Pnt, theLastPnt: gp_Pnt + ) -> None: ... class MeshVS_SymmetricPairHasher: pass @@ -415,16 +570,28 @@ class MeshVS_SymmetricPairHasher: class MeshVS_Tool: @overload @staticmethod - def CreateAspectFillArea3d(theDr: MeshVS_Drawer, UseDefaults: Optional[bool] = True) -> Graphic3d_AspectFillArea3d: ... + def CreateAspectFillArea3d( + theDr: MeshVS_Drawer, UseDefaults: Optional[bool] = True + ) -> Graphic3d_AspectFillArea3d: ... @overload @staticmethod - def CreateAspectFillArea3d(theDr: MeshVS_Drawer, Mat: Graphic3d_MaterialAspect, UseDefaults: Optional[bool] = True) -> Graphic3d_AspectFillArea3d: ... + def CreateAspectFillArea3d( + theDr: MeshVS_Drawer, + Mat: Graphic3d_MaterialAspect, + UseDefaults: Optional[bool] = True, + ) -> Graphic3d_AspectFillArea3d: ... @staticmethod - def CreateAspectLine3d(theDr: MeshVS_Drawer, UseDefaults: Optional[bool] = True) -> Graphic3d_AspectLine3d: ... + def CreateAspectLine3d( + theDr: MeshVS_Drawer, UseDefaults: Optional[bool] = True + ) -> Graphic3d_AspectLine3d: ... @staticmethod - def CreateAspectMarker3d(theDr: MeshVS_Drawer, UseDefaults: Optional[bool] = True) -> Graphic3d_AspectMarker3d: ... + def CreateAspectMarker3d( + theDr: MeshVS_Drawer, UseDefaults: Optional[bool] = True + ) -> Graphic3d_AspectMarker3d: ... @staticmethod - def CreateAspectText3d(theDr: MeshVS_Drawer, UseDefaults: Optional[bool] = True) -> Graphic3d_AspectText3d: ... + def CreateAspectText3d( + theDr: MeshVS_Drawer, UseDefaults: Optional[bool] = True + ) -> Graphic3d_AspectText3d: ... @staticmethod def GetAverageNormal(Nodes: TColStd_Array1OfReal, Norm: gp_Vec) -> bool: ... @staticmethod @@ -434,26 +601,42 @@ class MeshVS_TwoColors: pass class MeshVS_TwoNodes: - def __init__(self, aFirst: Optional[int] = 0, aSecond: Optional[int] = 0) -> None: ... + def __init__( + self, aFirst: Optional[int] = 0, aSecond: Optional[int] = 0 + ) -> None: ... class MeshVS_DataSource3D(MeshVS_DataSource): @staticmethod def CreatePrismTopology(BasePoints: int) -> MeshVS_HArray1OfSequenceOfInteger: ... @staticmethod def CreatePyramidTopology(BasePoints: int) -> MeshVS_HArray1OfSequenceOfInteger: ... - def GetPrismTopology(self, BasePoints: int) -> MeshVS_HArray1OfSequenceOfInteger: ... - def GetPyramidTopology(self, BasePoints: int) -> MeshVS_HArray1OfSequenceOfInteger: ... + def GetPrismTopology( + self, BasePoints: int + ) -> MeshVS_HArray1OfSequenceOfInteger: ... + def GetPyramidTopology( + self, BasePoints: int + ) -> MeshVS_HArray1OfSequenceOfInteger: ... class MeshVS_DeformedDataSource(MeshVS_DataSource): - def __init__(self, theNonDeformDS: MeshVS_DataSource, theMagnify: float) -> None: ... - def Get3DGeom(self, ID: int, Data: MeshVS_HArray1OfSequenceOfInteger) -> Tuple[bool, int]: ... + def __init__( + self, theNonDeformDS: MeshVS_DataSource, theMagnify: float + ) -> None: ... + def Get3DGeom( + self, ID: int, Data: MeshVS_HArray1OfSequenceOfInteger + ) -> Tuple[bool, int]: ... def GetAddr(self, ID: int, IsElement: bool) -> None: ... def GetAllElements(self) -> TColStd_PackedMapOfInteger: ... def GetAllNodes(self) -> TColStd_PackedMapOfInteger: ... - def GetGeom(self, ID: int, IsElement: bool, Coords: TColStd_Array1OfReal) -> Tuple[bool, int, MeshVS_EntityType]: ... - def GetGeomType(self, ID: int, IsElement: bool) -> Tuple[bool, MeshVS_EntityType]: ... + def GetGeom( + self, ID: int, IsElement: bool, Coords: TColStd_Array1OfReal + ) -> Tuple[bool, int, MeshVS_EntityType]: ... + def GetGeomType( + self, ID: int, IsElement: bool + ) -> Tuple[bool, MeshVS_EntityType]: ... def GetMagnify(self) -> float: ... - def GetNodesByElement(self, ID: int, NodeIDs: TColStd_Array1OfInteger) -> Tuple[bool, int]: ... + def GetNodesByElement( + self, ID: int, NodeIDs: TColStd_Array1OfInteger + ) -> Tuple[bool, int]: ... def GetNonDeformedDataSource(self) -> MeshVS_DataSource: ... def GetVector(self, ID: int, Vect: gp_Vec) -> bool: ... def GetVectors(self) -> MeshVS_DataMapOfIntegerVector: ... @@ -463,13 +646,29 @@ class MeshVS_DeformedDataSource(MeshVS_DataSource): def SetVectors(self, Map: MeshVS_DataMapOfIntegerVector) -> None: ... class MeshVS_ElementalColorPrsBuilder(MeshVS_PrsBuilder): - def __init__(self, Parent: MeshVS_Mesh, Flags: Optional[int] = MeshVS_DMF_ElementalColorDataPrs, DS: Optional[MeshVS_DataSource] = 0, Id: Optional[int] = -1, Priority: Optional[int] = MeshVS_BP_ElemColor) -> None: ... - def Build(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IDsToExclude: TColStd_PackedMapOfInteger, IsElement: bool, DisplayMode: int) -> None: ... + def __init__( + self, + Parent: MeshVS_Mesh, + Flags: Optional[int] = MeshVS_DMF_ElementalColorDataPrs, + DS: Optional[MeshVS_DataSource] = 0, + Id: Optional[int] = -1, + Priority: Optional[int] = MeshVS_BP_ElemColor, + ) -> None: ... + def Build( + self, + Prs: Prs3d_Presentation, + IDs: TColStd_PackedMapOfInteger, + IDsToExclude: TColStd_PackedMapOfInteger, + IsElement: bool, + DisplayMode: int, + ) -> None: ... def GetColor1(self, ID: int, theColor: Quantity_Color) -> bool: ... @overload def GetColor2(self, ID: int, theColor: MeshVS_TwoColors) -> bool: ... @overload - def GetColor2(self, ID: int, theColor1: Quantity_Color, theColor2: Quantity_Color) -> bool: ... + def GetColor2( + self, ID: int, theColor1: Quantity_Color, theColor2: Quantity_Color + ) -> bool: ... def GetColors1(self) -> MeshVS_DataMapOfIntegerColor: ... def GetColors2(self) -> MeshVS_DataMapOfIntegerTwoColors: ... def HasColors1(self) -> bool: ... @@ -478,25 +677,93 @@ class MeshVS_ElementalColorPrsBuilder(MeshVS_PrsBuilder): @overload def SetColor2(self, ID: int, theTwoColors: MeshVS_TwoColors) -> None: ... @overload - def SetColor2(self, ID: int, theColor1: Quantity_Color, theColor2: Quantity_Color) -> None: ... + def SetColor2( + self, ID: int, theColor1: Quantity_Color, theColor2: Quantity_Color + ) -> None: ... def SetColors1(self, Map: MeshVS_DataMapOfIntegerColor) -> None: ... def SetColors2(self, Map: MeshVS_DataMapOfIntegerTwoColors) -> None: ... class MeshVS_MeshPrsBuilder(MeshVS_PrsBuilder): - def __init__(self, Parent: MeshVS_Mesh, Flags: Optional[int] = MeshVS_DMF_OCCMask, DS: Optional[MeshVS_DataSource] = 0, Id: Optional[int] = -1, Priority: Optional[int] = MeshVS_BP_Mesh) -> None: ... + def __init__( + self, + Parent: MeshVS_Mesh, + Flags: Optional[int] = MeshVS_DMF_OCCMask, + DS: Optional[MeshVS_DataSource] = 0, + Id: Optional[int] = -1, + Priority: Optional[int] = MeshVS_BP_Mesh, + ) -> None: ... @staticmethod - def AddVolumePrs(Topo: MeshVS_HArray1OfSequenceOfInteger, Nodes: TColStd_Array1OfReal, NbNodes: int, Array: Graphic3d_ArrayOfPrimitives, IsReflected: bool, IsShrinked: bool, IsSelect: bool, ShrinkCoef: float) -> None: ... - def Build(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IDsToExclude: TColStd_PackedMapOfInteger, IsElement: bool, DisplayMode: int) -> None: ... - def BuildElements(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IDsToExclude: TColStd_PackedMapOfInteger, DisplayMode: int) -> None: ... - def BuildHilightPrs(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IsElement: bool) -> None: ... - def BuildNodes(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IDsToExclude: TColStd_PackedMapOfInteger, DisplayMode: int) -> None: ... + def AddVolumePrs( + Topo: MeshVS_HArray1OfSequenceOfInteger, + Nodes: TColStd_Array1OfReal, + NbNodes: int, + Array: Graphic3d_ArrayOfPrimitives, + IsReflected: bool, + IsShrinked: bool, + IsSelect: bool, + ShrinkCoef: float, + ) -> None: ... + def Build( + self, + Prs: Prs3d_Presentation, + IDs: TColStd_PackedMapOfInteger, + IDsToExclude: TColStd_PackedMapOfInteger, + IsElement: bool, + DisplayMode: int, + ) -> None: ... + def BuildElements( + self, + Prs: Prs3d_Presentation, + IDs: TColStd_PackedMapOfInteger, + IDsToExclude: TColStd_PackedMapOfInteger, + DisplayMode: int, + ) -> None: ... + def BuildHilightPrs( + self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IsElement: bool + ) -> None: ... + def BuildNodes( + self, + Prs: Prs3d_Presentation, + IDs: TColStd_PackedMapOfInteger, + IDsToExclude: TColStd_PackedMapOfInteger, + DisplayMode: int, + ) -> None: ... @staticmethod - def HowManyPrimitives(Topo: MeshVS_HArray1OfSequenceOfInteger, AsPolygons: bool, IsSelect: bool, NbNodes: int) -> Tuple[int, int]: ... + def HowManyPrimitives( + Topo: MeshVS_HArray1OfSequenceOfInteger, + AsPolygons: bool, + IsSelect: bool, + NbNodes: int, + ) -> Tuple[int, int]: ... class MeshVS_NodalColorPrsBuilder(MeshVS_PrsBuilder): - def __init__(self, Parent: MeshVS_Mesh, Flags: Optional[int] = MeshVS_DMF_NodalColorDataPrs, DS: Optional[MeshVS_DataSource] = 0, Id: Optional[int] = -1, Priority: Optional[int] = MeshVS_BP_NodalColor) -> None: ... - def AddVolumePrs(self, theTopo: MeshVS_HArray1OfSequenceOfInteger, theNodes: TColStd_Array1OfInteger, theCoords: TColStd_Array1OfReal, theArray: Graphic3d_ArrayOfPrimitives, theIsShaded: bool, theNbColors: int, theNbTexColors: int, theColorRatio: float) -> None: ... - def Build(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IDsToExclude: TColStd_PackedMapOfInteger, IsElement: bool, DisplayMode: int) -> None: ... + def __init__( + self, + Parent: MeshVS_Mesh, + Flags: Optional[int] = MeshVS_DMF_NodalColorDataPrs, + DS: Optional[MeshVS_DataSource] = 0, + Id: Optional[int] = -1, + Priority: Optional[int] = MeshVS_BP_NodalColor, + ) -> None: ... + def AddVolumePrs( + self, + theTopo: MeshVS_HArray1OfSequenceOfInteger, + theNodes: TColStd_Array1OfInteger, + theCoords: TColStd_Array1OfReal, + theArray: Graphic3d_ArrayOfPrimitives, + theIsShaded: bool, + theNbColors: int, + theNbTexColors: int, + theColorRatio: float, + ) -> None: ... + def Build( + self, + Prs: Prs3d_Presentation, + IDs: TColStd_PackedMapOfInteger, + IDsToExclude: TColStd_PackedMapOfInteger, + IsElement: bool, + DisplayMode: int, + ) -> None: ... def GetColor(self, ID: int, theColor: Quantity_Color) -> bool: ... def GetColorMap(self) -> Aspect_SequenceOfColor: ... def GetColors(self) -> MeshVS_DataMapOfIntegerColor: ... @@ -514,35 +781,86 @@ class MeshVS_NodalColorPrsBuilder(MeshVS_PrsBuilder): def UseTexture(self, theToUse: bool) -> None: ... class MeshVS_TextPrsBuilder(MeshVS_PrsBuilder): - def __init__(self, Parent: MeshVS_Mesh, Height: float, Color: Quantity_Color, Flags: Optional[int] = MeshVS_DMF_TextDataPrs, DS: Optional[MeshVS_DataSource] = 0, Id: Optional[int] = -1, Priority: Optional[int] = MeshVS_BP_Text) -> None: ... - def Build(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IDsToExclude: TColStd_PackedMapOfInteger, IsElement: bool, theDisplayMode: int) -> None: ... + def __init__( + self, + Parent: MeshVS_Mesh, + Height: float, + Color: Quantity_Color, + Flags: Optional[int] = MeshVS_DMF_TextDataPrs, + DS: Optional[MeshVS_DataSource] = 0, + Id: Optional[int] = -1, + Priority: Optional[int] = MeshVS_BP_Text, + ) -> None: ... + def Build( + self, + Prs: Prs3d_Presentation, + IDs: TColStd_PackedMapOfInteger, + IDsToExclude: TColStd_PackedMapOfInteger, + IsElement: bool, + theDisplayMode: int, + ) -> None: ... def GetText(self, IsElement: bool, ID: int, Text: str) -> bool: ... def GetTexts(self, IsElement: bool) -> MeshVS_DataMapOfIntegerAsciiString: ... def HasTexts(self, IsElement: bool) -> bool: ... def SetText(self, IsElement: bool, ID: int, Text: str) -> None: ... - def SetTexts(self, IsElement: bool, Map: MeshVS_DataMapOfIntegerAsciiString) -> None: ... + def SetTexts( + self, IsElement: bool, Map: MeshVS_DataMapOfIntegerAsciiString + ) -> None: ... class MeshVS_VectorPrsBuilder(MeshVS_PrsBuilder): - def __init__(self, Parent: MeshVS_Mesh, MaxLength: float, VectorColor: Quantity_Color, Flags: Optional[int] = MeshVS_DMF_VectorDataPrs, DS: Optional[MeshVS_DataSource] = 0, Id: Optional[int] = -1, Priority: Optional[int] = MeshVS_BP_Vector, IsSimplePrs: Optional[bool] = False) -> None: ... - def Build(self, Prs: Prs3d_Presentation, IDs: TColStd_PackedMapOfInteger, IDsToExclude: TColStd_PackedMapOfInteger, IsElement: bool, theDisplayMode: int) -> None: ... - def DrawVector(self, theTrsf: gp_Trsf, Length: float, MaxLength: float, ArrowPoints: TColgp_Array1OfPnt, Lines: Graphic3d_ArrayOfPrimitives, ArrowLines: Graphic3d_ArrayOfPrimitives, Triangles: Graphic3d_ArrayOfPrimitives) -> None: ... + def __init__( + self, + Parent: MeshVS_Mesh, + MaxLength: float, + VectorColor: Quantity_Color, + Flags: Optional[int] = MeshVS_DMF_VectorDataPrs, + DS: Optional[MeshVS_DataSource] = 0, + Id: Optional[int] = -1, + Priority: Optional[int] = MeshVS_BP_Vector, + IsSimplePrs: Optional[bool] = False, + ) -> None: ... + def Build( + self, + Prs: Prs3d_Presentation, + IDs: TColStd_PackedMapOfInteger, + IDsToExclude: TColStd_PackedMapOfInteger, + IsElement: bool, + theDisplayMode: int, + ) -> None: ... + def DrawVector( + self, + theTrsf: gp_Trsf, + Length: float, + MaxLength: float, + ArrowPoints: TColgp_Array1OfPnt, + Lines: Graphic3d_ArrayOfPrimitives, + ArrowLines: Graphic3d_ArrayOfPrimitives, + Triangles: Graphic3d_ArrayOfPrimitives, + ) -> None: ... def GetMinMaxVectorValue(self, IsElement: bool) -> Tuple[float, float]: ... def GetVector(self, IsElement: bool, ID: int, Vect: gp_Vec) -> bool: ... def GetVectors(self, IsElement: bool) -> MeshVS_DataMapOfIntegerVector: ... def HasVectors(self, IsElement: bool) -> bool: ... def SetSimplePrsMode(self, IsSimpleArrow: bool) -> None: ... - def SetSimplePrsParams(self, theLineWidthParam: float, theStartParam: float, theEndParam: float) -> None: ... + def SetSimplePrsParams( + self, theLineWidthParam: float, theStartParam: float, theEndParam: float + ) -> None: ... def SetVector(self, IsElement: bool, ID: int, Vect: gp_Vec) -> None: ... - def SetVectors(self, IsElement: bool, Map: MeshVS_DataMapOfIntegerVector) -> None: ... + def SetVectors( + self, IsElement: bool, Map: MeshVS_DataMapOfIntegerVector + ) -> None: ... @staticmethod - def calculateArrow(Points: TColgp_Array1OfPnt, Length: float, ArrowPart: float) -> float: ... + def calculateArrow( + Points: TColgp_Array1OfPnt, Length: float, ArrowPart: float + ) -> float: ... # harray1 classes -class MeshVS_HArray1OfSequenceOfInteger(MeshVS_Array1OfSequenceOfInteger, Standard_Transient): +class MeshVS_HArray1OfSequenceOfInteger( + MeshVS_Array1OfSequenceOfInteger, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> MeshVS_Array1OfSequenceOfInteger: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Message.i b/src/SWIG_files/wrapper/Message.i index b474928a2..b3ee69d36 100644 --- a/src/SWIG_files/wrapper/Message.i +++ b/src/SWIG_files/wrapper/Message.i @@ -602,6 +602,12 @@ Message_FAIL = Message_StatusType.Message_FAIL %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = Message_ListIteratorOfListOfAlert(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(Message_ListOfMsg) NCollection_List; @@ -610,6 +616,12 @@ Message_FAIL = Message_StatusType.Message_FAIL %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = Message_ListIteratorOfListOfMsg(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(Message_SequenceOfPrinters) NCollection_Sequence>; diff --git a/src/SWIG_files/wrapper/Message.pyi b/src/SWIG_files/wrapper/Message.pyi index fa635ce29..102aa16d7 100644 --- a/src/SWIG_files/wrapper/Message.pyi +++ b/src/SWIG_files/wrapper/Message.pyi @@ -11,47 +11,53 @@ from OCC.Core.TColStd import * Message_HArrayOfMsg = NewType("Message_HArrayOfMsg", Any) class Message_ListOfAlert: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: Message_ListOfAlert) -> Message_ListOfAlert: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Message_ListOfMsg: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class Message_ListOfMsg: + def Append(self, theItem: Message_Msg) -> Message_Msg: ... + def Assign(self, theItem: Message_ListOfMsg) -> Message_ListOfMsg: ... def Clear(self) -> None: ... def First(self) -> Message_Msg: ... def Last(self) -> Message_Msg: ... - def Append(self, theItem: Message_Msg) -> Message_Msg: ... def Prepend(self, theItem: Message_Msg) -> Message_Msg: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Message_Msg: ... - def SetValue(self, theIndex: int, theValue: Message_Msg) -> None: ... - -class Message_SequenceOfPrinters: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> Message_Msg: ... + +class Message_SequenceOfPrinters: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Message_ConsoleColor(IntEnum): Message_ConsoleColor_Default: int = ... @@ -103,17 +109,29 @@ class Message_MetricType(IntEnum): Message_MetricType_MemHeapUsage: int = ... Message_MetricType_None = Message_MetricType.Message_MetricType_None -Message_MetricType_ThreadCPUUserTime = Message_MetricType.Message_MetricType_ThreadCPUUserTime -Message_MetricType_ThreadCPUSystemTime = Message_MetricType.Message_MetricType_ThreadCPUSystemTime -Message_MetricType_ProcessCPUUserTime = Message_MetricType.Message_MetricType_ProcessCPUUserTime -Message_MetricType_ProcessCPUSystemTime = Message_MetricType.Message_MetricType_ProcessCPUSystemTime +Message_MetricType_ThreadCPUUserTime = ( + Message_MetricType.Message_MetricType_ThreadCPUUserTime +) +Message_MetricType_ThreadCPUSystemTime = ( + Message_MetricType.Message_MetricType_ThreadCPUSystemTime +) +Message_MetricType_ProcessCPUUserTime = ( + Message_MetricType.Message_MetricType_ProcessCPUUserTime +) +Message_MetricType_ProcessCPUSystemTime = ( + Message_MetricType.Message_MetricType_ProcessCPUSystemTime +) Message_MetricType_WallClock = Message_MetricType.Message_MetricType_WallClock Message_MetricType_MemPrivate = Message_MetricType.Message_MetricType_MemPrivate Message_MetricType_MemVirtual = Message_MetricType.Message_MetricType_MemVirtual Message_MetricType_MemWorkingSet = Message_MetricType.Message_MetricType_MemWorkingSet -Message_MetricType_MemWorkingSetPeak = Message_MetricType.Message_MetricType_MemWorkingSetPeak +Message_MetricType_MemWorkingSetPeak = ( + Message_MetricType.Message_MetricType_MemWorkingSetPeak +) Message_MetricType_MemSwapUsage = Message_MetricType.Message_MetricType_MemSwapUsage -Message_MetricType_MemSwapUsagePeak = Message_MetricType.Message_MetricType_MemSwapUsagePeak +Message_MetricType_MemSwapUsagePeak = ( + Message_MetricType.Message_MetricType_MemSwapUsagePeak +) Message_MetricType_MemHeapUsage = Message_MetricType.Message_MetricType_MemHeapUsage class Message_Status(IntEnum): @@ -405,7 +423,7 @@ class message: def MetricToString(theType: Message_MetricType) -> str: ... class Message_Alert(Standard_Transient): - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetMessageKey(self) -> str: ... def Merge(self, theTarget: Message_Alert) -> bool: ... def SupportsMerge(self) -> bool: ... @@ -415,49 +433,86 @@ class Message_Algorithm(Standard_Transient): @overload def AddStatus(self, theOther: Message_Algorithm) -> None: ... @overload - def AddStatus(self, theStatus: Message_ExecStatus, theOther: Message_Algorithm) -> None: ... + def AddStatus( + self, theStatus: Message_ExecStatus, theOther: Message_Algorithm + ) -> None: ... def ChangeStatus(self) -> Message_ExecStatus: ... def ClearStatus(self) -> None: ... - def GetMessageNumbers(self, theStatus: Message_Status) -> TColStd_HPackedMapOfInteger: ... - def GetMessageStrings(self, theStatus: Message_Status) -> TColStd_HSequenceOfHExtendedString: ... + def GetMessageNumbers( + self, theStatus: Message_Status + ) -> TColStd_HPackedMapOfInteger: ... + def GetMessageStrings( + self, theStatus: Message_Status + ) -> TColStd_HSequenceOfHExtendedString: ... def GetMessenger(self) -> Message_Messenger: ... def GetStatus(self) -> Message_ExecStatus: ... @overload @staticmethod - def PrepareReport(theError: TColStd_HPackedMapOfInteger, theMaxCount: int) -> str: ... + def PrepareReport( + theError: TColStd_HPackedMapOfInteger, theMaxCount: int + ) -> str: ... @overload @staticmethod - def PrepareReport(theReportSeq: TColStd_SequenceOfHExtendedString, theMaxCount: int) -> str: ... - def SendMessages(self, theTraceLevel: Optional[Message_Gravity] = Message_Warning, theMaxCount: Optional[int] = 20) -> None: ... - def SendStatusMessages(self, theFilter: Message_ExecStatus, theTraceLevel: Optional[Message_Gravity] = Message_Warning, theMaxCount: Optional[int] = 20) -> None: ... + def PrepareReport( + theReportSeq: TColStd_SequenceOfHExtendedString, theMaxCount: int + ) -> str: ... + def SendMessages( + self, + theTraceLevel: Optional[Message_Gravity] = Message_Warning, + theMaxCount: Optional[int] = 20, + ) -> None: ... + def SendStatusMessages( + self, + theFilter: Message_ExecStatus, + theTraceLevel: Optional[Message_Gravity] = Message_Warning, + theMaxCount: Optional[int] = 20, + ) -> None: ... def SetMessenger(self, theMsgr: Message_Messenger) -> None: ... @overload def SetStatus(self, theStat: Message_Status) -> None: ... @overload def SetStatus(self, theStat: Message_Status, theInt: int) -> None: ... @overload - def SetStatus(self, theStat: Message_Status, theStr: str, noRepetitions: Optional[bool] = True) -> None: ... + def SetStatus( + self, theStat: Message_Status, theStr: str, noRepetitions: Optional[bool] = True + ) -> None: ... @overload - def SetStatus(self, theStat: Message_Status, theStr: str, noRepetitions: Optional[bool] = True) -> None: ... + def SetStatus( + self, theStat: Message_Status, theStr: str, noRepetitions: Optional[bool] = True + ) -> None: ... @overload - def SetStatus(self, theStat: Message_Status, theStr: TCollection_HAsciiString, noRepetitions: Optional[bool] = True) -> None: ... + def SetStatus( + self, + theStat: Message_Status, + theStr: TCollection_HAsciiString, + noRepetitions: Optional[bool] = True, + ) -> None: ... @overload - def SetStatus(self, theStat: Message_Status, theStr: str, noRepetitions: Optional[bool] = True) -> None: ... + def SetStatus( + self, theStat: Message_Status, theStr: str, noRepetitions: Optional[bool] = True + ) -> None: ... @overload - def SetStatus(self, theStat: Message_Status, theStr: TCollection_HExtendedString, noRepetitions: Optional[bool] = True) -> None: ... + def SetStatus( + self, + theStat: Message_Status, + theStr: TCollection_HExtendedString, + noRepetitions: Optional[bool] = True, + ) -> None: ... @overload def SetStatus(self, theStat: Message_Status, theMsg: Message_Msg) -> None: ... class Message_Attribute(Standard_Transient): def __init__(self, theName: Optional[str] = TCollection_AsciiString()) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetMessageKey(self) -> str: ... def GetName(self) -> str: ... def SetName(self, theName: str) -> None: ... class Message_CompositeAlerts(Standard_Transient): def __init__(self) -> None: ... - def AddAlert(self, theGravity: Message_Gravity, theAlert: Message_Alert) -> bool: ... + def AddAlert( + self, theGravity: Message_Gravity, theAlert: Message_Alert + ) -> bool: ... def Alerts(self, theGravity: Message_Gravity) -> Message_ListOfAlert: ... @overload def Clear(self) -> None: ... @@ -465,12 +520,14 @@ class Message_CompositeAlerts(Standard_Transient): def Clear(self, theGravity: Message_Gravity) -> None: ... @overload def Clear(self, theType: Standard_Type) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def HasAlert(self, theAlert: Message_Alert) -> bool: ... @overload def HasAlert(self, theType: Standard_Type, theGravity: Message_Gravity) -> bool: ... - def RemoveAlert(self, theGravity: Message_Gravity, theAlert: Message_Alert) -> bool: ... + def RemoveAlert( + self, theGravity: Message_Gravity, theAlert: Message_Alert + ) -> bool: ... class Message_ExecStatus: @overload @@ -508,9 +565,13 @@ class Message_ExecStatus: class Message_Level: def __init__(self, theName: Optional[str] = TCollection_AsciiString()) -> None: ... - def AddAlert(self, theGravity: Message_Gravity, theAlert: Message_Alert) -> bool: ... + def AddAlert( + self, theGravity: Message_Gravity, theAlert: Message_Alert + ) -> bool: ... def RootAlert(self) -> Message_AlertExtended: ... - def SetRootAlert(self, theAlert: Message_AlertExtended, isRequiredToStart: bool) -> None: ... + def SetRootAlert( + self, theAlert: Message_AlertExtended, isRequiredToStart: bool + ) -> None: ... class Message_Messenger(Standard_Transient): @overload @@ -519,7 +580,7 @@ class Message_Messenger(Standard_Transient): def __init__(self, thePrinter: Message_Printer) -> None: ... def AddPrinter(self, thePrinter: Message_Printer) -> bool: ... def ChangePrinters(self) -> Message_SequenceOfPrinters: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Printers(self) -> Message_SequenceOfPrinters: ... def RemovePrinter(self, thePrinter: Message_Printer) -> bool: ... def RemovePrinters(self, theType: Standard_Type) -> int: ... @@ -566,7 +627,9 @@ class Message_MsgFile: @staticmethod def LoadFile(theFName: str) -> bool: ... @staticmethod - def LoadFromEnv(theEnvName: str, theFileName: str, theLangExt: Optional[str] = "") -> bool: ... + def LoadFromEnv( + theEnvName: str, theFileName: str, theLangExt: Optional[str] = "" + ) -> bool: ... @staticmethod def LoadFromString(theContent: str, theLength: Optional[int] = -1) -> bool: ... @overload @@ -584,7 +647,9 @@ class Message_Printer(Standard_Transient): def Send(self, theString: str, theGravity: Message_Gravity) -> None: ... @overload def Send(self, theString: str, theGravity: Message_Gravity) -> None: ... - def SendObject(self, theObject: Standard_Transient, theGravity: Message_Gravity) -> None: ... + def SendObject( + self, theObject: Standard_Transient, theGravity: Message_Gravity + ) -> None: ... def SetTraceLevel(self, theTraceLevel: Message_Gravity) -> None: ... class Message_ProgressIndicator(Standard_Transient): @@ -607,9 +672,13 @@ class Message_ProgressRange: class Message_Report(Standard_Transient): def __init__(self) -> None: ... - def ActivateInMessenger(self, toActivate: bool, theMessenger: Optional[Message_Messenger] = None) -> None: ... + def ActivateInMessenger( + self, toActivate: bool, theMessenger: Optional[Message_Messenger] = None + ) -> None: ... def ActiveMetrics(self) -> False: ... - def AddAlert(self, theGravity: Message_Gravity, theAlert: Message_Alert) -> None: ... + def AddAlert( + self, theGravity: Message_Gravity, theAlert: Message_Alert + ) -> None: ... def AddLevel(self, theLevel: Message_Level, theName: str) -> None: ... @overload def Clear(self) -> None: ... @@ -622,13 +691,15 @@ class Message_Report(Standard_Transient): def Dump(self) -> str: ... @overload def Dump(self, theGravity: Message_Gravity) -> str: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetAlerts(self, theGravity: Message_Gravity) -> Message_ListOfAlert: ... @overload def HasAlert(self, theType: Standard_Type) -> bool: ... @overload def HasAlert(self, theType: Standard_Type, theGravity: Message_Gravity) -> bool: ... - def IsActiveInMessenger(self, theMessenger: Optional[Message_Messenger] = None) -> bool: ... + def IsActiveInMessenger( + self, theMessenger: Optional[Message_Messenger] = None + ) -> bool: ... def Limit(self) -> int: ... @overload def Merge(self, theOther: Message_Report) -> None: ... @@ -638,18 +709,30 @@ class Message_Report(Standard_Transient): @overload def SendMessages(self, theMessenger: Message_Messenger) -> None: ... @overload - def SendMessages(self, theMessenger: Message_Messenger, theGravity: Message_Gravity) -> None: ... - def SetActiveMetric(self, theMetricType: Message_MetricType, theActivate: bool) -> None: ... + def SendMessages( + self, theMessenger: Message_Messenger, theGravity: Message_Gravity + ) -> None: ... + def SetActiveMetric( + self, theMetricType: Message_MetricType, theActivate: bool + ) -> None: ... def SetLimit(self, theLimit: int) -> None: ... - def UpdateActiveInMessenger(self, theMessenger: Optional[Message_Messenger] = None) -> None: ... + def UpdateActiveInMessenger( + self, theMessenger: Optional[Message_Messenger] = None + ) -> None: ... class Message_AlertExtended(Message_Alert): def __init__(self) -> None: ... @staticmethod - def AddAlert(theReport: Message_Report, theAttribute: Message_Attribute, theGravity: Message_Gravity) -> Message_Alert: ... + def AddAlert( + theReport: Message_Report, + theAttribute: Message_Attribute, + theGravity: Message_Gravity, + ) -> Message_Alert: ... def Attribute(self) -> Message_Attribute: ... - def CompositeAlerts(self, theToCreate: Optional[bool] = False) -> Message_CompositeAlerts: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def CompositeAlerts( + self, theToCreate: Optional[bool] = False + ) -> Message_CompositeAlerts: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetMessageKey(self) -> str: ... def Merge(self, theTarget: Message_Alert) -> bool: ... def SetAttribute(self, theAttribute: Message_Attribute) -> None: ... @@ -657,11 +740,13 @@ class Message_AlertExtended(Message_Alert): class Message_AttributeMeter(Message_Attribute): def __init__(self, theName: Optional[str] = TCollection_AsciiString()) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def HasMetric(self, theMetric: Message_MetricType) -> bool: ... def IsMetricValid(self, theMetric: Message_MetricType) -> bool: ... @staticmethod - def SetAlertMetrics(theAlert: Message_AlertExtended, theStartValue: bool) -> None: ... + def SetAlertMetrics( + theAlert: Message_AlertExtended, theStartValue: bool + ) -> None: ... def SetStartValue(self, theMetric: Message_MetricType, theValue: float) -> None: ... def SetStopValue(self, theMetric: Message_MetricType, theValue: float) -> None: ... @staticmethod @@ -674,47 +759,76 @@ class Message_AttributeMeter(Message_Attribute): def UndefinedMetricValue() -> float: ... class Message_AttributeObject(Message_Attribute): - def __init__(self, theObject: Standard_Transient, theName: Optional[str] = TCollection_AsciiString()) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def __init__( + self, + theObject: Standard_Transient, + theName: Optional[str] = TCollection_AsciiString(), + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Object(self) -> Standard_Transient: ... def SetObject(self, theObject: Standard_Transient) -> None: ... class Message_AttributeStream(Message_Attribute): - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Stream(self) -> Standard_SStream: ... class Message_PrinterOStream(Message_Printer): @overload - def __init__(self, theTraceLevel: Optional[Message_Gravity] = Message_Info) -> None: ... + def __init__( + self, theTraceLevel: Optional[Message_Gravity] = Message_Info + ) -> None: ... @overload - def __init__(self, theFileName: str, theDoAppend: bool, theTraceLevel: Optional[Message_Gravity] = Message_Info) -> None: ... + def __init__( + self, + theFileName: str, + theDoAppend: bool, + theTraceLevel: Optional[Message_Gravity] = Message_Info, + ) -> None: ... def Close(self) -> None: ... def GetStream(self) -> Standard_OStream: ... @staticmethod - def SetConsoleTextColor(theOStream: Standard_OStream, theTextColor: Message_ConsoleColor, theIsIntenseText: Optional[bool] = false) -> None: ... + def SetConsoleTextColor( + theOStream: Standard_OStream, + theTextColor: Message_ConsoleColor, + theIsIntenseText: Optional[bool] = false, + ) -> None: ... def SetToColorize(self, theToColorize: bool) -> None: ... def ToColorize(self) -> bool: ... class Message_PrinterSystemLog(Message_Printer): - def __init__(self, theEventSourceName: str, theTraceLevel: Optional[Message_Gravity] = Message_Info) -> None: ... + def __init__( + self, + theEventSourceName: str, + theTraceLevel: Optional[Message_Gravity] = Message_Info, + ) -> None: ... class Message_PrinterToReport(Message_Printer): def __init__(self) -> None: ... def Report(self) -> Message_Report: ... - def SendObject(self, theObject: Standard_Transient, theGravity: Message_Gravity) -> None: ... + def SendObject( + self, theObject: Standard_Transient, theGravity: Message_Gravity + ) -> None: ... def SetReport(self, theReport: Message_Report) -> None: ... class Message_ProgressSentry(Message_ProgressScope): - def __init__(self, theRange: Message_ProgressRange, theName: str, theMin: float, theMax: float, theStep: float, theIsInf: Optional[bool] = False, theNewScopeSpan: Optional[float] = 0.0) -> None: ... + def __init__( + self, + theRange: Message_ProgressRange, + theName: str, + theMin: float, + theMax: float, + theStep: float, + theIsInf: Optional[bool] = False, + theNewScopeSpan: Optional[float] = 0.0, + ) -> None: ... def Relieve(self) -> None: ... -#classnotwrapped +# classnotwrapped class Message_ProgressScope: ... -#classnotwrapped +# classnotwrapped class Message_LazyProgressScope: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/MoniTool.pyi b/src/SWIG_files/wrapper/MoniTool.pyi index b5051d053..875ccd651 100644 --- a/src/SWIG_files/wrapper/MoniTool.pyi +++ b/src/SWIG_files/wrapper/MoniTool.pyi @@ -11,22 +11,30 @@ from OCC.Core.OSD import * from OCC.Core.TColStd import * # the following typedef cannot be wrapped as is -MoniTool_IndexedDataMapOfShapeTransient = NewType("MoniTool_IndexedDataMapOfShapeTransient", Any) +MoniTool_IndexedDataMapOfShapeTransient = NewType( + "MoniTool_IndexedDataMapOfShapeTransient", Any +) class MoniTool_SequenceOfElement: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class MoniTool_ValueType(IntEnum): MoniTool_ValueMisc: int = ... @@ -61,8 +69,15 @@ class MoniTool_AttrList: def AttrList(self) -> False: ... def Attribute(self, name: str) -> Standard_Transient: ... def AttributeType(self, name: str) -> MoniTool_ValueType: ... - def GetAttribute(self, name: str, type: Standard_Type, val: Standard_Transient) -> bool: ... - def GetAttributes(self, other: MoniTool_AttrList, fromname: Optional[str] = "", copied: Optional[bool] = True) -> None: ... + def GetAttribute( + self, name: str, type: Standard_Type, val: Standard_Transient + ) -> bool: ... + def GetAttributes( + self, + other: MoniTool_AttrList, + fromname: Optional[str] = "", + copied: Optional[bool] = True, + ) -> None: ... def GetIntegerAttribute(self, name: str) -> Tuple[bool, int]: ... def GetRealAttribute(self, name: str) -> Tuple[bool, float]: ... def GetStringAttribute(self, name: str, val: str) -> bool: ... @@ -77,14 +92,22 @@ class MoniTool_AttrList: def StringAttribute(self, name: str) -> str: ... class MoniTool_CaseData(Standard_Transient): - def __init__(self, caseid: Optional[str] = "", name: Optional[str] = "") -> None: ... + def __init__( + self, caseid: Optional[str] = "", name: Optional[str] = "" + ) -> None: ... def AddAny(self, val: Standard_Transient, name: Optional[str] = "") -> None: ... - def AddCPU(self, lastCPU: float, curCPU: Optional[float] = 0, name: Optional[str] = "") -> None: ... - def AddData(self, val: Standard_Transient, kind: int, name: Optional[str] = "") -> None: ... + def AddCPU( + self, lastCPU: float, curCPU: Optional[float] = 0, name: Optional[str] = "" + ) -> None: ... + def AddData( + self, val: Standard_Transient, kind: int, name: Optional[str] = "" + ) -> None: ... def AddEntity(self, ent: Standard_Transient, name: Optional[str] = "") -> None: ... def AddGeom(self, geom: Standard_Transient, name: Optional[str] = "") -> None: ... def AddInteger(self, val: int, name: Optional[str] = "") -> None: ... - def AddRaised(self, theException: Standard_Failure, name: Optional[str] = "") -> None: ... + def AddRaised( + self, theException: Standard_Failure, name: Optional[str] = "" + ) -> None: ... def AddReal(self, val: float, name: Optional[str] = "") -> None: ... def AddReals(self, v1: float, v2: float, name: Optional[str] = "") -> None: ... def AddShape(self, sh: TopoDS_Shape, name: Optional[str] = "") -> None: ... @@ -98,13 +121,17 @@ class MoniTool_CaseData(Standard_Transient): @staticmethod def DefMsg(casecode: str) -> str: ... def GetCPU(self) -> float: ... - def GetData(self, nd: int, type: Standard_Type, val: Standard_Transient) -> bool: ... + def GetData( + self, nd: int, type: Standard_Type, val: Standard_Transient + ) -> bool: ... def Integer(self, nd: int) -> Tuple[bool, int]: ... def IsCheck(self) -> bool: ... def IsFail(self) -> bool: ... def IsWarning(self) -> bool: ... def Kind(self, nd: int) -> int: ... - def LargeCPU(self, maxCPU: float, lastCPU: float, curCPU: Optional[float] = 0) -> bool: ... + def LargeCPU( + self, maxCPU: float, lastCPU: float, curCPU: Optional[float] = 0 + ) -> bool: ... def Msg(self) -> Message_Msg: ... @overload def Name(self) -> str: ... @@ -226,11 +253,28 @@ class MoniTool_TimerSentry: class MoniTool_TypedValue(Standard_Transient): @overload - def __init__(self, name: str, type: Optional[MoniTool_ValueType] = MoniTool_ValueText, init: Optional[str] = "") -> None: ... + def __init__( + self, + name: str, + type: Optional[MoniTool_ValueType] = MoniTool_ValueText, + init: Optional[str] = "", + ) -> None: ... @overload def __init__(self, other: MoniTool_TypedValue) -> None: ... def AddDef(self, initext: str) -> bool: ... - def AddEnum(self, v1: Optional[str] = "", v2: Optional[str] = "", v3: Optional[str] = "", v4: Optional[str] = "", v5: Optional[str] = "", v6: Optional[str] = "", v7: Optional[str] = "", v8: Optional[str] = "", v9: Optional[str] = "", v10: Optional[str] = "") -> None: ... + def AddEnum( + self, + v1: Optional[str] = "", + v2: Optional[str] = "", + v3: Optional[str] = "", + v4: Optional[str] = "", + v5: Optional[str] = "", + v6: Optional[str] = "", + v7: Optional[str] = "", + v8: Optional[str] = "", + v9: Optional[str] = "", + v10: Optional[str] = "", + ) -> None: ... def AddEnumValue(self, val: str, num: int) -> None: ... @staticmethod def AddLib(tv: MoniTool_TypedValue, def_: Optional[str] = "") -> bool: ... @@ -247,7 +291,9 @@ class MoniTool_TypedValue(Standard_Transient): def HasInterpret(self) -> bool: ... def IntegerLimit(self, max: bool) -> Tuple[bool, int]: ... def IntegerValue(self) -> int: ... - def Interpret(self, hval: TCollection_HAsciiString, native: bool) -> TCollection_HAsciiString: ... + def Interpret( + self, hval: TCollection_HAsciiString, native: bool + ) -> TCollection_HAsciiString: ... def IsSetValue(self) -> bool: ... def Label(self) -> str: ... @staticmethod @@ -279,7 +325,9 @@ class MoniTool_TypedValue(Standard_Transient): def SetRealValue(self, rval: float) -> bool: ... def SetSatisfies(self, func: MoniTool_ValueSatisfies, name: str) -> None: ... def SetUnitDef(self, def_: str) -> None: ... - def StartEnum(self, start: Optional[int] = 0, match: Optional[bool] = True) -> None: ... + def StartEnum( + self, start: Optional[int] = 0, match: Optional[bool] = True + ) -> None: ... @staticmethod def StaticValue(name: str) -> MoniTool_TypedValue: ... def UnitDef(self) -> str: ... @@ -308,5 +356,3 @@ class MoniTool_HSequenceOfElement(MoniTool_SequenceOfElement, Standard_Transient def __init__(self, other: MoniTool_SequenceOfElement) -> None: ... def Sequence(self) -> MoniTool_SequenceOfElement: ... def Append(self, theSequence: MoniTool_SequenceOfElement) -> None: ... - - diff --git a/src/SWIG_files/wrapper/NCollection.pyi b/src/SWIG_files/wrapper/NCollection.pyi index f39141b9e..09cb30bbf 100644 --- a/src/SWIG_files/wrapper/NCollection.pyi +++ b/src/SWIG_files/wrapper/NCollection.pyi @@ -1,7 +1,6 @@ from enum import IntEnum from typing import overload, NewType, Optional, Tuple - NCollection_String = NewType("NCollection_String", NCollection_Utf8String) # the following typedef cannot be wrapped as is NCollection_Utf16Iter = NewType("NCollection_Utf16Iter", Any) @@ -28,160 +27,159 @@ class NCollection_CellFilter_Action(IntEnum): CellFilter_Keep = NCollection_CellFilter_Action.CellFilter_Keep CellFilter_Purge = NCollection_CellFilter_Action.CellFilter_Purge -#classnotwrapped +# classnotwrapped class NCollection_AccAllocator: ... -#classnotwrapped +# classnotwrapped class NCollection_AliasedArray: ... -#classnotwrapped +# classnotwrapped class NCollection_AlignedAllocator: ... -#classnotwrapped +# classnotwrapped class NCollection_Allocator: ... -#classnotwrapped +# classnotwrapped class NCollection_Array1: ... -#classnotwrapped +# classnotwrapped class NCollection_Array2: ... -#classnotwrapped +# classnotwrapped class NCollection_BaseAllocator: ... -#classnotwrapped +# classnotwrapped class NCollection_BaseList: ... -#classnotwrapped +# classnotwrapped class NCollection_BaseMap: ... -#classnotwrapped +# classnotwrapped class NCollection_BasePointerVector: ... -#classnotwrapped +# classnotwrapped class NCollection_SeqNode: ... -#classnotwrapped +# classnotwrapped class NCollection_BaseSequence: ... -#classnotwrapped +# classnotwrapped class NCollection_Buffer: ... -#classnotwrapped +# classnotwrapped class NCollection_CellFilter: ... -#classnotwrapped +# classnotwrapped class NCollection_CellFilter_InspectorXYZ: ... -#classnotwrapped +# classnotwrapped class NCollection_CellFilter_InspectorXY: ... -#classnotwrapped +# classnotwrapped class NCollection_DataMap: ... -#classnotwrapped +# classnotwrapped class NCollection_DefaultHasher: ... -#classnotwrapped +# classnotwrapped class NCollection_DoubleMap: ... -#classnotwrapped +# classnotwrapped class NCollection_DynamicArray: ... -#classnotwrapped +# classnotwrapped class NCollection_EBTree: ... -#classnotwrapped +# classnotwrapped class NCollection_Handle: ... -#classnotwrapped +# classnotwrapped class NCollection_HeapAllocator: ... -#classnotwrapped +# classnotwrapped class NCollection_IncAllocator: ... -#classnotwrapped +# classnotwrapped class NCollection_IndexedDataMap: ... -#classnotwrapped +# classnotwrapped class NCollection_IndexedIterator: ... -#classnotwrapped +# classnotwrapped class NCollection_IndexedMap: ... -#classnotwrapped +# classnotwrapped class NCollection_Iterator: ... -#classnotwrapped +# classnotwrapped class NCollection_Lerp: ... -#classnotwrapped +# classnotwrapped class NCollection_List: ... -#classnotwrapped +# classnotwrapped class NCollection_ListNode: ... -#classnotwrapped +# classnotwrapped class NCollection_LocalArray: ... -#classnotwrapped +# classnotwrapped class NCollection_Map: ... -#classnotwrapped +# classnotwrapped class NCollection_Mat3: ... -#classnotwrapped +# classnotwrapped class NCollection_Mat4: ... -#classnotwrapped +# classnotwrapped class NCollection_OccAllocator: ... -#classnotwrapped +# classnotwrapped class NCollection_Sequence: ... -#classnotwrapped +# classnotwrapped class NCollection_Shared: ... -#classnotwrapped +# classnotwrapped class NCollection_SparseArray: ... -#classnotwrapped +# classnotwrapped class NCollection_SparseArrayBase: ... -#classnotwrapped +# classnotwrapped class NCollection_StlIterator: ... -#classnotwrapped +# classnotwrapped class NCollection_TListIterator: ... -#classnotwrapped +# classnotwrapped class NCollection_TListNode: ... -#classnotwrapped +# classnotwrapped class NCollection_UBTree: ... -#classnotwrapped +# classnotwrapped class NCollection_UBTreeFiller: ... -#classnotwrapped +# classnotwrapped class NCollection_UtfIterator: ... -#classnotwrapped +# classnotwrapped class NCollection_UtfString: ... -#classnotwrapped +# classnotwrapped class NCollection_Vec2: ... -#classnotwrapped +# classnotwrapped class NCollection_Vec3: ... -#classnotwrapped +# classnotwrapped class NCollection_Vec4: ... -#classnotwrapped +# classnotwrapped class NCollection_WinHeapAllocator: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/NLPlate.i b/src/SWIG_files/wrapper/NLPlate.i index b943d3141..e29180471 100644 --- a/src/SWIG_files/wrapper/NLPlate.i +++ b/src/SWIG_files/wrapper/NLPlate.i @@ -99,6 +99,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = NLPlate_ListIteratorOfStackOfPlate(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/NLPlate.pyi b/src/SWIG_files/wrapper/NLPlate.pyi index abb5fb371..e6cfd2999 100644 --- a/src/SWIG_files/wrapper/NLPlate.pyi +++ b/src/SWIG_files/wrapper/NLPlate.pyi @@ -7,35 +7,40 @@ from OCC.Core.gp import * from OCC.Core.Plate import * from OCC.Core.Geom import * - class NLPlate_SequenceOfHGPPConstraint: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class NLPlate_StackOfPlate: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class NLPlate_StackOfPlate: + def Append(self, theItem: Plate_Plate) -> Plate_Plate: ... + def Assign(self, theItem: NLPlate_StackOfPlate) -> NLPlate_StackOfPlate: ... def Clear(self) -> None: ... def First(self) -> Plate_Plate: ... def Last(self) -> Plate_Plate: ... - def Append(self, theItem: Plate_Plate) -> Plate_Plate: ... def Prepend(self, theItem: Plate_Plate) -> Plate_Plate: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Plate_Plate: ... - def SetValue(self, theIndex: int, theValue: Plate_Plate) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Plate_Plate: ... class NLPlate_HGPPConstraint(Standard_Transient): def ActiveOrder(self) -> int: ... @@ -68,13 +73,23 @@ class NLPlate_NLPlate: def Continuity(self) -> int: ... def Evaluate(self, point2d: gp_XY) -> gp_XYZ: ... def EvaluateDerivative(self, point2d: gp_XY, iu: int, iv: int) -> gp_XYZ: ... - def IncrementalSolve(self, ord: Optional[int] = 2, InitialConsraintOrder: Optional[int] = 1, NbIncrements: Optional[int] = 4, UVSliding: Optional[bool] = False) -> None: ... + def IncrementalSolve( + self, + ord: Optional[int] = 2, + InitialConsraintOrder: Optional[int] = 1, + NbIncrements: Optional[int] = 4, + UVSliding: Optional[bool] = False, + ) -> None: ... def Init(self) -> None: ... def IsDone(self) -> bool: ... def Load(self, GConst: NLPlate_HGPPConstraint) -> None: ... def MaxActiveConstraintOrder(self) -> int: ... - def Solve(self, ord: Optional[int] = 2, InitialConsraintOrder: Optional[int] = 1) -> None: ... - def Solve2(self, ord: Optional[int] = 2, InitialConsraintOrder: Optional[int] = 1) -> None: ... + def Solve( + self, ord: Optional[int] = 2, InitialConsraintOrder: Optional[int] = 1 + ) -> None: ... + def Solve2( + self, ord: Optional[int] = 2, InitialConsraintOrder: Optional[int] = 1 + ) -> None: ... def destroy(self) -> None: ... class NLPlate_HPG0Constraint(NLPlate_HGPPConstraint): @@ -110,21 +125,26 @@ class NLPlate_HPG2Constraint(NLPlate_HPG1Constraint): def G2Target(self) -> Plate_D2: ... class NLPlate_HPG0G2Constraint(NLPlate_HPG0G1Constraint): - def __init__(self, UV: gp_XY, Value: gp_XYZ, D1T: Plate_D1, D2T: Plate_D2) -> None: ... + def __init__( + self, UV: gp_XY, Value: gp_XYZ, D1T: Plate_D1, D2T: Plate_D2 + ) -> None: ... def ActiveOrder(self) -> int: ... def G2Target(self) -> Plate_D2: ... class NLPlate_HPG3Constraint(NLPlate_HPG2Constraint): - def __init__(self, UV: gp_XY, D1T: Plate_D1, D2T: Plate_D2, D3T: Plate_D3) -> None: ... + def __init__( + self, UV: gp_XY, D1T: Plate_D1, D2T: Plate_D2, D3T: Plate_D3 + ) -> None: ... def ActiveOrder(self) -> int: ... def G3Target(self) -> Plate_D3: ... class NLPlate_HPG0G3Constraint(NLPlate_HPG0G2Constraint): - def __init__(self, UV: gp_XY, Value: gp_XYZ, D1T: Plate_D1, D2T: Plate_D2, D3T: Plate_D3) -> None: ... + def __init__( + self, UV: gp_XY, Value: gp_XYZ, D1T: Plate_D1, D2T: Plate_D2, D3T: Plate_D3 + ) -> None: ... def ActiveOrder(self) -> int: ... def G3Target(self) -> Plate_D3: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/OSD.pyi b/src/SWIG_files/wrapper/OSD.pyi index f5d9b940b..6d244ada0 100644 --- a/src/SWIG_files/wrapper/OSD.pyi +++ b/src/SWIG_files/wrapper/OSD.pyi @@ -194,88 +194,87 @@ OSD_WTimer = OSD_WhoAmI.OSD_WTimer OSD_WPackage = OSD_WhoAmI.OSD_WPackage OSD_WEnvironmentIterator = OSD_WhoAmI.OSD_WEnvironmentIterator -#classnotwrapped +# classnotwrapped class OSD: ... -#classnotwrapped +# classnotwrapped class OSD_CachedFileSystem: ... -#classnotwrapped +# classnotwrapped class OSD_Chronometer: ... -#classnotwrapped +# classnotwrapped class OSD_Directory: ... -#classnotwrapped +# classnotwrapped class OSD_DirectoryIterator: ... -#classnotwrapped +# classnotwrapped class OSD_Disk: ... -#classnotwrapped +# classnotwrapped class OSD_Environment: ... -#classnotwrapped +# classnotwrapped class OSD_Error: ... -#classnotwrapped +# classnotwrapped class OSD_File: ... -#classnotwrapped +# classnotwrapped class OSD_FileIterator: ... -#classnotwrapped +# classnotwrapped class OSD_FileNode: ... -#classnotwrapped +# classnotwrapped class OSD_FileSystem: ... -#classnotwrapped +# classnotwrapped class OSD_FileSystemSelector: ... -#classnotwrapped +# classnotwrapped class OSD_Host: ... -#classnotwrapped +# classnotwrapped class OSD_LocalFileSystem: ... -#classnotwrapped +# classnotwrapped class OSD_MAllocHook: ... -#classnotwrapped +# classnotwrapped class OSD_MemInfo: ... -#classnotwrapped +# classnotwrapped class OSD_Parallel: ... -#classnotwrapped +# classnotwrapped class OSD_Path: ... -#classnotwrapped +# classnotwrapped class OSD_PerfMeter: ... -#classnotwrapped +# classnotwrapped class OSD_Process: ... -#classnotwrapped +# classnotwrapped class OSD_Protection: ... -#classnotwrapped +# classnotwrapped class OSD_SharedLibrary: ... -#classnotwrapped +# classnotwrapped class OSD_StreamBuffer: ... -#classnotwrapped +# classnotwrapped class OSD_Thread: ... -#classnotwrapped +# classnotwrapped class OSD_ThreadPool: ... -#classnotwrapped +# classnotwrapped class OSD_Timer: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/PCDM.pyi b/src/SWIG_files/wrapper/PCDM.pyi index c201f3c44..fef764a82 100644 --- a/src/SWIG_files/wrapper/PCDM.pyi +++ b/src/SWIG_files/wrapper/PCDM.pyi @@ -13,34 +13,46 @@ from OCC.Core.CDM import * PCDM_BaseDriverPointer = NewType("PCDM_BaseDriverPointer", Any) class PCDM_SequenceOfDocument: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class PCDM_SequenceOfReference: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class PCDM_SequenceOfReference: + def Assign(self, theItem: PCDM_Reference) -> PCDM_Reference: ... def Clear(self) -> None: ... def First(self) -> PCDM_Reference: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> PCDM_Reference: ... def Length(self) -> int: ... - def Append(self, theItem: PCDM_Reference) -> PCDM_Reference: ... + def Lower(self) -> int: ... def Prepend(self, theItem: PCDM_Reference) -> PCDM_Reference: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> PCDM_Reference: ... def SetValue(self, theIndex: int, theValue: PCDM_Reference) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> PCDM_Reference: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class PCDM_ReaderStatus(IntEnum): PCDM_RS_OK: int = ... @@ -83,7 +95,9 @@ PCDM_RS_UnrecognizedFileFormat = PCDM_ReaderStatus.PCDM_RS_UnrecognizedFileForma PCDM_RS_MakeFailure = PCDM_ReaderStatus.PCDM_RS_MakeFailure PCDM_RS_PermissionDenied = PCDM_ReaderStatus.PCDM_RS_PermissionDenied PCDM_RS_DriverFailure = PCDM_ReaderStatus.PCDM_RS_DriverFailure -PCDM_RS_AlreadyRetrievedAndModified = PCDM_ReaderStatus.PCDM_RS_AlreadyRetrievedAndModified +PCDM_RS_AlreadyRetrievedAndModified = ( + PCDM_ReaderStatus.PCDM_RS_AlreadyRetrievedAndModified +) PCDM_RS_AlreadyRetrieved = PCDM_ReaderStatus.PCDM_RS_AlreadyRetrieved PCDM_RS_UnknownDocument = PCDM_ReaderStatus.PCDM_RS_UnknownDocument PCDM_RS_WrongResource = PCDM_ReaderStatus.PCDM_RS_WrongResource @@ -126,10 +140,14 @@ PCDM_TOFD_Unknown = PCDM_TypeOfFileDriver.PCDM_TOFD_Unknown class pcdm: @overload @staticmethod - def FileDriverType(aFileName: str, aBaseDriver: Storage_BaseDriver) -> PCDM_TypeOfFileDriver: ... + def FileDriverType( + aFileName: str, aBaseDriver: Storage_BaseDriver + ) -> PCDM_TypeOfFileDriver: ... @overload @staticmethod - def FileDriverType(theIStream: str, theBaseDriver: Storage_BaseDriver) -> PCDM_TypeOfFileDriver: ... + def FileDriverType( + theIStream: str, theBaseDriver: Storage_BaseDriver + ) -> PCDM_TypeOfFileDriver: ... class PCDM_ReadWriter(Standard_Transient): @overload @@ -139,19 +157,39 @@ class PCDM_ReadWriter(Standard_Transient): @staticmethod def FileFormat(theIStream: str, theData: Storage_Data) -> str: ... @staticmethod - def Open(aDriver: Storage_BaseDriver, aFileName: str, anOpenMode: Storage_OpenMode) -> None: ... - def ReadDocumentVersion(self, aFileName: str, theMsgDriver: Message_Messenger) -> int: ... - def ReadExtensions(self, aFileName: str, theExtensions: TColStd_SequenceOfExtendedString, theMsgDriver: Message_Messenger) -> None: ... - def ReadReferenceCounter(self, theFileName: str, theMsgDriver: Message_Messenger) -> int: ... - def ReadReferences(self, aFileName: str, theReferences: PCDM_SequenceOfReference, theMsgDriver: Message_Messenger) -> None: ... + def Open( + aDriver: Storage_BaseDriver, aFileName: str, anOpenMode: Storage_OpenMode + ) -> None: ... + def ReadDocumentVersion( + self, aFileName: str, theMsgDriver: Message_Messenger + ) -> int: ... + def ReadExtensions( + self, + aFileName: str, + theExtensions: TColStd_SequenceOfExtendedString, + theMsgDriver: Message_Messenger, + ) -> None: ... + def ReadReferenceCounter( + self, theFileName: str, theMsgDriver: Message_Messenger + ) -> int: ... + def ReadReferences( + self, + aFileName: str, + theReferences: PCDM_SequenceOfReference, + theMsgDriver: Message_Messenger, + ) -> None: ... @staticmethod def Reader(aFileName: str) -> PCDM_ReadWriter: ... def Version(self) -> str: ... def WriteExtensions(self, aData: Storage_Data, aDocument: CDM_Document) -> None: ... @staticmethod def WriteFileFormat(aData: Storage_Data, aDocument: CDM_Document) -> None: ... - def WriteReferenceCounter(self, aData: Storage_Data, aDocument: CDM_Document) -> None: ... - def WriteReferences(self, aData: Storage_Data, aDocument: CDM_Document, theReferencerFileName: str) -> None: ... + def WriteReferenceCounter( + self, aData: Storage_Data, aDocument: CDM_Document + ) -> None: ... + def WriteReferences( + self, aData: Storage_Data, aDocument: CDM_Document, theReferencerFileName: str + ) -> None: ... def WriteVersion(self, aData: Storage_Data, aDocument: CDM_Document) -> None: ... @staticmethod def Writer() -> PCDM_ReadWriter: ... @@ -159,9 +197,24 @@ class PCDM_ReadWriter(Standard_Transient): class PCDM_Reader(Standard_Transient): def GetStatus(self) -> PCDM_ReaderStatus: ... @overload - def Read(self, aFileName: str, aNewDocument: CDM_Document, anApplication: CDM_Application, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + aFileName: str, + aNewDocument: CDM_Document, + anApplication: CDM_Application, + theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def Read(self, theIStream: str, theStorageData: Storage_Data, theDoc: CDM_Document, theApplication: CDM_Application, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + theIStream: str, + theStorageData: Storage_Data, + theDoc: CDM_Document, + theApplication: CDM_Application, + theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... class PCDM_ReaderFilter(Standard_Transient): @overload @@ -202,7 +255,9 @@ class PCDM_Reference: @overload def __init__(self) -> None: ... @overload - def __init__(self, aReferenceIdentifier: int, aFileName: str, aDocumentVersion: int) -> None: ... + def __init__( + self, aReferenceIdentifier: int, aFileName: str, aDocumentVersion: int + ) -> None: ... def DocumentVersion(self) -> int: ... def FileName(self) -> str: ... def ReferenceIdentifier(self) -> int: ... @@ -210,24 +265,57 @@ class PCDM_Reference: class PCDM_ReferenceIterator(Standard_Transient): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def Init(self, aMetaData: CDM_MetaData) -> None: ... - def LoadReferences(self, aDocument: CDM_Document, aMetaData: CDM_MetaData, anApplication: CDM_Application, UseStorageConfiguration: bool) -> None: ... + def LoadReferences( + self, + aDocument: CDM_Document, + aMetaData: CDM_MetaData, + anApplication: CDM_Application, + UseStorageConfiguration: bool, + ) -> None: ... class PCDM_Writer(Standard_Transient): @overload - def Write(self, aDocument: CDM_Document, aFileName: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Write( + self, + aDocument: CDM_Document, + aFileName: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def Write(self, theDocument: CDM_Document, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, + theDocument: CDM_Document, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... class PCDM_ReadWriter_1(PCDM_ReadWriter): def __init__(self) -> None: ... - def ReadDocumentVersion(self, aFileName: str, theMsgDriver: Message_Messenger) -> int: ... - def ReadExtensions(self, aFileName: str, theExtensions: TColStd_SequenceOfExtendedString, theMsgDriver: Message_Messenger) -> None: ... - def ReadReferenceCounter(self, aFileName: str, theMsgDriver: Message_Messenger) -> int: ... - def ReadReferences(self, aFileName: str, theReferences: PCDM_SequenceOfReference, theMsgDriver: Message_Messenger) -> None: ... + def ReadDocumentVersion( + self, aFileName: str, theMsgDriver: Message_Messenger + ) -> int: ... + def ReadExtensions( + self, + aFileName: str, + theExtensions: TColStd_SequenceOfExtendedString, + theMsgDriver: Message_Messenger, + ) -> None: ... + def ReadReferenceCounter( + self, aFileName: str, theMsgDriver: Message_Messenger + ) -> int: ... + def ReadReferences( + self, + aFileName: str, + theReferences: PCDM_SequenceOfReference, + theMsgDriver: Message_Messenger, + ) -> None: ... def Version(self) -> str: ... def WriteExtensions(self, aData: Storage_Data, aDocument: CDM_Document) -> None: ... - def WriteReferenceCounter(self, aData: Storage_Data, aDocument: CDM_Document) -> None: ... - def WriteReferences(self, aData: Storage_Data, aDocument: CDM_Document, theReferencerFileName: str) -> None: ... + def WriteReferenceCounter( + self, aData: Storage_Data, aDocument: CDM_Document + ) -> None: ... + def WriteReferences( + self, aData: Storage_Data, aDocument: CDM_Document, theReferencerFileName: str + ) -> None: ... def WriteVersion(self, aData: Storage_Data, aDocument: CDM_Document) -> None: ... class PCDM_RetrievalDriver(PCDM_Reader): @@ -245,22 +333,32 @@ class PCDM_StorageDriver(PCDM_Writer): @overload def Make(self, aDocument: CDM_Document) -> PCDM_Document: ... @overload - def Make(self, aDocument: CDM_Document, Documents: PCDM_SequenceOfDocument) -> None: ... + def Make( + self, aDocument: CDM_Document, Documents: PCDM_SequenceOfDocument + ) -> None: ... def SetFormat(self, aformat: str) -> None: ... def SetIsError(self, theIsError: bool) -> None: ... def SetStoreStatus(self, theStoreStatus: PCDM_StoreStatus) -> None: ... @overload - def Write(self, aDocument: CDM_Document, aFileName: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Write( + self, + aDocument: CDM_Document, + aFileName: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def Write(self, theDocument: CDM_Document, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, + theDocument: CDM_Document, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... -#classnotwrapped +# classnotwrapped class PCDM_DOMHeaderParser: ... -#classnotwrapped +# classnotwrapped class PCDM_Document: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/PLib.pyi b/src/SWIG_files/wrapper/PLib.pyi index 45dc64612..29dd27633 100644 --- a/src/SWIG_files/wrapper/PLib.pyi +++ b/src/SWIG_files/wrapper/PLib.pyi @@ -8,155 +8,377 @@ from OCC.Core.TColStd import * from OCC.Core.GeomAbs import * from OCC.Core.math import * - class plib: @staticmethod def Bin(N: int, P: int) -> float: ... @overload @staticmethod - def CoefficientsPoles(Coefs: TColgp_Array1OfPnt, WCoefs: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt, WPoles: TColStd_Array1OfReal) -> None: ... + def CoefficientsPoles( + Coefs: TColgp_Array1OfPnt, + WCoefs: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt, + WPoles: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod - def CoefficientsPoles(Coefs: TColgp_Array1OfPnt2d, WCoefs: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt2d, WPoles: TColStd_Array1OfReal) -> None: ... + def CoefficientsPoles( + Coefs: TColgp_Array1OfPnt2d, + WCoefs: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt2d, + WPoles: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod - def CoefficientsPoles(Coefs: TColStd_Array1OfReal, WCoefs: TColStd_Array1OfReal, Poles: TColStd_Array1OfReal, WPoles: TColStd_Array1OfReal) -> None: ... + def CoefficientsPoles( + Coefs: TColStd_Array1OfReal, + WCoefs: TColStd_Array1OfReal, + Poles: TColStd_Array1OfReal, + WPoles: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod - def CoefficientsPoles(dim: int, Coefs: TColStd_Array1OfReal, WCoefs: TColStd_Array1OfReal, Poles: TColStd_Array1OfReal, WPoles: TColStd_Array1OfReal) -> None: ... + def CoefficientsPoles( + dim: int, + Coefs: TColStd_Array1OfReal, + WCoefs: TColStd_Array1OfReal, + Poles: TColStd_Array1OfReal, + WPoles: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod - def CoefficientsPoles(Coefs: TColgp_Array2OfPnt, WCoefs: TColStd_Array2OfReal, Poles: TColgp_Array2OfPnt, WPoles: TColStd_Array2OfReal) -> None: ... + def CoefficientsPoles( + Coefs: TColgp_Array2OfPnt, + WCoefs: TColStd_Array2OfReal, + Poles: TColgp_Array2OfPnt, + WPoles: TColStd_Array2OfReal, + ) -> None: ... @staticmethod def ConstraintOrder(NivConstr: int) -> GeomAbs_Shape: ... @staticmethod - def EvalCubicHermite(U: float, DerivativeOrder: int, Dimension: int) -> Tuple[int, float, float, float, float]: ... + def EvalCubicHermite( + U: float, DerivativeOrder: int, Dimension: int + ) -> Tuple[int, float, float, float, float]: ... @staticmethod - def EvalLagrange(U: float, DerivativeOrder: int, Degree: int, Dimension: int) -> Tuple[int, float, float, float]: ... + def EvalLagrange( + U: float, DerivativeOrder: int, Degree: int, Dimension: int + ) -> Tuple[int, float, float, float]: ... @overload @staticmethod - def EvalLength(Degree: int, Dimension: int, U1: float, U2: float) -> Tuple[float, float]: ... + def EvalLength( + Degree: int, Dimension: int, U1: float, U2: float + ) -> Tuple[float, float]: ... @overload @staticmethod - def EvalLength(Degree: int, Dimension: int, U1: float, U2: float, Tol: float) -> Tuple[float, float, float]: ... - @staticmethod - def EvalPoly2Var(U: float, V: float, UDerivativeOrder: int, VDerivativeOrder: int, UDegree: int, VDegree: int, Dimension: int) -> Tuple[float, float]: ... - @staticmethod - def EvalPolynomial(U: float, DerivativeOrder: int, Degree: int, Dimension: int) -> Tuple[float, float]: ... + def EvalLength( + Degree: int, Dimension: int, U1: float, U2: float, Tol: float + ) -> Tuple[float, float, float]: ... + @staticmethod + def EvalPoly2Var( + U: float, + V: float, + UDerivativeOrder: int, + VDerivativeOrder: int, + UDegree: int, + VDegree: int, + Dimension: int, + ) -> Tuple[float, float]: ... + @staticmethod + def EvalPolynomial( + U: float, DerivativeOrder: int, Degree: int, Dimension: int + ) -> Tuple[float, float]: ... @overload @staticmethod def GetPoles(FP: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt) -> None: ... @overload @staticmethod - def GetPoles(FP: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal) -> None: ... + def GetPoles( + FP: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod def GetPoles(FP: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt2d) -> None: ... @overload @staticmethod - def GetPoles(FP: TColStd_Array1OfReal, Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal) -> None: ... - @staticmethod - def HermiteCoefficients(FirstParameter: float, LastParameter: float, FirstOrder: int, LastOrder: int, MatrixCoefs: math_Matrix) -> bool: ... - @staticmethod - def HermiteInterpolate(Dimension: int, FirstParameter: float, LastParameter: float, FirstOrder: int, LastOrder: int, FirstConstr: TColStd_Array2OfReal, LastConstr: TColStd_Array2OfReal, Coefficients: TColStd_Array1OfReal) -> bool: ... - @staticmethod - def JacobiParameters(ConstraintOrder: GeomAbs_Shape, MaxDegree: int, Code: int) -> Tuple[int, int]: ... + def GetPoles( + FP: TColStd_Array1OfReal, + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + ) -> None: ... + @staticmethod + def HermiteCoefficients( + FirstParameter: float, + LastParameter: float, + FirstOrder: int, + LastOrder: int, + MatrixCoefs: math_Matrix, + ) -> bool: ... + @staticmethod + def HermiteInterpolate( + Dimension: int, + FirstParameter: float, + LastParameter: float, + FirstOrder: int, + LastOrder: int, + FirstConstr: TColStd_Array2OfReal, + LastConstr: TColStd_Array2OfReal, + Coefficients: TColStd_Array1OfReal, + ) -> bool: ... + @staticmethod + def JacobiParameters( + ConstraintOrder: GeomAbs_Shape, MaxDegree: int, Code: int + ) -> Tuple[int, int]: ... @staticmethod def NivConstr(ConstraintOrder: GeomAbs_Shape) -> int: ... @staticmethod - def NoDerivativeEvalPolynomial(U: float, Degree: int, Dimension: int, DegreeDimension: int) -> Tuple[float, float]: ... + def NoDerivativeEvalPolynomial( + U: float, Degree: int, Dimension: int, DegreeDimension: int + ) -> Tuple[float, float]: ... @staticmethod def NoWeights() -> TColStd_Array1OfReal: ... @staticmethod def NoWeights2() -> TColStd_Array2OfReal: ... @staticmethod - def RationalDerivative(Degree: int, N: int, Dimension: int, All: Optional[bool] = True) -> Tuple[float, float]: ... + def RationalDerivative( + Degree: int, N: int, Dimension: int, All: Optional[bool] = True + ) -> Tuple[float, float]: ... @staticmethod - def RationalDerivatives(DerivativesRequest: int, Dimension: int) -> Tuple[float, float, float]: ... + def RationalDerivatives( + DerivativesRequest: int, Dimension: int + ) -> Tuple[float, float, float]: ... @overload @staticmethod def SetPoles(Poles: TColgp_Array1OfPnt, FP: TColStd_Array1OfReal) -> None: ... @overload @staticmethod - def SetPoles(Poles: TColgp_Array1OfPnt, Weights: TColStd_Array1OfReal, FP: TColStd_Array1OfReal) -> None: ... + def SetPoles( + Poles: TColgp_Array1OfPnt, + Weights: TColStd_Array1OfReal, + FP: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod def SetPoles(Poles: TColgp_Array1OfPnt2d, FP: TColStd_Array1OfReal) -> None: ... @overload @staticmethod - def SetPoles(Poles: TColgp_Array1OfPnt2d, Weights: TColStd_Array1OfReal, FP: TColStd_Array1OfReal) -> None: ... + def SetPoles( + Poles: TColgp_Array1OfPnt2d, + Weights: TColStd_Array1OfReal, + FP: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod - def Trimming(U1: float, U2: float, Coeffs: TColgp_Array1OfPnt, WCoeffs: TColStd_Array1OfReal) -> None: ... + def Trimming( + U1: float, U2: float, Coeffs: TColgp_Array1OfPnt, WCoeffs: TColStd_Array1OfReal + ) -> None: ... @overload @staticmethod - def Trimming(U1: float, U2: float, Coeffs: TColgp_Array1OfPnt2d, WCoeffs: TColStd_Array1OfReal) -> None: ... + def Trimming( + U1: float, + U2: float, + Coeffs: TColgp_Array1OfPnt2d, + WCoeffs: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod - def Trimming(U1: float, U2: float, Coeffs: TColStd_Array1OfReal, WCoeffs: TColStd_Array1OfReal) -> None: ... + def Trimming( + U1: float, + U2: float, + Coeffs: TColStd_Array1OfReal, + WCoeffs: TColStd_Array1OfReal, + ) -> None: ... @overload @staticmethod - def Trimming(U1: float, U2: float, dim: int, Coeffs: TColStd_Array1OfReal, WCoeffs: TColStd_Array1OfReal) -> None: ... - @staticmethod - def UTrimming(U1: float, U2: float, Coeffs: TColgp_Array2OfPnt, WCoeffs: TColStd_Array2OfReal) -> None: ... - @staticmethod - def VTrimming(V1: float, V2: float, Coeffs: TColgp_Array2OfPnt, WCoeffs: TColStd_Array2OfReal) -> None: ... + def Trimming( + U1: float, + U2: float, + dim: int, + Coeffs: TColStd_Array1OfReal, + WCoeffs: TColStd_Array1OfReal, + ) -> None: ... + @staticmethod + def UTrimming( + U1: float, U2: float, Coeffs: TColgp_Array2OfPnt, WCoeffs: TColStd_Array2OfReal + ) -> None: ... + @staticmethod + def VTrimming( + V1: float, V2: float, Coeffs: TColgp_Array2OfPnt, WCoeffs: TColStd_Array2OfReal + ) -> None: ... class PLib_Base(Standard_Transient): def D0(self, U: float, BasisValue: TColStd_Array1OfReal) -> None: ... - def D1(self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal) -> None: ... - def D2(self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal, BasisD2: TColStd_Array1OfReal) -> None: ... - def D3(self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal, BasisD2: TColStd_Array1OfReal, BasisD3: TColStd_Array1OfReal) -> None: ... - def ReduceDegree(self, Dimension: int, MaxDegree: int, Tol: float) -> Tuple[float, int, float]: ... - def ToCoefficients(self, Dimension: int, Degree: int, CoeffinBase: TColStd_Array1OfReal, Coefficients: TColStd_Array1OfReal) -> None: ... + def D1( + self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal + ) -> None: ... + def D2( + self, + U: float, + BasisValue: TColStd_Array1OfReal, + BasisD1: TColStd_Array1OfReal, + BasisD2: TColStd_Array1OfReal, + ) -> None: ... + def D3( + self, + U: float, + BasisValue: TColStd_Array1OfReal, + BasisD1: TColStd_Array1OfReal, + BasisD2: TColStd_Array1OfReal, + BasisD3: TColStd_Array1OfReal, + ) -> None: ... + def ReduceDegree( + self, Dimension: int, MaxDegree: int, Tol: float + ) -> Tuple[float, int, float]: ... + def ToCoefficients( + self, + Dimension: int, + Degree: int, + CoeffinBase: TColStd_Array1OfReal, + Coefficients: TColStd_Array1OfReal, + ) -> None: ... def WorkDegree(self) -> int: ... class PLib_DoubleJacobiPolynomial: @overload def __init__(self) -> None: ... @overload - def __init__(self, JacPolU: PLib_JacobiPolynomial, JacPolV: PLib_JacobiPolynomial) -> None: ... - def AverageError(self, Dimension: int, DegreeU: int, DegreeV: int, dJacCoeff: int, JacCoeff: TColStd_Array1OfReal) -> float: ... - def MaxError(self, Dimension: int, MinDegreeU: int, MaxDegreeU: int, MinDegreeV: int, MaxDegreeV: int, dJacCoeff: int, JacCoeff: TColStd_Array1OfReal, Error: float) -> float: ... - def MaxErrorU(self, Dimension: int, DegreeU: int, DegreeV: int, dJacCoeff: int, JacCoeff: TColStd_Array1OfReal) -> float: ... - def MaxErrorV(self, Dimension: int, DegreeU: int, DegreeV: int, dJacCoeff: int, JacCoeff: TColStd_Array1OfReal) -> float: ... - def ReduceDegree(self, Dimension: int, MinDegreeU: int, MaxDegreeU: int, MinDegreeV: int, MaxDegreeV: int, dJacCoeff: int, JacCoeff: TColStd_Array1OfReal, EpmsCut: float) -> Tuple[float, int, int]: ... + def __init__( + self, JacPolU: PLib_JacobiPolynomial, JacPolV: PLib_JacobiPolynomial + ) -> None: ... + def AverageError( + self, + Dimension: int, + DegreeU: int, + DegreeV: int, + dJacCoeff: int, + JacCoeff: TColStd_Array1OfReal, + ) -> float: ... + def MaxError( + self, + Dimension: int, + MinDegreeU: int, + MaxDegreeU: int, + MinDegreeV: int, + MaxDegreeV: int, + dJacCoeff: int, + JacCoeff: TColStd_Array1OfReal, + Error: float, + ) -> float: ... + def MaxErrorU( + self, + Dimension: int, + DegreeU: int, + DegreeV: int, + dJacCoeff: int, + JacCoeff: TColStd_Array1OfReal, + ) -> float: ... + def MaxErrorV( + self, + Dimension: int, + DegreeU: int, + DegreeV: int, + dJacCoeff: int, + JacCoeff: TColStd_Array1OfReal, + ) -> float: ... + def ReduceDegree( + self, + Dimension: int, + MinDegreeU: int, + MaxDegreeU: int, + MinDegreeV: int, + MaxDegreeV: int, + dJacCoeff: int, + JacCoeff: TColStd_Array1OfReal, + EpmsCut: float, + ) -> Tuple[float, int, int]: ... def TabMaxU(self) -> TColStd_HArray1OfReal: ... def TabMaxV(self) -> TColStd_HArray1OfReal: ... def U(self) -> PLib_JacobiPolynomial: ... def V(self) -> PLib_JacobiPolynomial: ... - def WDoubleJacobiToCoefficients(self, Dimension: int, DegreeU: int, DegreeV: int, JacCoeff: TColStd_Array1OfReal, Coefficients: TColStd_Array1OfReal) -> None: ... + def WDoubleJacobiToCoefficients( + self, + Dimension: int, + DegreeU: int, + DegreeV: int, + JacCoeff: TColStd_Array1OfReal, + Coefficients: TColStd_Array1OfReal, + ) -> None: ... class PLib_HermitJacobi(PLib_Base): def __init__(self, WorkDegree: int, ConstraintOrder: GeomAbs_Shape) -> None: ... def AverageError(self, Dimension: int, NewDegree: int) -> Tuple[float, float]: ... def D0(self, U: float, BasisValue: TColStd_Array1OfReal) -> None: ... - def D1(self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal) -> None: ... - def D2(self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal, BasisD2: TColStd_Array1OfReal) -> None: ... - def D3(self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal, BasisD2: TColStd_Array1OfReal, BasisD3: TColStd_Array1OfReal) -> None: ... + def D1( + self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal + ) -> None: ... + def D2( + self, + U: float, + BasisValue: TColStd_Array1OfReal, + BasisD1: TColStd_Array1OfReal, + BasisD2: TColStd_Array1OfReal, + ) -> None: ... + def D3( + self, + U: float, + BasisValue: TColStd_Array1OfReal, + BasisD1: TColStd_Array1OfReal, + BasisD2: TColStd_Array1OfReal, + BasisD3: TColStd_Array1OfReal, + ) -> None: ... def MaxError(self, Dimension: int, NewDegree: int) -> Tuple[float, float]: ... def NivConstr(self) -> int: ... - def ReduceDegree(self, Dimension: int, MaxDegree: int, Tol: float) -> Tuple[float, int, float]: ... - def ToCoefficients(self, Dimension: int, Degree: int, HermJacCoeff: TColStd_Array1OfReal, Coefficients: TColStd_Array1OfReal) -> None: ... + def ReduceDegree( + self, Dimension: int, MaxDegree: int, Tol: float + ) -> Tuple[float, int, float]: ... + def ToCoefficients( + self, + Dimension: int, + Degree: int, + HermJacCoeff: TColStd_Array1OfReal, + Coefficients: TColStd_Array1OfReal, + ) -> None: ... def WorkDegree(self) -> int: ... class PLib_JacobiPolynomial(PLib_Base): def __init__(self, WorkDegree: int, ConstraintOrder: GeomAbs_Shape) -> None: ... def AverageError(self, Dimension: int, NewDegree: int) -> Tuple[float, float]: ... def D0(self, U: float, BasisValue: TColStd_Array1OfReal) -> None: ... - def D1(self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal) -> None: ... - def D2(self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal, BasisD2: TColStd_Array1OfReal) -> None: ... - def D3(self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal, BasisD2: TColStd_Array1OfReal, BasisD3: TColStd_Array1OfReal) -> None: ... + def D1( + self, U: float, BasisValue: TColStd_Array1OfReal, BasisD1: TColStd_Array1OfReal + ) -> None: ... + def D2( + self, + U: float, + BasisValue: TColStd_Array1OfReal, + BasisD1: TColStd_Array1OfReal, + BasisD2: TColStd_Array1OfReal, + ) -> None: ... + def D3( + self, + U: float, + BasisValue: TColStd_Array1OfReal, + BasisD1: TColStd_Array1OfReal, + BasisD2: TColStd_Array1OfReal, + BasisD3: TColStd_Array1OfReal, + ) -> None: ... def MaxError(self, Dimension: int, NewDegree: int) -> Tuple[float, float]: ... def MaxValue(self, TabMax: TColStd_Array1OfReal) -> None: ... def NivConstr(self) -> int: ... def Points(self, NbGaussPoints: int, TabPoints: TColStd_Array1OfReal) -> None: ... - def ReduceDegree(self, Dimension: int, MaxDegree: int, Tol: float) -> Tuple[float, int, float]: ... - def ToCoefficients(self, Dimension: int, Degree: int, JacCoeff: TColStd_Array1OfReal, Coefficients: TColStd_Array1OfReal) -> None: ... + def ReduceDegree( + self, Dimension: int, MaxDegree: int, Tol: float + ) -> Tuple[float, int, float]: ... + def ToCoefficients( + self, + Dimension: int, + Degree: int, + JacCoeff: TColStd_Array1OfReal, + Coefficients: TColStd_Array1OfReal, + ) -> None: ... def Weights(self, NbGaussPoints: int, TabWeights: TColStd_Array2OfReal) -> None: ... def WorkDegree(self) -> int: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Plate.pyi b/src/SWIG_files/wrapper/Plate.pyi index 2c3f6cd20..26200359e 100644 --- a/src/SWIG_files/wrapper/Plate.pyi +++ b/src/SWIG_files/wrapper/Plate.pyi @@ -8,7 +8,6 @@ from OCC.Core.TColgp import * from OCC.Core.TColStd import * from OCC.Core.Message import * - class Plate_Array1OfPinpointConstraint: @overload def __init__(self) -> None: ... @@ -34,49 +33,79 @@ class Plate_Array1OfPinpointConstraint: def SetValue(self, theIndex: int, theValue: Plate_PinpointConstraint) -> None: ... class Plate_SequenceOfLinearScalarConstraint: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign( + self, theItem: Plate_LinearScalarConstraint + ) -> Plate_LinearScalarConstraint: ... def Clear(self) -> None: ... def First(self) -> Plate_LinearScalarConstraint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Plate_LinearScalarConstraint: ... def Length(self) -> int: ... - def Append(self, theItem: Plate_LinearScalarConstraint) -> Plate_LinearScalarConstraint: ... - def Prepend(self, theItem: Plate_LinearScalarConstraint) -> Plate_LinearScalarConstraint: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: Plate_LinearScalarConstraint + ) -> Plate_LinearScalarConstraint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: Plate_LinearScalarConstraint + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> Plate_LinearScalarConstraint: ... - def SetValue(self, theIndex: int, theValue: Plate_LinearScalarConstraint) -> None: ... - -class Plate_SequenceOfLinearXYZConstraint: def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Plate_SequenceOfLinearXYZConstraint: + def Assign( + self, theItem: Plate_LinearXYZConstraint + ) -> Plate_LinearXYZConstraint: ... def Clear(self) -> None: ... def First(self) -> Plate_LinearXYZConstraint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Plate_LinearXYZConstraint: ... def Length(self) -> int: ... - def Append(self, theItem: Plate_LinearXYZConstraint) -> Plate_LinearXYZConstraint: ... - def Prepend(self, theItem: Plate_LinearXYZConstraint) -> Plate_LinearXYZConstraint: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: Plate_LinearXYZConstraint + ) -> Plate_LinearXYZConstraint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Plate_LinearXYZConstraint: ... def SetValue(self, theIndex: int, theValue: Plate_LinearXYZConstraint) -> None: ... - -class Plate_SequenceOfPinpointConstraint: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Plate_LinearXYZConstraint: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Plate_SequenceOfPinpointConstraint: + def Assign(self, theItem: Plate_PinpointConstraint) -> Plate_PinpointConstraint: ... def Clear(self) -> None: ... def First(self) -> Plate_PinpointConstraint: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> Plate_PinpointConstraint: ... def Length(self) -> int: ... - def Append(self, theItem: Plate_PinpointConstraint) -> Plate_PinpointConstraint: ... - def Prepend(self, theItem: Plate_PinpointConstraint) -> Plate_PinpointConstraint: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: Plate_PinpointConstraint + ) -> Plate_PinpointConstraint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Plate_PinpointConstraint: ... def SetValue(self, theIndex: int, theValue: Plate_PinpointConstraint) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Plate_PinpointConstraint: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Plate_D1: @overload @@ -94,17 +123,46 @@ class Plate_D2: class Plate_D3: @overload - def __init__(self, duuu: gp_XYZ, duuv: gp_XYZ, duvv: gp_XYZ, dvvv: gp_XYZ) -> None: ... + def __init__( + self, duuu: gp_XYZ, duuv: gp_XYZ, duvv: gp_XYZ, dvvv: gp_XYZ + ) -> None: ... @overload def __init__(self, ref: Plate_D3) -> None: ... class Plate_FreeGtoCConstraint: @overload - def __init__(self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, IncrementalLoad: Optional[float] = 1.0, orientation: Optional[int] = 0) -> None: ... - @overload - def __init__(self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, D2S: Plate_D2, D2T: Plate_D2, IncrementalLoad: Optional[float] = 1.0, orientation: Optional[int] = 0) -> None: ... - @overload - def __init__(self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, D2S: Plate_D2, D2T: Plate_D2, D3S: Plate_D3, D3T: Plate_D3, IncrementalLoad: Optional[float] = 1.0, orientation: Optional[int] = 0) -> None: ... + def __init__( + self, + point2d: gp_XY, + D1S: Plate_D1, + D1T: Plate_D1, + IncrementalLoad: Optional[float] = 1.0, + orientation: Optional[int] = 0, + ) -> None: ... + @overload + def __init__( + self, + point2d: gp_XY, + D1S: Plate_D1, + D1T: Plate_D1, + D2S: Plate_D2, + D2T: Plate_D2, + IncrementalLoad: Optional[float] = 1.0, + orientation: Optional[int] = 0, + ) -> None: ... + @overload + def __init__( + self, + point2d: gp_XY, + D1S: Plate_D1, + D1T: Plate_D1, + D2S: Plate_D2, + D2T: Plate_D2, + D3S: Plate_D3, + D3T: Plate_D3, + IncrementalLoad: Optional[float] = 1.0, + orientation: Optional[int] = 0, + ) -> None: ... def GetPPC(self, Index: int) -> Plate_PinpointConstraint: ... def LSC(self, Index: int) -> Plate_LinearScalarConstraint: ... def nb_LSC(self) -> int: ... @@ -120,21 +178,54 @@ class Plate_GtoCConstraint: @overload def __init__(self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1) -> None: ... @overload - def __init__(self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, nP: gp_XYZ) -> None: ... - @overload - def __init__(self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, D2S: Plate_D2, D2T: Plate_D2) -> None: ... - @overload - def __init__(self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, D2S: Plate_D2, D2T: Plate_D2, nP: gp_XYZ) -> None: ... - @overload - def __init__(self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, D2S: Plate_D2, D2T: Plate_D2, D3S: Plate_D3, D3T: Plate_D3) -> None: ... - @overload - def __init__(self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, D2S: Plate_D2, D2T: Plate_D2, D3S: Plate_D3, D3T: Plate_D3, nP: gp_XYZ) -> None: ... + def __init__( + self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, nP: gp_XYZ + ) -> None: ... + @overload + def __init__( + self, point2d: gp_XY, D1S: Plate_D1, D1T: Plate_D1, D2S: Plate_D2, D2T: Plate_D2 + ) -> None: ... + @overload + def __init__( + self, + point2d: gp_XY, + D1S: Plate_D1, + D1T: Plate_D1, + D2S: Plate_D2, + D2T: Plate_D2, + nP: gp_XYZ, + ) -> None: ... + @overload + def __init__( + self, + point2d: gp_XY, + D1S: Plate_D1, + D1T: Plate_D1, + D2S: Plate_D2, + D2T: Plate_D2, + D3S: Plate_D3, + D3T: Plate_D3, + ) -> None: ... + @overload + def __init__( + self, + point2d: gp_XY, + D1S: Plate_D1, + D1T: Plate_D1, + D2S: Plate_D2, + D2T: Plate_D2, + D3S: Plate_D3, + D3T: Plate_D3, + nP: gp_XYZ, + ) -> None: ... def D1SurfInit(self) -> Plate_D1: ... def GetPPC(self, Index: int) -> Plate_PinpointConstraint: ... def nb_PPC(self) -> int: ... class Plate_LineConstraint: - def __init__(self, point2d: gp_XY, lin: gp_Lin, iu: Optional[int] = 0, iv: Optional[int] = 0) -> None: ... + def __init__( + self, point2d: gp_XY, lin: gp_Lin, iu: Optional[int] = 0, iv: Optional[int] = 0 + ) -> None: ... def LSC(self) -> Plate_LinearScalarConstraint: ... class Plate_LinearScalarConstraint: @@ -143,9 +234,13 @@ class Plate_LinearScalarConstraint: @overload def __init__(self, thePPC1: Plate_PinpointConstraint, theCoeff: gp_XYZ) -> None: ... @overload - def __init__(self, thePPC: Plate_Array1OfPinpointConstraint, theCoeff: TColgp_Array1OfXYZ) -> None: ... + def __init__( + self, thePPC: Plate_Array1OfPinpointConstraint, theCoeff: TColgp_Array1OfXYZ + ) -> None: ... @overload - def __init__(self, thePPC: Plate_Array1OfPinpointConstraint, theCoeff: TColgp_Array2OfXYZ) -> None: ... + def __init__( + self, thePPC: Plate_Array1OfPinpointConstraint, theCoeff: TColgp_Array2OfXYZ + ) -> None: ... @overload def __init__(self, ColLen: int, RowLen: int) -> None: ... def Coeff(self) -> TColgp_Array2OfXYZ: ... @@ -157,9 +252,13 @@ class Plate_LinearXYZConstraint: @overload def __init__(self) -> None: ... @overload - def __init__(self, thePPC: Plate_Array1OfPinpointConstraint, theCoeff: TColStd_Array1OfReal) -> None: ... + def __init__( + self, thePPC: Plate_Array1OfPinpointConstraint, theCoeff: TColStd_Array1OfReal + ) -> None: ... @overload - def __init__(self, thePPC: Plate_Array1OfPinpointConstraint, theCoeff: TColStd_Array2OfReal) -> None: ... + def __init__( + self, thePPC: Plate_Array1OfPinpointConstraint, theCoeff: TColStd_Array2OfReal + ) -> None: ... @overload def __init__(self, ColLen: int, RowLen: int) -> None: ... def Coeff(self) -> TColStd_Array2OfReal: ... @@ -171,14 +270,22 @@ class Plate_PinpointConstraint: @overload def __init__(self) -> None: ... @overload - def __init__(self, point2d: gp_XY, ImposedValue: gp_XYZ, iu: Optional[int] = 0, iv: Optional[int] = 0) -> None: ... + def __init__( + self, + point2d: gp_XY, + ImposedValue: gp_XYZ, + iu: Optional[int] = 0, + iv: Optional[int] = 0, + ) -> None: ... def Idu(self) -> int: ... def Idv(self) -> int: ... def Pnt2d(self) -> gp_XY: ... def Value(self) -> gp_XYZ: ... class Plate_PlaneConstraint: - def __init__(self, point2d: gp_XY, pln: gp_Pln, iu: Optional[int] = 0, iv: Optional[int] = 0) -> None: ... + def __init__( + self, point2d: gp_XY, pln: gp_Pln, iu: Optional[int] = 0, iv: Optional[int] = 0 + ) -> None: ... def LSC(self) -> Plate_LinearScalarConstraint: ... class Plate_Plate: @@ -212,7 +319,12 @@ class Plate_Plate: @overload def Load(self, FGtoCConst: Plate_FreeGtoCConstraint) -> None: ... def SetPolynomialPartOnly(self, PPOnly: Optional[bool] = True) -> None: ... - def SolveTI(self, ord: Optional[int] = 4, anisotropie: Optional[float] = 1.0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def SolveTI( + self, + ord: Optional[int] = 4, + anisotropie: Optional[float] = 1.0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def UVBox(self) -> Tuple[float, float, float, float]: ... def UVConstraints(self, Seq: TColgp_SequenceOfXY) -> None: ... def destroy(self) -> None: ... @@ -223,10 +335,11 @@ class Plate_SampledCurveConstraint: # harray1 classes -class Plate_HArray1OfPinpointConstraint(Plate_Array1OfPinpointConstraint, Standard_Transient): +class Plate_HArray1OfPinpointConstraint( + Plate_Array1OfPinpointConstraint, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Plate_Array1OfPinpointConstraint: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Plugin.pyi b/src/SWIG_files/wrapper/Plugin.pyi index 781865c4f..427af11a9 100644 --- a/src/SWIG_files/wrapper/Plugin.pyi +++ b/src/SWIG_files/wrapper/Plugin.pyi @@ -4,11 +4,9 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - -#classnotwrapped +# classnotwrapped class Plugin: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Poly.i b/src/SWIG_files/wrapper/Poly.i index 251af29a6..00721cc19 100644 --- a/src/SWIG_files/wrapper/Poly.i +++ b/src/SWIG_files/wrapper/Poly.i @@ -134,6 +134,12 @@ Array1OfTriaNumpyTemplate(Poly_Array1OfTriangle, Poly_Triangle) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = Poly_ListIteratorOfListOfTriangulation(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/Poly.pyi b/src/SWIG_files/wrapper/Poly.pyi index 697185efe..1b7c4838f 100644 --- a/src/SWIG_files/wrapper/Poly.pyi +++ b/src/SWIG_files/wrapper/Poly.pyi @@ -15,7 +15,9 @@ Poly_BaseIteratorOfCoherentLink = NewType("Poly_BaseIteratorOfCoherentLink", Any # the following typedef cannot be wrapped as is Poly_BaseIteratorOfCoherentNode = NewType("Poly_BaseIteratorOfCoherentNode", Any) # the following typedef cannot be wrapped as is -Poly_BaseIteratorOfCoherentTriangle = NewType("Poly_BaseIteratorOfCoherentTriangle", Any) +Poly_BaseIteratorOfCoherentTriangle = NewType( + "Poly_BaseIteratorOfCoherentTriangle", Any +) Poly_MeshPurpose = NewType("Poly_MeshPurpose", int) class Poly_Array1OfTriangle: @@ -43,19 +45,18 @@ class Poly_Array1OfTriangle: def SetValue(self, theIndex: int, theValue: Poly_Triangle) -> None: ... class Poly_ListOfTriangulation: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: Poly_ListOfTriangulation) -> Poly_ListOfTriangulation: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class poly: @staticmethod @@ -72,11 +73,20 @@ class poly: @staticmethod def Dump(P: Poly_Polygon2D) -> str: ... @staticmethod - def Intersect(theTri: Poly_Triangulation, theAxis: gp_Ax1, theIsClosest: bool, theTriangle: Poly_Triangle) -> Tuple[bool, float]: ... + def Intersect( + theTri: Poly_Triangulation, + theAxis: gp_Ax1, + theIsClosest: bool, + theTriangle: Poly_Triangle, + ) -> Tuple[bool, float]: ... @staticmethod - def IntersectTriLine(theStart: gp_XYZ, theDir: gp_Dir, theV0: gp_XYZ, theV1: gp_XYZ, theV2: gp_XYZ) -> Tuple[int, float]: ... + def IntersectTriLine( + theStart: gp_XYZ, theDir: gp_Dir, theV0: gp_XYZ, theV1: gp_XYZ, theV2: gp_XYZ + ) -> Tuple[int, float]: ... @staticmethod - def PointOnTriangle(P1: gp_XY, P2: gp_XY, P3: gp_XY, P: gp_XY, UV: gp_XY) -> float: ... + def PointOnTriangle( + P1: gp_XY, P2: gp_XY, P3: gp_XY, P: gp_XY, UV: gp_XY + ) -> float: ... @staticmethod def ReadPolygon2D(IS: str) -> Poly_Polygon2D: ... @staticmethod @@ -93,7 +103,7 @@ class poly: @staticmethod def Write(P: Poly_Polygon2D, Compact: Optional[bool] = True) -> str: ... -class Poly_ArrayOfNodes(): +class Poly_ArrayOfNodes: @overload def __init__(self) -> None: ... @overload @@ -113,7 +123,7 @@ class Poly_ArrayOfNodes(): def SetValue(self, theIndex: int, theValue: gp_Pnt) -> None: ... def Value(self, theIndex: int) -> gp_Pnt: ... -class Poly_ArrayOfUVNodes(): +class Poly_ArrayOfUVNodes: @overload def __init__(self) -> None: ... @overload @@ -152,7 +162,9 @@ class Poly_CoherentNode(gp_XYZ): def __init__(self) -> None: ... @overload def __init__(self, thePnt: gp_XYZ) -> None: ... - def AddTriangle(self, theTri: Poly_CoherentTriangle, theA: NCollection_BaseAllocator) -> None: ... + def AddTriangle( + self, theTri: Poly_CoherentTriangle, theA: NCollection_BaseAllocator + ) -> None: ... def Dump(self) -> str: ... def GetIndex(self) -> int: ... def GetNormal(self) -> gp_XYZ: ... @@ -160,7 +172,9 @@ class Poly_CoherentNode(gp_XYZ): def GetV(self) -> float: ... def HasNormal(self) -> bool: ... def IsFreeNode(self) -> bool: ... - def RemoveTriangle(self, theTri: Poly_CoherentTriangle, theA: NCollection_BaseAllocator) -> bool: ... + def RemoveTriangle( + self, theTri: Poly_CoherentTriangle, theA: NCollection_BaseAllocator + ) -> bool: ... def SetIndex(self, theIndex: int) -> None: ... def SetNormal(self, theVector: gp_XYZ) -> None: ... def SetUV(self, theU: float, theV: float) -> None: ... @@ -190,17 +204,29 @@ class Poly_CoherentTriangulation(Standard_Transient): @overload def __init__(self, theAlloc: Optional[NCollection_BaseAllocator] = 0) -> None: ... @overload - def __init__(self, theTriangulation: Poly_Triangulation, theAlloc: Optional[NCollection_BaseAllocator] = 0) -> None: ... - def AddLink(self, theTri: Poly_CoherentTriangle, theConn: int) -> Poly_CoherentLink: ... - def AddTriangle(self, iNode0: int, iNode1: int, iNode2: int) -> Poly_CoherentTriangle: ... + def __init__( + self, + theTriangulation: Poly_Triangulation, + theAlloc: Optional[NCollection_BaseAllocator] = 0, + ) -> None: ... + def AddLink( + self, theTri: Poly_CoherentTriangle, theConn: int + ) -> Poly_CoherentLink: ... + def AddTriangle( + self, iNode0: int, iNode1: int, iNode2: int + ) -> Poly_CoherentTriangle: ... def Allocator(self) -> NCollection_BaseAllocator: ... def ChangeNode(self, i: int) -> Poly_CoherentNode: ... def ClearLinks(self) -> None: ... - def Clone(self, theAlloc: NCollection_BaseAllocator) -> Poly_CoherentTriangulation: ... + def Clone( + self, theAlloc: NCollection_BaseAllocator + ) -> Poly_CoherentTriangulation: ... def ComputeLinks(self) -> int: ... def Deflection(self) -> float: ... def Dump(self) -> str: ... - def FindTriangle(self, theLink: Poly_CoherentLink, pTri_list: List[Poly_CoherentTriangle]) -> bool: ... + def FindTriangle( + self, theLink: Poly_CoherentLink, pTri_list: List[Poly_CoherentTriangle] + ) -> bool: ... def GetTriangulation(self) -> Poly_Triangulation: ... def MaxNode(self) -> int: ... def MaxTriangle(self) -> int: ... @@ -210,7 +236,9 @@ class Poly_CoherentTriangulation(Standard_Transient): def Node(self, i: int) -> Poly_CoherentNode: ... def RemoveLink(self, theLink: Poly_CoherentLink) -> None: ... def RemoveTriangle(self, theTr: Poly_CoherentTriangle) -> bool: ... - def ReplaceNodes(self, theTriangle: Poly_CoherentTriangle, iNode0: int, iNode1: int, iNode2: int) -> bool: ... + def ReplaceNodes( + self, theTriangle: Poly_CoherentTriangle, iNode0: int, iNode1: int, iNode2: int + ) -> bool: ... def SetDeflection(self, theDefl: float) -> None: ... def SetNode(self, thePnt: gp_XYZ, iN: Optional[int] = -1) -> int: ... def Triangle(self, i: int) -> Poly_CoherentTriangle: ... @@ -231,17 +259,34 @@ class Poly_Connect: def Value(self) -> int: ... class Poly_MergeNodesTool(Standard_Transient): - def __init__(self, theSmoothAngle: float, theMergeTolerance: Optional[float] = 0.0, theNbFacets: Optional[int] = -1) -> None: ... + def __init__( + self, + theSmoothAngle: float, + theMergeTolerance: Optional[float] = 0.0, + theNbFacets: Optional[int] = -1, + ) -> None: ... def AddElement(self, theElemNodes: gp_XYZ, theNbNodes: int) -> None: ... def AddQuad(self, theElemNodes_list: List[gp_XYZ]) -> None: ... def AddTriangle(self, theElemNodes_list: List[gp_XYZ]) -> None: ... - def AddTriangulation(self, theTris: Poly_Triangulation, theTrsf: Optional[gp_Trsf] = gp_Trsf(), theToReverse: Optional[bool] = false) -> None: ... + def AddTriangulation( + self, + theTris: Poly_Triangulation, + theTrsf: Optional[gp_Trsf] = gp_Trsf(), + theToReverse: Optional[bool] = false, + ) -> None: ... def ChangeElementNode(self, theIndex: int) -> gp_XYZ: ... def ChangeOutput(self) -> Poly_Triangulation: ... def ElementNodeIndex(self, theIndex: int) -> int: ... def MergeAngle(self) -> float: ... @staticmethod - def MergeNodes(theTris: Poly_Triangulation, theTrsf: gp_Trsf, theToReverse: bool, theSmoothAngle: float, theMergeTolerance: Optional[float] = 0.0, theToForce: Optional[bool] = true) -> Poly_Triangulation: ... + def MergeNodes( + theTris: Poly_Triangulation, + theTrsf: gp_Trsf, + theToReverse: bool, + theSmoothAngle: float, + theMergeTolerance: Optional[float] = 0.0, + theToForce: Optional[bool] = true, + ) -> Poly_Triangulation: ... def MergeTolerance(self) -> float: ... def NbDegenerativeElems(self) -> int: ... def NbElements(self) -> int: ... @@ -272,7 +317,7 @@ class Poly_Polygon2D(Standard_Transient): def Deflection(self) -> float: ... @overload def Deflection(self, theDefl: float) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def NbNodes(self) -> int: ... def Nodes(self) -> TColgp_Array1OfPnt2d: ... @@ -282,7 +327,9 @@ class Poly_Polygon3D(Standard_Transient): @overload def __init__(self, Nodes: TColgp_Array1OfPnt) -> None: ... @overload - def __init__(self, Nodes: TColgp_Array1OfPnt, Parameters: TColStd_Array1OfReal) -> None: ... + def __init__( + self, Nodes: TColgp_Array1OfPnt, Parameters: TColStd_Array1OfReal + ) -> None: ... def ChangeNodes(self) -> TColgp_Array1OfPnt: ... def ChangeParameters(self) -> TColStd_Array1OfReal: ... def Copy(self) -> Poly_Polygon3D: ... @@ -290,7 +337,7 @@ class Poly_Polygon3D(Standard_Transient): def Deflection(self) -> float: ... @overload def Deflection(self, theDefl: float) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def HasParameters(self) -> bool: ... def NbNodes(self) -> int: ... def Nodes(self) -> TColgp_Array1OfPnt: ... @@ -302,7 +349,9 @@ class Poly_PolygonOnTriangulation(Standard_Transient): @overload def __init__(self, Nodes: TColStd_Array1OfInteger) -> None: ... @overload - def __init__(self, Nodes: TColStd_Array1OfInteger, Parameters: TColStd_Array1OfReal) -> None: ... + def __init__( + self, Nodes: TColStd_Array1OfInteger, Parameters: TColStd_Array1OfReal + ) -> None: ... def ChangeNodes(self) -> TColStd_Array1OfInteger: ... def ChangeParameters(self) -> TColStd_Array1OfReal: ... def Copy(self) -> Poly_PolygonOnTriangulation: ... @@ -310,7 +359,7 @@ class Poly_PolygonOnTriangulation(Standard_Transient): def Deflection(self) -> float: ... @overload def Deflection(self, theDefl: float) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def HasParameters(self) -> bool: ... def NbNodes(self) -> int: ... def Node(self, theIndex: int) -> int: ... @@ -339,11 +388,24 @@ class Poly_Triangulation(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, theNbNodes: int, theNbTriangles: int, theHasUVNodes: bool, theHasNormals: Optional[bool] = false) -> None: ... - @overload - def __init__(self, Nodes: TColgp_Array1OfPnt, Triangles: Poly_Array1OfTriangle) -> None: ... - @overload - def __init__(self, Nodes: TColgp_Array1OfPnt, UVNodes: TColgp_Array1OfPnt2d, Triangles: Poly_Array1OfTriangle) -> None: ... + def __init__( + self, + theNbNodes: int, + theNbTriangles: int, + theHasUVNodes: bool, + theHasNormals: Optional[bool] = false, + ) -> None: ... + @overload + def __init__( + self, Nodes: TColgp_Array1OfPnt, Triangles: Poly_Array1OfTriangle + ) -> None: ... + @overload + def __init__( + self, + Nodes: TColgp_Array1OfPnt, + UVNodes: TColgp_Array1OfPnt2d, + Triangles: Poly_Array1OfTriangle, + ) -> None: ... @overload def __init__(self, theTriangulation: Poly_Triangulation) -> None: ... def AddNormals(self) -> None: ... @@ -358,8 +420,10 @@ class Poly_Triangulation(Standard_Transient): def Deflection(self) -> float: ... @overload def Deflection(self, theDeflection: float) -> None: ... - def DetachedLoadDeferredData(self, theFileSystem: Optional[OSD_FileSystem] = OSD_FileSystem()) -> Poly_Triangulation: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DetachedLoadDeferredData( + self, theFileSystem: Optional[OSD_FileSystem] = OSD_FileSystem() + ) -> Poly_Triangulation: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def HasCachedMinMax(self) -> bool: ... def HasDeferredData(self) -> bool: ... def HasGeometry(self) -> bool: ... @@ -370,13 +434,17 @@ class Poly_Triangulation(Standard_Transient): def InternalTriangles(self) -> Poly_Array1OfTriangle: ... def InternalUVNodes(self) -> Poly_ArrayOfUVNodes: ... def IsDoublePrecision(self) -> bool: ... - def LoadDeferredData(self, theFileSystem: Optional[OSD_FileSystem] = OSD_FileSystem()) -> bool: ... + def LoadDeferredData( + self, theFileSystem: Optional[OSD_FileSystem] = OSD_FileSystem() + ) -> bool: ... def MapNodeArray(self) -> TColgp_HArray1OfPnt: ... def MapNormalArray(self) -> TShort_HArray1OfShortReal: ... def MapTriangleArray(self) -> Poly_HArray1OfTriangle: ... def MapUVNodeArray(self) -> TColgp_HArray1OfPnt2d: ... def MeshPurpose(self) -> Poly_MeshPurpose: ... - def MinMax(self, theBox: Bnd_Box, theTrsf: gp_Trsf, theIsAccurate: Optional[bool] = false) -> bool: ... + def MinMax( + self, theBox: Bnd_Box, theTrsf: gp_Trsf, theIsAccurate: Optional[bool] = false + ) -> bool: ... def NbDeferredNodes(self) -> int: ... def NbDeferredTriangles(self) -> int: ... def NbNodes(self) -> int: ... @@ -412,7 +480,12 @@ class Poly_Triangulation(Standard_Transient): def UpdateCachedMinMax(self) -> None: ... class Poly_TriangulationParameters(Standard_Transient): - def __init__(self, theDeflection: Optional[float] = -1, theAngle: Optional[float] = -1, theMinSize: Optional[float] = -1) -> None: ... + def __init__( + self, + theDeflection: Optional[float] = -1, + theAngle: Optional[float] = -1, + theMinSize: Optional[float] = -1, + ) -> None: ... def Angle(self) -> float: ... def Deflection(self) -> float: ... def HasAngle(self) -> bool: ... @@ -420,16 +493,16 @@ class Poly_TriangulationParameters(Standard_Transient): def HasMinSize(self) -> bool: ... def MinSize(self) -> float: ... -#classnotwrapped +# classnotwrapped class Poly_CoherentTriPtr: ... -#classnotwrapped +# classnotwrapped class Poly_MakeLoops: ... -#classnotwrapped +# classnotwrapped class Poly_MakeLoops3D: ... -#classnotwrapped +# classnotwrapped class Poly_MakeLoops2D: ... # harray1 classes @@ -440,4 +513,3 @@ class Poly_HArray1OfTriangle(Poly_Array1OfTriangle, Standard_Transient): # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Precision.pyi b/src/SWIG_files/wrapper/Precision.pyi index ad10aa36c..41d77d221 100644 --- a/src/SWIG_files/wrapper/Precision.pyi +++ b/src/SWIG_files/wrapper/Precision.pyi @@ -4,7 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class precision: @staticmethod def Angular() -> float: ... @@ -54,4 +53,3 @@ class precision: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ProjLib.pyi b/src/SWIG_files/wrapper/ProjLib.pyi index 95b9fb379..c73c01272 100644 --- a/src/SWIG_files/wrapper/ProjLib.pyi +++ b/src/SWIG_files/wrapper/ProjLib.pyi @@ -15,23 +15,31 @@ from OCC.Core.AppParCurves import * from OCC.Core.math import * from OCC.Core.GeomAdaptor import * -ProjLib_HCompProjectedCurve = NewType("ProjLib_HCompProjectedCurve", ProjLib_CompProjectedCurve) +ProjLib_HCompProjectedCurve = NewType( + "ProjLib_HCompProjectedCurve", ProjLib_CompProjectedCurve +) ProjLib_HProjectedCurve = NewType("ProjLib_HProjectedCurve", ProjLib_ProjectedCurve) class ProjLib_SequenceOfHSequenceOfPnt: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class projlib: @staticmethod @@ -91,11 +99,26 @@ class ProjLib_CompProjectedCurve(Adaptor2d_Curve2d): @overload def __init__(self) -> None: ... @overload - def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, TolU: float, TolV: float) -> None: ... - @overload - def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, TolU: float, TolV: float, MaxDist: float) -> None: ... - @overload - def __init__(self, Tol3d: float, S: Adaptor3d_Surface, C: Adaptor3d_Curve, MaxDist: Optional[float] = -1.0) -> None: ... + def __init__( + self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, TolU: float, TolV: float + ) -> None: ... + @overload + def __init__( + self, + S: Adaptor3d_Surface, + C: Adaptor3d_Curve, + TolU: float, + TolV: float, + MaxDist: float, + ) -> None: ... + @overload + def __init__( + self, + Tol3d: float, + S: Adaptor3d_Surface, + C: Adaptor3d_Curve, + MaxDist: Optional[float] = -1.0, + ) -> None: ... def Bounds(self, Index: int) -> Tuple[float, float]: ... def Continuity(self) -> GeomAbs_Shape: ... def D0(self, U: float, P: gp_Pnt2d) -> None: ... @@ -139,14 +162,18 @@ class ProjLib_CompProjectedCurve(Adaptor2d_Curve2d): def SetProj3d(self, theProj3d: bool) -> None: ... def SetTol3d(self, theTol3d: float) -> None: ... def ShallowCopy(self) -> Adaptor2d_Curve2d: ... - def Trim(self, FirstParam: float, LastParam: float, Tol: float) -> Adaptor2d_Curve2d: ... + def Trim( + self, FirstParam: float, LastParam: float, Tol: float + ) -> Adaptor2d_Curve2d: ... def Value(self, U: float) -> gp_Pnt2d: ... class ProjLib_ComputeApprox: @overload def __init__(self) -> None: ... @overload - def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, Tol: float) -> None: ... + def __init__( + self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, Tol: float + ) -> None: ... def BSpline(self) -> Geom2d_BSplineCurve: ... def Bezier(self) -> Geom2d_BezierCurve: ... def Perform(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface) -> None: ... @@ -160,20 +187,44 @@ class ProjLib_ComputeApproxOnPolarSurface: @overload def __init__(self) -> None: ... @overload - def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, Tol: Optional[float] = 1.0e-4) -> None: ... - @overload - def __init__(self, InitCurve2d: Adaptor2d_Curve2d, C: Adaptor3d_Curve, S: Adaptor3d_Surface, Tol: float) -> None: ... - @overload - def __init__(self, InitCurve2d: Adaptor2d_Curve2d, InitCurve2dBis: Adaptor2d_Curve2d, C: Adaptor3d_Curve, S: Adaptor3d_Surface, Tol: float) -> None: ... + def __init__( + self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, Tol: Optional[float] = 1.0e-4 + ) -> None: ... + @overload + def __init__( + self, + InitCurve2d: Adaptor2d_Curve2d, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + InitCurve2d: Adaptor2d_Curve2d, + InitCurve2dBis: Adaptor2d_Curve2d, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + Tol: float, + ) -> None: ... def BSpline(self) -> Geom2d_BSplineCurve: ... - def BuildInitialCurve2d(self, Curve: Adaptor3d_Curve, S: Adaptor3d_Surface) -> Adaptor2d_Curve2d: ... + def BuildInitialCurve2d( + self, Curve: Adaptor3d_Curve, S: Adaptor3d_Surface + ) -> Adaptor2d_Curve2d: ... def Curve2d(self) -> Geom2d_Curve: ... def IsDone(self) -> bool: ... @overload def Perform(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface) -> None: ... @overload - def Perform(self, InitCurve2d: Adaptor2d_Curve2d, C: Adaptor3d_Curve, S: Adaptor3d_Surface) -> Geom2d_BSplineCurve: ... - def ProjectUsingInitialCurve2d(self, Curve: Adaptor3d_Curve, S: Adaptor3d_Surface, InitCurve2d: Adaptor2d_Curve2d) -> Geom2d_BSplineCurve: ... + def Perform( + self, InitCurve2d: Adaptor2d_Curve2d, C: Adaptor3d_Curve, S: Adaptor3d_Surface + ) -> Geom2d_BSplineCurve: ... + def ProjectUsingInitialCurve2d( + self, + Curve: Adaptor3d_Curve, + S: Adaptor3d_Surface, + InitCurve2d: Adaptor2d_Curve2d, + ) -> Geom2d_BSplineCurve: ... def SetBndPnt(self, theBndPnt: AppParCurves_Constraint) -> None: ... def SetDegree(self, theDegMin: int, theDegMax: int) -> None: ... def SetMaxDist(self, theMaxDist: float) -> None: ... @@ -182,7 +233,9 @@ class ProjLib_ComputeApproxOnPolarSurface: def Tolerance(self) -> float: ... class ProjLib_PrjFunc(math_FunctionSetWithDerivatives): - def __init__(self, C: Adaptor3d_Curve, FixVal: float, S: Adaptor3d_Surface, Fix: int) -> None: ... + def __init__( + self, C: Adaptor3d_Curve, FixVal: float, S: Adaptor3d_Surface, Fix: int + ) -> None: ... def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... def NbEquations(self) -> int: ... def NbVariables(self) -> int: ... @@ -193,7 +246,17 @@ class ProjLib_PrjFunc(math_FunctionSetWithDerivatives): class ProjLib_PrjResolve: def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, Fix: int) -> None: ... def IsDone(self) -> bool: ... - def Perform(self, t: float, U: float, V: float, Tol: gp_Pnt2d, Inf: gp_Pnt2d, Sup: gp_Pnt2d, FTol: Optional[float] = -1, StrictInside: Optional[bool] = False) -> None: ... + def Perform( + self, + t: float, + U: float, + V: float, + Tol: gp_Pnt2d, + Inf: gp_Pnt2d, + Sup: gp_Pnt2d, + FTol: Optional[float] = -1, + StrictInside: Optional[bool] = False, + ) -> None: ... def Solution(self) -> gp_Pnt2d: ... class ProjLib_ProjectOnPlane(Adaptor3d_Curve): @@ -227,7 +290,12 @@ class ProjLib_ProjectOnPlane(Adaptor3d_Curve): def IsRational(self) -> bool: ... def LastParameter(self) -> float: ... def Line(self) -> gp_Lin: ... - def Load(self, C: Adaptor3d_Curve, Tolerance: float, KeepParametrization: Optional[bool] = True) -> None: ... + def Load( + self, + C: Adaptor3d_Curve, + Tolerance: float, + KeepParametrization: Optional[bool] = True, + ) -> None: ... def NbIntervals(self, S: GeomAbs_Shape) -> int: ... def NbKnots(self) -> int: ... def NbPoles(self) -> int: ... @@ -254,7 +322,9 @@ class ProjLib_ProjectedCurve(Adaptor2d_Curve2d): @overload def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... @overload - def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, Tol: float) -> None: ... + def __init__( + self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, Tol: float + ) -> None: ... def BSpline(self) -> Geom2d_BSplineCurve: ... def Bezier(self) -> Geom2d_BezierCurve: ... def Circle(self) -> gp_Circ2d: ... @@ -262,7 +332,9 @@ class ProjLib_ProjectedCurve(Adaptor2d_Curve2d): def D0(self, U: float, P: gp_Pnt2d) -> None: ... def D1(self, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... - def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... def DN(self, U: float, N: int) -> gp_Vec2d: ... def Degree(self) -> int: ... def Ellipse(self) -> gp_Elips2d: ... @@ -320,8 +392,12 @@ class ProjLib_Projector: def SetBezier(self, C: Geom2d_BezierCurve) -> None: ... def SetPeriodic(self) -> None: ... def SetType(self, Type: GeomAbs_CurveType) -> None: ... - def UFrame(self, CFirst: float, CLast: float, UFirst: float, Period: float) -> None: ... - def VFrame(self, CFirst: float, CLast: float, VFirst: float, Period: float) -> None: ... + def UFrame( + self, CFirst: float, CLast: float, UFirst: float, Period: float + ) -> None: ... + def VFrame( + self, CFirst: float, CLast: float, VFirst: float, Period: float + ) -> None: ... class ProjLib_Cone(ProjLib_Projector): @overload @@ -437,12 +513,12 @@ class ProjLib_Torus(ProjLib_Projector): # harray2 classes # hsequence classes -class ProjLib_HSequenceOfHSequenceOfPnt(ProjLib_SequenceOfHSequenceOfPnt, Standard_Transient): +class ProjLib_HSequenceOfHSequenceOfPnt( + ProjLib_SequenceOfHSequenceOfPnt, Standard_Transient +): @overload def __init__(self) -> None: ... @overload def __init__(self, other: ProjLib_SequenceOfHSequenceOfPnt) -> None: ... def Sequence(self) -> ProjLib_SequenceOfHSequenceOfPnt: ... def Append(self, theSequence: ProjLib_SequenceOfHSequenceOfPnt) -> None: ... - - diff --git a/src/SWIG_files/wrapper/Prs3d.i b/src/SWIG_files/wrapper/Prs3d.i index 27adcc1b3..9f570ba49 100644 --- a/src/SWIG_files/wrapper/Prs3d.i +++ b/src/SWIG_files/wrapper/Prs3d.i @@ -429,6 +429,12 @@ Prs3d_VDM_Inherited = Prs3d_VertexDrawMode.Prs3d_VDM_Inherited %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = Prs3d_ListIteratorOfNListOfSequenceOfPnt(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/Prs3d.pyi b/src/SWIG_files/wrapper/Prs3d.pyi index 958bbb274..d528267f8 100644 --- a/src/SWIG_files/wrapper/Prs3d.pyi +++ b/src/SWIG_files/wrapper/Prs3d.pyi @@ -15,22 +15,26 @@ from OCC.Core.Quantity import * from OCC.Core.TColStd import * # the following typedef cannot be wrapped as is -Prs3d_NListIteratorOfListOfSequenceOfPnt = NewType("Prs3d_NListIteratorOfListOfSequenceOfPnt", Any) +Prs3d_NListIteratorOfListOfSequenceOfPnt = NewType( + "Prs3d_NListIteratorOfListOfSequenceOfPnt", Any +) Prs3d_Presentation = NewType("Prs3d_Presentation", Graphic3d_Structure) class Prs3d_NListOfSequenceOfPnt: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: Prs3d_NListOfSequenceOfPnt + ) -> Prs3d_NListOfSequenceOfPnt: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class Prs3d_DatumAttribute(IntEnum): Prs3d_DatumAttribute_XAxisLength: int = ... @@ -53,21 +57,38 @@ class Prs3d_DatumAttribute(IntEnum): Prs3d_DatumAttribute_XAxisLength = Prs3d_DatumAttribute.Prs3d_DatumAttribute_XAxisLength Prs3d_DatumAttribute_YAxisLength = Prs3d_DatumAttribute.Prs3d_DatumAttribute_YAxisLength Prs3d_DatumAttribute_ZAxisLength = Prs3d_DatumAttribute.Prs3d_DatumAttribute_ZAxisLength -Prs3d_DatumAttribute_ShadingTubeRadiusPercent = Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingTubeRadiusPercent -Prs3d_DatumAttribute_ShadingConeRadiusPercent = Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingConeRadiusPercent -Prs3d_DatumAttribute_ShadingConeLengthPercent = Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingConeLengthPercent -Prs3d_DatumAttribute_ShadingOriginRadiusPercent = Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingOriginRadiusPercent -Prs3d_DatumAttribute_ShadingNumberOfFacettes = Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingNumberOfFacettes +Prs3d_DatumAttribute_ShadingTubeRadiusPercent = ( + Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingTubeRadiusPercent +) +Prs3d_DatumAttribute_ShadingConeRadiusPercent = ( + Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingConeRadiusPercent +) +Prs3d_DatumAttribute_ShadingConeLengthPercent = ( + Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingConeLengthPercent +) +Prs3d_DatumAttribute_ShadingOriginRadiusPercent = ( + Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingOriginRadiusPercent +) +Prs3d_DatumAttribute_ShadingNumberOfFacettes = ( + Prs3d_DatumAttribute.Prs3d_DatumAttribute_ShadingNumberOfFacettes +) Prs3d_DA_XAxisLength = Prs3d_DatumAttribute.Prs3d_DA_XAxisLength Prs3d_DA_YAxisLength = Prs3d_DatumAttribute.Prs3d_DA_YAxisLength Prs3d_DA_ZAxisLength = Prs3d_DatumAttribute.Prs3d_DA_ZAxisLength -Prs3d_DP_ShadingTubeRadiusPercent = Prs3d_DatumAttribute.Prs3d_DP_ShadingTubeRadiusPercent -Prs3d_DP_ShadingConeRadiusPercent = Prs3d_DatumAttribute.Prs3d_DP_ShadingConeRadiusPercent -Prs3d_DP_ShadingConeLengthPercent = Prs3d_DatumAttribute.Prs3d_DP_ShadingConeLengthPercent -Prs3d_DP_ShadingOriginRadiusPercent = Prs3d_DatumAttribute.Prs3d_DP_ShadingOriginRadiusPercent +Prs3d_DP_ShadingTubeRadiusPercent = ( + Prs3d_DatumAttribute.Prs3d_DP_ShadingTubeRadiusPercent +) +Prs3d_DP_ShadingConeRadiusPercent = ( + Prs3d_DatumAttribute.Prs3d_DP_ShadingConeRadiusPercent +) +Prs3d_DP_ShadingConeLengthPercent = ( + Prs3d_DatumAttribute.Prs3d_DP_ShadingConeLengthPercent +) +Prs3d_DP_ShadingOriginRadiusPercent = ( + Prs3d_DatumAttribute.Prs3d_DP_ShadingOriginRadiusPercent +) Prs3d_DP_ShadingNumberOfFacettes = Prs3d_DatumAttribute.Prs3d_DP_ShadingNumberOfFacettes - class Prs3d_DatumAxes(IntEnum): Prs3d_DatumAxes_XAxis: int = ... Prs3d_DatumAxes_YAxis: int = ... @@ -153,7 +174,6 @@ Prs3d_DP_YOZAxis = Prs3d_DatumParts.Prs3d_DP_YOZAxis Prs3d_DP_XOZAxis = Prs3d_DatumParts.Prs3d_DP_XOZAxis Prs3d_DP_None = Prs3d_DatumParts.Prs3d_DP_None - class Prs3d_DimensionArrowOrientation(IntEnum): Prs3d_DAO_Internal: int = ... Prs3d_DAO_External: int = ... @@ -204,9 +224,15 @@ class Prs3d_TypeOfHighlight(IntEnum): Prs3d_TypeOfHighlight_None = Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_None Prs3d_TypeOfHighlight_Selected = Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_Selected Prs3d_TypeOfHighlight_Dynamic = Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_Dynamic -Prs3d_TypeOfHighlight_LocalSelected = Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_LocalSelected -Prs3d_TypeOfHighlight_LocalDynamic = Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_LocalDynamic -Prs3d_TypeOfHighlight_SubIntensity = Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_SubIntensity +Prs3d_TypeOfHighlight_LocalSelected = ( + Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_LocalSelected +) +Prs3d_TypeOfHighlight_LocalDynamic = ( + Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_LocalDynamic +) +Prs3d_TypeOfHighlight_SubIntensity = ( + Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_SubIntensity +) Prs3d_TypeOfHighlight_NB = Prs3d_TypeOfHighlight.Prs3d_TypeOfHighlight_NB class Prs3d_TypeOfLinePicking(IntEnum): @@ -227,27 +253,66 @@ Prs3d_VDM_Inherited = Prs3d_VertexDrawMode.Prs3d_VDM_Inherited class prs3d: @staticmethod - def AddFreeEdges(theSegments: TColgp_SequenceOfPnt, thePolyTri: Poly_Triangulation, theLocation: gp_Trsf) -> None: ... + def AddFreeEdges( + theSegments: TColgp_SequenceOfPnt, + thePolyTri: Poly_Triangulation, + theLocation: gp_Trsf, + ) -> None: ... @staticmethod - def AddPrimitivesGroup(thePrs: Prs3d_Presentation, theAspect: Prs3d_LineAspect, thePolylines: Prs3d_NListOfSequenceOfPnt) -> None: ... + def AddPrimitivesGroup( + thePrs: Prs3d_Presentation, + theAspect: Prs3d_LineAspect, + thePolylines: Prs3d_NListOfSequenceOfPnt, + ) -> None: ... @overload @staticmethod - def GetDeflection(theBndMin: Graphic3d_Vec3d, theBndMax: Graphic3d_Vec3d, theDeviationCoefficient: float) -> float: ... + def GetDeflection( + theBndMin: Graphic3d_Vec3d, + theBndMax: Graphic3d_Vec3d, + theDeviationCoefficient: float, + ) -> float: ... @overload @staticmethod - def GetDeflection(theBndBox: Bnd_Box, theDeviationCoefficient: float, theMaximalChordialDeviation: float) -> float: ... + def GetDeflection( + theBndBox: Bnd_Box, + theDeviationCoefficient: float, + theMaximalChordialDeviation: float, + ) -> float: ... @staticmethod - def MatchSegment(X: float, Y: float, Z: float, aDistance: float, p1: gp_Pnt, p2: gp_Pnt) -> Tuple[bool, float]: ... + def MatchSegment( + X: float, Y: float, Z: float, aDistance: float, p1: gp_Pnt, p2: gp_Pnt + ) -> Tuple[bool, float]: ... @staticmethod - def PrimitivesFromPolylines(thePoints: Prs3d_NListOfSequenceOfPnt) -> Graphic3d_ArrayOfPrimitives: ... + def PrimitivesFromPolylines( + thePoints: Prs3d_NListOfSequenceOfPnt, + ) -> Graphic3d_ArrayOfPrimitives: ... class Prs3d_Arrow: @staticmethod - def Draw(theGroup: Graphic3d_Group, theLocation: gp_Pnt, theDirection: gp_Dir, theAngle: float, theLength: float) -> None: ... + def Draw( + theGroup: Graphic3d_Group, + theLocation: gp_Pnt, + theDirection: gp_Dir, + theAngle: float, + theLength: float, + ) -> None: ... @staticmethod - def DrawSegments(theLocation: gp_Pnt, theDir: gp_Dir, theAngle: float, theLength: float, theNbSegments: int) -> Graphic3d_ArrayOfSegments: ... + def DrawSegments( + theLocation: gp_Pnt, + theDir: gp_Dir, + theAngle: float, + theLength: float, + theNbSegments: int, + ) -> Graphic3d_ArrayOfSegments: ... @staticmethod - def DrawShaded(theAxis: gp_Ax1, theTubeRadius: float, theAxisLength: float, theConeRadius: float, theConeLength: float, theNbFacettes: int) -> Graphic3d_ArrayOfTriangles: ... + def DrawShaded( + theAxis: gp_Ax1, + theTubeRadius: float, + theAxisLength: float, + theConeRadius: float, + theConeLength: float, + theNbFacettes: int, + ) -> Graphic3d_ArrayOfTriangles: ... class Prs3d_BasicAspect(Standard_Transient): pass @@ -277,7 +342,7 @@ class Prs3d_Drawer(Graphic3d_PresentationAttributes): def DisableDrawHiddenLine(self) -> None: ... def Discretisation(self) -> int: ... def DrawHiddenLine(self) -> bool: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EnableDrawHiddenLine(self) -> None: ... def FaceBoundaryAspect(self) -> Prs3d_LineAspect: ... def FaceBoundaryDraw(self) -> bool: ... @@ -365,7 +430,9 @@ class Prs3d_Drawer(Graphic3d_PresentationAttributes): def SetDiscretisation(self, theValue: int) -> None: ... def SetFaceBoundaryAspect(self, theAspect: Prs3d_LineAspect) -> None: ... def SetFaceBoundaryDraw(self, theIsEnabled: bool) -> None: ... - def SetFaceBoundaryUpperContinuity(self, theMostAllowedEdgeClass: GeomAbs_Shape) -> None: ... + def SetFaceBoundaryUpperContinuity( + self, theMostAllowedEdgeClass: GeomAbs_Shape + ) -> None: ... def SetFreeBoundaryAspect(self, theAspect: Prs3d_LineAspect) -> None: ... def SetFreeBoundaryDraw(self, theIsEnabled: bool) -> None: ... @overload @@ -380,17 +447,32 @@ class Prs3d_Drawer(Graphic3d_PresentationAttributes): def SetLink(self, theDrawer: Prs3d_Drawer) -> None: ... def SetMaximalChordialDeviation(self, theChordialDeviation: float) -> None: ... def SetMaximalParameterValue(self, theValue: float) -> None: ... - def SetOwnDatumAspects(self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer()) -> bool: ... - def SetOwnLineAspects(self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer()) -> bool: ... + def SetOwnDatumAspects( + self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer() + ) -> bool: ... + def SetOwnLineAspects( + self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer() + ) -> bool: ... def SetPlaneAspect(self, theAspect: Prs3d_PlaneAspect) -> None: ... def SetPointAspect(self, theAspect: Prs3d_PointAspect) -> None: ... def SetSectionAspect(self, theAspect: Prs3d_LineAspect) -> None: ... def SetSeenLineAspect(self, theAspect: Prs3d_LineAspect) -> None: ... - def SetShaderProgram(self, theProgram: Graphic3d_ShaderProgram, theAspect: Graphic3d_GroupAspect, theToOverrideDefaults: Optional[bool] = false) -> bool: ... + def SetShaderProgram( + self, + theProgram: Graphic3d_ShaderProgram, + theAspect: Graphic3d_GroupAspect, + theToOverrideDefaults: Optional[bool] = false, + ) -> bool: ... def SetShadingAspect(self, theAspect: Prs3d_ShadingAspect) -> None: ... - def SetShadingModel(self, theModel: Graphic3d_TypeOfShadingModel, theToOverrideDefaults: Optional[bool] = false) -> bool: ... + def SetShadingModel( + self, + theModel: Graphic3d_TypeOfShadingModel, + theToOverrideDefaults: Optional[bool] = false, + ) -> bool: ... def SetTextAspect(self, theAspect: Prs3d_TextAspect) -> None: ... - def SetTypeOfDeflection(self, theTypeOfDeflection: Aspect_TypeOfDeflection) -> None: ... + def SetTypeOfDeflection( + self, theTypeOfDeflection: Aspect_TypeOfDeflection + ) -> None: ... def SetTypeOfHLR(self, theTypeOfHLR: Prs3d_TypeOfHLR) -> None: ... def SetUIsoAspect(self, theAspect: Prs3d_IsoAspect) -> None: ... def SetUnFreeBoundaryAspect(self, theAspect: Prs3d_LineAspect) -> None: ... @@ -401,9 +483,15 @@ class Prs3d_Drawer(Graphic3d_PresentationAttributes): def SetWireAspect(self, theAspect: Prs3d_LineAspect) -> None: ... def SetWireDraw(self, theIsEnabled: bool) -> None: ... def SetupOwnDefaults(self) -> None: ... - def SetupOwnFaceBoundaryAspect(self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer()) -> bool: ... - def SetupOwnPointAspect(self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer()) -> bool: ... - def SetupOwnShadingAspect(self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer()) -> bool: ... + def SetupOwnFaceBoundaryAspect( + self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer() + ) -> bool: ... + def SetupOwnPointAspect( + self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer() + ) -> bool: ... + def SetupOwnShadingAspect( + self, theDefaults: Optional[Prs3d_Drawer] = Prs3d_Drawer() + ) -> bool: ... def ShadingAspect(self) -> Prs3d_ShadingAspect: ... def TextAspect(self) -> Prs3d_TextAspect: ... def TypeOfDeflection(self) -> Aspect_TypeOfDeflection: ... @@ -441,9 +529,11 @@ class Prs3d_Point: pass class Prs3d_PresentationShadow(Graphic3d_Structure): - def __init__(self, theViewer: Graphic3d_StructureManager, thePrs: Graphic3d_Structure) -> None: ... + def __init__( + self, theViewer: Graphic3d_StructureManager, thePrs: Graphic3d_Structure + ) -> None: ... def CalculateBoundBox(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ParentAffinity(self) -> Graphic3d_ViewAffinity: ... def ParentId(self) -> int: ... @@ -456,18 +546,36 @@ class Prs3d_Root: class Prs3d_Text: @overload @staticmethod - def Draw(theGroup: Graphic3d_Group, theAspect: Prs3d_TextAspect, theText: str, theAttachmentPoint: gp_Pnt) -> Graphic3d_Text: ... + def Draw( + theGroup: Graphic3d_Group, + theAspect: Prs3d_TextAspect, + theText: str, + theAttachmentPoint: gp_Pnt, + ) -> Graphic3d_Text: ... @overload @staticmethod - def Draw(theGroup: Graphic3d_Group, theAspect: Prs3d_TextAspect, theText: str, theOrientation: gp_Ax2, theHasOwnAnchor: Optional[bool] = True) -> Graphic3d_Text: ... + def Draw( + theGroup: Graphic3d_Group, + theAspect: Prs3d_TextAspect, + theText: str, + theOrientation: gp_Ax2, + theHasOwnAnchor: Optional[bool] = True, + ) -> Graphic3d_Text: ... class Prs3d_ToolQuadric: def CreatePolyTriangulation(self, theTrsf: gp_Trsf) -> Poly_Triangulation: ... def CreateTriangulation(self, theTrsf: gp_Trsf) -> Graphic3d_ArrayOfTriangles: ... @overload - def FillArray(self, theArray: Graphic3d_ArrayOfTriangles, theTrsf: gp_Trsf) -> None: ... + def FillArray( + self, theArray: Graphic3d_ArrayOfTriangles, theTrsf: gp_Trsf + ) -> None: ... @overload - def FillArray(self, theArray: Graphic3d_ArrayOfTriangles, theTriangulation: Poly_Triangulation, theTrsf: gp_Trsf) -> None: ... + def FillArray( + self, + theArray: Graphic3d_ArrayOfTriangles, + theTriangulation: Poly_Triangulation, + theTrsf: gp_Trsf, + ) -> None: ... @overload @staticmethod def TrianglesNb(theSlicesNb: int, theStacksNb: int) -> int: ... @@ -475,7 +583,9 @@ class Prs3d_ToolQuadric: def TrianglesNb(self) -> int: ... @overload @staticmethod - def VerticesNb(theSlicesNb: int, theStacksNb: int, theIsIndexed: Optional[bool] = True) -> int: ... + def VerticesNb( + theSlicesNb: int, theStacksNb: int, theIsIndexed: Optional[bool] = True + ) -> int: ... @overload def VerticesNb(self, theIsIndexed: Optional[bool] = true) -> int: ... @@ -488,7 +598,7 @@ class Prs3d_ArrowAspect(Prs3d_BasicAspect): def __init__(self, theAspect: Graphic3d_AspectLine3d) -> None: ... def Angle(self) -> float: ... def Aspect(self) -> Graphic3d_AspectLine3d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsZoomable(self) -> bool: ... def Length(self) -> float: ... def SetAngle(self, anAngle: float) -> None: ... @@ -500,10 +610,14 @@ class Prs3d_ArrowAspect(Prs3d_BasicAspect): class Prs3d_BndBox(Prs3d_Root): @overload @staticmethod - def Add(thePresentation: Prs3d_Presentation, theBndBox: Bnd_Box, theDrawer: Prs3d_Drawer) -> None: ... + def Add( + thePresentation: Prs3d_Presentation, theBndBox: Bnd_Box, theDrawer: Prs3d_Drawer + ) -> None: ... @overload @staticmethod - def Add(thePresentation: Prs3d_Presentation, theBndBox: Bnd_OBB, theDrawer: Prs3d_Drawer) -> None: ... + def Add( + thePresentation: Prs3d_Presentation, theBndBox: Bnd_OBB, theDrawer: Prs3d_Drawer + ) -> None: ... @overload @staticmethod def FillSegments(theBox: Bnd_OBB) -> Graphic3d_ArrayOfSegments: ... @@ -512,12 +626,18 @@ class Prs3d_BndBox(Prs3d_Root): def FillSegments(theBox: Bnd_Box) -> Graphic3d_ArrayOfSegments: ... @overload @staticmethod - def FillSegments(theSegments: Graphic3d_ArrayOfSegments, theBox: Bnd_OBB) -> None: ... + def FillSegments( + theSegments: Graphic3d_ArrayOfSegments, theBox: Bnd_OBB + ) -> None: ... @overload @staticmethod - def FillSegments(theSegments: Graphic3d_ArrayOfSegments, theBox: Bnd_Box) -> None: ... + def FillSegments( + theSegments: Graphic3d_ArrayOfSegments, theBox: Bnd_Box + ) -> None: ... @staticmethod - def fillSegments(theSegments: Graphic3d_ArrayOfSegments, theBox: gp_Pnt) -> None: ... + def fillSegments( + theSegments: Graphic3d_ArrayOfSegments, theBox: gp_Pnt + ) -> None: ... class Prs3d_DatumAspect(Prs3d_BasicAspect): def __init__(self) -> None: ... @@ -529,7 +649,7 @@ class Prs3d_DatumAspect(Prs3d_BasicAspect): def CopyAspectsFrom(self, theOther: Prs3d_DatumAspect) -> None: ... def DatumAxes(self) -> Prs3d_DatumAxes: ... def DrawDatumPart(self, thePart: Prs3d_DatumParts) -> bool: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def LineAspect(self, thePart: Prs3d_DatumParts) -> Prs3d_LineAspect: ... def PointAspect(self) -> Prs3d_PointAspect: ... def SetArrowAspect(self, theAspect: Prs3d_ArrowAspect) -> None: ... @@ -554,7 +674,7 @@ class Prs3d_DimensionAspect(Prs3d_BasicAspect): def ArrowAspect(self) -> Prs3d_ArrowAspect: ... def ArrowOrientation(self) -> Prs3d_DimensionArrowOrientation: ... def ArrowTailSize(self) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ExtensionSize(self) -> float: ... def IsArrows3d(self) -> bool: ... def IsText3d(self) -> bool: ... @@ -566,14 +686,20 @@ class Prs3d_DimensionAspect(Prs3d_BasicAspect): def MakeTextShaded(self, theIsTextShaded: bool) -> None: ... def MakeUnitsDisplayed(self, theIsDisplayed: bool) -> None: ... def SetArrowAspect(self, theAspect: Prs3d_ArrowAspect) -> None: ... - def SetArrowOrientation(self, theArrowOrient: Prs3d_DimensionArrowOrientation) -> None: ... + def SetArrowOrientation( + self, theArrowOrient: Prs3d_DimensionArrowOrientation + ) -> None: ... def SetArrowTailSize(self, theSize: float) -> None: ... def SetCommonColor(self, theColor: Quantity_Color) -> None: ... def SetExtensionSize(self, theSize: float) -> None: ... def SetLineAspect(self, theAspect: Prs3d_LineAspect) -> None: ... def SetTextAspect(self, theAspect: Prs3d_TextAspect) -> None: ... - def SetTextHorizontalPosition(self, thePosition: Prs3d_DimensionTextHorizontalPosition) -> None: ... - def SetTextVerticalPosition(self, thePosition: Prs3d_DimensionTextVerticalPosition) -> None: ... + def SetTextHorizontalPosition( + self, thePosition: Prs3d_DimensionTextHorizontalPosition + ) -> None: ... + def SetTextVerticalPosition( + self, thePosition: Prs3d_DimensionTextVerticalPosition + ) -> None: ... def SetValueStringFormat(self, theFormat: str) -> None: ... def TextAspect(self) -> Prs3d_TextAspect: ... def TextHorizontalPosition(self) -> Prs3d_DimensionTextHorizontalPosition: ... @@ -582,11 +708,13 @@ class Prs3d_DimensionAspect(Prs3d_BasicAspect): class Prs3d_LineAspect(Prs3d_BasicAspect): @overload - def __init__(self, theColor: Quantity_Color, theType: Aspect_TypeOfLine, theWidth: float) -> None: ... + def __init__( + self, theColor: Quantity_Color, theType: Aspect_TypeOfLine, theWidth: float + ) -> None: ... @overload def __init__(self, theAspect: Graphic3d_AspectLine3d) -> None: ... def Aspect(self) -> Graphic3d_AspectLine3d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def SetAspect(self, theAspect: Graphic3d_AspectLine3d) -> None: ... def SetColor(self, theColor: Quantity_Color) -> None: ... def SetTypeOfLine(self, theType: Aspect_TypeOfLine) -> None: ... @@ -602,7 +730,7 @@ class Prs3d_PlaneAspect(Prs3d_BasicAspect): def DisplayEdges(self) -> bool: ... def DisplayEdgesArrows(self) -> bool: ... def DisplayIso(self) -> bool: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EdgesAspect(self) -> Prs3d_LineAspect: ... def IsoAspect(self) -> Prs3d_LineAspect: ... def IsoDistance(self) -> float: ... @@ -620,13 +748,21 @@ class Prs3d_PlaneAspect(Prs3d_BasicAspect): class Prs3d_PointAspect(Prs3d_BasicAspect): @overload - def __init__(self, theType: Aspect_TypeOfMarker, theColor: Quantity_Color, theScale: float) -> None: ... + def __init__( + self, theType: Aspect_TypeOfMarker, theColor: Quantity_Color, theScale: float + ) -> None: ... @overload - def __init__(self, theColor: Quantity_Color, theWidth: int, theHeight: int, theTexture: TColStd_HArray1OfByte) -> None: ... + def __init__( + self, + theColor: Quantity_Color, + theWidth: int, + theHeight: int, + theTexture: TColStd_HArray1OfByte, + ) -> None: ... @overload def __init__(self, theAspect: Graphic3d_AspectMarker3d) -> None: ... def Aspect(self) -> Graphic3d_AspectMarker3d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetTexture(self) -> Graphic3d_MarkerImage: ... def GetTextureSize(self) -> Tuple[int, int]: ... def SetAspect(self, theAspect: Graphic3d_AspectMarker3d) -> None: ... @@ -640,14 +776,32 @@ class Prs3d_ShadingAspect(Prs3d_BasicAspect): @overload def __init__(self, theAspect: Graphic3d_AspectFillArea3d) -> None: ... def Aspect(self) -> Graphic3d_AspectFillArea3d: ... - def Color(self, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_FRONT_SIDE) -> Quantity_Color: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - def Material(self, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_FRONT_SIDE) -> Graphic3d_MaterialAspect: ... + def Color( + self, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_FRONT_SIDE + ) -> Quantity_Color: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + def Material( + self, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_FRONT_SIDE + ) -> Graphic3d_MaterialAspect: ... def SetAspect(self, theAspect: Graphic3d_AspectFillArea3d) -> None: ... - def SetColor(self, aColor: Quantity_Color, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE) -> None: ... - def SetMaterial(self, aMaterial: Graphic3d_MaterialAspect, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE) -> None: ... - def SetTransparency(self, aValue: float, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE) -> None: ... - def Transparency(self, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_FRONT_SIDE) -> float: ... + def SetColor( + self, + aColor: Quantity_Color, + aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE, + ) -> None: ... + def SetMaterial( + self, + aMaterial: Graphic3d_MaterialAspect, + aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE, + ) -> None: ... + def SetTransparency( + self, + aValue: float, + aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE, + ) -> None: ... + def Transparency( + self, aModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_FRONT_SIDE + ) -> float: ... class Prs3d_TextAspect(Prs3d_BasicAspect): @overload @@ -656,7 +810,7 @@ class Prs3d_TextAspect(Prs3d_BasicAspect): def __init__(self, theAspect: Graphic3d_AspectText3d) -> None: ... def Angle(self) -> float: ... def Aspect(self) -> Graphic3d_AspectText3d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Height(self) -> float: ... def HorizontalJustification(self) -> Graphic3d_HorizontalTextAlignment: ... def Orientation(self) -> Graphic3d_TextPath: ... @@ -665,63 +819,162 @@ class Prs3d_TextAspect(Prs3d_BasicAspect): def SetColor(self, theColor: Quantity_Color) -> None: ... def SetFont(self, theFont: str) -> None: ... def SetHeight(self, theHeight: float) -> None: ... - def SetHorizontalJustification(self, theJustification: Graphic3d_HorizontalTextAlignment) -> None: ... + def SetHorizontalJustification( + self, theJustification: Graphic3d_HorizontalTextAlignment + ) -> None: ... def SetOrientation(self, theOrientation: Graphic3d_TextPath) -> None: ... - def SetVerticalJustification(self, theJustification: Graphic3d_VerticalTextAlignment) -> None: ... + def SetVerticalJustification( + self, theJustification: Graphic3d_VerticalTextAlignment + ) -> None: ... def VerticalJustification(self) -> Graphic3d_VerticalTextAlignment: ... class Prs3d_ToolCylinder(Prs3d_ToolQuadric): - def __init__(self, theBottomRad: float, theTopRad: float, theHeight: float, theNbSlices: int, theNbStacks: int) -> None: ... + def __init__( + self, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theNbSlices: int, + theNbStacks: int, + ) -> None: ... @staticmethod - def Create(theBottomRad: float, theTopRad: float, theHeight: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf) -> Graphic3d_ArrayOfTriangles: ... + def Create( + theBottomRad: float, + theTopRad: float, + theHeight: float, + theNbSlices: int, + theNbStacks: int, + theTrsf: gp_Trsf, + ) -> Graphic3d_ArrayOfTriangles: ... class Prs3d_ToolDisk(Prs3d_ToolQuadric): - def __init__(self, theInnerRadius: float, theOuterRadius: float, theNbSlices: int, theNbStacks: int) -> None: ... + def __init__( + self, + theInnerRadius: float, + theOuterRadius: float, + theNbSlices: int, + theNbStacks: int, + ) -> None: ... @staticmethod - def Create(theInnerRadius: float, theOuterRadius: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf) -> Graphic3d_ArrayOfTriangles: ... + def Create( + theInnerRadius: float, + theOuterRadius: float, + theNbSlices: int, + theNbStacks: int, + theTrsf: gp_Trsf, + ) -> Graphic3d_ArrayOfTriangles: ... def SetAngleRange(self, theStartAngle: float, theEndAngle: float) -> None: ... class Prs3d_ToolSector(Prs3d_ToolQuadric): - def __init__(self, theRadius: float, theNbSlices: int, theNbStacks: int) -> None: ... + def __init__( + self, theRadius: float, theNbSlices: int, theNbStacks: int + ) -> None: ... @staticmethod - def Create(theRadius: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf) -> Graphic3d_ArrayOfTriangles: ... + def Create( + theRadius: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf + ) -> Graphic3d_ArrayOfTriangles: ... class Prs3d_ToolSphere(Prs3d_ToolQuadric): - def __init__(self, theRadius: float, theNbSlices: int, theNbStacks: int) -> None: ... + def __init__( + self, theRadius: float, theNbSlices: int, theNbStacks: int + ) -> None: ... @staticmethod - def Create(theRadius: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf) -> Graphic3d_ArrayOfTriangles: ... + def Create( + theRadius: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf + ) -> Graphic3d_ArrayOfTriangles: ... class Prs3d_ToolTorus(Prs3d_ToolQuadric): @overload - def __init__(self, theMajorRad: float, theMinorRad: float, theNbSlices: int, theNbStacks: int) -> None: ... - @overload - def __init__(self, theMajorRad: float, theMinorRad: float, theAngle: float, theNbSlices: int, theNbStacks: int) -> None: ... - @overload - def __init__(self, theMajorRad: float, theMinorRad: float, theAngle1: float, theAngle2: float, theNbSlices: int, theNbStacks: int) -> None: ... - @overload - def __init__(self, theMajorRad: float, theMinorRad: float, theAngle1: float, theAngle2: float, theAngle: float, theNbSlices: int, theNbStacks: int) -> None: ... + def __init__( + self, theMajorRad: float, theMinorRad: float, theNbSlices: int, theNbStacks: int + ) -> None: ... + @overload + def __init__( + self, + theMajorRad: float, + theMinorRad: float, + theAngle: float, + theNbSlices: int, + theNbStacks: int, + ) -> None: ... + @overload + def __init__( + self, + theMajorRad: float, + theMinorRad: float, + theAngle1: float, + theAngle2: float, + theNbSlices: int, + theNbStacks: int, + ) -> None: ... + @overload + def __init__( + self, + theMajorRad: float, + theMinorRad: float, + theAngle1: float, + theAngle2: float, + theAngle: float, + theNbSlices: int, + theNbStacks: int, + ) -> None: ... @overload @staticmethod - def Create(theMajorRad: float, theMinorRad: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf) -> Graphic3d_ArrayOfTriangles: ... + def Create( + theMajorRad: float, + theMinorRad: float, + theNbSlices: int, + theNbStacks: int, + theTrsf: gp_Trsf, + ) -> Graphic3d_ArrayOfTriangles: ... @overload @staticmethod - def Create(theMajorRad: float, theMinorRad: float, theAngle: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf) -> Graphic3d_ArrayOfTriangles: ... + def Create( + theMajorRad: float, + theMinorRad: float, + theAngle: float, + theNbSlices: int, + theNbStacks: int, + theTrsf: gp_Trsf, + ) -> Graphic3d_ArrayOfTriangles: ... @overload @staticmethod - def Create(theMajorRad: float, theMinorRad: float, theAngle1: float, theAngle2: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf) -> Graphic3d_ArrayOfTriangles: ... + def Create( + theMajorRad: float, + theMinorRad: float, + theAngle1: float, + theAngle2: float, + theNbSlices: int, + theNbStacks: int, + theTrsf: gp_Trsf, + ) -> Graphic3d_ArrayOfTriangles: ... @overload @staticmethod - def Create(theMajorRad: float, theMinorRad: float, theAngle1: float, theAngle2: float, theAngle: float, theNbSlices: int, theNbStacks: int, theTrsf: gp_Trsf) -> Graphic3d_ArrayOfTriangles: ... + def Create( + theMajorRad: float, + theMinorRad: float, + theAngle1: float, + theAngle2: float, + theAngle: float, + theNbSlices: int, + theNbStacks: int, + theTrsf: gp_Trsf, + ) -> Graphic3d_ArrayOfTriangles: ... class Prs3d_IsoAspect(Prs3d_LineAspect): - def __init__(self, theColor: Quantity_Color, theType: Aspect_TypeOfLine, theWidth: float, theNumber: int) -> None: ... + def __init__( + self, + theColor: Quantity_Color, + theType: Aspect_TypeOfLine, + theWidth: float, + theNumber: int, + ) -> None: ... def Number(self) -> int: ... def SetNumber(self, theNumber: int) -> None: ... -#classnotwrapped +# classnotwrapped class Prs3d_ShapeTool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/PrsDim.pyi b/src/SWIG_files/wrapper/PrsDim.pyi index dd9374c0e..09e55fe01 100644 --- a/src/SWIG_files/wrapper/PrsDim.pyi +++ b/src/SWIG_files/wrapper/PrsDim.pyi @@ -17,24 +17,35 @@ from OCC.Core.PrsMgr import * from OCC.Core.DsgPrs import * from OCC.Core.TColStd import * - class PrsDim_DimensionSelectionMode(IntEnum): PrsDim_DimensionSelectionMode_All: int = ... PrsDim_DimensionSelectionMode_Line: int = ... PrsDim_DimensionSelectionMode_Text: int = ... -PrsDim_DimensionSelectionMode_All = PrsDim_DimensionSelectionMode.PrsDim_DimensionSelectionMode_All -PrsDim_DimensionSelectionMode_Line = PrsDim_DimensionSelectionMode.PrsDim_DimensionSelectionMode_Line -PrsDim_DimensionSelectionMode_Text = PrsDim_DimensionSelectionMode.PrsDim_DimensionSelectionMode_Text +PrsDim_DimensionSelectionMode_All = ( + PrsDim_DimensionSelectionMode.PrsDim_DimensionSelectionMode_All +) +PrsDim_DimensionSelectionMode_Line = ( + PrsDim_DimensionSelectionMode.PrsDim_DimensionSelectionMode_Line +) +PrsDim_DimensionSelectionMode_Text = ( + PrsDim_DimensionSelectionMode.PrsDim_DimensionSelectionMode_Text +) class PrsDim_DisplaySpecialSymbol(IntEnum): PrsDim_DisplaySpecialSymbol_No: int = ... PrsDim_DisplaySpecialSymbol_Before: int = ... PrsDim_DisplaySpecialSymbol_After: int = ... -PrsDim_DisplaySpecialSymbol_No = PrsDim_DisplaySpecialSymbol.PrsDim_DisplaySpecialSymbol_No -PrsDim_DisplaySpecialSymbol_Before = PrsDim_DisplaySpecialSymbol.PrsDim_DisplaySpecialSymbol_Before -PrsDim_DisplaySpecialSymbol_After = PrsDim_DisplaySpecialSymbol.PrsDim_DisplaySpecialSymbol_After +PrsDim_DisplaySpecialSymbol_No = ( + PrsDim_DisplaySpecialSymbol.PrsDim_DisplaySpecialSymbol_No +) +PrsDim_DisplaySpecialSymbol_Before = ( + PrsDim_DisplaySpecialSymbol.PrsDim_DisplaySpecialSymbol_Before +) +PrsDim_DisplaySpecialSymbol_After = ( + PrsDim_DisplaySpecialSymbol.PrsDim_DisplaySpecialSymbol_After +) class PrsDim_KindOfDimension(IntEnum): PrsDim_KOD_NONE: int = ... @@ -124,10 +135,18 @@ class PrsDim_TypeOfAngleArrowVisibility(IntEnum): PrsDim_TypeOfAngleArrowVisibility_Second: int = ... PrsDim_TypeOfAngleArrowVisibility_None: int = ... -PrsDim_TypeOfAngleArrowVisibility_Both = PrsDim_TypeOfAngleArrowVisibility.PrsDim_TypeOfAngleArrowVisibility_Both -PrsDim_TypeOfAngleArrowVisibility_First = PrsDim_TypeOfAngleArrowVisibility.PrsDim_TypeOfAngleArrowVisibility_First -PrsDim_TypeOfAngleArrowVisibility_Second = PrsDim_TypeOfAngleArrowVisibility.PrsDim_TypeOfAngleArrowVisibility_Second -PrsDim_TypeOfAngleArrowVisibility_None = PrsDim_TypeOfAngleArrowVisibility.PrsDim_TypeOfAngleArrowVisibility_None +PrsDim_TypeOfAngleArrowVisibility_Both = ( + PrsDim_TypeOfAngleArrowVisibility.PrsDim_TypeOfAngleArrowVisibility_Both +) +PrsDim_TypeOfAngleArrowVisibility_First = ( + PrsDim_TypeOfAngleArrowVisibility.PrsDim_TypeOfAngleArrowVisibility_First +) +PrsDim_TypeOfAngleArrowVisibility_Second = ( + PrsDim_TypeOfAngleArrowVisibility.PrsDim_TypeOfAngleArrowVisibility_Second +) +PrsDim_TypeOfAngleArrowVisibility_None = ( + PrsDim_TypeOfAngleArrowVisibility.PrsDim_TypeOfAngleArrowVisibility_None +) class PrsDim_TypeOfDist(IntEnum): PrsDim_TypeOfDist_Unknown: int = ... @@ -140,48 +159,152 @@ PrsDim_TypeOfDist_Vertical = PrsDim_TypeOfDist.PrsDim_TypeOfDist_Vertical class prsdim: @staticmethod - def ComputeGeomCurve(aCurve: Geom_Curve, first1: float, last1: float, FirstPnt1: gp_Pnt, LastPnt1: gp_Pnt, aPlane: Geom_Plane) -> Tuple[bool, bool]: ... + def ComputeGeomCurve( + aCurve: Geom_Curve, + first1: float, + last1: float, + FirstPnt1: gp_Pnt, + LastPnt1: gp_Pnt, + aPlane: Geom_Plane, + ) -> Tuple[bool, bool]: ... @overload @staticmethod - def ComputeGeometry(theEdge: TopoDS_Edge, theCurve: Geom_Curve, theFirstPnt: gp_Pnt, theLastPnt: gp_Pnt) -> bool: ... + def ComputeGeometry( + theEdge: TopoDS_Edge, + theCurve: Geom_Curve, + theFirstPnt: gp_Pnt, + theLastPnt: gp_Pnt, + ) -> bool: ... @overload @staticmethod - def ComputeGeometry(theEdge: TopoDS_Edge, theCurve: Geom_Curve, theFirstPnt: gp_Pnt, theLastPnt: gp_Pnt) -> Tuple[bool, bool]: ... + def ComputeGeometry( + theEdge: TopoDS_Edge, + theCurve: Geom_Curve, + theFirstPnt: gp_Pnt, + theLastPnt: gp_Pnt, + ) -> Tuple[bool, bool]: ... @overload @staticmethod - def ComputeGeometry(theEdge: TopoDS_Edge, theCurve: Geom_Curve, theFirstPnt: gp_Pnt, theLastPnt: gp_Pnt, theExtCurve: Geom_Curve, thePlane: Geom_Plane) -> Tuple[bool, bool, bool]: ... + def ComputeGeometry( + theEdge: TopoDS_Edge, + theCurve: Geom_Curve, + theFirstPnt: gp_Pnt, + theLastPnt: gp_Pnt, + theExtCurve: Geom_Curve, + thePlane: Geom_Plane, + ) -> Tuple[bool, bool, bool]: ... @overload @staticmethod - def ComputeGeometry(theFirstEdge: TopoDS_Edge, theSecondEdge: TopoDS_Edge, theFirstCurve: Geom_Curve, theSecondCurve: Geom_Curve, theFirstPnt1: gp_Pnt, theLastPnt1: gp_Pnt, theFirstPnt2: gp_Pnt, theLastPnt2: gp_Pnt, thePlane: Geom_Plane) -> bool: ... + def ComputeGeometry( + theFirstEdge: TopoDS_Edge, + theSecondEdge: TopoDS_Edge, + theFirstCurve: Geom_Curve, + theSecondCurve: Geom_Curve, + theFirstPnt1: gp_Pnt, + theLastPnt1: gp_Pnt, + theFirstPnt2: gp_Pnt, + theLastPnt2: gp_Pnt, + thePlane: Geom_Plane, + ) -> bool: ... @overload @staticmethod - def ComputeGeometry(theFirstEdge: TopoDS_Edge, theSecondEdge: TopoDS_Edge, theFirstCurve: Geom_Curve, theSecondCurve: Geom_Curve, theFirstPnt1: gp_Pnt, theLastPnt1: gp_Pnt, theFirstPnt2: gp_Pnt, theLastPnt2: gp_Pnt) -> Tuple[bool, bool, bool]: ... + def ComputeGeometry( + theFirstEdge: TopoDS_Edge, + theSecondEdge: TopoDS_Edge, + theFirstCurve: Geom_Curve, + theSecondCurve: Geom_Curve, + theFirstPnt1: gp_Pnt, + theLastPnt1: gp_Pnt, + theFirstPnt2: gp_Pnt, + theLastPnt2: gp_Pnt, + ) -> Tuple[bool, bool, bool]: ... @overload @staticmethod - def ComputeGeometry(theFirstEdge: TopoDS_Edge, theSecondEdge: TopoDS_Edge, theFirstCurve: Geom_Curve, theSecondCurve: Geom_Curve, theFirstPnt1: gp_Pnt, theLastPnt1: gp_Pnt, theFirstPnt2: gp_Pnt, theLastPnt2: gp_Pnt, theExtCurve: Geom_Curve, thePlane: Geom_Plane) -> Tuple[bool, int, bool, bool]: ... + def ComputeGeometry( + theFirstEdge: TopoDS_Edge, + theSecondEdge: TopoDS_Edge, + theFirstCurve: Geom_Curve, + theSecondCurve: Geom_Curve, + theFirstPnt1: gp_Pnt, + theLastPnt1: gp_Pnt, + theFirstPnt2: gp_Pnt, + theLastPnt2: gp_Pnt, + theExtCurve: Geom_Curve, + thePlane: Geom_Plane, + ) -> Tuple[bool, int, bool, bool]: ... @overload @staticmethod - def ComputeGeometry(aVertex: TopoDS_Vertex, point: gp_Pnt, aPlane: Geom_Plane) -> Tuple[bool, bool]: ... + def ComputeGeometry( + aVertex: TopoDS_Vertex, point: gp_Pnt, aPlane: Geom_Plane + ) -> Tuple[bool, bool]: ... @staticmethod - def ComputeProjEdgePresentation(aPres: Prs3d_Presentation, aDrawer: Prs3d_Drawer, anEdge: TopoDS_Edge, ProjCurve: Geom_Curve, FirstP: gp_Pnt, LastP: gp_Pnt, aColor: Optional[Quantity_NameOfColor] = Quantity_NOC_PURPLE, aWidth: Optional[float] = 2, aProjTOL: Optional[Aspect_TypeOfLine] = Aspect_TOL_DASH, aCallTOL: Optional[Aspect_TypeOfLine] = Aspect_TOL_DOT) -> None: ... + def ComputeProjEdgePresentation( + aPres: Prs3d_Presentation, + aDrawer: Prs3d_Drawer, + anEdge: TopoDS_Edge, + ProjCurve: Geom_Curve, + FirstP: gp_Pnt, + LastP: gp_Pnt, + aColor: Optional[Quantity_NameOfColor] = Quantity_NOC_PURPLE, + aWidth: Optional[float] = 2, + aProjTOL: Optional[Aspect_TypeOfLine] = Aspect_TOL_DASH, + aCallTOL: Optional[Aspect_TypeOfLine] = Aspect_TOL_DOT, + ) -> None: ... @staticmethod - def ComputeProjVertexPresentation(aPres: Prs3d_Presentation, aDrawer: Prs3d_Drawer, aVertex: TopoDS_Vertex, ProjPoint: gp_Pnt, aColor: Optional[Quantity_NameOfColor] = Quantity_NOC_PURPLE, aWidth: Optional[float] = 2, aProjTOM: Optional[Aspect_TypeOfMarker] = Aspect_TOM_PLUS, aCallTOL: Optional[Aspect_TypeOfLine] = Aspect_TOL_DOT) -> None: ... + def ComputeProjVertexPresentation( + aPres: Prs3d_Presentation, + aDrawer: Prs3d_Drawer, + aVertex: TopoDS_Vertex, + ProjPoint: gp_Pnt, + aColor: Optional[Quantity_NameOfColor] = Quantity_NOC_PURPLE, + aWidth: Optional[float] = 2, + aProjTOM: Optional[Aspect_TypeOfMarker] = Aspect_TOM_PLUS, + aCallTOL: Optional[Aspect_TypeOfLine] = Aspect_TOL_DOT, + ) -> None: ... @staticmethod def DistanceFromApex(elips: gp_Elips, Apex: gp_Pnt, par: float) -> float: ... @staticmethod def Farest(aShape: TopoDS_Shape, aPoint: gp_Pnt) -> gp_Pnt: ... @staticmethod - def GetPlaneFromFace(aFace: TopoDS_Face, aPlane: gp_Pln, aSurf: Geom_Surface) -> Tuple[bool, PrsDim_KindOfSurface, float]: ... + def GetPlaneFromFace( + aFace: TopoDS_Face, aPlane: gp_Pln, aSurf: Geom_Surface + ) -> Tuple[bool, PrsDim_KindOfSurface, float]: ... @staticmethod def InDomain(aFirstPar: float, aLastPar: float, anAttachPar: float) -> bool: ... @staticmethod - def InitAngleBetweenCurvilinearFaces(theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face, theFirstSurfType: PrsDim_KindOfSurface, theSecondSurfType: PrsDim_KindOfSurface, theCenter: gp_Pnt, theFirstAttach: gp_Pnt, theSecondAttach: gp_Pnt, theIsFirstPointSet: Optional[bool] = False) -> bool: ... + def InitAngleBetweenCurvilinearFaces( + theFirstFace: TopoDS_Face, + theSecondFace: TopoDS_Face, + theFirstSurfType: PrsDim_KindOfSurface, + theSecondSurfType: PrsDim_KindOfSurface, + theCenter: gp_Pnt, + theFirstAttach: gp_Pnt, + theSecondAttach: gp_Pnt, + theIsFirstPointSet: Optional[bool] = False, + ) -> bool: ... @staticmethod - def InitAngleBetweenPlanarFaces(theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face, theCenter: gp_Pnt, theFirstAttach: gp_Pnt, theSecondAttach: gp_Pnt, theIsFirstPointSet: Optional[bool] = False) -> bool: ... + def InitAngleBetweenPlanarFaces( + theFirstFace: TopoDS_Face, + theSecondFace: TopoDS_Face, + theCenter: gp_Pnt, + theFirstAttach: gp_Pnt, + theSecondAttach: gp_Pnt, + theIsFirstPointSet: Optional[bool] = False, + ) -> bool: ... @staticmethod - def InitFaceLength(aFace: TopoDS_Face, aPlane: gp_Pln, aSurface: Geom_Surface) -> Tuple[PrsDim_KindOfSurface, float]: ... + def InitFaceLength( + aFace: TopoDS_Face, aPlane: gp_Pln, aSurface: Geom_Surface + ) -> Tuple[PrsDim_KindOfSurface, float]: ... @staticmethod - def InitLengthBetweenCurvilinearFaces(theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face, theFirstSurf: Geom_Surface, theSecondSurf: Geom_Surface, theFirstAttach: gp_Pnt, theSecondAttach: gp_Pnt, theDirOnPlane: gp_Dir) -> None: ... + def InitLengthBetweenCurvilinearFaces( + theFirstFace: TopoDS_Face, + theSecondFace: TopoDS_Face, + theFirstSurf: Geom_Surface, + theSecondSurf: Geom_Surface, + theFirstAttach: gp_Pnt, + theSecondAttach: gp_Pnt, + theDirOnPlane: gp_Dir, + ) -> None: ... @overload @staticmethod def Nearest(aShape: TopoDS_Shape, aPoint: gp_Pnt) -> gp_Pnt: ... @@ -190,15 +313,25 @@ class prsdim: def Nearest(theLine: gp_Lin, thePoint: gp_Pnt) -> gp_Pnt: ... @overload @staticmethod - def Nearest(theCurve: Geom_Curve, thePoint: gp_Pnt, theFirstPoint: gp_Pnt, theLastPoint: gp_Pnt, theNearestPoint: gp_Pnt) -> bool: ... + def Nearest( + theCurve: Geom_Curve, + thePoint: gp_Pnt, + theFirstPoint: gp_Pnt, + theLastPoint: gp_Pnt, + theNearestPoint: gp_Pnt, + ) -> bool: ... @staticmethod - def NearestApex(elips: gp_Elips, pApex: gp_Pnt, nApex: gp_Pnt, fpara: float, lpara: float) -> Tuple[gp_Pnt, bool]: ... + def NearestApex( + elips: gp_Elips, pApex: gp_Pnt, nApex: gp_Pnt, fpara: float, lpara: float + ) -> Tuple[gp_Pnt, bool]: ... @staticmethod def ProjectPointOnLine(aPoint: gp_Pnt, aLine: gp_Lin) -> gp_Pnt: ... @staticmethod def ProjectPointOnPlane(aPoint: gp_Pnt, aPlane: gp_Pln) -> gp_Pnt: ... @staticmethod - def TranslatePointToBound(aPoint: gp_Pnt, aDir: gp_Dir, aBndBox: Bnd_Box) -> gp_Pnt: ... + def TranslatePointToBound( + aPoint: gp_Pnt, aDir: gp_Dir, aBndBox: Bnd_Box + ) -> gp_Pnt: ... class PrsDim_Dimension(AIS_InteractiveObject): def AcceptDisplayMode(self, theMode: int) -> bool: ... @@ -223,7 +356,9 @@ class PrsDim_Dimension(AIS_InteractiveObject): @overload def SetCustomValue(self, theValue: str) -> None: ... def SetDimensionAspect(self, theDimensionAspect: Prs3d_DimensionAspect) -> None: ... - def SetDisplaySpecialSymbol(self, theDisplaySpecSymbol: PrsDim_DisplaySpecialSymbol) -> None: ... + def SetDisplaySpecialSymbol( + self, theDisplaySpecSymbol: PrsDim_DisplaySpecialSymbol + ) -> None: ... def SetFlyout(self, theFlyout: float) -> None: ... def SetSelToleranceForText2d(self, theTol: float) -> None: ... def SetSpecialSymbol(self, theSpecialSymbol: Standard_ExtCharacter) -> None: ... @@ -233,11 +368,22 @@ class PrsDim_Dimension(AIS_InteractiveObject): def UnsetFixedTextPosition(self) -> None: ... class PrsDim_DimensionOwner(SelectMgr_EntityOwner): - def __init__(self, theSelObject: SelectMgr_SelectableObject, theSelMode: PrsDim_DimensionSelectionMode, thePriority: Optional[int] = 0) -> None: ... - def HilightWithColor(self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int) -> None: ... - def IsHilighted(self, thePM: PrsMgr_PresentationManager, theMode: Optional[int] = 0) -> bool: ... + def __init__( + self, + theSelObject: SelectMgr_SelectableObject, + theSelMode: PrsDim_DimensionSelectionMode, + thePriority: Optional[int] = 0, + ) -> None: ... + def HilightWithColor( + self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int + ) -> None: ... + def IsHilighted( + self, thePM: PrsMgr_PresentationManager, theMode: Optional[int] = 0 + ) -> bool: ... def SelectionMode(self) -> PrsDim_DimensionSelectionMode: ... - def Unhilight(self, thePM: PrsMgr_PresentationManager, theMode: Optional[int] = 0) -> None: ... + def Unhilight( + self, thePM: PrsMgr_PresentationManager, theMode: Optional[int] = 0 + ) -> None: ... class PrsDim_Relation(AIS_InteractiveObject): def AcceptDisplayMode(self, theMode: int) -> bool: ... @@ -252,7 +398,15 @@ class PrsDim_Relation(AIS_InteractiveObject): def SecondShape(self) -> TopoDS_Shape: ... def SetArrowSize(self, theArrowSize: float) -> None: ... def SetAutomaticPosition(self, theStatus: bool) -> None: ... - def SetBndBox(self, theXmin: float, theYmin: float, theZmin: float, theXmax: float, theYmax: float, theZmax: float) -> None: ... + def SetBndBox( + self, + theXmin: float, + theYmin: float, + theZmin: float, + theXmax: float, + theYmax: float, + theZmax: float, + ) -> None: ... def SetColor(self, theColor: Quantity_Color) -> None: ... def SetExtShape(self, theIndex: int) -> None: ... def SetFirstShape(self, aFShape: TopoDS_Shape) -> None: ... @@ -271,17 +425,30 @@ class PrsDim_Relation(AIS_InteractiveObject): class PrsDim_AngleDimension(PrsDim_Dimension): @overload - def __init__(self, theFirstEdge: TopoDS_Edge, theSecondEdge: TopoDS_Edge) -> None: ... + def __init__( + self, theFirstEdge: TopoDS_Edge, theSecondEdge: TopoDS_Edge + ) -> None: ... @overload - def __init__(self, theFirstPoint: gp_Pnt, theSecondPoint: gp_Pnt, theThirdPoint: gp_Pnt) -> None: ... + def __init__( + self, theFirstPoint: gp_Pnt, theSecondPoint: gp_Pnt, theThirdPoint: gp_Pnt + ) -> None: ... @overload - def __init__(self, theFirstVertex: TopoDS_Vertex, theSecondVertex: TopoDS_Vertex, theThirdVertex: TopoDS_Vertex) -> None: ... + def __init__( + self, + theFirstVertex: TopoDS_Vertex, + theSecondVertex: TopoDS_Vertex, + theThirdVertex: TopoDS_Vertex, + ) -> None: ... @overload def __init__(self, theCone: TopoDS_Face) -> None: ... @overload - def __init__(self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face) -> None: ... + def __init__( + self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face + ) -> None: ... @overload - def __init__(self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face, thePoint: gp_Pnt) -> None: ... + def __init__( + self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face, thePoint: gp_Pnt + ) -> None: ... def CenterPoint(self) -> gp_Pnt: ... def FirstPoint(self) -> gp_Pnt: ... def FirstShape(self) -> TopoDS_Shape: ... @@ -292,20 +459,35 @@ class PrsDim_AngleDimension(PrsDim_Dimension): def GetType(self) -> PrsDim_TypeOfAngle: ... def SecondPoint(self) -> gp_Pnt: ... def SecondShape(self) -> TopoDS_Shape: ... - def SetArrowsVisibility(self, theType: PrsDim_TypeOfAngleArrowVisibility) -> None: ... + def SetArrowsVisibility( + self, theType: PrsDim_TypeOfAngleArrowVisibility + ) -> None: ... def SetDisplayUnits(self, theUnits: str) -> None: ... @overload - def SetMeasuredGeometry(self, theFirstEdge: TopoDS_Edge, theSecondEdge: TopoDS_Edge) -> None: ... + def SetMeasuredGeometry( + self, theFirstEdge: TopoDS_Edge, theSecondEdge: TopoDS_Edge + ) -> None: ... @overload - def SetMeasuredGeometry(self, theFirstPoint: gp_Pnt, theSecondPoint: gp_Pnt, theThridPoint: gp_Pnt) -> None: ... + def SetMeasuredGeometry( + self, theFirstPoint: gp_Pnt, theSecondPoint: gp_Pnt, theThridPoint: gp_Pnt + ) -> None: ... @overload - def SetMeasuredGeometry(self, theFirstVertex: TopoDS_Vertex, theSecondVertex: TopoDS_Vertex, theThirdVertex: TopoDS_Vertex) -> None: ... + def SetMeasuredGeometry( + self, + theFirstVertex: TopoDS_Vertex, + theSecondVertex: TopoDS_Vertex, + theThirdVertex: TopoDS_Vertex, + ) -> None: ... @overload def SetMeasuredGeometry(self, theCone: TopoDS_Face) -> None: ... @overload - def SetMeasuredGeometry(self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face) -> None: ... + def SetMeasuredGeometry( + self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face + ) -> None: ... @overload - def SetMeasuredGeometry(self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face, thePoint: gp_Pnt) -> None: ... + def SetMeasuredGeometry( + self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face, thePoint: gp_Pnt + ) -> None: ... def SetModelUnits(self, theUnits: str) -> None: ... def SetTextPosition(self, theTextPos: gp_Pnt) -> None: ... def SetType(self, theType: PrsDim_TypeOfAngle) -> None: ... @@ -313,9 +495,20 @@ class PrsDim_AngleDimension(PrsDim_Dimension): class PrsDim_Chamf2dDimension(PrsDim_Relation): @overload - def __init__(self, aFShape: TopoDS_Shape, aPlane: Geom_Plane, aVal: float, aText: str) -> None: ... - @overload - def __init__(self, aFShape: TopoDS_Shape, aPlane: Geom_Plane, aVal: float, aText: str, aPosition: gp_Pnt, aSymbolPrs: DsgPrs_ArrowSide, anArrowSize: Optional[float] = 0.0) -> None: ... + def __init__( + self, aFShape: TopoDS_Shape, aPlane: Geom_Plane, aVal: float, aText: str + ) -> None: ... + @overload + def __init__( + self, + aFShape: TopoDS_Shape, + aPlane: Geom_Plane, + aVal: float, + aText: str, + aPosition: gp_Pnt, + aSymbolPrs: DsgPrs_ArrowSide, + anArrowSize: Optional[float] = 0.0, + ) -> None: ... def IsMovable(self) -> bool: ... def KindOfDimension(self) -> PrsDim_KindOfDimension: ... @@ -323,12 +516,22 @@ class PrsDim_Chamf3dDimension(PrsDim_Relation): @overload def __init__(self, aFShape: TopoDS_Shape, aVal: float, aText: str) -> None: ... @overload - def __init__(self, aFShape: TopoDS_Shape, aVal: float, aText: str, aPosition: gp_Pnt, aSymbolPrs: DsgPrs_ArrowSide, anArrowSize: Optional[float] = 0.0) -> None: ... + def __init__( + self, + aFShape: TopoDS_Shape, + aVal: float, + aText: str, + aPosition: gp_Pnt, + aSymbolPrs: DsgPrs_ArrowSide, + anArrowSize: Optional[float] = 0.0, + ) -> None: ... def IsMovable(self) -> bool: ... def KindOfDimension(self) -> PrsDim_KindOfDimension: ... class PrsDim_ConcentricRelation(PrsDim_Relation): - def __init__(self, aFShape: TopoDS_Shape, aSShape: TopoDS_Shape, aPlane: Geom_Plane) -> None: ... + def __init__( + self, aFShape: TopoDS_Shape, aSShape: TopoDS_Shape, aPlane: Geom_Plane + ) -> None: ... class PrsDim_DiameterDimension(PrsDim_Dimension): @overload @@ -359,36 +562,108 @@ class PrsDim_EllipseRadiusDimension(PrsDim_Relation): def KindOfDimension(self) -> PrsDim_KindOfDimension: ... class PrsDim_EqualDistanceRelation(PrsDim_Relation): - def __init__(self, aShape1: TopoDS_Shape, aShape2: TopoDS_Shape, aShape3: TopoDS_Shape, aShape4: TopoDS_Shape, aPlane: Geom_Plane) -> None: ... + def __init__( + self, + aShape1: TopoDS_Shape, + aShape2: TopoDS_Shape, + aShape3: TopoDS_Shape, + aShape4: TopoDS_Shape, + aPlane: Geom_Plane, + ) -> None: ... @staticmethod - def ComputeOneEdgeOneVertexLength(aPresentation: Prs3d_Presentation, aDrawer: Prs3d_Drawer, ArrowSize: float, FirstShape: TopoDS_Shape, SecondShape: TopoDS_Shape, Plane: Geom_Plane, AutomaticPos: bool, IsSetBndBox: bool, BndBox: Bnd_Box, Position: gp_Pnt, FirstAttach: gp_Pnt, SecondAttach: gp_Pnt, FirstExtreme: gp_Pnt, SecondExtreme: gp_Pnt) -> DsgPrs_ArrowSide: ... + def ComputeOneEdgeOneVertexLength( + aPresentation: Prs3d_Presentation, + aDrawer: Prs3d_Drawer, + ArrowSize: float, + FirstShape: TopoDS_Shape, + SecondShape: TopoDS_Shape, + Plane: Geom_Plane, + AutomaticPos: bool, + IsSetBndBox: bool, + BndBox: Bnd_Box, + Position: gp_Pnt, + FirstAttach: gp_Pnt, + SecondAttach: gp_Pnt, + FirstExtreme: gp_Pnt, + SecondExtreme: gp_Pnt, + ) -> DsgPrs_ArrowSide: ... @staticmethod - def ComputeTwoEdgesLength(aPresentation: Prs3d_Presentation, aDrawer: Prs3d_Drawer, ArrowSize: float, FirstEdge: TopoDS_Edge, SecondEdge: TopoDS_Edge, Plane: Geom_Plane, AutomaticPos: bool, IsSetBndBox: bool, BndBox: Bnd_Box, Position: gp_Pnt, FirstAttach: gp_Pnt, SecondAttach: gp_Pnt, FirstExtreme: gp_Pnt, SecondExtreme: gp_Pnt) -> DsgPrs_ArrowSide: ... + def ComputeTwoEdgesLength( + aPresentation: Prs3d_Presentation, + aDrawer: Prs3d_Drawer, + ArrowSize: float, + FirstEdge: TopoDS_Edge, + SecondEdge: TopoDS_Edge, + Plane: Geom_Plane, + AutomaticPos: bool, + IsSetBndBox: bool, + BndBox: Bnd_Box, + Position: gp_Pnt, + FirstAttach: gp_Pnt, + SecondAttach: gp_Pnt, + FirstExtreme: gp_Pnt, + SecondExtreme: gp_Pnt, + ) -> DsgPrs_ArrowSide: ... @staticmethod - def ComputeTwoVerticesLength(aPresentation: Prs3d_Presentation, aDrawer: Prs3d_Drawer, ArrowSize: float, FirstVertex: TopoDS_Vertex, SecondVertex: TopoDS_Vertex, Plane: Geom_Plane, AutomaticPos: bool, IsSetBndBox: bool, BndBox: Bnd_Box, TypeDist: PrsDim_TypeOfDist, Position: gp_Pnt, FirstAttach: gp_Pnt, SecondAttach: gp_Pnt, FirstExtreme: gp_Pnt, SecondExtreme: gp_Pnt) -> DsgPrs_ArrowSide: ... + def ComputeTwoVerticesLength( + aPresentation: Prs3d_Presentation, + aDrawer: Prs3d_Drawer, + ArrowSize: float, + FirstVertex: TopoDS_Vertex, + SecondVertex: TopoDS_Vertex, + Plane: Geom_Plane, + AutomaticPos: bool, + IsSetBndBox: bool, + BndBox: Bnd_Box, + TypeDist: PrsDim_TypeOfDist, + Position: gp_Pnt, + FirstAttach: gp_Pnt, + SecondAttach: gp_Pnt, + FirstExtreme: gp_Pnt, + SecondExtreme: gp_Pnt, + ) -> DsgPrs_ArrowSide: ... def SetShape3(self, aShape: TopoDS_Shape) -> None: ... def SetShape4(self, aShape: TopoDS_Shape) -> None: ... def Shape3(self) -> TopoDS_Shape: ... def Shape4(self) -> TopoDS_Shape: ... class PrsDim_EqualRadiusRelation(PrsDim_Relation): - def __init__(self, aFirstEdge: TopoDS_Edge, aSecondEdge: TopoDS_Edge, aPlane: Geom_Plane) -> None: ... + def __init__( + self, aFirstEdge: TopoDS_Edge, aSecondEdge: TopoDS_Edge, aPlane: Geom_Plane + ) -> None: ... class PrsDim_FixRelation(PrsDim_Relation): @overload - def __init__(self, aShape: TopoDS_Shape, aPlane: Geom_Plane, aWire: TopoDS_Wire) -> None: ... + def __init__( + self, aShape: TopoDS_Shape, aPlane: Geom_Plane, aWire: TopoDS_Wire + ) -> None: ... @overload - def __init__(self, aShape: TopoDS_Shape, aPlane: Geom_Plane, aWire: TopoDS_Wire, aPosition: gp_Pnt, anArrowSize: Optional[float] = 0.01) -> None: ... + def __init__( + self, + aShape: TopoDS_Shape, + aPlane: Geom_Plane, + aWire: TopoDS_Wire, + aPosition: gp_Pnt, + anArrowSize: Optional[float] = 0.01, + ) -> None: ... @overload def __init__(self, aShape: TopoDS_Shape, aPlane: Geom_Plane) -> None: ... @overload - def __init__(self, aShape: TopoDS_Shape, aPlane: Geom_Plane, aPosition: gp_Pnt, anArrowSize: Optional[float] = 0.01) -> None: ... + def __init__( + self, + aShape: TopoDS_Shape, + aPlane: Geom_Plane, + aPosition: gp_Pnt, + anArrowSize: Optional[float] = 0.01, + ) -> None: ... def IsMovable(self) -> bool: ... def SetWire(self, aWire: TopoDS_Wire) -> None: ... def Wire(self) -> TopoDS_Wire: ... class PrsDim_IdenticRelation(PrsDim_Relation): - def __init__(self, FirstShape: TopoDS_Shape, SecondShape: TopoDS_Shape, aPlane: Geom_Plane) -> None: ... + def __init__( + self, FirstShape: TopoDS_Shape, SecondShape: TopoDS_Shape, aPlane: Geom_Plane + ) -> None: ... def AddUser(self, theUser: Standard_Transient) -> None: ... def ClearUsers(self) -> None: ... def HasUsers(self) -> bool: ... @@ -401,11 +676,20 @@ class PrsDim_LengthDimension(PrsDim_Dimension): @overload def __init__(self, theFace: TopoDS_Face, theEdge: TopoDS_Edge) -> None: ... @overload - def __init__(self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face) -> None: ... + def __init__( + self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face + ) -> None: ... @overload - def __init__(self, theFirstPoint: gp_Pnt, theSecondPoint: gp_Pnt, thePlane: gp_Pln) -> None: ... + def __init__( + self, theFirstPoint: gp_Pnt, theSecondPoint: gp_Pnt, thePlane: gp_Pln + ) -> None: ... @overload - def __init__(self, theFirstShape: TopoDS_Shape, theSecondShape: TopoDS_Shape, thePlane: gp_Pln) -> None: ... + def __init__( + self, + theFirstShape: TopoDS_Shape, + theSecondShape: TopoDS_Shape, + thePlane: gp_Pln, + ) -> None: ... @overload def __init__(self, theEdge: TopoDS_Edge, thePlane: gp_Pln) -> None: ... def FirstPoint(self) -> gp_Pnt: ... @@ -415,42 +699,76 @@ class PrsDim_LengthDimension(PrsDim_Dimension): def GetTextPosition(self) -> gp_Pnt: ... def SecondPoint(self) -> gp_Pnt: ... def SecondShape(self) -> TopoDS_Shape: ... - def SetDirection(self, theDirection: gp_Dir, theUseDirection: Optional[bool] = True) -> None: ... + def SetDirection( + self, theDirection: gp_Dir, theUseDirection: Optional[bool] = True + ) -> None: ... def SetDisplayUnits(self, theUnits: str) -> None: ... @overload - def SetMeasuredGeometry(self, theFirstPoint: gp_Pnt, theSecondPoint: gp_Pnt, thePlane: gp_Pln) -> None: ... + def SetMeasuredGeometry( + self, theFirstPoint: gp_Pnt, theSecondPoint: gp_Pnt, thePlane: gp_Pln + ) -> None: ... @overload def SetMeasuredGeometry(self, theEdge: TopoDS_Edge, thePlane: gp_Pln) -> None: ... @overload - def SetMeasuredGeometry(self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face) -> None: ... + def SetMeasuredGeometry( + self, theFirstFace: TopoDS_Face, theSecondFace: TopoDS_Face + ) -> None: ... @overload - def SetMeasuredGeometry(self, theFace: TopoDS_Face, theEdge: TopoDS_Edge) -> None: ... - def SetMeasuredShapes(self, theFirstShape: TopoDS_Shape, theSecondShape: TopoDS_Shape) -> None: ... + def SetMeasuredGeometry( + self, theFace: TopoDS_Face, theEdge: TopoDS_Edge + ) -> None: ... + def SetMeasuredShapes( + self, theFirstShape: TopoDS_Shape, theSecondShape: TopoDS_Shape + ) -> None: ... def SetModelUnits(self, theUnits: str) -> None: ... def SetTextPosition(self, theTextPos: gp_Pnt) -> None: ... class PrsDim_MidPointRelation(PrsDim_Relation): - def __init__(self, aSymmTool: TopoDS_Shape, FirstShape: TopoDS_Shape, SecondShape: TopoDS_Shape, aPlane: Geom_Plane) -> None: ... + def __init__( + self, + aSymmTool: TopoDS_Shape, + FirstShape: TopoDS_Shape, + SecondShape: TopoDS_Shape, + aPlane: Geom_Plane, + ) -> None: ... def GetTool(self) -> TopoDS_Shape: ... def IsMovable(self) -> bool: ... def SetTool(self, aMidPointTool: TopoDS_Shape) -> None: ... class PrsDim_OffsetDimension(PrsDim_Relation): - def __init__(self, FistShape: TopoDS_Shape, SecondShape: TopoDS_Shape, aVal: float, aText: str) -> None: ... + def __init__( + self, + FistShape: TopoDS_Shape, + SecondShape: TopoDS_Shape, + aVal: float, + aText: str, + ) -> None: ... def IsMovable(self) -> bool: ... def KindOfDimension(self) -> PrsDim_KindOfDimension: ... def SetRelativePos(self, aTrsf: gp_Trsf) -> None: ... class PrsDim_ParallelRelation(PrsDim_Relation): @overload - def __init__(self, aFShape: TopoDS_Shape, aSShape: TopoDS_Shape, aPlane: Geom_Plane) -> None: ... - @overload - def __init__(self, aFShape: TopoDS_Shape, aSShape: TopoDS_Shape, aPlane: Geom_Plane, aPosition: gp_Pnt, aSymbolPrs: DsgPrs_ArrowSide, anArrowSize: Optional[float] = 0.01) -> None: ... + def __init__( + self, aFShape: TopoDS_Shape, aSShape: TopoDS_Shape, aPlane: Geom_Plane + ) -> None: ... + @overload + def __init__( + self, + aFShape: TopoDS_Shape, + aSShape: TopoDS_Shape, + aPlane: Geom_Plane, + aPosition: gp_Pnt, + aSymbolPrs: DsgPrs_ArrowSide, + anArrowSize: Optional[float] = 0.01, + ) -> None: ... def IsMovable(self) -> bool: ... class PrsDim_PerpendicularRelation(PrsDim_Relation): @overload - def __init__(self, aFShape: TopoDS_Shape, aSShape: TopoDS_Shape, aPlane: Geom_Plane) -> None: ... + def __init__( + self, aFShape: TopoDS_Shape, aSShape: TopoDS_Shape, aPlane: Geom_Plane + ) -> None: ... @overload def __init__(self, aFShape: TopoDS_Shape, aSShape: TopoDS_Shape) -> None: ... @@ -470,23 +788,45 @@ class PrsDim_RadiusDimension(PrsDim_Dimension): @overload def SetMeasuredGeometry(self, theCircle: gp_Circ) -> None: ... @overload - def SetMeasuredGeometry(self, theCircle: gp_Circ, theAnchorPoint: gp_Pnt, theHasAnchor: Optional[bool] = True) -> None: ... + def SetMeasuredGeometry( + self, + theCircle: gp_Circ, + theAnchorPoint: gp_Pnt, + theHasAnchor: Optional[bool] = True, + ) -> None: ... @overload def SetMeasuredGeometry(self, theShape: TopoDS_Shape) -> None: ... @overload - def SetMeasuredGeometry(self, theShape: TopoDS_Shape, theAnchorPoint: gp_Pnt, theHasAnchor: Optional[bool] = True) -> None: ... + def SetMeasuredGeometry( + self, + theShape: TopoDS_Shape, + theAnchorPoint: gp_Pnt, + theHasAnchor: Optional[bool] = True, + ) -> None: ... def SetModelUnits(self, theUnits: str) -> None: ... def SetTextPosition(self, theTextPos: gp_Pnt) -> None: ... def Shape(self) -> TopoDS_Shape: ... class PrsDim_SymmetricRelation(PrsDim_Relation): - def __init__(self, aSymmTool: TopoDS_Shape, FirstShape: TopoDS_Shape, SecondShape: TopoDS_Shape, aPlane: Geom_Plane) -> None: ... + def __init__( + self, + aSymmTool: TopoDS_Shape, + FirstShape: TopoDS_Shape, + SecondShape: TopoDS_Shape, + aPlane: Geom_Plane, + ) -> None: ... def GetTool(self) -> TopoDS_Shape: ... def IsMovable(self) -> bool: ... def SetTool(self, aSymmetricTool: TopoDS_Shape) -> None: ... class PrsDim_TangentRelation(PrsDim_Relation): - def __init__(self, aFShape: TopoDS_Shape, aSShape: TopoDS_Shape, aPlane: Geom_Plane, anExternRef: Optional[int] = 0) -> None: ... + def __init__( + self, + aFShape: TopoDS_Shape, + aSShape: TopoDS_Shape, + aPlane: Geom_Plane, + anExternRef: Optional[int] = 0, + ) -> None: ... def ExternRef(self) -> int: ... def SetExternRef(self, aRef: int) -> None: ... @@ -494,15 +834,30 @@ class PrsDim_MaxRadiusDimension(PrsDim_EllipseRadiusDimension): @overload def __init__(self, aShape: TopoDS_Shape, aVal: float, aText: str) -> None: ... @overload - def __init__(self, aShape: TopoDS_Shape, aVal: float, aText: str, aPosition: gp_Pnt, aSymbolPrs: DsgPrs_ArrowSide, anArrowSize: Optional[float] = 0.0) -> None: ... + def __init__( + self, + aShape: TopoDS_Shape, + aVal: float, + aText: str, + aPosition: gp_Pnt, + aSymbolPrs: DsgPrs_ArrowSide, + anArrowSize: Optional[float] = 0.0, + ) -> None: ... class PrsDim_MinRadiusDimension(PrsDim_EllipseRadiusDimension): @overload def __init__(self, aShape: TopoDS_Shape, aVal: float, aText: str) -> None: ... @overload - def __init__(self, aShape: TopoDS_Shape, aVal: float, aText: str, aPosition: gp_Pnt, aSymbolPrs: DsgPrs_ArrowSide, anArrowSize: Optional[float] = 0.0) -> None: ... + def __init__( + self, + aShape: TopoDS_Shape, + aVal: float, + aText: str, + aPosition: gp_Pnt, + aSymbolPrs: DsgPrs_ArrowSide, + anArrowSize: Optional[float] = 0.0, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/PrsMgr.i b/src/SWIG_files/wrapper/PrsMgr.i index 3cdc85638..d14b9f682 100644 --- a/src/SWIG_files/wrapper/PrsMgr.i +++ b/src/SWIG_files/wrapper/PrsMgr.i @@ -155,6 +155,12 @@ PrsMgr_TOP_ProjectorDependent = PrsMgr_TypeOfPresentation3d.PrsMgr_TOP_Projector %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = PrsMgr_ListIteratorOfListOfPresentableObjects(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(PrsMgr_ListOfPresentableObjectsIter) NCollection_TListIterator; @@ -164,6 +170,12 @@ PrsMgr_TOP_ProjectorDependent = PrsMgr_TypeOfPresentation3d.PrsMgr_TOP_Projector %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = PrsMgr_ListIteratorOfListOfPresentations(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(PrsMgr_Presentations) NCollection_Sequence>; diff --git a/src/SWIG_files/wrapper/PrsMgr.pyi b/src/SWIG_files/wrapper/PrsMgr.pyi index d52a5ceb9..a5cfc3639 100644 --- a/src/SWIG_files/wrapper/PrsMgr.pyi +++ b/src/SWIG_files/wrapper/PrsMgr.pyi @@ -13,54 +13,70 @@ from OCC.Core.gp import * from OCC.Core.TColStd import * from OCC.Core.V3d import * -Handle_PrsMgr_Presentation3d = NewType("Handle_PrsMgr_Presentation3d", Handle_PrsMgr_Presentation) -Handle_PrsMgr_PresentationManager3d = NewType("Handle_PrsMgr_PresentationManager3d", Handle_PrsMgr_PresentationManager) +Handle_PrsMgr_Presentation3d = NewType( + "Handle_PrsMgr_Presentation3d", Handle_PrsMgr_Presentation +) +Handle_PrsMgr_PresentationManager3d = NewType( + "Handle_PrsMgr_PresentationManager3d", Handle_PrsMgr_PresentationManager +) Prs3d_Presentation = NewType("Prs3d_Presentation", Graphic3d_Structure) PrsMgr_Presentation3d = NewType("PrsMgr_Presentation3d", PrsMgr_Presentation) -PrsMgr_PresentationManager3d = NewType("PrsMgr_PresentationManager3d", PrsMgr_PresentationManager) +PrsMgr_PresentationManager3d = NewType( + "PrsMgr_PresentationManager3d", PrsMgr_PresentationManager +) class PrsMgr_ListOfPresentableObjects: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: PrsMgr_ListOfPresentableObjects + ) -> PrsMgr_ListOfPresentableObjects: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class PrsMgr_ListOfPresentations: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class PrsMgr_ListOfPresentations: + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: PrsMgr_ListOfPresentations + ) -> PrsMgr_ListOfPresentations: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class PrsMgr_Presentations: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class PrsMgr_Presentations: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class PrsMgr_DisplayStatus(IntEnum): PrsMgr_DisplayStatus_Displayed: int = ... @@ -82,12 +98,16 @@ class PrsMgr_TypeOfPresentation3d(IntEnum): PrsMgr_TOP_ProjectorDependent: int = ... PrsMgr_TOP_AllView = PrsMgr_TypeOfPresentation3d.PrsMgr_TOP_AllView -PrsMgr_TOP_ProjectorDependent = PrsMgr_TypeOfPresentation3d.PrsMgr_TOP_ProjectorDependent +PrsMgr_TOP_ProjectorDependent = ( + PrsMgr_TypeOfPresentation3d.PrsMgr_TOP_ProjectorDependent +) class PrsMgr_PresentableObject(Standard_Transient): def AcceptDisplayMode(self, theMode: int) -> bool: ... def AddChild(self, theObject: PrsMgr_PresentableObject) -> None: ... - def AddChildWithCurrentTransformation(self, theObject: PrsMgr_PresentableObject) -> None: ... + def AddChildWithCurrentTransformation( + self, theObject: PrsMgr_PresentableObject + ) -> None: ... def AddClipPlane(self, thePlane: Graphic3d_ClipPlane) -> None: ... def Attributes(self) -> Prs3d_Drawer: ... def BoundingBox(self, theBndBox: Bnd_Box) -> None: ... @@ -99,7 +119,7 @@ class PrsMgr_PresentableObject(Standard_Transient): def DefaultDisplayMode(self) -> int: ... def DisplayMode(self) -> int: ... def DisplayStatus(self) -> PrsMgr_DisplayStatus: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def DynamicHilightAttributes(self) -> Prs3d_Drawer: ... def HasColor(self) -> bool: ... def HasDisplayMode(self) -> bool: ... @@ -123,13 +143,17 @@ class PrsMgr_PresentableObject(Standard_Transient): def Presentations(self) -> PrsMgr_Presentations: ... def RecomputeTransformation(self, theProjector: Graphic3d_Camera) -> None: ... def RemoveChild(self, theObject: PrsMgr_PresentableObject) -> None: ... - def RemoveChildWithRestoreTransformation(self, theObject: PrsMgr_PresentableObject) -> None: ... + def RemoveChildWithRestoreTransformation( + self, theObject: PrsMgr_PresentableObject + ) -> None: ... def RemoveClipPlane(self, thePlane: Graphic3d_ClipPlane) -> None: ... def ResetTransformation(self) -> None: ... def SetAttributes(self, theDrawer: Prs3d_Drawer) -> None: ... def SetClipPlanes(self, thePlanes: Graphic3d_SequenceOfHClipPlane) -> None: ... def SetColor(self, theColor: Quantity_Color) -> None: ... - def SetCurrentFacingModel(self, theModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE) -> None: ... + def SetCurrentFacingModel( + self, theModel: Optional[Aspect_TypeOfFacingModel] = Aspect_TOFM_BOTH_SIDE + ) -> None: ... def SetDisplayMode(self, theMode: int) -> None: ... def SetDynamicHilightAttributes(self, theDrawer: Prs3d_Drawer) -> None: ... def SetHilightAttributes(self, theDrawer: Prs3d_Drawer) -> None: ... @@ -142,7 +166,9 @@ class PrsMgr_PresentableObject(Standard_Transient): def SetLocalTransformation(self, theTrsf: TopLoc_Datum3D) -> None: ... def SetMaterial(self, aName: Graphic3d_MaterialAspect) -> None: ... def SetMutable(self, theIsMutable: bool) -> None: ... - def SetPolygonOffsets(self, aMode: int, aFactor: Optional[float] = 1.0, aUnits: Optional[float] = 0.0) -> None: ... + def SetPolygonOffsets( + self, aMode: int, aFactor: Optional[float] = 1.0, aUnits: Optional[float] = 0.0 + ) -> None: ... def SetPropagateVisualState(self, theFlag: bool) -> None: ... @overload def SetToUpdate(self, theMode: int) -> None: ... @@ -181,7 +207,7 @@ class PrsMgr_Presentation(Graphic3d_Structure): def Clear(self, theWithDestruction: Optional[bool] = True) -> None: ... def Compute(self) -> None: ... def Display(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Erase(self) -> None: ... def Highlight(self, theStyle: Prs3d_Drawer) -> None: ... def IsDisplayed(self) -> bool: ... @@ -196,31 +222,87 @@ class PrsMgr_PresentationManager(Standard_Transient): def __init__(self, theStructureManager: Graphic3d_StructureManager) -> None: ... def AddToImmediateList(self, thePrs: Prs3d_Presentation) -> None: ... def BeginImmediateDraw(self) -> None: ... - def Clear(self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0) -> None: ... + def Clear( + self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0 + ) -> None: ... def ClearImmediateDraw(self) -> None: ... - def Color(self, thePrsObject: PrsMgr_PresentableObject, theStyle: Prs3d_Drawer, theMode: Optional[int] = 0, theSelObj: Optional[PrsMgr_PresentableObject] = None, theImmediateStructLayerId: Optional[int] = Graphic3d_ZLayerId_Topmost) -> None: ... - def Connect(self, thePrsObject: PrsMgr_PresentableObject, theOtherObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0, theOtherMode: Optional[int] = 0) -> None: ... - def Display(self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0) -> None: ... - def DisplayPriority(self, thePrsObject: PrsMgr_PresentableObject, theMode: int) -> Graphic3d_DisplayPriority: ... + def Color( + self, + thePrsObject: PrsMgr_PresentableObject, + theStyle: Prs3d_Drawer, + theMode: Optional[int] = 0, + theSelObj: Optional[PrsMgr_PresentableObject] = None, + theImmediateStructLayerId: Optional[int] = Graphic3d_ZLayerId_Topmost, + ) -> None: ... + def Connect( + self, + thePrsObject: PrsMgr_PresentableObject, + theOtherObject: PrsMgr_PresentableObject, + theMode: Optional[int] = 0, + theOtherMode: Optional[int] = 0, + ) -> None: ... + def Display( + self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0 + ) -> None: ... + def DisplayPriority( + self, thePrsObject: PrsMgr_PresentableObject, theMode: int + ) -> Graphic3d_DisplayPriority: ... def EndImmediateDraw(self, theViewer: V3d_Viewer) -> None: ... - def Erase(self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0) -> None: ... - def GetZLayer(self, thePrsObject: PrsMgr_PresentableObject) -> Graphic3d_ZLayerId: ... - def HasPresentation(self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0) -> bool: ... - def IsDisplayed(self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0) -> bool: ... - def IsHighlighted(self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0) -> bool: ... + def Erase( + self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0 + ) -> None: ... + def GetZLayer( + self, thePrsObject: PrsMgr_PresentableObject + ) -> Graphic3d_ZLayerId: ... + def HasPresentation( + self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0 + ) -> bool: ... + def IsDisplayed( + self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0 + ) -> bool: ... + def IsHighlighted( + self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0 + ) -> bool: ... def IsImmediateModeOn(self) -> bool: ... - def Presentation(self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0, theToCreate: Optional[bool] = False, theSelObj: Optional[PrsMgr_PresentableObject] = None) -> PrsMgr_Presentation: ... + def Presentation( + self, + thePrsObject: PrsMgr_PresentableObject, + theMode: Optional[int] = 0, + theToCreate: Optional[bool] = False, + theSelObj: Optional[PrsMgr_PresentableObject] = None, + ) -> PrsMgr_Presentation: ... def RedrawImmediate(self, theViewer: V3d_Viewer) -> None: ... - def SetDisplayPriority(self, thePrsObject: PrsMgr_PresentableObject, theMode: int, theNewPrior: Graphic3d_DisplayPriority) -> None: ... - def SetVisibility(self, thePrsObject: PrsMgr_PresentableObject, theMode: int, theValue: bool) -> None: ... - def SetZLayer(self, thePrsObject: PrsMgr_PresentableObject, theLayerId: int) -> None: ... + def SetDisplayPriority( + self, + thePrsObject: PrsMgr_PresentableObject, + theMode: int, + theNewPrior: Graphic3d_DisplayPriority, + ) -> None: ... + def SetVisibility( + self, thePrsObject: PrsMgr_PresentableObject, theMode: int, theValue: bool + ) -> None: ... + def SetZLayer( + self, thePrsObject: PrsMgr_PresentableObject, theLayerId: int + ) -> None: ... def StructureManager(self) -> Graphic3d_StructureManager: ... - def Transform(self, thePrsObject: PrsMgr_PresentableObject, theTransformation: TopLoc_Datum3D, theMode: Optional[int] = 0) -> None: ... + def Transform( + self, + thePrsObject: PrsMgr_PresentableObject, + theTransformation: TopLoc_Datum3D, + theMode: Optional[int] = 0, + ) -> None: ... def Unhighlight(self, thePrsObject: PrsMgr_PresentableObject) -> None: ... - def Update(self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0) -> None: ... - def UpdateHighlightTrsf(self, theViewer: V3d_Viewer, theObj: PrsMgr_PresentableObject, theMode: Optional[int] = 0, theSelObj: Optional[PrsMgr_PresentableObject] = None) -> None: ... + def Update( + self, thePrsObject: PrsMgr_PresentableObject, theMode: Optional[int] = 0 + ) -> None: ... + def UpdateHighlightTrsf( + self, + theViewer: V3d_Viewer, + theObj: PrsMgr_PresentableObject, + theMode: Optional[int] = 0, + theSelObj: Optional[PrsMgr_PresentableObject] = None, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Quantity.pyi b/src/SWIG_files/wrapper/Quantity.pyi index cf4acbe54..25f08bfbd 100644 --- a/src/SWIG_files/wrapper/Quantity.pyi +++ b/src/SWIG_files/wrapper/Quantity.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.TCollection import * - class Quantity_Array1OfColor: @overload def __init__(self) -> None: ... @@ -842,7 +841,9 @@ Quantity_NOC_LIGHTGOLDENROD1 = Quantity_NameOfColor.Quantity_NOC_LIGHTGOLDENROD1 Quantity_NOC_LIGHTGOLDENROD2 = Quantity_NameOfColor.Quantity_NOC_LIGHTGOLDENROD2 Quantity_NOC_LIGHTGOLDENROD3 = Quantity_NameOfColor.Quantity_NOC_LIGHTGOLDENROD3 Quantity_NOC_LIGHTGOLDENROD4 = Quantity_NameOfColor.Quantity_NOC_LIGHTGOLDENROD4 -Quantity_NOC_LIGHTGOLDENRODYELLOW = Quantity_NameOfColor.Quantity_NOC_LIGHTGOLDENRODYELLOW +Quantity_NOC_LIGHTGOLDENRODYELLOW = ( + Quantity_NameOfColor.Quantity_NOC_LIGHTGOLDENRODYELLOW +) Quantity_NOC_LIGHTGRAY = Quantity_NameOfColor.Quantity_NOC_LIGHTGRAY Quantity_NOC_LIGHTPINK = Quantity_NameOfColor.Quantity_NOC_LIGHTPINK Quantity_NOC_LIGHTPINK1 = Quantity_NameOfColor.Quantity_NOC_LIGHTPINK1 @@ -1094,7 +1095,9 @@ class Quantity_Color: @overload def __init__(self, theName: Quantity_NameOfColor) -> None: ... @overload - def __init__(self, theC1: float, theC2: float, theC3: float, theType: Quantity_TypeOfColor) -> None: ... + def __init__( + self, theC1: float, theC2: float, theC3: float, theType: Quantity_TypeOfColor + ) -> None: ... @overload def __init__(self, theRgb: float) -> None: ... @staticmethod @@ -1113,7 +1116,9 @@ class Quantity_Color: @staticmethod def ColorFromName(theColorNameString: str, theColor: Quantity_Color) -> bool: ... @staticmethod - def ColorToHex(theColor: Quantity_Color, theToPrefixHash: Optional[bool] = true) -> str: ... + def ColorToHex( + theColor: Quantity_Color, theToPrefixHash: Optional[bool] = true + ) -> str: ... @staticmethod def Convert_HLS_To_LinearRGB(theHls: float) -> float: ... @staticmethod @@ -1157,7 +1162,7 @@ class Quantity_Color: def Delta(self, theColor: Quantity_Color) -> Tuple[float, float]: ... def DeltaE2000(self, theOther: Quantity_Color) -> float: ... def Distance(self, theColor: Quantity_Color) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def Epsilon() -> float: ... def Green(self) -> float: ... @@ -1183,7 +1188,9 @@ class Quantity_Color: @overload def SetValues(self, theName: Quantity_NameOfColor) -> None: ... @overload - def SetValues(self, theC1: float, theC2: float, theC3: float, theType: Quantity_TypeOfColor) -> None: ... + def SetValues( + self, theC1: float, theC2: float, theC3: float, theType: Quantity_TypeOfColor + ) -> None: ... def SquareDistance(self, theColor: Quantity_Color) -> float: ... @staticmethod def StringName(theColor: Quantity_NameOfColor) -> str: ... @@ -1199,33 +1206,55 @@ class Quantity_ColorRGBA: @overload def __init__(self, theRgba: float) -> None: ... @overload - def __init__(self, theRed: float, theGreen: float, theBlue: float, theAlpha: float) -> None: ... + def __init__( + self, theRed: float, theGreen: float, theBlue: float, theAlpha: float + ) -> None: ... def Alpha(self) -> float: ... def ChangeRGB(self) -> Quantity_Color: ... @staticmethod - def ColorFromHex(theHexColorString: str, theColor: Quantity_ColorRGBA, theAlphaComponentIsOff: Optional[bool] = false) -> bool: ... + def ColorFromHex( + theHexColorString: str, + theColor: Quantity_ColorRGBA, + theAlphaComponentIsOff: Optional[bool] = false, + ) -> bool: ... @staticmethod - def ColorFromName(theColorNameString: str, theColor: Quantity_ColorRGBA) -> bool: ... + def ColorFromName( + theColorNameString: str, theColor: Quantity_ColorRGBA + ) -> bool: ... @staticmethod - def ColorToHex(theColor: Quantity_ColorRGBA, theToPrefixHash: Optional[bool] = true) -> str: ... + def ColorToHex( + theColor: Quantity_ColorRGBA, theToPrefixHash: Optional[bool] = true + ) -> str: ... @staticmethod def Convert_LinearRGB_To_sRGB(theRGB: float) -> float: ... @staticmethod def Convert_sRGB_To_LinearRGB(theRGB: float) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetRGB(self) -> Quantity_Color: ... def InitFromJson(self, json_string: str) -> bool: ... def IsDifferent(self, theOther: Quantity_ColorRGBA) -> bool: ... def IsEqual(self, theOther: Quantity_ColorRGBA) -> bool: ... def SetAlpha(self, theAlpha: float) -> None: ... def SetRGB(self, theRgb: Quantity_Color) -> None: ... - def SetValues(self, theRed: float, theGreen: float, theBlue: float, theAlpha: float) -> None: ... + def SetValues( + self, theRed: float, theGreen: float, theBlue: float, theAlpha: float + ) -> None: ... class Quantity_Date: @overload def __init__(self) -> None: ... @overload - def __init__(self, mm: int, dd: int, yyyy: int, hh: int, mn: int, ss: int, mis: Optional[int] = 0, mics: Optional[int] = 0) -> None: ... + def __init__( + self, + mm: int, + dd: int, + yyyy: int, + hh: int, + mn: int, + ss: int, + mis: Optional[int] = 0, + mics: Optional[int] = 0, + ) -> None: ... def Add(self, aPeriod: Quantity_Period) -> Quantity_Date: ... def Day(self) -> int: ... def Difference(self, anOther: Quantity_Date) -> Quantity_Period: ... @@ -1236,20 +1265,47 @@ class Quantity_Date: @staticmethod def IsLeap(yy: int) -> bool: ... @staticmethod - def IsValid(mm: int, dd: int, yy: int, hh: int, mn: int, ss: int, mis: Optional[int] = 0, mics: Optional[int] = 0) -> bool: ... + def IsValid( + mm: int, + dd: int, + yy: int, + hh: int, + mn: int, + ss: int, + mis: Optional[int] = 0, + mics: Optional[int] = 0, + ) -> bool: ... def MicroSecond(self) -> int: ... def MilliSecond(self) -> int: ... def Minute(self) -> int: ... def Month(self) -> int: ... def Second(self) -> int: ... - def SetValues(self, mm: int, dd: int, yy: int, hh: int, mn: int, ss: int, mis: Optional[int] = 0, mics: Optional[int] = 0) -> None: ... + def SetValues( + self, + mm: int, + dd: int, + yy: int, + hh: int, + mn: int, + ss: int, + mis: Optional[int] = 0, + mics: Optional[int] = 0, + ) -> None: ... def Subtract(self, aPeriod: Quantity_Period) -> Quantity_Date: ... def Values(self) -> Tuple[int, int, int, int, int, int, int, int]: ... def Year(self) -> int: ... class Quantity_Period: @overload - def __init__(self, dd: int, hh: int, mn: int, ss: int, mis: Optional[int] = 0, mics: Optional[int] = 0) -> None: ... + def __init__( + self, + dd: int, + hh: int, + mn: int, + ss: int, + mis: Optional[int] = 0, + mics: Optional[int] = 0, + ) -> None: ... @overload def __init__(self, ss: int, mics: Optional[int] = 0) -> None: ... def Add(self, anOther: Quantity_Period) -> Quantity_Period: ... @@ -1258,12 +1314,27 @@ class Quantity_Period: def IsShorter(self, anOther: Quantity_Period) -> bool: ... @overload @staticmethod - def IsValid(dd: int, hh: int, mn: int, ss: int, mis: Optional[int] = 0, mics: Optional[int] = 0) -> bool: ... + def IsValid( + dd: int, + hh: int, + mn: int, + ss: int, + mis: Optional[int] = 0, + mics: Optional[int] = 0, + ) -> bool: ... @overload @staticmethod def IsValid(ss: int, mics: Optional[int] = 0) -> bool: ... @overload - def SetValues(self, dd: int, hh: int, mn: int, ss: int, mis: Optional[int] = 0, mics: Optional[int] = 0) -> None: ... + def SetValues( + self, + dd: int, + hh: int, + mn: int, + ss: int, + mis: Optional[int] = 0, + mics: Optional[int] = 0, + ) -> None: ... @overload def SetValues(self, ss: int, mics: Optional[int] = 0) -> None: ... def Subtract(self, anOther: Quantity_Period) -> Quantity_Period: ... @@ -1280,4 +1351,3 @@ class Quantity_HArray1OfColor(Quantity_Array1OfColor, Standard_Transient): # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWGltf.pyi b/src/SWIG_files/wrapper/RWGltf.pyi index af4c4a0d7..40a25f588 100644 --- a/src/SWIG_files/wrapper/RWGltf.pyi +++ b/src/SWIG_files/wrapper/RWGltf.pyi @@ -27,13 +27,27 @@ class RWGltf_GltfAccessorCompType(IntEnum): RWGltf_GltfAccessorCompType_UInt32: int = ... RWGltf_GltfAccessorCompType_Float32: int = ... -RWGltf_GltfAccessorCompType_UNKNOWN = RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_UNKNOWN -RWGltf_GltfAccessorCompType_Int8 = RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_Int8 -RWGltf_GltfAccessorCompType_UInt8 = RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_UInt8 -RWGltf_GltfAccessorCompType_Int16 = RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_Int16 -RWGltf_GltfAccessorCompType_UInt16 = RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_UInt16 -RWGltf_GltfAccessorCompType_UInt32 = RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_UInt32 -RWGltf_GltfAccessorCompType_Float32 = RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_Float32 +RWGltf_GltfAccessorCompType_UNKNOWN = ( + RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_UNKNOWN +) +RWGltf_GltfAccessorCompType_Int8 = ( + RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_Int8 +) +RWGltf_GltfAccessorCompType_UInt8 = ( + RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_UInt8 +) +RWGltf_GltfAccessorCompType_Int16 = ( + RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_Int16 +) +RWGltf_GltfAccessorCompType_UInt16 = ( + RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_UInt16 +) +RWGltf_GltfAccessorCompType_UInt32 = ( + RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_UInt32 +) +RWGltf_GltfAccessorCompType_Float32 = ( + RWGltf_GltfAccessorCompType.RWGltf_GltfAccessorCompType_Float32 +) class RWGltf_GltfAccessorLayout(IntEnum): RWGltf_GltfAccessorLayout_UNKNOWN: int = ... @@ -45,14 +59,30 @@ class RWGltf_GltfAccessorLayout(IntEnum): RWGltf_GltfAccessorLayout_Mat3: int = ... RWGltf_GltfAccessorLayout_Mat4: int = ... -RWGltf_GltfAccessorLayout_UNKNOWN = RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_UNKNOWN -RWGltf_GltfAccessorLayout_Scalar = RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Scalar -RWGltf_GltfAccessorLayout_Vec2 = RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Vec2 -RWGltf_GltfAccessorLayout_Vec3 = RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Vec3 -RWGltf_GltfAccessorLayout_Vec4 = RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Vec4 -RWGltf_GltfAccessorLayout_Mat2 = RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Mat2 -RWGltf_GltfAccessorLayout_Mat3 = RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Mat3 -RWGltf_GltfAccessorLayout_Mat4 = RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Mat4 +RWGltf_GltfAccessorLayout_UNKNOWN = ( + RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_UNKNOWN +) +RWGltf_GltfAccessorLayout_Scalar = ( + RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Scalar +) +RWGltf_GltfAccessorLayout_Vec2 = ( + RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Vec2 +) +RWGltf_GltfAccessorLayout_Vec3 = ( + RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Vec3 +) +RWGltf_GltfAccessorLayout_Vec4 = ( + RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Vec4 +) +RWGltf_GltfAccessorLayout_Mat2 = ( + RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Mat2 +) +RWGltf_GltfAccessorLayout_Mat3 = ( + RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Mat3 +) +RWGltf_GltfAccessorLayout_Mat4 = ( + RWGltf_GltfAccessorLayout.RWGltf_GltfAccessorLayout_Mat4 +) class RWGltf_GltfAlphaMode(IntEnum): RWGltf_GltfAlphaMode_Opaque: int = ... @@ -89,9 +119,15 @@ class RWGltf_GltfBufferViewTarget(IntEnum): RWGltf_GltfBufferViewTarget_ARRAY_BUFFER: int = ... RWGltf_GltfBufferViewTarget_ELEMENT_ARRAY_BUFFER: int = ... -RWGltf_GltfBufferViewTarget_UNKNOWN = RWGltf_GltfBufferViewTarget.RWGltf_GltfBufferViewTarget_UNKNOWN -RWGltf_GltfBufferViewTarget_ARRAY_BUFFER = RWGltf_GltfBufferViewTarget.RWGltf_GltfBufferViewTarget_ARRAY_BUFFER -RWGltf_GltfBufferViewTarget_ELEMENT_ARRAY_BUFFER = RWGltf_GltfBufferViewTarget.RWGltf_GltfBufferViewTarget_ELEMENT_ARRAY_BUFFER +RWGltf_GltfBufferViewTarget_UNKNOWN = ( + RWGltf_GltfBufferViewTarget.RWGltf_GltfBufferViewTarget_UNKNOWN +) +RWGltf_GltfBufferViewTarget_ARRAY_BUFFER = ( + RWGltf_GltfBufferViewTarget.RWGltf_GltfBufferViewTarget_ARRAY_BUFFER +) +RWGltf_GltfBufferViewTarget_ELEMENT_ARRAY_BUFFER = ( + RWGltf_GltfBufferViewTarget.RWGltf_GltfBufferViewTarget_ELEMENT_ARRAY_BUFFER +) class RWGltf_GltfPrimitiveMode(IntEnum): RWGltf_GltfPrimitiveMode_UNKNOWN: int = ... @@ -103,14 +139,28 @@ class RWGltf_GltfPrimitiveMode(IntEnum): RWGltf_GltfPrimitiveMode_TriangleStrip: int = ... RWGltf_GltfPrimitiveMode_TriangleFan: int = ... -RWGltf_GltfPrimitiveMode_UNKNOWN = RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_UNKNOWN -RWGltf_GltfPrimitiveMode_Points = RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_Points +RWGltf_GltfPrimitiveMode_UNKNOWN = ( + RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_UNKNOWN +) +RWGltf_GltfPrimitiveMode_Points = ( + RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_Points +) RWGltf_GltfPrimitiveMode_Lines = RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_Lines -RWGltf_GltfPrimitiveMode_LineLoop = RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_LineLoop -RWGltf_GltfPrimitiveMode_LineStrip = RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_LineStrip -RWGltf_GltfPrimitiveMode_Triangles = RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_Triangles -RWGltf_GltfPrimitiveMode_TriangleStrip = RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_TriangleStrip -RWGltf_GltfPrimitiveMode_TriangleFan = RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_TriangleFan +RWGltf_GltfPrimitiveMode_LineLoop = ( + RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_LineLoop +) +RWGltf_GltfPrimitiveMode_LineStrip = ( + RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_LineStrip +) +RWGltf_GltfPrimitiveMode_Triangles = ( + RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_Triangles +) +RWGltf_GltfPrimitiveMode_TriangleStrip = ( + RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_TriangleStrip +) +RWGltf_GltfPrimitiveMode_TriangleFan = ( + RWGltf_GltfPrimitiveMode.RWGltf_GltfPrimitiveMode_TriangleFan +) class RWGltf_GltfRootElement(IntEnum): RWGltf_GltfRootElement_Asset: int = ... @@ -140,21 +190,37 @@ RWGltf_GltfRootElement_Scenes = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Sc RWGltf_GltfRootElement_Scene = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Scene RWGltf_GltfRootElement_Nodes = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Nodes RWGltf_GltfRootElement_Meshes = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Meshes -RWGltf_GltfRootElement_Accessors = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Accessors -RWGltf_GltfRootElement_BufferViews = RWGltf_GltfRootElement.RWGltf_GltfRootElement_BufferViews +RWGltf_GltfRootElement_Accessors = ( + RWGltf_GltfRootElement.RWGltf_GltfRootElement_Accessors +) +RWGltf_GltfRootElement_BufferViews = ( + RWGltf_GltfRootElement.RWGltf_GltfRootElement_BufferViews +) RWGltf_GltfRootElement_Buffers = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Buffers -RWGltf_GltfRootElement_NB_MANDATORY = RWGltf_GltfRootElement.RWGltf_GltfRootElement_NB_MANDATORY -RWGltf_GltfRootElement_Animations = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Animations -RWGltf_GltfRootElement_Materials = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Materials +RWGltf_GltfRootElement_NB_MANDATORY = ( + RWGltf_GltfRootElement.RWGltf_GltfRootElement_NB_MANDATORY +) +RWGltf_GltfRootElement_Animations = ( + RWGltf_GltfRootElement.RWGltf_GltfRootElement_Animations +) +RWGltf_GltfRootElement_Materials = ( + RWGltf_GltfRootElement.RWGltf_GltfRootElement_Materials +) RWGltf_GltfRootElement_Programs = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Programs RWGltf_GltfRootElement_Samplers = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Samplers RWGltf_GltfRootElement_Shaders = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Shaders RWGltf_GltfRootElement_Skins = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Skins -RWGltf_GltfRootElement_Techniques = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Techniques +RWGltf_GltfRootElement_Techniques = ( + RWGltf_GltfRootElement.RWGltf_GltfRootElement_Techniques +) RWGltf_GltfRootElement_Textures = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Textures RWGltf_GltfRootElement_Images = RWGltf_GltfRootElement.RWGltf_GltfRootElement_Images -RWGltf_GltfRootElement_ExtensionsUsed = RWGltf_GltfRootElement.RWGltf_GltfRootElement_ExtensionsUsed -RWGltf_GltfRootElement_ExtensionsRequired = RWGltf_GltfRootElement.RWGltf_GltfRootElement_ExtensionsRequired +RWGltf_GltfRootElement_ExtensionsUsed = ( + RWGltf_GltfRootElement.RWGltf_GltfRootElement_ExtensionsUsed +) +RWGltf_GltfRootElement_ExtensionsRequired = ( + RWGltf_GltfRootElement.RWGltf_GltfRootElement_ExtensionsRequired +) RWGltf_GltfRootElement_NB = RWGltf_GltfRootElement.RWGltf_GltfRootElement_NB class RWGltf_WriterTrsfFormat(IntEnum): @@ -162,11 +228,12 @@ class RWGltf_WriterTrsfFormat(IntEnum): RWGltf_WriterTrsfFormat_Mat4: int = ... RWGltf_WriterTrsfFormat_TRS: int = ... -RWGltf_WriterTrsfFormat_Compact = RWGltf_WriterTrsfFormat.RWGltf_WriterTrsfFormat_Compact +RWGltf_WriterTrsfFormat_Compact = ( + RWGltf_WriterTrsfFormat.RWGltf_WriterTrsfFormat_Compact +) RWGltf_WriterTrsfFormat_Mat4 = RWGltf_WriterTrsfFormat.RWGltf_WriterTrsfFormat_Mat4 RWGltf_WriterTrsfFormat_TRS = RWGltf_WriterTrsfFormat.RWGltf_WriterTrsfFormat_TRS - class RWGltf_CafReader(RWMesh_CafReader): def __init__(self) -> None: ... def IsDoublePrecision(self) -> bool: ... @@ -197,11 +264,27 @@ class RWGltf_CafWriter(Standard_Transient): def MeshNameFormat(self) -> RWMesh_NameFormat: ... def NodeNameFormat(self) -> RWMesh_NameFormat: ... @overload - def Perform(self, theDocument: TDocStd_Document, theRootLabels: TDF_LabelSequence, theLabelFilter: TColStd_MapOfAsciiString, theFileInfo: TColStd_IndexedDataMapOfStringString, theProgress: Message_ProgressRange) -> bool: ... + def Perform( + self, + theDocument: TDocStd_Document, + theRootLabels: TDF_LabelSequence, + theLabelFilter: TColStd_MapOfAsciiString, + theFileInfo: TColStd_IndexedDataMapOfStringString, + theProgress: Message_ProgressRange, + ) -> bool: ... @overload - def Perform(self, theDocument: TDocStd_Document, theFileInfo: TColStd_IndexedDataMapOfStringString, theProgress: Message_ProgressRange) -> bool: ... - def SetCompressionParameters(self, theDracoParameters: RWGltf_DracoParameters) -> None: ... - def SetCoordinateSystemConverter(self, theConverter: RWMesh_CoordinateSystemConverter) -> None: ... + def Perform( + self, + theDocument: TDocStd_Document, + theFileInfo: TColStd_IndexedDataMapOfStringString, + theProgress: Message_ProgressRange, + ) -> bool: ... + def SetCompressionParameters( + self, theDracoParameters: RWGltf_DracoParameters + ) -> None: ... + def SetCoordinateSystemConverter( + self, theConverter: RWMesh_CoordinateSystemConverter + ) -> None: ... def SetDefaultStyle(self, theStyle: XCAFPrs_Style) -> None: ... def SetForcedUVExport(self, theToForce: bool) -> None: ... def SetMergeFaces(self, theToMerge: bool) -> None: ... @@ -231,7 +314,9 @@ class RWGltf_GltfFace(Standard_Transient): class RWGltf_GltfLatePrimitiveArray(RWMesh_TriangulationSource): def __init__(self, theId: str, theName: str) -> None: ... - def AddPrimArrayData(self, theType: RWGltf_GltfArrayType) -> RWGltf_GltfPrimArrayData: ... + def AddPrimArrayData( + self, theType: RWGltf_GltfArrayType + ) -> RWGltf_GltfPrimArrayData: ... def BaseColor(self) -> Quantity_ColorRGBA: ... def Data(self) -> False: ... def HasDeferredData(self) -> bool: ... @@ -250,17 +335,25 @@ class RWGltf_GltfLatePrimitiveArray(RWMesh_TriangulationSource): class RWGltf_GltfMaterialMap(RWMesh_MaterialMap): def __init__(self, theFile: str, theDefSamplerId: int) -> None: ... def AddGlbImages(self, theStyle: XCAFPrs_Style) -> str: ... - def AddImages(self, theWriter: RWGltf_GltfOStreamWriter, theStyle: XCAFPrs_Style) -> bool: ... - def AddMaterial(self, theWriter: RWGltf_GltfOStreamWriter, theStyle: XCAFPrs_Style) -> bool: ... - def AddTextures(self, theWriter: RWGltf_GltfOStreamWriter, theStyle: XCAFPrs_Style) -> bool: ... - def FlushGlbBufferViews(self, theWriter: RWGltf_GltfOStreamWriter, theBinDataBufferId: int) -> int: ... + def AddImages( + self, theWriter: RWGltf_GltfOStreamWriter, theStyle: XCAFPrs_Style + ) -> bool: ... + def AddMaterial( + self, theWriter: RWGltf_GltfOStreamWriter, theStyle: XCAFPrs_Style + ) -> bool: ... + def AddTextures( + self, theWriter: RWGltf_GltfOStreamWriter, theStyle: XCAFPrs_Style + ) -> bool: ... + def FlushGlbBufferViews( + self, theWriter: RWGltf_GltfOStreamWriter, theBinDataBufferId: int + ) -> int: ... def FlushGlbImages(self, theWriter: RWGltf_GltfOStreamWriter) -> None: ... def NbImages(self) -> int: ... def NbTextures(self) -> int: ... @staticmethod def baseColorTexture(theMat: XCAFDoc_VisMaterial) -> Image_Texture: ... -class RWGltf_GltfOStreamWriter(): +class RWGltf_GltfOStreamWriter: pass class RWGltf_GltfPrimArrayData: @@ -269,7 +362,7 @@ class RWGltf_GltfPrimArrayData: @overload def __init__(self, theType: RWGltf_GltfArrayType) -> None: ... -class RWGltf_GltfSceneNodeMap(): +class RWGltf_GltfSceneNodeMap: def __init__(self) -> None: ... def FindIndex(self, theNodeId: str) -> int: ... @@ -281,12 +374,13 @@ class RWGltf_MaterialMetallicRoughness(Standard_Transient): class RWGltf_TriangulationReader(RWMesh_TriangulationReader): def __init__(self) -> None: ... - def LoadStreamData(self, theSourceMesh: RWMesh_TriangulationSource, theDestMesh: Poly_Triangulation) -> bool: ... + def LoadStreamData( + self, theSourceMesh: RWMesh_TriangulationSource, theDestMesh: Poly_Triangulation + ) -> bool: ... -#classnotwrapped +# classnotwrapped class RWGltf_GltfSharedIStream: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWHeaderSection.pyi b/src/SWIG_files/wrapper/RWHeaderSection.pyi index ac6aa1721..297c15380 100644 --- a/src/SWIG_files/wrapper/RWHeaderSection.pyi +++ b/src/SWIG_files/wrapper/RWHeaderSection.pyi @@ -9,32 +9,69 @@ from OCC.Core.HeaderSection import * from OCC.Core.TCollection import * from OCC.Core.TColStd import * - class rwheadersection: @staticmethod def Init() -> None: ... class RWHeaderSection_GeneralModule(StepData_GeneralModule): def __init__(self) -> None: ... - def CheckCase(self, CN: int, ent: Standard_Transient, shares: Interface_ShareTool, ach: Interface_Check) -> None: ... - def CopyCase(self, CN: int, entfrom: Standard_Transient, entto: Standard_Transient, TC: Interface_CopyTool) -> None: ... - def FillSharedCase(self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator) -> None: ... + def CheckCase( + self, + CN: int, + ent: Standard_Transient, + shares: Interface_ShareTool, + ach: Interface_Check, + ) -> None: ... + def CopyCase( + self, + CN: int, + entfrom: Standard_Transient, + entto: Standard_Transient, + TC: Interface_CopyTool, + ) -> None: ... + def FillSharedCase( + self, CN: int, ent: Standard_Transient, iter: Interface_EntityIterator + ) -> None: ... def NewVoid(self, CN: int, ent: Standard_Transient) -> bool: ... class RWHeaderSection_RWFileDescription: def __init__(self) -> None: ... - def ReadStep(self, data: StepData_StepReaderData, num: int, ach: Interface_Check, ent: HeaderSection_FileDescription) -> None: ... - def WriteStep(self, SW: StepData_StepWriter, ent: HeaderSection_FileDescription) -> None: ... + def ReadStep( + self, + data: StepData_StepReaderData, + num: int, + ach: Interface_Check, + ent: HeaderSection_FileDescription, + ) -> None: ... + def WriteStep( + self, SW: StepData_StepWriter, ent: HeaderSection_FileDescription + ) -> None: ... class RWHeaderSection_RWFileName: def __init__(self) -> None: ... - def ReadStep(self, data: StepData_StepReaderData, num: int, ach: Interface_Check, ent: HeaderSection_FileName) -> None: ... - def WriteStep(self, SW: StepData_StepWriter, ent: HeaderSection_FileName) -> None: ... + def ReadStep( + self, + data: StepData_StepReaderData, + num: int, + ach: Interface_Check, + ent: HeaderSection_FileName, + ) -> None: ... + def WriteStep( + self, SW: StepData_StepWriter, ent: HeaderSection_FileName + ) -> None: ... class RWHeaderSection_RWFileSchema: def __init__(self) -> None: ... - def ReadStep(self, data: StepData_StepReaderData, num: int, ach: Interface_Check, ent: HeaderSection_FileSchema) -> None: ... - def WriteStep(self, SW: StepData_StepWriter, ent: HeaderSection_FileSchema) -> None: ... + def ReadStep( + self, + data: StepData_StepReaderData, + num: int, + ach: Interface_Check, + ent: HeaderSection_FileSchema, + ) -> None: ... + def WriteStep( + self, SW: StepData_StepWriter, ent: HeaderSection_FileSchema + ) -> None: ... class RWHeaderSection_ReadWriteModule(StepData_ReadWriteModule): def __init__(self) -> None: ... @@ -43,11 +80,19 @@ class RWHeaderSection_ReadWriteModule(StepData_ReadWriteModule): @overload def CaseStep(self, types: TColStd_SequenceOfAsciiString) -> int: ... def IsComplex(self, CN: int) -> bool: ... - def ReadStep(self, CN: int, data: StepData_StepReaderData, num: int, ach: Interface_Check, ent: Standard_Transient) -> None: ... + def ReadStep( + self, + CN: int, + data: StepData_StepReaderData, + num: int, + ach: Interface_Check, + ent: Standard_Transient, + ) -> None: ... def StepType(self, CN: int) -> str: ... - def WriteStep(self, CN: int, SW: StepData_StepWriter, ent: Standard_Transient) -> None: ... + def WriteStep( + self, CN: int, SW: StepData_StepWriter, ent: Standard_Transient + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWMesh.pyi b/src/SWIG_files/wrapper/RWMesh.pyi index 7b5fe9faa..fb372516d 100644 --- a/src/SWIG_files/wrapper/RWMesh.pyi +++ b/src/SWIG_files/wrapper/RWMesh.pyi @@ -18,13 +18,14 @@ from OCC.Core.Poly import * from OCC.Core.OSD import * from OCC.Core.TopLoc import * - class RWMesh_CafReaderStatusEx(IntEnum): RWMesh_CafReaderStatusEx_NONE: int = ... RWMesh_CafReaderStatusEx_Partial: int = ... RWMesh_CafReaderStatusEx_NONE = RWMesh_CafReaderStatusEx.RWMesh_CafReaderStatusEx_NONE -RWMesh_CafReaderStatusEx_Partial = RWMesh_CafReaderStatusEx.RWMesh_CafReaderStatusEx_Partial +RWMesh_CafReaderStatusEx_Partial = ( + RWMesh_CafReaderStatusEx.RWMesh_CafReaderStatusEx_Partial +) class RWMesh_CoordinateSystem(IntEnum): RWMesh_CoordinateSystem_Undefined: int = ... @@ -35,10 +36,18 @@ class RWMesh_CoordinateSystem(IntEnum): RWMesh_CoordinateSystem_Zup: int = ... RWMesh_CoordinateSystem_Yup: int = ... -RWMesh_CoordinateSystem_Undefined = RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_Undefined -RWMesh_CoordinateSystem_posYfwd_posZup = RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_posYfwd_posZup -RWMesh_CoordinateSystem_negZfwd_posYup = RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_negZfwd_posYup -RWMesh_CoordinateSystem_Blender = RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_Blender +RWMesh_CoordinateSystem_Undefined = ( + RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_Undefined +) +RWMesh_CoordinateSystem_posYfwd_posZup = ( + RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_posYfwd_posZup +) +RWMesh_CoordinateSystem_negZfwd_posYup = ( + RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_negZfwd_posYup +) +RWMesh_CoordinateSystem_Blender = ( + RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_Blender +) RWMesh_CoordinateSystem_glTF = RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_glTF RWMesh_CoordinateSystem_Zup = RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_Zup RWMesh_CoordinateSystem_Yup = RWMesh_CoordinateSystem.RWMesh_CoordinateSystem_Yup @@ -55,14 +64,24 @@ class RWMesh_NameFormat(IntEnum): RWMesh_NameFormat_Empty = RWMesh_NameFormat.RWMesh_NameFormat_Empty RWMesh_NameFormat_Product = RWMesh_NameFormat.RWMesh_NameFormat_Product RWMesh_NameFormat_Instance = RWMesh_NameFormat.RWMesh_NameFormat_Instance -RWMesh_NameFormat_InstanceOrProduct = RWMesh_NameFormat.RWMesh_NameFormat_InstanceOrProduct -RWMesh_NameFormat_ProductOrInstance = RWMesh_NameFormat.RWMesh_NameFormat_ProductOrInstance -RWMesh_NameFormat_ProductAndInstance = RWMesh_NameFormat.RWMesh_NameFormat_ProductAndInstance -RWMesh_NameFormat_ProductAndInstanceAndOcaf = RWMesh_NameFormat.RWMesh_NameFormat_ProductAndInstanceAndOcaf +RWMesh_NameFormat_InstanceOrProduct = ( + RWMesh_NameFormat.RWMesh_NameFormat_InstanceOrProduct +) +RWMesh_NameFormat_ProductOrInstance = ( + RWMesh_NameFormat.RWMesh_NameFormat_ProductOrInstance +) +RWMesh_NameFormat_ProductAndInstance = ( + RWMesh_NameFormat.RWMesh_NameFormat_ProductAndInstance +) +RWMesh_NameFormat_ProductAndInstanceAndOcaf = ( + RWMesh_NameFormat.RWMesh_NameFormat_ProductAndInstanceAndOcaf +) class rwmesh: @staticmethod - def FormatName(theFormat: RWMesh_NameFormat, theLabel: TDF_Label, theRefLabel: TDF_Label) -> str: ... + def FormatName( + theFormat: RWMesh_NameFormat, theLabel: TDF_Label, theRefLabel: TDF_Label + ) -> str: ... @staticmethod def ReadNameAttribute(theLabel: TDF_Label) -> str: ... @@ -80,13 +99,29 @@ class RWMesh_CafReader(Standard_Transient): @overload def Perform(self, theFile: str, theProgress: Message_ProgressRange) -> bool: ... @overload - def Perform(self, theStream: str, theProgress: Message_ProgressRange, theFile: Optional[str] = "") -> bool: ... + def Perform( + self, + theStream: str, + theProgress: Message_ProgressRange, + theFile: Optional[str] = "", + ) -> bool: ... @overload - def ProbeHeader(self, theFile: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def ProbeHeader( + self, + theFile: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def ProbeHeader(self, theStream: str, theFile: Optional[str] = "", theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def ProbeHeader( + self, + theStream: str, + theFile: Optional[str] = "", + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... def RootPrefix(self) -> str: ... - def SetCoordinateSystemConverter(self, theConverter: RWMesh_CoordinateSystemConverter) -> None: ... + def SetCoordinateSystemConverter( + self, theConverter: RWMesh_CoordinateSystemConverter + ) -> None: ... def SetDocument(self, theDoc: TDocStd_Document) -> None: ... @overload def SetFileCoordinateSystem(self, theCS: gp_Ax3) -> None: ... @@ -110,7 +145,13 @@ class RWMesh_CoordinateSystemConverter: def __init__(self) -> None: ... def HasInputCoordinateSystem(self) -> bool: ... def HasOutputCoordinateSystem(self) -> bool: ... - def Init(self, theInputSystem: gp_Ax3, theInputLengthUnit: float, theOutputSystem: gp_Ax3, theOutputLengthUnit: float) -> None: ... + def Init( + self, + theInputSystem: gp_Ax3, + theInputLengthUnit: float, + theOutputSystem: gp_Ax3, + theOutputLengthUnit: float, + ) -> None: ... def InputCoordinateSystem(self) -> gp_Ax3: ... def InputLengthUnit(self) -> float: ... def IsEmpty(self) -> bool: ... @@ -134,10 +175,14 @@ class RWMesh_CoordinateSystemConverter: class RWMesh_MaterialMap(Standard_Transient): def AddMaterial(self, theStyle: XCAFPrs_Style) -> str: ... - def CopyTexture(self, theResTexture: str, theTexture: Image_Texture, theKey: str) -> bool: ... + def CopyTexture( + self, theResTexture: str, theTexture: Image_Texture, theKey: str + ) -> bool: ... def CreateTextureFolder(self) -> bool: ... def DefaultStyle(self) -> XCAFPrs_Style: ... - def DefineMaterial(self, theStyle: XCAFPrs_Style, theKey: str, theName: str) -> None: ... + def DefineMaterial( + self, theStyle: XCAFPrs_Style, theKey: str, theName: str + ) -> None: ... def FindMaterial(self, theStyle: XCAFPrs_Style) -> str: ... def IsFailed(self) -> bool: ... def SetDefaultStyle(self, theStyle: XCAFPrs_Style) -> None: ... @@ -165,9 +210,16 @@ class RWMesh_TriangulationReader(Standard_Transient): def CoordinateSystemConverter(self) -> RWMesh_CoordinateSystemConverter: ... def FileName(self) -> str: ... def IsDoublePrecision(self) -> bool: ... - def Load(self, theSourceMesh: RWMesh_TriangulationSource, theDestMesh: Poly_Triangulation, theFileSystem: OSD_FileSystem) -> bool: ... + def Load( + self, + theSourceMesh: RWMesh_TriangulationSource, + theDestMesh: Poly_Triangulation, + theFileSystem: OSD_FileSystem, + ) -> bool: ... def PrintStatistic(self) -> None: ... - def SetCoordinateSystemConverter(self, theConverter: RWMesh_CoordinateSystemConverter) -> None: ... + def SetCoordinateSystemConverter( + self, theConverter: RWMesh_CoordinateSystemConverter + ) -> None: ... def SetDoublePrecision(self, theIsDouble: bool) -> None: ... def SetFileName(self, theFileName: str) -> None: ... def SetToPrintDebugMessages(self, theToPrint: bool) -> None: ... @@ -197,9 +249,19 @@ class RWMesh_TriangulationSource(Poly_Triangulation): class RWMesh_EdgeIterator(RWMesh_ShapeIterator): @overload - def __init__(self, theLabel: TDF_Label, theLocation: TopLoc_Location, theToMapColors: Optional[bool] = false, theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def __init__( + self, + theLabel: TDF_Label, + theLocation: TopLoc_Location, + theToMapColors: Optional[bool] = false, + theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... @overload - def __init__(self, theShape: TopoDS_Shape, theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def __init__( + self, + theShape: TopoDS_Shape, + theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... def Edge(self) -> TopoDS_Edge: ... def ElemLower(self) -> int: ... def ElemUpper(self) -> int: ... @@ -215,9 +277,19 @@ class RWMesh_EdgeIterator(RWMesh_ShapeIterator): class RWMesh_FaceIterator(RWMesh_ShapeIterator): @overload - def __init__(self, theLabel: TDF_Label, theLocation: TopLoc_Location, theToMapColors: Optional[bool] = false, theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def __init__( + self, + theLabel: TDF_Label, + theLocation: TopLoc_Location, + theToMapColors: Optional[bool] = false, + theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... @overload - def __init__(self, theShape: TopoDS_Shape, theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def __init__( + self, + theShape: TopoDS_Shape, + theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... def ElemLower(self) -> int: ... def ElemUpper(self) -> int: ... def Face(self) -> TopoDS_Face: ... @@ -245,9 +317,19 @@ class RWMesh_FaceIterator(RWMesh_ShapeIterator): class RWMesh_VertexIterator(RWMesh_ShapeIterator): @overload - def __init__(self, theLabel: TDF_Label, theLocation: TopLoc_Location, theToMapColors: Optional[bool] = false, theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def __init__( + self, + theLabel: TDF_Label, + theLocation: TopLoc_Location, + theToMapColors: Optional[bool] = false, + theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... @overload - def __init__(self, theShape: TopoDS_Shape, theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def __init__( + self, + theShape: TopoDS_Shape, + theStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... def ElemLower(self) -> int: ... def ElemUpper(self) -> int: ... def IsEmpty(self) -> bool: ... @@ -263,4 +345,3 @@ class RWMesh_VertexIterator(RWMesh_ShapeIterator): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWObj.pyi b/src/SWIG_files/wrapper/RWObj.pyi index 32b985a9d..629d7dc1b 100644 --- a/src/SWIG_files/wrapper/RWObj.pyi +++ b/src/SWIG_files/wrapper/RWObj.pyi @@ -14,7 +14,6 @@ from OCC.Core.TColStd import * from OCC.Core.TopoDS import * from OCC.Core.Graphic3d import * - class RWObj_SubMeshReason(IntEnum): RWObj_SubMeshReason_NewObject: int = ... RWObj_SubMeshReason_NewGroup: int = ... @@ -24,11 +23,16 @@ class RWObj_SubMeshReason(IntEnum): RWObj_SubMeshReason_NewObject = RWObj_SubMeshReason.RWObj_SubMeshReason_NewObject RWObj_SubMeshReason_NewGroup = RWObj_SubMeshReason.RWObj_SubMeshReason_NewGroup RWObj_SubMeshReason_NewMaterial = RWObj_SubMeshReason.RWObj_SubMeshReason_NewMaterial -RWObj_SubMeshReason_NewSmoothGroup = RWObj_SubMeshReason.RWObj_SubMeshReason_NewSmoothGroup +RWObj_SubMeshReason_NewSmoothGroup = ( + RWObj_SubMeshReason.RWObj_SubMeshReason_NewSmoothGroup +) class rwobj: @staticmethod - def ReadFile(theFile: str, aProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Poly_Triangulation: ... + def ReadFile( + theFile: str, + aProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Poly_Triangulation: ... class RWObj_CafWriter(Standard_Transient): def __init__(self, theFile: str) -> None: ... @@ -36,14 +40,34 @@ class RWObj_CafWriter(Standard_Transient): def CoordinateSystemConverter(self) -> RWMesh_CoordinateSystemConverter: ... def DefaultStyle(self) -> XCAFPrs_Style: ... @overload - def Perform(self, theDocument: TDocStd_Document, theRootLabels: TDF_LabelSequence, theLabelFilter: TColStd_MapOfAsciiString, theFileInfo: TColStd_IndexedDataMapOfStringString, theProgress: Message_ProgressRange) -> bool: ... + def Perform( + self, + theDocument: TDocStd_Document, + theRootLabels: TDF_LabelSequence, + theLabelFilter: TColStd_MapOfAsciiString, + theFileInfo: TColStd_IndexedDataMapOfStringString, + theProgress: Message_ProgressRange, + ) -> bool: ... @overload - def Perform(self, theDocument: TDocStd_Document, theFileInfo: TColStd_IndexedDataMapOfStringString, theProgress: Message_ProgressRange) -> bool: ... - def SetCoordinateSystemConverter(self, theConverter: RWMesh_CoordinateSystemConverter) -> None: ... + def Perform( + self, + theDocument: TDocStd_Document, + theFileInfo: TColStd_IndexedDataMapOfStringString, + theProgress: Message_ProgressRange, + ) -> bool: ... + def SetCoordinateSystemConverter( + self, theConverter: RWMesh_CoordinateSystemConverter + ) -> None: ... def SetDefaultStyle(self, theStyle: XCAFPrs_Style) -> None: ... class RWObj_IShapeReceiver: - def BindNamedShape(self, theShape: TopoDS_Shape, theName: str, theMaterial: RWObj_Material, theIsRootShape: bool) -> None: ... + def BindNamedShape( + self, + theShape: TopoDS_Shape, + theName: str, + theMaterial: RWObj_Material, + theIsRootShape: bool, + ) -> None: ... class RWObj_Material: def __init__(self) -> None: ... @@ -51,7 +75,9 @@ class RWObj_Material: class RWObj_ObjMaterialMap(RWMesh_MaterialMap): def __init__(self, theFile: str) -> None: ... def AddMaterial(self, theStyle: XCAFPrs_Style) -> str: ... - def DefineMaterial(self, theStyle: XCAFPrs_Style, theKey: str, theName: str) -> None: ... + def DefineMaterial( + self, theStyle: XCAFPrs_Style, theKey: str, theName: str + ) -> None: ... class RWObj_ObjWriterContext: def __init__(self, theName: str) -> None: ... @@ -65,7 +91,13 @@ class RWObj_ObjWriterContext: def SetTexCoords(self, theHasTexCoords: bool) -> None: ... def WriteActiveMaterial(self, theMaterial: str) -> bool: ... def WriteGroup(self, theValue: str) -> bool: ... - def WriteHeader(self, theNbNodes: int, theNbElems: int, theMatLib: str, theFileInfo: TColStd_IndexedDataMapOfStringString) -> bool: ... + def WriteHeader( + self, + theNbNodes: int, + theNbElems: int, + theMatLib: str, + theFileInfo: TColStd_IndexedDataMapOfStringString, + ) -> bool: ... def WriteNormal(self, theValue: Graphic3d_Vec3) -> bool: ... def WriteQuad(self, theQuad: Graphic3d_Vec4i) -> bool: ... def WriteTexCoord(self, theValue: Graphic3d_Vec2) -> bool: ... @@ -82,14 +114,20 @@ class RWObj_Reader(Standard_Transient): @overload def Probe(self, theFile: str, theProgress: Message_ProgressRange) -> bool: ... @overload - def Probe(self, theStream: str, theFile: str, theProgress: Message_ProgressRange) -> bool: ... + def Probe( + self, theStream: str, theFile: str, theProgress: Message_ProgressRange + ) -> bool: ... @overload def Read(self, theFile: str, theProgress: Message_ProgressRange) -> bool: ... @overload - def Read(self, theStream: str, theFile: str, theProgress: Message_ProgressRange) -> bool: ... + def Read( + self, theStream: str, theFile: str, theProgress: Message_ProgressRange + ) -> bool: ... def SetMemoryLimit(self, theMemLimit: int) -> None: ... def SetSinglePrecision(self, theIsSinglePrecision: bool) -> None: ... - def SetTransformation(self, theCSConverter: RWMesh_CoordinateSystemConverter) -> None: ... + def SetTransformation( + self, theCSConverter: RWMesh_CoordinateSystemConverter + ) -> None: ... def Transformation(self) -> RWMesh_CoordinateSystemConverter: ... class RWObj_SubMesh: @@ -107,10 +145,9 @@ class RWObj_TriangulationReader(RWObj_Reader): def SetCreateShapes(self, theToCreateShapes: bool) -> None: ... def SetShapeReceiver(self, theReceiver: RWObj_IShapeReceiver) -> None: ... -#classnotwrapped +# classnotwrapped class RWObj_MtlReader: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWPly.pyi b/src/SWIG_files/wrapper/RWPly.pyi index a6698063f..6ba3fb243 100644 --- a/src/SWIG_files/wrapper/RWPly.pyi +++ b/src/SWIG_files/wrapper/RWPly.pyi @@ -13,7 +13,6 @@ from OCC.Core.Message import * from OCC.Core.Graphic3d import * from OCC.Core.gp import * - class RWPly_CafWriter(Standard_Transient): def __init__(self, theFile: str) -> None: ... def ChangeCoordinateSystemConverter(self) -> RWMesh_CoordinateSystemConverter: ... @@ -26,11 +25,25 @@ class RWPly_CafWriter(Standard_Transient): def HasTexCoords(self) -> bool: ... def IsDoublePrecision(self) -> bool: ... @overload - def Perform(self, theDocument: TDocStd_Document, theRootLabels: TDF_LabelSequence, theLabelFilter: TColStd_MapOfAsciiString, theFileInfo: TColStd_IndexedDataMapOfStringString, theProgress: Message_ProgressRange) -> bool: ... + def Perform( + self, + theDocument: TDocStd_Document, + theRootLabels: TDF_LabelSequence, + theLabelFilter: TColStd_MapOfAsciiString, + theFileInfo: TColStd_IndexedDataMapOfStringString, + theProgress: Message_ProgressRange, + ) -> bool: ... @overload - def Perform(self, theDocument: TDocStd_Document, theFileInfo: TColStd_IndexedDataMapOfStringString, theProgress: Message_ProgressRange) -> bool: ... + def Perform( + self, + theDocument: TDocStd_Document, + theFileInfo: TColStd_IndexedDataMapOfStringString, + theProgress: Message_ProgressRange, + ) -> bool: ... def SetColors(self, theToWrite: bool) -> None: ... - def SetCoordinateSystemConverter(self, theConverter: RWMesh_CoordinateSystemConverter) -> None: ... + def SetCoordinateSystemConverter( + self, theConverter: RWMesh_CoordinateSystemConverter + ) -> None: ... def SetDefaultStyle(self, theStyle: XCAFPrs_Style) -> None: ... def SetDoublePrecision(self, theDoublePrec: bool) -> None: ... def SetFaceId(self, theSurfId: bool) -> None: ... @@ -60,12 +73,22 @@ class RWPly_PlyWriterContext: def SetVertexOffset(self, theOffset: int) -> None: ... def SurfaceId(self) -> int: ... def VertexOffset(self) -> int: ... - def WriteHeader(self, theNbNodes: int, theNbElems: int, theFileInfo: TColStd_IndexedDataMapOfStringString) -> bool: ... + def WriteHeader( + self, + theNbNodes: int, + theNbElems: int, + theFileInfo: TColStd_IndexedDataMapOfStringString, + ) -> bool: ... def WriteQuad(self, theQuad: Graphic3d_Vec4i) -> bool: ... def WriteTriangle(self, theTri: Graphic3d_Vec3i) -> bool: ... - def WriteVertex(self, thePoint: gp_Pnt, theNorm: Graphic3d_Vec3, theUV: Graphic3d_Vec2, theColor: Graphic3d_Vec4ub) -> bool: ... + def WriteVertex( + self, + thePoint: gp_Pnt, + theNorm: Graphic3d_Vec3, + theUV: Graphic3d_Vec2, + theColor: Graphic3d_Vec4ub, + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepAP203.pyi b/src/SWIG_files/wrapper/RWStepAP203.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepAP203.pyi +++ b/src/SWIG_files/wrapper/RWStepAP203.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepAP214.pyi b/src/SWIG_files/wrapper/RWStepAP214.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepAP214.pyi +++ b/src/SWIG_files/wrapper/RWStepAP214.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepAP242.pyi b/src/SWIG_files/wrapper/RWStepAP242.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepAP242.pyi +++ b/src/SWIG_files/wrapper/RWStepAP242.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepBasic.pyi b/src/SWIG_files/wrapper/RWStepBasic.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepBasic.pyi +++ b/src/SWIG_files/wrapper/RWStepBasic.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepDimTol.pyi b/src/SWIG_files/wrapper/RWStepDimTol.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepDimTol.pyi +++ b/src/SWIG_files/wrapper/RWStepDimTol.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepElement.pyi b/src/SWIG_files/wrapper/RWStepElement.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepElement.pyi +++ b/src/SWIG_files/wrapper/RWStepElement.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepFEA.pyi b/src/SWIG_files/wrapper/RWStepFEA.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepFEA.pyi +++ b/src/SWIG_files/wrapper/RWStepFEA.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepGeom.pyi b/src/SWIG_files/wrapper/RWStepGeom.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepGeom.pyi +++ b/src/SWIG_files/wrapper/RWStepGeom.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepKinematics.pyi b/src/SWIG_files/wrapper/RWStepKinematics.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepKinematics.pyi +++ b/src/SWIG_files/wrapper/RWStepKinematics.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepRepr.pyi b/src/SWIG_files/wrapper/RWStepRepr.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepRepr.pyi +++ b/src/SWIG_files/wrapper/RWStepRepr.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepShape.pyi b/src/SWIG_files/wrapper/RWStepShape.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepShape.pyi +++ b/src/SWIG_files/wrapper/RWStepShape.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStepVisual.pyi b/src/SWIG_files/wrapper/RWStepVisual.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/RWStepVisual.pyi +++ b/src/SWIG_files/wrapper/RWStepVisual.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/RWStl.pyi b/src/SWIG_files/wrapper/RWStl.pyi index 70faf8840..4f2ba73df 100644 --- a/src/SWIG_files/wrapper/RWStl.pyi +++ b/src/SWIG_files/wrapper/RWStl.pyi @@ -7,30 +7,52 @@ from OCC.Core.OSD import * from OCC.Core.Message import * from OCC.Core.Poly import * - class rwstl: @staticmethod - def ReadAscii(thePath: OSD_Path, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Poly_Triangulation: ... + def ReadAscii( + thePath: OSD_Path, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Poly_Triangulation: ... @staticmethod - def ReadBinary(thePath: OSD_Path, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Poly_Triangulation: ... + def ReadBinary( + thePath: OSD_Path, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Poly_Triangulation: ... @overload @staticmethod - def ReadFile(theFile: OSD_Path, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Poly_Triangulation: ... + def ReadFile( + theFile: OSD_Path, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Poly_Triangulation: ... @overload @staticmethod - def ReadFile(theFile: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Poly_Triangulation: ... + def ReadFile( + theFile: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Poly_Triangulation: ... @overload @staticmethod - def ReadFile(theFile: str, theMergeAngle: float, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Poly_Triangulation: ... + def ReadFile( + theFile: str, + theMergeAngle: float, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Poly_Triangulation: ... @staticmethod - def WriteAscii(theMesh: Poly_Triangulation, thePath: OSD_Path, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def WriteAscii( + theMesh: Poly_Triangulation, + thePath: OSD_Path, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @staticmethod - def WriteBinary(theMesh: Poly_Triangulation, thePath: OSD_Path, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def WriteBinary( + theMesh: Poly_Triangulation, + thePath: OSD_Path, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... -#classnotwrapped +# classnotwrapped class RWStl_Reader: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Resource.pyi b/src/SWIG_files/wrapper/Resource.pyi index f724f1515..5d2906650 100644 --- a/src/SWIG_files/wrapper/Resource.pyi +++ b/src/SWIG_files/wrapper/Resource.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.TCollection import * - class Resource_FormatType(IntEnum): Resource_FormatType_SJIS: int = ... Resource_FormatType_EUC: int = ... @@ -83,13 +82,21 @@ class Resource_Manager(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, theName: str, theDefaultsDirectory: str, theUserDefaultsDirectory: str, theIsVerbose: Optional[bool] = False) -> None: ... + def __init__( + self, + theName: str, + theDefaultsDirectory: str, + theUserDefaultsDirectory: str, + theIsVerbose: Optional[bool] = False, + ) -> None: ... def ExtValue(self, aResourceName: str) -> Standard_ExtString: ... @overload def Find(self, aResource: str) -> bool: ... @overload def Find(self, theResource: str, theValue: str) -> bool: ... - def GetMap(self, theRefMap: Optional[bool] = True) -> Resource_DataMapOfAsciiStringAsciiString: ... + def GetMap( + self, theRefMap: Optional[bool] = True + ) -> Resource_DataMapOfAsciiStringAsciiString: ... @staticmethod def GetResourcePath(aPath: str, aName: str, isUserDefaults: bool) -> None: ... def Integer(self, aResourceName: str) -> int: ... @@ -116,7 +123,9 @@ class Resource_Unicode: def ConvertFormatToUnicode(theFromStr: str, theToStr: str) -> None: ... @overload @staticmethod - def ConvertFormatToUnicode(theFormat: Resource_FormatType, theFromStr: str, theToStr: str) -> None: ... + def ConvertFormatToUnicode( + theFormat: Resource_FormatType, theFromStr: str, theToStr: str + ) -> None: ... @staticmethod def ConvertGBKToUnicode(fromstr: str, tostr: str) -> bool: ... @staticmethod @@ -124,19 +133,34 @@ class Resource_Unicode: @staticmethod def ConvertSJISToUnicode(fromstr: str, tostr: str) -> None: ... @staticmethod - def ConvertUnicodeToANSI(fromstr: str, tostr: Standard_PCharacter, maxsize: int) -> bool: ... + def ConvertUnicodeToANSI( + fromstr: str, tostr: Standard_PCharacter, maxsize: int + ) -> bool: ... @staticmethod - def ConvertUnicodeToEUC(fromstr: str, tostr: Standard_PCharacter, maxsize: int) -> bool: ... + def ConvertUnicodeToEUC( + fromstr: str, tostr: Standard_PCharacter, maxsize: int + ) -> bool: ... @overload @staticmethod - def ConvertUnicodeToFormat(theFormat: Resource_FormatType, theFromStr: str, theToStr: Standard_PCharacter, theMaxSize: int) -> bool: ... + def ConvertUnicodeToFormat( + theFormat: Resource_FormatType, + theFromStr: str, + theToStr: Standard_PCharacter, + theMaxSize: int, + ) -> bool: ... @overload @staticmethod - def ConvertUnicodeToFormat(theFromStr: str, theToStr: Standard_PCharacter, theMaxSize: int) -> bool: ... + def ConvertUnicodeToFormat( + theFromStr: str, theToStr: Standard_PCharacter, theMaxSize: int + ) -> bool: ... @staticmethod - def ConvertUnicodeToGB(fromstr: str, tostr: Standard_PCharacter, maxsize: int) -> bool: ... + def ConvertUnicodeToGB( + fromstr: str, tostr: Standard_PCharacter, maxsize: int + ) -> bool: ... @staticmethod - def ConvertUnicodeToSJIS(fromstr: str, tostr: Standard_PCharacter, maxsize: int) -> bool: ... + def ConvertUnicodeToSJIS( + fromstr: str, tostr: Standard_PCharacter, maxsize: int + ) -> bool: ... @staticmethod def GetFormat() -> Resource_FormatType: ... @staticmethod @@ -147,4 +171,3 @@ class Resource_Unicode: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/STEPCAFControl.pyi b/src/SWIG_files/wrapper/STEPCAFControl.pyi index 99cc97fe0..5720fce81 100644 --- a/src/SWIG_files/wrapper/STEPCAFControl.pyi +++ b/src/SWIG_files/wrapper/STEPCAFControl.pyi @@ -22,7 +22,6 @@ from OCC.Core.TDocStd import * from OCC.Core.Message import * from OCC.Core.DE import * - class STEPCAFControl_ActorWrite(STEPControl_ActorWrite): def __init__(self) -> None: ... def ClearMap(self) -> None: ... @@ -53,45 +52,89 @@ class STEPCAFControl_ExternFile(Standard_Transient): class STEPCAFControl_GDTProperty: def __init__(self) -> None: ... @staticmethod - def GetDatumRefModifiers(theModifiers: XCAFDimTolObjects_DatumModifiersSequence, theModifWithVal: XCAFDimTolObjects_DatumModifWithValue, theValue: float, theUnit: StepBasic_Unit) -> StepDimTol_HArray1OfDatumReferenceModifier: ... + def GetDatumRefModifiers( + theModifiers: XCAFDimTolObjects_DatumModifiersSequence, + theModifWithVal: XCAFDimTolObjects_DatumModifWithValue, + theValue: float, + theUnit: StepBasic_Unit, + ) -> StepDimTol_HArray1OfDatumReferenceModifier: ... @staticmethod - def GetDatumTargetName(theDatumType: XCAFDimTolObjects_DatumTargetType) -> TCollection_HAsciiString: ... + def GetDatumTargetName( + theDatumType: XCAFDimTolObjects_DatumTargetType, + ) -> TCollection_HAsciiString: ... @staticmethod - def GetDatumTargetType(theDescription: TCollection_HAsciiString) -> Tuple[bool, XCAFDimTolObjects_DatumTargetType]: ... + def GetDatumTargetType( + theDescription: TCollection_HAsciiString, + ) -> Tuple[bool, XCAFDimTolObjects_DatumTargetType]: ... @staticmethod - def GetDimClassOfTolerance(theLAF: StepShape_LimitsAndFits) -> Tuple[bool, XCAFDimTolObjects_DimensionFormVariance, XCAFDimTolObjects_DimensionGrade]: ... + def GetDimClassOfTolerance( + theLAF: StepShape_LimitsAndFits, + ) -> Tuple[ + bool, XCAFDimTolObjects_DimensionFormVariance, XCAFDimTolObjects_DimensionGrade + ]: ... @staticmethod - def GetDimModifierName(theModifier: XCAFDimTolObjects_DimensionModif) -> TCollection_HAsciiString: ... + def GetDimModifierName( + theModifier: XCAFDimTolObjects_DimensionModif, + ) -> TCollection_HAsciiString: ... @staticmethod - def GetDimModifiers(theCRI: StepRepr_CompoundRepresentationItem, theModifiers: XCAFDimTolObjects_DimensionModifiersSequence) -> None: ... + def GetDimModifiers( + theCRI: StepRepr_CompoundRepresentationItem, + theModifiers: XCAFDimTolObjects_DimensionModifiersSequence, + ) -> None: ... @staticmethod - def GetDimQualifierName(theQualifier: XCAFDimTolObjects_DimensionQualifier) -> TCollection_HAsciiString: ... + def GetDimQualifierName( + theQualifier: XCAFDimTolObjects_DimensionQualifier, + ) -> TCollection_HAsciiString: ... @staticmethod - def GetDimQualifierType(theDescription: TCollection_HAsciiString) -> Tuple[bool, XCAFDimTolObjects_DimensionQualifier]: ... + def GetDimQualifierType( + theDescription: TCollection_HAsciiString, + ) -> Tuple[bool, XCAFDimTolObjects_DimensionQualifier]: ... @staticmethod - def GetDimType(theName: TCollection_HAsciiString) -> Tuple[bool, XCAFDimTolObjects_DimensionType]: ... + def GetDimType( + theName: TCollection_HAsciiString, + ) -> Tuple[bool, XCAFDimTolObjects_DimensionType]: ... @staticmethod - def GetDimTypeName(theType: XCAFDimTolObjects_DimensionType) -> TCollection_HAsciiString: ... + def GetDimTypeName( + theType: XCAFDimTolObjects_DimensionType, + ) -> TCollection_HAsciiString: ... @staticmethod - def GetGeomTolerance(theType: XCAFDimTolObjects_GeomToleranceType) -> StepDimTol_GeometricTolerance: ... + def GetGeomTolerance( + theType: XCAFDimTolObjects_GeomToleranceType, + ) -> StepDimTol_GeometricTolerance: ... @staticmethod - def GetGeomToleranceModifier(theModifier: XCAFDimTolObjects_GeomToleranceModif) -> StepDimTol_GeometricToleranceModifier: ... + def GetGeomToleranceModifier( + theModifier: XCAFDimTolObjects_GeomToleranceModif, + ) -> StepDimTol_GeometricToleranceModifier: ... @overload @staticmethod - def GetGeomToleranceType(theType: XCAFDimTolObjects_GeomToleranceType) -> StepDimTol_GeometricToleranceType: ... + def GetGeomToleranceType( + theType: XCAFDimTolObjects_GeomToleranceType, + ) -> StepDimTol_GeometricToleranceType: ... @overload @staticmethod - def GetGeomToleranceType(theType: StepDimTol_GeometricToleranceType) -> XCAFDimTolObjects_GeomToleranceType: ... + def GetGeomToleranceType( + theType: StepDimTol_GeometricToleranceType, + ) -> XCAFDimTolObjects_GeomToleranceType: ... @staticmethod - def GetLimitsAndFits(theHole: bool, theFormVariance: XCAFDimTolObjects_DimensionFormVariance, theGrade: XCAFDimTolObjects_DimensionGrade) -> StepShape_LimitsAndFits: ... + def GetLimitsAndFits( + theHole: bool, + theFormVariance: XCAFDimTolObjects_DimensionFormVariance, + theGrade: XCAFDimTolObjects_DimensionGrade, + ) -> StepShape_LimitsAndFits: ... @staticmethod - def GetTessellation(theShape: TopoDS_Shape) -> StepVisual_TessellatedGeometricSet: ... + def GetTessellation( + theShape: TopoDS_Shape, + ) -> StepVisual_TessellatedGeometricSet: ... @overload @staticmethod - def GetTolValueType(theDescription: TCollection_HAsciiString) -> Tuple[bool, XCAFDimTolObjects_GeomToleranceTypeValue]: ... + def GetTolValueType( + theDescription: TCollection_HAsciiString, + ) -> Tuple[bool, XCAFDimTolObjects_GeomToleranceTypeValue]: ... @overload @staticmethod - def GetTolValueType(theType: XCAFDimTolObjects_GeomToleranceTypeValue) -> TCollection_HAsciiString: ... + def GetTolValueType( + theType: XCAFDimTolObjects_GeomToleranceTypeValue, + ) -> TCollection_HAsciiString: ... @staticmethod def IsDimensionalLocation(theType: XCAFDimTolObjects_DimensionType) -> bool: ... @staticmethod @@ -101,12 +144,19 @@ class STEPCAFControl_Reader: @overload def __init__(self) -> None: ... @overload - def __init__(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... + def __init__( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... def ChangeReader(self) -> STEPControl_Reader: ... def ExternFile(self, name: str, ef: STEPCAFControl_ExternFile) -> bool: ... def ExternFiles(self) -> False: ... @staticmethod - def FindInstance(NAUO: StepRepr_NextAssemblyUsageOccurrence, STool: XCAFDoc_ShapeTool, Tool: STEPConstruct_Tool, ShapeLabelMap: XCAFDoc_DataMapOfShapeLabel) -> TDF_Label: ... + def FindInstance( + NAUO: StepRepr_NextAssemblyUsageOccurrence, + STool: XCAFDoc_ShapeTool, + Tool: STEPConstruct_Tool, + ShapeLabelMap: XCAFDoc_DataMapOfShapeLabel, + ) -> TDF_Label: ... def GetColorMode(self) -> bool: ... def GetGDTMode(self) -> bool: ... def GetLayerMode(self) -> bool: ... @@ -120,12 +170,24 @@ class STEPCAFControl_Reader: def GetShapeLabelMap(self) -> XCAFDoc_DataMapOfShapeLabel: ... def GetShapeProcessFlags(self) -> False: ... def GetViewMode(self) -> bool: ... - def Init(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... + def Init( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... def NbRootsForTransfer(self) -> int: ... @overload - def Perform(self, filename: str, doc: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + filename: str, + doc: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Perform(self, filename: str, doc: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + filename: str, + doc: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload def ReadFile(self, theFileName: str) -> IFSelect_ReturnStatus: ... def ReadStream(self, theName: str, theIStream: str) -> IFSelect_ReturnStatus: ... @@ -140,19 +202,34 @@ class STEPCAFControl_Reader: def SetPropsMode(self, propsmode: bool) -> None: ... def SetSHUOMode(self, shuomode: bool) -> None: ... def SetViewMode(self, viewmode: bool) -> None: ... - def Transfer(self, doc: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... - def TransferOneRoot(self, num: int, doc: TDocStd_Document, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Transfer( + self, + doc: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def TransferOneRoot( + self, + num: int, + doc: TDocStd_Document, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... class STEPCAFControl_Writer: @overload def __init__(self) -> None: ... @overload - def __init__(self, theWS: XSControl_WorkSession, theScratch: Optional[bool] = True) -> None: ... + def __init__( + self, theWS: XSControl_WorkSession, theScratch: Optional[bool] = True + ) -> None: ... def ChangeWriter(self) -> STEPControl_Writer: ... @overload - def ExternFile(self, theLabel: TDF_Label, theExtFile: STEPCAFControl_ExternFile) -> bool: ... + def ExternFile( + self, theLabel: TDF_Label, theExtFile: STEPCAFControl_ExternFile + ) -> bool: ... @overload - def ExternFile(self, theName: str, theExtFile: STEPCAFControl_ExternFile) -> bool: ... + def ExternFile( + self, theName: str, theExtFile: STEPCAFControl_ExternFile + ) -> bool: ... def ExternFiles(self) -> False: ... def GetColorMode(self) -> bool: ... def GetDimTolMode(self) -> bool: ... @@ -163,11 +240,23 @@ class STEPCAFControl_Writer: def GetSHUOMode(self) -> bool: ... def GetShapeFixParameters(self) -> False: ... def GetShapeProcessFlags(self) -> False: ... - def Init(self, theWS: XSControl_WorkSession, theScratch: Optional[bool] = True) -> None: ... + def Init( + self, theWS: XSControl_WorkSession, theScratch: Optional[bool] = True + ) -> None: ... @overload - def Perform(self, theDoc: TDocStd_Document, theFileName: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + theDoc: TDocStd_Document, + theFileName: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Perform(self, theDoc: TDocStd_Document, theFileName: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + theDoc: TDocStd_Document, + theFileName: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... def SetColorMode(self, theColorMode: bool) -> None: ... def SetDimTolMode(self, theDimTolMode: bool) -> None: ... def SetLayerMode(self, theLayerMode: bool) -> None: ... @@ -176,11 +265,29 @@ class STEPCAFControl_Writer: def SetPropsMode(self, thePropsMode: bool) -> None: ... def SetSHUOMode(self, theSHUOMode: bool) -> None: ... @overload - def Transfer(self, theDoc: TDocStd_Document, theMode: Optional[STEPControl_StepModelType] = STEPControl_AsIs, theIsMulti: Optional[str] = 0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Transfer( + self, + theDoc: TDocStd_Document, + theMode: Optional[STEPControl_StepModelType] = STEPControl_AsIs, + theIsMulti: Optional[str] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Transfer(self, theLabel: TDF_Label, theMode: Optional[STEPControl_StepModelType] = STEPControl_AsIs, theIsMulti: Optional[str] = 0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Transfer( + self, + theLabel: TDF_Label, + theMode: Optional[STEPControl_StepModelType] = STEPControl_AsIs, + theIsMulti: Optional[str] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @overload - def Transfer(self, theLabelSeq: TDF_LabelSequence, theMode: Optional[STEPControl_StepModelType] = STEPControl_AsIs, theIsMulti: Optional[str] = 0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Transfer( + self, + theLabelSeq: TDF_LabelSequence, + theMode: Optional[STEPControl_StepModelType] = STEPControl_AsIs, + theIsMulti: Optional[str] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... def Write(self, theFileName: str) -> IFSelect_ReturnStatus: ... def WriteStream(self) -> Tuple[IFSelect_ReturnStatus, str]: ... def Writer(self) -> STEPControl_Writer: ... @@ -188,4 +295,3 @@ class STEPCAFControl_Writer: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/STEPConstruct.pyi b/src/SWIG_files/wrapper/STEPConstruct.pyi index 38765df5d..158c6b167 100644 --- a/src/SWIG_files/wrapper/STEPConstruct.pyi +++ b/src/SWIG_files/wrapper/STEPConstruct.pyi @@ -20,18 +20,27 @@ from OCC.Core.StepVisual import * from OCC.Core.Quantity import * from OCC.Core.gp import * - class stepconstruct: @staticmethod - def FindCDSR(ComponentBinder: Transfer_Binder, AssemblySDR: StepShape_ShapeDefinitionRepresentation, ComponentCDSR: StepShape_ContextDependentShapeRepresentation) -> bool: ... + def FindCDSR( + ComponentBinder: Transfer_Binder, + AssemblySDR: StepShape_ShapeDefinitionRepresentation, + ComponentCDSR: StepShape_ContextDependentShapeRepresentation, + ) -> bool: ... @overload @staticmethod - def FindEntity(FinderProcess: Transfer_FinderProcess, Shape: TopoDS_Shape) -> StepRepr_RepresentationItem: ... + def FindEntity( + FinderProcess: Transfer_FinderProcess, Shape: TopoDS_Shape + ) -> StepRepr_RepresentationItem: ... @overload @staticmethod - def FindEntity(FinderProcess: Transfer_FinderProcess, Shape: TopoDS_Shape, Loc: TopLoc_Location) -> StepRepr_RepresentationItem: ... + def FindEntity( + FinderProcess: Transfer_FinderProcess, Shape: TopoDS_Shape, Loc: TopLoc_Location + ) -> StepRepr_RepresentationItem: ... @staticmethod - def FindShape(TransientProcess: Transfer_TransientProcess, item: StepRepr_RepresentationItem) -> TopoDS_Shape: ... + def FindShape( + TransientProcess: Transfer_TransientProcess, item: StepRepr_RepresentationItem + ) -> TopoDS_Shape: ... class STEPConstruct_AP203Context: def __init__(self) -> None: ... @@ -39,17 +48,25 @@ class STEPConstruct_AP203Context: def DefaultApproval(self) -> StepBasic_Approval: ... def DefaultDateAndTime(self) -> StepBasic_DateAndTime: ... def DefaultPersonAndOrganization(self) -> StepBasic_PersonAndOrganization: ... - def DefaultSecurityClassificationLevel(self) -> StepBasic_SecurityClassificationLevel: ... + def DefaultSecurityClassificationLevel( + self, + ) -> StepBasic_SecurityClassificationLevel: ... def GetApproval(self) -> StepAP203_CcDesignApproval: ... def GetApprovalDateTime(self) -> StepBasic_ApprovalDateTime: ... def GetApprover(self) -> StepBasic_ApprovalPersonOrganization: ... def GetClassificationDate(self) -> StepAP203_CcDesignDateAndTimeAssignment: ... - def GetClassificationOfficer(self) -> StepAP203_CcDesignPersonAndOrganizationAssignment: ... + def GetClassificationOfficer( + self, + ) -> StepAP203_CcDesignPersonAndOrganizationAssignment: ... def GetCreationDate(self) -> StepAP203_CcDesignDateAndTimeAssignment: ... def GetCreator(self) -> StepAP203_CcDesignPersonAndOrganizationAssignment: ... def GetDesignOwner(self) -> StepAP203_CcDesignPersonAndOrganizationAssignment: ... - def GetDesignSupplier(self) -> StepAP203_CcDesignPersonAndOrganizationAssignment: ... - def GetProductCategoryRelationship(self) -> StepBasic_ProductCategoryRelationship: ... + def GetDesignSupplier( + self, + ) -> StepAP203_CcDesignPersonAndOrganizationAssignment: ... + def GetProductCategoryRelationship( + self, + ) -> StepBasic_ProductCategoryRelationship: ... def GetSecurity(self) -> StepAP203_CcDesignSecurityClassification: ... @overload def Init(self, sdr: StepShape_ShapeDefinitionRepresentation) -> None: ... @@ -70,15 +87,27 @@ class STEPConstruct_AP203Context: def RoleDesignSupplier(self) -> StepBasic_PersonAndOrganizationRole: ... def SetDefaultApproval(self, app: StepBasic_Approval) -> None: ... def SetDefaultDateAndTime(self, dt: StepBasic_DateAndTime) -> None: ... - def SetDefaultPersonAndOrganization(self, po: StepBasic_PersonAndOrganization) -> None: ... - def SetDefaultSecurityClassificationLevel(self, sc: StepBasic_SecurityClassificationLevel) -> None: ... + def SetDefaultPersonAndOrganization( + self, po: StepBasic_PersonAndOrganization + ) -> None: ... + def SetDefaultSecurityClassificationLevel( + self, sc: StepBasic_SecurityClassificationLevel + ) -> None: ... class STEPConstruct_Assembly: def __init__(self) -> None: ... @staticmethod - def CheckSRRReversesNAUO(theGraph: Interface_Graph, CDSR: StepShape_ContextDependentShapeRepresentation) -> bool: ... + def CheckSRRReversesNAUO( + theGraph: Interface_Graph, CDSR: StepShape_ContextDependentShapeRepresentation + ) -> bool: ... def GetNAUO(self) -> StepRepr_NextAssemblyUsageOccurrence: ... - def Init(self, aSR: StepShape_ShapeDefinitionRepresentation, SDR0: StepShape_ShapeDefinitionRepresentation, Ax0: StepGeom_Axis2Placement3d, Loc: StepGeom_Axis2Placement3d) -> None: ... + def Init( + self, + aSR: StepShape_ShapeDefinitionRepresentation, + SDR0: StepShape_ShapeDefinitionRepresentation, + Ax0: StepGeom_Axis2Placement3d, + Loc: StepGeom_Axis2Placement3d, + ) -> None: ... def ItemLocation(self) -> StepGeom_Axis2Placement3d: ... def ItemValue(self) -> Standard_Transient: ... def MakeRelationship(self) -> None: ... @@ -97,8 +126,12 @@ class STEPConstruct_ContextTool: def GetAPD(self) -> StepBasic_ApplicationProtocolDefinition: ... def GetDefaultAxis(self) -> StepGeom_Axis2Placement3d: ... def GetProductName(self) -> TCollection_HAsciiString: ... - def GetRootsForAssemblyLink(self, assembly: STEPConstruct_Assembly) -> TColStd_HSequenceOfTransient: ... - def GetRootsForPart(self, SDRTool: STEPConstruct_Part) -> TColStd_HSequenceOfTransient: ... + def GetRootsForAssemblyLink( + self, assembly: STEPConstruct_Assembly + ) -> TColStd_HSequenceOfTransient: ... + def GetRootsForPart( + self, SDRTool: STEPConstruct_Part + ) -> TColStd_HSequenceOfTransient: ... def Index(self) -> int: ... def IsAP203(self) -> bool: ... def IsAP214(self) -> bool: ... @@ -122,7 +155,13 @@ class STEPConstruct_Part: def AC(self) -> StepBasic_ApplicationContext: ... def ACapplication(self) -> TCollection_HAsciiString: ... def IsDone(self) -> bool: ... - def MakeSDR(self, aShape: StepShape_ShapeRepresentation, aName: TCollection_HAsciiString, AC: StepBasic_ApplicationContext, theStepModel: StepData_StepModel) -> None: ... + def MakeSDR( + self, + aShape: StepShape_ShapeRepresentation, + aName: TCollection_HAsciiString, + AC: StepBasic_ApplicationContext, + theStepModel: StepData_StepModel, + ) -> None: ... def PC(self) -> StepBasic_ProductContext: ... def PCdisciplineType(self) -> TCollection_HAsciiString: ... def PCname(self) -> TCollection_HAsciiString: ... @@ -179,14 +218,29 @@ class STEPConstruct_UnitContext: def AreaDone(self) -> bool: ... def AreaFactor(self) -> float: ... @overload - def ComputeFactors(self, aContext: StepRepr_GlobalUnitAssignedContext, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> int: ... + def ComputeFactors( + self, + aContext: StepRepr_GlobalUnitAssignedContext, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> int: ... @overload - def ComputeFactors(self, aUnit: StepBasic_NamedUnit, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> int: ... - def ComputeTolerance(self, aContext: StepRepr_GlobalUncertaintyAssignedContext) -> int: ... + def ComputeFactors( + self, + aUnit: StepBasic_NamedUnit, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> int: ... + def ComputeTolerance( + self, aContext: StepRepr_GlobalUncertaintyAssignedContext + ) -> int: ... @staticmethod def ConvertSiPrefix(aPrefix: StepBasic_SiPrefix) -> float: ... def HasUncertainty(self) -> bool: ... - def Init(self, Tol3d: float, theModel: StepData_StepModel, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + Tol3d: float, + theModel: StepData_StepModel, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def IsDone(self) -> bool: ... def LengthDone(self) -> bool: ... def LengthFactor(self) -> float: ... @@ -196,7 +250,9 @@ class STEPConstruct_UnitContext: def SolidAngleFactor(self) -> float: ... def StatusMessage(self, status: int) -> str: ... def Uncertainty(self) -> float: ... - def Value(self) -> StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx: ... + def Value( + self, + ) -> StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx: ... def VolumeDone(self) -> bool: ... def VolumeFactor(self) -> float: ... @@ -205,7 +261,9 @@ class STEPConstruct_ExternRefs(STEPConstruct_Tool): def __init__(self) -> None: ... @overload def __init__(self, WS: XSControl_WorkSession) -> None: ... - def AddExternRef(self, filename: str, PD: StepBasic_ProductDefinition, format: str) -> int: ... + def AddExternRef( + self, filename: str, PD: StepBasic_ProductDefinition, format: str + ) -> int: ... def Clear(self) -> None: ... def DocFile(self, num: int) -> StepBasic_DocumentFile: ... def FileName(self, num: int) -> str: ... @@ -227,12 +285,32 @@ class STEPConstruct_Styles(STEPConstruct_Tool): @overload def AddStyle(self, style: StepVisual_StyledItem) -> None: ... @overload - def AddStyle(self, item: StepRepr_RepresentationItem, PSA: StepVisual_PresentationStyleAssignment, Override: StepVisual_StyledItem) -> StepVisual_StyledItem: ... + def AddStyle( + self, + item: StepRepr_RepresentationItem, + PSA: StepVisual_PresentationStyleAssignment, + Override: StepVisual_StyledItem, + ) -> StepVisual_StyledItem: ... @overload - def AddStyle(self, Shape: TopoDS_Shape, PSA: StepVisual_PresentationStyleAssignment, Override: StepVisual_StyledItem) -> StepVisual_StyledItem: ... + def AddStyle( + self, + Shape: TopoDS_Shape, + PSA: StepVisual_PresentationStyleAssignment, + Override: StepVisual_StyledItem, + ) -> StepVisual_StyledItem: ... def ClearStyles(self) -> None: ... - def CreateMDGPR(self, Context: StepRepr_RepresentationContext, MDGPR: StepVisual_MechanicalDesignGeometricPresentationRepresentation, theStepModel: StepData_StepModel) -> bool: ... - def CreateNAUOSRD(self, Context: StepRepr_RepresentationContext, CDSR: StepShape_ContextDependentShapeRepresentation, initPDS: StepRepr_ProductDefinitionShape) -> bool: ... + def CreateMDGPR( + self, + Context: StepRepr_RepresentationContext, + MDGPR: StepVisual_MechanicalDesignGeometricPresentationRepresentation, + theStepModel: StepData_StepModel, + ) -> bool: ... + def CreateNAUOSRD( + self, + Context: StepRepr_RepresentationContext, + CDSR: StepShape_ContextDependentShapeRepresentation, + initPDS: StepRepr_ProductDefinitionShape, + ) -> bool: ... @staticmethod def DecodeColor(Colour: StepVisual_Colour, Col: Quantity_Color) -> bool: ... @overload @@ -240,14 +318,35 @@ class STEPConstruct_Styles(STEPConstruct_Tool): def EncodeColor(Col: Quantity_Color) -> StepVisual_Colour: ... @overload @staticmethod - def EncodeColor(Col: Quantity_Color, DPDCs: STEPConstruct_DataMapOfAsciiStringTransient, ColRGBs: STEPConstruct_DataMapOfPointTransient) -> StepVisual_Colour: ... + def EncodeColor( + Col: Quantity_Color, + DPDCs: STEPConstruct_DataMapOfAsciiStringTransient, + ColRGBs: STEPConstruct_DataMapOfPointTransient, + ) -> StepVisual_Colour: ... def FindContext(self, Shape: TopoDS_Shape) -> StepRepr_RepresentationContext: ... - def GetColorPSA(self, item: StepRepr_RepresentationItem, Col: StepVisual_Colour) -> StepVisual_PresentationStyleAssignment: ... - def GetColors(self, theStyle: StepVisual_StyledItem, theSurfaceColour: StepVisual_Colour, theBoundaryColour: StepVisual_Colour, theCurveColour: StepVisual_Colour, theRenderColour: StepVisual_Colour) -> Tuple[bool, float, bool]: ... + def GetColorPSA( + self, item: StepRepr_RepresentationItem, Col: StepVisual_Colour + ) -> StepVisual_PresentationStyleAssignment: ... + def GetColors( + self, + theStyle: StepVisual_StyledItem, + theSurfaceColour: StepVisual_Colour, + theBoundaryColour: StepVisual_Colour, + theCurveColour: StepVisual_Colour, + theRenderColour: StepVisual_Colour, + ) -> Tuple[bool, float, bool]: ... def Init(self, WS: XSControl_WorkSession) -> bool: ... def LoadInvisStyles(self, InvSyles: TColStd_HSequenceOfTransient) -> bool: ... def LoadStyles(self) -> bool: ... - def MakeColorPSA(self, item: StepRepr_RepresentationItem, SurfCol: StepVisual_Colour, CurveCol: StepVisual_Colour, RenderCol: StepVisual_Colour, RenderTransp: float, isForNAUO: Optional[bool] = False) -> StepVisual_PresentationStyleAssignment: ... + def MakeColorPSA( + self, + item: StepRepr_RepresentationItem, + SurfCol: StepVisual_Colour, + CurveCol: StepVisual_Colour, + RenderCol: StepVisual_Colour, + RenderTransp: float, + isForNAUO: Optional[bool] = False, + ) -> StepVisual_PresentationStyleAssignment: ... def NbRootStyles(self) -> int: ... def NbStyles(self) -> int: ... def RootStyle(self, i: int) -> StepVisual_StyledItem: ... @@ -259,17 +358,51 @@ class STEPConstruct_ValidationProps(STEPConstruct_Tool): @overload def __init__(self, WS: XSControl_WorkSession) -> None: ... def AddArea(self, Shape: TopoDS_Shape, Area: float) -> bool: ... - def AddCentroid(self, Shape: TopoDS_Shape, Pnt: gp_Pnt, instance: Optional[bool] = False) -> bool: ... + def AddCentroid( + self, Shape: TopoDS_Shape, Pnt: gp_Pnt, instance: Optional[bool] = False + ) -> bool: ... @overload - def AddProp(self, Shape: TopoDS_Shape, Prop: StepRepr_RepresentationItem, Descr: str, instance: Optional[bool] = False) -> bool: ... + def AddProp( + self, + Shape: TopoDS_Shape, + Prop: StepRepr_RepresentationItem, + Descr: str, + instance: Optional[bool] = False, + ) -> bool: ... @overload - def AddProp(self, target: StepRepr_CharacterizedDefinition, Context: StepRepr_RepresentationContext, Prop: StepRepr_RepresentationItem, Descr: str) -> bool: ... + def AddProp( + self, + target: StepRepr_CharacterizedDefinition, + Context: StepRepr_RepresentationContext, + Prop: StepRepr_RepresentationItem, + Descr: str, + ) -> bool: ... def AddVolume(self, Shape: TopoDS_Shape, Vol: float) -> bool: ... - def FindTarget(self, S: TopoDS_Shape, target: StepRepr_CharacterizedDefinition, Context: StepRepr_RepresentationContext, instance: Optional[bool] = False) -> bool: ... - def GetPropNAUO(self, PD: StepRepr_PropertyDefinition) -> StepRepr_NextAssemblyUsageOccurrence: ... - def GetPropPD(self, PD: StepRepr_PropertyDefinition) -> StepBasic_ProductDefinition: ... - def GetPropPnt(self, item: StepRepr_RepresentationItem, Context: StepRepr_RepresentationContext, Pnt: gp_Pnt, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - def GetPropReal(self, item: StepRepr_RepresentationItem, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Tuple[bool, float, bool]: ... + def FindTarget( + self, + S: TopoDS_Shape, + target: StepRepr_CharacterizedDefinition, + Context: StepRepr_RepresentationContext, + instance: Optional[bool] = False, + ) -> bool: ... + def GetPropNAUO( + self, PD: StepRepr_PropertyDefinition + ) -> StepRepr_NextAssemblyUsageOccurrence: ... + def GetPropPD( + self, PD: StepRepr_PropertyDefinition + ) -> StepBasic_ProductDefinition: ... + def GetPropPnt( + self, + item: StepRepr_RepresentationItem, + Context: StepRepr_RepresentationContext, + Pnt: gp_Pnt, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + def GetPropReal( + self, + item: StepRepr_RepresentationItem, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Tuple[bool, float, bool]: ... @overload def GetPropShape(self, ProdDef: StepBasic_ProductDefinition) -> TopoDS_Shape: ... @overload @@ -281,4 +414,3 @@ class STEPConstruct_ValidationProps(STEPConstruct_Tool): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/STEPControl.pyi b/src/SWIG_files/wrapper/STEPControl.pyi index 03b0163b2..56d156dc8 100644 --- a/src/SWIG_files/wrapper/STEPControl.pyi +++ b/src/SWIG_files/wrapper/STEPControl.pyi @@ -18,7 +18,6 @@ from OCC.Core.IFSelect import * from OCC.Core.TColStd import * from OCC.Core.DE import * - class STEPControl_StepModelType(IntEnum): STEPControl_AsIs: int = ... STEPControl_ManifoldSolidBrep: int = ... @@ -33,21 +32,60 @@ STEPControl_AsIs = STEPControl_StepModelType.STEPControl_AsIs STEPControl_ManifoldSolidBrep = STEPControl_StepModelType.STEPControl_ManifoldSolidBrep STEPControl_BrepWithVoids = STEPControl_StepModelType.STEPControl_BrepWithVoids STEPControl_FacetedBrep = STEPControl_StepModelType.STEPControl_FacetedBrep -STEPControl_FacetedBrepAndBrepWithVoids = STEPControl_StepModelType.STEPControl_FacetedBrepAndBrepWithVoids -STEPControl_ShellBasedSurfaceModel = STEPControl_StepModelType.STEPControl_ShellBasedSurfaceModel +STEPControl_FacetedBrepAndBrepWithVoids = ( + STEPControl_StepModelType.STEPControl_FacetedBrepAndBrepWithVoids +) +STEPControl_ShellBasedSurfaceModel = ( + STEPControl_StepModelType.STEPControl_ShellBasedSurfaceModel +) STEPControl_GeometricCurveSet = STEPControl_StepModelType.STEPControl_GeometricCurveSet STEPControl_Hybrid = STEPControl_StepModelType.STEPControl_Hybrid class STEPControl_ActorRead(Transfer_ActorOfTransientProcess): def __init__(self, theModel: Interface_InterfaceModel) -> None: ... - def ComputeSRRWT(self, SRR: StepRepr_RepresentationRelationship, TP: Transfer_TransientProcess, Trsf: gp_Trsf, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - def ComputeTransformation(self, Origin: StepGeom_Axis2Placement3d, Target: StepGeom_Axis2Placement3d, OrigContext: StepRepr_Representation, TargContext: StepRepr_Representation, TP: Transfer_TransientProcess, Trsf: gp_Trsf, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - def PrepareUnits(self, rep: StepRepr_Representation, TP: Transfer_TransientProcess, theLocalFactors: StepData_Factors) -> None: ... + def ComputeSRRWT( + self, + SRR: StepRepr_RepresentationRelationship, + TP: Transfer_TransientProcess, + Trsf: gp_Trsf, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + def ComputeTransformation( + self, + Origin: StepGeom_Axis2Placement3d, + Target: StepGeom_Axis2Placement3d, + OrigContext: StepRepr_Representation, + TargContext: StepRepr_Representation, + TP: Transfer_TransientProcess, + Trsf: gp_Trsf, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + def PrepareUnits( + self, + rep: StepRepr_Representation, + TP: Transfer_TransientProcess, + theLocalFactors: StepData_Factors, + ) -> None: ... def Recognize(self, start: Standard_Transient) -> bool: ... - def ResetUnits(self, theModel: StepData_StepModel, theLocalFactors: StepData_Factors) -> None: ... + def ResetUnits( + self, theModel: StepData_StepModel, theLocalFactors: StepData_Factors + ) -> None: ... def SetModel(self, theModel: Interface_InterfaceModel) -> None: ... - def Transfer(self, start: Standard_Transient, TP: Transfer_TransientProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... - def TransferShape(self, start: Standard_Transient, TP: Transfer_TransientProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), isManifold: Optional[bool] = True, theUseTrsf: Optional[bool] = False, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... + def Transfer( + self, + start: Standard_Transient, + TP: Transfer_TransientProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... + def TransferShape( + self, + start: Standard_Transient, + TP: Transfer_TransientProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + isManifold: Optional[bool] = True, + theUseTrsf: Optional[bool] = False, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... class STEPControl_ActorWrite(Transfer_ActorOfFinderProcess): def __init__(self) -> None: ... @@ -58,26 +96,73 @@ class STEPControl_ActorWrite(Transfer_ActorOfFinderProcess): def SetGroupMode(self, mode: int) -> None: ... def SetMode(self, M: STEPControl_StepModelType) -> None: ... def SetTolerance(self, Tol: float) -> None: ... - def Transfer(self, start: Transfer_Finder, FP: Transfer_FinderProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... - def TransferCompound(self, start: Transfer_Finder, SDR: StepShape_ShapeDefinitionRepresentation, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... - def TransferShape(self, start: Transfer_Finder, SDR: StepShape_ShapeDefinitionRepresentation, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), shapeGroup: Optional[TopTools_HSequenceOfShape] = None, isManifold: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... - def TransferSubShape(self, start: Transfer_Finder, SDR: StepShape_ShapeDefinitionRepresentation, AX1: StepGeom_Axis2Placement3d, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), shapeGroup: Optional[TopTools_HSequenceOfShape] = None, isManifold: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... + def Transfer( + self, + start: Transfer_Finder, + FP: Transfer_FinderProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... + def TransferCompound( + self, + start: Transfer_Finder, + SDR: StepShape_ShapeDefinitionRepresentation, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... + def TransferShape( + self, + start: Transfer_Finder, + SDR: StepShape_ShapeDefinitionRepresentation, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + shapeGroup: Optional[TopTools_HSequenceOfShape] = None, + isManifold: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... + def TransferSubShape( + self, + start: Transfer_Finder, + SDR: StepShape_ShapeDefinitionRepresentation, + AX1: StepGeom_Axis2Placement3d, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + shapeGroup: Optional[TopTools_HSequenceOfShape] = None, + isManifold: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... class STEPControl_Controller(XSControl_Controller): def __init__(self) -> None: ... - def ActorRead(self, theModel: Interface_InterfaceModel) -> Transfer_ActorOfTransientProcess: ... + def ActorRead( + self, theModel: Interface_InterfaceModel + ) -> Transfer_ActorOfTransientProcess: ... def Customise(self, WS: XSControl_WorkSession) -> None: ... @staticmethod def Init() -> bool: ... def NewModel(self) -> Interface_InterfaceModel: ... - def TransferWriteShape(self, shape: TopoDS_Shape, FP: Transfer_FinderProcess, model: Interface_InterfaceModel, modetrans: Optional[int] = 0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> IFSelect_ReturnStatus: ... + def TransferWriteShape( + self, + shape: TopoDS_Shape, + FP: Transfer_FinderProcess, + model: Interface_InterfaceModel, + modetrans: Optional[int] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... class STEPControl_Reader(XSControl_Reader): @overload def __init__(self) -> None: ... @overload - def __init__(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... - def FileUnits(self, theUnitLengthNames: TColStd_SequenceOfAsciiString, theUnitAngleNames: TColStd_SequenceOfAsciiString, theUnitSolidAngleNames: TColStd_SequenceOfAsciiString) -> None: ... + def __init__( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... + def FileUnits( + self, + theUnitLengthNames: TColStd_SequenceOfAsciiString, + theUnitAngleNames: TColStd_SequenceOfAsciiString, + theUnitSolidAngleNames: TColStd_SequenceOfAsciiString, + ) -> None: ... def NbRootsForTransfer(self) -> int: ... @overload def ReadFile(self, filename: str) -> IFSelect_ReturnStatus: ... @@ -85,21 +170,35 @@ class STEPControl_Reader(XSControl_Reader): def SetSystemLengthUnit(self, theLengthUnit: float) -> None: ... def StepModel(self) -> StepData_StepModel: ... def SystemLengthUnit(self) -> float: ... - def TransferRoot(self, num: Optional[int] = 1, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def TransferRoot( + self, + num: Optional[int] = 1, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... class STEPControl_Writer: @overload def __init__(self) -> None: ... @overload - def __init__(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... + def __init__( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... def GetShapeFixParameters(self) -> False: ... def GetShapeProcessFlags(self) -> False: ... def Model(self, newone: Optional[bool] = False) -> StepData_StepModel: ... def PrintStatsTransfer(self, what: int, mode: Optional[int] = 0) -> None: ... def SetTolerance(self, Tol: float) -> None: ... - def SetWS(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... + def SetWS( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... @overload - def Transfer(self, sh: TopoDS_Shape, mode: STEPControl_StepModelType, compgraph: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> IFSelect_ReturnStatus: ... + def Transfer( + self, + sh: TopoDS_Shape, + mode: STEPControl_StepModelType, + compgraph: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... def UnsetTolerance(self) -> None: ... def WS(self) -> XSControl_WorkSession: ... def Write(self, theFileName: str) -> IFSelect_ReturnStatus: ... @@ -108,4 +207,3 @@ class STEPControl_Writer: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/STEPEdit.pyi b/src/SWIG_files/wrapper/STEPEdit.pyi index b8f3edabf..e20d10d01 100644 --- a/src/SWIG_files/wrapper/STEPEdit.pyi +++ b/src/SWIG_files/wrapper/STEPEdit.pyi @@ -8,7 +8,6 @@ from OCC.Core.IFSelect import * from OCC.Core.Interface import * from OCC.Core.TCollection import * - class stepedit: @staticmethod def NewModel() -> StepData_StepModel: ... @@ -25,21 +24,44 @@ class stepedit: class STEPEdit_EditContext(IFSelect_Editor): def __init__(self) -> None: ... - def Apply(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Apply( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def Label(self) -> str: ... - def Load(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Load( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def Recognize(self, form: IFSelect_EditForm) -> bool: ... - def StringValue(self, form: IFSelect_EditForm, num: int) -> TCollection_HAsciiString: ... + def StringValue( + self, form: IFSelect_EditForm, num: int + ) -> TCollection_HAsciiString: ... class STEPEdit_EditSDR(IFSelect_Editor): def __init__(self) -> None: ... - def Apply(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Apply( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def Label(self) -> str: ... - def Load(self, form: IFSelect_EditForm, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Load( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... def Recognize(self, form: IFSelect_EditForm) -> bool: ... - def StringValue(self, form: IFSelect_EditForm, num: int) -> TCollection_HAsciiString: ... + def StringValue( + self, form: IFSelect_EditForm, num: int + ) -> TCollection_HAsciiString: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/STEPSelections.pyi b/src/SWIG_files/wrapper/STEPSelections.pyi index b72dbc5fd..6d5ed17b4 100644 --- a/src/SWIG_files/wrapper/STEPSelections.pyi +++ b/src/SWIG_files/wrapper/STEPSelections.pyi @@ -11,42 +11,57 @@ from OCC.Core.IFSelect import * from OCC.Core.TCollection import * from OCC.Core.XSControl import * - class STEPSelections_SequenceOfAssemblyComponent: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class STEPSelections_SequenceOfAssemblyLink: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class STEPSelections_SequenceOfAssemblyLink: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class STEPSelections_AssemblyComponent(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, sdr: StepShape_ShapeDefinitionRepresentation, list: STEPSelections_HSequenceOfAssemblyLink) -> None: ... + def __init__( + self, + sdr: StepShape_ShapeDefinitionRepresentation, + list: STEPSelections_HSequenceOfAssemblyLink, + ) -> None: ... def GetList(self) -> STEPSelections_HSequenceOfAssemblyLink: ... def GetSDR(self) -> StepShape_ShapeDefinitionRepresentation: ... def SetList(self, list: STEPSelections_HSequenceOfAssemblyLink) -> None: ... @@ -56,8 +71,12 @@ class STEPSelections_AssemblyExplorer: def __init__(self, G: Interface_Graph) -> None: ... def Dump(self) -> str: ... def FillListWithGraph(self, cmp: STEPSelections_AssemblyComponent) -> None: ... - def FindItemWithNAUO(self, nauo: StepRepr_NextAssemblyUsageOccurrence) -> Standard_Transient: ... - def FindSDRWithProduct(self, product: StepBasic_ProductDefinition) -> StepShape_ShapeDefinitionRepresentation: ... + def FindItemWithNAUO( + self, nauo: StepRepr_NextAssemblyUsageOccurrence + ) -> Standard_Transient: ... + def FindSDRWithProduct( + self, product: StepBasic_ProductDefinition + ) -> StepShape_ShapeDefinitionRepresentation: ... def Init(self, G: Interface_Graph) -> None: ... def NbAssemblies(self) -> int: ... def Root(self, rank: Optional[int] = 1) -> STEPSelections_AssemblyComponent: ... @@ -66,7 +85,12 @@ class STEPSelections_AssemblyLink(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, nauo: StepRepr_NextAssemblyUsageOccurrence, item: Standard_Transient, part: STEPSelections_AssemblyComponent) -> None: ... + def __init__( + self, + nauo: StepRepr_NextAssemblyUsageOccurrence, + item: Standard_Transient, + part: STEPSelections_AssemblyComponent, + ) -> None: ... def GetComponent(self) -> STEPSelections_AssemblyComponent: ... def GetItem(self) -> Standard_Transient: ... def GetNAUO(self) -> StepRepr_NextAssemblyUsageOccurrence: ... @@ -91,16 +115,34 @@ class STEPSelections_Counter: class STEPSelections_SelectAssembly(IFSelect_SelectExplore): def __init__(self) -> None: ... - def Explore(self, level: int, ent: Standard_Transient, G: Interface_Graph, explored: Interface_EntityIterator) -> bool: ... + def Explore( + self, + level: int, + ent: Standard_Transient, + G: Interface_Graph, + explored: Interface_EntityIterator, + ) -> bool: ... def ExploreLabel(self) -> str: ... class STEPSelections_SelectDerived(StepSelect_StepType): def __init__(self) -> None: ... - def Matches(self, ent: Standard_Transient, model: Interface_InterfaceModel, text: str, exact: bool) -> bool: ... + def Matches( + self, + ent: Standard_Transient, + model: Interface_InterfaceModel, + text: str, + exact: bool, + ) -> bool: ... class STEPSelections_SelectFaces(IFSelect_SelectExplore): def __init__(self) -> None: ... - def Explore(self, level: int, ent: Standard_Transient, G: Interface_Graph, explored: Interface_EntityIterator) -> bool: ... + def Explore( + self, + level: int, + ent: Standard_Transient, + G: Interface_Graph, + explored: Interface_EntityIterator, + ) -> bool: ... def ExploreLabel(self) -> str: ... class STEPSelections_SelectForTransfer(XSControl_SelectForTransfer): @@ -112,12 +154,24 @@ class STEPSelections_SelectForTransfer(XSControl_SelectForTransfer): class STEPSelections_SelectGSCurves(IFSelect_SelectExplore): def __init__(self) -> None: ... - def Explore(self, level: int, ent: Standard_Transient, G: Interface_Graph, explored: Interface_EntityIterator) -> bool: ... + def Explore( + self, + level: int, + ent: Standard_Transient, + G: Interface_Graph, + explored: Interface_EntityIterator, + ) -> bool: ... def ExploreLabel(self) -> str: ... class STEPSelections_SelectInstances(IFSelect_SelectExplore): def __init__(self) -> None: ... - def Explore(self, level: int, ent: Standard_Transient, G: Interface_Graph, explored: Interface_EntityIterator) -> bool: ... + def Explore( + self, + level: int, + ent: Standard_Transient, + G: Interface_Graph, + explored: Interface_EntityIterator, + ) -> bool: ... def ExploreLabel(self) -> str: ... def RootResult(self, G: Interface_Graph) -> Interface_EntityIterator: ... @@ -125,12 +179,12 @@ class STEPSelections_SelectInstances(IFSelect_SelectExplore): # harray2 classes # hsequence classes -class STEPSelections_HSequenceOfAssemblyLink(STEPSelections_SequenceOfAssemblyLink, Standard_Transient): +class STEPSelections_HSequenceOfAssemblyLink( + STEPSelections_SequenceOfAssemblyLink, Standard_Transient +): @overload def __init__(self) -> None: ... @overload def __init__(self, other: STEPSelections_SequenceOfAssemblyLink) -> None: ... def Sequence(self) -> STEPSelections_SequenceOfAssemblyLink: ... def Append(self, theSequence: STEPSelections_SequenceOfAssemblyLink) -> None: ... - - diff --git a/src/SWIG_files/wrapper/Select3D.pyi b/src/SWIG_files/wrapper/Select3D.pyi index d007d8d02..f6b64c1d4 100644 --- a/src/SWIG_files/wrapper/Select3D.pyi +++ b/src/SWIG_files/wrapper/Select3D.pyi @@ -24,22 +24,30 @@ Select3D_IndexedMapOfEntity = NewType("Select3D_IndexedMapOfEntity", Any) Select3D_Vec3 = NewType("Select3D_Vec3", Any) # the following typedef cannot be wrapped as is Select3D_VectorOfHPoly = NewType("Select3D_VectorOfHPoly", Any) -SelectBasics_SensitiveEntity = NewType("SelectBasics_SensitiveEntity", Select3D_SensitiveEntity) +SelectBasics_SensitiveEntity = NewType( + "SelectBasics_SensitiveEntity", Select3D_SensitiveEntity +) class Select3D_EntitySequence: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Select3D_TypeOfSensitivity(IntEnum): Select3D_TOS_INTERIOR: int = ... @@ -76,24 +84,49 @@ class Select3D_SensitiveBox(Select3D_SensitiveEntity): @overload def __init__(self, theOwnerId: SelectMgr_EntityOwner, theBox: Bnd_Box) -> None: ... @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, theXMin: float, theYMin: float, theZMin: float, theXMax: float, theYMax: float, theZMax: float) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + theXMin: float, + theYMin: float, + theZMin: float, + theXMax: float, + theYMax: float, + theZMax: float, + ) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def CenterOfGeometry(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def ToBuildBVH(self) -> bool: ... class Select3D_SensitiveCylinder(Select3D_SensitiveEntity): - def __init__(self, theOwnerId: SelectMgr_EntityOwner, theBottomRad: float, theTopRad: float, theHeight: float, theTrsf: gp_Trsf, theIsHollow: Optional[bool] = False) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theTrsf: gp_Trsf, + theIsHollow: Optional[bool] = False, + ) -> None: ... def BottomRadius(self) -> float: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def CenterOfGeometry(self) -> gp_Pnt: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... def Height(self) -> float: ... def IsHollow(self) -> bool: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def ToBuildBVH(self) -> bool: ... def TopRadius(self) -> float: ... @@ -101,16 +134,30 @@ class Select3D_SensitiveCylinder(Select3D_SensitiveEntity): class Select3D_SensitiveFace(Select3D_SensitiveEntity): @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_Array1OfPnt, theType: Select3D_TypeOfSensitivity) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + thePoints: TColgp_Array1OfPnt, + theType: Select3D_TypeOfSensitivity, + ) -> None: ... @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_HArray1OfPnt, theType: Select3D_TypeOfSensitivity) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + thePoints: TColgp_HArray1OfPnt, + theType: Select3D_TypeOfSensitivity, + ) -> None: ... def BVH(self) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def CenterOfGeometry(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... def GetPoints(self, theHArrayOfPnt: TColgp_HArray1OfPnt) -> None: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def ToBuildBVH(self) -> bool: ... @@ -118,24 +165,34 @@ class Select3D_SensitivePoint(Select3D_SensitiveEntity): def __init__(self, theOwnerId: SelectMgr_EntityOwner, thePoint: gp_Pnt) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def CenterOfGeometry(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def Point(self) -> gp_Pnt: ... def ToBuildBVH(self) -> bool: ... class Select3D_SensitiveSegment(Select3D_SensitiveEntity): - def __init__(self, theOwnerId: SelectMgr_EntityOwner, theFirstPnt: gp_Pnt, theLastPnt: gp_Pnt) -> None: ... + def __init__( + self, theOwnerId: SelectMgr_EntityOwner, theFirstPnt: gp_Pnt, theLastPnt: gp_Pnt + ) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def CenterOfGeometry(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def EndPoint(self) -> gp_Pnt: ... @overload def EndPoint(self, thePnt: gp_Pnt) -> None: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def SetEndPoint(self, thePnt: gp_Pnt) -> None: ... def SetStartPoint(self, thePnt: gp_Pnt) -> None: ... @@ -146,36 +203,55 @@ class Select3D_SensitiveSegment(Select3D_SensitiveEntity): def ToBuildBVH(self) -> bool: ... class Select3D_SensitiveSphere(Select3D_SensitiveEntity): - def __init__(self, theOwnerId: SelectMgr_EntityOwner, theCenter: gp_Pnt, theRadius: float) -> None: ... + def __init__( + self, theOwnerId: SelectMgr_EntityOwner, theCenter: gp_Pnt, theRadius: float + ) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def CenterOfGeometry(self) -> gp_Pnt: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... def LastDetectedPoint(self) -> gp_Pnt: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def Radius(self) -> float: ... def ResetLastDetectedPoint(self) -> None: ... def ToBuildBVH(self) -> bool: ... class Select3D_SensitiveTriangle(Select3D_SensitiveEntity): - def __init__(self, theOwnerId: SelectMgr_EntityOwner, thePnt0: gp_Pnt, thePnt1: gp_Pnt, thePnt2: gp_Pnt, theType: Optional[Select3D_TypeOfSensitivity] = Select3D_TOS_INTERIOR) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + thePnt0: gp_Pnt, + thePnt1: gp_Pnt, + thePnt2: gp_Pnt, + theType: Optional[Select3D_TypeOfSensitivity] = Select3D_TOS_INTERIOR, + ) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def Center3D(self) -> gp_Pnt: ... def CenterOfGeometry(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def Points3D(self, thePnt0: gp_Pnt, thePnt1: gp_Pnt, thePnt2: gp_Pnt) -> None: ... def ToBuildBVH(self) -> bool: ... class Select3D_InteriorSensitivePointSet(Select3D_SensitiveSet): - def __init__(self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_Array1OfPnt) -> None: ... + def __init__( + self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_Array1OfPnt + ) -> None: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def Box(self, theIdx: int) -> Select3D_BndBox3d: ... def Center(self, theIdx: int, theAxis: int) -> float: ... def CenterOfGeometry(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetPoints(self, theHArrayOfPnt: TColgp_HArray1OfPnt) -> None: ... def NbSubElements(self) -> int: ... def Size(self) -> int: ... @@ -183,9 +259,18 @@ class Select3D_InteriorSensitivePointSet(Select3D_SensitiveSet): class Select3D_SensitiveGroup(Select3D_SensitiveSet): @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, theIsMustMatchAll: Optional[bool] = True) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + theIsMustMatchAll: Optional[bool] = True, + ) -> None: ... @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, theEntities: Select3D_EntitySequence, theIsMustMatchAll: Optional[bool] = True) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + theEntities: Select3D_EntitySequence, + theIsMustMatchAll: Optional[bool] = True, + ) -> None: ... @overload def Add(self, theEntities: Select3D_EntitySequence) -> None: ... @overload @@ -195,13 +280,17 @@ class Select3D_SensitiveGroup(Select3D_SensitiveSet): def Center(self, theIdx: int, theAxis: int) -> float: ... def CenterOfGeometry(self) -> gp_Pnt: ... def Clear(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Entities(self) -> Select3D_IndexedMapOfEntity: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... def IsIn(self, theSensitive: Select3D_SensitiveEntity) -> bool: ... def LastDetectedEntity(self) -> Select3D_SensitiveEntity: ... def LastDetectedEntityIndex(self) -> int: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def MustMatchAll(self) -> bool: ... def NbSubElements(self) -> int: ... def Remove(self, theSensitive: Select3D_SensitiveEntity) -> None: ... @@ -215,21 +304,48 @@ class Select3D_SensitiveGroup(Select3D_SensitiveSet): class Select3D_SensitivePoly(Select3D_SensitiveSet): @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_Array1OfPnt, theIsBVHEnabled: bool) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + thePoints: TColgp_Array1OfPnt, + theIsBVHEnabled: bool, + ) -> None: ... @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_HArray1OfPnt, theIsBVHEnabled: bool) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + thePoints: TColgp_HArray1OfPnt, + theIsBVHEnabled: bool, + ) -> None: ... @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, theCircle: gp_Circ, theU1: float, theU2: float, theIsFilled: Optional[bool] = False, theNbPnts: Optional[int] = 12) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + theCircle: gp_Circ, + theU1: float, + theU2: float, + theIsFilled: Optional[bool] = False, + theNbPnts: Optional[int] = 12, + ) -> None: ... @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, theIsBVHEnabled: bool, theNbPnts: Optional[int] = 6) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + theIsBVHEnabled: bool, + theNbPnts: Optional[int] = 6, + ) -> None: ... def ArrayBounds(self) -> Tuple[int, int]: ... def BoundingBox(self) -> Select3D_BndBox3d: ... def Box(self, theIdx: int) -> Select3D_BndBox3d: ... def Center(self, theIdx: int, theAxis: int) -> float: ... def CenterOfGeometry(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetPoint3d(self, thePntIdx: int) -> gp_Pnt: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def Points3D(self, theHArrayOfPnt: TColgp_HArray1OfPnt) -> None: ... def Size(self) -> int: ... @@ -242,19 +358,57 @@ class Select3D_SensitivePrimitiveArray(Select3D_SensitiveSet): def Box(self, theIdx: int) -> Select3D_BndBox3d: ... def Center(self, theIdx: int, theAxis: int) -> float: ... def CenterOfGeometry(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... def HasInitLocation(self) -> bool: ... @overload - def InitPoints(self, theVerts: Graphic3d_Buffer, theIndices: Graphic3d_IndexBuffer, theInitLoc: TopLoc_Location, theIndexLower: int, theIndexUpper: int, theToEvalMinMax: Optional[bool] = true, theNbGroups: Optional[int] = 1) -> bool: ... + def InitPoints( + self, + theVerts: Graphic3d_Buffer, + theIndices: Graphic3d_IndexBuffer, + theInitLoc: TopLoc_Location, + theIndexLower: int, + theIndexUpper: int, + theToEvalMinMax: Optional[bool] = true, + theNbGroups: Optional[int] = 1, + ) -> bool: ... @overload - def InitPoints(self, theVerts: Graphic3d_Buffer, theIndices: Graphic3d_IndexBuffer, theInitLoc: TopLoc_Location, theToEvalMinMax: Optional[bool] = true, theNbGroups: Optional[int] = 1) -> bool: ... + def InitPoints( + self, + theVerts: Graphic3d_Buffer, + theIndices: Graphic3d_IndexBuffer, + theInitLoc: TopLoc_Location, + theToEvalMinMax: Optional[bool] = true, + theNbGroups: Optional[int] = 1, + ) -> bool: ... @overload - def InitPoints(self, theVerts: Graphic3d_Buffer, theInitLoc: TopLoc_Location, theToEvalMinMax: Optional[bool] = true, theNbGroups: Optional[int] = 1) -> bool: ... + def InitPoints( + self, + theVerts: Graphic3d_Buffer, + theInitLoc: TopLoc_Location, + theToEvalMinMax: Optional[bool] = true, + theNbGroups: Optional[int] = 1, + ) -> bool: ... @overload - def InitTriangulation(self, theVerts: Graphic3d_Buffer, theIndices: Graphic3d_IndexBuffer, theInitLoc: TopLoc_Location, theIndexLower: int, theIndexUpper: int, theToEvalMinMax: Optional[bool] = true, theNbGroups: Optional[int] = 1) -> bool: ... + def InitTriangulation( + self, + theVerts: Graphic3d_Buffer, + theIndices: Graphic3d_IndexBuffer, + theInitLoc: TopLoc_Location, + theIndexLower: int, + theIndexUpper: int, + theToEvalMinMax: Optional[bool] = true, + theNbGroups: Optional[int] = 1, + ) -> bool: ... @overload - def InitTriangulation(self, theVerts: Graphic3d_Buffer, theIndices: Graphic3d_IndexBuffer, theInitLoc: TopLoc_Location, theToEvalMinMax: Optional[bool] = true, theNbGroups: Optional[int] = 1) -> bool: ... + def InitTriangulation( + self, + theVerts: Graphic3d_Buffer, + theIndices: Graphic3d_IndexBuffer, + theInitLoc: TopLoc_Location, + theToEvalMinMax: Optional[bool] = true, + theNbGroups: Optional[int] = 1, + ) -> bool: ... def InvInitLocation(self) -> gp_GTrsf: ... def LastDetectedEdgeNode1(self) -> int: ... def LastDetectedEdgeNode2(self) -> int: ... @@ -262,7 +416,11 @@ class Select3D_SensitivePrimitiveArray(Select3D_SensitiveSet): def LastDetectedElementMap(self) -> TColStd_HPackedMapOfInteger: ... def LastDetectedNode(self) -> int: ... def LastDetectedNodeMap(self) -> TColStd_HPackedMapOfInteger: ... - def Matches(self, theMgr: SelectBasics_SelectingVolumeManager, thePickResult: SelectBasics_PickResult) -> bool: ... + def Matches( + self, + theMgr: SelectBasics_SelectingVolumeManager, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... def NbSubElements(self) -> int: ... def PatchDistance(self) -> float: ... def PatchSizeMax(self) -> int: ... @@ -272,7 +430,15 @@ class Select3D_SensitivePrimitiveArray(Select3D_SensitiveSet): def SetDetectElements(self, theToDetect: bool) -> None: ... def SetDetectNodeMap(self, theToDetect: bool) -> None: ... def SetDetectNodes(self, theToDetect: bool) -> None: ... - def SetMinMax(self, theMinX: float, theMinY: float, theMinZ: float, theMaxX: float, theMaxY: float, theMaxZ: float) -> None: ... + def SetMinMax( + self, + theMinX: float, + theMinY: float, + theMinZ: float, + theMaxX: float, + theMaxY: float, + theMaxZ: float, + ) -> None: ... def SetPatchDistance(self, thePatchDistMax: float) -> None: ... def SetPatchSizeMax(self, thePatchSizeMax: int) -> None: ... def Size(self) -> int: ... @@ -290,7 +456,7 @@ class Select3D_SensitiveWire(Select3D_SensitiveSet): def Box(self, theIdx: int) -> Select3D_BndBox3d: ... def Center(self, theIdx: int, theAxis: int) -> float: ... def CenterOfGeometry(self) -> gp_Pnt: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... def GetEdges(self) -> False: ... def GetLastDetected(self) -> Select3D_SensitiveEntity: ... @@ -301,29 +467,37 @@ class Select3D_SensitiveWire(Select3D_SensitiveSet): class Select3D_SensitiveCurve(Select3D_SensitivePoly): @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, theCurve: Geom_Curve, theNbPnts: Optional[int] = 17) -> None: ... + def __init__( + self, + theOwnerId: SelectMgr_EntityOwner, + theCurve: Geom_Curve, + theNbPnts: Optional[int] = 17, + ) -> None: ... @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_HArray1OfPnt) -> None: ... + def __init__( + self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_HArray1OfPnt + ) -> None: ... @overload - def __init__(self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_Array1OfPnt) -> None: ... + def __init__( + self, theOwnerId: SelectMgr_EntityOwner, thePoints: TColgp_Array1OfPnt + ) -> None: ... def GetConnected(self) -> Select3D_SensitiveEntity: ... -#classnotwrapped +# classnotwrapped class Select3D_SensitiveTriangulation: ... -#classnotwrapped +# classnotwrapped class Select3D_SensitiveEntity: ... -#classnotwrapped +# classnotwrapped class Handle_Select3D_SensitiveEntity: ... -#classnotwrapped +# classnotwrapped class Select3D_SensitiveSet: ... -#classnotwrapped +# classnotwrapped class Select3D_SensitiveCircle: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/SelectBasics.pyi b/src/SWIG_files/wrapper/SelectBasics.pyi index c18061970..f5cef2695 100644 --- a/src/SWIG_files/wrapper/SelectBasics.pyi +++ b/src/SWIG_files/wrapper/SelectBasics.pyi @@ -6,7 +6,6 @@ from OCC.Core.NCollection import * from OCC.Core.gp import * from OCC.Core.TColgp import * - class selectbasics: @staticmethod def MaxOwnerPriority() -> int: ... @@ -17,14 +16,18 @@ class SelectBasics_PickResult: @overload def __init__(self) -> None: ... @overload - def __init__(self, theDepth: float, theDistToCenter: float, theObjPickedPnt: gp_Pnt) -> None: ... + def __init__( + self, theDepth: float, theDistToCenter: float, theObjPickedPnt: gp_Pnt + ) -> None: ... def Depth(self) -> float: ... def DistToGeomCenter(self) -> float: ... def HasPickedPoint(self) -> bool: ... def Invalidate(self) -> None: ... def IsValid(self) -> bool: ... @staticmethod - def Min(thePickResult1: SelectBasics_PickResult, thePickResult2: SelectBasics_PickResult) -> SelectBasics_PickResult: ... + def Min( + thePickResult1: SelectBasics_PickResult, thePickResult2: SelectBasics_PickResult + ) -> SelectBasics_PickResult: ... def PickedPoint(self) -> gp_Pnt: ... def SetDepth(self, theDepth: float) -> None: ... def SetDistToGeomCenter(self, theDistToCenter: float) -> None: ... @@ -38,7 +41,7 @@ class SelectBasics_PickResult: class SelectBasics_SelectingVolumeManager: def DetectedPoint(self, theDepth: float) -> gp_Pnt: ... def DistToGeometryCenter(self, theCOG: gp_Pnt) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetActiveSelectionType(self) -> int: ... def GetFarPickedPnt(self) -> gp_Pnt: ... def GetMousePosition(self) -> gp_Pnt2d: ... @@ -47,38 +50,109 @@ class SelectBasics_SelectingVolumeManager: def IsOverlapAllowed(self) -> bool: ... def IsScalableActiveVolume(self) -> bool: ... @overload - def Overlaps(self, thePnt: gp_Pnt, thePickResult: SelectBasics_PickResult) -> bool: ... + def Overlaps( + self, thePnt: gp_Pnt, thePickResult: SelectBasics_PickResult + ) -> bool: ... @overload def Overlaps(self, thePnt: gp_Pnt) -> bool: ... @overload - def Overlaps(self, theArrayOfPts: TColgp_HArray1OfPnt, theSensType: int, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def Overlaps(self, theArrayOfPts: TColgp_Array1OfPnt, theSensType: int, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def Overlaps(self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def Overlaps(self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, thePnt3: gp_Pnt, theSensType: int, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsCircle(self, theRadius: float, theTrsf: gp_Trsf, theIsFilled: bool, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsCircle(self, theRadius: float, theTrsf: gp_Trsf, theIsFilled: bool, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsCylinder(self, theBottomRad: float, theTopRad: float, theHeight: float, theTrsf: gp_Trsf, theIsHollow: bool, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsCylinder(self, theBottomRad: float, theTopRad: float, theHeight: float, theTrsf: gp_Trsf, theIsHollow: bool, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsPoint(self, thePnt: gp_Pnt, thePickResult: SelectBasics_PickResult) -> bool: ... + def Overlaps( + self, + theArrayOfPts: TColgp_HArray1OfPnt, + theSensType: int, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def Overlaps( + self, + theArrayOfPts: TColgp_Array1OfPnt, + theSensType: int, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def Overlaps( + self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, thePickResult: SelectBasics_PickResult + ) -> bool: ... + @overload + def Overlaps( + self, + thePnt1: gp_Pnt, + thePnt2: gp_Pnt, + thePnt3: gp_Pnt, + theSensType: int, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsCircle( + self, + theRadius: float, + theTrsf: gp_Trsf, + theIsFilled: bool, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsCircle( + self, + theRadius: float, + theTrsf: gp_Trsf, + theIsFilled: bool, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsCylinder( + self, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theTrsf: gp_Trsf, + theIsHollow: bool, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsCylinder( + self, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theTrsf: gp_Trsf, + theIsHollow: bool, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsPoint( + self, thePnt: gp_Pnt, thePickResult: SelectBasics_PickResult + ) -> bool: ... @overload def OverlapsPoint(self, thePnt: gp_Pnt) -> bool: ... - def OverlapsPolygon(self, theArrayOfPts: TColgp_Array1OfPnt, theSensType: int, thePickResult: SelectBasics_PickResult) -> bool: ... - def OverlapsSegment(self, thePt1: gp_Pnt, thePt2: gp_Pnt, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsSphere(self, theCenter: gp_Pnt, theRadius: float, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsSphere(self, theCenter: gp_Pnt, theRadius: float, theInside: Optional[bool] = None) -> bool: ... - def OverlapsTriangle(self, thePt1: gp_Pnt, thePt2: gp_Pnt, thePt3: gp_Pnt, theSensType: int, thePickResult: SelectBasics_PickResult) -> bool: ... + def OverlapsPolygon( + self, + theArrayOfPts: TColgp_Array1OfPnt, + theSensType: int, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + def OverlapsSegment( + self, thePt1: gp_Pnt, thePt2: gp_Pnt, thePickResult: SelectBasics_PickResult + ) -> bool: ... + @overload + def OverlapsSphere( + self, + theCenter: gp_Pnt, + theRadius: float, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsSphere( + self, theCenter: gp_Pnt, theRadius: float, theInside: Optional[bool] = None + ) -> bool: ... + def OverlapsTriangle( + self, + thePt1: gp_Pnt, + thePt2: gp_Pnt, + thePt3: gp_Pnt, + theSensType: int, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/SelectMgr.i b/src/SWIG_files/wrapper/SelectMgr.i index 0f4f8aecd..abca9f51b 100644 --- a/src/SWIG_files/wrapper/SelectMgr.i +++ b/src/SWIG_files/wrapper/SelectMgr.i @@ -267,6 +267,12 @@ SelectMgr_TOU_None = SelectMgr_TypeOfUpdate.SelectMgr_TOU_None %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = SelectMgr_ListIteratorOfListOfFilter(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(SelectMgr_MapOfOwners) NCollection_DataMap,Standard_Integer>; diff --git a/src/SWIG_files/wrapper/SelectMgr.pyi b/src/SWIG_files/wrapper/SelectMgr.pyi index edc0a82ad..d8f152951 100644 --- a/src/SWIG_files/wrapper/SelectMgr.pyi +++ b/src/SWIG_files/wrapper/SelectMgr.pyi @@ -21,7 +21,9 @@ from OCC.Core.TCollection import * SelectBasics_EntityOwner = NewType("SelectBasics_EntityOwner", SelectMgr_EntityOwner) # the following typedef cannot be wrapped as is -SelectMgr_IndexedDataMapOfOwnerCriterion = NewType("SelectMgr_IndexedDataMapOfOwnerCriterion", Any) +SelectMgr_IndexedDataMapOfOwnerCriterion = NewType( + "SelectMgr_IndexedDataMapOfOwnerCriterion", Any +) # the following typedef cannot be wrapped as is SelectMgr_IndexedMapOfHSensitive = NewType("SelectMgr_IndexedMapOfHSensitive", Any) # the following typedef cannot be wrapped as is @@ -34,48 +36,60 @@ SelectMgr_Vec3 = NewType("SelectMgr_Vec3", Any) SelectMgr_Vec4 = NewType("SelectMgr_Vec4", Any) class SelectMgr_ListOfFilter: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: SelectMgr_ListOfFilter) -> SelectMgr_ListOfFilter: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class SelectMgr_SequenceOfOwner: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class SelectMgr_SequenceOfOwner: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class SelectMgr_SequenceOfSelection: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class SelectMgr_SequenceOfSelection: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class SelectMgr_FilterType(IntEnum): SelectMgr_FilterType_AND: int = ... @@ -88,8 +102,12 @@ class SelectMgr_PickingStrategy(IntEnum): SelectMgr_PickingStrategy_FirstAcceptable: int = ... SelectMgr_PickingStrategy_OnlyTopmost: int = ... -SelectMgr_PickingStrategy_FirstAcceptable = SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_FirstAcceptable -SelectMgr_PickingStrategy_OnlyTopmost = SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_OnlyTopmost +SelectMgr_PickingStrategy_FirstAcceptable = ( + SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_FirstAcceptable +) +SelectMgr_PickingStrategy_OnlyTopmost = ( + SelectMgr_PickingStrategy.SelectMgr_PickingStrategy_OnlyTopmost +) class SelectMgr_SelectionType(IntEnum): SelectMgr_SelectionType_Unknown: int = ... @@ -97,10 +115,14 @@ class SelectMgr_SelectionType(IntEnum): SelectMgr_SelectionType_Box: int = ... SelectMgr_SelectionType_Polyline: int = ... -SelectMgr_SelectionType_Unknown = SelectMgr_SelectionType.SelectMgr_SelectionType_Unknown +SelectMgr_SelectionType_Unknown = ( + SelectMgr_SelectionType.SelectMgr_SelectionType_Unknown +) SelectMgr_SelectionType_Point = SelectMgr_SelectionType.SelectMgr_SelectionType_Point SelectMgr_SelectionType_Box = SelectMgr_SelectionType.SelectMgr_SelectionType_Box -SelectMgr_SelectionType_Polyline = SelectMgr_SelectionType.SelectMgr_SelectionType_Polyline +SelectMgr_SelectionType_Polyline = ( + SelectMgr_SelectionType.SelectMgr_SelectionType_Polyline +) class SelectMgr_StateOfSelection(IntEnum): SelectMgr_SOS_Any: int = ... @@ -131,9 +153,15 @@ class SelectMgr_TypeOfDepthTolerance(IntEnum): SelectMgr_TypeOfDepthTolerance_UniformPixels: int = ... SelectMgr_TypeOfDepthTolerance_SensitivityFactor: int = ... -SelectMgr_TypeOfDepthTolerance_Uniform = SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_Uniform -SelectMgr_TypeOfDepthTolerance_UniformPixels = SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_UniformPixels -SelectMgr_TypeOfDepthTolerance_SensitivityFactor = SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_SensitivityFactor +SelectMgr_TypeOfDepthTolerance_Uniform = ( + SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_Uniform +) +SelectMgr_TypeOfDepthTolerance_UniformPixels = ( + SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_UniformPixels +) +SelectMgr_TypeOfDepthTolerance_SensitivityFactor = ( + SelectMgr_TypeOfDepthTolerance.SelectMgr_TypeOfDepthTolerance_SensitivityFactor +) class SelectMgr_TypeOfUpdate(IntEnum): SelectMgr_TOU_Full: int = ... @@ -146,7 +174,12 @@ SelectMgr_TOU_None = SelectMgr_TypeOfUpdate.SelectMgr_TOU_None class selectmgr: @staticmethod - def ComputeSensitivePrs(theStructure: Graphic3d_Structure, theSel: SelectMgr_Selection, theLoc: gp_Trsf, theTrsfPers: Graphic3d_TransformPers) -> None: ... + def ComputeSensitivePrs( + theStructure: Graphic3d_Structure, + theSel: SelectMgr_Selection, + theLoc: gp_Trsf, + theTrsfPers: Graphic3d_TransformPers, + ) -> None: ... class SelectMgr_BVHThreadPool(Standard_Transient): def __init__(self, theNbThreads: int) -> None: ... @@ -158,10 +191,12 @@ class SelectMgr_BVHThreadPool(Standard_Transient): class SelectMgr_BaseIntersector(Standard_Transient): def Build(self) -> None: ... def Camera(self) -> Graphic3d_Camera: ... - def CopyWithBuilder(self, theBuilder: SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector: ... + def CopyWithBuilder( + self, theBuilder: SelectMgr_FrustumBuilder + ) -> SelectMgr_BaseIntersector: ... def DetectedPoint(self, theDepth: float) -> gp_Pnt: ... def DistToGeometryCenter(self, theCOG: gp_Pnt) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetFarPnt(self) -> gp_Pnt: ... def GetMousePosition(self) -> gp_Pnt2d: ... def GetNearPnt(self) -> gp_Pnt: ... @@ -169,35 +204,128 @@ class SelectMgr_BaseIntersector(Standard_Transient): def GetViewRayDirection(self) -> gp_Dir: ... def IsScalable(self) -> bool: ... @overload - def OverlapsBox(self, theBoxMin: SelectMgr_Vec3, theBoxMax: SelectMgr_Vec3, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsBox(self, theBoxMin: SelectMgr_Vec3, theBoxMax: SelectMgr_Vec3, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsCircle(self, theBottomRad: float, theTrsf: gp_Trsf, theIsFilled: bool, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsCircle(self, theBottomRad: float, theTrsf: gp_Trsf, theIsFilled: bool, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsCylinder(self, theBottomRad: float, theTopRad: float, theHeight: float, theTrsf: gp_Trsf, theIsHollow: bool, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsCylinder(self, theBottomRad: float, theTopRad: float, theHeight: float, theTrsf: gp_Trsf, theIsHollow: bool, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsPoint(self, thePnt: gp_Pnt, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... + def OverlapsBox( + self, + theBoxMin: SelectMgr_Vec3, + theBoxMax: SelectMgr_Vec3, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsBox( + self, + theBoxMin: SelectMgr_Vec3, + theBoxMax: SelectMgr_Vec3, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsCircle( + self, + theBottomRad: float, + theTrsf: gp_Trsf, + theIsFilled: bool, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsCircle( + self, + theBottomRad: float, + theTrsf: gp_Trsf, + theIsFilled: bool, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsCylinder( + self, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theTrsf: gp_Trsf, + theIsHollow: bool, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsCylinder( + self, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theTrsf: gp_Trsf, + theIsHollow: bool, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsPoint( + self, + thePnt: gp_Pnt, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... @overload def OverlapsPoint(self, thePnt: gp_Pnt) -> bool: ... - def OverlapsPolygon(self, theArrayOfPnts: TColgp_Array1OfPnt, theSensType: Select3D_TypeOfSensitivity, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - def OverlapsSegment(self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsSphere(self, theCenter: gp_Pnt, theRadius: float, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsSphere(self, theCenter: gp_Pnt, theRadius: float, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - def OverlapsTriangle(self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, thePnt3: gp_Pnt, theSensType: Select3D_TypeOfSensitivity, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - def RayCircleIntersection(self, theRadius: float, theLoc: gp_Pnt, theRayDir: gp_Dir, theIsFilled: bool) -> Tuple[bool, float]: ... - def RayCylinderIntersection(self, theBottomRadius: float, theTopRadius: float, theHeight: float, theLoc: gp_Pnt, theRayDir: gp_Dir, theIsHollow: bool) -> Tuple[bool, float, float]: ... - def RaySphereIntersection(self, theCenter: gp_Pnt, theRadius: float, theLoc: gp_Pnt, theRayDir: gp_Dir) -> Tuple[bool, float, float]: ... - def ScaleAndTransform(self, theScaleFactor: int, theTrsf: gp_GTrsf, theBuilder: SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector: ... + def OverlapsPolygon( + self, + theArrayOfPnts: TColgp_Array1OfPnt, + theSensType: Select3D_TypeOfSensitivity, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + def OverlapsSegment( + self, + thePnt1: gp_Pnt, + thePnt2: gp_Pnt, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsSphere( + self, theCenter: gp_Pnt, theRadius: float, theInside: Optional[bool] = None + ) -> bool: ... + @overload + def OverlapsSphere( + self, + theCenter: gp_Pnt, + theRadius: float, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + def OverlapsTriangle( + self, + thePnt1: gp_Pnt, + thePnt2: gp_Pnt, + thePnt3: gp_Pnt, + theSensType: Select3D_TypeOfSensitivity, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + def RayCircleIntersection( + self, theRadius: float, theLoc: gp_Pnt, theRayDir: gp_Dir, theIsFilled: bool + ) -> Tuple[bool, float]: ... + def RayCylinderIntersection( + self, + theBottomRadius: float, + theTopRadius: float, + theHeight: float, + theLoc: gp_Pnt, + theRayDir: gp_Dir, + theIsHollow: bool, + ) -> Tuple[bool, float, float]: ... + def RaySphereIntersection( + self, theCenter: gp_Pnt, theRadius: float, theLoc: gp_Pnt, theRayDir: gp_Dir + ) -> Tuple[bool, float, float]: ... + def ScaleAndTransform( + self, + theScaleFactor: int, + theTrsf: gp_GTrsf, + theBuilder: SelectMgr_FrustumBuilder, + ) -> SelectMgr_BaseIntersector: ... def SetCamera(self, theCamera: Graphic3d_Camera) -> None: ... def SetPixelTolerance(self, theTol: int) -> None: ... - def SetViewport(self, theX: float, theY: float, theWidth: float, theHeight: float) -> None: ... + def SetViewport( + self, theX: float, theY: float, theWidth: float, theHeight: float + ) -> None: ... def SetWindowSize(self, theWidth: int, theHeight: int) -> None: ... def WindowSize(self) -> Tuple[int, int]: ... @@ -205,19 +333,38 @@ class SelectMgr_EntityOwner(Standard_Transient): @overload def __init__(self, aPriority: Optional[int] = 0) -> None: ... @overload - def __init__(self, aSO: SelectMgr_SelectableObject, aPriority: Optional[int] = 0) -> None: ... + def __init__( + self, aSO: SelectMgr_SelectableObject, aPriority: Optional[int] = 0 + ) -> None: ... @overload - def __init__(self, theOwner: SelectMgr_EntityOwner, aPriority: Optional[int] = 0) -> None: ... - def Clear(self, thePrsMgr: PrsMgr_PresentationManager, theMode: Optional[int] = 0) -> None: ... + def __init__( + self, theOwner: SelectMgr_EntityOwner, aPriority: Optional[int] = 0 + ) -> None: ... + def Clear( + self, thePrsMgr: PrsMgr_PresentationManager, theMode: Optional[int] = 0 + ) -> None: ... def ComesFromDecomposition(self) -> bool: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - def HandleMouseClick(self, thePoint: Graphic3d_Vec2i, theButton: Aspect_VKeyMouse, theModifiers: Aspect_VKeyFlags, theIsDoubleClick: bool) -> bool: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + def HandleMouseClick( + self, + thePoint: Graphic3d_Vec2i, + theButton: Aspect_VKeyMouse, + theModifiers: Aspect_VKeyFlags, + theIsDoubleClick: bool, + ) -> bool: ... def HasLocation(self) -> bool: ... def HasSelectable(self) -> bool: ... - def HilightWithColor(self, thePrsMgr: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: Optional[int] = 0) -> None: ... + def HilightWithColor( + self, + thePrsMgr: PrsMgr_PresentationManager, + theStyle: Prs3d_Drawer, + theMode: Optional[int] = 0, + ) -> None: ... def IsAutoHilight(self) -> bool: ... def IsForcedHilight(self) -> bool: ... - def IsHilighted(self, thePrsMgr: PrsMgr_PresentationManager, theMode: Optional[int] = 0) -> bool: ... + def IsHilighted( + self, thePrsMgr: PrsMgr_PresentationManager, theMode: Optional[int] = 0 + ) -> bool: ... def IsSameSelectable(self, theOther: SelectMgr_SelectableObject) -> bool: ... def IsSelected(self) -> bool: ... def Location(self) -> TopLoc_Location: ... @@ -237,8 +384,15 @@ class SelectMgr_EntityOwner(Standard_Transient): def State(self) -> int: ... @overload def State(self, theStatus: int) -> None: ... - def Unhilight(self, thePrsMgr: PrsMgr_PresentationManager, theMode: Optional[int] = 0) -> None: ... - def UpdateHighlightTrsf(self, theViewer: V3d_Viewer, theManager: PrsMgr_PresentationManager, theDispMode: int) -> None: ... + def Unhilight( + self, thePrsMgr: PrsMgr_PresentationManager, theMode: Optional[int] = 0 + ) -> None: ... + def UpdateHighlightTrsf( + self, + theViewer: V3d_Viewer, + theManager: PrsMgr_PresentationManager, + theDispMode: int, + ) -> None: ... class SelectMgr_Filter(Standard_Transient): def ActsOn(self, aStandardMode: TopAbs_ShapeEnum) -> bool: ... @@ -248,11 +402,17 @@ class SelectMgr_FrustumBuilder(Standard_Transient): def __init__(self) -> None: ... def Camera(self) -> Graphic3d_Camera: ... def InvalidateViewport(self) -> None: ... - def ProjectPntOnViewPlane(self, theX: float, theY: float, theZ: float) -> gp_Pnt: ... + def ProjectPntOnViewPlane( + self, theX: float, theY: float, theZ: float + ) -> gp_Pnt: ... def SetCamera(self, theCamera: Graphic3d_Camera) -> None: ... - def SetViewport(self, theX: float, theY: float, theWidth: float, theHeight: float) -> None: ... + def SetViewport( + self, theX: float, theY: float, theWidth: float, theHeight: float + ) -> None: ... def SetWindowSize(self, theWidth: int, theHeight: int) -> None: ... - def SignedPlanePntDist(self, theEq: SelectMgr_Vec3, thePnt: SelectMgr_Vec3) -> float: ... + def SignedPlanePntDist( + self, theEq: SelectMgr_Vec3, thePnt: SelectMgr_Vec3 + ) -> float: ... def WindowSize(self) -> Tuple[int, int]: ... class SelectMgr_SelectableObject(PrsMgr_PresentableObject): @@ -262,17 +422,30 @@ class SelectMgr_SelectableObject(PrsMgr_PresentableObject): def ClearDynamicHighlight(self, theMgr: PrsMgr_PresentationManager) -> None: ... def ClearSelected(self) -> None: ... def ClearSelections(self, update: Optional[bool] = False) -> None: ... - def ComputeSelection(self, theSelection: SelectMgr_Selection, theMode: int) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def ComputeSelection( + self, theSelection: SelectMgr_Selection, theMode: int + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ErasePresentations(self, theToRemove: bool) -> None: ... def GetAssemblyOwner(self) -> SelectMgr_EntityOwner: ... - def GetHilightPresentation(self, thePrsMgr: PrsMgr_PresentationManager) -> Prs3d_Presentation: ... - def GetSelectPresentation(self, thePrsMgr: PrsMgr_PresentationManager) -> Prs3d_Presentation: ... + def GetHilightPresentation( + self, thePrsMgr: PrsMgr_PresentationManager + ) -> Prs3d_Presentation: ... + def GetSelectPresentation( + self, thePrsMgr: PrsMgr_PresentationManager + ) -> Prs3d_Presentation: ... def GlobalSelOwner(self) -> SelectMgr_EntityOwner: ... def GlobalSelectionMode(self) -> int: ... def HasSelection(self, theMode: int) -> bool: ... - def HilightOwnerWithColor(self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theOwner: SelectMgr_EntityOwner) -> None: ... - def HilightSelected(self, thePrsMgr: PrsMgr_PresentationManager, theSeq: SelectMgr_SequenceOfOwner) -> None: ... + def HilightOwnerWithColor( + self, + thePM: PrsMgr_PresentationManager, + theStyle: Prs3d_Drawer, + theOwner: SelectMgr_EntityOwner, + ) -> None: ... + def HilightSelected( + self, thePrsMgr: PrsMgr_PresentationManager, theSeq: SelectMgr_SequenceOfOwner + ) -> None: ... def IsAutoHilight(self) -> bool: ... @overload def RecomputePrimitives(self) -> None: ... @@ -281,7 +454,9 @@ class SelectMgr_SelectableObject(PrsMgr_PresentableObject): def ResetTransformation(self) -> None: ... def Selection(self, theMode: int) -> SelectMgr_Selection: ... def Selections(self) -> SelectMgr_SequenceOfSelection: ... - def SetAssemblyOwner(self, theOwner: SelectMgr_EntityOwner, theMode: Optional[int] = -1) -> None: ... + def SetAssemblyOwner( + self, theOwner: SelectMgr_EntityOwner, theMode: Optional[int] = -1 + ) -> None: ... def SetAutoHilight(self, theAutoHilight: bool) -> None: ... def SetZLayer(self, theLayerId: int) -> None: ... def UpdateSelection(self, theMode: Optional[int] = -1) -> None: ... @@ -293,12 +468,14 @@ class SelectMgr_SelectableObjectSet: def Append(self, theObject: SelectMgr_SelectableObject) -> bool: ... def ChangeSubset(self, theObject: SelectMgr_SelectableObject) -> None: ... def Contains(self, theObject: SelectMgr_SelectableObject) -> bool: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def IsEmpty(self) -> bool: ... def MarkDirty(self) -> None: ... def Remove(self, theObject: SelectMgr_SelectableObject) -> bool: ... - def UpdateBVH(self, theCam: Graphic3d_Camera, theWinSize: Graphic3d_Vec2i) -> None: ... + def UpdateBVH( + self, theCam: Graphic3d_Camera, theWinSize: Graphic3d_Vec2i + ) -> None: ... class SelectMgr_SelectingVolumeManager(SelectBasics_SelectingVolumeManager): def __init__(self) -> None: ... @@ -313,10 +490,12 @@ class SelectMgr_SelectingVolumeManager(SelectBasics_SelectingVolumeManager): @overload def BuildSelectingVolume(self, thePoints: TColgp_Array1OfPnt2d) -> None: ... def Camera(self) -> Graphic3d_Camera: ... - def CopyWithBuilder(self, theBuilder: SelectMgr_FrustumBuilder) -> SelectMgr_SelectingVolumeManager: ... + def CopyWithBuilder( + self, theBuilder: SelectMgr_FrustumBuilder + ) -> SelectMgr_SelectingVolumeManager: ... def DetectedPoint(self, theDepth: float) -> gp_Pnt: ... def DistToGeometryCenter(self, theCOG: gp_Pnt) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetActiveSelectionType(self) -> int: ... def GetFarPickedPnt(self) -> gp_Pnt: ... def GetMousePosition(self) -> gp_Pnt2d: ... @@ -324,7 +503,9 @@ class SelectMgr_SelectingVolumeManager(SelectBasics_SelectingVolumeManager): def GetVertices(self) -> gp_Pnt: ... def GetViewRayDirection(self) -> gp_Dir: ... def InitAxisSelectingVolume(self, theAxis: gp_Ax1) -> None: ... - def InitBoxSelectingVolume(self, theMinPt: gp_Pnt2d, theMaxPt: gp_Pnt2d) -> None: ... + def InitBoxSelectingVolume( + self, theMinPt: gp_Pnt2d, theMaxPt: gp_Pnt2d + ) -> None: ... def InitPointSelectingVolume(self, thePoint: gp_Pnt2d) -> None: ... def InitPolylineSelectingVolume(self, thePoints: TColgp_Array1OfPnt2d) -> None: ... def InitSelectingVolume(self, theVolume: SelectMgr_BaseIntersector) -> None: ... @@ -332,37 +513,110 @@ class SelectMgr_SelectingVolumeManager(SelectBasics_SelectingVolumeManager): def IsScalableActiveVolume(self) -> bool: ... def ObjectClipping(self) -> Graphic3d_SequenceOfHClipPlane: ... @overload - def OverlapsBox(self, theBoxMin: SelectMgr_Vec3, theBoxMax: SelectMgr_Vec3, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsBox(self, theBoxMin: SelectMgr_Vec3, theBoxMax: SelectMgr_Vec3, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsCircle(self, theBottomRad: float, theTrsf: gp_Trsf, theIsFilled: bool, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsCircle(self, theBottomRad: float, theTrsf: gp_Trsf, theIsFilled: bool, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsCylinder(self, theBottomRad: float, theTopRad: float, theHeight: float, theTrsf: gp_Trsf, theIsHollow: bool, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsCylinder(self, theBottomRad: float, theTopRad: float, theHeight: float, theTrsf: gp_Trsf, theIsHollow: bool, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsPoint(self, thePnt: gp_Pnt, thePickResult: SelectBasics_PickResult) -> bool: ... + def OverlapsBox( + self, + theBoxMin: SelectMgr_Vec3, + theBoxMax: SelectMgr_Vec3, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsBox( + self, + theBoxMin: SelectMgr_Vec3, + theBoxMax: SelectMgr_Vec3, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsCircle( + self, + theBottomRad: float, + theTrsf: gp_Trsf, + theIsFilled: bool, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsCircle( + self, + theBottomRad: float, + theTrsf: gp_Trsf, + theIsFilled: bool, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsCylinder( + self, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theTrsf: gp_Trsf, + theIsHollow: bool, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsCylinder( + self, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theTrsf: gp_Trsf, + theIsHollow: bool, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsPoint( + self, thePnt: gp_Pnt, thePickResult: SelectBasics_PickResult + ) -> bool: ... @overload def OverlapsPoint(self, thePnt: gp_Pnt) -> bool: ... - def OverlapsPolygon(self, theArrayOfPts: TColgp_Array1OfPnt, theSensType: int, thePickResult: SelectBasics_PickResult) -> bool: ... - def OverlapsSegment(self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsSphere(self, theCenter: gp_Pnt, theRadius: float, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsSphere(self, theCenter: gp_Pnt, theRadius: float, theInside: Optional[bool] = None) -> bool: ... - def OverlapsTriangle(self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, thePnt3: gp_Pnt, theSensType: int, thePickResult: SelectBasics_PickResult) -> bool: ... - def ScaleAndTransform(self, theScaleFactor: int, theTrsf: gp_GTrsf, theBuilder: SelectMgr_FrustumBuilder) -> SelectMgr_SelectingVolumeManager: ... + def OverlapsPolygon( + self, + theArrayOfPts: TColgp_Array1OfPnt, + theSensType: int, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + def OverlapsSegment( + self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, thePickResult: SelectBasics_PickResult + ) -> bool: ... + @overload + def OverlapsSphere( + self, + theCenter: gp_Pnt, + theRadius: float, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsSphere( + self, theCenter: gp_Pnt, theRadius: float, theInside: Optional[bool] = None + ) -> bool: ... + def OverlapsTriangle( + self, + thePnt1: gp_Pnt, + thePnt2: gp_Pnt, + thePnt3: gp_Pnt, + theSensType: int, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + def ScaleAndTransform( + self, + theScaleFactor: int, + theTrsf: gp_GTrsf, + theBuilder: SelectMgr_FrustumBuilder, + ) -> SelectMgr_SelectingVolumeManager: ... def SetCamera(self, theCamera: Graphic3d_Camera) -> None: ... def SetPixelTolerance(self, theTolerance: int) -> None: ... def SetViewClipRanges(self, theRange: SelectMgr_ViewClipRange) -> None: ... @overload - def SetViewClipping(self, theViewPlanes: Graphic3d_SequenceOfHClipPlane, theObjPlanes: Graphic3d_SequenceOfHClipPlane, theWorldSelMgr: SelectMgr_SelectingVolumeManager) -> None: ... + def SetViewClipping( + self, + theViewPlanes: Graphic3d_SequenceOfHClipPlane, + theObjPlanes: Graphic3d_SequenceOfHClipPlane, + theWorldSelMgr: SelectMgr_SelectingVolumeManager, + ) -> None: ... @overload def SetViewClipping(self, theOther: SelectMgr_SelectingVolumeManager) -> None: ... - def SetViewport(self, theX: float, theY: float, theWidth: float, theHeight: float) -> None: ... + def SetViewport( + self, theX: float, theY: float, theWidth: float, theHeight: float + ) -> None: ... def SetWindowSize(self, theWidth: int, theHeight: int) -> None: ... def ViewClipRanges(self) -> SelectMgr_ViewClipRange: ... def ViewClipping(self) -> Graphic3d_SequenceOfHClipPlane: ... @@ -375,7 +629,7 @@ class SelectMgr_Selection(Standard_Transient): def ChangeEntities(self) -> False: ... def Clear(self) -> None: ... def Destroy(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Entities(self) -> False: ... def GetSelectionState(self) -> SelectMgr_StateOfSelection: ... def IsEmpty(self) -> bool: ... @@ -395,29 +649,57 @@ class SelectMgr_SelectionImageFiller(Standard_Transient): class SelectMgr_SelectionManager(Standard_Transient): def __init__(self, theSelector: SelectMgr_ViewerSelector) -> None: ... - def Activate(self, theObject: SelectMgr_SelectableObject, theMode: Optional[int] = 0) -> None: ... - def ClearSelectionStructures(self, theObj: SelectMgr_SelectableObject, theMode: Optional[int] = -1) -> None: ... + def Activate( + self, theObject: SelectMgr_SelectableObject, theMode: Optional[int] = 0 + ) -> None: ... + def ClearSelectionStructures( + self, theObj: SelectMgr_SelectableObject, theMode: Optional[int] = -1 + ) -> None: ... def Contains(self, theObject: SelectMgr_SelectableObject) -> bool: ... - def Deactivate(self, theObject: SelectMgr_SelectableObject, theMode: Optional[int] = -1) -> None: ... - def IsActivated(self, theObject: SelectMgr_SelectableObject, theMode: Optional[int] = -1) -> bool: ... - def Load(self, theObject: SelectMgr_SelectableObject, theMode: Optional[int] = -1) -> None: ... - def RecomputeSelection(self, theObject: SelectMgr_SelectableObject, theIsForce: Optional[bool] = False, theMode: Optional[int] = -1) -> None: ... + def Deactivate( + self, theObject: SelectMgr_SelectableObject, theMode: Optional[int] = -1 + ) -> None: ... + def IsActivated( + self, theObject: SelectMgr_SelectableObject, theMode: Optional[int] = -1 + ) -> bool: ... + def Load( + self, theObject: SelectMgr_SelectableObject, theMode: Optional[int] = -1 + ) -> None: ... + def RecomputeSelection( + self, + theObject: SelectMgr_SelectableObject, + theIsForce: Optional[bool] = False, + theMode: Optional[int] = -1, + ) -> None: ... def Remove(self, theObject: SelectMgr_SelectableObject) -> None: ... - def RestoreSelectionStructures(self, theObj: SelectMgr_SelectableObject, theMode: Optional[int] = -1) -> None: ... + def RestoreSelectionStructures( + self, theObj: SelectMgr_SelectableObject, theMode: Optional[int] = -1 + ) -> None: ... def Selector(self) -> SelectMgr_ViewerSelector: ... - def SetSelectionSensitivity(self, theObject: SelectMgr_SelectableObject, theMode: int, theNewSens: int) -> None: ... - @overload - def SetUpdateMode(self, theObject: SelectMgr_SelectableObject, theType: SelectMgr_TypeOfUpdate) -> None: ... - @overload - def SetUpdateMode(self, theObject: SelectMgr_SelectableObject, theMode: int, theType: SelectMgr_TypeOfUpdate) -> None: ... - def Update(self, theObject: SelectMgr_SelectableObject, theIsForce: Optional[bool] = True) -> None: ... + def SetSelectionSensitivity( + self, theObject: SelectMgr_SelectableObject, theMode: int, theNewSens: int + ) -> None: ... + @overload + def SetUpdateMode( + self, theObject: SelectMgr_SelectableObject, theType: SelectMgr_TypeOfUpdate + ) -> None: ... + @overload + def SetUpdateMode( + self, + theObject: SelectMgr_SelectableObject, + theMode: int, + theType: SelectMgr_TypeOfUpdate, + ) -> None: ... + def Update( + self, theObject: SelectMgr_SelectableObject, theIsForce: Optional[bool] = True + ) -> None: ... def UpdateSelection(self, theObj: SelectMgr_SelectableObject) -> None: ... class SelectMgr_SensitiveEntity(Standard_Transient): def __init__(self, theEntity: Select3D_SensitiveEntity) -> None: ... def BaseSensitive(self) -> Select3D_SensitiveEntity: ... def Clear(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsActiveForSelection(self) -> bool: ... def ResetSelectionActiveStatus(self) -> None: ... def SetActiveForSelection(self) -> None: ... @@ -456,9 +738,11 @@ class SelectMgr_ToleranceMap: class SelectMgr_ViewClipRange: def __init__(self) -> None: ... def AddClipSubRange(self, theRange: Bnd_Range) -> None: ... - def AddClippingPlanes(self, thePlanes: Graphic3d_SequenceOfHClipPlane, thePickRay: gp_Ax1) -> None: ... + def AddClippingPlanes( + self, thePlanes: Graphic3d_SequenceOfHClipPlane, thePickRay: gp_Ax1 + ) -> None: ... def ChangeUnclipRange(self) -> Bnd_Range: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetNearestDepth(self, theRange: Bnd_Range) -> Tuple[bool, float]: ... def IsClipped(self, theDepth: float) -> bool: ... def SetVoid(self) -> None: ... @@ -466,7 +750,9 @@ class SelectMgr_ViewClipRange: class SelectMgr_ViewerSelector(Standard_Transient): def __init__(self) -> None: ... def AddSelectableObject(self, theObject: SelectMgr_SelectableObject) -> None: ... - def AddSelectionToObject(self, theObject: SelectMgr_SelectableObject, theSelection: SelectMgr_Selection) -> None: ... + def AddSelectionToObject( + self, theObject: SelectMgr_SelectableObject, theSelection: SelectMgr_Selection + ) -> None: ... def AllowOverlapDetection(self, theIsToAllow: bool) -> None: ... def Clear(self) -> None: ... def ClearPicked(self) -> None: ... @@ -478,20 +764,42 @@ class SelectMgr_ViewerSelector(Standard_Transient): @overload def DisplaySensitive(self, theView: V3d_View) -> None: ... @overload - def DisplaySensitive(self, theSel: SelectMgr_Selection, theTrsf: gp_Trsf, theView: V3d_View, theToClearOthers: Optional[bool] = True) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DisplaySensitive( + self, + theSel: SelectMgr_Selection, + theTrsf: gp_Trsf, + theView: V3d_View, + theToClearOthers: Optional[bool] = True, + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EntitySetBuilder(self) -> Select3D_BVHBuilder3d: ... def GetManager(self) -> SelectMgr_SelectingVolumeManager: ... - def IsActive(self, theSelectableObject: SelectMgr_SelectableObject, theMode: int) -> bool: ... - def IsInside(self, theSelectableObject: SelectMgr_SelectableObject, theMode: int) -> bool: ... - def Modes(self, theSelectableObject: SelectMgr_SelectableObject, theModeList: TColStd_ListOfInteger, theWantedState: Optional[SelectMgr_StateOfSelection] = SelectMgr_SOS_Any) -> bool: ... + def IsActive( + self, theSelectableObject: SelectMgr_SelectableObject, theMode: int + ) -> bool: ... + def IsInside( + self, theSelectableObject: SelectMgr_SelectableObject, theMode: int + ) -> bool: ... + def Modes( + self, + theSelectableObject: SelectMgr_SelectableObject, + theModeList: TColStd_ListOfInteger, + theWantedState: Optional[SelectMgr_StateOfSelection] = SelectMgr_SOS_Any, + ) -> bool: ... def MoveSelectableObject(self, theObject: SelectMgr_SelectableObject) -> None: ... def NbPicked(self) -> int: ... def OnePicked(self) -> SelectMgr_EntityOwner: ... @overload def Pick(self, theXPix: int, theYPix: int, theView: V3d_View) -> None: ... @overload - def Pick(self, theXPMin: int, theYPMin: int, theXPMax: int, theYPMax: int, theView: V3d_View) -> None: ... + def Pick( + self, + theXPMin: int, + theYPMin: int, + theXPMax: int, + theYPMax: int, + theView: V3d_View, + ) -> None: ... @overload def Pick(self, thePolyline: TColgp_Array1OfPnt2d, theView: V3d_View) -> None: ... @overload @@ -503,21 +811,31 @@ class SelectMgr_ViewerSelector(Standard_Transient): def PixelTolerance(self) -> int: ... def QueueBVHBuild(self, theEntity: Select3D_SensitiveEntity) -> None: ... def RebuildObjectsTree(self, theIsForce: Optional[bool] = False) -> None: ... - def RebuildSensitivesTree(self, theObject: SelectMgr_SelectableObject, theIsForce: Optional[bool] = False) -> None: ... + def RebuildSensitivesTree( + self, theObject: SelectMgr_SelectableObject, theIsForce: Optional[bool] = False + ) -> None: ... def RemovePicked(self, theObject: SelectMgr_SelectableObject) -> bool: ... def RemoveSelectableObject(self, theObject: SelectMgr_SelectableObject) -> None: ... - def RemoveSelectionOfObject(self, theObject: SelectMgr_SelectableObject, theSelection: SelectMgr_Selection) -> None: ... + def RemoveSelectionOfObject( + self, theObject: SelectMgr_SelectableObject, theSelection: SelectMgr_Selection + ) -> None: ... def ResetSelectionActivationStatus(self) -> None: ... def SelectableObjects(self) -> SelectMgr_SelectableObjectSet: ... def Sensitivity(self) -> float: ... - def SetDepthTolerance(self, theType: SelectMgr_TypeOfDepthTolerance, theTolerance: float) -> None: ... + def SetDepthTolerance( + self, theType: SelectMgr_TypeOfDepthTolerance, theTolerance: float + ) -> None: ... def SetEntitySetBuilder(self, theBuilder: Select3D_BVHBuilder3d) -> None: ... def SetPickClosest(self, theToPreferClosest: bool) -> None: ... def SetPixelTolerance(self, theTolerance: int) -> None: ... - def SetToPrebuildBVH(self, theToPrebuild: bool, theThreadsNum: Optional[int] = -1) -> None: ... + def SetToPrebuildBVH( + self, theToPrebuild: bool, theThreadsNum: Optional[int] = -1 + ) -> None: ... def SortResult(self) -> None: ... @overload - def Status(self, theSelection: SelectMgr_Selection) -> SelectMgr_StateOfSelection: ... + def Status( + self, theSelection: SelectMgr_Selection + ) -> SelectMgr_StateOfSelection: ... @overload def Status(self, theSelectableObject: SelectMgr_SelectableObject) -> str: ... def ToPickClosest(self) -> bool: ... @@ -527,39 +845,117 @@ class SelectMgr_ViewerSelector(Standard_Transient): class SelectMgr_AxisIntersector(SelectMgr_BaseIntersector): def __init__(self) -> None: ... def Build(self) -> None: ... - def CopyWithBuilder(self, theBuilder: SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector: ... + def CopyWithBuilder( + self, theBuilder: SelectMgr_FrustumBuilder + ) -> SelectMgr_BaseIntersector: ... def DetectedPoint(self, theDepth: float) -> gp_Pnt: ... def DistToGeometryCenter(self, theCOG: gp_Pnt) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetFarPnt(self) -> gp_Pnt: ... def GetNearPnt(self) -> gp_Pnt: ... def GetViewRayDirection(self) -> gp_Dir: ... def Init(self, theAxis: gp_Ax1) -> None: ... def IsScalable(self) -> bool: ... @overload - def OverlapsBox(self, theBoxMin: SelectMgr_Vec3, theBoxMax: SelectMgr_Vec3, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsBox(self, theBoxMin: SelectMgr_Vec3, theBoxMax: SelectMgr_Vec3, theInside: bool) -> bool: ... - @overload - def OverlapsCircle(self, theRadius: float, theTrsf: gp_Trsf, theIsFilled: bool, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsCircle(self, theRadius: float, theTrsf: gp_Trsf, theIsFilled: bool, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsCylinder(self, theBottomRad: float, theTopRad: float, theHeight: float, theTrsf: gp_Trsf, theIsHollow: bool, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsCylinder(self, theBottomRad: float, theTopRad: float, theHeight: float, theTrsf: gp_Trsf, theIsHollow: bool, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsPoint(self, thePnt: gp_Pnt, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... + def OverlapsBox( + self, + theBoxMin: SelectMgr_Vec3, + theBoxMax: SelectMgr_Vec3, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsBox( + self, theBoxMin: SelectMgr_Vec3, theBoxMax: SelectMgr_Vec3, theInside: bool + ) -> bool: ... + @overload + def OverlapsCircle( + self, + theRadius: float, + theTrsf: gp_Trsf, + theIsFilled: bool, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsCircle( + self, + theRadius: float, + theTrsf: gp_Trsf, + theIsFilled: bool, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsCylinder( + self, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theTrsf: gp_Trsf, + theIsHollow: bool, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsCylinder( + self, + theBottomRad: float, + theTopRad: float, + theHeight: float, + theTrsf: gp_Trsf, + theIsHollow: bool, + theInside: Optional[bool] = None, + ) -> bool: ... + @overload + def OverlapsPoint( + self, + thePnt: gp_Pnt, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... @overload def OverlapsPoint(self, thePnt: gp_Pnt) -> bool: ... - def OverlapsPolygon(self, theArrayOfPnts: TColgp_Array1OfPnt, theSensType: Select3D_TypeOfSensitivity, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - def OverlapsSegment(self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - @overload - def OverlapsSphere(self, theCenter: gp_Pnt, theRadius: float, theInside: Optional[bool] = None) -> bool: ... - @overload - def OverlapsSphere(self, theCenter: gp_Pnt, theRadius: float, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - def OverlapsTriangle(self, thePnt1: gp_Pnt, thePnt2: gp_Pnt, thePnt3: gp_Pnt, theSensType: Select3D_TypeOfSensitivity, theClipRange: SelectMgr_ViewClipRange, thePickResult: SelectBasics_PickResult) -> bool: ... - def ScaleAndTransform(self, theScaleFactor: int, theTrsf: gp_GTrsf, theBuilder: SelectMgr_FrustumBuilder) -> SelectMgr_BaseIntersector: ... + def OverlapsPolygon( + self, + theArrayOfPnts: TColgp_Array1OfPnt, + theSensType: Select3D_TypeOfSensitivity, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + def OverlapsSegment( + self, + thePnt1: gp_Pnt, + thePnt2: gp_Pnt, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + @overload + def OverlapsSphere( + self, theCenter: gp_Pnt, theRadius: float, theInside: Optional[bool] = None + ) -> bool: ... + @overload + def OverlapsSphere( + self, + theCenter: gp_Pnt, + theRadius: float, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + def OverlapsTriangle( + self, + thePnt1: gp_Pnt, + thePnt2: gp_Pnt, + thePnt3: gp_Pnt, + theSensType: Select3D_TypeOfSensitivity, + theClipRange: SelectMgr_ViewClipRange, + thePickResult: SelectBasics_PickResult, + ) -> bool: ... + def ScaleAndTransform( + self, + theScaleFactor: int, + theTrsf: gp_GTrsf, + theBuilder: SelectMgr_FrustumBuilder, + ) -> SelectMgr_BaseIntersector: ... def SetCamera(self, theCamera: Graphic3d_Camera) -> None: ... class SelectMgr_CompositionFilter(SelectMgr_Filter): @@ -586,22 +982,21 @@ class SelectMgr_OrFilter(SelectMgr_CompositionFilter): def __init__(self) -> None: ... def IsOk(self, anobj: SelectMgr_EntityOwner) -> bool: ... -#classnotwrapped +# classnotwrapped class SelectMgr_Frustum: ... -#classnotwrapped +# classnotwrapped class SelectMgr_BaseFrustum: ... -#classnotwrapped +# classnotwrapped class SelectMgr_TriangularFrustum: ... -#classnotwrapped +# classnotwrapped class SelectMgr_RectangularFrustum: ... -#classnotwrapped +# classnotwrapped class SelectMgr_TriangularFrustumSet: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ShapeAlgo.pyi b/src/SWIG_files/wrapper/ShapeAlgo.pyi index 15fdbe5fb..7b644af30 100644 --- a/src/SWIG_files/wrapper/ShapeAlgo.pyi +++ b/src/SWIG_files/wrapper/ShapeAlgo.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.ShapeFix import * - class shapealgo: @staticmethod def AlgoContainer() -> ShapeAlgo_AlgoContainer: ... @@ -19,10 +18,9 @@ class ShapeAlgo_ToolContainer(Standard_Transient): def EdgeProjAux(self) -> ShapeFix_EdgeProjAux: ... def FixShape(self) -> ShapeFix_Shape: ... -#classnotwrapped +# classnotwrapped class ShapeAlgo_AlgoContainer: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ShapeAnalysis.i b/src/SWIG_files/wrapper/ShapeAnalysis.i index e77032b38..6a372733f 100644 --- a/src/SWIG_files/wrapper/ShapeAnalysis.i +++ b/src/SWIG_files/wrapper/ShapeAnalysis.i @@ -2281,6 +2281,70 @@ Builds actual free bounds of the . should be a compound of shells ") ShapeAnalysis_FreeBounds; ShapeAnalysis_FreeBounds(const TopoDS_Shape & shape, const Standard_Boolean splitclosed = Standard_False, const Standard_Boolean splitopen = Standard_True, const Standard_Boolean checkinternaledges = Standard_False); + /****** ShapeAnalysis_FreeBounds::ConnectEdgesToWires ******/ + /****** md5 signature: 6fcc51b9a4f6e720b15cb08a6b8abe01 ******/ + %feature("compactdefaultargs") ConnectEdgesToWires; + %feature("autodoc", " +Parameters +---------- +edges: TopTools_HSequenceOfShape +toler: float +shared: bool +wires: TopTools_HSequenceOfShape + +Return +------- +None + +Description +----------- +Builds sequence of out of sequence of not sorted . Tries to build wires of maximum length. Building a wire is stopped when no edges can be connected to it at its head or at its tail. //! Orientation of the edge can change when connecting. If is True connection is performed only when adjacent edges share the same vertex. If is False connection is performed only when ends of adjacent edges are at distance less than . +") ConnectEdgesToWires; + static void ConnectEdgesToWires(opencascade::handle & edges, const Standard_Real toler, const Standard_Boolean shared, opencascade::handle & wires); + + /****** ShapeAnalysis_FreeBounds::ConnectWiresToWires ******/ + /****** md5 signature: 65e7beffc0860523c7e2928eb79c19e4 ******/ + %feature("compactdefaultargs") ConnectWiresToWires; + %feature("autodoc", " +Parameters +---------- +iwires: TopTools_HSequenceOfShape +toler: float +shared: bool +owires: TopTools_HSequenceOfShape + +Return +------- +None + +Description +----------- +No available documentation. +") ConnectWiresToWires; + static void ConnectWiresToWires(opencascade::handle & iwires, const Standard_Real toler, const Standard_Boolean shared, opencascade::handle & owires); + + /****** ShapeAnalysis_FreeBounds::ConnectWiresToWires ******/ + /****** md5 signature: 009f594b7e71f4d33210458b3bbfb661 ******/ + %feature("compactdefaultargs") ConnectWiresToWires; + %feature("autodoc", " +Parameters +---------- +iwires: TopTools_HSequenceOfShape +toler: float +shared: bool +owires: TopTools_HSequenceOfShape +vertices: TopTools_DataMapOfShapeShape + +Return +------- +None + +Description +----------- +Builds sequence of out of sequence of not sorted . Tries to build wires of maximum length. Building a wire is stopped when no wires can be connected to it at its head or at its tail. //! Orientation of the wire can change when connecting. If is True connection is performed only when adjacent wires share the same vertex. If is False connection is performed only when ends of adjacent wires are at distance less than . Map stores the correspondence between original end vertices of the wires and new connecting vertices. +") ConnectWiresToWires; + static void ConnectWiresToWires(opencascade::handle & iwires, const Standard_Real toler, const Standard_Boolean shared, opencascade::handle & owires, TopTools_DataMapOfShapeShape & vertices); + /****** ShapeAnalysis_FreeBounds::DispatchWires ******/ /****** md5 signature: 10c7bcfb1c66932d655ad49617f8df2b ******/ %feature("compactdefaultargs") DispatchWires; @@ -2352,28 +2416,6 @@ Extracts closed sub-wires out of and adds them to , open wires r }; - -%extend ShapeAnalysis_FreeBounds { - static Handle(TopTools_HSequenceOfShape) ConnectEdgesToWires(opencascade::handle & edges, - const Standard_Real toler, - const Standard_Boolean shared) - { - Handle(TopTools_HSequenceOfShape) owires = new TopTools_HSequenceOfShape; - ShapeAnalysis_FreeBounds::ConnectEdgesToWires(edges, toler, shared, owires); - return owires; - } - }; - -%extend ShapeAnalysis_FreeBounds { - static Handle(TopTools_HSequenceOfShape) ConnectWiresToWires(opencascade::handle & iwires, - const Standard_Real toler, - const Standard_Boolean shared) - { - Handle(TopTools_HSequenceOfShape) owires = new TopTools_HSequenceOfShape; - ShapeAnalysis_FreeBounds::ConnectWiresToWires(iwires, toler, shared, owires); - return owires; - } - }; %extend ShapeAnalysis_FreeBounds { %pythoncode { __repr__ = _dumps_object @@ -6958,6 +7000,18 @@ def ShapeAnalysis_Curve_IsPlanar(*args): def ShapeAnalysis_Curve_IsPlanar(*args): return ShapeAnalysis_Curve.IsPlanar(*args) +@deprecated +def ShapeAnalysis_FreeBounds_ConnectEdgesToWires(*args): + return ShapeAnalysis_FreeBounds.ConnectEdgesToWires(*args) + +@deprecated +def ShapeAnalysis_FreeBounds_ConnectWiresToWires(*args): + return ShapeAnalysis_FreeBounds.ConnectWiresToWires(*args) + +@deprecated +def ShapeAnalysis_FreeBounds_ConnectWiresToWires(*args): + return ShapeAnalysis_FreeBounds.ConnectWiresToWires(*args) + @deprecated def ShapeAnalysis_FreeBounds_DispatchWires(*args): return ShapeAnalysis_FreeBounds.DispatchWires(*args) diff --git a/src/SWIG_files/wrapper/ShapeAnalysis.pyi b/src/SWIG_files/wrapper/ShapeAnalysis.pyi index 2ef8aa7d8..fc953e019 100644 --- a/src/SWIG_files/wrapper/ShapeAnalysis.pyi +++ b/src/SWIG_files/wrapper/ShapeAnalysis.pyi @@ -22,19 +22,25 @@ from OCC.Core.IntRes2d import * ShapeAnalysis_BoxBndTree = NewType("ShapeAnalysis_BoxBndTree", Any) class ShapeAnalysis_SequenceOfFreeBounds: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class shapeanalysis: @staticmethod @@ -44,7 +50,9 @@ class shapeanalysis: @staticmethod def ContourArea(theWire: TopoDS_Wire) -> float: ... @staticmethod - def FindBounds(shape: TopoDS_Shape, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + def FindBounds( + shape: TopoDS_Shape, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... @staticmethod def GetFaceUVBounds(F: TopoDS_Face) -> Tuple[float, float, float, float]: ... @staticmethod @@ -75,16 +83,52 @@ class ShapeAnalysis_CanonicalRecognition: class ShapeAnalysis_CheckSmallFace: def __init__(self) -> None: ... def CheckPin(self, F: TopoDS_Face) -> Tuple[bool, int, int]: ... - def CheckPinEdges(self, theFirstEdge: TopoDS_Edge, theSecondEdge: TopoDS_Edge, coef1: float, coef2: float, toler: float) -> bool: ... - def CheckPinFace(self, F: TopoDS_Face, mapEdges: TopTools_DataMapOfShapeShape, toler: Optional[float] = -1.0) -> bool: ... - def CheckSingleStrip(self, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, tol: Optional[float] = -1.0) -> bool: ... - def CheckSplittingVertices(self, F: TopoDS_Face, MapEdges: TopTools_DataMapOfShapeListOfShape, MapParam: ShapeAnalysis_DataMapOfShapeListOfReal, theAllVert: TopoDS_Compound) -> int: ... + def CheckPinEdges( + self, + theFirstEdge: TopoDS_Edge, + theSecondEdge: TopoDS_Edge, + coef1: float, + coef2: float, + toler: float, + ) -> bool: ... + def CheckPinFace( + self, + F: TopoDS_Face, + mapEdges: TopTools_DataMapOfShapeShape, + toler: Optional[float] = -1.0, + ) -> bool: ... + def CheckSingleStrip( + self, + F: TopoDS_Face, + E1: TopoDS_Edge, + E2: TopoDS_Edge, + tol: Optional[float] = -1.0, + ) -> bool: ... + def CheckSplittingVertices( + self, + F: TopoDS_Face, + MapEdges: TopTools_DataMapOfShapeListOfShape, + MapParam: ShapeAnalysis_DataMapOfShapeListOfReal, + theAllVert: TopoDS_Compound, + ) -> int: ... def CheckSpotFace(self, F: TopoDS_Face, tol: Optional[float] = -1.0) -> bool: ... - def CheckStripEdges(self, E1: TopoDS_Edge, E2: TopoDS_Edge, tol: float) -> Tuple[bool, float]: ... - def CheckStripFace(self, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, tol: Optional[float] = -1.0) -> bool: ... + def CheckStripEdges( + self, E1: TopoDS_Edge, E2: TopoDS_Edge, tol: float + ) -> Tuple[bool, float]: ... + def CheckStripFace( + self, + F: TopoDS_Face, + E1: TopoDS_Edge, + E2: TopoDS_Edge, + tol: Optional[float] = -1.0, + ) -> bool: ... def CheckTwisted(self, F: TopoDS_Face) -> Tuple[bool, float, float]: ... - def FindStripEdges(self, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, tol: float) -> Tuple[bool, float]: ... - def IsSpotFace(self, F: TopoDS_Face, spot: gp_Pnt, tol: Optional[float] = -1.0) -> Tuple[int, float]: ... + def FindStripEdges( + self, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, tol: float + ) -> Tuple[bool, float]: ... + def IsSpotFace( + self, F: TopoDS_Face, spot: gp_Pnt, tol: Optional[float] = -1.0 + ) -> Tuple[int, float]: ... def IsStripSupport(self, F: TopoDS_Face, tol: Optional[float] = -1.0) -> bool: ... def SetTolerance(self, tol: float) -> None: ... def Status(self, status: ShapeExtend_Status) -> bool: ... @@ -98,13 +142,25 @@ class ShapeAnalysis_CheckSmallFace: def Tolerance(self) -> float: ... class ShapeAnalysis_Curve: - def FillBndBox(self, C2d: Geom2d_Curve, First: float, Last: float, NPoints: int, Exact: bool, Box: Bnd_Box2d) -> None: ... + def FillBndBox( + self, + C2d: Geom2d_Curve, + First: float, + Last: float, + NPoints: int, + Exact: bool, + Box: Bnd_Box2d, + ) -> None: ... @overload @staticmethod - def GetSamplePoints(curve: Geom2d_Curve, first: float, last: float, seq: TColgp_SequenceOfPnt2d) -> bool: ... + def GetSamplePoints( + curve: Geom2d_Curve, first: float, last: float, seq: TColgp_SequenceOfPnt2d + ) -> bool: ... @overload @staticmethod - def GetSamplePoints(curve: Geom_Curve, first: float, last: float, seq: TColgp_SequenceOfPnt) -> bool: ... + def GetSamplePoints( + curve: Geom_Curve, first: float, last: float, seq: TColgp_SequenceOfPnt + ) -> bool: ... @staticmethod def IsClosed(curve: Geom_Curve, preci: Optional[float] = -1) -> bool: ... @overload @@ -115,70 +171,196 @@ class ShapeAnalysis_Curve: def IsPeriodic(curve: Geom2d_Curve) -> bool: ... @overload @staticmethod - def IsPlanar(pnts: TColgp_Array1OfPnt, Normal: gp_XYZ, preci: Optional[float] = 0) -> bool: ... + def IsPlanar( + pnts: TColgp_Array1OfPnt, Normal: gp_XYZ, preci: Optional[float] = 0 + ) -> bool: ... @overload @staticmethod - def IsPlanar(curve: Geom_Curve, Normal: gp_XYZ, preci: Optional[float] = 0) -> bool: ... - @overload - def NextProject(self, paramPrev: float, C3D: Geom_Curve, P3D: gp_Pnt, preci: float, proj: gp_Pnt, cf: float, cl: float, AdjustToEnds: Optional[bool] = True) -> Tuple[float, float]: ... - @overload - def NextProject(self, paramPrev: float, C3D: Adaptor3d_Curve, P3D: gp_Pnt, preci: float, proj: gp_Pnt) -> Tuple[float, float]: ... - @overload - def Project(self, C3D: Geom_Curve, P3D: gp_Pnt, preci: float, proj: gp_Pnt, AdjustToEnds: Optional[bool] = True) -> Tuple[float, float]: ... - @overload - def Project(self, C3D: Adaptor3d_Curve, P3D: gp_Pnt, preci: float, proj: gp_Pnt, AdjustToEnds: Optional[bool] = True) -> Tuple[float, float]: ... - @overload - def Project(self, C3D: Geom_Curve, P3D: gp_Pnt, preci: float, proj: gp_Pnt, cf: float, cl: float, AdjustToEnds: Optional[bool] = True) -> Tuple[float, float]: ... - def ProjectAct(self, C3D: Adaptor3d_Curve, P3D: gp_Pnt, preci: float, proj: gp_Pnt) -> Tuple[float, float]: ... + def IsPlanar( + curve: Geom_Curve, Normal: gp_XYZ, preci: Optional[float] = 0 + ) -> bool: ... + @overload + def NextProject( + self, + paramPrev: float, + C3D: Geom_Curve, + P3D: gp_Pnt, + preci: float, + proj: gp_Pnt, + cf: float, + cl: float, + AdjustToEnds: Optional[bool] = True, + ) -> Tuple[float, float]: ... + @overload + def NextProject( + self, + paramPrev: float, + C3D: Adaptor3d_Curve, + P3D: gp_Pnt, + preci: float, + proj: gp_Pnt, + ) -> Tuple[float, float]: ... + @overload + def Project( + self, + C3D: Geom_Curve, + P3D: gp_Pnt, + preci: float, + proj: gp_Pnt, + AdjustToEnds: Optional[bool] = True, + ) -> Tuple[float, float]: ... + @overload + def Project( + self, + C3D: Adaptor3d_Curve, + P3D: gp_Pnt, + preci: float, + proj: gp_Pnt, + AdjustToEnds: Optional[bool] = True, + ) -> Tuple[float, float]: ... + @overload + def Project( + self, + C3D: Geom_Curve, + P3D: gp_Pnt, + preci: float, + proj: gp_Pnt, + cf: float, + cl: float, + AdjustToEnds: Optional[bool] = True, + ) -> Tuple[float, float]: ... + def ProjectAct( + self, C3D: Adaptor3d_Curve, P3D: gp_Pnt, preci: float, proj: gp_Pnt + ) -> Tuple[float, float]: ... def SelectForwardSeam(self, C1: Geom2d_Curve, C2: Geom2d_Curve) -> int: ... - def ValidateRange(self, Crv: Geom_Curve, prec: float) -> Tuple[bool, float, float]: ... + def ValidateRange( + self, Crv: Geom_Curve, prec: float + ) -> Tuple[bool, float, float]: ... class ShapeAnalysis_Edge: def __init__(self) -> None: ... @overload - def BoundUV(self, edge: TopoDS_Edge, face: TopoDS_Face, first: gp_Pnt2d, last: gp_Pnt2d) -> bool: ... + def BoundUV( + self, edge: TopoDS_Edge, face: TopoDS_Face, first: gp_Pnt2d, last: gp_Pnt2d + ) -> bool: ... @overload - def BoundUV(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location, first: gp_Pnt2d, last: gp_Pnt2d) -> bool: ... + def BoundUV( + self, + edge: TopoDS_Edge, + surface: Geom_Surface, + location: TopLoc_Location, + first: gp_Pnt2d, + last: gp_Pnt2d, + ) -> bool: ... @overload def CheckCurve3dWithPCurve(self, edge: TopoDS_Edge, face: TopoDS_Face) -> bool: ... @overload - def CheckCurve3dWithPCurve(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location) -> bool: ... - def CheckOverlapping(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, theDomainDist: Optional[float] = 0.0) -> Tuple[bool, float]: ... - def CheckPCurveRange(self, theFirst: float, theLast: float, thePC: Geom2d_Curve) -> bool: ... - @overload - def CheckSameParameter(self, edge: TopoDS_Edge, NbControl: Optional[int] = 23) -> Tuple[bool, float]: ... - @overload - def CheckSameParameter(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face, theNbControl: Optional[int] = 23) -> Tuple[bool, float]: ... - @overload - def CheckVertexTolerance(self, edge: TopoDS_Edge, face: TopoDS_Face) -> Tuple[bool, float, float]: ... + def CheckCurve3dWithPCurve( + self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location + ) -> bool: ... + def CheckOverlapping( + self, + theEdge1: TopoDS_Edge, + theEdge2: TopoDS_Edge, + theDomainDist: Optional[float] = 0.0, + ) -> Tuple[bool, float]: ... + def CheckPCurveRange( + self, theFirst: float, theLast: float, thePC: Geom2d_Curve + ) -> bool: ... + @overload + def CheckSameParameter( + self, edge: TopoDS_Edge, NbControl: Optional[int] = 23 + ) -> Tuple[bool, float]: ... + @overload + def CheckSameParameter( + self, + theEdge: TopoDS_Edge, + theFace: TopoDS_Face, + theNbControl: Optional[int] = 23, + ) -> Tuple[bool, float]: ... + @overload + def CheckVertexTolerance( + self, edge: TopoDS_Edge, face: TopoDS_Face + ) -> Tuple[bool, float, float]: ... @overload def CheckVertexTolerance(self, edge: TopoDS_Edge) -> Tuple[bool, float, float]: ... - def CheckVerticesWithCurve3d(self, edge: TopoDS_Edge, preci: Optional[float] = -1, vtx: Optional[int] = 0) -> bool: ... - @overload - def CheckVerticesWithPCurve(self, edge: TopoDS_Edge, face: TopoDS_Face, preci: Optional[float] = -1, vtx: Optional[int] = 0) -> bool: ... - @overload - def CheckVerticesWithPCurve(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location, preci: Optional[float] = -1, vtx: Optional[int] = 0) -> bool: ... - def Curve3d(self, edge: TopoDS_Edge, C3d: Geom_Curve, orient: Optional[bool] = True) -> Tuple[bool, float, float]: ... + def CheckVerticesWithCurve3d( + self, edge: TopoDS_Edge, preci: Optional[float] = -1, vtx: Optional[int] = 0 + ) -> bool: ... + @overload + def CheckVerticesWithPCurve( + self, + edge: TopoDS_Edge, + face: TopoDS_Face, + preci: Optional[float] = -1, + vtx: Optional[int] = 0, + ) -> bool: ... + @overload + def CheckVerticesWithPCurve( + self, + edge: TopoDS_Edge, + surface: Geom_Surface, + location: TopLoc_Location, + preci: Optional[float] = -1, + vtx: Optional[int] = 0, + ) -> bool: ... + def Curve3d( + self, edge: TopoDS_Edge, C3d: Geom_Curve, orient: Optional[bool] = True + ) -> Tuple[bool, float, float]: ... def FirstVertex(self, edge: TopoDS_Edge) -> TopoDS_Vertex: ... @overload - def GetEndTangent2d(self, edge: TopoDS_Edge, face: TopoDS_Face, atEnd: bool, pos: gp_Pnt2d, tang: gp_Vec2d, dparam: Optional[float] = 0.0) -> bool: ... - @overload - def GetEndTangent2d(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location, atEnd: bool, pos: gp_Pnt2d, tang: gp_Vec2d, dparam: Optional[float] = 0.0) -> bool: ... + def GetEndTangent2d( + self, + edge: TopoDS_Edge, + face: TopoDS_Face, + atEnd: bool, + pos: gp_Pnt2d, + tang: gp_Vec2d, + dparam: Optional[float] = 0.0, + ) -> bool: ... + @overload + def GetEndTangent2d( + self, + edge: TopoDS_Edge, + surface: Geom_Surface, + location: TopLoc_Location, + atEnd: bool, + pos: gp_Pnt2d, + tang: gp_Vec2d, + dparam: Optional[float] = 0.0, + ) -> bool: ... def HasCurve3d(self, edge: TopoDS_Edge) -> bool: ... @overload def HasPCurve(self, edge: TopoDS_Edge, face: TopoDS_Face) -> bool: ... @overload - def HasPCurve(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location) -> bool: ... + def HasPCurve( + self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location + ) -> bool: ... def IsClosed3d(self, edge: TopoDS_Edge) -> bool: ... @overload def IsSeam(self, edge: TopoDS_Edge, face: TopoDS_Face) -> bool: ... @overload - def IsSeam(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location) -> bool: ... + def IsSeam( + self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location + ) -> bool: ... def LastVertex(self, edge: TopoDS_Edge) -> TopoDS_Vertex: ... @overload - def PCurve(self, edge: TopoDS_Edge, face: TopoDS_Face, C2d: Geom2d_Curve, orient: Optional[bool] = True) -> Tuple[bool, float, float]: ... - @overload - def PCurve(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location, C2d: Geom2d_Curve, orient: Optional[bool] = True) -> Tuple[bool, float, float]: ... + def PCurve( + self, + edge: TopoDS_Edge, + face: TopoDS_Face, + C2d: Geom2d_Curve, + orient: Optional[bool] = True, + ) -> Tuple[bool, float, float]: ... + @overload + def PCurve( + self, + edge: TopoDS_Edge, + surface: Geom_Surface, + location: TopLoc_Location, + C2d: Geom2d_Curve, + orient: Optional[bool] = True, + ) -> Tuple[bool, float, float]: ... def Status(self, status: ShapeExtend_Status) -> bool: ... class ShapeAnalysis_FreeBoundData(Standard_Transient): @@ -210,42 +392,114 @@ class ShapeAnalysis_FreeBounds: @overload def __init__(self) -> None: ... @overload - def __init__(self, shape: TopoDS_Shape, toler: float, splitclosed: Optional[bool] = False, splitopen: Optional[bool] = True) -> None: ... + def __init__( + self, + shape: TopoDS_Shape, + toler: float, + splitclosed: Optional[bool] = False, + splitopen: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, + shape: TopoDS_Shape, + splitclosed: Optional[bool] = False, + splitopen: Optional[bool] = True, + checkinternaledges: Optional[bool] = False, + ) -> None: ... + @staticmethod + def ConnectEdgesToWires( + edges: TopTools_HSequenceOfShape, + toler: float, + shared: bool, + wires: TopTools_HSequenceOfShape, + ) -> None: ... @overload - def __init__(self, shape: TopoDS_Shape, splitclosed: Optional[bool] = False, splitopen: Optional[bool] = True, checkinternaledges: Optional[bool] = False) -> None: ... @staticmethod - def DispatchWires(wires: TopTools_HSequenceOfShape, closed: TopoDS_Compound, open: TopoDS_Compound) -> None: ... - def GetClosedWires(self) -> TopoDS_Compound: ... - def GetOpenWires(self) -> TopoDS_Compound: ... + def ConnectWiresToWires( + iwires: TopTools_HSequenceOfShape, + toler: float, + shared: bool, + owires: TopTools_HSequenceOfShape, + ) -> None: ... + @overload @staticmethod - def SplitWires(wires: TopTools_HSequenceOfShape, toler: float, shared: bool, closed: TopTools_HSequenceOfShape, open: TopTools_HSequenceOfShape) -> None: ... + def ConnectWiresToWires( + iwires: TopTools_HSequenceOfShape, + toler: float, + shared: bool, + owires: TopTools_HSequenceOfShape, + vertices: TopTools_DataMapOfShapeShape, + ) -> None: ... @staticmethod - def ConnectEdgesToWires(edges: TopTools_HSequenceOfShape, toler: float, shared: bool) -> TopTools_HSequenceOfShape: ... + def DispatchWires( + wires: TopTools_HSequenceOfShape, closed: TopoDS_Compound, open: TopoDS_Compound + ) -> None: ... + def GetClosedWires(self) -> TopoDS_Compound: ... + def GetOpenWires(self) -> TopoDS_Compound: ... @staticmethod - def ConnectWiresToWires(iwires: TopTools_HSequenceOfShape, toler: float, shared: bool) -> TopTools_HSequenceOfShape: ... + def SplitWires( + wires: TopTools_HSequenceOfShape, + toler: float, + shared: bool, + closed: TopTools_HSequenceOfShape, + open: TopTools_HSequenceOfShape, + ) -> None: ... class ShapeAnalysis_FreeBoundsProperties: @overload def __init__(self) -> None: ... @overload - def __init__(self, shape: TopoDS_Shape, tolerance: float, splitclosed: Optional[bool] = False, splitopen: Optional[bool] = False) -> None: ... - @overload - def __init__(self, shape: TopoDS_Shape, splitclosed: Optional[bool] = False, splitopen: Optional[bool] = False) -> None: ... + def __init__( + self, + shape: TopoDS_Shape, + tolerance: float, + splitclosed: Optional[bool] = False, + splitopen: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + shape: TopoDS_Shape, + splitclosed: Optional[bool] = False, + splitopen: Optional[bool] = False, + ) -> None: ... def CheckContours(self, prec: Optional[float] = 0.0) -> bool: ... @overload def CheckNotches(self, prec: Optional[float] = 0.0) -> bool: ... @overload - def CheckNotches(self, fbData: ShapeAnalysis_FreeBoundData, prec: Optional[float] = 0.0) -> bool: ... - @overload - def CheckNotches(self, freebound: TopoDS_Wire, num: int, notch: TopoDS_Wire, prec: Optional[float] = 0.0) -> Tuple[bool, float]: ... + def CheckNotches( + self, fbData: ShapeAnalysis_FreeBoundData, prec: Optional[float] = 0.0 + ) -> bool: ... + @overload + def CheckNotches( + self, + freebound: TopoDS_Wire, + num: int, + notch: TopoDS_Wire, + prec: Optional[float] = 0.0, + ) -> Tuple[bool, float]: ... def ClosedFreeBound(self, index: int) -> ShapeAnalysis_FreeBoundData: ... def ClosedFreeBounds(self) -> ShapeAnalysis_HSequenceOfFreeBounds: ... def DispatchBounds(self) -> bool: ... - def FillProperties(self, fbData: ShapeAnalysis_FreeBoundData, prec: Optional[float] = 0.0) -> bool: ... - @overload - def Init(self, shape: TopoDS_Shape, tolerance: float, splitclosed: Optional[bool] = False, splitopen: Optional[bool] = False) -> None: ... - @overload - def Init(self, shape: TopoDS_Shape, splitclosed: Optional[bool] = False, splitopen: Optional[bool] = False) -> None: ... + def FillProperties( + self, fbData: ShapeAnalysis_FreeBoundData, prec: Optional[float] = 0.0 + ) -> bool: ... + @overload + def Init( + self, + shape: TopoDS_Shape, + tolerance: float, + splitclosed: Optional[bool] = False, + splitopen: Optional[bool] = False, + ) -> None: ... + @overload + def Init( + self, + shape: TopoDS_Shape, + splitclosed: Optional[bool] = False, + splitopen: Optional[bool] = False, + ) -> None: ... def IsLoaded(self) -> bool: ... def NbClosedFreeBounds(self) -> int: ... def NbFreeBounds(self) -> int: ... @@ -260,7 +514,9 @@ class ShapeAnalysis_Geom: @staticmethod def NearestPlane(Pnts: TColgp_Array1OfPnt, aPln: gp_Pln) -> Tuple[bool, float]: ... @staticmethod - def PositionTrsf(coefs: TColStd_HArray2OfReal, trsf: gp_Trsf, unit: float, prec: float) -> bool: ... + def PositionTrsf( + coefs: TColStd_HArray2OfReal, trsf: gp_Trsf, unit: float, prec: float + ) -> bool: ... class ShapeAnalysis_ShapeContents: def __init__(self) -> None: ... @@ -323,17 +579,40 @@ class ShapeAnalysis_ShapeContents: class ShapeAnalysis_ShapeTolerance: def __init__(self) -> None: ... - def AddTolerance(self, shape: TopoDS_Shape, type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def AddTolerance( + self, shape: TopoDS_Shape, type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE + ) -> None: ... def GlobalTolerance(self, mode: int) -> float: ... - def InTolerance(self, shape: TopoDS_Shape, valmin: float, valmax: float, type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> TopTools_HSequenceOfShape: ... + def InTolerance( + self, + shape: TopoDS_Shape, + valmin: float, + valmax: float, + type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> TopTools_HSequenceOfShape: ... def InitTolerance(self) -> None: ... - def OverTolerance(self, shape: TopoDS_Shape, value: float, type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> TopTools_HSequenceOfShape: ... - def Tolerance(self, shape: TopoDS_Shape, mode: int, type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> float: ... + def OverTolerance( + self, + shape: TopoDS_Shape, + value: float, + type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> TopTools_HSequenceOfShape: ... + def Tolerance( + self, + shape: TopoDS_Shape, + mode: int, + type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> float: ... class ShapeAnalysis_Shell: def __init__(self) -> None: ... def BadEdges(self) -> TopoDS_Compound: ... - def CheckOrientedShells(self, shape: TopoDS_Shape, alsofree: Optional[bool] = False, checkinternaledges: Optional[bool] = False) -> bool: ... + def CheckOrientedShells( + self, + shape: TopoDS_Shape, + alsofree: Optional[bool] = False, + checkinternaledges: Optional[bool] = False, + ) -> bool: ... def Clear(self) -> None: ... def FreeEdges(self) -> TopoDS_Compound: ... def HasBadEdges(self) -> bool: ... @@ -349,7 +628,14 @@ class ShapeAnalysis_Surface(Standard_Transient): def Adaptor3d(self) -> GeomAdaptor_Surface: ... def Bounds(self) -> Tuple[float, float, float, float]: ... def ComputeBoundIsos(self) -> None: ... - def DegeneratedValues(self, P3d: gp_Pnt, preci: float, firstP2d: gp_Pnt2d, lastP2d: gp_Pnt2d, forward: Optional[bool] = True) -> Tuple[bool, float, float]: ... + def DegeneratedValues( + self, + P3d: gp_Pnt, + preci: float, + firstP2d: gp_Pnt2d, + lastP2d: gp_Pnt2d, + forward: Optional[bool] = True, + ) -> Tuple[bool, float, float]: ... def Gap(self) -> float: ... def GetBoxUF(self) -> Bnd_Box: ... def GetBoxUL(self) -> Bnd_Box: ... @@ -363,17 +649,36 @@ class ShapeAnalysis_Surface(Standard_Transient): @overload def IsDegenerated(self, P3d: gp_Pnt, preci: float) -> bool: ... @overload - def IsDegenerated(self, p2d1: gp_Pnt2d, p2d2: gp_Pnt2d, tol: float, ratio: float) -> bool: ... + def IsDegenerated( + self, p2d1: gp_Pnt2d, p2d2: gp_Pnt2d, tol: float, ratio: float + ) -> bool: ... def IsUClosed(self, preci: Optional[float] = -1) -> bool: ... def IsVClosed(self, preci: Optional[float] = -1) -> bool: ... def NbSingularities(self, preci: float) -> int: ... - def NextValueOfUV(self, p2dPrev: gp_Pnt2d, P3D: gp_Pnt, preci: float, maxpreci: Optional[float] = -1.0) -> gp_Pnt2d: ... - @overload - def ProjectDegenerated(self, P3d: gp_Pnt, preci: float, neighbour: gp_Pnt2d, result: gp_Pnt2d) -> bool: ... - @overload - def ProjectDegenerated(self, nbrPnt: int, points: TColgp_SequenceOfPnt, pnt2d: TColgp_SequenceOfPnt2d, preci: float, direct: bool) -> bool: ... + def NextValueOfUV( + self, + p2dPrev: gp_Pnt2d, + P3D: gp_Pnt, + preci: float, + maxpreci: Optional[float] = -1.0, + ) -> gp_Pnt2d: ... + @overload + def ProjectDegenerated( + self, P3d: gp_Pnt, preci: float, neighbour: gp_Pnt2d, result: gp_Pnt2d + ) -> bool: ... + @overload + def ProjectDegenerated( + self, + nbrPnt: int, + points: TColgp_SequenceOfPnt, + pnt2d: TColgp_SequenceOfPnt2d, + preci: float, + direct: bool, + ) -> bool: ... def SetDomain(self, U1: float, U2: float, V1: float, V2: float) -> None: ... - def Singularity(self, num: int, P3d: gp_Pnt, firstP2d: gp_Pnt2d, lastP2d: gp_Pnt2d) -> Tuple[bool, float, float, float, bool]: ... + def Singularity( + self, num: int, P3d: gp_Pnt, firstP2d: gp_Pnt2d, lastP2d: gp_Pnt2d + ) -> Tuple[bool, float, float, float, bool]: ... def Surface(self) -> Geom_Surface: ... def TrueAdaptor3d(self) -> GeomAdaptor_Surface: ... def UCloseVal(self) -> float: ... @@ -395,19 +700,27 @@ class ShapeAnalysis_TransferParameters(Standard_Transient): def Init(self, E: TopoDS_Edge, F: TopoDS_Face) -> None: ... def IsSameRange(self) -> bool: ... @overload - def Perform(self, Params: TColStd_HSequenceOfReal, To2d: bool) -> TColStd_HSequenceOfReal: ... + def Perform( + self, Params: TColStd_HSequenceOfReal, To2d: bool + ) -> TColStd_HSequenceOfReal: ... @overload def Perform(self, Param: float, To2d: bool) -> float: ... def SetMaxTolerance(self, maxtol: float) -> None: ... - def TransferRange(self, newEdge: TopoDS_Edge, prevPar: float, currPar: float, To2d: bool) -> None: ... + def TransferRange( + self, newEdge: TopoDS_Edge, prevPar: float, currPar: float, To2d: bool + ) -> None: ... class ShapeAnalysis_Wire(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, wire: TopoDS_Wire, face: TopoDS_Face, precision: float) -> None: ... + def __init__( + self, wire: TopoDS_Wire, face: TopoDS_Face, precision: float + ) -> None: ... @overload - def __init__(self, sbwd: ShapeExtend_WireData, face: TopoDS_Face, precision: float) -> None: ... + def __init__( + self, sbwd: ShapeExtend_WireData, face: TopoDS_Face, precision: float + ) -> None: ... def CheckClosed(self, prec: Optional[float] = 0.0) -> bool: ... @overload def CheckConnected(self, prec: Optional[float] = 0.0) -> bool: ... @@ -427,51 +740,106 @@ class ShapeAnalysis_Wire(Standard_Transient): def CheckGaps2d(self) -> bool: ... def CheckGaps3d(self) -> bool: ... @overload - def CheckIntersectingEdges(self, num: int, points2d: IntRes2d_SequenceOfIntersectionPoint, points3d: TColgp_SequenceOfPnt, errors: TColStd_SequenceOfReal) -> bool: ... + def CheckIntersectingEdges( + self, + num: int, + points2d: IntRes2d_SequenceOfIntersectionPoint, + points3d: TColgp_SequenceOfPnt, + errors: TColStd_SequenceOfReal, + ) -> bool: ... @overload def CheckIntersectingEdges(self, num: int) -> bool: ... @overload - def CheckIntersectingEdges(self, num1: int, num2: int, points2d: IntRes2d_SequenceOfIntersectionPoint, points3d: TColgp_SequenceOfPnt, errors: TColStd_SequenceOfReal) -> bool: ... + def CheckIntersectingEdges( + self, + num1: int, + num2: int, + points2d: IntRes2d_SequenceOfIntersectionPoint, + points3d: TColgp_SequenceOfPnt, + errors: TColStd_SequenceOfReal, + ) -> bool: ... @overload def CheckIntersectingEdges(self, num1: int, num2: int) -> bool: ... @overload def CheckLacking(self) -> bool: ... @overload - def CheckLacking(self, num: int, Tolerance: float, p2d1: gp_Pnt2d, p2d2: gp_Pnt2d) -> bool: ... + def CheckLacking( + self, num: int, Tolerance: float, p2d1: gp_Pnt2d, p2d2: gp_Pnt2d + ) -> bool: ... @overload def CheckLacking(self, num: int, Tolerance: Optional[float] = 0.0) -> bool: ... - def CheckLoop(self, aMapLoopVertices: TopTools_IndexedMapOfShape, aMapVertexEdges: TopTools_DataMapOfShapeListOfShape, aMapSmallEdges: TopTools_MapOfShape, aMapSeemEdges: TopTools_MapOfShape) -> bool: ... - def CheckNotchedEdges(self, num: int, Tolerance: Optional[float] = 0.0) -> Tuple[bool, int, float]: ... - @overload - def CheckOrder(self, isClosed: Optional[bool] = True, mode3d: Optional[bool] = True) -> bool: ... - @overload - def CheckOrder(self, sawo: ShapeAnalysis_WireOrder, isClosed: Optional[bool] = True, theMode3D: Optional[bool] = True, theModeBoth: Optional[bool] = False) -> bool: ... + def CheckLoop( + self, + aMapLoopVertices: TopTools_IndexedMapOfShape, + aMapVertexEdges: TopTools_DataMapOfShapeListOfShape, + aMapSmallEdges: TopTools_MapOfShape, + aMapSeemEdges: TopTools_MapOfShape, + ) -> bool: ... + def CheckNotchedEdges( + self, num: int, Tolerance: Optional[float] = 0.0 + ) -> Tuple[bool, int, float]: ... + @overload + def CheckOrder( + self, isClosed: Optional[bool] = True, mode3d: Optional[bool] = True + ) -> bool: ... + @overload + def CheckOrder( + self, + sawo: ShapeAnalysis_WireOrder, + isClosed: Optional[bool] = True, + theMode3D: Optional[bool] = True, + theModeBoth: Optional[bool] = False, + ) -> bool: ... def CheckOuterBound(self, APIMake: Optional[bool] = True) -> bool: ... @overload - def CheckSeam(self, num: int, C1: Geom2d_Curve, C2: Geom2d_Curve) -> Tuple[bool, float, float]: ... + def CheckSeam( + self, num: int, C1: Geom2d_Curve, C2: Geom2d_Curve + ) -> Tuple[bool, float, float]: ... @overload def CheckSeam(self, num: int) -> bool: ... @overload - def CheckSelfIntersectingEdge(self, num: int, points2d: IntRes2d_SequenceOfIntersectionPoint, points3d: TColgp_SequenceOfPnt) -> bool: ... + def CheckSelfIntersectingEdge( + self, + num: int, + points2d: IntRes2d_SequenceOfIntersectionPoint, + points3d: TColgp_SequenceOfPnt, + ) -> bool: ... @overload def CheckSelfIntersectingEdge(self, num: int) -> bool: ... def CheckSelfIntersection(self) -> bool: ... @overload - def CheckShapeConnect(self, shape: TopoDS_Shape, prec: Optional[float] = 0.0) -> bool: ... + def CheckShapeConnect( + self, shape: TopoDS_Shape, prec: Optional[float] = 0.0 + ) -> bool: ... @overload - def CheckShapeConnect(self, shape: TopoDS_Shape, prec: Optional[float] = 0.0) -> Tuple[bool, float, float, float, float]: ... + def CheckShapeConnect( + self, shape: TopoDS_Shape, prec: Optional[float] = 0.0 + ) -> Tuple[bool, float, float, float, float]: ... @overload def CheckSmall(self, precsmall: Optional[float] = 0.0) -> bool: ... @overload def CheckSmall(self, num: int, precsmall: Optional[float] = 0.0) -> bool: ... def CheckSmallArea(self, theWire: TopoDS_Wire) -> bool: ... - def CheckTail(self, theEdge1: TopoDS_Edge, theEdge2: TopoDS_Edge, theMaxSine: float, theMaxWidth: float, theMaxTolerance: float, theEdge11: TopoDS_Edge, theEdge12: TopoDS_Edge, theEdge21: TopoDS_Edge, theEdge22: TopoDS_Edge) -> bool: ... + def CheckTail( + self, + theEdge1: TopoDS_Edge, + theEdge2: TopoDS_Edge, + theMaxSine: float, + theMaxWidth: float, + theMaxTolerance: float, + theEdge11: TopoDS_Edge, + theEdge12: TopoDS_Edge, + theEdge21: TopoDS_Edge, + theEdge22: TopoDS_Edge, + ) -> bool: ... def ClearStatuses(self) -> None: ... def Face(self) -> TopoDS_Face: ... @overload def Init(self, wire: TopoDS_Wire, face: TopoDS_Face, precision: float) -> None: ... @overload - def Init(self, sbwd: ShapeExtend_WireData, face: TopoDS_Face, precision: float) -> None: ... + def Init( + self, sbwd: ShapeExtend_WireData, face: TopoDS_Face, precision: float + ) -> None: ... def IsLoaded(self) -> bool: ... def IsReady(self) -> bool: ... def LastCheckStatus(self, Status: ShapeExtend_Status) -> bool: ... @@ -511,13 +879,17 @@ class ShapeAnalysis_WireOrder: @overload def __init__(self) -> None: ... @overload - def __init__(self, theMode3D: bool, theTolerance: float, theModeBoth: Optional[bool] = False) -> None: ... + def __init__( + self, theMode3D: bool, theTolerance: float, theModeBoth: Optional[bool] = False + ) -> None: ... @overload def Add(self, theStart3d: gp_XYZ, theEnd3d: gp_XYZ) -> None: ... @overload def Add(self, theStart2d: gp_XY, theEnd2d: gp_XY) -> None: ... @overload - def Add(self, theStart3d: gp_XYZ, theEnd3d: gp_XYZ, theStart2d: gp_XY, theEnd2d: gp_XY) -> None: ... + def Add( + self, theStart3d: gp_XYZ, theEnd3d: gp_XYZ, theStart2d: gp_XY, theEnd2d: gp_XY + ) -> None: ... def Chain(self, num: int) -> Tuple[int, int]: ... def Clear(self) -> None: ... def Couple(self, num: int) -> Tuple[int, int]: ... @@ -532,7 +904,9 @@ class ShapeAnalysis_WireOrder: def Perform(self, closed: Optional[bool] = True) -> None: ... def SetChains(self, gap: float) -> None: ... def SetCouples(self, gap: float) -> None: ... - def SetMode(self, theMode3D: bool, theTolerance: float, theModeBoth: Optional[bool] = False) -> None: ... + def SetMode( + self, theMode3D: bool, theTolerance: float, theModeBoth: Optional[bool] = False + ) -> None: ... def Status(self) -> int: ... def Tolerance(self) -> float: ... def XY(self, theIdx: int, theStart2D: gp_XY, theEnd2D: gp_XY) -> None: ... @@ -576,36 +950,44 @@ class ShapeAnalysis_TransferParametersProj(ShapeAnalysis_TransferParameters): def __init__(self, E: TopoDS_Edge, F: TopoDS_Face) -> None: ... @overload @staticmethod - def CopyNMVertex(theVert: TopoDS_Vertex, toedge: TopoDS_Edge, fromedge: TopoDS_Edge) -> TopoDS_Vertex: ... + def CopyNMVertex( + theVert: TopoDS_Vertex, toedge: TopoDS_Edge, fromedge: TopoDS_Edge + ) -> TopoDS_Vertex: ... @overload @staticmethod - def CopyNMVertex(theVert: TopoDS_Vertex, toFace: TopoDS_Face, fromFace: TopoDS_Face) -> TopoDS_Vertex: ... + def CopyNMVertex( + theVert: TopoDS_Vertex, toFace: TopoDS_Face, fromFace: TopoDS_Face + ) -> TopoDS_Vertex: ... def GetForceProjection(self) -> bool: ... def SetForceProjection(self, value: bool) -> None: ... def Init(self, E: TopoDS_Edge, F: TopoDS_Face) -> None: ... def IsSameRange(self) -> bool: ... @overload - def Perform(self, Papams: TColStd_HSequenceOfReal, To2d: bool) -> TColStd_HSequenceOfReal: ... + def Perform( + self, Papams: TColStd_HSequenceOfReal, To2d: bool + ) -> TColStd_HSequenceOfReal: ... @overload def Perform(self, Param: float, To2d: bool) -> float: ... - def TransferRange(self, newEdge: TopoDS_Edge, prevPar: float, currPar: float, Is2d: bool) -> None: ... + def TransferRange( + self, newEdge: TopoDS_Edge, prevPar: float, currPar: float, Is2d: bool + ) -> None: ... -#classnotwrapped +# classnotwrapped class ShapeAnalysis_BoxBndTreeSelector: ... -#classnotwrapped +# classnotwrapped class ShapeCustom_ConvertToRevolution: ... # harray1 classes # harray2 classes # hsequence classes -class ShapeAnalysis_HSequenceOfFreeBounds(ShapeAnalysis_SequenceOfFreeBounds, Standard_Transient): +class ShapeAnalysis_HSequenceOfFreeBounds( + ShapeAnalysis_SequenceOfFreeBounds, Standard_Transient +): @overload def __init__(self) -> None: ... @overload def __init__(self, other: ShapeAnalysis_SequenceOfFreeBounds) -> None: ... def Sequence(self) -> ShapeAnalysis_SequenceOfFreeBounds: ... def Append(self, theSequence: ShapeAnalysis_SequenceOfFreeBounds) -> None: ... - - diff --git a/src/SWIG_files/wrapper/ShapeBuild.pyi b/src/SWIG_files/wrapper/ShapeBuild.pyi index 9613ce2c0..06a4a420e 100644 --- a/src/SWIG_files/wrapper/ShapeBuild.pyi +++ b/src/SWIG_files/wrapper/ShapeBuild.pyi @@ -12,59 +12,122 @@ from OCC.Core.BRepTools import * from OCC.Core.TopAbs import * from OCC.Core.ShapeExtend import * - class shapebuild: @staticmethod def PlaneXOY() -> Geom_Plane: ... class ShapeBuild_Edge: def BuildCurve3d(self, edge: TopoDS_Edge) -> bool: ... - def Copy(self, edge: TopoDS_Edge, sharepcurves: Optional[bool] = True) -> TopoDS_Edge: ... + def Copy( + self, edge: TopoDS_Edge, sharepcurves: Optional[bool] = True + ) -> TopoDS_Edge: ... def CopyPCurves(self, toedge: TopoDS_Edge, fromedge: TopoDS_Edge) -> None: ... - def CopyRanges(self, toedge: TopoDS_Edge, fromedge: TopoDS_Edge, alpha: Optional[float] = 0, beta: Optional[float] = 1) -> None: ... - def CopyReplaceVertices(self, edge: TopoDS_Edge, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> TopoDS_Edge: ... + def CopyRanges( + self, + toedge: TopoDS_Edge, + fromedge: TopoDS_Edge, + alpha: Optional[float] = 0, + beta: Optional[float] = 1, + ) -> None: ... + def CopyReplaceVertices( + self, edge: TopoDS_Edge, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> TopoDS_Edge: ... @overload - def MakeEdge(self, edge: TopoDS_Edge, curve: Geom_Curve, L: TopLoc_Location) -> None: ... + def MakeEdge( + self, edge: TopoDS_Edge, curve: Geom_Curve, L: TopLoc_Location + ) -> None: ... @overload - def MakeEdge(self, edge: TopoDS_Edge, curve: Geom_Curve, L: TopLoc_Location, p1: float, p2: float) -> None: ... + def MakeEdge( + self, + edge: TopoDS_Edge, + curve: Geom_Curve, + L: TopLoc_Location, + p1: float, + p2: float, + ) -> None: ... @overload - def MakeEdge(self, edge: TopoDS_Edge, pcurve: Geom2d_Curve, face: TopoDS_Face) -> None: ... + def MakeEdge( + self, edge: TopoDS_Edge, pcurve: Geom2d_Curve, face: TopoDS_Face + ) -> None: ... @overload - def MakeEdge(self, edge: TopoDS_Edge, pcurve: Geom2d_Curve, face: TopoDS_Face, p1: float, p2: float) -> None: ... + def MakeEdge( + self, + edge: TopoDS_Edge, + pcurve: Geom2d_Curve, + face: TopoDS_Face, + p1: float, + p2: float, + ) -> None: ... @overload - def MakeEdge(self, edge: TopoDS_Edge, pcurve: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location) -> None: ... + def MakeEdge( + self, + edge: TopoDS_Edge, + pcurve: Geom2d_Curve, + S: Geom_Surface, + L: TopLoc_Location, + ) -> None: ... @overload - def MakeEdge(self, edge: TopoDS_Edge, pcurve: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location, p1: float, p2: float) -> None: ... - def ReassignPCurve(self, edge: TopoDS_Edge, old: TopoDS_Face, sub: TopoDS_Face) -> bool: ... + def MakeEdge( + self, + edge: TopoDS_Edge, + pcurve: Geom2d_Curve, + S: Geom_Surface, + L: TopLoc_Location, + p1: float, + p2: float, + ) -> None: ... + def ReassignPCurve( + self, edge: TopoDS_Edge, old: TopoDS_Face, sub: TopoDS_Face + ) -> bool: ... def RemoveCurve3d(self, edge: TopoDS_Edge) -> None: ... @overload def RemovePCurve(self, edge: TopoDS_Edge, face: TopoDS_Face) -> None: ... @overload def RemovePCurve(self, edge: TopoDS_Edge, surf: Geom_Surface) -> None: ... @overload - def RemovePCurve(self, edge: TopoDS_Edge, surf: Geom_Surface, loc: TopLoc_Location) -> None: ... - def ReplacePCurve(self, edge: TopoDS_Edge, pcurve: Geom2d_Curve, face: TopoDS_Face) -> None: ... + def RemovePCurve( + self, edge: TopoDS_Edge, surf: Geom_Surface, loc: TopLoc_Location + ) -> None: ... + def ReplacePCurve( + self, edge: TopoDS_Edge, pcurve: Geom2d_Curve, face: TopoDS_Face + ) -> None: ... def SetRange3d(self, edge: TopoDS_Edge, first: float, last: float) -> None: ... - def TransformPCurve(self, pcurve: Geom2d_Curve, trans: gp_Trsf2d, uFact: float) -> Tuple[Geom2d_Curve, float, float]: ... + def TransformPCurve( + self, pcurve: Geom2d_Curve, trans: gp_Trsf2d, uFact: float + ) -> Tuple[Geom2d_Curve, float, float]: ... class ShapeBuild_ReShape(BRepTools_ReShape): def __init__(self) -> None: ... @overload - def Apply(self, shape: TopoDS_Shape, until: TopAbs_ShapeEnum, buildmode: int) -> TopoDS_Shape: ... + def Apply( + self, shape: TopoDS_Shape, until: TopAbs_ShapeEnum, buildmode: int + ) -> TopoDS_Shape: ... @overload - def Apply(self, shape: TopoDS_Shape, until: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> TopoDS_Shape: ... + def Apply( + self, shape: TopoDS_Shape, until: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE + ) -> TopoDS_Shape: ... @overload - def Status(self, shape: TopoDS_Shape, newsh: TopoDS_Shape, last: Optional[bool] = False) -> int: ... + def Status( + self, shape: TopoDS_Shape, newsh: TopoDS_Shape, last: Optional[bool] = False + ) -> int: ... @overload def Status(self, status: ShapeExtend_Status) -> bool: ... class ShapeBuild_Vertex: @overload - def CombineVertex(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex, tolFactor: Optional[float] = 1.0001) -> TopoDS_Vertex: ... + def CombineVertex( + self, V1: TopoDS_Vertex, V2: TopoDS_Vertex, tolFactor: Optional[float] = 1.0001 + ) -> TopoDS_Vertex: ... @overload - def CombineVertex(self, pnt1: gp_Pnt, pnt2: gp_Pnt, tol1: float, tol2: float, tolFactor: Optional[float] = 1.0001) -> TopoDS_Vertex: ... + def CombineVertex( + self, + pnt1: gp_Pnt, + pnt2: gp_Pnt, + tol1: float, + tol2: float, + tolFactor: Optional[float] = 1.0001, + ) -> TopoDS_Vertex: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ShapeConstruct.pyi b/src/SWIG_files/wrapper/ShapeConstruct.pyi index 824cb02f7..7db90bfca 100644 --- a/src/SWIG_files/wrapper/ShapeConstruct.pyi +++ b/src/SWIG_files/wrapper/ShapeConstruct.pyi @@ -17,33 +17,93 @@ from OCC.Core.Message import * from OCC.Core.ShapeAnalysis import * from OCC.Core.ShapeExtend import * - class shapeconstruct: @overload @staticmethod - def ConvertCurveToBSpline(C3D: Geom_Curve, First: float, Last: float, Tol3d: float, Continuity: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> Geom_BSplineCurve: ... + def ConvertCurveToBSpline( + C3D: Geom_Curve, + First: float, + Last: float, + Tol3d: float, + Continuity: GeomAbs_Shape, + MaxSegments: int, + MaxDegree: int, + ) -> Geom_BSplineCurve: ... @overload @staticmethod - def ConvertCurveToBSpline(C2D: Geom2d_Curve, First: float, Last: float, Tol2d: float, Continuity: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> Geom2d_BSplineCurve: ... + def ConvertCurveToBSpline( + C2D: Geom2d_Curve, + First: float, + Last: float, + Tol2d: float, + Continuity: GeomAbs_Shape, + MaxSegments: int, + MaxDegree: int, + ) -> Geom2d_BSplineCurve: ... @staticmethod - def ConvertSurfaceToBSpline(surf: Geom_Surface, UF: float, UL: float, VF: float, VL: float, Tol3d: float, Continuity: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> Geom_BSplineSurface: ... + def ConvertSurfaceToBSpline( + surf: Geom_Surface, + UF: float, + UL: float, + VF: float, + VL: float, + Tol3d: float, + Continuity: GeomAbs_Shape, + MaxSegments: int, + MaxDegree: int, + ) -> Geom_BSplineSurface: ... @overload @staticmethod - def JoinCurves(c3d1: Geom_Curve, ac3d2: Geom_Curve, Orient1: TopAbs_Orientation, Orient2: TopAbs_Orientation, c3dOut: Geom_Curve) -> Tuple[bool, float, float, float, float, bool, bool]: ... + def JoinCurves( + c3d1: Geom_Curve, + ac3d2: Geom_Curve, + Orient1: TopAbs_Orientation, + Orient2: TopAbs_Orientation, + c3dOut: Geom_Curve, + ) -> Tuple[bool, float, float, float, float, bool, bool]: ... @overload @staticmethod - def JoinCurves(c2d1: Geom2d_Curve, ac2d2: Geom2d_Curve, Orient1: TopAbs_Orientation, Orient2: TopAbs_Orientation, c2dOut: Geom2d_Curve, isError: Optional[bool] = False) -> Tuple[bool, float, float, float, float, bool, bool]: ... + def JoinCurves( + c2d1: Geom2d_Curve, + ac2d2: Geom2d_Curve, + Orient1: TopAbs_Orientation, + Orient2: TopAbs_Orientation, + c2dOut: Geom2d_Curve, + isError: Optional[bool] = False, + ) -> Tuple[bool, float, float, float, float, bool, bool]: ... @staticmethod - def JoinPCurves(theEdges: TopTools_HSequenceOfShape, theFace: TopoDS_Face, theEdge: TopoDS_Edge) -> bool: ... + def JoinPCurves( + theEdges: TopTools_HSequenceOfShape, theFace: TopoDS_Face, theEdge: TopoDS_Edge + ) -> bool: ... class ShapeConstruct_Curve: - def AdjustCurve(self, C3D: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, take1: Optional[bool] = True, take2: Optional[bool] = True) -> bool: ... - def AdjustCurve2d(self, C2D: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, take1: Optional[bool] = True, take2: Optional[bool] = True) -> bool: ... - def AdjustCurveSegment(self, C3D: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, U1: float, U2: float) -> bool: ... + def AdjustCurve( + self, + C3D: Geom_Curve, + P1: gp_Pnt, + P2: gp_Pnt, + take1: Optional[bool] = True, + take2: Optional[bool] = True, + ) -> bool: ... + def AdjustCurve2d( + self, + C2D: Geom2d_Curve, + P1: gp_Pnt2d, + P2: gp_Pnt2d, + take1: Optional[bool] = True, + take2: Optional[bool] = True, + ) -> bool: ... + def AdjustCurveSegment( + self, C3D: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, U1: float, U2: float + ) -> bool: ... @overload - def ConvertToBSpline(self, C: Geom_Curve, first: float, last: float, prec: float) -> Geom_BSplineCurve: ... + def ConvertToBSpline( + self, C: Geom_Curve, first: float, last: float, prec: float + ) -> Geom_BSplineCurve: ... @overload - def ConvertToBSpline(self, C: Geom2d_Curve, first: float, last: float, prec: float) -> Geom2d_BSplineCurve: ... + def ConvertToBSpline( + self, C: Geom2d_Curve, first: float, last: float, prec: float + ) -> Geom2d_BSplineCurve: ... @overload @staticmethod def FixKnots(knots: TColStd_HArray1OfReal) -> bool: ... @@ -53,10 +113,14 @@ class ShapeConstruct_Curve: class ShapeConstruct_MakeTriangulation(BRepBuilderAPI_MakeShape): @overload - def __init__(self, pnts: TColgp_Array1OfPnt, prec: Optional[float] = 0.0) -> None: ... + def __init__( + self, pnts: TColgp_Array1OfPnt, prec: Optional[float] = 0.0 + ) -> None: ... @overload def __init__(self, wire: TopoDS_Wire, prec: Optional[float] = 0.0) -> None: ... - def Build(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def IsDone(self) -> bool: ... class ShapeConstruct_ProjectCurveOnSurface(Standard_Transient): @@ -69,8 +133,25 @@ class ShapeConstruct_ProjectCurveOnSurface(Standard_Transient): def Init(self, surf: Geom_Surface, preci: float) -> None: ... @overload def Init(self, surf: ShapeAnalysis_Surface, preci: float) -> None: ... - def Perform(self, c3d: Geom_Curve, First: float, Last: float, c2d: Geom2d_Curve, TolFirst: Optional[float] = -1, TolLast: Optional[float] = -1) -> bool: ... - def PerformByProjLib(self, c3d: Geom_Curve, First: float, Last: float, c2d: Geom2d_Curve, continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, maxdeg: Optional[int] = 12, nbinterval: Optional[int] = -1) -> bool: ... + def Perform( + self, + c3d: Geom_Curve, + First: float, + Last: float, + c2d: Geom2d_Curve, + TolFirst: Optional[float] = -1, + TolLast: Optional[float] = -1, + ) -> bool: ... + def PerformByProjLib( + self, + c3d: Geom_Curve, + First: float, + Last: float, + c2d: Geom2d_Curve, + continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + maxdeg: Optional[int] = 12, + nbinterval: Optional[int] = -1, + ) -> bool: ... def SetPrecision(self, preci: float) -> None: ... @overload def SetSurface(self, surf: Geom_Surface) -> None: ... @@ -81,4 +162,3 @@ class ShapeConstruct_ProjectCurveOnSurface(Standard_Transient): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ShapeCustom.pyi b/src/SWIG_files/wrapper/ShapeCustom.pyi index bb5e597da..64a2efbaf 100644 --- a/src/SWIG_files/wrapper/ShapeCustom.pyi +++ b/src/SWIG_files/wrapper/ShapeCustom.pyi @@ -14,12 +14,28 @@ from OCC.Core.Message import * from OCC.Core.gp import * from OCC.Core.TopLoc import * - class shapecustom: @staticmethod - def BSplineRestriction(S: TopoDS_Shape, Tol3d: float, Tol2d: float, MaxDegree: int, MaxNbSegment: int, Continuity3d: GeomAbs_Shape, Continuity2d: GeomAbs_Shape, Degree: bool, Rational: bool, aParameters: ShapeCustom_RestrictionParameters) -> TopoDS_Shape: ... + def BSplineRestriction( + S: TopoDS_Shape, + Tol3d: float, + Tol2d: float, + MaxDegree: int, + MaxNbSegment: int, + Continuity3d: GeomAbs_Shape, + Continuity2d: GeomAbs_Shape, + Degree: bool, + Rational: bool, + aParameters: ShapeCustom_RestrictionParameters, + ) -> TopoDS_Shape: ... @staticmethod - def ConvertToBSpline(S: TopoDS_Shape, extrMode: bool, revolMode: bool, offsetMode: bool, planeMode: Optional[bool] = False) -> TopoDS_Shape: ... + def ConvertToBSpline( + S: TopoDS_Shape, + extrMode: bool, + revolMode: bool, + offsetMode: bool, + planeMode: Optional[bool] = False, + ) -> TopoDS_Shape: ... @staticmethod def ConvertToRevolution(S: TopoDS_Shape) -> TopoDS_Shape: ... @staticmethod @@ -34,20 +50,33 @@ class ShapeCustom_Curve: def __init__(self) -> None: ... @overload def __init__(self, C: Geom_Curve) -> None: ... - def ConvertToPeriodic(self, substitute: bool, preci: Optional[float] = -1) -> Geom_Curve: ... + def ConvertToPeriodic( + self, substitute: bool, preci: Optional[float] = -1 + ) -> Geom_Curve: ... def Init(self, C: Geom_Curve) -> None: ... class ShapeCustom_Curve2d: @staticmethod - def ConvertToLine2d(theCurve: Geom2d_Curve, theFirstIn: float, theLastIn: float, theTolerance: float) -> Tuple[Geom2d_Line, float, float, float]: ... + def ConvertToLine2d( + theCurve: Geom2d_Curve, theFirstIn: float, theLastIn: float, theTolerance: float + ) -> Tuple[Geom2d_Line, float, float, float]: ... @staticmethod - def IsLinear(thePoles: TColgp_Array1OfPnt2d, theTolerance: float) -> Tuple[bool, float]: ... + def IsLinear( + thePoles: TColgp_Array1OfPnt2d, theTolerance: float + ) -> Tuple[bool, float]: ... @staticmethod - def SimplifyBSpline2d(theBSpline2d: Geom2d_BSplineCurve, theTolerance: float) -> bool: ... + def SimplifyBSpline2d( + theBSpline2d: Geom2d_BSplineCurve, theTolerance: float + ) -> bool: ... class ShapeCustom_Modification(BRepTools_Modification): def MsgRegistrator(self) -> ShapeExtend_BasicMsgRegistrator: ... - def SendMsg(self, shape: TopoDS_Shape, message: Message_Msg, gravity: Optional[Message_Gravity] = Message_Info) -> None: ... + def SendMsg( + self, + shape: TopoDS_Shape, + message: Message_Msg, + gravity: Optional[Message_Gravity] = Message_Info, + ) -> None: ... def SetMsgRegistrator(self, msgreg: ShapeExtend_BasicMsgRegistrator) -> None: ... class ShapeCustom_RestrictionParameters(Standard_Transient): @@ -91,26 +120,62 @@ class ShapeCustom_Surface: @overload def __init__(self, S: Geom_Surface) -> None: ... def ConvertToAnalytical(self, tol: float, substitute: bool) -> Geom_Surface: ... - def ConvertToPeriodic(self, substitute: bool, preci: Optional[float] = -1) -> Geom_Surface: ... + def ConvertToPeriodic( + self, substitute: bool, preci: Optional[float] = -1 + ) -> Geom_Surface: ... def Gap(self) -> float: ... def Init(self, S: Geom_Surface) -> None: ... class ShapeCustom_TrsfModification(BRepTools_TrsfModification): def __init__(self, T: gp_Trsf) -> None: ... - def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def NewCurve( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + NewE: TopoDS_Edge, + NewF: TopoDS_Face, + C: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ... - def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... + def NewSurface( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... class ShapeCustom_ConvertToBSpline(ShapeCustom_Modification): def __init__(self) -> None: ... - def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ... - def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def Continuity( + self, + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + NewE: TopoDS_Edge, + NewF1: TopoDS_Face, + NewF2: TopoDS_Face, + ) -> GeomAbs_Shape: ... + def NewCurve( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + NewE: TopoDS_Edge, + NewF: TopoDS_Face, + C: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ... - def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... + def NewSurface( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... def SetExtrusionMode(self, extrMode: bool) -> None: ... def SetOffsetMode(self, offsetMode: bool) -> None: ... def SetPlaneMode(self, planeMode: bool) -> None: ... @@ -118,23 +183,43 @@ class ShapeCustom_ConvertToBSpline(ShapeCustom_Modification): class ShapeCustom_DirectModification(ShapeCustom_Modification): def __init__(self) -> None: ... - def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ... - def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ... - def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ... - def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def Continuity( + self, + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + NewE: TopoDS_Edge, + NewF1: TopoDS_Face, + NewF2: TopoDS_Face, + ) -> GeomAbs_Shape: ... + def NewCurve( + self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location + ) -> Tuple[bool, float]: ... + def NewCurve2d( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + NewE: TopoDS_Edge, + NewF: TopoDS_Face, + C: Geom2d_Curve, + ) -> Tuple[bool, float]: ... + def NewParameter( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float, float]: ... def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ... - def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ... + def NewSurface( + self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location + ) -> Tuple[bool, float, bool, bool]: ... -#classnotwrapped +# classnotwrapped class ShapeCustom_BSplineRestriction: ... -#classnotwrapped +# classnotwrapped class ShapeCustom_SweptToElementary: ... -#classnotwrapped +# classnotwrapped class ShapeCustom_ConvertToRevolution: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ShapeExtend.pyi b/src/SWIG_files/wrapper/ShapeExtend.pyi index 745565177..f283955db 100644 --- a/src/SWIG_files/wrapper/ShapeExtend.pyi +++ b/src/SWIG_files/wrapper/ShapeExtend.pyi @@ -13,7 +13,6 @@ from OCC.Core.TColStd import * from OCC.Core.TopTools import * from OCC.Core.TopAbs import * - class ShapeExtend_Parametrisation(IntEnum): ShapeExtend_Natural: int = ... ShapeExtend_Uniform: int = ... @@ -75,9 +74,13 @@ class shapeextend: class ShapeExtend_BasicMsgRegistrator(Standard_Transient): def __init__(self) -> None: ... @overload - def Send(self, object: Standard_Transient, message: Message_Msg, gravity: Message_Gravity) -> None: ... + def Send( + self, object: Standard_Transient, message: Message_Msg, gravity: Message_Gravity + ) -> None: ... @overload - def Send(self, shape: TopoDS_Shape, message: Message_Msg, gravity: Message_Gravity) -> None: ... + def Send( + self, shape: TopoDS_Shape, message: Message_Msg, gravity: Message_Gravity + ) -> None: ... @overload def Send(self, message: Message_Msg, gravity: Message_Gravity) -> None: ... @@ -106,25 +109,71 @@ class ShapeExtend_CompositeSurface(Geom_Surface): @overload def __init__(self) -> None: ... @overload - def __init__(self, GridSurf: TColGeom_HArray2OfSurface, param: Optional[ShapeExtend_Parametrisation] = ShapeExtend_Natural) -> None: ... + def __init__( + self, + GridSurf: TColGeom_HArray2OfSurface, + param: Optional[ShapeExtend_Parametrisation] = ShapeExtend_Natural, + ) -> None: ... @overload - def __init__(self, GridSurf: TColGeom_HArray2OfSurface, UJoints: TColStd_Array1OfReal, VJoints: TColStd_Array1OfReal) -> None: ... + def __init__( + self, + GridSurf: TColGeom_HArray2OfSurface, + UJoints: TColStd_Array1OfReal, + VJoints: TColStd_Array1OfReal, + ) -> None: ... def Bounds(self) -> Tuple[float, float, float, float]: ... def CheckConnectivity(self, prec: float) -> bool: ... - def ComputeJointValues(self, param: Optional[ShapeExtend_Parametrisation] = ShapeExtend_Natural) -> None: ... + def ComputeJointValues( + self, param: Optional[ShapeExtend_Parametrisation] = ShapeExtend_Natural + ) -> None: ... def Continuity(self) -> GeomAbs_Shape: ... def Copy(self) -> Geom_Geometry: ... def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... - def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ... - def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... def GlobalToLocal(self, i: int, j: int, UV: gp_Pnt2d) -> gp_Pnt2d: ... - def GlobalToLocalTransformation(self, i: int, j: int, Trsf: gp_Trsf2d) -> Tuple[bool, float]: ... + def GlobalToLocalTransformation( + self, i: int, j: int, Trsf: gp_Trsf2d + ) -> Tuple[bool, float]: ... @overload - def Init(self, GridSurf: TColGeom_HArray2OfSurface, param: Optional[ShapeExtend_Parametrisation] = ShapeExtend_Natural) -> bool: ... + def Init( + self, + GridSurf: TColGeom_HArray2OfSurface, + param: Optional[ShapeExtend_Parametrisation] = ShapeExtend_Natural, + ) -> bool: ... @overload - def Init(self, GridSurf: TColGeom_HArray2OfSurface, UJoints: TColStd_Array1OfReal, VJoints: TColStd_Array1OfReal) -> bool: ... + def Init( + self, + GridSurf: TColGeom_HArray2OfSurface, + UJoints: TColStd_Array1OfReal, + VJoints: TColStd_Array1OfReal, + ) -> bool: ... def IsCNu(self, N: int) -> bool: ... def IsCNv(self, N: int) -> bool: ... def IsUClosed(self) -> bool: ... @@ -168,18 +217,45 @@ class ShapeExtend_CompositeSurface(Geom_Surface): class ShapeExtend_Explorer: def __init__(self) -> None: ... def CompoundFromSeq(self, seqval: TopTools_HSequenceOfShape) -> TopoDS_Shape: ... - def DispatchList(self, list: TopTools_HSequenceOfShape, vertices: TopTools_HSequenceOfShape, edges: TopTools_HSequenceOfShape, wires: TopTools_HSequenceOfShape, faces: TopTools_HSequenceOfShape, shells: TopTools_HSequenceOfShape, solids: TopTools_HSequenceOfShape, compsols: TopTools_HSequenceOfShape, compounds: TopTools_HSequenceOfShape) -> None: ... - def ListFromSeq(self, seqval: TopTools_HSequenceOfShape, lisval: TopTools_ListOfShape, clear: Optional[bool] = True) -> None: ... - def SeqFromCompound(self, comp: TopoDS_Shape, expcomp: bool) -> TopTools_HSequenceOfShape: ... - def SeqFromList(self, lisval: TopTools_ListOfShape) -> TopTools_HSequenceOfShape: ... + def DispatchList( + self, + list: TopTools_HSequenceOfShape, + vertices: TopTools_HSequenceOfShape, + edges: TopTools_HSequenceOfShape, + wires: TopTools_HSequenceOfShape, + faces: TopTools_HSequenceOfShape, + shells: TopTools_HSequenceOfShape, + solids: TopTools_HSequenceOfShape, + compsols: TopTools_HSequenceOfShape, + compounds: TopTools_HSequenceOfShape, + ) -> None: ... + def ListFromSeq( + self, + seqval: TopTools_HSequenceOfShape, + lisval: TopTools_ListOfShape, + clear: Optional[bool] = True, + ) -> None: ... + def SeqFromCompound( + self, comp: TopoDS_Shape, expcomp: bool + ) -> TopTools_HSequenceOfShape: ... + def SeqFromList( + self, lisval: TopTools_ListOfShape + ) -> TopTools_HSequenceOfShape: ... def ShapeType(self, shape: TopoDS_Shape, compound: bool) -> TopAbs_ShapeEnum: ... - def SortedCompound(self, shape: TopoDS_Shape, type: TopAbs_ShapeEnum, explore: bool, compound: bool) -> TopoDS_Shape: ... + def SortedCompound( + self, shape: TopoDS_Shape, type: TopAbs_ShapeEnum, explore: bool, compound: bool + ) -> TopoDS_Shape: ... class ShapeExtend_WireData(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, wire: TopoDS_Wire, chained: Optional[bool] = True, theManifoldMode: Optional[bool] = True) -> None: ... + def __init__( + self, + wire: TopoDS_Wire, + chained: Optional[bool] = True, + theManifoldMode: Optional[bool] = True, + ) -> None: ... @overload def Add(self, edge: TopoDS_Edge, atnum: Optional[int] = 0) -> None: ... @overload @@ -201,7 +277,12 @@ class ShapeExtend_WireData(Standard_Transient): @overload def Init(self, other: ShapeExtend_WireData) -> None: ... @overload - def Init(self, wire: TopoDS_Wire, chained: Optional[bool] = True, theManifoldMode: Optional[bool] = True) -> bool: ... + def Init( + self, + wire: TopoDS_Wire, + chained: Optional[bool] = True, + theManifoldMode: Optional[bool] = True, + ) -> bool: ... def IsSeam(self, num: int) -> bool: ... def GetManifoldMode(self) -> bool: ... def SetManifoldMode(self, value: bool) -> None: ... @@ -225,11 +306,14 @@ class ShapeExtend_MsgRegistrator(ShapeExtend_BasicMsgRegistrator): def MapShape(self) -> ShapeExtend_DataMapOfShapeListOfMsg: ... def MapTransient(self) -> ShapeExtend_DataMapOfTransientListOfMsg: ... @overload - def Send(self, object: Standard_Transient, message: Message_Msg, gravity: Message_Gravity) -> None: ... + def Send( + self, object: Standard_Transient, message: Message_Msg, gravity: Message_Gravity + ) -> None: ... @overload - def Send(self, shape: TopoDS_Shape, message: Message_Msg, gravity: Message_Gravity) -> None: ... + def Send( + self, shape: TopoDS_Shape, message: Message_Msg, gravity: Message_Gravity + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ShapeFix.pyi b/src/SWIG_files/wrapper/ShapeFix.pyi index 95a1c62a7..0394e1675 100644 --- a/src/SWIG_files/wrapper/ShapeFix.pyi +++ b/src/SWIG_files/wrapper/ShapeFix.pyi @@ -15,58 +15,111 @@ from OCC.Core.Geom2d import * from OCC.Core.TopAbs import * from OCC.Core.TopTools import * - class ShapeFix_SequenceOfWireSegment: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: ShapeFix_WireSegment) -> ShapeFix_WireSegment: ... def Clear(self) -> None: ... def First(self) -> ShapeFix_WireSegment: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> ShapeFix_WireSegment: ... def Length(self) -> int: ... - def Append(self, theItem: ShapeFix_WireSegment) -> ShapeFix_WireSegment: ... + def Lower(self) -> int: ... def Prepend(self, theItem: ShapeFix_WireSegment) -> ShapeFix_WireSegment: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> ShapeFix_WireSegment: ... def SetValue(self, theIndex: int, theValue: ShapeFix_WireSegment) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> ShapeFix_WireSegment: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class shapefix: @staticmethod - def EncodeRegularity(shape: TopoDS_Shape, tolang: Optional[float] = 1.0e-10) -> None: ... + def EncodeRegularity( + shape: TopoDS_Shape, tolang: Optional[float] = 1.0e-10 + ) -> None: ... @staticmethod - def FixVertexPosition(theshape: TopoDS_Shape, theTolerance: float, thecontext: ShapeBuild_ReShape) -> bool: ... + def FixVertexPosition( + theshape: TopoDS_Shape, theTolerance: float, thecontext: ShapeBuild_ReShape + ) -> bool: ... @staticmethod def LeastEdgeSize(theshape: TopoDS_Shape) -> float: ... @staticmethod - def RemoveSmallEdges(shape: TopoDS_Shape, Tolerance: float, context: ShapeBuild_ReShape) -> TopoDS_Shape: ... + def RemoveSmallEdges( + shape: TopoDS_Shape, Tolerance: float, context: ShapeBuild_ReShape + ) -> TopoDS_Shape: ... @staticmethod - def SameParameter(shape: TopoDS_Shape, enforce: bool, preci: Optional[float] = 0.0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), theMsgReg: Optional[ShapeExtend_BasicMsgRegistrator] = 0) -> bool: ... + def SameParameter( + shape: TopoDS_Shape, + enforce: bool, + preci: Optional[float] = 0.0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + theMsgReg: Optional[ShapeExtend_BasicMsgRegistrator] = 0, + ) -> bool: ... class ShapeFix_Edge(Standard_Transient): def __init__(self) -> None: ... def FixAddCurve3d(self, edge: TopoDS_Edge) -> bool: ... @overload - def FixAddPCurve(self, edge: TopoDS_Edge, face: TopoDS_Face, isSeam: bool, prec: Optional[float] = 0.0) -> bool: ... - @overload - def FixAddPCurve(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location, isSeam: bool, prec: Optional[float] = 0.0) -> bool: ... - @overload - def FixAddPCurve(self, edge: TopoDS_Edge, face: TopoDS_Face, isSeam: bool, surfana: ShapeAnalysis_Surface, prec: Optional[float] = 0.0) -> bool: ... - @overload - def FixAddPCurve(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location, isSeam: bool, surfana: ShapeAnalysis_Surface, prec: Optional[float] = 0.0) -> bool: ... + def FixAddPCurve( + self, + edge: TopoDS_Edge, + face: TopoDS_Face, + isSeam: bool, + prec: Optional[float] = 0.0, + ) -> bool: ... + @overload + def FixAddPCurve( + self, + edge: TopoDS_Edge, + surface: Geom_Surface, + location: TopLoc_Location, + isSeam: bool, + prec: Optional[float] = 0.0, + ) -> bool: ... + @overload + def FixAddPCurve( + self, + edge: TopoDS_Edge, + face: TopoDS_Face, + isSeam: bool, + surfana: ShapeAnalysis_Surface, + prec: Optional[float] = 0.0, + ) -> bool: ... + @overload + def FixAddPCurve( + self, + edge: TopoDS_Edge, + surface: Geom_Surface, + location: TopLoc_Location, + isSeam: bool, + surfana: ShapeAnalysis_Surface, + prec: Optional[float] = 0.0, + ) -> bool: ... def FixRemoveCurve3d(self, edge: TopoDS_Edge) -> bool: ... @overload def FixRemovePCurve(self, edge: TopoDS_Edge, face: TopoDS_Face) -> bool: ... @overload - def FixRemovePCurve(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location) -> bool: ... + def FixRemovePCurve( + self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location + ) -> bool: ... @overload def FixReversed2d(self, edge: TopoDS_Edge, face: TopoDS_Face) -> bool: ... @overload - def FixReversed2d(self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location) -> bool: ... + def FixReversed2d( + self, edge: TopoDS_Edge, surface: Geom_Surface, location: TopLoc_Location + ) -> bool: ... @overload - def FixSameParameter(self, edge: TopoDS_Edge, tolerance: Optional[float] = 0.0) -> bool: ... + def FixSameParameter( + self, edge: TopoDS_Edge, tolerance: Optional[float] = 0.0 + ) -> bool: ... @overload - def FixSameParameter(self, edge: TopoDS_Edge, face: TopoDS_Face, tolerance: Optional[float] = 0.0) -> bool: ... + def FixSameParameter( + self, edge: TopoDS_Edge, face: TopoDS_Face, tolerance: Optional[float] = 0.0 + ) -> bool: ... @overload def FixVertexTolerance(self, edge: TopoDS_Edge, face: TopoDS_Face) -> bool: ... @overload @@ -100,27 +153,53 @@ class ShapeFix_EdgeProjAux(Standard_Transient): class ShapeFix_FaceConnect: def __init__(self) -> None: ... def Add(self, aFirst: TopoDS_Face, aSecond: TopoDS_Face) -> bool: ... - def Build(self, shell: TopoDS_Shell, sewtoler: float, fixtoler: float) -> TopoDS_Shell: ... + def Build( + self, shell: TopoDS_Shell, sewtoler: float, fixtoler: float + ) -> TopoDS_Shell: ... def Clear(self) -> None: ... class ShapeFix_FreeBounds: @overload def __init__(self) -> None: ... @overload - def __init__(self, shape: TopoDS_Shape, sewtoler: float, closetoler: float, splitclosed: bool, splitopen: bool) -> None: ... - @overload - def __init__(self, shape: TopoDS_Shape, closetoler: float, splitclosed: bool, splitopen: bool) -> None: ... + def __init__( + self, + shape: TopoDS_Shape, + sewtoler: float, + closetoler: float, + splitclosed: bool, + splitopen: bool, + ) -> None: ... + @overload + def __init__( + self, shape: TopoDS_Shape, closetoler: float, splitclosed: bool, splitopen: bool + ) -> None: ... def GetClosedWires(self) -> TopoDS_Compound: ... def GetOpenWires(self) -> TopoDS_Compound: ... def GetShape(self) -> TopoDS_Shape: ... class ShapeFix_IntersectionTool: - def __init__(self, context: ShapeBuild_ReShape, preci: float, maxtol: Optional[float] = 1.0) -> None: ... + def __init__( + self, context: ShapeBuild_ReShape, preci: float, maxtol: Optional[float] = 1.0 + ) -> None: ... def Context(self) -> ShapeBuild_ReShape: ... - def CutEdge(self, edge: TopoDS_Edge, pend: float, cut: float, face: TopoDS_Face) -> Tuple[bool, bool]: ... + def CutEdge( + self, edge: TopoDS_Edge, pend: float, cut: float, face: TopoDS_Face + ) -> Tuple[bool, bool]: ... def FixIntersectingWires(self, face: TopoDS_Face) -> bool: ... - def FixSelfIntersectWire(self, sewd: ShapeExtend_WireData, face: TopoDS_Face) -> Tuple[bool, int, int, int]: ... - def SplitEdge(self, edge: TopoDS_Edge, param: float, vert: TopoDS_Vertex, face: TopoDS_Face, newE1: TopoDS_Edge, newE2: TopoDS_Edge, preci: float) -> bool: ... + def FixSelfIntersectWire( + self, sewd: ShapeExtend_WireData, face: TopoDS_Face + ) -> Tuple[bool, int, int, int]: ... + def SplitEdge( + self, + edge: TopoDS_Edge, + param: float, + vert: TopoDS_Vertex, + face: TopoDS_Face, + newE1: TopoDS_Edge, + newE2: TopoDS_Edge, + preci: float, + ) -> bool: ... class ShapeFix_Root(Standard_Transient): def __init__(self) -> None: ... @@ -135,9 +214,16 @@ class ShapeFix_Root(Standard_Transient): @overload def SendFail(self, message: Message_Msg) -> None: ... @overload - def SendMsg(self, shape: TopoDS_Shape, message: Message_Msg, gravity: Optional[Message_Gravity] = Message_Info) -> None: ... + def SendMsg( + self, + shape: TopoDS_Shape, + message: Message_Msg, + gravity: Optional[Message_Gravity] = Message_Info, + ) -> None: ... @overload - def SendMsg(self, message: Message_Msg, gravity: Optional[Message_Gravity] = Message_Info) -> None: ... + def SendMsg( + self, message: Message_Msg, gravity: Optional[Message_Gravity] = Message_Info + ) -> None: ... @overload def SendWarning(self, shape: TopoDS_Shape, message: Message_Msg) -> None: ... @overload @@ -151,18 +237,64 @@ class ShapeFix_Root(Standard_Transient): class ShapeFix_ShapeTolerance: def __init__(self) -> None: ... - def LimitTolerance(self, shape: TopoDS_Shape, tmin: float, tmax: Optional[float] = 0.0, styp: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> bool: ... - def SetTolerance(self, shape: TopoDS_Shape, preci: float, styp: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def LimitTolerance( + self, + shape: TopoDS_Shape, + tmin: float, + tmax: Optional[float] = 0.0, + styp: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> bool: ... + def SetTolerance( + self, + shape: TopoDS_Shape, + preci: float, + styp: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... class ShapeFix_SplitTool: def __init__(self) -> None: ... - def CutEdge(self, edge: TopoDS_Edge, pend: float, cut: float, face: TopoDS_Face) -> Tuple[bool, bool]: ... - @overload - def SplitEdge(self, edge: TopoDS_Edge, param: float, vert: TopoDS_Vertex, face: TopoDS_Face, newE1: TopoDS_Edge, newE2: TopoDS_Edge, tol3d: float, tol2d: float) -> bool: ... - @overload - def SplitEdge(self, edge: TopoDS_Edge, param1: float, param2: float, vert: TopoDS_Vertex, face: TopoDS_Face, newE1: TopoDS_Edge, newE2: TopoDS_Edge, tol3d: float, tol2d: float) -> bool: ... - @overload - def SplitEdge(self, edge: TopoDS_Edge, fp: float, V1: TopoDS_Vertex, lp: float, V2: TopoDS_Vertex, face: TopoDS_Face, SeqE: TopTools_SequenceOfShape, context: ShapeBuild_ReShape, tol3d: float, tol2d: float) -> Tuple[bool, int]: ... + def CutEdge( + self, edge: TopoDS_Edge, pend: float, cut: float, face: TopoDS_Face + ) -> Tuple[bool, bool]: ... + @overload + def SplitEdge( + self, + edge: TopoDS_Edge, + param: float, + vert: TopoDS_Vertex, + face: TopoDS_Face, + newE1: TopoDS_Edge, + newE2: TopoDS_Edge, + tol3d: float, + tol2d: float, + ) -> bool: ... + @overload + def SplitEdge( + self, + edge: TopoDS_Edge, + param1: float, + param2: float, + vert: TopoDS_Vertex, + face: TopoDS_Face, + newE1: TopoDS_Edge, + newE2: TopoDS_Edge, + tol3d: float, + tol2d: float, + ) -> bool: ... + @overload + def SplitEdge( + self, + edge: TopoDS_Edge, + fp: float, + V1: TopoDS_Vertex, + lp: float, + V2: TopoDS_Vertex, + face: TopoDS_Face, + SeqE: TopTools_SequenceOfShape, + context: ShapeBuild_ReShape, + tol3d: float, + tol2d: float, + ) -> Tuple[bool, int]: ... class ShapeFix_WireVertex: def __init__(self) -> None: ... @@ -182,12 +314,22 @@ class ShapeFix_ComposeShell(ShapeFix_Root): def __init__(self) -> None: ... def GetClosedMode(self) -> bool: ... def SetClosedMode(self, value: bool) -> None: ... - def DispatchWires(self, faces: TopTools_SequenceOfShape, wires: ShapeFix_SequenceOfWireSegment) -> None: ... + def DispatchWires( + self, faces: TopTools_SequenceOfShape, wires: ShapeFix_SequenceOfWireSegment + ) -> None: ... def GetTransferParamTool(self) -> ShapeAnalysis_TransferParameters: ... - def Init(self, Grid: ShapeExtend_CompositeSurface, L: TopLoc_Location, Face: TopoDS_Face, Prec: float) -> None: ... + def Init( + self, + Grid: ShapeExtend_CompositeSurface, + L: TopLoc_Location, + Face: TopoDS_Face, + Prec: float, + ) -> None: ... def Perform(self) -> bool: ... def Result(self) -> TopoDS_Shape: ... - def SetTransferParamTool(self, TransferParam: ShapeAnalysis_TransferParameters) -> None: ... + def SetTransferParamTool( + self, TransferParam: ShapeAnalysis_TransferParameters + ) -> None: ... def SplitEdges(self) -> None: ... def Status(self, status: ShapeExtend_Status) -> bool: ... @@ -235,9 +377,13 @@ class ShapeFix_Face(ShapeFix_Root): @overload def Init(self, face: TopoDS_Face) -> None: ... @overload - def Init(self, surf: Geom_Surface, preci: float, fwd: Optional[bool] = True) -> None: ... + def Init( + self, surf: Geom_Surface, preci: float, fwd: Optional[bool] = True + ) -> None: ... @overload - def Init(self, surf: ShapeAnalysis_Surface, preci: float, fwd: Optional[bool] = True) -> None: ... + def Init( + self, surf: ShapeAnalysis_Surface, preci: float, fwd: Optional[bool] = True + ) -> None: ... def Perform(self) -> bool: ... def GetRemoveSmallAreaFaceMode(self) -> int: ... def SetRemoveSmallAreaFaceMode(self, value: int) -> None: ... @@ -250,7 +396,14 @@ class ShapeFix_Face(ShapeFix_Root): class ShapeFix_FixSmallFace(ShapeFix_Root): def __init__(self) -> None: ... - def ComputeSharedEdgeForStripFace(self, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, F1: TopoDS_Face, tol: float) -> TopoDS_Edge: ... + def ComputeSharedEdgeForStripFace( + self, + F: TopoDS_Face, + E1: TopoDS_Edge, + E2: TopoDS_Edge, + F1: TopoDS_Face, + tol: float, + ) -> TopoDS_Edge: ... def FixFace(self, F: TopoDS_Face) -> TopoDS_Face: ... def FixPinFace(self, F: TopoDS_Face) -> bool: ... def FixShape(self) -> TopoDS_Shape: ... @@ -261,15 +414,23 @@ class ShapeFix_FixSmallFace(ShapeFix_Root): def Perform(self) -> None: ... def RemoveFacesInCaseOfSpot(self, F: TopoDS_Face) -> bool: ... def RemoveFacesInCaseOfStrip(self, F: TopoDS_Face) -> bool: ... - def ReplaceInCaseOfStrip(self, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, tol: float) -> bool: ... + def ReplaceInCaseOfStrip( + self, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, tol: float + ) -> bool: ... def ReplaceVerticesInCaseOfSpot(self, F: TopoDS_Face, tol: float) -> bool: ... def Shape(self) -> TopoDS_Shape: ... - def SplitOneFace(self, F: TopoDS_Face, theSplittedFaces: TopoDS_Compound) -> bool: ... + def SplitOneFace( + self, F: TopoDS_Face, theSplittedFaces: TopoDS_Compound + ) -> bool: ... class ShapeFix_FixSmallSolid(ShapeFix_Root): def __init__(self) -> None: ... - def Merge(self, theShape: TopoDS_Shape, theContext: ShapeBuild_ReShape) -> TopoDS_Shape: ... - def Remove(self, theShape: TopoDS_Shape, theContext: ShapeBuild_ReShape) -> TopoDS_Shape: ... + def Merge( + self, theShape: TopoDS_Shape, theContext: ShapeBuild_ReShape + ) -> TopoDS_Shape: ... + def Remove( + self, theShape: TopoDS_Shape, theContext: ShapeBuild_ReShape + ) -> TopoDS_Shape: ... def SetFixMode(self, theMode: int) -> None: ... def SetVolumeThreshold(self, theThreshold: Optional[float] = -1.0) -> None: ... def SetWidthFactorThreshold(self, theThreshold: Optional[float] = -1.0) -> None: ... @@ -299,7 +460,9 @@ class ShapeFix_Shape(ShapeFix_Root): def SetFixVertexTolMode(self, value: int) -> None: ... def FixWireTool(self) -> ShapeFix_Wire: ... def Init(self, shape: TopoDS_Shape) -> None: ... - def Perform(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> bool: ... def SetMaxTolerance(self, maxtol: float) -> None: ... def SetMinTolerance(self, mintol: float) -> None: ... def SetMsgRegistrator(self, msgreg: ShapeExtend_BasicMsgRegistrator) -> None: ... @@ -315,13 +478,20 @@ class ShapeFix_Shell(ShapeFix_Root): def ErrorFaces(self) -> TopoDS_Compound: ... def GetFixFaceMode(self) -> int: ... def SetFixFaceMode(self, value: int) -> None: ... - def FixFaceOrientation(self, shell: TopoDS_Shell, isAccountMultiConex: Optional[bool] = True, NonManifold: Optional[bool] = False) -> bool: ... + def FixFaceOrientation( + self, + shell: TopoDS_Shell, + isAccountMultiConex: Optional[bool] = True, + NonManifold: Optional[bool] = False, + ) -> bool: ... def FixFaceTool(self) -> ShapeFix_Face: ... def GetFixOrientationMode(self) -> int: ... def SetFixOrientationMode(self, value: int) -> None: ... def Init(self, shell: TopoDS_Shell) -> None: ... def NbShells(self) -> int: ... - def Perform(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> bool: ... def SetMaxTolerance(self, maxtol: float) -> None: ... def SetMinTolerance(self, mintol: float) -> None: ... def SetMsgRegistrator(self, msgreg: ShapeExtend_BasicMsgRegistrator) -> None: ... @@ -344,7 +514,9 @@ class ShapeFix_Solid(ShapeFix_Root): def SetFixShellOrientationMode(self, value: int) -> None: ... def FixShellTool(self) -> ShapeFix_Shell: ... def Init(self, solid: TopoDS_Solid) -> None: ... - def Perform(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> bool: ... def SetMaxTolerance(self, maxtol: float) -> None: ... def SetMinTolerance(self, mintol: float) -> None: ... def SetMsgRegistrator(self, msgreg: ShapeExtend_BasicMsgRegistrator) -> None: ... @@ -502,13 +674,27 @@ class ShapeFix_Wireframe(ShapeFix_Root): def __init__(self) -> None: ... @overload def __init__(self, shape: TopoDS_Shape) -> None: ... - def CheckSmallEdges(self, theSmallEdges: TopTools_MapOfShape, theEdgeToFaces: TopTools_DataMapOfShapeListOfShape, theFaceWithSmall: TopTools_DataMapOfShapeListOfShape, theMultyEdges: TopTools_MapOfShape) -> bool: ... + def CheckSmallEdges( + self, + theSmallEdges: TopTools_MapOfShape, + theEdgeToFaces: TopTools_DataMapOfShapeListOfShape, + theFaceWithSmall: TopTools_DataMapOfShapeListOfShape, + theMultyEdges: TopTools_MapOfShape, + ) -> bool: ... def ClearStatuses(self) -> None: ... def FixSmallEdges(self) -> bool: ... def FixWireGaps(self) -> bool: ... def LimitAngle(self) -> float: ... def Load(self, shape: TopoDS_Shape) -> None: ... - def MergeSmallEdges(self, theSmallEdges: TopTools_MapOfShape, theEdgeToFaces: TopTools_DataMapOfShapeListOfShape, theFaceWithSmall: TopTools_DataMapOfShapeListOfShape, theMultyEdges: TopTools_MapOfShape, theModeDrop: Optional[bool] = False, theLimitAngle: Optional[float] = -1) -> bool: ... + def MergeSmallEdges( + self, + theSmallEdges: TopTools_MapOfShape, + theEdgeToFaces: TopTools_DataMapOfShapeListOfShape, + theFaceWithSmall: TopTools_DataMapOfShapeListOfShape, + theMultyEdges: TopTools_MapOfShape, + theModeDrop: Optional[bool] = False, + theLimitAngle: Optional[float] = -1, + ) -> bool: ... def GetModeDropSmallEdges(self) -> bool: ... def SetModeDropSmallEdges(self, value: bool) -> None: ... def SetLimitAngle(self, theLimitAngle: float) -> None: ... @@ -516,10 +702,9 @@ class ShapeFix_Wireframe(ShapeFix_Root): def StatusSmallEdges(self, status: ShapeExtend_Status) -> bool: ... def StatusWireGaps(self, status: ShapeExtend_Status) -> bool: ... -#classnotwrapped +# classnotwrapped class ShapeFix_WireSegment: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ShapeProcess.pyi b/src/SWIG_files/wrapper/ShapeProcess.pyi index d2cd0e061..7837cc6c5 100644 --- a/src/SWIG_files/wrapper/ShapeProcess.pyi +++ b/src/SWIG_files/wrapper/ShapeProcess.pyi @@ -14,13 +14,16 @@ from OCC.Core.GeomAbs import * from OCC.Core.TopAbs import * from OCC.Core.ShapeBuild import * - class shapeprocess: @staticmethod def FindOperator(name: str, op: ShapeProcess_Operator) -> bool: ... @overload @staticmethod - def Perform(context: ShapeProcess_Context, seq: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + context: ShapeProcess_Context, + seq: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... @staticmethod def RegisterOperator(name: str, op: ShapeProcess_Operator) -> bool: ... @staticmethod @@ -52,19 +55,35 @@ class ShapeProcess_Context(Standard_Transient): class ShapeProcess_OperLibrary: @staticmethod - def ApplyModifier(S: TopoDS_Shape, context: ShapeProcess_ShapeContext, M: BRepTools_Modification, map: TopTools_DataMapOfShapeShape, msg: Optional[ShapeExtend_MsgRegistrator] = 0, theMutableInput: Optional[bool] = False) -> TopoDS_Shape: ... + def ApplyModifier( + S: TopoDS_Shape, + context: ShapeProcess_ShapeContext, + M: BRepTools_Modification, + map: TopTools_DataMapOfShapeShape, + msg: Optional[ShapeExtend_MsgRegistrator] = 0, + theMutableInput: Optional[bool] = False, + ) -> TopoDS_Shape: ... @staticmethod def Init() -> None: ... class ShapeProcess_Operator(Standard_Transient): - def Perform(self, context: ShapeProcess_Context, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + context: ShapeProcess_Context, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... class ShapeProcess_ShapeContext(ShapeProcess_Context): @overload def __init__(self, file: str, seq: Optional[str] = "") -> None: ... @overload def __init__(self, S: TopoDS_Shape, file: str, seq: Optional[str] = "") -> None: ... - def AddMessage(self, S: TopoDS_Shape, msg: Message_Msg, gravity: Optional[Message_Gravity] = Message_Warning) -> None: ... + def AddMessage( + self, + S: TopoDS_Shape, + msg: Message_Msg, + gravity: Optional[Message_Gravity] = Message_Warning, + ) -> None: ... def ContinuityVal(self, param: str, def_: GeomAbs_Shape) -> GeomAbs_Shape: ... def GetContinuity(self, param: str) -> Tuple[bool, GeomAbs_Shape]: ... def GetDetalisation(self) -> TopAbs_ShapeEnum: ... @@ -77,13 +96,24 @@ class ShapeProcess_ShapeContext(ShapeProcess_Context): def Messages(self) -> ShapeExtend_MsgRegistrator: ... def PrintStatistics(self) -> None: ... @overload - def RecordModification(self, repl: TopTools_DataMapOfShapeShape, msg: Optional[ShapeExtend_MsgRegistrator] = 0) -> None: ... + def RecordModification( + self, + repl: TopTools_DataMapOfShapeShape, + msg: Optional[ShapeExtend_MsgRegistrator] = 0, + ) -> None: ... @overload - def RecordModification(self, repl: ShapeBuild_ReShape, msg: ShapeExtend_MsgRegistrator) -> None: ... + def RecordModification( + self, repl: ShapeBuild_ReShape, msg: ShapeExtend_MsgRegistrator + ) -> None: ... @overload def RecordModification(self, repl: ShapeBuild_ReShape) -> None: ... @overload - def RecordModification(self, sh: TopoDS_Shape, repl: BRepTools_Modifier, msg: Optional[ShapeExtend_MsgRegistrator] = 0) -> None: ... + def RecordModification( + self, + sh: TopoDS_Shape, + repl: BRepTools_Modifier, + msg: Optional[ShapeExtend_MsgRegistrator] = 0, + ) -> None: ... def Result(self) -> TopoDS_Shape: ... def SetDetalisation(self, level: TopAbs_ShapeEnum) -> None: ... def SetNonManifold(self, theNonManifold: bool) -> None: ... @@ -92,9 +122,12 @@ class ShapeProcess_ShapeContext(ShapeProcess_Context): class ShapeProcess_UOperator(ShapeProcess_Operator): def __init__(self, func: ShapeProcess_OperFunc) -> None: ... - def Perform(self, context: ShapeProcess_Context, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Perform( + self, + context: ShapeProcess_Context, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ShapeProcessAPI.pyi b/src/SWIG_files/wrapper/ShapeProcessAPI.pyi index 4f12dd7e8..ad9d502ff 100644 --- a/src/SWIG_files/wrapper/ShapeProcessAPI.pyi +++ b/src/SWIG_files/wrapper/ShapeProcessAPI.pyi @@ -9,16 +9,20 @@ from OCC.Core.TopoDS import * from OCC.Core.TopAbs import * from OCC.Core.Message import * - class ShapeProcessAPI_ApplySequence: def __init__(self, rscName: str, seqName: Optional[str] = "") -> None: ... def ClearMap(self) -> None: ... def Context(self) -> ShapeProcess_ShapeContext: ... def Map(self) -> TopTools_DataMapOfShapeShape: ... - def PrepareShape(self, shape: TopoDS_Shape, fillmap: Optional[bool] = False, until: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> TopoDS_Shape: ... + def PrepareShape( + self, + shape: TopoDS_Shape, + fillmap: Optional[bool] = False, + until: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> TopoDS_Shape: ... def PrintPreparationResult(self) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/ShapeUpgrade.pyi b/src/SWIG_files/wrapper/ShapeUpgrade.pyi index e9fc3ef87..0fa360fcf 100644 --- a/src/SWIG_files/wrapper/ShapeUpgrade.pyi +++ b/src/SWIG_files/wrapper/ShapeUpgrade.pyi @@ -19,14 +19,17 @@ from OCC.Core.GeomAbs import * from OCC.Core.ShapeAnalysis import * from OCC.Core.TopLoc import * - class shapeupgrade: @overload @staticmethod - def C0BSplineToSequenceOfC1BSplineCurve(BS: Geom_BSplineCurve, seqBS: TColGeom_HSequenceOfBoundedCurve) -> bool: ... + def C0BSplineToSequenceOfC1BSplineCurve( + BS: Geom_BSplineCurve, seqBS: TColGeom_HSequenceOfBoundedCurve + ) -> bool: ... @overload @staticmethod - def C0BSplineToSequenceOfC1BSplineCurve(BS: Geom2d_BSplineCurve, seqBS: TColGeom2d_HSequenceOfBoundedCurve) -> bool: ... + def C0BSplineToSequenceOfC1BSplineCurve( + BS: Geom2d_BSplineCurve, seqBS: TColGeom2d_HSequenceOfBoundedCurve + ) -> bool: ... class ShapeUpgrade_RemoveLocations(Standard_Transient): def __init__(self) -> None: ... @@ -47,7 +50,12 @@ class ShapeUpgrade_ShapeDivide: def MsgRegistrator(self) -> ShapeExtend_BasicMsgRegistrator: ... def Perform(self, newContext: Optional[bool] = True) -> bool: ... def Result(self) -> TopoDS_Shape: ... - def SendMsg(self, shape: TopoDS_Shape, message: Message_Msg, gravity: Optional[Message_Gravity] = Message_Info) -> None: ... + def SendMsg( + self, + shape: TopoDS_Shape, + message: Message_Msg, + gravity: Optional[Message_Gravity] = Message_Info, + ) -> None: ... def SetContext(self, context: ShapeBuild_ReShape) -> None: ... def SetEdgeMode(self, aEdgeMode: int) -> None: ... def SetMaxTolerance(self, maxtol: float) -> None: ... @@ -60,7 +68,9 @@ class ShapeUpgrade_ShapeDivide: class ShapeUpgrade_ShellSewing: def __init__(self) -> None: ... - def ApplySewing(self, shape: TopoDS_Shape, tol: Optional[float] = 0.0) -> TopoDS_Shape: ... + def ApplySewing( + self, shape: TopoDS_Shape, tol: Optional[float] = 0.0 + ) -> TopoDS_Shape: ... class ShapeUpgrade_SplitCurve(Standard_Transient): def __init__(self) -> None: ... @@ -79,7 +89,15 @@ class ShapeUpgrade_SplitSurface(Standard_Transient): @overload def Init(self, S: Geom_Surface) -> None: ... @overload - def Init(self, S: Geom_Surface, UFirst: float, ULast: float, VFirst: float, VLast: float, theArea: Optional[float] = 0) -> None: ... + def Init( + self, + S: Geom_Surface, + UFirst: float, + ULast: float, + VFirst: float, + VLast: float, + theArea: Optional[float] = 0, + ) -> None: ... def Perform(self, Segment: Optional[bool] = True) -> None: ... def ResSurfaces(self) -> ShapeExtend_CompositeSurface: ... def SetUSplitValues(self, UValues: TColStd_HSequenceOfReal) -> None: ... @@ -105,14 +123,26 @@ class ShapeUpgrade_UnifySameDomain(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, aShape: TopoDS_Shape, UnifyEdges: Optional[bool] = True, UnifyFaces: Optional[bool] = True, ConcatBSplines: Optional[bool] = False) -> None: ... + def __init__( + self, + aShape: TopoDS_Shape, + UnifyEdges: Optional[bool] = True, + UnifyFaces: Optional[bool] = True, + ConcatBSplines: Optional[bool] = False, + ) -> None: ... def AllowInternalEdges(self, theValue: bool) -> None: ... def Build(self) -> None: ... @overload def History(self) -> BRepTools_History: ... @overload def History(self) -> BRepTools_History: ... - def Initialize(self, aShape: TopoDS_Shape, UnifyEdges: Optional[bool] = True, UnifyFaces: Optional[bool] = True, ConcatBSplines: Optional[bool] = False) -> None: ... + def Initialize( + self, + aShape: TopoDS_Shape, + UnifyEdges: Optional[bool] = True, + UnifyFaces: Optional[bool] = True, + ConcatBSplines: Optional[bool] = False, + ) -> None: ... def KeepShape(self, theShape: TopoDS_Shape) -> None: ... def KeepShapes(self, theShapes: TopTools_MapOfShape) -> None: ... def SetAngularTolerance(self, theValue: float) -> None: ... @@ -145,8 +175,12 @@ class ShapeUpgrade_EdgeDivide(ShapeUpgrade_Tool): def Knots2d(self) -> TColStd_HSequenceOfReal: ... def Knots3d(self) -> TColStd_HSequenceOfReal: ... def SetFace(self, F: TopoDS_Face) -> None: ... - def SetSplitCurve2dTool(self, splitCurve2dTool: ShapeUpgrade_SplitCurve2d) -> None: ... - def SetSplitCurve3dTool(self, splitCurve3dTool: ShapeUpgrade_SplitCurve3d) -> None: ... + def SetSplitCurve2dTool( + self, splitCurve2dTool: ShapeUpgrade_SplitCurve2d + ) -> None: ... + def SetSplitCurve3dTool( + self, splitCurve3dTool: ShapeUpgrade_SplitCurve3d + ) -> None: ... class ShapeUpgrade_FaceDivide(ShapeUpgrade_Tool): @overload @@ -158,7 +192,9 @@ class ShapeUpgrade_FaceDivide(ShapeUpgrade_Tool): def Init(self, F: TopoDS_Face) -> None: ... def Perform(self, theArea: Optional[float] = 0) -> bool: ... def Result(self) -> TopoDS_Shape: ... - def SetSplitSurfaceTool(self, splitSurfaceTool: ShapeUpgrade_SplitSurface) -> None: ... + def SetSplitSurfaceTool( + self, splitSurfaceTool: ShapeUpgrade_SplitSurface + ) -> None: ... def SetSurfaceSegmentMode(self, Segment: bool) -> None: ... def SetWireDivideTool(self, wireDivideTool: ShapeUpgrade_WireDivide) -> None: ... def SplitCurves(self) -> bool: ... @@ -167,10 +203,16 @@ class ShapeUpgrade_FaceDivide(ShapeUpgrade_Tool): class ShapeUpgrade_FixSmallCurves(ShapeUpgrade_Tool): def __init__(self) -> None: ... - def Approx(self, Curve3d: Geom_Curve, Curve2d: Geom2d_Curve, Curve2dR: Geom2d_Curve) -> Tuple[bool, float, float]: ... + def Approx( + self, Curve3d: Geom_Curve, Curve2d: Geom2d_Curve, Curve2dR: Geom2d_Curve + ) -> Tuple[bool, float, float]: ... def Init(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face) -> None: ... - def SetSplitCurve2dTool(self, splitCurve2dTool: ShapeUpgrade_SplitCurve2d) -> None: ... - def SetSplitCurve3dTool(self, splitCurve3dTool: ShapeUpgrade_SplitCurve3d) -> None: ... + def SetSplitCurve2dTool( + self, splitCurve2dTool: ShapeUpgrade_SplitCurve2d + ) -> None: ... + def SetSplitCurve3dTool( + self, splitCurve3dTool: ShapeUpgrade_SplitCurve3d + ) -> None: ... def Status(self, status: ShapeExtend_Status) -> bool: ... class ShapeUpgrade_RemoveInternalWires(ShapeUpgrade_Tool): @@ -253,9 +295,15 @@ class ShapeUpgrade_ShapeDivideContinuity(ShapeUpgrade_ShapeDivide): def __init__(self) -> None: ... @overload def __init__(self, S: TopoDS_Shape) -> None: ... - def SetBoundaryCriterion(self, Criterion: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - def SetPCurveCriterion(self, Criterion: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... - def SetSurfaceCriterion(self, Criterion: Optional[GeomAbs_Shape] = GeomAbs_C1) -> None: ... + def SetBoundaryCriterion( + self, Criterion: Optional[GeomAbs_Shape] = GeomAbs_C1 + ) -> None: ... + def SetPCurveCriterion( + self, Criterion: Optional[GeomAbs_Shape] = GeomAbs_C1 + ) -> None: ... + def SetSurfaceCriterion( + self, Criterion: Optional[GeomAbs_Shape] = GeomAbs_C1 + ) -> None: ... def SetTolerance(self, Tol: float) -> None: ... def SetTolerance2d(self, Tol: float) -> None: ... @@ -314,14 +362,22 @@ class ShapeUpgrade_WireDivide(ShapeUpgrade_Tool): def SetEdgeDivideTool(self, edgeDivideTool: ShapeUpgrade_EdgeDivide) -> None: ... def SetEdgeMode(self, EdgeMode: int) -> None: ... def SetFace(self, F: TopoDS_Face) -> None: ... - def SetFixSmallCurveTool(self, FixSmallCurvesTool: ShapeUpgrade_FixSmallCurves) -> None: ... - def SetSplitCurve2dTool(self, splitCurve2dTool: ShapeUpgrade_SplitCurve2d) -> None: ... - def SetSplitCurve3dTool(self, splitCurve3dTool: ShapeUpgrade_SplitCurve3d) -> None: ... + def SetFixSmallCurveTool( + self, FixSmallCurvesTool: ShapeUpgrade_FixSmallCurves + ) -> None: ... + def SetSplitCurve2dTool( + self, splitCurve2dTool: ShapeUpgrade_SplitCurve2d + ) -> None: ... + def SetSplitCurve3dTool( + self, splitCurve3dTool: ShapeUpgrade_SplitCurve3d + ) -> None: ... @overload def SetSurface(self, S: Geom_Surface) -> None: ... @overload def SetSurface(self, S: Geom_Surface, L: TopLoc_Location) -> None: ... - def SetTransferParamTool(self, TransferParam: ShapeAnalysis_TransferParameters) -> None: ... + def SetTransferParamTool( + self, TransferParam: ShapeAnalysis_TransferParameters + ) -> None: ... def Status(self, status: ShapeExtend_Status) -> bool: ... def Wire(self) -> TopoDS_Wire: ... @@ -371,7 +427,9 @@ class ShapeUpgrade_FaceDivideArea(ShapeUpgrade_FaceDivide): class ShapeUpgrade_FixSmallBezierCurves(ShapeUpgrade_FixSmallCurves): def __init__(self) -> None: ... - def Approx(self, Curve3d: Geom_Curve, Curve2d: Geom2d_Curve, Curve2dR: Geom2d_Curve) -> Tuple[bool, float, float]: ... + def Approx( + self, Curve3d: Geom_Curve, Curve2d: Geom2d_Curve, Curve2dR: Geom2d_Curve + ) -> Tuple[bool, float, float]: ... class ShapeUpgrade_SplitCurve2dContinuity(ShapeUpgrade_SplitCurve2d): def __init__(self) -> None: ... @@ -389,4 +447,3 @@ class ShapeUpgrade_SplitCurve3dContinuity(ShapeUpgrade_SplitCurve3d): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Standard.pyi b/src/SWIG_files/wrapper/Standard.pyi index 46f4e9b15..f9f2d5ba7 100644 --- a/src/SWIG_files/wrapper/Standard.pyi +++ b/src/SWIG_files/wrapper/Standard.pyi @@ -61,9 +61,15 @@ class standard: @staticmethod def Reallocate(theStorage: None, theNewSize: int) -> None: ... @staticmethod - def StackTrace(theBuffer: str, theBufferSize: int, theNbTraces: int, theContext: Optional[None] = None, theNbTopSkip: Optional[int] = 0) -> bool: ... + def StackTrace( + theBuffer: str, + theBufferSize: int, + theNbTraces: int, + theContext: Optional[None] = None, + theNbTopSkip: Optional[int] = 0, + ) -> bool: ... -class Standard_ArrayStreamBuffer(): +class Standard_ArrayStreamBuffer: pass class Standard_CStringHasher: @@ -99,7 +105,19 @@ class Standard_GUID: @overload def __init__(self, aGuid: Standard_ExtString) -> None: ... @overload - def __init__(self, a32b: int, a16b1: Standard_ExtCharacter, a16b2: Standard_ExtCharacter, a16b3: Standard_ExtCharacter, a8b1: str, a8b2: str, a8b3: str, a8b4: str, a8b5: str, a8b6: str) -> None: ... + def __init__( + self, + a32b: int, + a16b1: Standard_ExtCharacter, + a16b2: Standard_ExtCharacter, + a16b3: Standard_ExtCharacter, + a8b1: str, + a8b2: str, + a8b3: str, + a8b4: str, + a8b5: str, + a8b6: str, + ) -> None: ... @overload def __init__(self, aGuid: Standard_UUID) -> None: ... @overload @@ -186,7 +204,14 @@ class Standard_Failure(Standard_Transient): def SetStackString(self, theStack: str) -> None: ... class Standard_MMgrOpt(Standard_MMgrRoot): - def __init__(self, aClear: Optional[bool] = True, aMMap: Optional[bool] = True, aCellSize: Optional[int] = 200, aNbPages: Optional[int] = 10000, aThreshold: Optional[int] = 40000) -> None: ... + def __init__( + self, + aClear: Optional[bool] = True, + aMMap: Optional[bool] = True, + aCellSize: Optional[int] = 200, + aNbPages: Optional[int] = 10000, + aThreshold: Optional[int] = 40000, + ) -> None: ... def Allocate(self, aSize: int) -> None: ... def Free(self, thePtr: None) -> None: ... def Purge(self, isDestroyed: bool) -> int: ... @@ -222,28 +247,27 @@ class Standard_Type(Standard_Transient): def SubType(self, theOther: str) -> bool: ... def SystemName(self) -> str: ... -#classnotwrapped +# classnotwrapped class Standard_AncestorIterator: ... -#classnotwrapped +# classnotwrapped class Standard_Static_Assert: ... -#classnotwrapped +# classnotwrapped class Standard_CLocaleSentry: ... -#classnotwrapped +# classnotwrapped class Standard_Mutex: ... -#classnotwrapped +# classnotwrapped class Standard_ReadLineBuffer: ... -#classnotwrapped +# classnotwrapped class Standard_ProgramError: ... -#classnotwrapped +# classnotwrapped class Standard_ReadBuffer: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StdFail.pyi b/src/SWIG_files/wrapper/StdFail.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/StdFail.pyi +++ b/src/SWIG_files/wrapper/StdFail.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StdPrs.pyi b/src/SWIG_files/wrapper/StdPrs.pyi index b97e41fb3..fa875f0b4 100644 --- a/src/SWIG_files/wrapper/StdPrs.pyi +++ b/src/SWIG_files/wrapper/StdPrs.pyi @@ -42,20 +42,31 @@ class StdPrs_BRepFont(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, theFontPath: NCollection_String, theSize: float, theFaceId: Optional[int] = 0) -> None: ... + def __init__( + self, + theFontPath: NCollection_String, + theSize: float, + theFaceId: Optional[int] = 0, + ) -> None: ... @overload def AdvanceX(self, theUCharNext: Standard_Utf32Char) -> float: ... @overload - def AdvanceX(self, theUChar: Standard_Utf32Char, theUCharNext: Standard_Utf32Char) -> float: ... + def AdvanceX( + self, theUChar: Standard_Utf32Char, theUCharNext: Standard_Utf32Char + ) -> float: ... @overload def AdvanceY(self, theUCharNext: Standard_Utf32Char) -> float: ... @overload - def AdvanceY(self, theUChar: Standard_Utf32Char, theUCharNext: Standard_Utf32Char) -> float: ... + def AdvanceY( + self, theUChar: Standard_Utf32Char, theUCharNext: Standard_Utf32Char + ) -> float: ... def Ascender(self) -> float: ... def Descender(self) -> float: ... def FTFont(self) -> False: ... @overload - def Init(self, theFontPath: NCollection_String, theSize: float, theFaceId: int) -> bool: ... + def Init( + self, theFontPath: NCollection_String, theSize: float, theFaceId: int + ) -> bool: ... def LineSpacing(self) -> float: ... def Mutex(self) -> Standard_Mutex: ... def PointSize(self) -> float: ... @@ -67,39 +78,115 @@ class StdPrs_BRepFont(Standard_Transient): class StdPrs_BRepTextBuilder: @overload - def Perform(self, theFont: StdPrs_BRepFont, theString: NCollection_String, thePenLoc: Optional[gp_Ax3] = gp_Ax3(), theHAlign: Optional[Graphic3d_HorizontalTextAlignment] = Graphic3d_HTA_LEFT, theVAlign: Optional[Graphic3d_VerticalTextAlignment] = Graphic3d_VTA_BOTTOM) -> TopoDS_Shape: ... + def Perform( + self, + theFont: StdPrs_BRepFont, + theString: NCollection_String, + thePenLoc: Optional[gp_Ax3] = gp_Ax3(), + theHAlign: Optional[Graphic3d_HorizontalTextAlignment] = Graphic3d_HTA_LEFT, + theVAlign: Optional[Graphic3d_VerticalTextAlignment] = Graphic3d_VTA_BOTTOM, + ) -> TopoDS_Shape: ... class StdPrs_Curve(Prs3d_Root): @overload @staticmethod - def Add(aPresentation: Prs3d_Presentation, aCurve: Adaptor3d_Curve, aDrawer: Prs3d_Drawer, drawCurve: Optional[bool] = True) -> None: ... - @overload - @staticmethod - def Add(aPresentation: Prs3d_Presentation, aCurve: Adaptor3d_Curve, U1: float, U2: float, aDrawer: Prs3d_Drawer, drawCurve: Optional[bool] = True) -> None: ... - @overload - @staticmethod - def Add(aPresentation: Prs3d_Presentation, aCurve: Adaptor3d_Curve, aDrawer: Prs3d_Drawer, Points: TColgp_SequenceOfPnt, drawCurve: Optional[bool] = True) -> None: ... - @overload - @staticmethod - def Add(aPresentation: Prs3d_Presentation, aCurve: Adaptor3d_Curve, U1: float, U2: float, Points: TColgp_SequenceOfPnt, aNbPoints: Optional[int] = 30, drawCurve: Optional[bool] = True) -> None: ... - @overload - @staticmethod - def Match(X: float, Y: float, Z: float, aDistance: float, aCurve: Adaptor3d_Curve, aDrawer: Prs3d_Drawer) -> bool: ... - @overload - @staticmethod - def Match(X: float, Y: float, Z: float, aDistance: float, aCurve: Adaptor3d_Curve, aDeflection: float, aLimit: float, aNbPoints: int) -> bool: ... - @overload - @staticmethod - def Match(X: float, Y: float, Z: float, aDistance: float, aCurve: Adaptor3d_Curve, U1: float, U2: float, aDrawer: Prs3d_Drawer) -> bool: ... - @overload - @staticmethod - def Match(X: float, Y: float, Z: float, aDistance: float, aCurve: Adaptor3d_Curve, U1: float, U2: float, aDeflection: float, aNbPoints: int) -> bool: ... + def Add( + aPresentation: Prs3d_Presentation, + aCurve: Adaptor3d_Curve, + aDrawer: Prs3d_Drawer, + drawCurve: Optional[bool] = True, + ) -> None: ... + @overload + @staticmethod + def Add( + aPresentation: Prs3d_Presentation, + aCurve: Adaptor3d_Curve, + U1: float, + U2: float, + aDrawer: Prs3d_Drawer, + drawCurve: Optional[bool] = True, + ) -> None: ... + @overload + @staticmethod + def Add( + aPresentation: Prs3d_Presentation, + aCurve: Adaptor3d_Curve, + aDrawer: Prs3d_Drawer, + Points: TColgp_SequenceOfPnt, + drawCurve: Optional[bool] = True, + ) -> None: ... + @overload + @staticmethod + def Add( + aPresentation: Prs3d_Presentation, + aCurve: Adaptor3d_Curve, + U1: float, + U2: float, + Points: TColgp_SequenceOfPnt, + aNbPoints: Optional[int] = 30, + drawCurve: Optional[bool] = True, + ) -> None: ... + @overload + @staticmethod + def Match( + X: float, + Y: float, + Z: float, + aDistance: float, + aCurve: Adaptor3d_Curve, + aDrawer: Prs3d_Drawer, + ) -> bool: ... + @overload + @staticmethod + def Match( + X: float, + Y: float, + Z: float, + aDistance: float, + aCurve: Adaptor3d_Curve, + aDeflection: float, + aLimit: float, + aNbPoints: int, + ) -> bool: ... + @overload + @staticmethod + def Match( + X: float, + Y: float, + Z: float, + aDistance: float, + aCurve: Adaptor3d_Curve, + U1: float, + U2: float, + aDrawer: Prs3d_Drawer, + ) -> bool: ... + @overload + @staticmethod + def Match( + X: float, + Y: float, + Z: float, + aDistance: float, + aCurve: Adaptor3d_Curve, + U1: float, + U2: float, + aDeflection: float, + aNbPoints: int, + ) -> bool: ... class StdPrs_HLRShapeI(Standard_Transient): - def ComputeHLR(self, thePrs: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer, theProjector: Graphic3d_Camera) -> None: ... + def ComputeHLR( + self, + thePrs: Prs3d_Presentation, + theShape: TopoDS_Shape, + theDrawer: Prs3d_Drawer, + theProjector: Graphic3d_Camera, + ) -> None: ... class StdPrs_HLRToolShape: - def __init__(self, TheShape: TopoDS_Shape, TheProjector: HLRAlgo_Projector) -> None: ... + def __init__( + self, TheShape: TopoDS_Shape, TheProjector: HLRAlgo_Projector + ) -> None: ... def Hidden(self, TheEdge: BRepAdaptor_Curve) -> Tuple[float, float]: ... def InitHidden(self, EdgeNumber: int) -> None: ... def InitVisible(self, EdgeNumber: int) -> None: ... @@ -113,73 +200,195 @@ class StdPrs_HLRToolShape: class StdPrs_Isolines(Prs3d_Root): @overload @staticmethod - def Add(thePresentation: Prs3d_Presentation, theFace: TopoDS_Face, theDrawer: Prs3d_Drawer, theDeflection: float) -> None: ... - @overload - @staticmethod - def Add(theFace: TopoDS_Face, theDrawer: Prs3d_Drawer, theDeflection: float, theUPolylines: Prs3d_NListOfSequenceOfPnt, theVPolylines: Prs3d_NListOfSequenceOfPnt) -> None: ... - @overload - @staticmethod - def AddOnSurface(thePresentation: Prs3d_Presentation, theFace: TopoDS_Face, theDrawer: Prs3d_Drawer, theDeflection: float) -> None: ... - @overload - @staticmethod - def AddOnSurface(theFace: TopoDS_Face, theDrawer: Prs3d_Drawer, theDeflection: float, theUPolylines: Prs3d_NListOfSequenceOfPnt, theVPolylines: Prs3d_NListOfSequenceOfPnt) -> None: ... - @overload - @staticmethod - def AddOnSurface(thePresentation: Prs3d_Presentation, theSurface: BRepAdaptor_Surface, theDrawer: Prs3d_Drawer, theDeflection: float, theUIsoParams: TColStd_SequenceOfReal, theVIsoParams: TColStd_SequenceOfReal) -> None: ... - @overload - @staticmethod - def AddOnTriangulation(thePresentation: Prs3d_Presentation, theFace: TopoDS_Face, theDrawer: Prs3d_Drawer) -> None: ... - @overload - @staticmethod - def AddOnTriangulation(theFace: TopoDS_Face, theDrawer: Prs3d_Drawer, theUPolylines: Prs3d_NListOfSequenceOfPnt, theVPolylines: Prs3d_NListOfSequenceOfPnt) -> None: ... - @overload - @staticmethod - def AddOnTriangulation(thePresentation: Prs3d_Presentation, theTriangulation: Poly_Triangulation, theSurface: Geom_Surface, theLocation: TopLoc_Location, theDrawer: Prs3d_Drawer, theUIsoParams: TColStd_SequenceOfReal, theVIsoParams: TColStd_SequenceOfReal) -> None: ... - @staticmethod - def UVIsoParameters(theFace: TopoDS_Face, theNbIsoU: int, theNbIsoV: int, theUVLimit: float, theUIsoParams: TColStd_SequenceOfReal, theVIsoParams: TColStd_SequenceOfReal) -> Tuple[float, float, float, float]: ... + def Add( + thePresentation: Prs3d_Presentation, + theFace: TopoDS_Face, + theDrawer: Prs3d_Drawer, + theDeflection: float, + ) -> None: ... + @overload + @staticmethod + def Add( + theFace: TopoDS_Face, + theDrawer: Prs3d_Drawer, + theDeflection: float, + theUPolylines: Prs3d_NListOfSequenceOfPnt, + theVPolylines: Prs3d_NListOfSequenceOfPnt, + ) -> None: ... + @overload + @staticmethod + def AddOnSurface( + thePresentation: Prs3d_Presentation, + theFace: TopoDS_Face, + theDrawer: Prs3d_Drawer, + theDeflection: float, + ) -> None: ... + @overload + @staticmethod + def AddOnSurface( + theFace: TopoDS_Face, + theDrawer: Prs3d_Drawer, + theDeflection: float, + theUPolylines: Prs3d_NListOfSequenceOfPnt, + theVPolylines: Prs3d_NListOfSequenceOfPnt, + ) -> None: ... + @overload + @staticmethod + def AddOnSurface( + thePresentation: Prs3d_Presentation, + theSurface: BRepAdaptor_Surface, + theDrawer: Prs3d_Drawer, + theDeflection: float, + theUIsoParams: TColStd_SequenceOfReal, + theVIsoParams: TColStd_SequenceOfReal, + ) -> None: ... + @overload + @staticmethod + def AddOnTriangulation( + thePresentation: Prs3d_Presentation, + theFace: TopoDS_Face, + theDrawer: Prs3d_Drawer, + ) -> None: ... + @overload + @staticmethod + def AddOnTriangulation( + theFace: TopoDS_Face, + theDrawer: Prs3d_Drawer, + theUPolylines: Prs3d_NListOfSequenceOfPnt, + theVPolylines: Prs3d_NListOfSequenceOfPnt, + ) -> None: ... + @overload + @staticmethod + def AddOnTriangulation( + thePresentation: Prs3d_Presentation, + theTriangulation: Poly_Triangulation, + theSurface: Geom_Surface, + theLocation: TopLoc_Location, + theDrawer: Prs3d_Drawer, + theUIsoParams: TColStd_SequenceOfReal, + theVIsoParams: TColStd_SequenceOfReal, + ) -> None: ... + @staticmethod + def UVIsoParameters( + theFace: TopoDS_Face, + theNbIsoU: int, + theNbIsoV: int, + theUVLimit: float, + theUIsoParams: TColStd_SequenceOfReal, + theVIsoParams: TColStd_SequenceOfReal, + ) -> Tuple[float, float, float, float]: ... class StdPrs_Plane(Prs3d_Root): @staticmethod - def Add(aPresentation: Prs3d_Presentation, aPlane: Adaptor3d_Surface, aDrawer: Prs3d_Drawer) -> None: ... - @staticmethod - def Match(X: float, Y: float, Z: float, aDistance: float, aPlane: Adaptor3d_Surface, aDrawer: Prs3d_Drawer) -> bool: ... + def Add( + aPresentation: Prs3d_Presentation, + aPlane: Adaptor3d_Surface, + aDrawer: Prs3d_Drawer, + ) -> None: ... + @staticmethod + def Match( + X: float, + Y: float, + Z: float, + aDistance: float, + aPlane: Adaptor3d_Surface, + aDrawer: Prs3d_Drawer, + ) -> bool: ... class StdPrs_PoleCurve(Prs3d_Root): @staticmethod - def Add(aPresentation: Prs3d_Presentation, aCurve: Adaptor3d_Curve, aDrawer: Prs3d_Drawer) -> None: ... - @staticmethod - def Match(X: float, Y: float, Z: float, aDistance: float, aCurve: Adaptor3d_Curve, aDrawer: Prs3d_Drawer) -> bool: ... - @staticmethod - def Pick(X: float, Y: float, Z: float, aDistance: float, aCurve: Adaptor3d_Curve, aDrawer: Prs3d_Drawer) -> int: ... + def Add( + aPresentation: Prs3d_Presentation, + aCurve: Adaptor3d_Curve, + aDrawer: Prs3d_Drawer, + ) -> None: ... + @staticmethod + def Match( + X: float, + Y: float, + Z: float, + aDistance: float, + aCurve: Adaptor3d_Curve, + aDrawer: Prs3d_Drawer, + ) -> bool: ... + @staticmethod + def Pick( + X: float, + Y: float, + Z: float, + aDistance: float, + aCurve: Adaptor3d_Curve, + aDrawer: Prs3d_Drawer, + ) -> int: ... class StdPrs_ShadedShape(Prs3d_Root): @overload @staticmethod - def Add(thePresentation: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer, theVolume: Optional[StdPrs_Volume] = StdPrs_Volume_Autodetection, theGroup: Optional[Graphic3d_Group] = None) -> None: ... - @overload - @staticmethod - def Add(thePresentation: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer, theHasTexels: bool, theUVOrigin: gp_Pnt2d, theUVRepeat: gp_Pnt2d, theUVScale: gp_Pnt2d, theVolume: Optional[StdPrs_Volume] = StdPrs_Volume_Autodetection, theGroup: Optional[Graphic3d_Group] = None) -> None: ... - @staticmethod - def AddWireframeForFacesWithoutTriangles(thePrs: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer) -> None: ... - @staticmethod - def AddWireframeForFreeElements(thePrs: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer) -> None: ... - @staticmethod - def ExploreSolids(theShape: TopoDS_Shape, theBuilder: BRep_Builder, theClosed: TopoDS_Compound, theOpened: TopoDS_Compound, theIgnore1DSubShape: bool) -> None: ... - @staticmethod - def FillFaceBoundaries(theShape: TopoDS_Shape, theUpperContinuity: Optional[GeomAbs_Shape] = GeomAbs_CN) -> Graphic3d_ArrayOfSegments: ... + def Add( + thePresentation: Prs3d_Presentation, + theShape: TopoDS_Shape, + theDrawer: Prs3d_Drawer, + theVolume: Optional[StdPrs_Volume] = StdPrs_Volume_Autodetection, + theGroup: Optional[Graphic3d_Group] = None, + ) -> None: ... + @overload + @staticmethod + def Add( + thePresentation: Prs3d_Presentation, + theShape: TopoDS_Shape, + theDrawer: Prs3d_Drawer, + theHasTexels: bool, + theUVOrigin: gp_Pnt2d, + theUVRepeat: gp_Pnt2d, + theUVScale: gp_Pnt2d, + theVolume: Optional[StdPrs_Volume] = StdPrs_Volume_Autodetection, + theGroup: Optional[Graphic3d_Group] = None, + ) -> None: ... + @staticmethod + def AddWireframeForFacesWithoutTriangles( + thePrs: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer + ) -> None: ... + @staticmethod + def AddWireframeForFreeElements( + thePrs: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer + ) -> None: ... + @staticmethod + def ExploreSolids( + theShape: TopoDS_Shape, + theBuilder: BRep_Builder, + theClosed: TopoDS_Compound, + theOpened: TopoDS_Compound, + theIgnore1DSubShape: bool, + ) -> None: ... + @staticmethod + def FillFaceBoundaries( + theShape: TopoDS_Shape, theUpperContinuity: Optional[GeomAbs_Shape] = GeomAbs_CN + ) -> Graphic3d_ArrayOfSegments: ... @overload @staticmethod def FillTriangles(theShape: TopoDS_Shape) -> Graphic3d_ArrayOfTriangles: ... @overload @staticmethod - def FillTriangles(theShape: TopoDS_Shape, theHasTexels: bool, theUVOrigin: gp_Pnt2d, theUVRepeat: gp_Pnt2d, theUVScale: gp_Pnt2d) -> Graphic3d_ArrayOfTriangles: ... + def FillTriangles( + theShape: TopoDS_Shape, + theHasTexels: bool, + theUVOrigin: gp_Pnt2d, + theUVRepeat: gp_Pnt2d, + theUVScale: gp_Pnt2d, + ) -> Graphic3d_ArrayOfTriangles: ... class StdPrs_ShadedSurface(Prs3d_Root): @staticmethod - def Add(aPresentation: Prs3d_Presentation, aSurface: Adaptor3d_Surface, aDrawer: Prs3d_Drawer) -> None: ... + def Add( + aPresentation: Prs3d_Presentation, + aSurface: Adaptor3d_Surface, + aDrawer: Prs3d_Drawer, + ) -> None: ... class StdPrs_ShapeTool: - def __init__(self, theShape: TopoDS_Shape, theAllVertices: Optional[bool] = False) -> None: ... + def __init__( + self, theShape: TopoDS_Shape, theAllVertices: Optional[bool] = False + ) -> None: ... def CurrentTriangulation(self, l: TopLoc_Location) -> Poly_Triangulation: ... def CurveBound(self) -> Bnd_Box: ... def FaceBound(self) -> Bnd_Box: ... @@ -205,7 +414,12 @@ class StdPrs_ShapeTool: def NextFace(self) -> None: ... def NextVertex(self) -> None: ... def Polygon3D(self, l: TopLoc_Location) -> Poly_Polygon3D: ... - def PolygonOnTriangulation(self, Indices: Poly_PolygonOnTriangulation, T: Poly_Triangulation, l: TopLoc_Location) -> None: ... + def PolygonOnTriangulation( + self, + Indices: Poly_PolygonOnTriangulation, + T: Poly_Triangulation, + l: TopLoc_Location, + ) -> None: ... class StdPrs_ToolPoint: @staticmethod @@ -227,7 +441,9 @@ class StdPrs_ToolRFace: class StdPrs_ToolTriangulatedShape(BRepLib_ToolTriangulatedShape): @staticmethod - def ClearOnOwnDeflectionChange(theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer, theToResetCoeff: bool) -> None: ... + def ClearOnOwnDeflectionChange( + theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer, theToResetCoeff: bool + ) -> None: ... @staticmethod def GetDeflection(theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer) -> float: ... @staticmethod @@ -246,83 +462,230 @@ class StdPrs_ToolVertex: class StdPrs_WFDeflectionRestrictedFace(Prs3d_Root): @overload @staticmethod - def Add(aPresentation: Prs3d_Presentation, aFace: BRepAdaptor_Surface, aDrawer: Prs3d_Drawer) -> None: ... - @overload - @staticmethod - def Add(aPresentation: Prs3d_Presentation, aFace: BRepAdaptor_Surface, DrawUIso: bool, DrawVIso: bool, Deflection: float, NBUiso: int, NBViso: int, aDrawer: Prs3d_Drawer, Curves: Prs3d_NListOfSequenceOfPnt) -> None: ... - @staticmethod - def AddUIso(aPresentation: Prs3d_Presentation, aFace: BRepAdaptor_Surface, aDrawer: Prs3d_Drawer) -> None: ... - @staticmethod - def AddVIso(aPresentation: Prs3d_Presentation, aFace: BRepAdaptor_Surface, aDrawer: Prs3d_Drawer) -> None: ... - @overload - @staticmethod - def Match(X: float, Y: float, Z: float, aDistance: float, aFace: BRepAdaptor_Surface, aDrawer: Prs3d_Drawer) -> bool: ... - @overload - @staticmethod - def Match(X: float, Y: float, Z: float, aDistance: float, aFace: BRepAdaptor_Surface, aDrawer: Prs3d_Drawer, DrawUIso: bool, DrawVIso: bool, aDeflection: float, NBUiso: int, NBViso: int) -> bool: ... - @staticmethod - def MatchUIso(X: float, Y: float, Z: float, aDistance: float, aFace: BRepAdaptor_Surface, aDrawer: Prs3d_Drawer) -> bool: ... - @staticmethod - def MatchVIso(X: float, Y: float, Z: float, aDistance: float, aFace: BRepAdaptor_Surface, aDrawer: Prs3d_Drawer) -> bool: ... + def Add( + aPresentation: Prs3d_Presentation, + aFace: BRepAdaptor_Surface, + aDrawer: Prs3d_Drawer, + ) -> None: ... + @overload + @staticmethod + def Add( + aPresentation: Prs3d_Presentation, + aFace: BRepAdaptor_Surface, + DrawUIso: bool, + DrawVIso: bool, + Deflection: float, + NBUiso: int, + NBViso: int, + aDrawer: Prs3d_Drawer, + Curves: Prs3d_NListOfSequenceOfPnt, + ) -> None: ... + @staticmethod + def AddUIso( + aPresentation: Prs3d_Presentation, + aFace: BRepAdaptor_Surface, + aDrawer: Prs3d_Drawer, + ) -> None: ... + @staticmethod + def AddVIso( + aPresentation: Prs3d_Presentation, + aFace: BRepAdaptor_Surface, + aDrawer: Prs3d_Drawer, + ) -> None: ... + @overload + @staticmethod + def Match( + X: float, + Y: float, + Z: float, + aDistance: float, + aFace: BRepAdaptor_Surface, + aDrawer: Prs3d_Drawer, + ) -> bool: ... + @overload + @staticmethod + def Match( + X: float, + Y: float, + Z: float, + aDistance: float, + aFace: BRepAdaptor_Surface, + aDrawer: Prs3d_Drawer, + DrawUIso: bool, + DrawVIso: bool, + aDeflection: float, + NBUiso: int, + NBViso: int, + ) -> bool: ... + @staticmethod + def MatchUIso( + X: float, + Y: float, + Z: float, + aDistance: float, + aFace: BRepAdaptor_Surface, + aDrawer: Prs3d_Drawer, + ) -> bool: ... + @staticmethod + def MatchVIso( + X: float, + Y: float, + Z: float, + aDistance: float, + aFace: BRepAdaptor_Surface, + aDrawer: Prs3d_Drawer, + ) -> bool: ... class StdPrs_WFDeflectionSurface(Prs3d_Root): @staticmethod - def Add(aPresentation: Prs3d_Presentation, aSurface: Adaptor3d_Surface, aDrawer: Prs3d_Drawer) -> None: ... + def Add( + aPresentation: Prs3d_Presentation, + aSurface: Adaptor3d_Surface, + aDrawer: Prs3d_Drawer, + ) -> None: ... class StdPrs_WFPoleSurface(Prs3d_Root): @staticmethod - def Add(aPresentation: Prs3d_Presentation, aSurface: Adaptor3d_Surface, aDrawer: Prs3d_Drawer) -> None: ... + def Add( + aPresentation: Prs3d_Presentation, + aSurface: Adaptor3d_Surface, + aDrawer: Prs3d_Drawer, + ) -> None: ... class StdPrs_WFRestrictedFace(Prs3d_Root): @overload @staticmethod - def Add(thePresentation: Prs3d_Presentation, theFace: BRepAdaptor_Surface, theDrawUIso: bool, theDrawVIso: bool, theNbUIso: int, theNbVIso: int, theDrawer: Prs3d_Drawer, theCurves: Prs3d_NListOfSequenceOfPnt) -> None: ... - @overload - @staticmethod - def Add(thePresentation: Prs3d_Presentation, theFace: BRepAdaptor_Surface, theDrawer: Prs3d_Drawer) -> None: ... - @staticmethod - def AddUIso(thePresentation: Prs3d_Presentation, theFace: BRepAdaptor_Surface, theDrawer: Prs3d_Drawer) -> None: ... - @staticmethod - def AddVIso(thePresentation: Prs3d_Presentation, theFace: BRepAdaptor_Surface, theDrawer: Prs3d_Drawer) -> None: ... - @overload - @staticmethod - def Match(theX: float, theY: float, theZ: float, theDistance: float, theFace: BRepAdaptor_Surface, theDrawUIso: bool, theDrawVIso: bool, theDeflection: float, theNbUIso: int, theNbVIso: int, theDrawer: Prs3d_Drawer) -> bool: ... - @overload - @staticmethod - def Match(theX: float, theY: float, theZ: float, theDistance: float, theFace: BRepAdaptor_Surface, theDrawer: Prs3d_Drawer) -> bool: ... - @staticmethod - def MatchUIso(theX: float, theY: float, theZ: float, theDistance: float, theFace: BRepAdaptor_Surface, theDrawer: Prs3d_Drawer) -> bool: ... - @staticmethod - def MatchVIso(theX: float, theY: float, theZ: float, theDistance: float, theFace: BRepAdaptor_Surface, theDrawer: Prs3d_Drawer) -> bool: ... + def Add( + thePresentation: Prs3d_Presentation, + theFace: BRepAdaptor_Surface, + theDrawUIso: bool, + theDrawVIso: bool, + theNbUIso: int, + theNbVIso: int, + theDrawer: Prs3d_Drawer, + theCurves: Prs3d_NListOfSequenceOfPnt, + ) -> None: ... + @overload + @staticmethod + def Add( + thePresentation: Prs3d_Presentation, + theFace: BRepAdaptor_Surface, + theDrawer: Prs3d_Drawer, + ) -> None: ... + @staticmethod + def AddUIso( + thePresentation: Prs3d_Presentation, + theFace: BRepAdaptor_Surface, + theDrawer: Prs3d_Drawer, + ) -> None: ... + @staticmethod + def AddVIso( + thePresentation: Prs3d_Presentation, + theFace: BRepAdaptor_Surface, + theDrawer: Prs3d_Drawer, + ) -> None: ... + @overload + @staticmethod + def Match( + theX: float, + theY: float, + theZ: float, + theDistance: float, + theFace: BRepAdaptor_Surface, + theDrawUIso: bool, + theDrawVIso: bool, + theDeflection: float, + theNbUIso: int, + theNbVIso: int, + theDrawer: Prs3d_Drawer, + ) -> bool: ... + @overload + @staticmethod + def Match( + theX: float, + theY: float, + theZ: float, + theDistance: float, + theFace: BRepAdaptor_Surface, + theDrawer: Prs3d_Drawer, + ) -> bool: ... + @staticmethod + def MatchUIso( + theX: float, + theY: float, + theZ: float, + theDistance: float, + theFace: BRepAdaptor_Surface, + theDrawer: Prs3d_Drawer, + ) -> bool: ... + @staticmethod + def MatchVIso( + theX: float, + theY: float, + theZ: float, + theDistance: float, + theFace: BRepAdaptor_Surface, + theDrawer: Prs3d_Drawer, + ) -> bool: ... class StdPrs_WFShape(Prs3d_Root): @staticmethod - def Add(thePresentation: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer, theIsParallel: Optional[bool] = False) -> None: ... + def Add( + thePresentation: Prs3d_Presentation, + theShape: TopoDS_Shape, + theDrawer: Prs3d_Drawer, + theIsParallel: Optional[bool] = False, + ) -> None: ... @staticmethod - def AddAllEdges(theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer) -> Graphic3d_ArrayOfPrimitives: ... + def AddAllEdges( + theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer + ) -> Graphic3d_ArrayOfPrimitives: ... @overload @staticmethod - def AddEdgesOnTriangulation(theShape: TopoDS_Shape, theToExcludeGeometric: Optional[bool] = True) -> Graphic3d_ArrayOfPrimitives: ... + def AddEdgesOnTriangulation( + theShape: TopoDS_Shape, theToExcludeGeometric: Optional[bool] = True + ) -> Graphic3d_ArrayOfPrimitives: ... @overload @staticmethod - def AddEdgesOnTriangulation(theSegments: TColgp_SequenceOfPnt, theShape: TopoDS_Shape, theToExcludeGeometric: Optional[bool] = True) -> None: ... + def AddEdgesOnTriangulation( + theSegments: TColgp_SequenceOfPnt, + theShape: TopoDS_Shape, + theToExcludeGeometric: Optional[bool] = True, + ) -> None: ... @staticmethod - def AddVertexes(theShape: TopoDS_Shape, theVertexMode: Prs3d_VertexDrawMode) -> Graphic3d_ArrayOfPoints: ... + def AddVertexes( + theShape: TopoDS_Shape, theVertexMode: Prs3d_VertexDrawMode + ) -> Graphic3d_ArrayOfPoints: ... class StdPrs_WFSurface(Prs3d_Root): @staticmethod - def Add(aPresentation: Prs3d_Presentation, aSurface: Adaptor3d_Surface, aDrawer: Prs3d_Drawer) -> None: ... + def Add( + aPresentation: Prs3d_Presentation, + aSurface: Adaptor3d_Surface, + aDrawer: Prs3d_Drawer, + ) -> None: ... class StdPrs_HLRPolyShape(StdPrs_HLRShapeI): - def ComputeHLR(self, thePrs: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer, theProjector: Graphic3d_Camera) -> None: ... + def ComputeHLR( + self, + thePrs: Prs3d_Presentation, + theShape: TopoDS_Shape, + theDrawer: Prs3d_Drawer, + theProjector: Graphic3d_Camera, + ) -> None: ... class StdPrs_HLRShape(StdPrs_HLRShapeI): - def ComputeHLR(self, thePrs: Prs3d_Presentation, theShape: TopoDS_Shape, theDrawer: Prs3d_Drawer, theProjector: Graphic3d_Camera) -> None: ... + def ComputeHLR( + self, + thePrs: Prs3d_Presentation, + theShape: TopoDS_Shape, + theDrawer: Prs3d_Drawer, + theProjector: Graphic3d_Camera, + ) -> None: ... -#classnotwrapped +# classnotwrapped class StdPrs_DeflectionCurve: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StdSelect.pyi b/src/SWIG_files/wrapper/StdSelect.pyi index 9960b35df..f36ac8554 100644 --- a/src/SWIG_files/wrapper/StdSelect.pyi +++ b/src/SWIG_files/wrapper/StdSelect.pyi @@ -13,7 +13,6 @@ from OCC.Core.Select3D import * from OCC.Core.TopTools import * from OCC.Core.TopAbs import * - class StdSelect_TypeOfEdge(IntEnum): StdSelect_AnyEdge: int = ... StdSelect_Line: int = ... @@ -51,58 +50,155 @@ class StdSelect_TypeOfSelectionImage(IntEnum): StdSelect_TypeOfSelectionImage_ColoredSelectionMode: int = ... StdSelect_TypeOfSelectionImage_SurfaceNormal: int = ... -StdSelect_TypeOfSelectionImage_NormalizedDepth = StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_NormalizedDepth -StdSelect_TypeOfSelectionImage_NormalizedDepthInverted = StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_NormalizedDepthInverted -StdSelect_TypeOfSelectionImage_UnnormalizedDepth = StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_UnnormalizedDepth -StdSelect_TypeOfSelectionImage_ColoredDetectedObject = StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredDetectedObject -StdSelect_TypeOfSelectionImage_ColoredEntity = StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredEntity -StdSelect_TypeOfSelectionImage_ColoredEntityType = StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredEntityType -StdSelect_TypeOfSelectionImage_ColoredOwner = StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredOwner -StdSelect_TypeOfSelectionImage_ColoredSelectionMode = StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredSelectionMode -StdSelect_TypeOfSelectionImage_SurfaceNormal = StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_SurfaceNormal +StdSelect_TypeOfSelectionImage_NormalizedDepth = ( + StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_NormalizedDepth +) +StdSelect_TypeOfSelectionImage_NormalizedDepthInverted = ( + StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_NormalizedDepthInverted +) +StdSelect_TypeOfSelectionImage_UnnormalizedDepth = ( + StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_UnnormalizedDepth +) +StdSelect_TypeOfSelectionImage_ColoredDetectedObject = ( + StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredDetectedObject +) +StdSelect_TypeOfSelectionImage_ColoredEntity = ( + StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredEntity +) +StdSelect_TypeOfSelectionImage_ColoredEntityType = ( + StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredEntityType +) +StdSelect_TypeOfSelectionImage_ColoredOwner = ( + StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredOwner +) +StdSelect_TypeOfSelectionImage_ColoredSelectionMode = ( + StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_ColoredSelectionMode +) +StdSelect_TypeOfSelectionImage_SurfaceNormal = ( + StdSelect_TypeOfSelectionImage.StdSelect_TypeOfSelectionImage_SurfaceNormal +) class stdselect: @staticmethod - def SetDrawerForBRepOwner(aSelection: SelectMgr_Selection, aDrawer: Prs3d_Drawer) -> None: ... + def SetDrawerForBRepOwner( + aSelection: SelectMgr_Selection, aDrawer: Prs3d_Drawer + ) -> None: ... class StdSelect_BRepOwner(SelectMgr_EntityOwner): @overload def __init__(self, aPriority: int) -> None: ... @overload - def __init__(self, aShape: TopoDS_Shape, aPriority: Optional[int] = 0, ComesFromDecomposition: Optional[bool] = False) -> None: ... + def __init__( + self, + aShape: TopoDS_Shape, + aPriority: Optional[int] = 0, + ComesFromDecomposition: Optional[bool] = False, + ) -> None: ... @overload - def __init__(self, aShape: TopoDS_Shape, theOrigin: SelectMgr_SelectableObject, aPriority: Optional[int] = 0, FromDecomposition: Optional[bool] = False) -> None: ... - def Clear(self, aPM: PrsMgr_PresentationManager, aMode: Optional[int] = 0) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def __init__( + self, + aShape: TopoDS_Shape, + theOrigin: SelectMgr_SelectableObject, + aPriority: Optional[int] = 0, + FromDecomposition: Optional[bool] = False, + ) -> None: ... + def Clear( + self, aPM: PrsMgr_PresentationManager, aMode: Optional[int] = 0 + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def HasHilightMode(self) -> bool: ... def HasShape(self) -> bool: ... def HilightMode(self) -> int: ... - def HilightWithColor(self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int) -> None: ... - def IsHilighted(self, aPM: PrsMgr_PresentationManager, aMode: Optional[int] = 0) -> bool: ... + def HilightWithColor( + self, thePM: PrsMgr_PresentationManager, theStyle: Prs3d_Drawer, theMode: int + ) -> None: ... + def IsHilighted( + self, aPM: PrsMgr_PresentationManager, aMode: Optional[int] = 0 + ) -> bool: ... def ResetHilightMode(self) -> None: ... def SetHilightMode(self, theMode: int) -> None: ... def SetLocation(self, aLoc: TopLoc_Location) -> None: ... def Shape(self) -> TopoDS_Shape: ... - def Unhilight(self, aPM: PrsMgr_PresentationManager, aMode: Optional[int] = 0) -> None: ... - def UpdateHighlightTrsf(self, theViewer: V3d_Viewer, theManager: PrsMgr_PresentationManager, theDispMode: int) -> None: ... + def Unhilight( + self, aPM: PrsMgr_PresentationManager, aMode: Optional[int] = 0 + ) -> None: ... + def UpdateHighlightTrsf( + self, + theViewer: V3d_Viewer, + theManager: PrsMgr_PresentationManager, + theDispMode: int, + ) -> None: ... class StdSelect_BRepSelectionTool: @staticmethod - def ComputeSensitive(theShape: TopoDS_Shape, theOwner: SelectMgr_EntityOwner, theSelection: SelectMgr_Selection, theDeflection: float, theDeflAngle: float, theNbPOnEdge: int, theMaxiParam: float, theAutoTriang: Optional[bool] = True) -> None: ... + def ComputeSensitive( + theShape: TopoDS_Shape, + theOwner: SelectMgr_EntityOwner, + theSelection: SelectMgr_Selection, + theDeflection: float, + theDeflAngle: float, + theNbPOnEdge: int, + theMaxiParam: float, + theAutoTriang: Optional[bool] = True, + ) -> None: ... @staticmethod - def GetEdgeSensitive(theShape: TopoDS_Shape, theOwner: SelectMgr_EntityOwner, theSelection: SelectMgr_Selection, theDeflection: float, theDeviationAngle: float, theNbPOnEdge: int, theMaxiParam: float, theSensitive: Select3D_SensitiveEntity) -> None: ... + def GetEdgeSensitive( + theShape: TopoDS_Shape, + theOwner: SelectMgr_EntityOwner, + theSelection: SelectMgr_Selection, + theDeflection: float, + theDeviationAngle: float, + theNbPOnEdge: int, + theMaxiParam: float, + theSensitive: Select3D_SensitiveEntity, + ) -> None: ... @staticmethod - def GetSensitiveForCylinder(theSubfacesMap: TopTools_IndexedMapOfShape, theOwner: SelectMgr_EntityOwner, theSelection: SelectMgr_Selection) -> bool: ... + def GetSensitiveForCylinder( + theSubfacesMap: TopTools_IndexedMapOfShape, + theOwner: SelectMgr_EntityOwner, + theSelection: SelectMgr_Selection, + ) -> bool: ... @staticmethod - def GetSensitiveForFace(theFace: TopoDS_Face, theOwner: SelectMgr_EntityOwner, theOutList: Select3D_EntitySequence, theAutoTriang: Optional[bool] = True, theNbPOnEdge: Optional[int] = 9, theMaxiParam: Optional[float] = 500, theInteriorFlag: Optional[bool] = True) -> bool: ... + def GetSensitiveForFace( + theFace: TopoDS_Face, + theOwner: SelectMgr_EntityOwner, + theOutList: Select3D_EntitySequence, + theAutoTriang: Optional[bool] = True, + theNbPOnEdge: Optional[int] = 9, + theMaxiParam: Optional[float] = 500, + theInteriorFlag: Optional[bool] = True, + ) -> bool: ... @staticmethod - def GetStandardPriority(theShape: TopoDS_Shape, theType: TopAbs_ShapeEnum) -> int: ... + def GetStandardPriority( + theShape: TopoDS_Shape, theType: TopAbs_ShapeEnum + ) -> int: ... @overload @staticmethod - def Load(aSelection: SelectMgr_Selection, aShape: TopoDS_Shape, aType: TopAbs_ShapeEnum, theDeflection: float, theDeviationAngle: float, AutoTriangulation: Optional[bool] = True, aPriority: Optional[int] = -1, NbPOnEdge: Optional[int] = 9, MaximalParameter: Optional[float] = 500) -> None: ... + def Load( + aSelection: SelectMgr_Selection, + aShape: TopoDS_Shape, + aType: TopAbs_ShapeEnum, + theDeflection: float, + theDeviationAngle: float, + AutoTriangulation: Optional[bool] = True, + aPriority: Optional[int] = -1, + NbPOnEdge: Optional[int] = 9, + MaximalParameter: Optional[float] = 500, + ) -> None: ... @overload @staticmethod - def Load(aSelection: SelectMgr_Selection, Origin: SelectMgr_SelectableObject, aShape: TopoDS_Shape, aType: TopAbs_ShapeEnum, theDeflection: float, theDeviationAngle: float, AutoTriangulation: Optional[bool] = True, aPriority: Optional[int] = -1, NbPOnEdge: Optional[int] = 9, MaximalParameter: Optional[float] = 500) -> None: ... + def Load( + aSelection: SelectMgr_Selection, + Origin: SelectMgr_SelectableObject, + aShape: TopoDS_Shape, + aType: TopAbs_ShapeEnum, + theDeflection: float, + theDeviationAngle: float, + AutoTriangulation: Optional[bool] = True, + aPriority: Optional[int] = -1, + NbPOnEdge: Optional[int] = 9, + MaximalParameter: Optional[float] = 500, + ) -> None: ... @staticmethod def PreBuildBVH(theSelection: SelectMgr_Selection) -> None: ... @@ -121,9 +217,16 @@ class StdSelect_FaceFilter(SelectMgr_Filter): def Type(self) -> StdSelect_TypeOfFace: ... class StdSelect_Shape(PrsMgr_PresentableObject): - def __init__(self, theShape: TopoDS_Shape, theDrawer: Optional[Prs3d_Drawer] = Prs3d_Drawer()) -> None: ... - def Compute(self, thePrsMgr: PrsMgr_PresentationManager, thePrs: Prs3d_Presentation, theMode: int) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def __init__( + self, theShape: TopoDS_Shape, theDrawer: Optional[Prs3d_Drawer] = Prs3d_Drawer() + ) -> None: ... + def Compute( + self, + thePrsMgr: PrsMgr_PresentationManager, + thePrs: Prs3d_Presentation, + theMode: int, + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Shape(self) -> TopoDS_Shape: ... @overload @@ -138,4 +241,3 @@ class StdSelect_ShapeTypeFilter(SelectMgr_Filter): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepAP203.pyi b/src/SWIG_files/wrapper/StepAP203.pyi index 0b6142c2e..9d033923a 100644 --- a/src/SWIG_files/wrapper/StepAP203.pyi +++ b/src/SWIG_files/wrapper/StepAP203.pyi @@ -8,7 +8,6 @@ from OCC.Core.StepBasic import * from OCC.Core.StepRepr import * from OCC.Core.TCollection import * - class StepAP203_Array1OfApprovedItem: @overload def __init__(self) -> None: ... @@ -79,7 +78,9 @@ class StepAP203_Array1OfChangeRequestItem: def First(self) -> StepAP203_ChangeRequestItem: ... def Last(self) -> StepAP203_ChangeRequestItem: ... def Value(self, theIndex: int) -> StepAP203_ChangeRequestItem: ... - def SetValue(self, theIndex: int, theValue: StepAP203_ChangeRequestItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP203_ChangeRequestItem + ) -> None: ... class StepAP203_Array1OfClassifiedItem: @overload @@ -159,7 +160,9 @@ class StepAP203_Array1OfPersonOrganizationItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP203_PersonOrganizationItem: ... - def __setitem__(self, index: int, value: StepAP203_PersonOrganizationItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP203_PersonOrganizationItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP203_PersonOrganizationItem]: ... def next(self) -> StepAP203_PersonOrganizationItem: ... @@ -175,7 +178,9 @@ class StepAP203_Array1OfPersonOrganizationItem: def First(self) -> StepAP203_PersonOrganizationItem: ... def Last(self) -> StepAP203_PersonOrganizationItem: ... def Value(self, theIndex: int) -> StepAP203_PersonOrganizationItem: ... - def SetValue(self, theIndex: int, theValue: StepAP203_PersonOrganizationItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP203_PersonOrganizationItem + ) -> None: ... class StepAP203_Array1OfSpecifiedItem: @overload @@ -266,43 +271,78 @@ class StepAP203_ApprovedItem(StepData_SelectType): class StepAP203_CcDesignApproval(StepBasic_ApprovalAssignment): def __init__(self) -> None: ... - def Init(self, aApprovalAssignment_AssignedApproval: StepBasic_Approval, aItems: StepAP203_HArray1OfApprovedItem) -> None: ... + def Init( + self, + aApprovalAssignment_AssignedApproval: StepBasic_Approval, + aItems: StepAP203_HArray1OfApprovedItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfApprovedItem: ... def SetItems(self, Items: StepAP203_HArray1OfApprovedItem) -> None: ... class StepAP203_CcDesignCertification(StepBasic_CertificationAssignment): def __init__(self) -> None: ... - def Init(self, aCertificationAssignment_AssignedCertification: StepBasic_Certification, aItems: StepAP203_HArray1OfCertifiedItem) -> None: ... + def Init( + self, + aCertificationAssignment_AssignedCertification: StepBasic_Certification, + aItems: StepAP203_HArray1OfCertifiedItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfCertifiedItem: ... def SetItems(self, Items: StepAP203_HArray1OfCertifiedItem) -> None: ... class StepAP203_CcDesignContract(StepBasic_ContractAssignment): def __init__(self) -> None: ... - def Init(self, aContractAssignment_AssignedContract: StepBasic_Contract, aItems: StepAP203_HArray1OfContractedItem) -> None: ... + def Init( + self, + aContractAssignment_AssignedContract: StepBasic_Contract, + aItems: StepAP203_HArray1OfContractedItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfContractedItem: ... def SetItems(self, Items: StepAP203_HArray1OfContractedItem) -> None: ... class StepAP203_CcDesignDateAndTimeAssignment(StepBasic_DateAndTimeAssignment): def __init__(self) -> None: ... - def Init(self, aDateAndTimeAssignment_AssignedDateAndTime: StepBasic_DateAndTime, aDateAndTimeAssignment_Role: StepBasic_DateTimeRole, aItems: StepAP203_HArray1OfDateTimeItem) -> None: ... + def Init( + self, + aDateAndTimeAssignment_AssignedDateAndTime: StepBasic_DateAndTime, + aDateAndTimeAssignment_Role: StepBasic_DateTimeRole, + aItems: StepAP203_HArray1OfDateTimeItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfDateTimeItem: ... def SetItems(self, Items: StepAP203_HArray1OfDateTimeItem) -> None: ... -class StepAP203_CcDesignPersonAndOrganizationAssignment(StepBasic_PersonAndOrganizationAssignment): +class StepAP203_CcDesignPersonAndOrganizationAssignment( + StepBasic_PersonAndOrganizationAssignment +): def __init__(self) -> None: ... - def Init(self, aPersonAndOrganizationAssignment_AssignedPersonAndOrganization: StepBasic_PersonAndOrganization, aPersonAndOrganizationAssignment_Role: StepBasic_PersonAndOrganizationRole, aItems: StepAP203_HArray1OfPersonOrganizationItem) -> None: ... + def Init( + self, + aPersonAndOrganizationAssignment_AssignedPersonAndOrganization: StepBasic_PersonAndOrganization, + aPersonAndOrganizationAssignment_Role: StepBasic_PersonAndOrganizationRole, + aItems: StepAP203_HArray1OfPersonOrganizationItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfPersonOrganizationItem: ... def SetItems(self, Items: StepAP203_HArray1OfPersonOrganizationItem) -> None: ... -class StepAP203_CcDesignSecurityClassification(StepBasic_SecurityClassificationAssignment): +class StepAP203_CcDesignSecurityClassification( + StepBasic_SecurityClassificationAssignment +): def __init__(self) -> None: ... - def Init(self, aSecurityClassificationAssignment_AssignedSecurityClassification: StepBasic_SecurityClassification, aItems: StepAP203_HArray1OfClassifiedItem) -> None: ... + def Init( + self, + aSecurityClassificationAssignment_AssignedSecurityClassification: StepBasic_SecurityClassification, + aItems: StepAP203_HArray1OfClassifiedItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfClassifiedItem: ... def SetItems(self, Items: StepAP203_HArray1OfClassifiedItem) -> None: ... class StepAP203_CcDesignSpecificationReference(StepBasic_DocumentReference): def __init__(self) -> None: ... - def Init(self, aDocumentReference_AssignedDocument: StepBasic_Document, aDocumentReference_Source: TCollection_HAsciiString, aItems: StepAP203_HArray1OfSpecifiedItem) -> None: ... + def Init( + self, + aDocumentReference_AssignedDocument: StepBasic_Document, + aDocumentReference_Source: TCollection_HAsciiString, + aItems: StepAP203_HArray1OfSpecifiedItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfSpecifiedItem: ... def SetItems(self, Items: StepAP203_HArray1OfSpecifiedItem) -> None: ... @@ -313,13 +353,21 @@ class StepAP203_CertifiedItem(StepData_SelectType): class StepAP203_Change(StepBasic_ActionAssignment): def __init__(self) -> None: ... - def Init(self, aActionAssignment_AssignedAction: StepBasic_Action, aItems: StepAP203_HArray1OfWorkItem) -> None: ... + def Init( + self, + aActionAssignment_AssignedAction: StepBasic_Action, + aItems: StepAP203_HArray1OfWorkItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfWorkItem: ... def SetItems(self, Items: StepAP203_HArray1OfWorkItem) -> None: ... class StepAP203_ChangeRequest(StepBasic_ActionRequestAssignment): def __init__(self) -> None: ... - def Init(self, aActionRequestAssignment_AssignedActionRequest: StepBasic_VersionedActionRequest, aItems: StepAP203_HArray1OfChangeRequestItem) -> None: ... + def Init( + self, + aActionRequestAssignment_AssignedActionRequest: StepBasic_VersionedActionRequest, + aItems: StepAP203_HArray1OfChangeRequestItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfChangeRequestItem: ... def SetItems(self, Items: StepAP203_HArray1OfChangeRequestItem) -> None: ... @@ -374,7 +422,11 @@ class StepAP203_SpecifiedItem(StepData_SelectType): class StepAP203_StartRequest(StepBasic_ActionRequestAssignment): def __init__(self) -> None: ... - def Init(self, aActionRequestAssignment_AssignedActionRequest: StepBasic_VersionedActionRequest, aItems: StepAP203_HArray1OfStartRequestItem) -> None: ... + def Init( + self, + aActionRequestAssignment_AssignedActionRequest: StepBasic_VersionedActionRequest, + aItems: StepAP203_HArray1OfStartRequestItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfStartRequestItem: ... def SetItems(self, Items: StepAP203_HArray1OfStartRequestItem) -> None: ... @@ -385,7 +437,11 @@ class StepAP203_StartRequestItem(StepData_SelectType): class StepAP203_StartWork(StepBasic_ActionAssignment): def __init__(self) -> None: ... - def Init(self, aActionAssignment_AssignedAction: StepBasic_Action, aItems: StepAP203_HArray1OfWorkItem) -> None: ... + def Init( + self, + aActionAssignment_AssignedAction: StepBasic_Action, + aItems: StepAP203_HArray1OfWorkItem, + ) -> None: ... def Items(self) -> StepAP203_HArray1OfWorkItem: ... def SetItems(self, Items: StepAP203_HArray1OfWorkItem) -> None: ... @@ -396,55 +452,63 @@ class StepAP203_WorkItem(StepData_SelectType): # harray1 classes -class StepAP203_HArray1OfApprovedItem(StepAP203_Array1OfApprovedItem, Standard_Transient): +class StepAP203_HArray1OfApprovedItem( + StepAP203_Array1OfApprovedItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfApprovedItem: ... - -class StepAP203_HArray1OfCertifiedItem(StepAP203_Array1OfCertifiedItem, Standard_Transient): +class StepAP203_HArray1OfCertifiedItem( + StepAP203_Array1OfCertifiedItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfCertifiedItem: ... - -class StepAP203_HArray1OfChangeRequestItem(StepAP203_Array1OfChangeRequestItem, Standard_Transient): +class StepAP203_HArray1OfChangeRequestItem( + StepAP203_Array1OfChangeRequestItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfChangeRequestItem: ... - -class StepAP203_HArray1OfClassifiedItem(StepAP203_Array1OfClassifiedItem, Standard_Transient): +class StepAP203_HArray1OfClassifiedItem( + StepAP203_Array1OfClassifiedItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfClassifiedItem: ... - -class StepAP203_HArray1OfContractedItem(StepAP203_Array1OfContractedItem, Standard_Transient): +class StepAP203_HArray1OfContractedItem( + StepAP203_Array1OfContractedItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfContractedItem: ... - -class StepAP203_HArray1OfDateTimeItem(StepAP203_Array1OfDateTimeItem, Standard_Transient): +class StepAP203_HArray1OfDateTimeItem( + StepAP203_Array1OfDateTimeItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfDateTimeItem: ... - -class StepAP203_HArray1OfPersonOrganizationItem(StepAP203_Array1OfPersonOrganizationItem, Standard_Transient): +class StepAP203_HArray1OfPersonOrganizationItem( + StepAP203_Array1OfPersonOrganizationItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfPersonOrganizationItem: ... - -class StepAP203_HArray1OfSpecifiedItem(StepAP203_Array1OfSpecifiedItem, Standard_Transient): +class StepAP203_HArray1OfSpecifiedItem( + StepAP203_Array1OfSpecifiedItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfSpecifiedItem: ... - -class StepAP203_HArray1OfStartRequestItem(StepAP203_Array1OfStartRequestItem, Standard_Transient): +class StepAP203_HArray1OfStartRequestItem( + StepAP203_Array1OfStartRequestItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfStartRequestItem: ... - class StepAP203_HArray1OfWorkItem(StepAP203_Array1OfWorkItem, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP203_Array1OfWorkItem: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepAP209.pyi b/src/SWIG_files/wrapper/StepAP209.pyi index 35e35e00d..10a3e3021 100644 --- a/src/SWIG_files/wrapper/StepAP209.pyi +++ b/src/SWIG_files/wrapper/StepAP209.pyi @@ -12,51 +12,73 @@ from OCC.Core.StepRepr import * from OCC.Core.StepElement import * from OCC.Core.StepShape import * - class StepAP209_Construct(STEPConstruct_Tool): @overload def __init__(self) -> None: ... @overload def __init__(self, WS: XSControl_WorkSession) -> None: ... def CreateAP203Structure(self) -> StepData_StepModel: ... - def CreateAdding203Entities(self, PD: StepBasic_ProductDefinition, aModel: StepData_StepModel) -> bool: ... + def CreateAdding203Entities( + self, PD: StepBasic_ProductDefinition, aModel: StepData_StepModel + ) -> bool: ... def CreateAddingEntities(self, AnaPD: StepBasic_ProductDefinition) -> bool: ... def CreateAnalysStructure(self, Prod: StepBasic_Product) -> bool: ... def CreateFeaStructure(self, Prod: StepBasic_Product) -> bool: ... @overload def FeaModel(self, Prod: StepBasic_Product) -> StepFEA_FeaModel: ... @overload - def FeaModel(self, PDF: StepBasic_ProductDefinitionFormation) -> StepFEA_FeaModel: ... + def FeaModel( + self, PDF: StepBasic_ProductDefinitionFormation + ) -> StepFEA_FeaModel: ... @overload def FeaModel(self, PDS: StepRepr_ProductDefinitionShape) -> StepFEA_FeaModel: ... @overload def FeaModel(self, PD: StepBasic_ProductDefinition) -> StepFEA_FeaModel: ... - def GetCurElemSection(self, ElemRepr: StepFEA_Curve3dElementRepresentation) -> StepElement_HSequenceOfCurveElementSectionDefinition: ... + def GetCurElemSection( + self, ElemRepr: StepFEA_Curve3dElementRepresentation + ) -> StepElement_HSequenceOfCurveElementSectionDefinition: ... def GetElemGeomRelat(self) -> StepFEA_HSequenceOfElementGeometricRelationship: ... def GetElementMaterial(self) -> StepElement_HSequenceOfElementMaterial: ... - def GetElements1D(self, theFeaModel: StepFEA_FeaModel) -> StepFEA_HSequenceOfElementRepresentation: ... - def GetElements2D(self, theFEAModel: StepFEA_FeaModel) -> StepFEA_HSequenceOfElementRepresentation: ... - def GetElements3D(self, theFEAModel: StepFEA_FeaModel) -> StepFEA_HSequenceOfElementRepresentation: ... - def GetFeaAxis2Placement3d(self, theFeaModel: StepFEA_FeaModel) -> StepFEA_FeaAxis2Placement3d: ... - def GetShReprForElem(self, ElemRepr: StepFEA_ElementRepresentation) -> StepShape_ShapeRepresentation: ... + def GetElements1D( + self, theFeaModel: StepFEA_FeaModel + ) -> StepFEA_HSequenceOfElementRepresentation: ... + def GetElements2D( + self, theFEAModel: StepFEA_FeaModel + ) -> StepFEA_HSequenceOfElementRepresentation: ... + def GetElements3D( + self, theFEAModel: StepFEA_FeaModel + ) -> StepFEA_HSequenceOfElementRepresentation: ... + def GetFeaAxis2Placement3d( + self, theFeaModel: StepFEA_FeaModel + ) -> StepFEA_FeaAxis2Placement3d: ... + def GetShReprForElem( + self, ElemRepr: StepFEA_ElementRepresentation + ) -> StepShape_ShapeRepresentation: ... @overload def IdealShape(self, Prod: StepBasic_Product) -> StepShape_ShapeRepresentation: ... @overload - def IdealShape(self, PDF: StepBasic_ProductDefinitionFormation) -> StepShape_ShapeRepresentation: ... + def IdealShape( + self, PDF: StepBasic_ProductDefinitionFormation + ) -> StepShape_ShapeRepresentation: ... @overload - def IdealShape(self, PD: StepBasic_ProductDefinition) -> StepShape_ShapeRepresentation: ... + def IdealShape( + self, PD: StepBasic_ProductDefinition + ) -> StepShape_ShapeRepresentation: ... @overload - def IdealShape(self, PDS: StepRepr_ProductDefinitionShape) -> StepShape_ShapeRepresentation: ... + def IdealShape( + self, PDS: StepRepr_ProductDefinitionShape + ) -> StepShape_ShapeRepresentation: ... def Init(self, WS: XSControl_WorkSession) -> bool: ... def IsAnalys(self, PD: StepBasic_ProductDefinitionFormation) -> bool: ... def IsDesing(self, PD: StepBasic_ProductDefinitionFormation) -> bool: ... @overload def NominShape(self, Prod: StepBasic_Product) -> StepShape_ShapeRepresentation: ... @overload - def NominShape(self, PDF: StepBasic_ProductDefinitionFormation) -> StepShape_ShapeRepresentation: ... + def NominShape( + self, PDF: StepBasic_ProductDefinitionFormation + ) -> StepShape_ShapeRepresentation: ... def ReplaceCcDesingToApplied(self) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepAP214.pyi b/src/SWIG_files/wrapper/StepAP214.pyi index 0b07de80f..170fc1e1f 100644 --- a/src/SWIG_files/wrapper/StepAP214.pyi +++ b/src/SWIG_files/wrapper/StepAP214.pyi @@ -12,7 +12,6 @@ from OCC.Core.StepShape import * from OCC.Core.StepGeom import * from OCC.Core.Interface import * - class StepAP214_Array1OfApprovalItem: @overload def __init__(self) -> None: ... @@ -43,7 +42,9 @@ class StepAP214_Array1OfAutoDesignDateAndPersonItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_AutoDesignDateAndPersonItem: ... - def __setitem__(self, index: int, value: StepAP214_AutoDesignDateAndPersonItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_AutoDesignDateAndPersonItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_AutoDesignDateAndPersonItem]: ... def next(self) -> StepAP214_AutoDesignDateAndPersonItem: ... @@ -59,7 +60,9 @@ class StepAP214_Array1OfAutoDesignDateAndPersonItem: def First(self) -> StepAP214_AutoDesignDateAndPersonItem: ... def Last(self) -> StepAP214_AutoDesignDateAndPersonItem: ... def Value(self, theIndex: int) -> StepAP214_AutoDesignDateAndPersonItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_AutoDesignDateAndPersonItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_AutoDesignDateAndPersonItem + ) -> None: ... class StepAP214_Array1OfAutoDesignDateAndTimeItem: @overload @@ -67,7 +70,9 @@ class StepAP214_Array1OfAutoDesignDateAndTimeItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_AutoDesignDateAndTimeItem: ... - def __setitem__(self, index: int, value: StepAP214_AutoDesignDateAndTimeItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_AutoDesignDateAndTimeItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_AutoDesignDateAndTimeItem]: ... def next(self) -> StepAP214_AutoDesignDateAndTimeItem: ... @@ -83,7 +88,9 @@ class StepAP214_Array1OfAutoDesignDateAndTimeItem: def First(self) -> StepAP214_AutoDesignDateAndTimeItem: ... def Last(self) -> StepAP214_AutoDesignDateAndTimeItem: ... def Value(self, theIndex: int) -> StepAP214_AutoDesignDateAndTimeItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_AutoDesignDateAndTimeItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_AutoDesignDateAndTimeItem + ) -> None: ... class StepAP214_Array1OfAutoDesignDatedItem: @overload @@ -107,7 +114,9 @@ class StepAP214_Array1OfAutoDesignDatedItem: def First(self) -> StepAP214_AutoDesignDatedItem: ... def Last(self) -> StepAP214_AutoDesignDatedItem: ... def Value(self, theIndex: int) -> StepAP214_AutoDesignDatedItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_AutoDesignDatedItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_AutoDesignDatedItem + ) -> None: ... class StepAP214_Array1OfAutoDesignGeneralOrgItem: @overload @@ -115,7 +124,9 @@ class StepAP214_Array1OfAutoDesignGeneralOrgItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_AutoDesignGeneralOrgItem: ... - def __setitem__(self, index: int, value: StepAP214_AutoDesignGeneralOrgItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_AutoDesignGeneralOrgItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_AutoDesignGeneralOrgItem]: ... def next(self) -> StepAP214_AutoDesignGeneralOrgItem: ... @@ -131,7 +142,9 @@ class StepAP214_Array1OfAutoDesignGeneralOrgItem: def First(self) -> StepAP214_AutoDesignGeneralOrgItem: ... def Last(self) -> StepAP214_AutoDesignGeneralOrgItem: ... def Value(self, theIndex: int) -> StepAP214_AutoDesignGeneralOrgItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_AutoDesignGeneralOrgItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_AutoDesignGeneralOrgItem + ) -> None: ... class StepAP214_Array1OfAutoDesignGroupedItem: @overload @@ -139,7 +152,9 @@ class StepAP214_Array1OfAutoDesignGroupedItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_AutoDesignGroupedItem: ... - def __setitem__(self, index: int, value: StepAP214_AutoDesignGroupedItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_AutoDesignGroupedItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_AutoDesignGroupedItem]: ... def next(self) -> StepAP214_AutoDesignGroupedItem: ... @@ -155,7 +170,9 @@ class StepAP214_Array1OfAutoDesignGroupedItem: def First(self) -> StepAP214_AutoDesignGroupedItem: ... def Last(self) -> StepAP214_AutoDesignGroupedItem: ... def Value(self, theIndex: int) -> StepAP214_AutoDesignGroupedItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_AutoDesignGroupedItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_AutoDesignGroupedItem + ) -> None: ... class StepAP214_Array1OfAutoDesignPresentedItemSelect: @overload @@ -163,7 +180,9 @@ class StepAP214_Array1OfAutoDesignPresentedItemSelect: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_AutoDesignPresentedItemSelect: ... - def __setitem__(self, index: int, value: StepAP214_AutoDesignPresentedItemSelect) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_AutoDesignPresentedItemSelect + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_AutoDesignPresentedItemSelect]: ... def next(self) -> StepAP214_AutoDesignPresentedItemSelect: ... @@ -179,7 +198,9 @@ class StepAP214_Array1OfAutoDesignPresentedItemSelect: def First(self) -> StepAP214_AutoDesignPresentedItemSelect: ... def Last(self) -> StepAP214_AutoDesignPresentedItemSelect: ... def Value(self, theIndex: int) -> StepAP214_AutoDesignPresentedItemSelect: ... - def SetValue(self, theIndex: int, theValue: StepAP214_AutoDesignPresentedItemSelect) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_AutoDesignPresentedItemSelect + ) -> None: ... class StepAP214_Array1OfAutoDesignReferencingItem: @overload @@ -187,7 +208,9 @@ class StepAP214_Array1OfAutoDesignReferencingItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_AutoDesignReferencingItem: ... - def __setitem__(self, index: int, value: StepAP214_AutoDesignReferencingItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_AutoDesignReferencingItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_AutoDesignReferencingItem]: ... def next(self) -> StepAP214_AutoDesignReferencingItem: ... @@ -203,7 +226,9 @@ class StepAP214_Array1OfAutoDesignReferencingItem: def First(self) -> StepAP214_AutoDesignReferencingItem: ... def Last(self) -> StepAP214_AutoDesignReferencingItem: ... def Value(self, theIndex: int) -> StepAP214_AutoDesignReferencingItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_AutoDesignReferencingItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_AutoDesignReferencingItem + ) -> None: ... class StepAP214_Array1OfDateAndTimeItem: @overload @@ -259,7 +284,9 @@ class StepAP214_Array1OfDocumentReferenceItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_DocumentReferenceItem: ... - def __setitem__(self, index: int, value: StepAP214_DocumentReferenceItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_DocumentReferenceItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_DocumentReferenceItem]: ... def next(self) -> StepAP214_DocumentReferenceItem: ... @@ -275,7 +302,9 @@ class StepAP214_Array1OfDocumentReferenceItem: def First(self) -> StepAP214_DocumentReferenceItem: ... def Last(self) -> StepAP214_DocumentReferenceItem: ... def Value(self, theIndex: int) -> StepAP214_DocumentReferenceItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_DocumentReferenceItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_DocumentReferenceItem + ) -> None: ... class StepAP214_Array1OfExternalIdentificationItem: @overload @@ -283,7 +312,9 @@ class StepAP214_Array1OfExternalIdentificationItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_ExternalIdentificationItem: ... - def __setitem__(self, index: int, value: StepAP214_ExternalIdentificationItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_ExternalIdentificationItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_ExternalIdentificationItem]: ... def next(self) -> StepAP214_ExternalIdentificationItem: ... @@ -299,7 +330,9 @@ class StepAP214_Array1OfExternalIdentificationItem: def First(self) -> StepAP214_ExternalIdentificationItem: ... def Last(self) -> StepAP214_ExternalIdentificationItem: ... def Value(self, theIndex: int) -> StepAP214_ExternalIdentificationItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_ExternalIdentificationItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_ExternalIdentificationItem + ) -> None: ... class StepAP214_Array1OfGroupItem: @overload @@ -355,7 +388,9 @@ class StepAP214_Array1OfPersonAndOrganizationItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_PersonAndOrganizationItem: ... - def __setitem__(self, index: int, value: StepAP214_PersonAndOrganizationItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_PersonAndOrganizationItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_PersonAndOrganizationItem]: ... def next(self) -> StepAP214_PersonAndOrganizationItem: ... @@ -371,7 +406,9 @@ class StepAP214_Array1OfPersonAndOrganizationItem: def First(self) -> StepAP214_PersonAndOrganizationItem: ... def Last(self) -> StepAP214_PersonAndOrganizationItem: ... def Value(self, theIndex: int) -> StepAP214_PersonAndOrganizationItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_PersonAndOrganizationItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_PersonAndOrganizationItem + ) -> None: ... class StepAP214_Array1OfPresentedItemSelect: @overload @@ -395,7 +432,9 @@ class StepAP214_Array1OfPresentedItemSelect: def First(self) -> StepAP214_PresentedItemSelect: ... def Last(self) -> StepAP214_PresentedItemSelect: ... def Value(self, theIndex: int) -> StepAP214_PresentedItemSelect: ... - def SetValue(self, theIndex: int, theValue: StepAP214_PresentedItemSelect) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_PresentedItemSelect + ) -> None: ... class StepAP214_Array1OfSecurityClassificationItem: @overload @@ -403,7 +442,9 @@ class StepAP214_Array1OfSecurityClassificationItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepAP214_SecurityClassificationItem: ... - def __setitem__(self, index: int, value: StepAP214_SecurityClassificationItem) -> None: ... + def __setitem__( + self, index: int, value: StepAP214_SecurityClassificationItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepAP214_SecurityClassificationItem]: ... def next(self) -> StepAP214_SecurityClassificationItem: ... @@ -419,7 +460,9 @@ class StepAP214_Array1OfSecurityClassificationItem: def First(self) -> StepAP214_SecurityClassificationItem: ... def Last(self) -> StepAP214_SecurityClassificationItem: ... def Value(self, theIndex: int) -> StepAP214_SecurityClassificationItem: ... - def SetValue(self, theIndex: int, theValue: StepAP214_SecurityClassificationItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepAP214_SecurityClassificationItem + ) -> None: ... class stepap214: @staticmethod @@ -427,7 +470,11 @@ class stepap214: class StepAP214_AppliedApprovalAssignment(StepBasic_ApprovalAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedApproval: StepBasic_Approval, aItems: StepAP214_HArray1OfApprovalItem) -> None: ... + def Init( + self, + aAssignedApproval: StepBasic_Approval, + aItems: StepAP214_HArray1OfApprovalItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfApprovalItem: ... def ItemsValue(self, num: int) -> StepAP214_ApprovalItem: ... def NbItems(self) -> int: ... @@ -435,7 +482,12 @@ class StepAP214_AppliedApprovalAssignment(StepBasic_ApprovalAssignment): class StepAP214_AppliedDateAndTimeAssignment(StepBasic_DateAndTimeAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedDateAndTime: StepBasic_DateAndTime, aRole: StepBasic_DateTimeRole, aItems: StepAP214_HArray1OfDateAndTimeItem) -> None: ... + def Init( + self, + aAssignedDateAndTime: StepBasic_DateAndTime, + aRole: StepBasic_DateTimeRole, + aItems: StepAP214_HArray1OfDateAndTimeItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfDateAndTimeItem: ... def ItemsValue(self, num: int) -> StepAP214_DateAndTimeItem: ... def NbItems(self) -> int: ... @@ -443,7 +495,12 @@ class StepAP214_AppliedDateAndTimeAssignment(StepBasic_DateAndTimeAssignment): class StepAP214_AppliedDateAssignment(StepBasic_DateAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedDate: StepBasic_Date, aRole: StepBasic_DateRole, aItems: StepAP214_HArray1OfDateItem) -> None: ... + def Init( + self, + aAssignedDate: StepBasic_Date, + aRole: StepBasic_DateRole, + aItems: StepAP214_HArray1OfDateItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfDateItem: ... def ItemsValue(self, num: int) -> StepAP214_DateItem: ... def NbItems(self) -> int: ... @@ -451,39 +508,72 @@ class StepAP214_AppliedDateAssignment(StepBasic_DateAssignment): class StepAP214_AppliedDocumentReference(StepBasic_DocumentReference): def __init__(self) -> None: ... - def Init(self, aAssignedDocument: StepBasic_Document, aSource: TCollection_HAsciiString, aItems: StepAP214_HArray1OfDocumentReferenceItem) -> None: ... + def Init( + self, + aAssignedDocument: StepBasic_Document, + aSource: TCollection_HAsciiString, + aItems: StepAP214_HArray1OfDocumentReferenceItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfDocumentReferenceItem: ... def ItemsValue(self, num: int) -> StepAP214_DocumentReferenceItem: ... def NbItems(self) -> int: ... def SetItems(self, aItems: StepAP214_HArray1OfDocumentReferenceItem) -> None: ... -class StepAP214_AppliedExternalIdentificationAssignment(StepBasic_ExternalIdentificationAssignment): +class StepAP214_AppliedExternalIdentificationAssignment( + StepBasic_ExternalIdentificationAssignment +): def __init__(self) -> None: ... - def Init(self, aIdentificationAssignment_AssignedId: TCollection_HAsciiString, aIdentificationAssignment_Role: StepBasic_IdentificationRole, aExternalIdentificationAssignment_Source: StepBasic_ExternalSource, aItems: StepAP214_HArray1OfExternalIdentificationItem) -> None: ... + def Init( + self, + aIdentificationAssignment_AssignedId: TCollection_HAsciiString, + aIdentificationAssignment_Role: StepBasic_IdentificationRole, + aExternalIdentificationAssignment_Source: StepBasic_ExternalSource, + aItems: StepAP214_HArray1OfExternalIdentificationItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfExternalIdentificationItem: ... - def SetItems(self, Items: StepAP214_HArray1OfExternalIdentificationItem) -> None: ... + def SetItems( + self, Items: StepAP214_HArray1OfExternalIdentificationItem + ) -> None: ... class StepAP214_AppliedGroupAssignment(StepBasic_GroupAssignment): def __init__(self) -> None: ... - def Init(self, aGroupAssignment_AssignedGroup: StepBasic_Group, aItems: StepAP214_HArray1OfGroupItem) -> None: ... + def Init( + self, + aGroupAssignment_AssignedGroup: StepBasic_Group, + aItems: StepAP214_HArray1OfGroupItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfGroupItem: ... def SetItems(self, Items: StepAP214_HArray1OfGroupItem) -> None: ... class StepAP214_AppliedOrganizationAssignment(StepBasic_OrganizationAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedOrganization: StepBasic_Organization, aRole: StepBasic_OrganizationRole, aItems: StepAP214_HArray1OfOrganizationItem) -> None: ... + def Init( + self, + aAssignedOrganization: StepBasic_Organization, + aRole: StepBasic_OrganizationRole, + aItems: StepAP214_HArray1OfOrganizationItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfOrganizationItem: ... def ItemsValue(self, num: int) -> StepAP214_OrganizationItem: ... def NbItems(self) -> int: ... def SetItems(self, aItems: StepAP214_HArray1OfOrganizationItem) -> None: ... -class StepAP214_AppliedPersonAndOrganizationAssignment(StepBasic_PersonAndOrganizationAssignment): +class StepAP214_AppliedPersonAndOrganizationAssignment( + StepBasic_PersonAndOrganizationAssignment +): def __init__(self) -> None: ... - def Init(self, aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization, aRole: StepBasic_PersonAndOrganizationRole, aItems: StepAP214_HArray1OfPersonAndOrganizationItem) -> None: ... + def Init( + self, + aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization, + aRole: StepBasic_PersonAndOrganizationRole, + aItems: StepAP214_HArray1OfPersonAndOrganizationItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfPersonAndOrganizationItem: ... def ItemsValue(self, num: int) -> StepAP214_PersonAndOrganizationItem: ... def NbItems(self) -> int: ... - def SetItems(self, aItems: StepAP214_HArray1OfPersonAndOrganizationItem) -> None: ... + def SetItems( + self, aItems: StepAP214_HArray1OfPersonAndOrganizationItem + ) -> None: ... class StepAP214_AppliedPresentedItem(StepVisual_PresentedItem): def __init__(self) -> None: ... @@ -493,17 +583,27 @@ class StepAP214_AppliedPresentedItem(StepVisual_PresentedItem): def NbItems(self) -> int: ... def SetItems(self, aItems: StepAP214_HArray1OfPresentedItemSelect) -> None: ... -class StepAP214_AppliedSecurityClassificationAssignment(StepBasic_SecurityClassificationAssignment): +class StepAP214_AppliedSecurityClassificationAssignment( + StepBasic_SecurityClassificationAssignment +): def __init__(self) -> None: ... - def Init(self, aAssignedSecurityClassification: StepBasic_SecurityClassification, aItems: StepAP214_HArray1OfSecurityClassificationItem) -> None: ... + def Init( + self, + aAssignedSecurityClassification: StepBasic_SecurityClassification, + aItems: StepAP214_HArray1OfSecurityClassificationItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfSecurityClassificationItem: ... def ItemsValue(self, num: int) -> StepAP214_SecurityClassificationItem: ... def NbItems(self) -> int: ... - def SetItems(self, aItems: StepAP214_HArray1OfSecurityClassificationItem) -> None: ... + def SetItems( + self, aItems: StepAP214_HArray1OfSecurityClassificationItem + ) -> None: ... class StepAP214_ApprovalItem(StepData_SelectType): def __init__(self) -> None: ... - def AssemblyComponentUsageSubstitute(self) -> StepRepr_AssemblyComponentUsageSubstitute: ... + def AssemblyComponentUsageSubstitute( + self, + ) -> StepRepr_AssemblyComponentUsageSubstitute: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def ConfigurationItem(self) -> StepRepr_ConfigurationItem: ... def Date(self) -> StepBasic_Date: ... @@ -513,13 +613,19 @@ class StepAP214_ApprovalItem(StepData_SelectType): def Group(self) -> StepBasic_Group: ... def GroupRelationship(self) -> StepBasic_GroupRelationship: ... def MaterialDesignation(self) -> StepRepr_MaterialDesignation: ... - def MechanicalDesignGeometricPresentationRepresentation(self) -> StepVisual_MechanicalDesignGeometricPresentationRepresentation: ... + def MechanicalDesignGeometricPresentationRepresentation( + self, + ) -> StepVisual_MechanicalDesignGeometricPresentationRepresentation: ... def PresentationArea(self) -> StepVisual_PresentationArea: ... def Product(self) -> StepBasic_Product: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... def ProductDefinitionFormation(self) -> StepBasic_ProductDefinitionFormation: ... - def ProductDefinitionFormationRelationship(self) -> StepBasic_ProductDefinitionFormationRelationship: ... - def ProductDefinitionRelationship(self) -> StepBasic_ProductDefinitionRelationship: ... + def ProductDefinitionFormationRelationship( + self, + ) -> StepBasic_ProductDefinitionFormationRelationship: ... + def ProductDefinitionRelationship( + self, + ) -> StepBasic_ProductDefinitionRelationship: ... def PropertyDefinition(self) -> StepRepr_PropertyDefinition: ... def Representation(self) -> StepRepr_Representation: ... def SecurityClassification(self) -> StepBasic_SecurityClassification: ... @@ -528,15 +634,27 @@ class StepAP214_ApprovalItem(StepData_SelectType): class StepAP214_AutoDesignActualDateAndTimeAssignment(StepBasic_DateAndTimeAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedDateAndTime: StepBasic_DateAndTime, aRole: StepBasic_DateTimeRole, aItems: StepAP214_HArray1OfAutoDesignDateAndTimeItem) -> None: ... + def Init( + self, + aAssignedDateAndTime: StepBasic_DateAndTime, + aRole: StepBasic_DateTimeRole, + aItems: StepAP214_HArray1OfAutoDesignDateAndTimeItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignDateAndTimeItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignDateAndTimeItem: ... def NbItems(self) -> int: ... - def SetItems(self, aItems: StepAP214_HArray1OfAutoDesignDateAndTimeItem) -> None: ... + def SetItems( + self, aItems: StepAP214_HArray1OfAutoDesignDateAndTimeItem + ) -> None: ... class StepAP214_AutoDesignActualDateAssignment(StepBasic_DateAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedDate: StepBasic_Date, aRole: StepBasic_DateRole, aItems: StepAP214_HArray1OfAutoDesignDatedItem) -> None: ... + def Init( + self, + aAssignedDate: StepBasic_Date, + aRole: StepBasic_DateRole, + aItems: StepAP214_HArray1OfAutoDesignDatedItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignDatedItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignDatedItem: ... def NbItems(self) -> int: ... @@ -544,70 +662,116 @@ class StepAP214_AutoDesignActualDateAssignment(StepBasic_DateAssignment): class StepAP214_AutoDesignApprovalAssignment(StepBasic_ApprovalAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedApproval: StepBasic_Approval, aItems: StepAP214_HArray1OfAutoDesignGeneralOrgItem) -> None: ... + def Init( + self, + aAssignedApproval: StepBasic_Approval, + aItems: StepAP214_HArray1OfAutoDesignGeneralOrgItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignGeneralOrgItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignGeneralOrgItem: ... def NbItems(self) -> int: ... def SetItems(self, aItems: StepAP214_HArray1OfAutoDesignGeneralOrgItem) -> None: ... -class StepAP214_AutoDesignDateAndPersonAssignment(StepBasic_PersonAndOrganizationAssignment): +class StepAP214_AutoDesignDateAndPersonAssignment( + StepBasic_PersonAndOrganizationAssignment +): def __init__(self) -> None: ... - def Init(self, aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization, aRole: StepBasic_PersonAndOrganizationRole, aItems: StepAP214_HArray1OfAutoDesignDateAndPersonItem) -> None: ... + def Init( + self, + aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization, + aRole: StepBasic_PersonAndOrganizationRole, + aItems: StepAP214_HArray1OfAutoDesignDateAndPersonItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignDateAndPersonItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignDateAndPersonItem: ... def NbItems(self) -> int: ... - def SetItems(self, aItems: StepAP214_HArray1OfAutoDesignDateAndPersonItem) -> None: ... + def SetItems( + self, aItems: StepAP214_HArray1OfAutoDesignDateAndPersonItem + ) -> None: ... class StepAP214_AutoDesignDateAndPersonItem(StepData_SelectType): def __init__(self) -> None: ... def AutoDesignDocumentReference(self) -> StepAP214_AutoDesignDocumentReference: ... - def AutoDesignOrganizationAssignment(self) -> StepAP214_AutoDesignOrganizationAssignment: ... + def AutoDesignOrganizationAssignment( + self, + ) -> StepAP214_AutoDesignOrganizationAssignment: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def ExternallyDefinedRepresentation(self) -> StepRepr_ExternallyDefinedRepresentation: ... + def ExternallyDefinedRepresentation( + self, + ) -> StepRepr_ExternallyDefinedRepresentation: ... def Product(self) -> StepBasic_Product: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... def ProductDefinitionFormation(self) -> StepBasic_ProductDefinitionFormation: ... - def ProductDefinitionRelationship(self) -> StepBasic_ProductDefinitionRelationship: ... - def ProductDefinitionWithAssociatedDocuments(self) -> StepBasic_ProductDefinitionWithAssociatedDocuments: ... + def ProductDefinitionRelationship( + self, + ) -> StepBasic_ProductDefinitionRelationship: ... + def ProductDefinitionWithAssociatedDocuments( + self, + ) -> StepBasic_ProductDefinitionWithAssociatedDocuments: ... def Representation(self) -> StepRepr_Representation: ... class StepAP214_AutoDesignDateAndTimeItem(StepData_SelectType): def __init__(self) -> None: ... def ApprovalPersonOrganization(self) -> StepBasic_ApprovalPersonOrganization: ... - def AutoDesignDateAndPersonAssignment(self) -> StepAP214_AutoDesignDateAndPersonAssignment: ... + def AutoDesignDateAndPersonAssignment( + self, + ) -> StepAP214_AutoDesignDateAndPersonAssignment: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def ProductDefinitionEffectivity(self) -> StepBasic_ProductDefinitionEffectivity: ... + def ProductDefinitionEffectivity( + self, + ) -> StepBasic_ProductDefinitionEffectivity: ... class StepAP214_AutoDesignDatedItem(StepData_SelectType): def __init__(self) -> None: ... def ApprovalPersonOrganization(self) -> StepBasic_ApprovalPersonOrganization: ... - def AutoDesignDateAndPersonAssignment(self) -> StepAP214_AutoDesignDateAndPersonAssignment: ... + def AutoDesignDateAndPersonAssignment( + self, + ) -> StepAP214_AutoDesignDateAndPersonAssignment: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def ProductDefinitionEffectivity(self) -> StepBasic_ProductDefinitionEffectivity: ... + def ProductDefinitionEffectivity( + self, + ) -> StepBasic_ProductDefinitionEffectivity: ... class StepAP214_AutoDesignDocumentReference(StepBasic_DocumentReference): def __init__(self) -> None: ... - def Init(self, aAssignedDocument: StepBasic_Document, aSource: TCollection_HAsciiString, aItems: StepAP214_HArray1OfAutoDesignReferencingItem) -> None: ... + def Init( + self, + aAssignedDocument: StepBasic_Document, + aSource: TCollection_HAsciiString, + aItems: StepAP214_HArray1OfAutoDesignReferencingItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignReferencingItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignReferencingItem: ... def NbItems(self) -> int: ... - def SetItems(self, aItems: StepAP214_HArray1OfAutoDesignReferencingItem) -> None: ... + def SetItems( + self, aItems: StepAP214_HArray1OfAutoDesignReferencingItem + ) -> None: ... class StepAP214_AutoDesignGeneralOrgItem(StepData_SelectType): def __init__(self) -> None: ... def AutoDesignDocumentReference(self) -> StepAP214_AutoDesignDocumentReference: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def ExternallyDefinedRepresentation(self) -> StepRepr_ExternallyDefinedRepresentation: ... + def ExternallyDefinedRepresentation( + self, + ) -> StepRepr_ExternallyDefinedRepresentation: ... def Product(self) -> StepBasic_Product: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... def ProductDefinitionFormation(self) -> StepBasic_ProductDefinitionFormation: ... - def ProductDefinitionRelationship(self) -> StepBasic_ProductDefinitionRelationship: ... - def ProductDefinitionWithAssociatedDocuments(self) -> StepBasic_ProductDefinitionWithAssociatedDocuments: ... + def ProductDefinitionRelationship( + self, + ) -> StepBasic_ProductDefinitionRelationship: ... + def ProductDefinitionWithAssociatedDocuments( + self, + ) -> StepBasic_ProductDefinitionWithAssociatedDocuments: ... def Representation(self) -> StepRepr_Representation: ... class StepAP214_AutoDesignGroupAssignment(StepBasic_GroupAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedGroup: StepBasic_Group, aItems: StepAP214_HArray1OfAutoDesignGroupedItem) -> None: ... + def Init( + self, + aAssignedGroup: StepBasic_Group, + aItems: StepAP214_HArray1OfAutoDesignGroupedItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignGroupedItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignGroupedItem: ... def NbItems(self) -> int: ... @@ -615,13 +779,23 @@ class StepAP214_AutoDesignGroupAssignment(StepBasic_GroupAssignment): class StepAP214_AutoDesignGroupedItem(StepData_SelectType): def __init__(self) -> None: ... - def AdvancedBrepShapeRepresentation(self) -> StepShape_AdvancedBrepShapeRepresentation: ... + def AdvancedBrepShapeRepresentation( + self, + ) -> StepShape_AdvancedBrepShapeRepresentation: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def CsgShapeRepresentation(self) -> StepShape_CsgShapeRepresentation: ... - def FacetedBrepShapeRepresentation(self) -> StepShape_FacetedBrepShapeRepresentation: ... - def GeometricallyBoundedSurfaceShapeRepresentation(self) -> StepShape_GeometricallyBoundedSurfaceShapeRepresentation: ... - def GeometricallyBoundedWireframeShapeRepresentation(self) -> StepShape_GeometricallyBoundedWireframeShapeRepresentation: ... - def ManifoldSurfaceShapeRepresentation(self) -> StepShape_ManifoldSurfaceShapeRepresentation: ... + def FacetedBrepShapeRepresentation( + self, + ) -> StepShape_FacetedBrepShapeRepresentation: ... + def GeometricallyBoundedSurfaceShapeRepresentation( + self, + ) -> StepShape_GeometricallyBoundedSurfaceShapeRepresentation: ... + def GeometricallyBoundedWireframeShapeRepresentation( + self, + ) -> StepShape_GeometricallyBoundedWireframeShapeRepresentation: ... + def ManifoldSurfaceShapeRepresentation( + self, + ) -> StepShape_ManifoldSurfaceShapeRepresentation: ... def Representation(self) -> StepRepr_Representation: ... def RepresentationItem(self) -> StepRepr_RepresentationItem: ... def ShapeAspect(self) -> StepRepr_ShapeAspect: ... @@ -630,15 +804,27 @@ class StepAP214_AutoDesignGroupedItem(StepData_SelectType): class StepAP214_AutoDesignNominalDateAndTimeAssignment(StepBasic_DateAndTimeAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedDateAndTime: StepBasic_DateAndTime, aRole: StepBasic_DateTimeRole, aItems: StepAP214_HArray1OfAutoDesignDateAndTimeItem) -> None: ... + def Init( + self, + aAssignedDateAndTime: StepBasic_DateAndTime, + aRole: StepBasic_DateTimeRole, + aItems: StepAP214_HArray1OfAutoDesignDateAndTimeItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignDateAndTimeItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignDateAndTimeItem: ... def NbItems(self) -> int: ... - def SetItems(self, aItems: StepAP214_HArray1OfAutoDesignDateAndTimeItem) -> None: ... + def SetItems( + self, aItems: StepAP214_HArray1OfAutoDesignDateAndTimeItem + ) -> None: ... class StepAP214_AutoDesignNominalDateAssignment(StepBasic_DateAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedDate: StepBasic_Date, aRole: StepBasic_DateRole, aItems: StepAP214_HArray1OfAutoDesignDatedItem) -> None: ... + def Init( + self, + aAssignedDate: StepBasic_Date, + aRole: StepBasic_DateRole, + aItems: StepAP214_HArray1OfAutoDesignDatedItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignDatedItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignDatedItem: ... def NbItems(self) -> int: ... @@ -646,15 +832,27 @@ class StepAP214_AutoDesignNominalDateAssignment(StepBasic_DateAssignment): class StepAP214_AutoDesignOrganizationAssignment(StepBasic_OrganizationAssignment): def __init__(self) -> None: ... - def Init(self, aAssignedOrganization: StepBasic_Organization, aRole: StepBasic_OrganizationRole, aItems: StepAP214_HArray1OfAutoDesignGeneralOrgItem) -> None: ... + def Init( + self, + aAssignedOrganization: StepBasic_Organization, + aRole: StepBasic_OrganizationRole, + aItems: StepAP214_HArray1OfAutoDesignGeneralOrgItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignGeneralOrgItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignGeneralOrgItem: ... def NbItems(self) -> int: ... def SetItems(self, aItems: StepAP214_HArray1OfAutoDesignGeneralOrgItem) -> None: ... -class StepAP214_AutoDesignPersonAndOrganizationAssignment(StepBasic_PersonAndOrganizationAssignment): +class StepAP214_AutoDesignPersonAndOrganizationAssignment( + StepBasic_PersonAndOrganizationAssignment +): def __init__(self) -> None: ... - def Init(self, aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization, aRole: StepBasic_PersonAndOrganizationRole, aItems: StepAP214_HArray1OfAutoDesignGeneralOrgItem) -> None: ... + def Init( + self, + aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization, + aRole: StepBasic_PersonAndOrganizationRole, + aItems: StepAP214_HArray1OfAutoDesignGeneralOrgItem, + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignGeneralOrgItem: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignGeneralOrgItem: ... def NbItems(self) -> int: ... @@ -662,18 +860,24 @@ class StepAP214_AutoDesignPersonAndOrganizationAssignment(StepBasic_PersonAndOrg class StepAP214_AutoDesignPresentedItem(StepVisual_PresentedItem): def __init__(self) -> None: ... - def Init(self, aItems: StepAP214_HArray1OfAutoDesignPresentedItemSelect) -> None: ... + def Init( + self, aItems: StepAP214_HArray1OfAutoDesignPresentedItemSelect + ) -> None: ... def Items(self) -> StepAP214_HArray1OfAutoDesignPresentedItemSelect: ... def ItemsValue(self, num: int) -> StepAP214_AutoDesignPresentedItemSelect: ... def NbItems(self) -> int: ... - def SetItems(self, aItems: StepAP214_HArray1OfAutoDesignPresentedItemSelect) -> None: ... + def SetItems( + self, aItems: StepAP214_HArray1OfAutoDesignPresentedItemSelect + ) -> None: ... class StepAP214_AutoDesignPresentedItemSelect(StepData_SelectType): def __init__(self) -> None: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def DocumentRelationship(self) -> StepBasic_DocumentRelationship: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... - def ProductDefinitionRelationship(self) -> StepBasic_ProductDefinitionRelationship: ... + def ProductDefinitionRelationship( + self, + ) -> StepBasic_ProductDefinitionRelationship: ... def ProductDefinitionShape(self) -> StepRepr_ProductDefinitionShape: ... def RepresentationRelationship(self) -> StepRepr_RepresentationRelationship: ... def ShapeAspect(self) -> StepRepr_ShapeAspect: ... @@ -683,22 +887,32 @@ class StepAP214_AutoDesignReferencingItem(StepData_SelectType): def Approval(self) -> StepBasic_Approval: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def DocumentRelationship(self) -> StepBasic_DocumentRelationship: ... - def ExternallyDefinedRepresentation(self) -> StepRepr_ExternallyDefinedRepresentation: ... + def ExternallyDefinedRepresentation( + self, + ) -> StepRepr_ExternallyDefinedRepresentation: ... def MappedItem(self) -> StepRepr_MappedItem: ... def MaterialDesignation(self) -> StepRepr_MaterialDesignation: ... def PresentationArea(self) -> StepVisual_PresentationArea: ... def PresentationView(self) -> StepVisual_PresentationView: ... def ProductCategory(self) -> StepBasic_ProductCategory: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... - def ProductDefinitionRelationship(self) -> StepBasic_ProductDefinitionRelationship: ... + def ProductDefinitionRelationship( + self, + ) -> StepBasic_ProductDefinitionRelationship: ... def PropertyDefinition(self) -> StepRepr_PropertyDefinition: ... def Representation(self) -> StepRepr_Representation: ... def RepresentationRelationship(self) -> StepRepr_RepresentationRelationship: ... def ShapeAspect(self) -> StepRepr_ShapeAspect: ... -class StepAP214_AutoDesignSecurityClassificationAssignment(StepBasic_SecurityClassificationAssignment): +class StepAP214_AutoDesignSecurityClassificationAssignment( + StepBasic_SecurityClassificationAssignment +): def __init__(self) -> None: ... - def Init(self, aAssignedSecurityClassification: StepBasic_SecurityClassification, aItems: StepBasic_HArray1OfApproval) -> None: ... + def Init( + self, + aAssignedSecurityClassification: StepBasic_SecurityClassification, + aItems: StepBasic_HArray1OfApproval, + ) -> None: ... def Items(self) -> StepBasic_HArray1OfApproval: ... def ItemsValue(self, num: int) -> StepBasic_Approval: ... def NbItems(self) -> int: ... @@ -709,12 +923,16 @@ class StepAP214_Class(StepBasic_Group): class StepAP214_DocumentReferenceItem(StepData_SelectType): def __init__(self) -> None: ... - def AppliedExternalIdentificationAssignment(self) -> StepAP214_AppliedExternalIdentificationAssignment: ... + def AppliedExternalIdentificationAssignment( + self, + ) -> StepAP214_AppliedExternalIdentificationAssignment: ... def Approval(self) -> StepBasic_Approval: ... def AssemblyComponentUsage(self) -> StepRepr_AssemblyComponentUsage: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def CharacterizedObject(self) -> StepBasic_CharacterizedObject: ... - def DescriptiveRepresentationItem(self) -> StepRepr_DescriptiveRepresentationItem: ... + def DescriptiveRepresentationItem( + self, + ) -> StepRepr_DescriptiveRepresentationItem: ... def DimensionalSize(self) -> StepShape_DimensionalSize: ... def ExternallyDefinedItem(self) -> StepBasic_ExternallyDefinedItem: ... def Group(self) -> StepBasic_Group: ... @@ -724,7 +942,9 @@ class StepAP214_DocumentReferenceItem(StepData_SelectType): def ProductCategory(self) -> StepBasic_ProductCategory: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... def ProductDefinitionContext(self) -> StepBasic_ProductDefinitionContext: ... - def ProductDefinitionRelationship(self) -> StepBasic_ProductDefinitionRelationship: ... + def ProductDefinitionRelationship( + self, + ) -> StepBasic_ProductDefinitionRelationship: ... def PropertyDefinition(self) -> StepRepr_PropertyDefinition: ... def Representation(self) -> StepRepr_Representation: ... def RepresentationItem(self) -> StepRepr_RepresentationItem: ... @@ -733,8 +953,12 @@ class StepAP214_DocumentReferenceItem(StepData_SelectType): class StepAP214_ExternalIdentificationItem(StepData_SelectType): def __init__(self) -> None: ... - def AppliedOrganizationAssignment(self) -> StepAP214_AppliedOrganizationAssignment: ... - def AppliedPersonAndOrganizationAssignment(self) -> StepAP214_AppliedPersonAndOrganizationAssignment: ... + def AppliedOrganizationAssignment( + self, + ) -> StepAP214_AppliedOrganizationAssignment: ... + def AppliedPersonAndOrganizationAssignment( + self, + ) -> StepAP214_AppliedPersonAndOrganizationAssignment: ... def Approval(self) -> StepBasic_Approval: ... def ApprovalStatus(self) -> StepBasic_ApprovalStatus: ... def CaseNum(self, ent: Standard_Transient) -> int: ... @@ -743,7 +967,9 @@ class StepAP214_ExternalIdentificationItem(StepData_SelectType): def DocumentFile(self) -> StepBasic_DocumentFile: ... def ExternalSource(self) -> StepBasic_ExternalSource: ... def ExternallyDefinedClass(self) -> StepAP214_ExternallyDefinedClass: ... - def ExternallyDefinedGeneralProperty(self) -> StepAP214_ExternallyDefinedGeneralProperty: ... + def ExternallyDefinedGeneralProperty( + self, + ) -> StepAP214_ExternallyDefinedGeneralProperty: ... def OrganizationalAddress(self) -> StepBasic_OrganizationalAddress: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... def SecurityClassification(self) -> StepBasic_SecurityClassification: ... @@ -753,8 +979,18 @@ class StepAP214_ExternalIdentificationItem(StepData_SelectType): class StepAP214_ExternallyDefinedGeneralProperty(StepBasic_GeneralProperty): def __init__(self) -> None: ... def ExternallyDefinedItem(self) -> StepBasic_ExternallyDefinedItem: ... - def Init(self, aGeneralProperty_Id: TCollection_HAsciiString, aGeneralProperty_Name: TCollection_HAsciiString, hasGeneralProperty_Description: bool, aGeneralProperty_Description: TCollection_HAsciiString, aExternallyDefinedItem_ItemId: StepBasic_SourceItem, aExternallyDefinedItem_Source: StepBasic_ExternalSource) -> None: ... - def SetExternallyDefinedItem(self, ExternallyDefinedItem: StepBasic_ExternallyDefinedItem) -> None: ... + def Init( + self, + aGeneralProperty_Id: TCollection_HAsciiString, + aGeneralProperty_Name: TCollection_HAsciiString, + hasGeneralProperty_Description: bool, + aGeneralProperty_Description: TCollection_HAsciiString, + aExternallyDefinedItem_ItemId: StepBasic_SourceItem, + aExternallyDefinedItem_Source: StepBasic_ExternalSource, + ) -> None: ... + def SetExternallyDefinedItem( + self, ExternallyDefinedItem: StepBasic_ExternallyDefinedItem + ) -> None: ... class StepAP214_GroupItem(StepData_SelectType): def __init__(self) -> None: ... @@ -764,21 +1000,31 @@ class StepAP214_GroupItem(StepData_SelectType): def MappedItem(self) -> StepRepr_MappedItem: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... def ProductDefinitionFormation(self) -> StepBasic_ProductDefinitionFormation: ... - def PropertyDefinitionRepresentation(self) -> StepRepr_PropertyDefinitionRepresentation: ... + def PropertyDefinitionRepresentation( + self, + ) -> StepRepr_PropertyDefinitionRepresentation: ... def Representation(self) -> StepRepr_Representation: ... def RepresentationItem(self) -> StepRepr_RepresentationItem: ... - def RepresentationRelationshipWithTransformation(self) -> StepRepr_RepresentationRelationshipWithTransformation: ... + def RepresentationRelationshipWithTransformation( + self, + ) -> StepRepr_RepresentationRelationshipWithTransformation: ... def ShapeAspect(self) -> StepRepr_ShapeAspect: ... def ShapeAspectRelationship(self) -> StepRepr_ShapeAspectRelationship: ... - def ShapeRepresentationRelationship(self) -> StepRepr_ShapeRepresentationRelationship: ... + def ShapeRepresentationRelationship( + self, + ) -> StepRepr_ShapeRepresentationRelationship: ... def StyledItem(self) -> StepVisual_StyledItem: ... - def TopologicalRepresentationItem(self) -> StepShape_TopologicalRepresentationItem: ... + def TopologicalRepresentationItem( + self, + ) -> StepShape_TopologicalRepresentationItem: ... class StepAP214_PresentedItemSelect(StepData_SelectType): def __init__(self) -> None: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... - def ProductDefinitionRelationship(self) -> StepBasic_ProductDefinitionRelationship: ... + def ProductDefinitionRelationship( + self, + ) -> StepBasic_ProductDefinitionRelationship: ... class StepAP214_Protocol(StepData_Protocol): def __init__(self) -> None: ... @@ -789,48 +1035,85 @@ class StepAP214_Protocol(StepData_Protocol): class StepAP214_RepItemGroup(StepBasic_Group): def __init__(self) -> None: ... - def Init(self, aGroup_Name: TCollection_HAsciiString, hasGroup_Description: bool, aGroup_Description: TCollection_HAsciiString, aRepresentationItem_Name: TCollection_HAsciiString) -> None: ... + def Init( + self, + aGroup_Name: TCollection_HAsciiString, + hasGroup_Description: bool, + aGroup_Description: TCollection_HAsciiString, + aRepresentationItem_Name: TCollection_HAsciiString, + ) -> None: ... def RepresentationItem(self) -> StepRepr_RepresentationItem: ... - def SetRepresentationItem(self, RepresentationItem: StepRepr_RepresentationItem) -> None: ... + def SetRepresentationItem( + self, RepresentationItem: StepRepr_RepresentationItem + ) -> None: ... class StepAP214_AutoDesignOrganizationItem(StepAP214_AutoDesignGeneralOrgItem): def __init__(self) -> None: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def Document(self) -> StepBasic_Document: ... - def PhysicallyModeledProductDefinition(self) -> StepBasic_PhysicallyModeledProductDefinition: ... + def PhysicallyModeledProductDefinition( + self, + ) -> StepBasic_PhysicallyModeledProductDefinition: ... class StepAP214_DateAndTimeItem(StepAP214_ApprovalItem): def __init__(self) -> None: ... - def AppliedOrganizationAssignment(self) -> StepAP214_AppliedOrganizationAssignment: ... - def AppliedPersonAndOrganizationAssignment(self) -> StepAP214_AppliedPersonAndOrganizationAssignment: ... + def AppliedOrganizationAssignment( + self, + ) -> StepAP214_AppliedOrganizationAssignment: ... + def AppliedPersonAndOrganizationAssignment( + self, + ) -> StepAP214_AppliedPersonAndOrganizationAssignment: ... def ApprovalPersonOrganization(self) -> StepBasic_ApprovalPersonOrganization: ... def CaseNum(self, ent: Standard_Transient) -> int: ... class StepAP214_DateItem(StepAP214_ApprovalItem): def __init__(self) -> None: ... - def AppliedOrganizationAssignment(self) -> StepAP214_AppliedOrganizationAssignment: ... - def AppliedPersonAndOrganizationAssignment(self) -> StepAP214_AppliedPersonAndOrganizationAssignment: ... - def AppliedSecurityClassificationAssignment(self) -> StepAP214_AppliedSecurityClassificationAssignment: ... + def AppliedOrganizationAssignment( + self, + ) -> StepAP214_AppliedOrganizationAssignment: ... + def AppliedPersonAndOrganizationAssignment( + self, + ) -> StepAP214_AppliedPersonAndOrganizationAssignment: ... + def AppliedSecurityClassificationAssignment( + self, + ) -> StepAP214_AppliedSecurityClassificationAssignment: ... def ApprovalPersonOrganization(self) -> StepBasic_ApprovalPersonOrganization: ... def CaseNum(self, ent: Standard_Transient) -> int: ... class StepAP214_ExternallyDefinedClass(StepAP214_Class): def __init__(self) -> None: ... def ExternallyDefinedItem(self) -> StepBasic_ExternallyDefinedItem: ... - def Init(self, aGroup_Name: TCollection_HAsciiString, hasGroup_Description: bool, aGroup_Description: TCollection_HAsciiString, aExternallyDefinedItem_ItemId: StepBasic_SourceItem, aExternallyDefinedItem_Source: StepBasic_ExternalSource) -> None: ... - def SetExternallyDefinedItem(self, ExternallyDefinedItem: StepBasic_ExternallyDefinedItem) -> None: ... + def Init( + self, + aGroup_Name: TCollection_HAsciiString, + hasGroup_Description: bool, + aGroup_Description: TCollection_HAsciiString, + aExternallyDefinedItem_ItemId: StepBasic_SourceItem, + aExternallyDefinedItem_Source: StepBasic_ExternalSource, + ) -> None: ... + def SetExternallyDefinedItem( + self, ExternallyDefinedItem: StepBasic_ExternallyDefinedItem + ) -> None: ... class StepAP214_OrganizationItem(StepAP214_ApprovalItem): def __init__(self) -> None: ... - def AppliedOrganizationAssignment(self) -> StepAP214_AppliedOrganizationAssignment: ... - def AppliedSecurityClassificationAssignment(self) -> StepAP214_AppliedSecurityClassificationAssignment: ... + def AppliedOrganizationAssignment( + self, + ) -> StepAP214_AppliedOrganizationAssignment: ... + def AppliedSecurityClassificationAssignment( + self, + ) -> StepAP214_AppliedSecurityClassificationAssignment: ... def Approval(self) -> StepBasic_Approval: ... def CaseNum(self, ent: Standard_Transient) -> int: ... class StepAP214_PersonAndOrganizationItem(StepAP214_ApprovalItem): def __init__(self) -> None: ... - def AppliedOrganizationAssignment(self) -> StepAP214_AppliedOrganizationAssignment: ... - def AppliedSecurityClassificationAssignment(self) -> StepAP214_AppliedSecurityClassificationAssignment: ... + def AppliedOrganizationAssignment( + self, + ) -> StepAP214_AppliedOrganizationAssignment: ... + def AppliedSecurityClassificationAssignment( + self, + ) -> StepAP214_AppliedSecurityClassificationAssignment: ... def Approval(self) -> StepBasic_Approval: ... def CaseNum(self, ent: Standard_Transient) -> int: ... @@ -850,90 +1133,103 @@ class StepAP214_SecurityClassificationItem(StepAP214_ApprovalItem): # harray1 classes -class StepAP214_HArray1OfApprovalItem(StepAP214_Array1OfApprovalItem, Standard_Transient): +class StepAP214_HArray1OfApprovalItem( + StepAP214_Array1OfApprovalItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfApprovalItem: ... - -class StepAP214_HArray1OfAutoDesignDateAndPersonItem(StepAP214_Array1OfAutoDesignDateAndPersonItem, Standard_Transient): +class StepAP214_HArray1OfAutoDesignDateAndPersonItem( + StepAP214_Array1OfAutoDesignDateAndPersonItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfAutoDesignDateAndPersonItem: ... - -class StepAP214_HArray1OfAutoDesignDateAndTimeItem(StepAP214_Array1OfAutoDesignDateAndTimeItem, Standard_Transient): +class StepAP214_HArray1OfAutoDesignDateAndTimeItem( + StepAP214_Array1OfAutoDesignDateAndTimeItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfAutoDesignDateAndTimeItem: ... - -class StepAP214_HArray1OfAutoDesignDatedItem(StepAP214_Array1OfAutoDesignDatedItem, Standard_Transient): +class StepAP214_HArray1OfAutoDesignDatedItem( + StepAP214_Array1OfAutoDesignDatedItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfAutoDesignDatedItem: ... - -class StepAP214_HArray1OfAutoDesignGeneralOrgItem(StepAP214_Array1OfAutoDesignGeneralOrgItem, Standard_Transient): +class StepAP214_HArray1OfAutoDesignGeneralOrgItem( + StepAP214_Array1OfAutoDesignGeneralOrgItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfAutoDesignGeneralOrgItem: ... - -class StepAP214_HArray1OfAutoDesignGroupedItem(StepAP214_Array1OfAutoDesignGroupedItem, Standard_Transient): +class StepAP214_HArray1OfAutoDesignGroupedItem( + StepAP214_Array1OfAutoDesignGroupedItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfAutoDesignGroupedItem: ... - -class StepAP214_HArray1OfAutoDesignPresentedItemSelect(StepAP214_Array1OfAutoDesignPresentedItemSelect, Standard_Transient): +class StepAP214_HArray1OfAutoDesignPresentedItemSelect( + StepAP214_Array1OfAutoDesignPresentedItemSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfAutoDesignPresentedItemSelect: ... - -class StepAP214_HArray1OfAutoDesignReferencingItem(StepAP214_Array1OfAutoDesignReferencingItem, Standard_Transient): +class StepAP214_HArray1OfAutoDesignReferencingItem( + StepAP214_Array1OfAutoDesignReferencingItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfAutoDesignReferencingItem: ... - -class StepAP214_HArray1OfDateAndTimeItem(StepAP214_Array1OfDateAndTimeItem, Standard_Transient): +class StepAP214_HArray1OfDateAndTimeItem( + StepAP214_Array1OfDateAndTimeItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfDateAndTimeItem: ... - class StepAP214_HArray1OfDateItem(StepAP214_Array1OfDateItem, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfDateItem: ... - -class StepAP214_HArray1OfDocumentReferenceItem(StepAP214_Array1OfDocumentReferenceItem, Standard_Transient): +class StepAP214_HArray1OfDocumentReferenceItem( + StepAP214_Array1OfDocumentReferenceItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfDocumentReferenceItem: ... - -class StepAP214_HArray1OfExternalIdentificationItem(StepAP214_Array1OfExternalIdentificationItem, Standard_Transient): +class StepAP214_HArray1OfExternalIdentificationItem( + StepAP214_Array1OfExternalIdentificationItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfExternalIdentificationItem: ... - class StepAP214_HArray1OfGroupItem(StepAP214_Array1OfGroupItem, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfGroupItem: ... - -class StepAP214_HArray1OfOrganizationItem(StepAP214_Array1OfOrganizationItem, Standard_Transient): +class StepAP214_HArray1OfOrganizationItem( + StepAP214_Array1OfOrganizationItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfOrganizationItem: ... - -class StepAP214_HArray1OfPersonAndOrganizationItem(StepAP214_Array1OfPersonAndOrganizationItem, Standard_Transient): +class StepAP214_HArray1OfPersonAndOrganizationItem( + StepAP214_Array1OfPersonAndOrganizationItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfPersonAndOrganizationItem: ... - -class StepAP214_HArray1OfPresentedItemSelect(StepAP214_Array1OfPresentedItemSelect, Standard_Transient): +class StepAP214_HArray1OfPresentedItemSelect( + StepAP214_Array1OfPresentedItemSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfPresentedItemSelect: ... - -class StepAP214_HArray1OfSecurityClassificationItem(StepAP214_Array1OfSecurityClassificationItem, Standard_Transient): +class StepAP214_HArray1OfSecurityClassificationItem( + StepAP214_Array1OfSecurityClassificationItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepAP214_Array1OfSecurityClassificationItem: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepAP242.pyi b/src/SWIG_files/wrapper/StepAP242.pyi index f445920dd..95d2ea79a 100644 --- a/src/SWIG_files/wrapper/StepAP242.pyi +++ b/src/SWIG_files/wrapper/StepAP242.pyi @@ -11,14 +11,21 @@ from OCC.Core.StepDimTol import * from OCC.Core.StepRepr import * from OCC.Core.StepAP214 import * - class StepAP242_IdAttribute(Standard_Transient): def __init__(self) -> None: ... def AttributeValue(self) -> TCollection_HAsciiString: ... def IdentifiedItem(self) -> StepAP242_IdAttributeSelect: ... - def Init(self, theAttributeValue: TCollection_HAsciiString, theIdentifiedItem: StepAP242_IdAttributeSelect) -> None: ... - def SetAttributeValue(self, theAttributeValue: TCollection_HAsciiString) -> None: ... - def SetIdentifiedItem(self, theIdentifiedItem: StepAP242_IdAttributeSelect) -> None: ... + def Init( + self, + theAttributeValue: TCollection_HAsciiString, + theIdentifiedItem: StepAP242_IdAttributeSelect, + ) -> None: ... + def SetAttributeValue( + self, theAttributeValue: TCollection_HAsciiString + ) -> None: ... + def SetIdentifiedItem( + self, theIdentifiedItem: StepAP242_IdAttributeSelect + ) -> None: ... class StepAP242_IdAttributeSelect(StepData_SelectType): def __init__(self) -> None: ... @@ -41,39 +48,70 @@ class StepAP242_ItemIdentifiedRepresentationUsage(Standard_Transient): def Description(self) -> TCollection_HAsciiString: ... def IdentifiedItem(self) -> StepRepr_HArray1OfRepresentationItem: ... def IdentifiedItemValue(self, num: int) -> StepRepr_RepresentationItem: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theDefinition: StepAP242_ItemIdentifiedRepresentationUsageDefinition, theUsedRepresentation: StepRepr_Representation, theIdentifiedItem: StepRepr_HArray1OfRepresentationItem) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theDefinition: StepAP242_ItemIdentifiedRepresentationUsageDefinition, + theUsedRepresentation: StepRepr_Representation, + theIdentifiedItem: StepRepr_HArray1OfRepresentationItem, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def NbIdentifiedItem(self) -> int: ... - def SetDefinition(self, theDefinition: StepAP242_ItemIdentifiedRepresentationUsageDefinition) -> None: ... + def SetDefinition( + self, theDefinition: StepAP242_ItemIdentifiedRepresentationUsageDefinition + ) -> None: ... def SetDescription(self, theDescription: TCollection_HAsciiString) -> None: ... - def SetIdentifiedItem(self, theIdentifiedItem: StepRepr_HArray1OfRepresentationItem) -> None: ... - def SetIdentifiedItemValue(self, num: int, theItem: StepRepr_RepresentationItem) -> None: ... + def SetIdentifiedItem( + self, theIdentifiedItem: StepRepr_HArray1OfRepresentationItem + ) -> None: ... + def SetIdentifiedItemValue( + self, num: int, theItem: StepRepr_RepresentationItem + ) -> None: ... def SetName(self, theName: TCollection_HAsciiString) -> None: ... - def SetUsedRepresentation(self, theUsedRepresentation: StepRepr_Representation) -> None: ... + def SetUsedRepresentation( + self, theUsedRepresentation: StepRepr_Representation + ) -> None: ... def UsedRepresentation(self) -> StepRepr_Representation: ... class StepAP242_ItemIdentifiedRepresentationUsageDefinition(StepData_SelectType): def __init__(self) -> None: ... def AppliedApprovalAssignment(self) -> StepAP214_AppliedApprovalAssignment: ... - def AppliedDateAndTimeAssignment(self) -> StepAP214_AppliedDateAndTimeAssignment: ... + def AppliedDateAndTimeAssignment( + self, + ) -> StepAP214_AppliedDateAndTimeAssignment: ... def AppliedDateAssignment(self) -> StepAP214_AppliedDateAssignment: ... def AppliedDocumentReference(self) -> StepAP214_AppliedDocumentReference: ... - def AppliedExternalIdentificationAssignment(self) -> StepAP214_AppliedExternalIdentificationAssignment: ... + def AppliedExternalIdentificationAssignment( + self, + ) -> StepAP214_AppliedExternalIdentificationAssignment: ... def AppliedGroupAssignment(self) -> StepAP214_AppliedGroupAssignment: ... - def AppliedOrganizationAssignment(self) -> StepAP214_AppliedOrganizationAssignment: ... - def AppliedPersonAndOrganizationAssignment(self) -> StepAP214_AppliedPersonAndOrganizationAssignment: ... - def AppliedSecurityClassificationAssignment(self) -> StepAP214_AppliedSecurityClassificationAssignment: ... + def AppliedOrganizationAssignment( + self, + ) -> StepAP214_AppliedOrganizationAssignment: ... + def AppliedPersonAndOrganizationAssignment( + self, + ) -> StepAP214_AppliedPersonAndOrganizationAssignment: ... + def AppliedSecurityClassificationAssignment( + self, + ) -> StepAP214_AppliedSecurityClassificationAssignment: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def DimensionalSize(self) -> StepShape_DimensionalSize: ... def GeneralProperty(self) -> StepBasic_GeneralProperty: ... def GeometricTolerance(self) -> StepDimTol_GeometricTolerance: ... - def ProductDefinitionRelationship(self) -> StepBasic_ProductDefinitionRelationship: ... + def ProductDefinitionRelationship( + self, + ) -> StepBasic_ProductDefinitionRelationship: ... def PropertyDefinition(self) -> StepRepr_PropertyDefinition: ... - def PropertyDefinitionRelationship(self) -> StepRepr_PropertyDefinitionRelationship: ... + def PropertyDefinitionRelationship( + self, + ) -> StepRepr_PropertyDefinitionRelationship: ... def ShapeAspect(self) -> StepRepr_ShapeAspect: ... def ShapeAspectRelationship(self) -> StepRepr_ShapeAspectRelationship: ... -class StepAP242_DraughtingModelItemAssociation(StepAP242_ItemIdentifiedRepresentationUsage): +class StepAP242_DraughtingModelItemAssociation( + StepAP242_ItemIdentifiedRepresentationUsage +): def __init__(self) -> None: ... class StepAP242_GeometricItemSpecificUsage(StepAP242_ItemIdentifiedRepresentationUsage): @@ -82,4 +120,3 @@ class StepAP242_GeometricItemSpecificUsage(StepAP242_ItemIdentifiedRepresentatio # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepBasic.pyi b/src/SWIG_files/wrapper/StepBasic.pyi index 0d10cccfb..7e9c16adb 100644 --- a/src/SWIG_files/wrapper/StepBasic.pyi +++ b/src/SWIG_files/wrapper/StepBasic.pyi @@ -8,7 +8,6 @@ from OCC.Core.StepData import * from OCC.Core.TColStd import * from OCC.Core.Interface import * - class StepBasic_Array1OfApproval: @overload def __init__(self) -> None: ... @@ -366,7 +365,13 @@ class StepBasic_Action(Standard_Transient): def ChosenMethod(self) -> StepBasic_ActionMethod: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aChosenMethod: StepBasic_ActionMethod) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aChosenMethod: StepBasic_ActionMethod, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetChosenMethod(self, ChosenMethod: StepBasic_ActionMethod) -> None: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... @@ -383,7 +388,14 @@ class StepBasic_ActionMethod(Standard_Transient): def Consequence(self) -> TCollection_HAsciiString: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aConsequence: TCollection_HAsciiString, aPurpose: TCollection_HAsciiString) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aConsequence: TCollection_HAsciiString, + aPurpose: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def Purpose(self) -> TCollection_HAsciiString: ... def SetConsequence(self, Consequence: TCollection_HAsciiString) -> None: ... @@ -394,12 +406,20 @@ class StepBasic_ActionMethod(Standard_Transient): class StepBasic_ActionRequestAssignment(Standard_Transient): def __init__(self) -> None: ... def AssignedActionRequest(self) -> StepBasic_VersionedActionRequest: ... - def Init(self, aAssignedActionRequest: StepBasic_VersionedActionRequest) -> None: ... - def SetAssignedActionRequest(self, AssignedActionRequest: StepBasic_VersionedActionRequest) -> None: ... + def Init( + self, aAssignedActionRequest: StepBasic_VersionedActionRequest + ) -> None: ... + def SetAssignedActionRequest( + self, AssignedActionRequest: StepBasic_VersionedActionRequest + ) -> None: ... class StepBasic_ActionRequestSolution(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aMethod: StepBasic_ActionMethod, aRequest: StepBasic_VersionedActionRequest) -> None: ... + def Init( + self, + aMethod: StepBasic_ActionMethod, + aRequest: StepBasic_VersionedActionRequest, + ) -> None: ... def Method(self) -> StepBasic_ActionMethod: ... def Request(self) -> StepBasic_VersionedActionRequest: ... def SetMethod(self, Method: StepBasic_ActionMethod) -> None: ... @@ -422,21 +442,55 @@ class StepBasic_Address(Standard_Transient): def HasTelephoneNumber(self) -> bool: ... def HasTelexNumber(self) -> bool: ... def HasTown(self) -> bool: ... - def Init(self, hasAinternalLocation: bool, aInternalLocation: TCollection_HAsciiString, hasAstreetNumber: bool, aStreetNumber: TCollection_HAsciiString, hasAstreet: bool, aStreet: TCollection_HAsciiString, hasApostalBox: bool, aPostalBox: TCollection_HAsciiString, hasAtown: bool, aTown: TCollection_HAsciiString, hasAregion: bool, aRegion: TCollection_HAsciiString, hasApostalCode: bool, aPostalCode: TCollection_HAsciiString, hasAcountry: bool, aCountry: TCollection_HAsciiString, hasAfacsimileNumber: bool, aFacsimileNumber: TCollection_HAsciiString, hasAtelephoneNumber: bool, aTelephoneNumber: TCollection_HAsciiString, hasAelectronicMailAddress: bool, aElectronicMailAddress: TCollection_HAsciiString, hasAtelexNumber: bool, aTelexNumber: TCollection_HAsciiString) -> None: ... + def Init( + self, + hasAinternalLocation: bool, + aInternalLocation: TCollection_HAsciiString, + hasAstreetNumber: bool, + aStreetNumber: TCollection_HAsciiString, + hasAstreet: bool, + aStreet: TCollection_HAsciiString, + hasApostalBox: bool, + aPostalBox: TCollection_HAsciiString, + hasAtown: bool, + aTown: TCollection_HAsciiString, + hasAregion: bool, + aRegion: TCollection_HAsciiString, + hasApostalCode: bool, + aPostalCode: TCollection_HAsciiString, + hasAcountry: bool, + aCountry: TCollection_HAsciiString, + hasAfacsimileNumber: bool, + aFacsimileNumber: TCollection_HAsciiString, + hasAtelephoneNumber: bool, + aTelephoneNumber: TCollection_HAsciiString, + hasAelectronicMailAddress: bool, + aElectronicMailAddress: TCollection_HAsciiString, + hasAtelexNumber: bool, + aTelexNumber: TCollection_HAsciiString, + ) -> None: ... def InternalLocation(self) -> TCollection_HAsciiString: ... def PostalBox(self) -> TCollection_HAsciiString: ... def PostalCode(self) -> TCollection_HAsciiString: ... def Region(self) -> TCollection_HAsciiString: ... def SetCountry(self, aCountry: TCollection_HAsciiString) -> None: ... - def SetElectronicMailAddress(self, aElectronicMailAddress: TCollection_HAsciiString) -> None: ... - def SetFacsimileNumber(self, aFacsimileNumber: TCollection_HAsciiString) -> None: ... - def SetInternalLocation(self, aInternalLocation: TCollection_HAsciiString) -> None: ... + def SetElectronicMailAddress( + self, aElectronicMailAddress: TCollection_HAsciiString + ) -> None: ... + def SetFacsimileNumber( + self, aFacsimileNumber: TCollection_HAsciiString + ) -> None: ... + def SetInternalLocation( + self, aInternalLocation: TCollection_HAsciiString + ) -> None: ... def SetPostalBox(self, aPostalBox: TCollection_HAsciiString) -> None: ... def SetPostalCode(self, aPostalCode: TCollection_HAsciiString) -> None: ... def SetRegion(self, aRegion: TCollection_HAsciiString) -> None: ... def SetStreet(self, aStreet: TCollection_HAsciiString) -> None: ... def SetStreetNumber(self, aStreetNumber: TCollection_HAsciiString) -> None: ... - def SetTelephoneNumber(self, aTelephoneNumber: TCollection_HAsciiString) -> None: ... + def SetTelephoneNumber( + self, aTelephoneNumber: TCollection_HAsciiString + ) -> None: ... def SetTelexNumber(self, aTelexNumber: TCollection_HAsciiString) -> None: ... def SetTown(self, aTown: TCollection_HAsciiString) -> None: ... def Street(self) -> TCollection_HAsciiString: ... @@ -466,9 +520,15 @@ class StepBasic_ApplicationContext(Standard_Transient): class StepBasic_ApplicationContextElement(Standard_Transient): def __init__(self) -> None: ... def FrameOfReference(self) -> StepBasic_ApplicationContext: ... - def Init(self, aName: TCollection_HAsciiString, aFrameOfReference: StepBasic_ApplicationContext) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aFrameOfReference: StepBasic_ApplicationContext, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... - def SetFrameOfReference(self, aFrameOfReference: StepBasic_ApplicationContext) -> None: ... + def SetFrameOfReference( + self, aFrameOfReference: StepBasic_ApplicationContext + ) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... class StepBasic_ApplicationProtocolDefinition(Standard_Transient): @@ -476,16 +536,26 @@ class StepBasic_ApplicationProtocolDefinition(Standard_Transient): def Application(self) -> StepBasic_ApplicationContext: ... def ApplicationInterpretedModelSchemaName(self) -> TCollection_HAsciiString: ... def ApplicationProtocolYear(self) -> int: ... - def Init(self, aStatus: TCollection_HAsciiString, aApplicationInterpretedModelSchemaName: TCollection_HAsciiString, aApplicationProtocolYear: int, aApplication: StepBasic_ApplicationContext) -> None: ... + def Init( + self, + aStatus: TCollection_HAsciiString, + aApplicationInterpretedModelSchemaName: TCollection_HAsciiString, + aApplicationProtocolYear: int, + aApplication: StepBasic_ApplicationContext, + ) -> None: ... def SetApplication(self, aApplication: StepBasic_ApplicationContext) -> None: ... - def SetApplicationInterpretedModelSchemaName(self, aApplicationInterpretedModelSchemaName: TCollection_HAsciiString) -> None: ... + def SetApplicationInterpretedModelSchemaName( + self, aApplicationInterpretedModelSchemaName: TCollection_HAsciiString + ) -> None: ... def SetApplicationProtocolYear(self, aApplicationProtocolYear: int) -> None: ... def SetStatus(self, aStatus: TCollection_HAsciiString) -> None: ... def Status(self) -> TCollection_HAsciiString: ... class StepBasic_Approval(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aStatus: StepBasic_ApprovalStatus, aLevel: TCollection_HAsciiString) -> None: ... + def Init( + self, aStatus: StepBasic_ApprovalStatus, aLevel: TCollection_HAsciiString + ) -> None: ... def Level(self) -> TCollection_HAsciiString: ... def SetLevel(self, aLevel: TCollection_HAsciiString) -> None: ... def SetStatus(self, aStatus: StepBasic_ApprovalStatus) -> None: ... @@ -500,24 +570,41 @@ class StepBasic_ApprovalDateTime(Standard_Transient): def __init__(self) -> None: ... def DateTime(self) -> StepBasic_DateTimeSelect: ... def DatedApproval(self) -> StepBasic_Approval: ... - def Init(self, aDateTime: StepBasic_DateTimeSelect, aDatedApproval: StepBasic_Approval) -> None: ... + def Init( + self, aDateTime: StepBasic_DateTimeSelect, aDatedApproval: StepBasic_Approval + ) -> None: ... def SetDateTime(self, aDateTime: StepBasic_DateTimeSelect) -> None: ... def SetDatedApproval(self, aDatedApproval: StepBasic_Approval) -> None: ... class StepBasic_ApprovalPersonOrganization(Standard_Transient): def __init__(self) -> None: ... def AuthorizedApproval(self) -> StepBasic_Approval: ... - def Init(self, aPersonOrganization: StepBasic_PersonOrganizationSelect, aAuthorizedApproval: StepBasic_Approval, aRole: StepBasic_ApprovalRole) -> None: ... + def Init( + self, + aPersonOrganization: StepBasic_PersonOrganizationSelect, + aAuthorizedApproval: StepBasic_Approval, + aRole: StepBasic_ApprovalRole, + ) -> None: ... def PersonOrganization(self) -> StepBasic_PersonOrganizationSelect: ... def Role(self) -> StepBasic_ApprovalRole: ... - def SetAuthorizedApproval(self, aAuthorizedApproval: StepBasic_Approval) -> None: ... - def SetPersonOrganization(self, aPersonOrganization: StepBasic_PersonOrganizationSelect) -> None: ... + def SetAuthorizedApproval( + self, aAuthorizedApproval: StepBasic_Approval + ) -> None: ... + def SetPersonOrganization( + self, aPersonOrganization: StepBasic_PersonOrganizationSelect + ) -> None: ... def SetRole(self, aRole: StepBasic_ApprovalRole) -> None: ... class StepBasic_ApprovalRelationship(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aRelatingApproval: StepBasic_Approval, aRelatedApproval: StepBasic_Approval) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aRelatingApproval: StepBasic_Approval, + aRelatedApproval: StepBasic_Approval, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RelatedApproval(self) -> StepBasic_Approval: ... def RelatingApproval(self) -> StepBasic_Approval: ... @@ -540,7 +627,12 @@ class StepBasic_ApprovalStatus(Standard_Transient): class StepBasic_Certification(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPurpose: TCollection_HAsciiString, aKind: StepBasic_CertificationType) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPurpose: TCollection_HAsciiString, + aKind: StepBasic_CertificationType, + ) -> None: ... def Kind(self) -> StepBasic_CertificationType: ... def Name(self) -> TCollection_HAsciiString: ... def Purpose(self) -> TCollection_HAsciiString: ... @@ -552,7 +644,9 @@ class StepBasic_CertificationAssignment(Standard_Transient): def __init__(self) -> None: ... def AssignedCertification(self) -> StepBasic_Certification: ... def Init(self, aAssignedCertification: StepBasic_Certification) -> None: ... - def SetAssignedCertification(self, AssignedCertification: StepBasic_Certification) -> None: ... + def SetAssignedCertification( + self, AssignedCertification: StepBasic_Certification + ) -> None: ... class StepBasic_CertificationType(Standard_Transient): def __init__(self) -> None: ... @@ -564,14 +658,24 @@ class StepBasic_CharacterizedObject(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... class StepBasic_Contract(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPurpose: TCollection_HAsciiString, aKind: StepBasic_ContractType) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPurpose: TCollection_HAsciiString, + aKind: StepBasic_ContractType, + ) -> None: ... def Kind(self) -> StepBasic_ContractType: ... def Name(self) -> TCollection_HAsciiString: ... def Purpose(self) -> TCollection_HAsciiString: ... @@ -595,7 +699,13 @@ class StepBasic_CoordinatedUniversalTimeOffset(Standard_Transient): def __init__(self) -> None: ... def HasMinuteOffset(self) -> bool: ... def HourOffset(self) -> int: ... - def Init(self, aHourOffset: int, hasAminuteOffset: bool, aMinuteOffset: int, aSense: StepBasic_AheadOrBehind) -> None: ... + def Init( + self, + aHourOffset: int, + hasAminuteOffset: bool, + aMinuteOffset: int, + aSense: StepBasic_AheadOrBehind, + ) -> None: ... def MinuteOffset(self) -> int: ... def Sense(self) -> StepBasic_AheadOrBehind: ... def SetHourOffset(self, aHourOffset: int) -> None: ... @@ -612,21 +722,29 @@ class StepBasic_Date(Standard_Transient): class StepBasic_DateAndTime(Standard_Transient): def __init__(self) -> None: ... def DateComponent(self) -> StepBasic_Date: ... - def Init(self, aDateComponent: StepBasic_Date, aTimeComponent: StepBasic_LocalTime) -> None: ... + def Init( + self, aDateComponent: StepBasic_Date, aTimeComponent: StepBasic_LocalTime + ) -> None: ... def SetDateComponent(self, aDateComponent: StepBasic_Date) -> None: ... def SetTimeComponent(self, aTimeComponent: StepBasic_LocalTime) -> None: ... def TimeComponent(self) -> StepBasic_LocalTime: ... class StepBasic_DateAndTimeAssignment(Standard_Transient): def AssignedDateAndTime(self) -> StepBasic_DateAndTime: ... - def Init(self, aAssignedDateAndTime: StepBasic_DateAndTime, aRole: StepBasic_DateTimeRole) -> None: ... + def Init( + self, aAssignedDateAndTime: StepBasic_DateAndTime, aRole: StepBasic_DateTimeRole + ) -> None: ... def Role(self) -> StepBasic_DateTimeRole: ... - def SetAssignedDateAndTime(self, aAssignedDateAndTime: StepBasic_DateAndTime) -> None: ... + def SetAssignedDateAndTime( + self, aAssignedDateAndTime: StepBasic_DateAndTime + ) -> None: ... def SetRole(self, aRole: StepBasic_DateTimeRole) -> None: ... class StepBasic_DateAssignment(Standard_Transient): def AssignedDate(self) -> StepBasic_Date: ... - def Init(self, aAssignedDate: StepBasic_Date, aRole: StepBasic_DateRole) -> None: ... + def Init( + self, aAssignedDate: StepBasic_Date, aRole: StepBasic_DateRole + ) -> None: ... def Role(self) -> StepBasic_DateRole: ... def SetAssignedDate(self, aAssignedDate: StepBasic_Date) -> None: ... def SetRole(self, aRole: StepBasic_DateRole) -> None: ... @@ -670,16 +788,31 @@ class StepBasic_DimensionalExponents(Standard_Transient): def __init__(self) -> None: ... def AmountOfSubstanceExponent(self) -> float: ... def ElectricCurrentExponent(self) -> float: ... - def Init(self, aLengthExponent: float, aMassExponent: float, aTimeExponent: float, aElectricCurrentExponent: float, aThermodynamicTemperatureExponent: float, aAmountOfSubstanceExponent: float, aLuminousIntensityExponent: float) -> None: ... + def Init( + self, + aLengthExponent: float, + aMassExponent: float, + aTimeExponent: float, + aElectricCurrentExponent: float, + aThermodynamicTemperatureExponent: float, + aAmountOfSubstanceExponent: float, + aLuminousIntensityExponent: float, + ) -> None: ... def LengthExponent(self) -> float: ... def LuminousIntensityExponent(self) -> float: ... def MassExponent(self) -> float: ... - def SetAmountOfSubstanceExponent(self, aAmountOfSubstanceExponent: float) -> None: ... + def SetAmountOfSubstanceExponent( + self, aAmountOfSubstanceExponent: float + ) -> None: ... def SetElectricCurrentExponent(self, aElectricCurrentExponent: float) -> None: ... def SetLengthExponent(self, aLengthExponent: float) -> None: ... - def SetLuminousIntensityExponent(self, aLuminousIntensityExponent: float) -> None: ... + def SetLuminousIntensityExponent( + self, aLuminousIntensityExponent: float + ) -> None: ... def SetMassExponent(self, aMassExponent: float) -> None: ... - def SetThermodynamicTemperatureExponent(self, aThermodynamicTemperatureExponent: float) -> None: ... + def SetThermodynamicTemperatureExponent( + self, aThermodynamicTemperatureExponent: float + ) -> None: ... def SetTimeExponent(self, aTimeExponent: float) -> None: ... def ThermodynamicTemperatureExponent(self) -> float: ... def TimeExponent(self) -> float: ... @@ -689,7 +822,14 @@ class StepBasic_Document(Standard_Transient): def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aKind: StepBasic_DocumentType) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aKind: StepBasic_DocumentType, + ) -> None: ... def Kind(self) -> StepBasic_DocumentType: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... @@ -701,18 +841,29 @@ class StepBasic_DocumentProductAssociation(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aRelatingDocument: StepBasic_Document, aRelatedProduct: StepBasic_ProductOrFormationOrDefinition) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aRelatingDocument: StepBasic_Document, + aRelatedProduct: StepBasic_ProductOrFormationOrDefinition, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RelatedProduct(self) -> StepBasic_ProductOrFormationOrDefinition: ... def RelatingDocument(self) -> StepBasic_Document: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... - def SetRelatedProduct(self, RelatedProduct: StepBasic_ProductOrFormationOrDefinition) -> None: ... + def SetRelatedProduct( + self, RelatedProduct: StepBasic_ProductOrFormationOrDefinition + ) -> None: ... def SetRelatingDocument(self, RelatingDocument: StepBasic_Document) -> None: ... class StepBasic_DocumentReference(Standard_Transient): def AssignedDocument(self) -> StepBasic_Document: ... - def Init0(self, aAssignedDocument: StepBasic_Document, aSource: TCollection_HAsciiString) -> None: ... + def Init0( + self, aAssignedDocument: StepBasic_Document, aSource: TCollection_HAsciiString + ) -> None: ... def SetAssignedDocument(self, aAssignedDocument: StepBasic_Document) -> None: ... def SetSource(self, aSource: TCollection_HAsciiString) -> None: ... def Source(self) -> TCollection_HAsciiString: ... @@ -720,7 +871,13 @@ class StepBasic_DocumentReference(Standard_Transient): class StepBasic_DocumentRelationship(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aRelating: StepBasic_Document, aRelated: StepBasic_Document) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aRelating: StepBasic_Document, + aRelated: StepBasic_Document, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RelatedDocument(self) -> StepBasic_Document: ... def RelatingDocument(self) -> StepBasic_Document: ... @@ -731,11 +888,15 @@ class StepBasic_DocumentRelationship(Standard_Transient): class StepBasic_DocumentRepresentationType(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aRepresentedDocument: StepBasic_Document) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aRepresentedDocument: StepBasic_Document + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RepresentedDocument(self) -> StepBasic_Document: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... - def SetRepresentedDocument(self, RepresentedDocument: StepBasic_Document) -> None: ... + def SetRepresentedDocument( + self, RepresentedDocument: StepBasic_Document + ) -> None: ... class StepBasic_DocumentType(Standard_Transient): def __init__(self) -> None: ... @@ -745,7 +906,12 @@ class StepBasic_DocumentType(Standard_Transient): class StepBasic_DocumentUsageConstraint(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aSource: StepBasic_Document, ase: TCollection_HAsciiString, asev: TCollection_HAsciiString) -> None: ... + def Init( + self, + aSource: StepBasic_Document, + ase: TCollection_HAsciiString, + asev: TCollection_HAsciiString, + ) -> None: ... def SetSource(self, aSource: StepBasic_Document) -> None: ... def SetSubjectElement(self, ase: TCollection_HAsciiString) -> None: ... def SetSubjectElementValue(self, asev: TCollection_HAsciiString) -> None: ... @@ -763,7 +929,9 @@ class StepBasic_EffectivityAssignment(Standard_Transient): def __init__(self) -> None: ... def AssignedEffectivity(self) -> StepBasic_Effectivity: ... def Init(self, aAssignedEffectivity: StepBasic_Effectivity) -> None: ... - def SetAssignedEffectivity(self, AssignedEffectivity: StepBasic_Effectivity) -> None: ... + def SetAssignedEffectivity( + self, AssignedEffectivity: StepBasic_Effectivity + ) -> None: ... class StepBasic_EulerAngles(Standard_Transient): def __init__(self) -> None: ... @@ -779,7 +947,9 @@ class StepBasic_ExternalSource(Standard_Transient): class StepBasic_ExternallyDefinedItem(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aItemId: StepBasic_SourceItem, aSource: StepBasic_ExternalSource) -> None: ... + def Init( + self, aItemId: StepBasic_SourceItem, aSource: StepBasic_ExternalSource + ) -> None: ... def ItemId(self) -> StepBasic_SourceItem: ... def SetItemId(self, ItemId: StepBasic_SourceItem) -> None: ... def SetSource(self, Source: StepBasic_ExternalSource) -> None: ... @@ -790,7 +960,13 @@ class StepBasic_GeneralProperty(Standard_Transient): def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetId(self, Id: TCollection_HAsciiString) -> None: ... @@ -800,20 +976,36 @@ class StepBasic_GeneralPropertyRelationship(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aRelatingGeneralProperty: StepBasic_GeneralProperty, aRelatedGeneralProperty: StepBasic_GeneralProperty) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aRelatingGeneralProperty: StepBasic_GeneralProperty, + aRelatedGeneralProperty: StepBasic_GeneralProperty, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RelatedGeneralProperty(self) -> StepBasic_GeneralProperty: ... def RelatingGeneralProperty(self) -> StepBasic_GeneralProperty: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... - def SetRelatedGeneralProperty(self, RelatedGeneralProperty: StepBasic_GeneralProperty) -> None: ... - def SetRelatingGeneralProperty(self, RelatingGeneralProperty: StepBasic_GeneralProperty) -> None: ... + def SetRelatedGeneralProperty( + self, RelatedGeneralProperty: StepBasic_GeneralProperty + ) -> None: ... + def SetRelatingGeneralProperty( + self, RelatingGeneralProperty: StepBasic_GeneralProperty + ) -> None: ... class StepBasic_Group(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... @@ -828,7 +1020,14 @@ class StepBasic_GroupRelationship(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aRelatingGroup: StepBasic_Group, aRelatedGroup: StepBasic_Group) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aRelatingGroup: StepBasic_Group, + aRelatedGroup: StepBasic_Group, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RelatedGroup(self) -> StepBasic_Group: ... def RelatingGroup(self) -> StepBasic_Group: ... @@ -840,7 +1039,9 @@ class StepBasic_GroupRelationship(Standard_Transient): class StepBasic_IdentificationAssignment(Standard_Transient): def __init__(self) -> None: ... def AssignedId(self) -> TCollection_HAsciiString: ... - def Init(self, aAssignedId: TCollection_HAsciiString, aRole: StepBasic_IdentificationRole) -> None: ... + def Init( + self, aAssignedId: TCollection_HAsciiString, aRole: StepBasic_IdentificationRole + ) -> None: ... def Role(self) -> StepBasic_IdentificationRole: ... def SetAssignedId(self, AssignedId: TCollection_HAsciiString) -> None: ... def SetRole(self, Role: StepBasic_IdentificationRole) -> None: ... @@ -849,7 +1050,12 @@ class StepBasic_IdentificationRole(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... @@ -859,7 +1065,15 @@ class StepBasic_LocalTime(Standard_Transient): def HasMinuteComponent(self) -> bool: ... def HasSecondComponent(self) -> bool: ... def HourComponent(self) -> int: ... - def Init(self, aHourComponent: int, hasAminuteComponent: bool, aMinuteComponent: int, hasAsecondComponent: bool, aSecondComponent: float, aZone: StepBasic_CoordinatedUniversalTimeOffset) -> None: ... + def Init( + self, + aHourComponent: int, + hasAminuteComponent: bool, + aMinuteComponent: int, + hasAsecondComponent: bool, + aSecondComponent: float, + aZone: StepBasic_CoordinatedUniversalTimeOffset, + ) -> None: ... def MinuteComponent(self) -> int: ... def SecondComponent(self) -> float: ... def SetHourComponent(self, aHourComponent: int) -> None: ... @@ -878,7 +1092,11 @@ class StepBasic_MeasureValueMember(StepData_SelectReal): class StepBasic_MeasureWithUnit(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aValueComponent: StepBasic_MeasureValueMember, aUnitComponent: StepBasic_Unit) -> None: ... + def Init( + self, + aValueComponent: StepBasic_MeasureValueMember, + aUnitComponent: StepBasic_Unit, + ) -> None: ... def SetUnitComponent(self, aUnitComponent: StepBasic_Unit) -> None: ... def SetValueComponent(self, aValueComponent: float) -> None: ... def SetValueComponentMember(self, val: StepBasic_MeasureValueMember) -> None: ... @@ -902,7 +1120,12 @@ class StepBasic_ObjectRole(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... @@ -912,7 +1135,13 @@ class StepBasic_Organization(Standard_Transient): def Description(self) -> TCollection_HAsciiString: ... def HasId(self) -> bool: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, hasAid: bool, aId: TCollection_HAsciiString, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + hasAid: bool, + aId: TCollection_HAsciiString, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... def SetId(self, aId: TCollection_HAsciiString) -> None: ... @@ -921,9 +1150,15 @@ class StepBasic_Organization(Standard_Transient): class StepBasic_OrganizationAssignment(Standard_Transient): def AssignedOrganization(self) -> StepBasic_Organization: ... - def Init(self, aAssignedOrganization: StepBasic_Organization, aRole: StepBasic_OrganizationRole) -> None: ... + def Init( + self, + aAssignedOrganization: StepBasic_Organization, + aRole: StepBasic_OrganizationRole, + ) -> None: ... def Role(self) -> StepBasic_OrganizationRole: ... - def SetAssignedOrganization(self, aAssignedOrganization: StepBasic_Organization) -> None: ... + def SetAssignedOrganization( + self, aAssignedOrganization: StepBasic_Organization + ) -> None: ... def SetRole(self, aRole: StepBasic_OrganizationRole) -> None: ... class StepBasic_OrganizationRole(Standard_Transient): @@ -941,7 +1176,20 @@ class StepBasic_Person(Standard_Transient): def HasPrefixTitles(self) -> bool: ... def HasSuffixTitles(self) -> bool: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, hasAlastName: bool, aLastName: TCollection_HAsciiString, hasAfirstName: bool, aFirstName: TCollection_HAsciiString, hasAmiddleNames: bool, aMiddleNames: Interface_HArray1OfHAsciiString, hasAprefixTitles: bool, aPrefixTitles: Interface_HArray1OfHAsciiString, hasAsuffixTitles: bool, aSuffixTitles: Interface_HArray1OfHAsciiString) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + hasAlastName: bool, + aLastName: TCollection_HAsciiString, + hasAfirstName: bool, + aFirstName: TCollection_HAsciiString, + hasAmiddleNames: bool, + aMiddleNames: Interface_HArray1OfHAsciiString, + hasAprefixTitles: bool, + aPrefixTitles: Interface_HArray1OfHAsciiString, + hasAsuffixTitles: bool, + aSuffixTitles: Interface_HArray1OfHAsciiString, + ) -> None: ... def LastName(self) -> TCollection_HAsciiString: ... def MiddleNames(self) -> Interface_HArray1OfHAsciiString: ... def MiddleNamesValue(self, num: int) -> TCollection_HAsciiString: ... @@ -954,8 +1202,12 @@ class StepBasic_Person(Standard_Transient): def SetId(self, aId: TCollection_HAsciiString) -> None: ... def SetLastName(self, aLastName: TCollection_HAsciiString) -> None: ... def SetMiddleNames(self, aMiddleNames: Interface_HArray1OfHAsciiString) -> None: ... - def SetPrefixTitles(self, aPrefixTitles: Interface_HArray1OfHAsciiString) -> None: ... - def SetSuffixTitles(self, aSuffixTitles: Interface_HArray1OfHAsciiString) -> None: ... + def SetPrefixTitles( + self, aPrefixTitles: Interface_HArray1OfHAsciiString + ) -> None: ... + def SetSuffixTitles( + self, aSuffixTitles: Interface_HArray1OfHAsciiString + ) -> None: ... def SuffixTitles(self) -> Interface_HArray1OfHAsciiString: ... def SuffixTitlesValue(self, num: int) -> TCollection_HAsciiString: ... def UnSetFirstName(self) -> None: ... @@ -966,7 +1218,9 @@ class StepBasic_Person(Standard_Transient): class StepBasic_PersonAndOrganization(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aThePerson: StepBasic_Person, aTheOrganization: StepBasic_Organization) -> None: ... + def Init( + self, aThePerson: StepBasic_Person, aTheOrganization: StepBasic_Organization + ) -> None: ... def SetTheOrganization(self, aTheOrganization: StepBasic_Organization) -> None: ... def SetThePerson(self, aThePerson: StepBasic_Person) -> None: ... def TheOrganization(self) -> StepBasic_Organization: ... @@ -974,9 +1228,15 @@ class StepBasic_PersonAndOrganization(Standard_Transient): class StepBasic_PersonAndOrganizationAssignment(Standard_Transient): def AssignedPersonAndOrganization(self) -> StepBasic_PersonAndOrganization: ... - def Init(self, aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization, aRole: StepBasic_PersonAndOrganizationRole) -> None: ... + def Init( + self, + aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization, + aRole: StepBasic_PersonAndOrganizationRole, + ) -> None: ... def Role(self) -> StepBasic_PersonAndOrganizationRole: ... - def SetAssignedPersonAndOrganization(self, aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization) -> None: ... + def SetAssignedPersonAndOrganization( + self, aAssignedPersonAndOrganization: StepBasic_PersonAndOrganization + ) -> None: ... def SetRole(self, aRole: StepBasic_PersonAndOrganizationRole) -> None: ... class StepBasic_PersonAndOrganizationRole(Standard_Transient): @@ -998,11 +1258,19 @@ class StepBasic_Product(Standard_Transient): def FrameOfReference(self) -> StepBasic_HArray1OfProductContext: ... def FrameOfReferenceValue(self, num: int) -> StepBasic_ProductContext: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aFrameOfReference: StepBasic_HArray1OfProductContext) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aFrameOfReference: StepBasic_HArray1OfProductContext, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def NbFrameOfReference(self) -> int: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... - def SetFrameOfReference(self, aFrameOfReference: StepBasic_HArray1OfProductContext) -> None: ... + def SetFrameOfReference( + self, aFrameOfReference: StepBasic_HArray1OfProductContext + ) -> None: ... def SetId(self, aId: TCollection_HAsciiString) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... @@ -1010,7 +1278,12 @@ class StepBasic_ProductCategory(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasAdescription: bool, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasAdescription: bool, + aDescription: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... @@ -1021,7 +1294,14 @@ class StepBasic_ProductCategoryRelationship(Standard_Transient): def Category(self) -> StepBasic_ProductCategory: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aCategory: StepBasic_ProductCategory, aSubCategory: StepBasic_ProductCategory) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aCategory: StepBasic_ProductCategory, + aSubCategory: StepBasic_ProductCategory, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetCategory(self, Category: StepBasic_ProductCategory) -> None: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... @@ -1035,17 +1315,32 @@ class StepBasic_ProductDefinition(Standard_Transient): def Formation(self) -> StepBasic_ProductDefinitionFormation: ... def FrameOfReference(self) -> StepBasic_ProductDefinitionContext: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aFormation: StepBasic_ProductDefinitionFormation, aFrameOfReference: StepBasic_ProductDefinitionContext) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aFormation: StepBasic_ProductDefinitionFormation, + aFrameOfReference: StepBasic_ProductDefinitionContext, + ) -> None: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... - def SetFormation(self, aFormation: StepBasic_ProductDefinitionFormation) -> None: ... - def SetFrameOfReference(self, aFrameOfReference: StepBasic_ProductDefinitionContext) -> None: ... + def SetFormation( + self, aFormation: StepBasic_ProductDefinitionFormation + ) -> None: ... + def SetFrameOfReference( + self, aFrameOfReference: StepBasic_ProductDefinitionContext + ) -> None: ... def SetId(self, aId: TCollection_HAsciiString) -> None: ... class StepBasic_ProductDefinitionFormation(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aOfProduct: StepBasic_Product) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aOfProduct: StepBasic_Product, + ) -> None: ... def OfProduct(self) -> StepBasic_Product: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... def SetId(self, aId: TCollection_HAsciiString) -> None: ... @@ -1055,37 +1350,73 @@ class StepBasic_ProductDefinitionFormationRelationship(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aRelatingProductDefinitionFormation: StepBasic_ProductDefinitionFormation, aRelatedProductDefinitionFormation: StepBasic_ProductDefinitionFormation) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aRelatingProductDefinitionFormation: StepBasic_ProductDefinitionFormation, + aRelatedProductDefinitionFormation: StepBasic_ProductDefinitionFormation, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... - def RelatedProductDefinitionFormation(self) -> StepBasic_ProductDefinitionFormation: ... - def RelatingProductDefinitionFormation(self) -> StepBasic_ProductDefinitionFormation: ... + def RelatedProductDefinitionFormation( + self, + ) -> StepBasic_ProductDefinitionFormation: ... + def RelatingProductDefinitionFormation( + self, + ) -> StepBasic_ProductDefinitionFormation: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetId(self, Id: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... - def SetRelatedProductDefinitionFormation(self, RelatedProductDefinitionFormation: StepBasic_ProductDefinitionFormation) -> None: ... - def SetRelatingProductDefinitionFormation(self, RelatingProductDefinitionFormation: StepBasic_ProductDefinitionFormation) -> None: ... + def SetRelatedProductDefinitionFormation( + self, RelatedProductDefinitionFormation: StepBasic_ProductDefinitionFormation + ) -> None: ... + def SetRelatingProductDefinitionFormation( + self, RelatingProductDefinitionFormation: StepBasic_ProductDefinitionFormation + ) -> None: ... class StepBasic_ProductDefinitionOrReference(StepData_SelectType): def __init__(self) -> None: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... def ProductDefinitionReference(self) -> StepBasic_ProductDefinitionReference: ... - def ProductDefinitionReferenceWithLocalRepresentation(self) -> StepBasic_ProductDefinitionReferenceWithLocalRepresentation: ... + def ProductDefinitionReferenceWithLocalRepresentation( + self, + ) -> StepBasic_ProductDefinitionReferenceWithLocalRepresentation: ... class StepBasic_ProductDefinitionReference(Standard_Transient): def __init__(self) -> None: ... def HasIdOwningOrganizationName(self) -> bool: ... def IdOwningOrganizationName(self) -> TCollection_HAsciiString: ... @overload - def Init(self, theSource: StepBasic_ExternalSource, theProductId: TCollection_HAsciiString, theProductDefinitionFormationId: TCollection_HAsciiString, theProductDefinitionId: TCollection_HAsciiString, theIdOwningOrganizationName: TCollection_HAsciiString) -> None: ... + def Init( + self, + theSource: StepBasic_ExternalSource, + theProductId: TCollection_HAsciiString, + theProductDefinitionFormationId: TCollection_HAsciiString, + theProductDefinitionId: TCollection_HAsciiString, + theIdOwningOrganizationName: TCollection_HAsciiString, + ) -> None: ... @overload - def Init(self, theSource: StepBasic_ExternalSource, theProductId: TCollection_HAsciiString, theProductDefinitionFormationId: TCollection_HAsciiString, theProductDefinitionId: TCollection_HAsciiString) -> None: ... + def Init( + self, + theSource: StepBasic_ExternalSource, + theProductId: TCollection_HAsciiString, + theProductDefinitionFormationId: TCollection_HAsciiString, + theProductDefinitionId: TCollection_HAsciiString, + ) -> None: ... def ProductDefinitionFormationId(self) -> TCollection_HAsciiString: ... def ProductDefinitionId(self) -> TCollection_HAsciiString: ... def ProductId(self) -> TCollection_HAsciiString: ... - def SetIdOwningOrganizationName(self, theIdOwningOrganizationName: TCollection_HAsciiString) -> None: ... - def SetProductDefinitionFormationId(self, theProductDefinitionFormationId: TCollection_HAsciiString) -> None: ... - def SetProductDefinitionId(self, theProductDefinitionId: TCollection_HAsciiString) -> None: ... + def SetIdOwningOrganizationName( + self, theIdOwningOrganizationName: TCollection_HAsciiString + ) -> None: ... + def SetProductDefinitionFormationId( + self, theProductDefinitionFormationId: TCollection_HAsciiString + ) -> None: ... + def SetProductDefinitionId( + self, theProductDefinitionId: TCollection_HAsciiString + ) -> None: ... def SetProductId(self, theProductId: TCollection_HAsciiString) -> None: ... def SetSource(self, theSource: StepBasic_ExternalSource) -> None: ... def Source(self) -> StepBasic_ExternalSource: ... @@ -1096,25 +1427,53 @@ class StepBasic_ProductDefinitionRelationship(Standard_Transient): def HasDescription(self) -> bool: ... def Id(self) -> TCollection_HAsciiString: ... @overload - def Init(self, aId: TCollection_HAsciiString, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aRelatingProductDefinition: StepBasic_ProductDefinition, aRelatedProductDefinition: StepBasic_ProductDefinition) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aRelatingProductDefinition: StepBasic_ProductDefinition, + aRelatedProductDefinition: StepBasic_ProductDefinition, + ) -> None: ... @overload - def Init(self, aId: TCollection_HAsciiString, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aRelatingProductDefinition: StepBasic_ProductDefinitionOrReference, aRelatedProductDefinition: StepBasic_ProductDefinitionOrReference) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aRelatingProductDefinition: StepBasic_ProductDefinitionOrReference, + aRelatedProductDefinition: StepBasic_ProductDefinitionOrReference, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RelatedProductDefinition(self) -> StepBasic_ProductDefinition: ... - def RelatedProductDefinitionAP242(self) -> StepBasic_ProductDefinitionOrReference: ... + def RelatedProductDefinitionAP242( + self, + ) -> StepBasic_ProductDefinitionOrReference: ... def RelatingProductDefinition(self) -> StepBasic_ProductDefinition: ... - def RelatingProductDefinitionAP242(self) -> StepBasic_ProductDefinitionOrReference: ... + def RelatingProductDefinitionAP242( + self, + ) -> StepBasic_ProductDefinitionOrReference: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetId(self, Id: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... @overload - def SetRelatedProductDefinition(self, RelatedProductDefinition: StepBasic_ProductDefinition) -> None: ... + def SetRelatedProductDefinition( + self, RelatedProductDefinition: StepBasic_ProductDefinition + ) -> None: ... @overload - def SetRelatedProductDefinition(self, RelatedProductDefinition: StepBasic_ProductDefinitionOrReference) -> None: ... + def SetRelatedProductDefinition( + self, RelatedProductDefinition: StepBasic_ProductDefinitionOrReference + ) -> None: ... @overload - def SetRelatingProductDefinition(self, RelatingProductDefinition: StepBasic_ProductDefinition) -> None: ... + def SetRelatingProductDefinition( + self, RelatingProductDefinition: StepBasic_ProductDefinition + ) -> None: ... @overload - def SetRelatingProductDefinition(self, RelatingProductDefinition: StepBasic_ProductDefinitionOrReference) -> None: ... + def SetRelatingProductDefinition( + self, RelatingProductDefinition: StepBasic_ProductDefinitionOrReference + ) -> None: ... class StepBasic_ProductOrFormationOrDefinition(StepData_SelectType): def __init__(self) -> None: ... @@ -1125,7 +1484,9 @@ class StepBasic_ProductOrFormationOrDefinition(StepData_SelectType): class StepBasic_RoleAssociation(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aRole: StepBasic_ObjectRole, aItemWithRole: StepBasic_RoleSelect) -> None: ... + def Init( + self, aRole: StepBasic_ObjectRole, aItemWithRole: StepBasic_RoleSelect + ) -> None: ... def ItemWithRole(self) -> StepBasic_RoleSelect: ... def Role(self) -> StepBasic_ObjectRole: ... def SetItemWithRole(self, ItemWithRole: StepBasic_RoleSelect) -> None: ... @@ -1144,22 +1505,35 @@ class StepBasic_RoleSelect(StepData_SelectType): def EffectivityAssignment(self) -> StepBasic_EffectivityAssignment: ... def GroupAssignment(self) -> StepBasic_GroupAssignment: ... def NameAssignment(self) -> StepBasic_NameAssignment: ... - def SecurityClassificationAssignment(self) -> StepBasic_SecurityClassificationAssignment: ... + def SecurityClassificationAssignment( + self, + ) -> StepBasic_SecurityClassificationAssignment: ... class StepBasic_SecurityClassification(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPurpose: TCollection_HAsciiString, aSecurityLevel: StepBasic_SecurityClassificationLevel) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPurpose: TCollection_HAsciiString, + aSecurityLevel: StepBasic_SecurityClassificationLevel, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def Purpose(self) -> TCollection_HAsciiString: ... def SecurityLevel(self) -> StepBasic_SecurityClassificationLevel: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... def SetPurpose(self, aPurpose: TCollection_HAsciiString) -> None: ... - def SetSecurityLevel(self, aSecurityLevel: StepBasic_SecurityClassificationLevel) -> None: ... + def SetSecurityLevel( + self, aSecurityLevel: StepBasic_SecurityClassificationLevel + ) -> None: ... class StepBasic_SecurityClassificationAssignment(Standard_Transient): def AssignedSecurityClassification(self) -> StepBasic_SecurityClassification: ... - def Init(self, aAssignedSecurityClassification: StepBasic_SecurityClassification) -> None: ... - def SetAssignedSecurityClassification(self, aAssignedSecurityClassification: StepBasic_SecurityClassification) -> None: ... + def Init( + self, aAssignedSecurityClassification: StepBasic_SecurityClassification + ) -> None: ... + def SetAssignedSecurityClassification( + self, aAssignedSecurityClassification: StepBasic_SecurityClassification + ) -> None: ... class StepBasic_SecurityClassificationLevel(Standard_Transient): def __init__(self) -> None: ... @@ -1198,7 +1572,14 @@ class StepBasic_VersionedActionRequest(Standard_Transient): def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, aVersion: TCollection_HAsciiString, aPurpose: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aVersion: TCollection_HAsciiString, + aPurpose: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + ) -> None: ... def Purpose(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetId(self, Id: TCollection_HAsciiString) -> None: ... @@ -1212,7 +1593,9 @@ class StepBasic_AreaUnit(StepBasic_NamedUnit): class StepBasic_CalendarDate(StepBasic_Date): def __init__(self) -> None: ... def DayComponent(self) -> int: ... - def Init(self, aYearComponent: int, aDayComponent: int, aMonthComponent: int) -> None: ... + def Init( + self, aYearComponent: int, aDayComponent: int, aMonthComponent: int + ) -> None: ... def MonthComponent(self) -> int: ... def SetDayComponent(self, aDayComponent: int) -> None: ... def SetMonthComponent(self, aMonthComponent: int) -> None: ... @@ -1220,9 +1603,16 @@ class StepBasic_CalendarDate(StepBasic_Date): class StepBasic_ConversionBasedUnit(StepBasic_NamedUnit): def __init__(self) -> None: ... def ConversionFactor(self) -> StepBasic_MeasureWithUnit: ... - def Init(self, aDimensions: StepBasic_DimensionalExponents, aName: TCollection_HAsciiString, aConversionFactor: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aDimensions: StepBasic_DimensionalExponents, + aName: TCollection_HAsciiString, + aConversionFactor: StepBasic_MeasureWithUnit, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... - def SetConversionFactor(self, aConversionFactor: StepBasic_MeasureWithUnit) -> None: ... + def SetConversionFactor( + self, aConversionFactor: StepBasic_MeasureWithUnit + ) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... class StepBasic_DigitalDocument(StepBasic_Document): @@ -1231,15 +1621,32 @@ class StepBasic_DigitalDocument(StepBasic_Document): class StepBasic_DocumentFile(StepBasic_Document): def __init__(self) -> None: ... def CharacterizedObject(self) -> StepBasic_CharacterizedObject: ... - def Init(self, aDocument_Id: TCollection_HAsciiString, aDocument_Name: TCollection_HAsciiString, hasDocument_Description: bool, aDocument_Description: TCollection_HAsciiString, aDocument_Kind: StepBasic_DocumentType, aCharacterizedObject_Name: TCollection_HAsciiString, hasCharacterizedObject_Description: bool, aCharacterizedObject_Description: TCollection_HAsciiString) -> None: ... - def SetCharacterizedObject(self, CharacterizedObject: StepBasic_CharacterizedObject) -> None: ... + def Init( + self, + aDocument_Id: TCollection_HAsciiString, + aDocument_Name: TCollection_HAsciiString, + hasDocument_Description: bool, + aDocument_Description: TCollection_HAsciiString, + aDocument_Kind: StepBasic_DocumentType, + aCharacterizedObject_Name: TCollection_HAsciiString, + hasCharacterizedObject_Description: bool, + aCharacterizedObject_Description: TCollection_HAsciiString, + ) -> None: ... + def SetCharacterizedObject( + self, CharacterizedObject: StepBasic_CharacterizedObject + ) -> None: ... class StepBasic_DocumentProductEquivalence(StepBasic_DocumentProductAssociation): def __init__(self) -> None: ... class StepBasic_ExternalIdentificationAssignment(StepBasic_IdentificationAssignment): def __init__(self) -> None: ... - def Init(self, aIdentificationAssignment_AssignedId: TCollection_HAsciiString, aIdentificationAssignment_Role: StepBasic_IdentificationRole, aSource: StepBasic_ExternalSource) -> None: ... + def Init( + self, + aIdentificationAssignment_AssignedId: TCollection_HAsciiString, + aIdentificationAssignment_Role: StepBasic_IdentificationRole, + aSource: StepBasic_ExternalSource, + ) -> None: ... def SetSource(self, Source: StepBasic_ExternalSource) -> None: ... def Source(self) -> StepBasic_ExternalSource: ... @@ -1264,17 +1671,75 @@ class StepBasic_OrdinalDate(StepBasic_Date): class StepBasic_OrganizationalAddress(StepBasic_Address): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, hasAinternalLocation: bool, aInternalLocation: TCollection_HAsciiString, hasAstreetNumber: bool, aStreetNumber: TCollection_HAsciiString, hasAstreet: bool, aStreet: TCollection_HAsciiString, hasApostalBox: bool, aPostalBox: TCollection_HAsciiString, hasAtown: bool, aTown: TCollection_HAsciiString, hasAregion: bool, aRegion: TCollection_HAsciiString, hasApostalCode: bool, aPostalCode: TCollection_HAsciiString, hasAcountry: bool, aCountry: TCollection_HAsciiString, hasAfacsimileNumber: bool, aFacsimileNumber: TCollection_HAsciiString, hasAtelephoneNumber: bool, aTelephoneNumber: TCollection_HAsciiString, hasAelectronicMailAddress: bool, aElectronicMailAddress: TCollection_HAsciiString, hasAtelexNumber: bool, aTelexNumber: TCollection_HAsciiString, aOrganizations: StepBasic_HArray1OfOrganization, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + hasAinternalLocation: bool, + aInternalLocation: TCollection_HAsciiString, + hasAstreetNumber: bool, + aStreetNumber: TCollection_HAsciiString, + hasAstreet: bool, + aStreet: TCollection_HAsciiString, + hasApostalBox: bool, + aPostalBox: TCollection_HAsciiString, + hasAtown: bool, + aTown: TCollection_HAsciiString, + hasAregion: bool, + aRegion: TCollection_HAsciiString, + hasApostalCode: bool, + aPostalCode: TCollection_HAsciiString, + hasAcountry: bool, + aCountry: TCollection_HAsciiString, + hasAfacsimileNumber: bool, + aFacsimileNumber: TCollection_HAsciiString, + hasAtelephoneNumber: bool, + aTelephoneNumber: TCollection_HAsciiString, + hasAelectronicMailAddress: bool, + aElectronicMailAddress: TCollection_HAsciiString, + hasAtelexNumber: bool, + aTelexNumber: TCollection_HAsciiString, + aOrganizations: StepBasic_HArray1OfOrganization, + aDescription: TCollection_HAsciiString, + ) -> None: ... def NbOrganizations(self) -> int: ... def Organizations(self) -> StepBasic_HArray1OfOrganization: ... def OrganizationsValue(self, num: int) -> StepBasic_Organization: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... - def SetOrganizations(self, aOrganizations: StepBasic_HArray1OfOrganization) -> None: ... + def SetOrganizations( + self, aOrganizations: StepBasic_HArray1OfOrganization + ) -> None: ... class StepBasic_PersonalAddress(StepBasic_Address): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, hasAinternalLocation: bool, aInternalLocation: TCollection_HAsciiString, hasAstreetNumber: bool, aStreetNumber: TCollection_HAsciiString, hasAstreet: bool, aStreet: TCollection_HAsciiString, hasApostalBox: bool, aPostalBox: TCollection_HAsciiString, hasAtown: bool, aTown: TCollection_HAsciiString, hasAregion: bool, aRegion: TCollection_HAsciiString, hasApostalCode: bool, aPostalCode: TCollection_HAsciiString, hasAcountry: bool, aCountry: TCollection_HAsciiString, hasAfacsimileNumber: bool, aFacsimileNumber: TCollection_HAsciiString, hasAtelephoneNumber: bool, aTelephoneNumber: TCollection_HAsciiString, hasAelectronicMailAddress: bool, aElectronicMailAddress: TCollection_HAsciiString, hasAtelexNumber: bool, aTelexNumber: TCollection_HAsciiString, aPeople: StepBasic_HArray1OfPerson, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + hasAinternalLocation: bool, + aInternalLocation: TCollection_HAsciiString, + hasAstreetNumber: bool, + aStreetNumber: TCollection_HAsciiString, + hasAstreet: bool, + aStreet: TCollection_HAsciiString, + hasApostalBox: bool, + aPostalBox: TCollection_HAsciiString, + hasAtown: bool, + aTown: TCollection_HAsciiString, + hasAregion: bool, + aRegion: TCollection_HAsciiString, + hasApostalCode: bool, + aPostalCode: TCollection_HAsciiString, + hasAcountry: bool, + aCountry: TCollection_HAsciiString, + hasAfacsimileNumber: bool, + aFacsimileNumber: TCollection_HAsciiString, + hasAtelephoneNumber: bool, + aTelephoneNumber: TCollection_HAsciiString, + hasAelectronicMailAddress: bool, + aElectronicMailAddress: TCollection_HAsciiString, + hasAtelexNumber: bool, + aTelexNumber: TCollection_HAsciiString, + aPeople: StepBasic_HArray1OfPerson, + aDescription: TCollection_HAsciiString, + ) -> None: ... def NbPeople(self) -> int: ... def People(self) -> StepBasic_HArray1OfPerson: ... def PeopleValue(self, num: int) -> StepBasic_Person: ... @@ -1292,37 +1757,75 @@ class StepBasic_PlaneAngleUnit(StepBasic_NamedUnit): class StepBasic_ProductConceptContext(StepBasic_ApplicationContextElement): def __init__(self) -> None: ... - def Init(self, aApplicationContextElement_Name: TCollection_HAsciiString, aApplicationContextElement_FrameOfReference: StepBasic_ApplicationContext, aMarketSegmentType: TCollection_HAsciiString) -> None: ... + def Init( + self, + aApplicationContextElement_Name: TCollection_HAsciiString, + aApplicationContextElement_FrameOfReference: StepBasic_ApplicationContext, + aMarketSegmentType: TCollection_HAsciiString, + ) -> None: ... def MarketSegmentType(self) -> TCollection_HAsciiString: ... - def SetMarketSegmentType(self, MarketSegmentType: TCollection_HAsciiString) -> None: ... + def SetMarketSegmentType( + self, MarketSegmentType: TCollection_HAsciiString + ) -> None: ... class StepBasic_ProductContext(StepBasic_ApplicationContextElement): def __init__(self) -> None: ... def DisciplineType(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aFrameOfReference: StepBasic_ApplicationContext, aDisciplineType: TCollection_HAsciiString) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aFrameOfReference: StepBasic_ApplicationContext, + aDisciplineType: TCollection_HAsciiString, + ) -> None: ... def SetDisciplineType(self, aDisciplineType: TCollection_HAsciiString) -> None: ... class StepBasic_ProductDefinitionContext(StepBasic_ApplicationContextElement): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aFrameOfReference: StepBasic_ApplicationContext, aLifeCycleStage: TCollection_HAsciiString) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aFrameOfReference: StepBasic_ApplicationContext, + aLifeCycleStage: TCollection_HAsciiString, + ) -> None: ... def LifeCycleStage(self) -> TCollection_HAsciiString: ... def SetLifeCycleStage(self, aLifeCycleStage: TCollection_HAsciiString) -> None: ... class StepBasic_ProductDefinitionEffectivity(StepBasic_Effectivity): def __init__(self) -> None: ... - def Init(self, aId: TCollection_HAsciiString, aUsage: StepBasic_ProductDefinitionRelationship) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aUsage: StepBasic_ProductDefinitionRelationship, + ) -> None: ... def SetUsage(self, aUsage: StepBasic_ProductDefinitionRelationship) -> None: ... def Usage(self) -> StepBasic_ProductDefinitionRelationship: ... -class StepBasic_ProductDefinitionFormationWithSpecifiedSource(StepBasic_ProductDefinitionFormation): - def __init__(self) -> None: ... - def Init(self, aId: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aOfProduct: StepBasic_Product, aMakeOrBuy: StepBasic_Source) -> None: ... +class StepBasic_ProductDefinitionFormationWithSpecifiedSource( + StepBasic_ProductDefinitionFormation +): + def __init__(self) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aOfProduct: StepBasic_Product, + aMakeOrBuy: StepBasic_Source, + ) -> None: ... def MakeOrBuy(self) -> StepBasic_Source: ... def SetMakeOrBuy(self, aMakeOrBuy: StepBasic_Source) -> None: ... -class StepBasic_ProductDefinitionReferenceWithLocalRepresentation(StepBasic_ProductDefinition): - def __init__(self) -> None: ... - def Init(self, theSource: StepBasic_ExternalSource, theId: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theFormation: StepBasic_ProductDefinitionFormation, theFrameOfReference: StepBasic_ProductDefinitionContext) -> None: ... +class StepBasic_ProductDefinitionReferenceWithLocalRepresentation( + StepBasic_ProductDefinition +): + def __init__(self) -> None: ... + def Init( + self, + theSource: StepBasic_ExternalSource, + theId: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theFormation: StepBasic_ProductDefinitionFormation, + theFrameOfReference: StepBasic_ProductDefinitionContext, + ) -> None: ... def SetSource(self, theSource: StepBasic_ExternalSource) -> None: ... def Source(self) -> StepBasic_ExternalSource: ... @@ -1330,14 +1833,27 @@ class StepBasic_ProductDefinitionWithAssociatedDocuments(StepBasic_ProductDefini def __init__(self) -> None: ... def DocIds(self) -> StepBasic_HArray1OfDocument: ... def DocIdsValue(self, num: int) -> StepBasic_Document: ... - def Init(self, aId: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aFormation: StepBasic_ProductDefinitionFormation, aFrame: StepBasic_ProductDefinitionContext, aDocIds: StepBasic_HArray1OfDocument) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aFormation: StepBasic_ProductDefinitionFormation, + aFrame: StepBasic_ProductDefinitionContext, + aDocIds: StepBasic_HArray1OfDocument, + ) -> None: ... def NbDocIds(self) -> int: ... def SetDocIds(self, DocIds: StepBasic_HArray1OfDocument) -> None: ... def SetDocIdsValue(self, num: int, adoc: StepBasic_Document) -> None: ... class StepBasic_ProductRelatedProductCategory(StepBasic_ProductCategory): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, hasAdescription: bool, aDescription: TCollection_HAsciiString, aProducts: StepBasic_HArray1OfProduct) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasAdescription: bool, + aDescription: TCollection_HAsciiString, + aProducts: StepBasic_HArray1OfProduct, + ) -> None: ... def NbProducts(self) -> int: ... def Products(self) -> StepBasic_HArray1OfProduct: ... def ProductsValue(self, num: int) -> StepBasic_Product: ... @@ -1353,7 +1869,9 @@ class StepBasic_SiUnit(StepBasic_NamedUnit): def __init__(self) -> None: ... def Dimensions(self) -> StepBasic_DimensionalExponents: ... def HasPrefix(self) -> bool: ... - def Init(self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName) -> None: ... + def Init( + self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName + ) -> None: ... def Name(self) -> StepBasic_SiUnitName: ... def Prefix(self) -> StepBasic_SiPrefix: ... def SetDimensions(self, aDimensions: StepBasic_DimensionalExponents) -> None: ... @@ -1379,7 +1897,13 @@ class StepBasic_TimeUnit(StepBasic_NamedUnit): class StepBasic_UncertaintyMeasureWithUnit(StepBasic_MeasureWithUnit): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aValueComponent: StepBasic_MeasureValueMember, aUnitComponent: StepBasic_Unit, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aValueComponent: StepBasic_MeasureValueMember, + aUnitComponent: StepBasic_Unit, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... @@ -1391,7 +1915,13 @@ class StepBasic_WeekOfYearAndDayDate(StepBasic_Date): def __init__(self) -> None: ... def DayComponent(self) -> int: ... def HasDayComponent(self) -> bool: ... - def Init(self, aYearComponent: int, aWeekComponent: int, hasAdayComponent: bool, aDayComponent: int) -> None: ... + def Init( + self, + aYearComponent: int, + aWeekComponent: int, + hasAdayComponent: bool, + aDayComponent: int, + ) -> None: ... def SetDayComponent(self, aDayComponent: int) -> None: ... def SetWeekComponent(self, aWeekComponent: int) -> None: ... def UnSetDayComponent(self) -> None: ... @@ -1404,37 +1934,67 @@ class StepBasic_ConversionBasedUnitAndAreaUnit(StepBasic_ConversionBasedUnit): class StepBasic_ConversionBasedUnitAndLengthUnit(StepBasic_ConversionBasedUnit): def __init__(self) -> None: ... - def Init(self, aDimensions: StepBasic_DimensionalExponents, aName: TCollection_HAsciiString, aConversionFactor: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aDimensions: StepBasic_DimensionalExponents, + aName: TCollection_HAsciiString, + aConversionFactor: StepBasic_MeasureWithUnit, + ) -> None: ... def LengthUnit(self) -> StepBasic_LengthUnit: ... def SetLengthUnit(self, aLengthUnit: StepBasic_LengthUnit) -> None: ... class StepBasic_ConversionBasedUnitAndMassUnit(StepBasic_ConversionBasedUnit): def __init__(self) -> None: ... - def Init(self, aDimensions: StepBasic_DimensionalExponents, aName: TCollection_HAsciiString, aConversionFactor: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aDimensions: StepBasic_DimensionalExponents, + aName: TCollection_HAsciiString, + aConversionFactor: StepBasic_MeasureWithUnit, + ) -> None: ... def MassUnit(self) -> StepBasic_MassUnit: ... def SetMassUnit(self, aMassUnit: StepBasic_MassUnit) -> None: ... class StepBasic_ConversionBasedUnitAndPlaneAngleUnit(StepBasic_ConversionBasedUnit): def __init__(self) -> None: ... - def Init(self, aDimensions: StepBasic_DimensionalExponents, aName: TCollection_HAsciiString, aConversionFactor: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aDimensions: StepBasic_DimensionalExponents, + aName: TCollection_HAsciiString, + aConversionFactor: StepBasic_MeasureWithUnit, + ) -> None: ... def PlaneAngleUnit(self) -> StepBasic_PlaneAngleUnit: ... def SetPlaneAngleUnit(self, aPlaneAngleUnit: StepBasic_PlaneAngleUnit) -> None: ... class StepBasic_ConversionBasedUnitAndRatioUnit(StepBasic_ConversionBasedUnit): def __init__(self) -> None: ... - def Init(self, aDimensions: StepBasic_DimensionalExponents, aName: TCollection_HAsciiString, aConversionFactor: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aDimensions: StepBasic_DimensionalExponents, + aName: TCollection_HAsciiString, + aConversionFactor: StepBasic_MeasureWithUnit, + ) -> None: ... def RatioUnit(self) -> StepBasic_RatioUnit: ... def SetRatioUnit(self, aRatioUnit: StepBasic_RatioUnit) -> None: ... class StepBasic_ConversionBasedUnitAndSolidAngleUnit(StepBasic_ConversionBasedUnit): def __init__(self) -> None: ... - def Init(self, aDimensions: StepBasic_DimensionalExponents, aName: TCollection_HAsciiString, aConversionFactor: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aDimensions: StepBasic_DimensionalExponents, + aName: TCollection_HAsciiString, + aConversionFactor: StepBasic_MeasureWithUnit, + ) -> None: ... def SetSolidAngleUnit(self, aSolidAngleUnit: StepBasic_SolidAngleUnit) -> None: ... def SolidAngleUnit(self) -> StepBasic_SolidAngleUnit: ... class StepBasic_ConversionBasedUnitAndTimeUnit(StepBasic_ConversionBasedUnit): def __init__(self) -> None: ... - def Init(self, aDimensions: StepBasic_DimensionalExponents, aName: TCollection_HAsciiString, aConversionFactor: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aDimensions: StepBasic_DimensionalExponents, + aName: TCollection_HAsciiString, + aConversionFactor: StepBasic_MeasureWithUnit, + ) -> None: ... def SetTimeUnit(self, aTimeUnit: StepBasic_TimeUnit) -> None: ... def TimeUnit(self) -> StepBasic_TimeUnit: ... @@ -1459,43 +2019,61 @@ class StepBasic_SiUnitAndAreaUnit(StepBasic_SiUnit): class StepBasic_SiUnitAndLengthUnit(StepBasic_SiUnit): def __init__(self) -> None: ... - def Init(self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName) -> None: ... + def Init( + self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName + ) -> None: ... def LengthUnit(self) -> StepBasic_LengthUnit: ... def SetLengthUnit(self, aLengthUnit: StepBasic_LengthUnit) -> None: ... class StepBasic_SiUnitAndMassUnit(StepBasic_SiUnit): def __init__(self) -> None: ... - def Init(self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName) -> None: ... + def Init( + self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName + ) -> None: ... def MassUnit(self) -> StepBasic_MassUnit: ... def SetMassUnit(self, aMassUnit: StepBasic_MassUnit) -> None: ... class StepBasic_SiUnitAndPlaneAngleUnit(StepBasic_SiUnit): def __init__(self) -> None: ... - def Init(self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName) -> None: ... + def Init( + self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName + ) -> None: ... def PlaneAngleUnit(self) -> StepBasic_PlaneAngleUnit: ... def SetPlaneAngleUnit(self, aPlaneAngleUnit: StepBasic_PlaneAngleUnit) -> None: ... class StepBasic_SiUnitAndRatioUnit(StepBasic_SiUnit): def __init__(self) -> None: ... - def Init(self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName) -> None: ... + def Init( + self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName + ) -> None: ... def RatioUnit(self) -> StepBasic_RatioUnit: ... def SetRatioUnit(self, aRatioUnit: StepBasic_RatioUnit) -> None: ... class StepBasic_SiUnitAndSolidAngleUnit(StepBasic_SiUnit): def __init__(self) -> None: ... - def Init(self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName) -> None: ... + def Init( + self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName + ) -> None: ... def SetSolidAngleUnit(self, aSolidAngleUnit: StepBasic_SolidAngleUnit) -> None: ... def SolidAngleUnit(self) -> StepBasic_SolidAngleUnit: ... class StepBasic_SiUnitAndThermodynamicTemperatureUnit(StepBasic_SiUnit): def __init__(self) -> None: ... - def Init(self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName) -> None: ... - def SetThermodynamicTemperatureUnit(self, aThermodynamicTemperatureUnit: StepBasic_ThermodynamicTemperatureUnit) -> None: ... - def ThermodynamicTemperatureUnit(self) -> StepBasic_ThermodynamicTemperatureUnit: ... + def Init( + self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName + ) -> None: ... + def SetThermodynamicTemperatureUnit( + self, aThermodynamicTemperatureUnit: StepBasic_ThermodynamicTemperatureUnit + ) -> None: ... + def ThermodynamicTemperatureUnit( + self, + ) -> StepBasic_ThermodynamicTemperatureUnit: ... class StepBasic_SiUnitAndTimeUnit(StepBasic_SiUnit): def __init__(self) -> None: ... - def Init(self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName) -> None: ... + def Init( + self, hasAprefix: bool, aPrefix: StepBasic_SiPrefix, aName: StepBasic_SiUnitName + ) -> None: ... def SetTimeUnit(self, aTimeUnit: StepBasic_TimeUnit) -> None: ... def TimeUnit(self) -> StepBasic_TimeUnit: ... @@ -1504,10 +2082,10 @@ class StepBasic_SiUnitAndVolumeUnit(StepBasic_SiUnit): def SetVolumeUnit(self, aVolumeUnit: StepBasic_VolumeUnit) -> None: ... def VolumeUnit(self) -> StepBasic_VolumeUnit: ... -#classnotwrapped +# classnotwrapped class StepBasic_GeneralPropertyAssociation: ... -#classnotwrapped +# classnotwrapped class StepRepr_MakeFromUsageOption: ... # harray1 classes @@ -1516,51 +2094,51 @@ class StepBasic_HArray1OfApproval(StepBasic_Array1OfApproval, Standard_Transient def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfApproval: ... - -class StepBasic_HArray1OfDerivedUnitElement(StepBasic_Array1OfDerivedUnitElement, Standard_Transient): +class StepBasic_HArray1OfDerivedUnitElement( + StepBasic_Array1OfDerivedUnitElement, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfDerivedUnitElement: ... - class StepBasic_HArray1OfDocument(StepBasic_Array1OfDocument, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfDocument: ... - class StepBasic_HArray1OfNamedUnit(StepBasic_Array1OfNamedUnit, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfNamedUnit: ... - -class StepBasic_HArray1OfOrganization(StepBasic_Array1OfOrganization, Standard_Transient): +class StepBasic_HArray1OfOrganization( + StepBasic_Array1OfOrganization, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfOrganization: ... - class StepBasic_HArray1OfPerson(StepBasic_Array1OfPerson, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfPerson: ... - class StepBasic_HArray1OfProduct(StepBasic_Array1OfProduct, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfProduct: ... - -class StepBasic_HArray1OfProductContext(StepBasic_Array1OfProductContext, Standard_Transient): +class StepBasic_HArray1OfProductContext( + StepBasic_Array1OfProductContext, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfProductContext: ... - -class StepBasic_HArray1OfProductDefinition(StepBasic_Array1OfProductDefinition, Standard_Transient): +class StepBasic_HArray1OfProductDefinition( + StepBasic_Array1OfProductDefinition, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfProductDefinition: ... - -class StepBasic_HArray1OfUncertaintyMeasureWithUnit(StepBasic_Array1OfUncertaintyMeasureWithUnit, Standard_Transient): +class StepBasic_HArray1OfUncertaintyMeasureWithUnit( + StepBasic_Array1OfUncertaintyMeasureWithUnit, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepBasic_Array1OfUncertaintyMeasureWithUnit: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepData.pyi b/src/SWIG_files/wrapper/StepData.pyi index 1650644bb..c7d73f83a 100644 --- a/src/SWIG_files/wrapper/StepData.pyi +++ b/src/SWIG_files/wrapper/StepData.pyi @@ -8,7 +8,6 @@ from OCC.Core.TCollection import * from OCC.Core.TColStd import * from OCC.Core.Resource import * - class StepData_Array1OfField: @overload def __init__(self) -> None: ... @@ -69,7 +68,49 @@ class StepData_EDescr(Standard_Transient): def NewEntity(self) -> StepData_Described: ... class StepData_EnumTool: - def __init__(self, e0: Optional[str] = "", e1: Optional[str] = "", e2: Optional[str] = "", e3: Optional[str] = "", e4: Optional[str] = "", e5: Optional[str] = "", e6: Optional[str] = "", e7: Optional[str] = "", e8: Optional[str] = "", e9: Optional[str] = "", e10: Optional[str] = "", e11: Optional[str] = "", e12: Optional[str] = "", e13: Optional[str] = "", e14: Optional[str] = "", e15: Optional[str] = "", e16: Optional[str] = "", e17: Optional[str] = "", e18: Optional[str] = "", e19: Optional[str] = "", e20: Optional[str] = "", e21: Optional[str] = "", e22: Optional[str] = "", e23: Optional[str] = "", e24: Optional[str] = "", e25: Optional[str] = "", e26: Optional[str] = "", e27: Optional[str] = "", e28: Optional[str] = "", e29: Optional[str] = "", e30: Optional[str] = "", e31: Optional[str] = "", e32: Optional[str] = "", e33: Optional[str] = "", e34: Optional[str] = "", e35: Optional[str] = "", e36: Optional[str] = "", e37: Optional[str] = "", e38: Optional[str] = "", e39: Optional[str] = "") -> None: ... + def __init__( + self, + e0: Optional[str] = "", + e1: Optional[str] = "", + e2: Optional[str] = "", + e3: Optional[str] = "", + e4: Optional[str] = "", + e5: Optional[str] = "", + e6: Optional[str] = "", + e7: Optional[str] = "", + e8: Optional[str] = "", + e9: Optional[str] = "", + e10: Optional[str] = "", + e11: Optional[str] = "", + e12: Optional[str] = "", + e13: Optional[str] = "", + e14: Optional[str] = "", + e15: Optional[str] = "", + e16: Optional[str] = "", + e17: Optional[str] = "", + e18: Optional[str] = "", + e19: Optional[str] = "", + e20: Optional[str] = "", + e21: Optional[str] = "", + e22: Optional[str] = "", + e23: Optional[str] = "", + e24: Optional[str] = "", + e25: Optional[str] = "", + e26: Optional[str] = "", + e27: Optional[str] = "", + e28: Optional[str] = "", + e29: Optional[str] = "", + e30: Optional[str] = "", + e31: Optional[str] = "", + e32: Optional[str] = "", + e33: Optional[str] = "", + e34: Optional[str] = "", + e35: Optional[str] = "", + e36: Optional[str] = "", + e37: Optional[str] = "", + e38: Optional[str] = "", + e39: Optional[str] = "", + ) -> None: ... def AddDefinition(self, term: str) -> None: ... def IsSet(self) -> bool: ... def MaxValue(self) -> int: ... @@ -86,7 +127,12 @@ class StepData_Factors: def CascadeUnit(self) -> float: ... def FactorDegreeRadian(self) -> float: ... def FactorRadianDegree(self) -> float: ... - def InitializeFactors(self, theLengthFactor: float, thePlaneAngleFactor: float, theSolidAngleFactor: float) -> None: ... + def InitializeFactors( + self, + theLengthFactor: float, + thePlaneAngleFactor: float, + theSolidAngleFactor: float, + ) -> None: ... def LengthFactor(self) -> float: ... def PlaneAngleFactor(self) -> float: ... def SetCascadeUnit(self, theUnit: float) -> None: ... @@ -102,7 +148,9 @@ class StepData_Field: def Clear(self, kind: Optional[int] = 0) -> None: ... def ClearItem(self, num: int) -> None: ... def CopyFrom(self, other: StepData_Field) -> None: ... - def Entity(self, n1: Optional[int] = 1, n2: Optional[int] = 1) -> Standard_Transient: ... + def Entity( + self, n1: Optional[int] = 1, n2: Optional[int] = 1 + ) -> Standard_Transient: ... def Enum(self, n1: Optional[int] = 1, n2: Optional[int] = 1) -> int: ... def EnumText(self, n1: Optional[int] = 1, n2: Optional[int] = 1) -> str: ... def Int(self) -> int: ... @@ -111,7 +159,9 @@ class StepData_Field: def ItemKind(self, n1: Optional[int] = 1, n2: Optional[int] = 1) -> int: ... def Kind(self, type: Optional[bool] = True) -> int: ... def Length(self, index: Optional[int] = 1) -> int: ... - def Logical(self, n1: Optional[int] = 1, n2: Optional[int] = 1) -> StepData_Logical: ... + def Logical( + self, n1: Optional[int] = 1, n2: Optional[int] = 1 + ) -> StepData_Logical: ... def Lower(self, index: Optional[int] = 1) -> int: ... def Real(self, n1: Optional[int] = 1, n2: Optional[int] = 1) -> float: ... def Set(self, val: Standard_Transient) -> None: ... @@ -139,7 +189,9 @@ class StepData_Field: @overload def SetInteger(self, num: int, val: int) -> None: ... def SetList(self, size: int, first: Optional[int] = 1) -> None: ... - def SetList2(self, siz1: int, siz2: int, f1: Optional[int] = 1, f2: Optional[int] = 1) -> None: ... + def SetList2( + self, siz1: int, siz2: int, f1: Optional[int] = 1, f2: Optional[int] = 1 + ) -> None: ... @overload def SetLogical(self, val: Optional[StepData_Logical] = StepData_LFalse) -> None: ... @overload @@ -169,13 +221,29 @@ class StepData_FileRecognizer(Standard_Transient): def Result(self) -> Standard_Transient: ... class StepData_GeneralModule(Interface_GeneralModule): - def CheckCase(self, casenum: int, ent: Standard_Transient, shares: Interface_ShareTool, ach: Interface_Check) -> None: ... - def CopyCase(self, casenum: int, entfrom: Standard_Transient, entto: Standard_Transient, TC: Interface_CopyTool) -> None: ... - def FillSharedCase(self, casenum: int, ent: Standard_Transient, iter: Interface_EntityIterator) -> None: ... + def CheckCase( + self, + casenum: int, + ent: Standard_Transient, + shares: Interface_ShareTool, + ach: Interface_Check, + ) -> None: ... + def CopyCase( + self, + casenum: int, + entfrom: Standard_Transient, + entto: Standard_Transient, + TC: Interface_CopyTool, + ) -> None: ... + def FillSharedCase( + self, casenum: int, ent: Standard_Transient, iter: Interface_EntityIterator + ) -> None: ... class StepData_GlobalNodeOfWriterLib(Standard_Transient): def __init__(self) -> None: ... - def Add(self, amodule: StepData_ReadWriteModule, aprotocol: StepData_Protocol) -> None: ... + def Add( + self, amodule: StepData_ReadWriteModule, aprotocol: StepData_Protocol + ) -> None: ... def Module(self) -> StepData_ReadWriteModule: ... def Next(self) -> StepData_GlobalNodeOfWriterLib: ... def Protocol(self) -> StepData_Protocol: ... @@ -239,15 +307,21 @@ class StepData_Protocol(Interface_Protocol): def AddBasicDescr(self, esdescr: StepData_ESDescr) -> None: ... def AddDescr(self, adescr: StepData_EDescr, CN: int) -> None: ... def AddPDescr(self, pdescr: StepData_PDescr) -> None: ... - def BasicDescr(self, name: str, anylevel: Optional[bool] = True) -> StepData_EDescr: ... + def BasicDescr( + self, name: str, anylevel: Optional[bool] = True + ) -> StepData_EDescr: ... def CaseNumber(self, obj: Standard_Transient) -> int: ... @overload def Descr(self, num: int) -> StepData_EDescr: ... @overload def Descr(self, name: str, anylevel: Optional[bool] = True) -> StepData_EDescr: ... def DescrNumber(self, adescr: StepData_EDescr) -> int: ... - def ECDescr(self, names: TColStd_SequenceOfAsciiString, anylevel: Optional[bool] = True) -> StepData_ECDescr: ... - def ESDescr(self, name: str, anylevel: Optional[bool] = True) -> StepData_ESDescr: ... + def ECDescr( + self, names: TColStd_SequenceOfAsciiString, anylevel: Optional[bool] = True + ) -> StepData_ECDescr: ... + def ESDescr( + self, name: str, anylevel: Optional[bool] = True + ) -> StepData_ESDescr: ... def HasDescr(self) -> bool: ... def IsSuitableModel(self, model: Interface_InterfaceModel) -> bool: ... def IsUnknownEntity(self, ent: Standard_Transient) -> bool: ... @@ -267,11 +341,27 @@ class StepData_ReadWriteModule(Interface_ReaderModule): def CaseStep(self, types: TColStd_SequenceOfAsciiString) -> int: ... def ComplexType(self, CN: int, types: TColStd_SequenceOfAsciiString) -> bool: ... def IsComplex(self, CN: int) -> bool: ... - def Read(self, CN: int, data: Interface_FileReaderData, num: int, ach: Interface_Check, ent: Standard_Transient) -> None: ... - def ReadStep(self, CN: int, data: StepData_StepReaderData, num: int, ach: Interface_Check, ent: Standard_Transient) -> None: ... + def Read( + self, + CN: int, + data: Interface_FileReaderData, + num: int, + ach: Interface_Check, + ent: Standard_Transient, + ) -> None: ... + def ReadStep( + self, + CN: int, + data: StepData_StepReaderData, + num: int, + ach: Interface_Check, + ent: Standard_Transient, + ) -> None: ... def ShortType(self, CN: int) -> str: ... def StepType(self, CN: int) -> str: ... - def WriteStep(self, CN: int, SW: StepData_StepWriter, ent: Standard_Transient) -> None: ... + def WriteStep( + self, CN: int, SW: StepData_StepWriter, ent: Standard_Transient + ) -> None: ... class StepData_SelectMember(Standard_Transient): def __init__(self) -> None: ... @@ -326,7 +416,12 @@ class StepData_SelectType: def Value(self) -> Standard_Transient: ... class StepData_StepDumper: - def __init__(self, amodel: StepData_StepModel, protocol: StepData_Protocol, mode: Optional[int] = 0) -> None: ... + def __init__( + self, + amodel: StepData_StepModel, + protocol: StepData_Protocol, + mode: Optional[int] = 0, + ) -> None: ... @overload def Dump(self, ent: Standard_Transient, level: int) -> Tuple[bool, str]: ... @overload @@ -359,39 +454,131 @@ class StepData_StepModel(Interface_InterfaceModel): def WriteLengthUnit(self) -> float: ... class StepData_StepReaderData(Interface_FileReaderData): - def __init__(self, nbheader: int, nbtotal: int, nbpar: int, theSourceCodePage: Optional[Resource_FormatType] = Resource_FormatType_UTF8) -> None: ... - def AddStepParam(self, num: int, aval: str, atype: Interface_ParamType, nument: Optional[int] = 0) -> None: ... + def __init__( + self, + nbheader: int, + nbtotal: int, + nbpar: int, + theSourceCodePage: Optional[Resource_FormatType] = Resource_FormatType_UTF8, + ) -> None: ... + def AddStepParam( + self, num: int, aval: str, atype: Interface_ParamType, nument: Optional[int] = 0 + ) -> None: ... def CType(self, num: int) -> str: ... - def CheckDerived(self, num: int, nump: int, mess: str, ach: Interface_Check, errstat: Optional[bool] = False) -> bool: ... - def CheckNbParams(self, num: int, nbreq: int, ach: Interface_Check, mess: Optional[str] = "") -> bool: ... + def CheckDerived( + self, + num: int, + nump: int, + mess: str, + ach: Interface_Check, + errstat: Optional[bool] = False, + ) -> bool: ... + def CheckNbParams( + self, num: int, nbreq: int, ach: Interface_Check, mess: Optional[str] = "" + ) -> bool: ... def ComplexType(self, num: int, types: TColStd_SequenceOfAsciiString) -> None: ... - def FailEnumValue(self, num: int, nump: int, mess: str, ach: Interface_Check) -> None: ... + def FailEnumValue( + self, num: int, nump: int, mess: str, ach: Interface_Check + ) -> None: ... def FindNextHeaderRecord(self, num: int) -> int: ... def FindNextRecord(self, num: int) -> int: ... def GlobalCheck(self) -> Interface_Check: ... def IsComplex(self, num: int) -> bool: ... @overload - def NamedForComplex(self, name: str, num0: int, ach: Interface_Check) -> Tuple[bool, int]: ... + def NamedForComplex( + self, name: str, num0: int, ach: Interface_Check + ) -> Tuple[bool, int]: ... @overload - def NamedForComplex(self, theName: str, theShortName: str, num0: int, ach: Interface_Check) -> Tuple[bool, int]: ... + def NamedForComplex( + self, theName: str, theShortName: str, num0: int, ach: Interface_Check + ) -> Tuple[bool, int]: ... def NbEntities(self) -> int: ... def NextForComplex(self, num: int) -> int: ... def PrepareHeader(self) -> None: ... - def ReadAny(self, num: int, nump: int, mess: str, ach: Interface_Check, descr: StepData_PDescr, val: Standard_Transient) -> bool: ... - def ReadBoolean(self, num: int, nump: int, mess: str, ach: Interface_Check) -> Tuple[bool, bool]: ... - def ReadEnum(self, num: int, nump: int, mess: str, ach: Interface_Check, enumtool: StepData_EnumTool) -> Tuple[bool, int]: ... - def ReadEnumParam(self, num: int, nump: int, mess: str, ach: Interface_Check, text: str) -> bool: ... - def ReadField(self, num: int, nump: int, mess: str, ach: Interface_Check, descr: StepData_PDescr, fild: StepData_Field) -> bool: ... - def ReadInteger(self, num: int, nump: int, mess: str, ach: Interface_Check) -> Tuple[bool, int]: ... - def ReadList(self, num: int, ach: Interface_Check, descr: StepData_ESDescr, list: StepData_FieldList) -> bool: ... - def ReadLogical(self, num: int, nump: int, mess: str, ach: Interface_Check) -> Tuple[bool, StepData_Logical]: ... - def ReadReal(self, num: int, nump: int, mess: str, ach: Interface_Check) -> Tuple[bool, float]: ... - def ReadString(self, num: int, nump: int, mess: str, ach: Interface_Check) -> Tuple[bool, str]: ... - def ReadSub(self, numsub: int, mess: str, ach: Interface_Check, descr: StepData_PDescr, val: Standard_Transient) -> int: ... - def ReadSubList(self, num: int, nump: int, mess: str, ach: Interface_Check, optional: Optional[bool] = False, lenmin: Optional[int] = 0, lenmax: Optional[int] = 0) -> Tuple[bool, int]: ... - def ReadTypedParam(self, num: int, nump: int, mustbetyped: bool, mess: str, ach: Interface_Check, typ: str) -> Tuple[bool, int, int]: ... - def ReadXY(self, num: int, nump: int, mess: str, ach: Interface_Check) -> Tuple[bool, float, float]: ... - def ReadXYZ(self, num: int, nump: int, mess: str, ach: Interface_Check) -> Tuple[bool, float, float, float]: ... + def ReadAny( + self, + num: int, + nump: int, + mess: str, + ach: Interface_Check, + descr: StepData_PDescr, + val: Standard_Transient, + ) -> bool: ... + def ReadBoolean( + self, num: int, nump: int, mess: str, ach: Interface_Check + ) -> Tuple[bool, bool]: ... + def ReadEnum( + self, + num: int, + nump: int, + mess: str, + ach: Interface_Check, + enumtool: StepData_EnumTool, + ) -> Tuple[bool, int]: ... + def ReadEnumParam( + self, num: int, nump: int, mess: str, ach: Interface_Check, text: str + ) -> bool: ... + def ReadField( + self, + num: int, + nump: int, + mess: str, + ach: Interface_Check, + descr: StepData_PDescr, + fild: StepData_Field, + ) -> bool: ... + def ReadInteger( + self, num: int, nump: int, mess: str, ach: Interface_Check + ) -> Tuple[bool, int]: ... + def ReadList( + self, + num: int, + ach: Interface_Check, + descr: StepData_ESDescr, + list: StepData_FieldList, + ) -> bool: ... + def ReadLogical( + self, num: int, nump: int, mess: str, ach: Interface_Check + ) -> Tuple[bool, StepData_Logical]: ... + def ReadReal( + self, num: int, nump: int, mess: str, ach: Interface_Check + ) -> Tuple[bool, float]: ... + def ReadString( + self, num: int, nump: int, mess: str, ach: Interface_Check + ) -> Tuple[bool, str]: ... + def ReadSub( + self, + numsub: int, + mess: str, + ach: Interface_Check, + descr: StepData_PDescr, + val: Standard_Transient, + ) -> int: ... + def ReadSubList( + self, + num: int, + nump: int, + mess: str, + ach: Interface_Check, + optional: Optional[bool] = False, + lenmin: Optional[int] = 0, + lenmax: Optional[int] = 0, + ) -> Tuple[bool, int]: ... + def ReadTypedParam( + self, + num: int, + nump: int, + mustbetyped: bool, + mess: str, + ach: Interface_Check, + typ: str, + ) -> Tuple[bool, int, int]: ... + def ReadXY( + self, num: int, nump: int, mess: str, ach: Interface_Check + ) -> Tuple[bool, float, float]: ... + def ReadXYZ( + self, num: int, nump: int, mess: str, ach: Interface_Check + ) -> Tuple[bool, float, float, float]: ... def RecordIdent(self, num: int) -> int: ... def RecordType(self, num: int) -> str: ... def SetEntityNumbers(self, withmap: Optional[bool] = True) -> None: ... @@ -399,16 +586,24 @@ class StepData_StepReaderData(Interface_FileReaderData): def SubListNumber(self, num: int, nump: int, aslast: bool) -> int: ... class StepData_StepReaderTool(Interface_FileReaderTool): - def __init__(self, reader: StepData_StepReaderData, protocol: StepData_Protocol) -> None: ... - def AnalyseRecord(self, num: int, anent: Standard_Transient, acheck: Interface_Check) -> bool: ... + def __init__( + self, reader: StepData_StepReaderData, protocol: StepData_Protocol + ) -> None: ... + def AnalyseRecord( + self, num: int, anent: Standard_Transient, acheck: Interface_Check + ) -> bool: ... def BeginRead(self, amodel: Interface_InterfaceModel) -> None: ... def EndRead(self, amodel: Interface_InterfaceModel) -> None: ... @overload def Prepare(self, optimize: Optional[bool] = True) -> None: ... @overload - def Prepare(self, reco: StepData_FileRecognizer, optimize: Optional[bool] = True) -> None: ... + def Prepare( + self, reco: StepData_FileRecognizer, optimize: Optional[bool] = True + ) -> None: ... def PrepareHeader(self, reco: StepData_FileRecognizer) -> None: ... - def Recognize(self, num: int, ach: Interface_Check, ent: Standard_Transient) -> bool: ... + def Recognize( + self, num: int, ach: Interface_Check, ent: Standard_Transient + ) -> bool: ... class StepData_StepWriter: def __init__(self, amodel: StepData_StepModel) -> None: ... @@ -459,7 +654,9 @@ class StepData_StepWriter: def SendIdent(self, ident: int) -> None: ... def SendList(self, list: StepData_FieldList, descr: StepData_ESDescr) -> None: ... def SendLogical(self, val: StepData_Logical) -> None: ... - def SendModel(self, protocol: StepData_Protocol, headeronly: Optional[bool] = False) -> None: ... + def SendModel( + self, protocol: StepData_Protocol, headeronly: Optional[bool] = False + ) -> None: ... def SendScope(self) -> None: ... def SendSelect(self, sm: StepData_SelectMember, descr: StepData_PDescr) -> None: ... @overload @@ -484,17 +681,35 @@ class StepData_WriterLib: def More(self) -> bool: ... def Next(self) -> None: ... def Protocol(self) -> StepData_Protocol: ... - def Select(self, obj: Standard_Transient, module: StepData_ReadWriteModule) -> Tuple[bool, int]: ... + def Select( + self, obj: Standard_Transient, module: StepData_ReadWriteModule + ) -> Tuple[bool, int]: ... def SetComplete(self) -> None: ... @staticmethod - def SetGlobal(amodule: StepData_ReadWriteModule, aprotocol: StepData_Protocol) -> None: ... + def SetGlobal( + amodule: StepData_ReadWriteModule, aprotocol: StepData_Protocol + ) -> None: ... def Start(self) -> None: ... class StepData_DefaultGeneral(StepData_GeneralModule): def __init__(self) -> None: ... - def CheckCase(self, casenum: int, ent: Standard_Transient, shares: Interface_ShareTool, ach: Interface_Check) -> None: ... - def CopyCase(self, casenum: int, entfrom: Standard_Transient, entto: Standard_Transient, TC: Interface_CopyTool) -> None: ... - def FillSharedCase(self, casenum: int, ent: Standard_Transient, iter: Interface_EntityIterator) -> None: ... + def CheckCase( + self, + casenum: int, + ent: Standard_Transient, + shares: Interface_ShareTool, + ach: Interface_Check, + ) -> None: ... + def CopyCase( + self, + casenum: int, + entfrom: Standard_Transient, + entto: Standard_Transient, + TC: Interface_CopyTool, + ) -> None: ... + def FillSharedCase( + self, casenum: int, ent: Standard_Transient, iter: Interface_EntityIterator + ) -> None: ... def NewVoid(self, CN: int, entto: Standard_Transient) -> bool: ... class StepData_ECDescr(StepData_EDescr): @@ -624,10 +839,10 @@ class StepData_SelectArrReal(StepData_SelectNamed): def Kind(self) -> int: ... def SetArrReal(self, arr: TColStd_HArray1OfReal) -> None: ... -#classnotwrapped +# classnotwrapped class StepData_FreeFormEntity: ... -#classnotwrapped +# classnotwrapped class StepData_UndefinedEntity: ... # harray1 classes @@ -638,4 +853,3 @@ class StepData_HArray1OfField(StepData_Array1OfField, Standard_Transient): # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepDimTol.pyi b/src/SWIG_files/wrapper/StepDimTol.pyi index c022634ed..790f1afc2 100644 --- a/src/SWIG_files/wrapper/StepDimTol.pyi +++ b/src/SWIG_files/wrapper/StepDimTol.pyi @@ -9,7 +9,6 @@ from OCC.Core.StepData import * from OCC.Core.StepBasic import * from OCC.Core.StepShape import * - class StepDimTol_Array1OfDatumReference: @overload def __init__(self) -> None: ... @@ -88,7 +87,9 @@ class StepDimTol_Array1OfDatumReferenceModifier: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepDimTol_DatumReferenceModifier: ... - def __setitem__(self, index: int, value: StepDimTol_DatumReferenceModifier) -> None: ... + def __setitem__( + self, index: int, value: StepDimTol_DatumReferenceModifier + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepDimTol_DatumReferenceModifier]: ... def next(self) -> StepDimTol_DatumReferenceModifier: ... @@ -104,7 +105,9 @@ class StepDimTol_Array1OfDatumReferenceModifier: def First(self) -> StepDimTol_DatumReferenceModifier: ... def Last(self) -> StepDimTol_DatumReferenceModifier: ... def Value(self, theIndex: int) -> StepDimTol_DatumReferenceModifier: ... - def SetValue(self, theIndex: int, theValue: StepDimTol_DatumReferenceModifier) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepDimTol_DatumReferenceModifier + ) -> None: ... class StepDimTol_Array1OfDatumSystemOrReference: @overload @@ -112,7 +115,9 @@ class StepDimTol_Array1OfDatumSystemOrReference: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepDimTol_DatumSystemOrReference: ... - def __setitem__(self, index: int, value: StepDimTol_DatumSystemOrReference) -> None: ... + def __setitem__( + self, index: int, value: StepDimTol_DatumSystemOrReference + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepDimTol_DatumSystemOrReference]: ... def next(self) -> StepDimTol_DatumSystemOrReference: ... @@ -128,7 +133,9 @@ class StepDimTol_Array1OfDatumSystemOrReference: def First(self) -> StepDimTol_DatumSystemOrReference: ... def Last(self) -> StepDimTol_DatumSystemOrReference: ... def Value(self, theIndex: int) -> StepDimTol_DatumSystemOrReference: ... - def SetValue(self, theIndex: int, theValue: StepDimTol_DatumSystemOrReference) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepDimTol_DatumSystemOrReference + ) -> None: ... class StepDimTol_Array1OfToleranceZoneTarget: @overload @@ -136,7 +143,9 @@ class StepDimTol_Array1OfToleranceZoneTarget: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepDimTol_ToleranceZoneTarget: ... - def __setitem__(self, index: int, value: StepDimTol_ToleranceZoneTarget) -> None: ... + def __setitem__( + self, index: int, value: StepDimTol_ToleranceZoneTarget + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepDimTol_ToleranceZoneTarget]: ... def next(self) -> StepDimTol_ToleranceZoneTarget: ... @@ -152,7 +161,9 @@ class StepDimTol_Array1OfToleranceZoneTarget: def First(self) -> StepDimTol_ToleranceZoneTarget: ... def Last(self) -> StepDimTol_ToleranceZoneTarget: ... def Value(self, theIndex: int) -> StepDimTol_ToleranceZoneTarget: ... - def SetValue(self, theIndex: int, theValue: StepDimTol_ToleranceZoneTarget) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepDimTol_ToleranceZoneTarget + ) -> None: ... class StepDimTol_AreaUnitType(IntEnum): StepDimTol_Circular: int = ... @@ -169,7 +180,9 @@ class StepDimTol_DatumReferenceModifierType(IntEnum): StepDimTol_Projected: int = ... StepDimTol_Spherical: int = ... -StepDimTol_CircularOrCylindrical = StepDimTol_DatumReferenceModifierType.StepDimTol_CircularOrCylindrical +StepDimTol_CircularOrCylindrical = ( + StepDimTol_DatumReferenceModifierType.StepDimTol_CircularOrCylindrical +) StepDimTol_Distance = StepDimTol_DatumReferenceModifierType.StepDimTol_Distance StepDimTol_Projected = StepDimTol_DatumReferenceModifierType.StepDimTol_Projected StepDimTol_Spherical = StepDimTol_DatumReferenceModifierType.StepDimTol_Spherical @@ -191,21 +204,47 @@ class StepDimTol_GeometricToleranceModifier(IntEnum): StepDimTol_GTMStatisticalTolerance: int = ... StepDimTol_GTMTangentPlane: int = ... -StepDimTol_GTMAnyCrossSection = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMAnyCrossSection -StepDimTol_GTMCommonZone = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMCommonZone -StepDimTol_GTMEachRadialElement = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMEachRadialElement +StepDimTol_GTMAnyCrossSection = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMAnyCrossSection +) +StepDimTol_GTMCommonZone = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMCommonZone +) +StepDimTol_GTMEachRadialElement = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMEachRadialElement +) StepDimTol_GTMFreeState = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMFreeState -StepDimTol_GTMLeastMaterialRequirement = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMLeastMaterialRequirement -StepDimTol_GTMLineElement = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMLineElement -StepDimTol_GTMMajorDiameter = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMMajorDiameter -StepDimTol_GTMMaximumMaterialRequirement = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMMaximumMaterialRequirement -StepDimTol_GTMMinorDiameter = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMMinorDiameter +StepDimTol_GTMLeastMaterialRequirement = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMLeastMaterialRequirement +) +StepDimTol_GTMLineElement = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMLineElement +) +StepDimTol_GTMMajorDiameter = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMMajorDiameter +) +StepDimTol_GTMMaximumMaterialRequirement = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMMaximumMaterialRequirement +) +StepDimTol_GTMMinorDiameter = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMMinorDiameter +) StepDimTol_GTMNotConvex = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMNotConvex -StepDimTol_GTMPitchDiameter = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMPitchDiameter -StepDimTol_GTMReciprocityRequirement = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMReciprocityRequirement -StepDimTol_GTMSeparateRequirement = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMSeparateRequirement -StepDimTol_GTMStatisticalTolerance = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMStatisticalTolerance -StepDimTol_GTMTangentPlane = StepDimTol_GeometricToleranceModifier.StepDimTol_GTMTangentPlane +StepDimTol_GTMPitchDiameter = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMPitchDiameter +) +StepDimTol_GTMReciprocityRequirement = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMReciprocityRequirement +) +StepDimTol_GTMSeparateRequirement = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMSeparateRequirement +) +StepDimTol_GTMStatisticalTolerance = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMStatisticalTolerance +) +StepDimTol_GTMTangentPlane = ( + StepDimTol_GeometricToleranceModifier.StepDimTol_GTMTangentPlane +) class StepDimTol_GeometricToleranceType(IntEnum): StepDimTol_GTTAngularityTolerance: int = ... @@ -224,30 +263,66 @@ class StepDimTol_GeometricToleranceType(IntEnum): StepDimTol_GTTSymmetryTolerance: int = ... StepDimTol_GTTTotalRunoutTolerance: int = ... -StepDimTol_GTTAngularityTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTAngularityTolerance -StepDimTol_GTTCircularRunoutTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTCircularRunoutTolerance -StepDimTol_GTTCoaxialityTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTCoaxialityTolerance -StepDimTol_GTTConcentricityTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTConcentricityTolerance -StepDimTol_GTTCylindricityTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTCylindricityTolerance -StepDimTol_GTTFlatnessTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTFlatnessTolerance -StepDimTol_GTTLineProfileTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTLineProfileTolerance -StepDimTol_GTTParallelismTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTParallelismTolerance -StepDimTol_GTTPerpendicularityTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTPerpendicularityTolerance -StepDimTol_GTTPositionTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTPositionTolerance -StepDimTol_GTTRoundnessTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTRoundnessTolerance -StepDimTol_GTTStraightnessTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTStraightnessTolerance -StepDimTol_GTTSurfaceProfileTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTSurfaceProfileTolerance -StepDimTol_GTTSymmetryTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTSymmetryTolerance -StepDimTol_GTTTotalRunoutTolerance = StepDimTol_GeometricToleranceType.StepDimTol_GTTTotalRunoutTolerance +StepDimTol_GTTAngularityTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTAngularityTolerance +) +StepDimTol_GTTCircularRunoutTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTCircularRunoutTolerance +) +StepDimTol_GTTCoaxialityTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTCoaxialityTolerance +) +StepDimTol_GTTConcentricityTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTConcentricityTolerance +) +StepDimTol_GTTCylindricityTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTCylindricityTolerance +) +StepDimTol_GTTFlatnessTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTFlatnessTolerance +) +StepDimTol_GTTLineProfileTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTLineProfileTolerance +) +StepDimTol_GTTParallelismTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTParallelismTolerance +) +StepDimTol_GTTPerpendicularityTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTPerpendicularityTolerance +) +StepDimTol_GTTPositionTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTPositionTolerance +) +StepDimTol_GTTRoundnessTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTRoundnessTolerance +) +StepDimTol_GTTStraightnessTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTStraightnessTolerance +) +StepDimTol_GTTSurfaceProfileTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTSurfaceProfileTolerance +) +StepDimTol_GTTSymmetryTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTSymmetryTolerance +) +StepDimTol_GTTTotalRunoutTolerance = ( + StepDimTol_GeometricToleranceType.StepDimTol_GTTTotalRunoutTolerance +) class StepDimTol_LimitCondition(IntEnum): StepDimTol_MaximumMaterialCondition: int = ... StepDimTol_LeastMaterialCondition: int = ... StepDimTol_RegardlessOfFeatureSize: int = ... -StepDimTol_MaximumMaterialCondition = StepDimTol_LimitCondition.StepDimTol_MaximumMaterialCondition -StepDimTol_LeastMaterialCondition = StepDimTol_LimitCondition.StepDimTol_LeastMaterialCondition -StepDimTol_RegardlessOfFeatureSize = StepDimTol_LimitCondition.StepDimTol_RegardlessOfFeatureSize +StepDimTol_MaximumMaterialCondition = ( + StepDimTol_LimitCondition.StepDimTol_MaximumMaterialCondition +) +StepDimTol_LeastMaterialCondition = ( + StepDimTol_LimitCondition.StepDimTol_LeastMaterialCondition +) +StepDimTol_RegardlessOfFeatureSize = ( + StepDimTol_LimitCondition.StepDimTol_RegardlessOfFeatureSize +) class StepDimTol_SimpleDatumReferenceModifier(IntEnum): StepDimTol_SDRMAnyCrossSection: int = ... @@ -273,40 +348,96 @@ class StepDimTol_SimpleDatumReferenceModifier(IntEnum): StepDimTol_SDRMPoint: int = ... StepDimTol_SDRMTranslation: int = ... -StepDimTol_SDRMAnyCrossSection = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMAnyCrossSection -StepDimTol_SDRMAnyLongitudinalSection = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMAnyLongitudinalSection +StepDimTol_SDRMAnyCrossSection = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMAnyCrossSection +) +StepDimTol_SDRMAnyLongitudinalSection = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMAnyLongitudinalSection +) StepDimTol_SDRMBasic = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMBasic -StepDimTol_SDRMContactingFeature = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMContactingFeature -StepDimTol_SDRMDegreeOfFreedomConstraintU = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintU -StepDimTol_SDRMDegreeOfFreedomConstraintV = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintV -StepDimTol_SDRMDegreeOfFreedomConstraintW = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintW -StepDimTol_SDRMDegreeOfFreedomConstraintX = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintX -StepDimTol_SDRMDegreeOfFreedomConstraintY = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintY -StepDimTol_SDRMDegreeOfFreedomConstraintZ = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintZ -StepDimTol_SDRMDistanceVariable = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDistanceVariable -StepDimTol_SDRMFreeState = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMFreeState -StepDimTol_SDRMLeastMaterialRequirement = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMLeastMaterialRequirement +StepDimTol_SDRMContactingFeature = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMContactingFeature +) +StepDimTol_SDRMDegreeOfFreedomConstraintU = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintU +) +StepDimTol_SDRMDegreeOfFreedomConstraintV = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintV +) +StepDimTol_SDRMDegreeOfFreedomConstraintW = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintW +) +StepDimTol_SDRMDegreeOfFreedomConstraintX = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintX +) +StepDimTol_SDRMDegreeOfFreedomConstraintY = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintY +) +StepDimTol_SDRMDegreeOfFreedomConstraintZ = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDegreeOfFreedomConstraintZ +) +StepDimTol_SDRMDistanceVariable = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMDistanceVariable +) +StepDimTol_SDRMFreeState = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMFreeState +) +StepDimTol_SDRMLeastMaterialRequirement = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMLeastMaterialRequirement +) StepDimTol_SDRMLine = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMLine -StepDimTol_SDRMMajorDiameter = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMMajorDiameter -StepDimTol_SDRMMaximumMaterialRequirement = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMMaximumMaterialRequirement -StepDimTol_SDRMMinorDiameter = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMMinorDiameter -StepDimTol_SDRMOrientation = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMOrientation -StepDimTol_SDRMPitchDiameter = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMPitchDiameter +StepDimTol_SDRMMajorDiameter = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMMajorDiameter +) +StepDimTol_SDRMMaximumMaterialRequirement = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMMaximumMaterialRequirement +) +StepDimTol_SDRMMinorDiameter = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMMinorDiameter +) +StepDimTol_SDRMOrientation = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMOrientation +) +StepDimTol_SDRMPitchDiameter = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMPitchDiameter +) StepDimTol_SDRMPlane = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMPlane StepDimTol_SDRMPoint = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMPoint -StepDimTol_SDRMTranslation = StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMTranslation +StepDimTol_SDRMTranslation = ( + StepDimTol_SimpleDatumReferenceModifier.StepDimTol_SDRMTranslation +) class StepDimTol_CommonDatum(StepRepr_CompositeShapeAspect): def __init__(self) -> None: ... def Datum(self) -> StepDimTol_Datum: ... - def Init(self, theShapeAspect_Name: TCollection_HAsciiString, theShapeAspect_Description: TCollection_HAsciiString, theShapeAspect_OfShape: StepRepr_ProductDefinitionShape, theShapeAspect_ProductDefinitional: StepData_Logical, theDatum_Name: TCollection_HAsciiString, theDatum_Description: TCollection_HAsciiString, theDatum_OfShape: StepRepr_ProductDefinitionShape, theDatum_ProductDefinitional: StepData_Logical, theDatum_Identification: TCollection_HAsciiString) -> None: ... + def Init( + self, + theShapeAspect_Name: TCollection_HAsciiString, + theShapeAspect_Description: TCollection_HAsciiString, + theShapeAspect_OfShape: StepRepr_ProductDefinitionShape, + theShapeAspect_ProductDefinitional: StepData_Logical, + theDatum_Name: TCollection_HAsciiString, + theDatum_Description: TCollection_HAsciiString, + theDatum_OfShape: StepRepr_ProductDefinitionShape, + theDatum_ProductDefinitional: StepData_Logical, + theDatum_Identification: TCollection_HAsciiString, + ) -> None: ... def SetDatum(self, theDatum: StepDimTol_Datum) -> None: ... class StepDimTol_Datum(StepRepr_ShapeAspect): def __init__(self) -> None: ... def Identification(self) -> TCollection_HAsciiString: ... - def Init(self, theShapeAspect_Name: TCollection_HAsciiString, theShapeAspect_Description: TCollection_HAsciiString, theShapeAspect_OfShape: StepRepr_ProductDefinitionShape, theShapeAspect_ProductDefinitional: StepData_Logical, theIdentification: TCollection_HAsciiString) -> None: ... - def SetIdentification(self, theIdentification: TCollection_HAsciiString) -> None: ... + def Init( + self, + theShapeAspect_Name: TCollection_HAsciiString, + theShapeAspect_Description: TCollection_HAsciiString, + theShapeAspect_OfShape: StepRepr_ProductDefinitionShape, + theShapeAspect_ProductDefinitional: StepData_Logical, + theIdentification: TCollection_HAsciiString, + ) -> None: ... + def SetIdentification( + self, theIdentification: TCollection_HAsciiString + ) -> None: ... class StepDimTol_DatumFeature(StepRepr_ShapeAspect): def __init__(self) -> None: ... @@ -319,7 +450,9 @@ class StepDimTol_DatumOrCommonDatum(StepData_SelectType): class StepDimTol_DatumReference(Standard_Transient): def __init__(self) -> None: ... - def Init(self, thePrecedence: int, theReferencedDatum: StepDimTol_Datum) -> None: ... + def Init( + self, thePrecedence: int, theReferencedDatum: StepDimTol_Datum + ) -> None: ... def Precedence(self) -> int: ... def ReferencedDatum(self) -> StepDimTol_Datum: ... def SetPrecedence(self, thePrecedence: int) -> None: ... @@ -328,16 +461,28 @@ class StepDimTol_DatumReference(Standard_Transient): class StepDimTol_DatumReferenceModifier(StepData_SelectType): def __init__(self) -> None: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def DatumReferenceModifierWithValue(self) -> StepDimTol_DatumReferenceModifierWithValue: ... - def SimpleDatumReferenceModifierMember(self) -> StepDimTol_SimpleDatumReferenceModifierMember: ... + def DatumReferenceModifierWithValue( + self, + ) -> StepDimTol_DatumReferenceModifierWithValue: ... + def SimpleDatumReferenceModifierMember( + self, + ) -> StepDimTol_SimpleDatumReferenceModifierMember: ... class StepDimTol_DatumReferenceModifierWithValue(Standard_Transient): def __init__(self) -> None: ... - def Init(self, theModifierType: StepDimTol_DatumReferenceModifierType, theModifierValue: StepBasic_LengthMeasureWithUnit) -> None: ... + def Init( + self, + theModifierType: StepDimTol_DatumReferenceModifierType, + theModifierValue: StepBasic_LengthMeasureWithUnit, + ) -> None: ... def ModifierType(self) -> StepDimTol_DatumReferenceModifierType: ... def ModifierValue(self) -> StepBasic_LengthMeasureWithUnit: ... - def SetModifierType(self, theModifierType: StepDimTol_DatumReferenceModifierType) -> None: ... - def SetModifierValue(self, theModifierValue: StepBasic_LengthMeasureWithUnit) -> None: ... + def SetModifierType( + self, theModifierType: StepDimTol_DatumReferenceModifierType + ) -> None: ... + def SetModifierValue( + self, theModifierValue: StepBasic_LengthMeasureWithUnit + ) -> None: ... class StepDimTol_DatumSystem(StepRepr_ShapeAspect): def __init__(self) -> None: ... @@ -345,10 +490,21 @@ class StepDimTol_DatumSystem(StepRepr_ShapeAspect): @overload def ConstituentsValue(self, num: int) -> StepDimTol_DatumReferenceCompartment: ... @overload - def ConstituentsValue(self, num: int, theItem: StepDimTol_DatumReferenceCompartment) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theOfShape: StepRepr_ProductDefinitionShape, theProductDefinitional: StepData_Logical, theConstituents: StepDimTol_HArray1OfDatumReferenceCompartment) -> None: ... + def ConstituentsValue( + self, num: int, theItem: StepDimTol_DatumReferenceCompartment + ) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theOfShape: StepRepr_ProductDefinitionShape, + theProductDefinitional: StepData_Logical, + theConstituents: StepDimTol_HArray1OfDatumReferenceCompartment, + ) -> None: ... def NbConstituents(self) -> int: ... - def SetConstituents(self, theConstituents: StepDimTol_HArray1OfDatumReferenceCompartment) -> None: ... + def SetConstituents( + self, theConstituents: StepDimTol_HArray1OfDatumReferenceCompartment + ) -> None: ... class StepDimTol_DatumSystemOrReference(StepData_SelectType): def __init__(self) -> None: ... @@ -358,7 +514,14 @@ class StepDimTol_DatumSystemOrReference(StepData_SelectType): class StepDimTol_DatumTarget(StepRepr_ShapeAspect): def __init__(self) -> None: ... - def Init(self, theShapeAspect_Name: TCollection_HAsciiString, theShapeAspect_Description: TCollection_HAsciiString, theShapeAspect_OfShape: StepRepr_ProductDefinitionShape, theShapeAspect_ProductDefinitional: StepData_Logical, theTargetId: TCollection_HAsciiString) -> None: ... + def Init( + self, + theShapeAspect_Name: TCollection_HAsciiString, + theShapeAspect_Description: TCollection_HAsciiString, + theShapeAspect_OfShape: StepRepr_ProductDefinitionShape, + theShapeAspect_ProductDefinitional: StepData_Logical, + theTargetId: TCollection_HAsciiString, + ) -> None: ... def SetTargetId(self, theTargetId: TCollection_HAsciiString) -> None: ... def TargetId(self) -> TCollection_HAsciiString: ... @@ -366,45 +529,84 @@ class StepDimTol_GeneralDatumReference(StepRepr_ShapeAspect): def __init__(self) -> None: ... def Base(self) -> StepDimTol_DatumOrCommonDatum: ... def HasModifiers(self) -> bool: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theOfShape: StepRepr_ProductDefinitionShape, theProductDefinitional: StepData_Logical, theBase: StepDimTol_DatumOrCommonDatum, theHasModifiers: bool, theModifiers: StepDimTol_HArray1OfDatumReferenceModifier) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theOfShape: StepRepr_ProductDefinitionShape, + theProductDefinitional: StepData_Logical, + theBase: StepDimTol_DatumOrCommonDatum, + theHasModifiers: bool, + theModifiers: StepDimTol_HArray1OfDatumReferenceModifier, + ) -> None: ... def Modifiers(self) -> StepDimTol_HArray1OfDatumReferenceModifier: ... @overload def ModifiersValue(self, theNum: int) -> StepDimTol_DatumReferenceModifier: ... @overload - def ModifiersValue(self, theNum: int, theItem: StepDimTol_DatumReferenceModifier) -> None: ... + def ModifiersValue( + self, theNum: int, theItem: StepDimTol_DatumReferenceModifier + ) -> None: ... def NbModifiers(self) -> int: ... def SetBase(self, theBase: StepDimTol_DatumOrCommonDatum) -> None: ... - def SetModifiers(self, theModifiers: StepDimTol_HArray1OfDatumReferenceModifier) -> None: ... + def SetModifiers( + self, theModifiers: StepDimTol_HArray1OfDatumReferenceModifier + ) -> None: ... class StepDimTol_GeometricTolerance(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepRepr_ShapeAspect) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepRepr_ShapeAspect, + ) -> None: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + ) -> None: ... def Magnitude(self) -> StepBasic_MeasureWithUnit: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, theDescription: TCollection_HAsciiString) -> None: ... def SetMagnitude(self, theMagnitude: StepBasic_MeasureWithUnit) -> None: ... def SetName(self, theName: TCollection_HAsciiString) -> None: ... @overload - def SetTolerancedShapeAspect(self, theTolerancedShapeAspect: StepRepr_ShapeAspect) -> None: ... + def SetTolerancedShapeAspect( + self, theTolerancedShapeAspect: StepRepr_ShapeAspect + ) -> None: ... @overload - def SetTolerancedShapeAspect(self, theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget) -> None: ... + def SetTolerancedShapeAspect( + self, theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget + ) -> None: ... def TolerancedShapeAspect(self) -> StepDimTol_GeometricToleranceTarget: ... class StepDimTol_GeometricToleranceRelationship(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theRelatingGeometricTolerance: StepDimTol_GeometricTolerance, theRelatedGeometricTolerance: StepDimTol_GeometricTolerance) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theRelatingGeometricTolerance: StepDimTol_GeometricTolerance, + theRelatedGeometricTolerance: StepDimTol_GeometricTolerance, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RelatedGeometricTolerance(self) -> StepDimTol_GeometricTolerance: ... def RelatingGeometricTolerance(self) -> StepDimTol_GeometricTolerance: ... def SetDescription(self, theDescription: TCollection_HAsciiString) -> None: ... def SetName(self, theName: TCollection_HAsciiString) -> None: ... - def SetRelatedGeometricTolerance(self, theRelatedGeometricTolerance: StepDimTol_GeometricTolerance) -> None: ... - def SetRelatingGeometricTolerance(self, theRelatingGeometricTolerance: StepDimTol_GeometricTolerance) -> None: ... + def SetRelatedGeometricTolerance( + self, theRelatedGeometricTolerance: StepDimTol_GeometricTolerance + ) -> None: ... + def SetRelatingGeometricTolerance( + self, theRelatingGeometricTolerance: StepDimTol_GeometricTolerance + ) -> None: ... class StepDimTol_GeometricToleranceTarget(StepData_SelectType): def __init__(self) -> None: ... @@ -441,20 +643,38 @@ class StepDimTol_ToleranceZone(StepRepr_ShapeAspect): def DefiningTolerance(self) -> StepDimTol_HArray1OfToleranceZoneTarget: ... def DefiningToleranceValue(self, theNum: int) -> StepDimTol_ToleranceZoneTarget: ... def Form(self) -> StepDimTol_ToleranceZoneForm: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theOfShape: StepRepr_ProductDefinitionShape, theProductDefinitional: StepData_Logical, theDefiningTolerance: StepDimTol_HArray1OfToleranceZoneTarget, theForm: StepDimTol_ToleranceZoneForm) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theOfShape: StepRepr_ProductDefinitionShape, + theProductDefinitional: StepData_Logical, + theDefiningTolerance: StepDimTol_HArray1OfToleranceZoneTarget, + theForm: StepDimTol_ToleranceZoneForm, + ) -> None: ... def NbDefiningTolerances(self) -> int: ... - def SetDefiningTolerance(self, theDefiningTolerance: StepDimTol_HArray1OfToleranceZoneTarget) -> None: ... - def SetDefiningToleranceValue(self, theNum: int, theItem: StepDimTol_ToleranceZoneTarget) -> None: ... + def SetDefiningTolerance( + self, theDefiningTolerance: StepDimTol_HArray1OfToleranceZoneTarget + ) -> None: ... + def SetDefiningToleranceValue( + self, theNum: int, theItem: StepDimTol_ToleranceZoneTarget + ) -> None: ... def SetForm(self, theForm: StepDimTol_ToleranceZoneForm) -> None: ... class StepDimTol_ToleranceZoneDefinition(Standard_Transient): def __init__(self) -> None: ... def Boundaries(self) -> StepRepr_HArray1OfShapeAspect: ... def BoundariesValue(self, theNum: int) -> StepRepr_ShapeAspect: ... - def Init(self, theZone: StepDimTol_ToleranceZone, theBoundaries: StepRepr_HArray1OfShapeAspect) -> None: ... + def Init( + self, + theZone: StepDimTol_ToleranceZone, + theBoundaries: StepRepr_HArray1OfShapeAspect, + ) -> None: ... def NbBoundaries(self) -> int: ... def SetBoundaries(self, theBoundaries: StepRepr_HArray1OfShapeAspect) -> None: ... - def SetBoundariesValue(self, theNum: int, theItem: StepRepr_ShapeAspect) -> None: ... + def SetBoundariesValue( + self, theNum: int, theItem: StepRepr_ShapeAspect + ) -> None: ... def SetZone(self, theZone: StepDimTol_ToleranceZone) -> None: ... def Zone(self) -> StepDimTol_ToleranceZone: ... @@ -486,82 +706,223 @@ class StepDimTol_FlatnessTolerance(StepDimTol_GeometricTolerance): class StepDimTol_GeoTolAndGeoTolWthDatRef(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... - def GetGeometricToleranceWithDatumReference(self) -> StepDimTol_GeometricToleranceWithDatumReference: ... + def GetGeometricToleranceWithDatumReference( + self, + ) -> StepDimTol_GeometricToleranceWithDatumReference: ... def GetToleranceType(self) -> StepDimTol_GeometricToleranceType: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepRepr_ShapeAspect, theGTWDR: StepDimTol_GeometricToleranceWithDatumReference, theType: StepDimTol_GeometricToleranceType) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepRepr_ShapeAspect, + theGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aMagnitude: StepBasic_MeasureWithUnit, aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, theType: StepDimTol_GeometricToleranceType) -> None: ... - def SetGeometricToleranceType(self, theType: StepDimTol_GeometricToleranceType) -> None: ... - def SetGeometricToleranceWithDatumReference(self, theGTWDR: StepDimTol_GeometricToleranceWithDatumReference) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aMagnitude: StepBasic_MeasureWithUnit, + aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... + def SetGeometricToleranceType( + self, theType: StepDimTol_GeometricToleranceType + ) -> None: ... + def SetGeometricToleranceWithDatumReference( + self, theGTWDR: StepDimTol_GeometricToleranceWithDatumReference + ) -> None: ... class StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... - def GetGeometricToleranceWithDatumReference(self) -> StepDimTol_GeometricToleranceWithDatumReference: ... - def GetGeometricToleranceWithModifiers(self) -> StepDimTol_GeometricToleranceWithModifiers: ... + def GetGeometricToleranceWithDatumReference( + self, + ) -> StepDimTol_GeometricToleranceWithDatumReference: ... + def GetGeometricToleranceWithModifiers( + self, + ) -> StepDimTol_GeometricToleranceWithModifiers: ... def GetToleranceType(self) -> StepDimTol_GeometricToleranceType: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepRepr_ShapeAspect, theGTWDR: StepDimTol_GeometricToleranceWithDatumReference, theGTWM: StepDimTol_GeometricToleranceWithModifiers, theType: StepDimTol_GeometricToleranceType) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepRepr_ShapeAspect, + theGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + theGTWM: StepDimTol_GeometricToleranceWithModifiers, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aMagnitude: StepBasic_MeasureWithUnit, aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, aGTWM: StepDimTol_GeometricToleranceWithModifiers, theType: StepDimTol_GeometricToleranceType) -> None: ... - def SetGeometricToleranceType(self, theType: StepDimTol_GeometricToleranceType) -> None: ... - def SetGeometricToleranceWithDatumReference(self, theGTWDR: StepDimTol_GeometricToleranceWithDatumReference) -> None: ... - def SetGeometricToleranceWithModifiers(self, theGTWM: StepDimTol_GeometricToleranceWithModifiers) -> None: ... - -class StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol(StepDimTol_GeometricTolerance): + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aMagnitude: StepBasic_MeasureWithUnit, + aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + aGTWM: StepDimTol_GeometricToleranceWithModifiers, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... + def SetGeometricToleranceType( + self, theType: StepDimTol_GeometricToleranceType + ) -> None: ... + def SetGeometricToleranceWithDatumReference( + self, theGTWDR: StepDimTol_GeometricToleranceWithDatumReference + ) -> None: ... + def SetGeometricToleranceWithModifiers( + self, theGTWM: StepDimTol_GeometricToleranceWithModifiers + ) -> None: ... + +class StepDimTol_GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol( + StepDimTol_GeometricTolerance +): def __init__(self) -> None: ... - def GetGeometricToleranceWithDatumReference(self) -> StepDimTol_GeometricToleranceWithDatumReference: ... - def GetModifiedGeometricTolerance(self) -> StepDimTol_ModifiedGeometricTolerance: ... + def GetGeometricToleranceWithDatumReference( + self, + ) -> StepDimTol_GeometricToleranceWithDatumReference: ... + def GetModifiedGeometricTolerance( + self, + ) -> StepDimTol_ModifiedGeometricTolerance: ... def GetPositionTolerance(self) -> StepDimTol_PositionTolerance: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aMagnitude: StepBasic_MeasureWithUnit, aTolerancedShapeAspect: StepRepr_ShapeAspect, aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, aMGT: StepDimTol_ModifiedGeometricTolerance) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aMagnitude: StepBasic_MeasureWithUnit, + aTolerancedShapeAspect: StepRepr_ShapeAspect, + aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + aMGT: StepDimTol_ModifiedGeometricTolerance, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aMagnitude: StepBasic_MeasureWithUnit, aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, aMGT: StepDimTol_ModifiedGeometricTolerance) -> None: ... - def SetGeometricToleranceWithDatumReference(self, aGTWDR: StepDimTol_GeometricToleranceWithDatumReference) -> None: ... - def SetModifiedGeometricTolerance(self, aMGT: StepDimTol_ModifiedGeometricTolerance) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aMagnitude: StepBasic_MeasureWithUnit, + aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + aMGT: StepDimTol_ModifiedGeometricTolerance, + ) -> None: ... + def SetGeometricToleranceWithDatumReference( + self, aGTWDR: StepDimTol_GeometricToleranceWithDatumReference + ) -> None: ... + def SetModifiedGeometricTolerance( + self, aMGT: StepDimTol_ModifiedGeometricTolerance + ) -> None: ... def SetPositionTolerance(self, aPT: StepDimTol_PositionTolerance) -> None: ... class StepDimTol_GeoTolAndGeoTolWthMod(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... - def GetGeometricToleranceWithModifiers(self) -> StepDimTol_GeometricToleranceWithModifiers: ... + def GetGeometricToleranceWithModifiers( + self, + ) -> StepDimTol_GeometricToleranceWithModifiers: ... def GetToleranceType(self) -> StepDimTol_GeometricToleranceType: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepRepr_ShapeAspect, theGTWM: StepDimTol_GeometricToleranceWithModifiers, theType: StepDimTol_GeometricToleranceType) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepRepr_ShapeAspect, + theGTWM: StepDimTol_GeometricToleranceWithModifiers, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aMagnitude: StepBasic_MeasureWithUnit, aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, aGTWM: StepDimTol_GeometricToleranceWithModifiers, theType: StepDimTol_GeometricToleranceType) -> None: ... - def SetGeometricToleranceType(self, theType: StepDimTol_GeometricToleranceType) -> None: ... - def SetGeometricToleranceWithModifiers(self, theGTWM: StepDimTol_GeometricToleranceWithModifiers) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aMagnitude: StepBasic_MeasureWithUnit, + aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + aGTWM: StepDimTol_GeometricToleranceWithModifiers, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... + def SetGeometricToleranceType( + self, theType: StepDimTol_GeometricToleranceType + ) -> None: ... + def SetGeometricToleranceWithModifiers( + self, theGTWM: StepDimTol_GeometricToleranceWithModifiers + ) -> None: ... class StepDimTol_GeometricToleranceWithDatumReference(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... def DatumSystem(self) -> StepDimTol_HArray1OfDatumReference: ... def DatumSystemAP242(self) -> StepDimTol_HArray1OfDatumSystemOrReference: ... @overload - def Init(self, theGeometricTolerance_Name: TCollection_HAsciiString, theGeometricTolerance_Description: TCollection_HAsciiString, theGeometricTolerance_Magnitude: StepBasic_MeasureWithUnit, theGeometricTolerance_TolerancedShapeAspect: StepRepr_ShapeAspect, theDatumSystem: StepDimTol_HArray1OfDatumReference) -> None: ... + def Init( + self, + theGeometricTolerance_Name: TCollection_HAsciiString, + theGeometricTolerance_Description: TCollection_HAsciiString, + theGeometricTolerance_Magnitude: StepBasic_MeasureWithUnit, + theGeometricTolerance_TolerancedShapeAspect: StepRepr_ShapeAspect, + theDatumSystem: StepDimTol_HArray1OfDatumReference, + ) -> None: ... @overload - def Init(self, theGeometricTolerance_Name: TCollection_HAsciiString, theGeometricTolerance_Description: TCollection_HAsciiString, theGeometricTolerance_Magnitude: StepBasic_MeasureWithUnit, theGeometricTolerance_TolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, theDatumSystem: StepDimTol_HArray1OfDatumSystemOrReference) -> None: ... + def Init( + self, + theGeometricTolerance_Name: TCollection_HAsciiString, + theGeometricTolerance_Description: TCollection_HAsciiString, + theGeometricTolerance_Magnitude: StepBasic_MeasureWithUnit, + theGeometricTolerance_TolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + theDatumSystem: StepDimTol_HArray1OfDatumSystemOrReference, + ) -> None: ... @overload - def SetDatumSystem(self, theDatumSystem: StepDimTol_HArray1OfDatumReference) -> None: ... + def SetDatumSystem( + self, theDatumSystem: StepDimTol_HArray1OfDatumReference + ) -> None: ... @overload - def SetDatumSystem(self, theDatumSystem: StepDimTol_HArray1OfDatumSystemOrReference) -> None: ... + def SetDatumSystem( + self, theDatumSystem: StepDimTol_HArray1OfDatumSystemOrReference + ) -> None: ... class StepDimTol_GeometricToleranceWithDefinedUnit(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepRepr_ShapeAspect, theUnitSize: StepBasic_LengthMeasureWithUnit) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepRepr_ShapeAspect, + theUnitSize: StepBasic_LengthMeasureWithUnit, + ) -> None: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, theUnitSize: StepBasic_LengthMeasureWithUnit) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + theUnitSize: StepBasic_LengthMeasureWithUnit, + ) -> None: ... def SetUnitSize(self, theUnitSize: StepBasic_LengthMeasureWithUnit) -> None: ... def UnitSize(self) -> StepBasic_LengthMeasureWithUnit: ... class StepDimTol_GeometricToleranceWithModifiers(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, theModifiers: StepDimTol_HArray1OfGeometricToleranceModifier) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + theModifiers: StepDimTol_HArray1OfGeometricToleranceModifier, + ) -> None: ... def ModifierValue(self, theNum: int) -> StepDimTol_GeometricToleranceModifier: ... def Modifiers(self) -> StepDimTol_HArray1OfGeometricToleranceModifier: ... def NbModifiers(self) -> int: ... - def SetModifierValue(self, theNum: int, theItem: StepDimTol_GeometricToleranceModifier) -> None: ... - def SetModifiers(self, theModifiers: StepDimTol_HArray1OfGeometricToleranceModifier) -> None: ... + def SetModifierValue( + self, theNum: int, theItem: StepDimTol_GeometricToleranceModifier + ) -> None: ... + def SetModifiers( + self, theModifiers: StepDimTol_HArray1OfGeometricToleranceModifier + ) -> None: ... class StepDimTol_LineProfileTolerance(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... @@ -569,9 +930,23 @@ class StepDimTol_LineProfileTolerance(StepDimTol_GeometricTolerance): class StepDimTol_ModifiedGeometricTolerance(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... @overload - def Init(self, theGeometricTolerance_Name: TCollection_HAsciiString, theGeometricTolerance_Description: TCollection_HAsciiString, theGeometricTolerance_Magnitude: StepBasic_MeasureWithUnit, theGeometricTolerance_TolerancedShapeAspect: StepRepr_ShapeAspect, theModifier: StepDimTol_LimitCondition) -> None: ... + def Init( + self, + theGeometricTolerance_Name: TCollection_HAsciiString, + theGeometricTolerance_Description: TCollection_HAsciiString, + theGeometricTolerance_Magnitude: StepBasic_MeasureWithUnit, + theGeometricTolerance_TolerancedShapeAspect: StepRepr_ShapeAspect, + theModifier: StepDimTol_LimitCondition, + ) -> None: ... @overload - def Init(self, theGeometricTolerance_Name: TCollection_HAsciiString, theGeometricTolerance_Description: TCollection_HAsciiString, theGeometricTolerance_Magnitude: StepBasic_MeasureWithUnit, theGeometricTolerance_TolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, theModifier: StepDimTol_LimitCondition) -> None: ... + def Init( + self, + theGeometricTolerance_Name: TCollection_HAsciiString, + theGeometricTolerance_Description: TCollection_HAsciiString, + theGeometricTolerance_Magnitude: StepBasic_MeasureWithUnit, + theGeometricTolerance_TolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + theModifier: StepDimTol_LimitCondition, + ) -> None: ... def Modifier(self) -> StepDimTol_LimitCondition: ... def SetModifier(self, theModifier: StepDimTol_LimitCondition) -> None: ... @@ -586,20 +961,35 @@ class StepDimTol_PositionTolerance(StepDimTol_GeometricTolerance): class StepDimTol_ProjectedZoneDefinition(StepDimTol_ToleranceZoneDefinition): def __init__(self) -> None: ... - def Init(self, theZone: StepDimTol_ToleranceZone, theBoundaries: StepRepr_HArray1OfShapeAspect, theProjectionEnd: StepRepr_ShapeAspect, theProjectionLength: StepBasic_LengthMeasureWithUnit) -> None: ... + def Init( + self, + theZone: StepDimTol_ToleranceZone, + theBoundaries: StepRepr_HArray1OfShapeAspect, + theProjectionEnd: StepRepr_ShapeAspect, + theProjectionLength: StepBasic_LengthMeasureWithUnit, + ) -> None: ... def ProjectionEnd(self) -> StepRepr_ShapeAspect: ... def ProjectionLength(self) -> StepBasic_LengthMeasureWithUnit: ... def SetProjectionEnd(self, theProjectionEnd: StepRepr_ShapeAspect) -> None: ... - def SetProjectionLength(self, theProjectionLength: StepBasic_LengthMeasureWithUnit) -> None: ... + def SetProjectionLength( + self, theProjectionLength: StepBasic_LengthMeasureWithUnit + ) -> None: ... class StepDimTol_RoundnessTolerance(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... class StepDimTol_RunoutZoneDefinition(StepDimTol_ToleranceZoneDefinition): def __init__(self) -> None: ... - def Init(self, theZone: StepDimTol_ToleranceZone, theBoundaries: StepRepr_HArray1OfShapeAspect, theOrientation: StepDimTol_RunoutZoneOrientation) -> None: ... + def Init( + self, + theZone: StepDimTol_ToleranceZone, + theBoundaries: StepRepr_HArray1OfShapeAspect, + theOrientation: StepDimTol_RunoutZoneOrientation, + ) -> None: ... def Orientation(self) -> StepDimTol_RunoutZoneOrientation: ... - def SetOrientation(self, theOrientation: StepDimTol_RunoutZoneOrientation) -> None: ... + def SetOrientation( + self, theOrientation: StepDimTol_RunoutZoneOrientation + ) -> None: ... class StepDimTol_StraightnessTolerance(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... @@ -610,67 +1000,172 @@ class StepDimTol_SurfaceProfileTolerance(StepDimTol_GeometricTolerance): class StepDimTol_UnequallyDisposedGeometricTolerance(StepDimTol_GeometricTolerance): def __init__(self) -> None: ... def Displacement(self) -> StepBasic_LengthMeasureWithUnit: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, theDisplacement: StepBasic_LengthMeasureWithUnit) -> None: ... - def SetDisplacement(self, theDisplacement: StepBasic_LengthMeasureWithUnit) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + theDisplacement: StepBasic_LengthMeasureWithUnit, + ) -> None: ... + def SetDisplacement( + self, theDisplacement: StepBasic_LengthMeasureWithUnit + ) -> None: ... class StepDimTol_AngularityTolerance(StepDimTol_GeometricToleranceWithDatumReference): def __init__(self) -> None: ... -class StepDimTol_CircularRunoutTolerance(StepDimTol_GeometricToleranceWithDatumReference): +class StepDimTol_CircularRunoutTolerance( + StepDimTol_GeometricToleranceWithDatumReference +): def __init__(self) -> None: ... class StepDimTol_CoaxialityTolerance(StepDimTol_GeometricToleranceWithDatumReference): def __init__(self) -> None: ... -class StepDimTol_ConcentricityTolerance(StepDimTol_GeometricToleranceWithDatumReference): +class StepDimTol_ConcentricityTolerance( + StepDimTol_GeometricToleranceWithDatumReference +): def __init__(self) -> None: ... -class StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod): +class StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol( + StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod +): def __init__(self) -> None: ... def GetMaxTolerance(self) -> StepBasic_LengthMeasureWithUnit: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepRepr_ShapeAspect, theGTWDR: StepDimTol_GeometricToleranceWithDatumReference, theGTWM: StepDimTol_GeometricToleranceWithModifiers, theMaxTol: StepBasic_LengthMeasureWithUnit, theType: StepDimTol_GeometricToleranceType) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepRepr_ShapeAspect, + theGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + theGTWM: StepDimTol_GeometricToleranceWithModifiers, + theMaxTol: StepBasic_LengthMeasureWithUnit, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aMagnitude: StepBasic_MeasureWithUnit, aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, aGTWM: StepDimTol_GeometricToleranceWithModifiers, theMaxTol: StepBasic_LengthMeasureWithUnit, theType: StepDimTol_GeometricToleranceType) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aMagnitude: StepBasic_MeasureWithUnit, + aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + aGTWM: StepDimTol_GeometricToleranceWithModifiers, + theMaxTol: StepBasic_LengthMeasureWithUnit, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... def SetMaxTolerance(self, theMaxTol: StepBasic_LengthMeasureWithUnit) -> None: ... -class StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol(StepDimTol_GeoTolAndGeoTolWthDatRef): +class StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol( + StepDimTol_GeoTolAndGeoTolWthDatRef +): def __init__(self) -> None: ... - def GetUnequallyDisposedGeometricTolerance(self) -> StepDimTol_UnequallyDisposedGeometricTolerance: ... + def GetUnequallyDisposedGeometricTolerance( + self, + ) -> StepDimTol_UnequallyDisposedGeometricTolerance: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepRepr_ShapeAspect, theGTWDR: StepDimTol_GeometricToleranceWithDatumReference, theType: StepDimTol_GeometricToleranceType, theUDGT: StepDimTol_UnequallyDisposedGeometricTolerance) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepRepr_ShapeAspect, + theGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + theType: StepDimTol_GeometricToleranceType, + theUDGT: StepDimTol_UnequallyDisposedGeometricTolerance, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aMagnitude: StepBasic_MeasureWithUnit, aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, theType: StepDimTol_GeometricToleranceType, theUDGT: StepDimTol_UnequallyDisposedGeometricTolerance) -> None: ... - def SetUnequallyDisposedGeometricTolerance(self, theUDGT: StepDimTol_UnequallyDisposedGeometricTolerance) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aMagnitude: StepBasic_MeasureWithUnit, + aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + aGTWDR: StepDimTol_GeometricToleranceWithDatumReference, + theType: StepDimTol_GeometricToleranceType, + theUDGT: StepDimTol_UnequallyDisposedGeometricTolerance, + ) -> None: ... + def SetUnequallyDisposedGeometricTolerance( + self, theUDGT: StepDimTol_UnequallyDisposedGeometricTolerance + ) -> None: ... class StepDimTol_GeoTolAndGeoTolWthMaxTol(StepDimTol_GeoTolAndGeoTolWthMod): def __init__(self) -> None: ... def GetMaxTolerance(self) -> StepBasic_LengthMeasureWithUnit: ... @overload - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepRepr_ShapeAspect, theGTWM: StepDimTol_GeometricToleranceWithModifiers, theMaxTol: StepBasic_LengthMeasureWithUnit, theType: StepDimTol_GeometricToleranceType) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepRepr_ShapeAspect, + theGTWM: StepDimTol_GeometricToleranceWithModifiers, + theMaxTol: StepBasic_LengthMeasureWithUnit, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aMagnitude: StepBasic_MeasureWithUnit, aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, aGTWM: StepDimTol_GeometricToleranceWithModifiers, theMaxTol: StepBasic_LengthMeasureWithUnit, theType: StepDimTol_GeometricToleranceType) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aMagnitude: StepBasic_MeasureWithUnit, + aTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + aGTWM: StepDimTol_GeometricToleranceWithModifiers, + theMaxTol: StepBasic_LengthMeasureWithUnit, + theType: StepDimTol_GeometricToleranceType, + ) -> None: ... def SetMaxTolerance(self, theMaxTol: StepBasic_LengthMeasureWithUnit) -> None: ... -class StepDimTol_GeometricToleranceWithDefinedAreaUnit(StepDimTol_GeometricToleranceWithDefinedUnit): +class StepDimTol_GeometricToleranceWithDefinedAreaUnit( + StepDimTol_GeometricToleranceWithDefinedUnit +): def __init__(self) -> None: ... def AreaType(self) -> StepDimTol_AreaUnitType: ... def HasSecondUnitSize(self) -> bool: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, theUnitSize: StepBasic_LengthMeasureWithUnit, theAreaType: StepDimTol_AreaUnitType, theHasSecondUnitSize: bool, theSecondUnitSize: StepBasic_LengthMeasureWithUnit) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + theUnitSize: StepBasic_LengthMeasureWithUnit, + theAreaType: StepDimTol_AreaUnitType, + theHasSecondUnitSize: bool, + theSecondUnitSize: StepBasic_LengthMeasureWithUnit, + ) -> None: ... def SecondUnitSize(self) -> StepBasic_LengthMeasureWithUnit: ... def SetAreaType(self, theAreaType: StepDimTol_AreaUnitType) -> None: ... - def SetSecondUnitSize(self, theSecondUnitSize: StepBasic_LengthMeasureWithUnit) -> None: ... + def SetSecondUnitSize( + self, theSecondUnitSize: StepBasic_LengthMeasureWithUnit + ) -> None: ... -class StepDimTol_GeometricToleranceWithMaximumTolerance(StepDimTol_GeometricToleranceWithModifiers): +class StepDimTol_GeometricToleranceWithMaximumTolerance( + StepDimTol_GeometricToleranceWithModifiers +): def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theMagnitude: StepBasic_MeasureWithUnit, theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, theModifiers: StepDimTol_HArray1OfGeometricToleranceModifier, theUnitSize: StepBasic_LengthMeasureWithUnit) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theMagnitude: StepBasic_MeasureWithUnit, + theTolerancedShapeAspect: StepDimTol_GeometricToleranceTarget, + theModifiers: StepDimTol_HArray1OfGeometricToleranceModifier, + theUnitSize: StepBasic_LengthMeasureWithUnit, + ) -> None: ... def MaximumUpperTolerance(self) -> StepBasic_LengthMeasureWithUnit: ... - def SetMaximumUpperTolerance(self, theMaximumUpperTolerance: StepBasic_LengthMeasureWithUnit) -> None: ... + def SetMaximumUpperTolerance( + self, theMaximumUpperTolerance: StepBasic_LengthMeasureWithUnit + ) -> None: ... class StepDimTol_ParallelismTolerance(StepDimTol_GeometricToleranceWithDatumReference): def __init__(self) -> None: ... -class StepDimTol_PerpendicularityTolerance(StepDimTol_GeometricToleranceWithDatumReference): +class StepDimTol_PerpendicularityTolerance( + StepDimTol_GeometricToleranceWithDatumReference +): def __init__(self) -> None: ... class StepDimTol_SymmetryTolerance(StepDimTol_GeometricToleranceWithDatumReference): @@ -681,40 +1176,47 @@ class StepDimTol_TotalRunoutTolerance(StepDimTol_GeometricToleranceWithDatumRefe # harray1 classes -class StepDimTol_HArray1OfDatumReference(StepDimTol_Array1OfDatumReference, Standard_Transient): +class StepDimTol_HArray1OfDatumReference( + StepDimTol_Array1OfDatumReference, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepDimTol_Array1OfDatumReference: ... - -class StepDimTol_HArray1OfDatumReferenceCompartment(StepDimTol_Array1OfDatumReferenceCompartment, Standard_Transient): +class StepDimTol_HArray1OfDatumReferenceCompartment( + StepDimTol_Array1OfDatumReferenceCompartment, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepDimTol_Array1OfDatumReferenceCompartment: ... - -class StepDimTol_HArray1OfDatumReferenceElement(StepDimTol_Array1OfDatumReferenceElement, Standard_Transient): +class StepDimTol_HArray1OfDatumReferenceElement( + StepDimTol_Array1OfDatumReferenceElement, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepDimTol_Array1OfDatumReferenceElement: ... - -class StepDimTol_HArray1OfDatumReferenceModifier(StepDimTol_Array1OfDatumReferenceModifier, Standard_Transient): +class StepDimTol_HArray1OfDatumReferenceModifier( + StepDimTol_Array1OfDatumReferenceModifier, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepDimTol_Array1OfDatumReferenceModifier: ... - -class StepDimTol_HArray1OfDatumSystemOrReference(StepDimTol_Array1OfDatumSystemOrReference, Standard_Transient): +class StepDimTol_HArray1OfDatumSystemOrReference( + StepDimTol_Array1OfDatumSystemOrReference, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepDimTol_Array1OfDatumSystemOrReference: ... - -class StepDimTol_HArray1OfGeometricToleranceModifier(StepDimTol_Array1OfGeometricToleranceModifier, Standard_Transient): +class StepDimTol_HArray1OfGeometricToleranceModifier( + StepDimTol_Array1OfGeometricToleranceModifier, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepDimTol_Array1OfGeometricToleranceModifier: ... - -class StepDimTol_HArray1OfToleranceZoneTarget(StepDimTol_Array1OfToleranceZoneTarget, Standard_Transient): +class StepDimTol_HArray1OfToleranceZoneTarget( + StepDimTol_Array1OfToleranceZoneTarget, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepDimTol_Array1OfToleranceZoneTarget: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepElement.pyi b/src/SWIG_files/wrapper/StepElement.pyi index 9d8dbb44e..e376fd57c 100644 --- a/src/SWIG_files/wrapper/StepElement.pyi +++ b/src/SWIG_files/wrapper/StepElement.pyi @@ -9,11 +9,17 @@ from OCC.Core.StepData import * from OCC.Core.TColStd import * # the following typedef cannot be wrapped as is -StepElement_Array2OfCurveElementPurposeMember = NewType("StepElement_Array2OfCurveElementPurposeMember", Any) +StepElement_Array2OfCurveElementPurposeMember = NewType( + "StepElement_Array2OfCurveElementPurposeMember", Any +) # the following typedef cannot be wrapped as is -StepElement_Array2OfSurfaceElementPurpose = NewType("StepElement_Array2OfSurfaceElementPurpose", Any) +StepElement_Array2OfSurfaceElementPurpose = NewType( + "StepElement_Array2OfSurfaceElementPurpose", Any +) # the following typedef cannot be wrapped as is -StepElement_Array2OfSurfaceElementPurposeMember = NewType("StepElement_Array2OfSurfaceElementPurposeMember", Any) +StepElement_Array2OfSurfaceElementPurposeMember = NewType( + "StepElement_Array2OfSurfaceElementPurposeMember", Any +) class StepElement_Array1OfCurveElementEndReleasePacket: @overload @@ -117,7 +123,9 @@ class StepElement_Array1OfMeasureOrUnspecifiedValue: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepElement_MeasureOrUnspecifiedValue: ... - def __setitem__(self, index: int, value: StepElement_MeasureOrUnspecifiedValue) -> None: ... + def __setitem__( + self, index: int, value: StepElement_MeasureOrUnspecifiedValue + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepElement_MeasureOrUnspecifiedValue]: ... def next(self) -> StepElement_MeasureOrUnspecifiedValue: ... @@ -133,7 +141,9 @@ class StepElement_Array1OfMeasureOrUnspecifiedValue: def First(self) -> StepElement_MeasureOrUnspecifiedValue: ... def Last(self) -> StepElement_MeasureOrUnspecifiedValue: ... def Value(self, theIndex: int) -> StepElement_MeasureOrUnspecifiedValue: ... - def SetValue(self, theIndex: int, theValue: StepElement_MeasureOrUnspecifiedValue) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepElement_MeasureOrUnspecifiedValue + ) -> None: ... class StepElement_Array1OfSurfaceSection: @overload @@ -165,7 +175,9 @@ class StepElement_Array1OfVolumeElementPurpose: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepElement_VolumeElementPurpose: ... - def __setitem__(self, index: int, value: StepElement_VolumeElementPurpose) -> None: ... + def __setitem__( + self, index: int, value: StepElement_VolumeElementPurpose + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepElement_VolumeElementPurpose]: ... def next(self) -> StepElement_VolumeElementPurpose: ... @@ -181,7 +193,9 @@ class StepElement_Array1OfVolumeElementPurpose: def First(self) -> StepElement_VolumeElementPurpose: ... def Last(self) -> StepElement_VolumeElementPurpose: ... def Value(self, theIndex: int) -> StepElement_VolumeElementPurpose: ... - def SetValue(self, theIndex: int, theValue: StepElement_VolumeElementPurpose) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepElement_VolumeElementPurpose + ) -> None: ... class StepElement_Array1OfVolumeElementPurposeMember: @overload @@ -208,64 +222,88 @@ class StepElement_Array1OfVolumeElementPurposeMember: def SetValue(self, theIndex: int, theValue: False) -> None: ... class StepElement_SequenceOfCurveElementPurposeMember: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class StepElement_SequenceOfCurveElementSectionDefinition: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class StepElement_SequenceOfCurveElementSectionDefinition: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class StepElement_SequenceOfElementMaterial: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class StepElement_SequenceOfElementMaterial: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class StepElement_SequenceOfSurfaceElementPurposeMember: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class StepElement_SequenceOfSurfaceElementPurposeMember: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class StepElement_CurveEdge(IntEnum): StepElement_ElementEdge: int = ... @@ -303,9 +341,15 @@ class StepElement_EnumeratedCurveElementFreedom(IntEnum): StepElement_Warp: int = ... StepElement_None: int = ... -StepElement_XTranslation = StepElement_EnumeratedCurveElementFreedom.StepElement_XTranslation -StepElement_YTranslation = StepElement_EnumeratedCurveElementFreedom.StepElement_YTranslation -StepElement_ZTranslation = StepElement_EnumeratedCurveElementFreedom.StepElement_ZTranslation +StepElement_XTranslation = ( + StepElement_EnumeratedCurveElementFreedom.StepElement_XTranslation +) +StepElement_YTranslation = ( + StepElement_EnumeratedCurveElementFreedom.StepElement_YTranslation +) +StepElement_ZTranslation = ( + StepElement_EnumeratedCurveElementFreedom.StepElement_ZTranslation +) StepElement_XRotation = StepElement_EnumeratedCurveElementFreedom.StepElement_XRotation StepElement_YRotation = StepElement_EnumeratedCurveElementFreedom.StepElement_YRotation StepElement_ZRotation = StepElement_EnumeratedCurveElementFreedom.StepElement_ZRotation @@ -336,16 +380,28 @@ class StepElement_EnumeratedSurfaceElementPurpose(IntEnum): StepElement_BendingTorsion: int = ... StepElement_NormalToPlaneShear: int = ... -StepElement_MembraneDirect = StepElement_EnumeratedSurfaceElementPurpose.StepElement_MembraneDirect -StepElement_MembraneShear = StepElement_EnumeratedSurfaceElementPurpose.StepElement_MembraneShear -StepElement_BendingDirect = StepElement_EnumeratedSurfaceElementPurpose.StepElement_BendingDirect -StepElement_BendingTorsion = StepElement_EnumeratedSurfaceElementPurpose.StepElement_BendingTorsion -StepElement_NormalToPlaneShear = StepElement_EnumeratedSurfaceElementPurpose.StepElement_NormalToPlaneShear +StepElement_MembraneDirect = ( + StepElement_EnumeratedSurfaceElementPurpose.StepElement_MembraneDirect +) +StepElement_MembraneShear = ( + StepElement_EnumeratedSurfaceElementPurpose.StepElement_MembraneShear +) +StepElement_BendingDirect = ( + StepElement_EnumeratedSurfaceElementPurpose.StepElement_BendingDirect +) +StepElement_BendingTorsion = ( + StepElement_EnumeratedSurfaceElementPurpose.StepElement_BendingTorsion +) +StepElement_NormalToPlaneShear = ( + StepElement_EnumeratedSurfaceElementPurpose.StepElement_NormalToPlaneShear +) class StepElement_EnumeratedVolumeElementPurpose(IntEnum): StepElement_StressDisplacement: int = ... -StepElement_StressDisplacement = StepElement_EnumeratedVolumeElementPurpose.StepElement_StressDisplacement +StepElement_StressDisplacement = ( + StepElement_EnumeratedVolumeElementPurpose.StepElement_StressDisplacement +) class StepElement_UnspecifiedValue(IntEnum): StepElement_Unspecified: int = ... @@ -366,7 +422,13 @@ StepElement_Pyramid = StepElement_Volume3dElementShape.StepElement_Pyramid class StepElement_AnalysisItemWithinRepresentation(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aItem: StepRepr_RepresentationItem, aRep: StepRepr_Representation) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aItem: StepRepr_RepresentationItem, + aRep: StepRepr_Representation, + ) -> None: ... def Item(self) -> StepRepr_RepresentationItem: ... def Name(self) -> TCollection_HAsciiString: ... def Rep(self) -> StepRepr_Representation: ... @@ -377,10 +439,14 @@ class StepElement_AnalysisItemWithinRepresentation(Standard_Transient): class StepElement_CurveElementEndReleasePacket(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aReleaseFreedom: StepElement_CurveElementFreedom, aReleaseStiffness: float) -> None: ... + def Init( + self, aReleaseFreedom: StepElement_CurveElementFreedom, aReleaseStiffness: float + ) -> None: ... def ReleaseFreedom(self) -> StepElement_CurveElementFreedom: ... def ReleaseStiffness(self) -> float: ... - def SetReleaseFreedom(self, ReleaseFreedom: StepElement_CurveElementFreedom) -> None: ... + def SetReleaseFreedom( + self, ReleaseFreedom: StepElement_CurveElementFreedom + ) -> None: ... def SetReleaseStiffness(self, ReleaseStiffness: float) -> None: ... class StepElement_CurveElementFreedom(StepData_SelectType): @@ -388,10 +454,16 @@ class StepElement_CurveElementFreedom(StepData_SelectType): def ApplicationDefinedDegreeOfFreedom(self) -> TCollection_HAsciiString: ... def CaseMem(self, ent: StepData_SelectMember) -> int: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def EnumeratedCurveElementFreedom(self) -> StepElement_EnumeratedCurveElementFreedom: ... + def EnumeratedCurveElementFreedom( + self, + ) -> StepElement_EnumeratedCurveElementFreedom: ... def NewMember(self) -> StepData_SelectMember: ... - def SetApplicationDefinedDegreeOfFreedom(self, aVal: TCollection_HAsciiString) -> None: ... - def SetEnumeratedCurveElementFreedom(self, aVal: StepElement_EnumeratedCurveElementFreedom) -> None: ... + def SetApplicationDefinedDegreeOfFreedom( + self, aVal: TCollection_HAsciiString + ) -> None: ... + def SetEnumeratedCurveElementFreedom( + self, aVal: StepElement_EnumeratedCurveElementFreedom + ) -> None: ... class StepElement_CurveElementFreedomMember(StepData_SelectNamed): def __init__(self) -> None: ... @@ -405,10 +477,16 @@ class StepElement_CurveElementPurpose(StepData_SelectType): def ApplicationDefinedElementPurpose(self) -> TCollection_HAsciiString: ... def CaseMem(self, ent: StepData_SelectMember) -> int: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def EnumeratedCurveElementPurpose(self) -> StepElement_EnumeratedCurveElementPurpose: ... + def EnumeratedCurveElementPurpose( + self, + ) -> StepElement_EnumeratedCurveElementPurpose: ... def NewMember(self) -> StepData_SelectMember: ... - def SetApplicationDefinedElementPurpose(self, aVal: TCollection_HAsciiString) -> None: ... - def SetEnumeratedCurveElementPurpose(self, aVal: StepElement_EnumeratedCurveElementPurpose) -> None: ... + def SetApplicationDefinedElementPurpose( + self, aVal: TCollection_HAsciiString + ) -> None: ... + def SetEnumeratedCurveElementPurpose( + self, aVal: StepElement_EnumeratedCurveElementPurpose + ) -> None: ... class StepElement_CurveElementPurposeMember(StepData_SelectNamed): def __init__(self) -> None: ... @@ -420,7 +498,9 @@ class StepElement_CurveElementPurposeMember(StepData_SelectNamed): class StepElement_CurveElementSectionDefinition(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aDescription: TCollection_HAsciiString, aSectionAngle: float) -> None: ... + def Init( + self, aDescription: TCollection_HAsciiString, aSectionAngle: float + ) -> None: ... def SectionAngle(self) -> float: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetSectionAngle(self, SectionAngle: float) -> None: ... @@ -461,7 +541,11 @@ class StepElement_ElementAspectMember(StepData_SelectNamed): class StepElement_ElementDescriptor(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aTopologyOrder: StepElement_ElementOrder, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aTopologyOrder: StepElement_ElementOrder, + aDescription: TCollection_HAsciiString, + ) -> None: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetTopologyOrder(self, TopologyOrder: StepElement_ElementOrder) -> None: ... def TopologyOrder(self) -> StepElement_ElementOrder: ... @@ -469,12 +553,19 @@ class StepElement_ElementDescriptor(Standard_Transient): class StepElement_ElementMaterial(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aMaterialId: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aProperties: StepRepr_HArray1OfMaterialPropertyRepresentation) -> None: ... + def Init( + self, + aMaterialId: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aProperties: StepRepr_HArray1OfMaterialPropertyRepresentation, + ) -> None: ... def MaterialId(self) -> TCollection_HAsciiString: ... def Properties(self) -> StepRepr_HArray1OfMaterialPropertyRepresentation: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetMaterialId(self, MaterialId: TCollection_HAsciiString) -> None: ... - def SetProperties(self, Properties: StepRepr_HArray1OfMaterialPropertyRepresentation) -> None: ... + def SetProperties( + self, Properties: StepRepr_HArray1OfMaterialPropertyRepresentation + ) -> None: ... class StepElement_MeasureOrUnspecifiedValue(StepData_SelectType): def __init__(self) -> None: ... @@ -496,7 +587,12 @@ class StepElement_MeasureOrUnspecifiedValueMember(StepData_SelectNamed): class StepElement_SurfaceElementProperty(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aPropertyId: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aSection: StepElement_SurfaceSectionField) -> None: ... + def Init( + self, + aPropertyId: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aSection: StepElement_SurfaceSectionField, + ) -> None: ... def PropertyId(self) -> TCollection_HAsciiString: ... def Section(self) -> StepElement_SurfaceSectionField: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... @@ -508,10 +604,16 @@ class StepElement_SurfaceElementPurpose(StepData_SelectType): def ApplicationDefinedElementPurpose(self) -> TCollection_HAsciiString: ... def CaseMem(self, ent: StepData_SelectMember) -> int: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def EnumeratedSurfaceElementPurpose(self) -> StepElement_EnumeratedSurfaceElementPurpose: ... + def EnumeratedSurfaceElementPurpose( + self, + ) -> StepElement_EnumeratedSurfaceElementPurpose: ... def NewMember(self) -> StepData_SelectMember: ... - def SetApplicationDefinedElementPurpose(self, aVal: TCollection_HAsciiString) -> None: ... - def SetEnumeratedSurfaceElementPurpose(self, aVal: StepElement_EnumeratedSurfaceElementPurpose) -> None: ... + def SetApplicationDefinedElementPurpose( + self, aVal: TCollection_HAsciiString + ) -> None: ... + def SetEnumeratedSurfaceElementPurpose( + self, aVal: StepElement_EnumeratedSurfaceElementPurpose + ) -> None: ... class StepElement_SurfaceElementPurposeMember(StepData_SelectNamed): def __init__(self) -> None: ... @@ -522,12 +624,21 @@ class StepElement_SurfaceElementPurposeMember(StepData_SelectNamed): class StepElement_SurfaceSection(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aOffset: StepElement_MeasureOrUnspecifiedValue, aNonStructuralMass: StepElement_MeasureOrUnspecifiedValue, aNonStructuralMassOffset: StepElement_MeasureOrUnspecifiedValue) -> None: ... + def Init( + self, + aOffset: StepElement_MeasureOrUnspecifiedValue, + aNonStructuralMass: StepElement_MeasureOrUnspecifiedValue, + aNonStructuralMassOffset: StepElement_MeasureOrUnspecifiedValue, + ) -> None: ... def NonStructuralMass(self) -> StepElement_MeasureOrUnspecifiedValue: ... def NonStructuralMassOffset(self) -> StepElement_MeasureOrUnspecifiedValue: ... def Offset(self) -> StepElement_MeasureOrUnspecifiedValue: ... - def SetNonStructuralMass(self, NonStructuralMass: StepElement_MeasureOrUnspecifiedValue) -> None: ... - def SetNonStructuralMassOffset(self, NonStructuralMassOffset: StepElement_MeasureOrUnspecifiedValue) -> None: ... + def SetNonStructuralMass( + self, NonStructuralMass: StepElement_MeasureOrUnspecifiedValue + ) -> None: ... + def SetNonStructuralMassOffset( + self, NonStructuralMassOffset: StepElement_MeasureOrUnspecifiedValue + ) -> None: ... def SetOffset(self, Offset: StepElement_MeasureOrUnspecifiedValue) -> None: ... class StepElement_SurfaceSectionField(Standard_Transient): @@ -538,10 +649,16 @@ class StepElement_VolumeElementPurpose(StepData_SelectType): def ApplicationDefinedElementPurpose(self) -> TCollection_HAsciiString: ... def CaseMem(self, ent: StepData_SelectMember) -> int: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def EnumeratedVolumeElementPurpose(self) -> StepElement_EnumeratedVolumeElementPurpose: ... + def EnumeratedVolumeElementPurpose( + self, + ) -> StepElement_EnumeratedVolumeElementPurpose: ... def NewMember(self) -> StepData_SelectMember: ... - def SetApplicationDefinedElementPurpose(self, aVal: TCollection_HAsciiString) -> None: ... - def SetEnumeratedVolumeElementPurpose(self, aVal: StepElement_EnumeratedVolumeElementPurpose) -> None: ... + def SetApplicationDefinedElementPurpose( + self, aVal: TCollection_HAsciiString + ) -> None: ... + def SetEnumeratedVolumeElementPurpose( + self, aVal: StepElement_EnumeratedVolumeElementPurpose + ) -> None: ... class StepElement_VolumeElementPurposeMember(StepData_SelectNamed): def __init__(self) -> None: ... @@ -552,39 +669,93 @@ class StepElement_VolumeElementPurposeMember(StepData_SelectNamed): class StepElement_Curve3dElementDescriptor(StepElement_ElementDescriptor): def __init__(self) -> None: ... - def Init(self, aElementDescriptor_TopologyOrder: StepElement_ElementOrder, aElementDescriptor_Description: TCollection_HAsciiString, aPurpose: StepElement_HArray1OfHSequenceOfCurveElementPurposeMember) -> None: ... + def Init( + self, + aElementDescriptor_TopologyOrder: StepElement_ElementOrder, + aElementDescriptor_Description: TCollection_HAsciiString, + aPurpose: StepElement_HArray1OfHSequenceOfCurveElementPurposeMember, + ) -> None: ... def Purpose(self) -> StepElement_HArray1OfHSequenceOfCurveElementPurposeMember: ... - def SetPurpose(self, Purpose: StepElement_HArray1OfHSequenceOfCurveElementPurposeMember) -> None: ... + def SetPurpose( + self, Purpose: StepElement_HArray1OfHSequenceOfCurveElementPurposeMember + ) -> None: ... -class StepElement_CurveElementSectionDerivedDefinitions(StepElement_CurveElementSectionDefinition): +class StepElement_CurveElementSectionDerivedDefinitions( + StepElement_CurveElementSectionDefinition +): def __init__(self) -> None: ... def CrossSectionalArea(self) -> float: ... - def Init(self, aCurveElementSectionDefinition_Description: TCollection_HAsciiString, aCurveElementSectionDefinition_SectionAngle: float, aCrossSectionalArea: float, aShearArea: StepElement_HArray1OfMeasureOrUnspecifiedValue, aSecondMomentOfArea: TColStd_HArray1OfReal, aTorsionalConstant: float, aWarpingConstant: StepElement_MeasureOrUnspecifiedValue, aLocationOfCentroid: StepElement_HArray1OfMeasureOrUnspecifiedValue, aLocationOfShearCentre: StepElement_HArray1OfMeasureOrUnspecifiedValue, aLocationOfNonStructuralMass: StepElement_HArray1OfMeasureOrUnspecifiedValue, aNonStructuralMass: StepElement_MeasureOrUnspecifiedValue, aPolarMoment: StepElement_MeasureOrUnspecifiedValue) -> None: ... + def Init( + self, + aCurveElementSectionDefinition_Description: TCollection_HAsciiString, + aCurveElementSectionDefinition_SectionAngle: float, + aCrossSectionalArea: float, + aShearArea: StepElement_HArray1OfMeasureOrUnspecifiedValue, + aSecondMomentOfArea: TColStd_HArray1OfReal, + aTorsionalConstant: float, + aWarpingConstant: StepElement_MeasureOrUnspecifiedValue, + aLocationOfCentroid: StepElement_HArray1OfMeasureOrUnspecifiedValue, + aLocationOfShearCentre: StepElement_HArray1OfMeasureOrUnspecifiedValue, + aLocationOfNonStructuralMass: StepElement_HArray1OfMeasureOrUnspecifiedValue, + aNonStructuralMass: StepElement_MeasureOrUnspecifiedValue, + aPolarMoment: StepElement_MeasureOrUnspecifiedValue, + ) -> None: ... def LocationOfCentroid(self) -> StepElement_HArray1OfMeasureOrUnspecifiedValue: ... - def LocationOfNonStructuralMass(self) -> StepElement_HArray1OfMeasureOrUnspecifiedValue: ... - def LocationOfShearCentre(self) -> StepElement_HArray1OfMeasureOrUnspecifiedValue: ... + def LocationOfNonStructuralMass( + self, + ) -> StepElement_HArray1OfMeasureOrUnspecifiedValue: ... + def LocationOfShearCentre( + self, + ) -> StepElement_HArray1OfMeasureOrUnspecifiedValue: ... def NonStructuralMass(self) -> StepElement_MeasureOrUnspecifiedValue: ... def PolarMoment(self) -> StepElement_MeasureOrUnspecifiedValue: ... def SecondMomentOfArea(self) -> TColStd_HArray1OfReal: ... def SetCrossSectionalArea(self, CrossSectionalArea: float) -> None: ... - def SetLocationOfCentroid(self, LocationOfCentroid: StepElement_HArray1OfMeasureOrUnspecifiedValue) -> None: ... - def SetLocationOfNonStructuralMass(self, LocationOfNonStructuralMass: StepElement_HArray1OfMeasureOrUnspecifiedValue) -> None: ... - def SetLocationOfShearCentre(self, LocationOfShearCentre: StepElement_HArray1OfMeasureOrUnspecifiedValue) -> None: ... - def SetNonStructuralMass(self, NonStructuralMass: StepElement_MeasureOrUnspecifiedValue) -> None: ... - def SetPolarMoment(self, PolarMoment: StepElement_MeasureOrUnspecifiedValue) -> None: ... - def SetSecondMomentOfArea(self, SecondMomentOfArea: TColStd_HArray1OfReal) -> None: ... - def SetShearArea(self, ShearArea: StepElement_HArray1OfMeasureOrUnspecifiedValue) -> None: ... + def SetLocationOfCentroid( + self, LocationOfCentroid: StepElement_HArray1OfMeasureOrUnspecifiedValue + ) -> None: ... + def SetLocationOfNonStructuralMass( + self, + LocationOfNonStructuralMass: StepElement_HArray1OfMeasureOrUnspecifiedValue, + ) -> None: ... + def SetLocationOfShearCentre( + self, LocationOfShearCentre: StepElement_HArray1OfMeasureOrUnspecifiedValue + ) -> None: ... + def SetNonStructuralMass( + self, NonStructuralMass: StepElement_MeasureOrUnspecifiedValue + ) -> None: ... + def SetPolarMoment( + self, PolarMoment: StepElement_MeasureOrUnspecifiedValue + ) -> None: ... + def SetSecondMomentOfArea( + self, SecondMomentOfArea: TColStd_HArray1OfReal + ) -> None: ... + def SetShearArea( + self, ShearArea: StepElement_HArray1OfMeasureOrUnspecifiedValue + ) -> None: ... def SetTorsionalConstant(self, TorsionalConstant: float) -> None: ... - def SetWarpingConstant(self, WarpingConstant: StepElement_MeasureOrUnspecifiedValue) -> None: ... + def SetWarpingConstant( + self, WarpingConstant: StepElement_MeasureOrUnspecifiedValue + ) -> None: ... def ShearArea(self) -> StepElement_HArray1OfMeasureOrUnspecifiedValue: ... def TorsionalConstant(self) -> float: ... def WarpingConstant(self) -> StepElement_MeasureOrUnspecifiedValue: ... class StepElement_Surface3dElementDescriptor(StepElement_ElementDescriptor): def __init__(self) -> None: ... - def Init(self, aElementDescriptor_TopologyOrder: StepElement_ElementOrder, aElementDescriptor_Description: TCollection_HAsciiString, aPurpose: StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember, aShape: StepElement_Element2dShape) -> None: ... - def Purpose(self) -> StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember: ... - def SetPurpose(self, Purpose: StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember) -> None: ... + def Init( + self, + aElementDescriptor_TopologyOrder: StepElement_ElementOrder, + aElementDescriptor_Description: TCollection_HAsciiString, + aPurpose: StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember, + aShape: StepElement_Element2dShape, + ) -> None: ... + def Purpose( + self, + ) -> StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember: ... + def SetPurpose( + self, Purpose: StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember + ) -> None: ... def SetShape(self, Shape: StepElement_Element2dShape) -> None: ... def Shape(self) -> StepElement_Element2dShape: ... @@ -598,115 +769,176 @@ class StepElement_SurfaceSectionFieldVarying(StepElement_SurfaceSectionField): def __init__(self) -> None: ... def AdditionalNodeValues(self) -> bool: ... def Definitions(self) -> StepElement_HArray1OfSurfaceSection: ... - def Init(self, aDefinitions: StepElement_HArray1OfSurfaceSection, aAdditionalNodeValues: bool) -> None: ... + def Init( + self, + aDefinitions: StepElement_HArray1OfSurfaceSection, + aAdditionalNodeValues: bool, + ) -> None: ... def SetAdditionalNodeValues(self, AdditionalNodeValues: bool) -> None: ... - def SetDefinitions(self, Definitions: StepElement_HArray1OfSurfaceSection) -> None: ... + def SetDefinitions( + self, Definitions: StepElement_HArray1OfSurfaceSection + ) -> None: ... class StepElement_UniformSurfaceSection(StepElement_SurfaceSection): def __init__(self) -> None: ... def BendingThickness(self) -> StepElement_MeasureOrUnspecifiedValue: ... - def Init(self, aSurfaceSection_Offset: StepElement_MeasureOrUnspecifiedValue, aSurfaceSection_NonStructuralMass: StepElement_MeasureOrUnspecifiedValue, aSurfaceSection_NonStructuralMassOffset: StepElement_MeasureOrUnspecifiedValue, aThickness: float, aBendingThickness: StepElement_MeasureOrUnspecifiedValue, aShearThickness: StepElement_MeasureOrUnspecifiedValue) -> None: ... - def SetBendingThickness(self, BendingThickness: StepElement_MeasureOrUnspecifiedValue) -> None: ... - def SetShearThickness(self, ShearThickness: StepElement_MeasureOrUnspecifiedValue) -> None: ... + def Init( + self, + aSurfaceSection_Offset: StepElement_MeasureOrUnspecifiedValue, + aSurfaceSection_NonStructuralMass: StepElement_MeasureOrUnspecifiedValue, + aSurfaceSection_NonStructuralMassOffset: StepElement_MeasureOrUnspecifiedValue, + aThickness: float, + aBendingThickness: StepElement_MeasureOrUnspecifiedValue, + aShearThickness: StepElement_MeasureOrUnspecifiedValue, + ) -> None: ... + def SetBendingThickness( + self, BendingThickness: StepElement_MeasureOrUnspecifiedValue + ) -> None: ... + def SetShearThickness( + self, ShearThickness: StepElement_MeasureOrUnspecifiedValue + ) -> None: ... def SetThickness(self, Thickness: float) -> None: ... def ShearThickness(self) -> StepElement_MeasureOrUnspecifiedValue: ... def Thickness(self) -> float: ... class StepElement_Volume3dElementDescriptor(StepElement_ElementDescriptor): def __init__(self) -> None: ... - def Init(self, aElementDescriptor_TopologyOrder: StepElement_ElementOrder, aElementDescriptor_Description: TCollection_HAsciiString, aPurpose: StepElement_HArray1OfVolumeElementPurposeMember, aShape: StepElement_Volume3dElementShape) -> None: ... + def Init( + self, + aElementDescriptor_TopologyOrder: StepElement_ElementOrder, + aElementDescriptor_Description: TCollection_HAsciiString, + aPurpose: StepElement_HArray1OfVolumeElementPurposeMember, + aShape: StepElement_Volume3dElementShape, + ) -> None: ... def Purpose(self) -> StepElement_HArray1OfVolumeElementPurposeMember: ... - def SetPurpose(self, Purpose: StepElement_HArray1OfVolumeElementPurposeMember) -> None: ... + def SetPurpose( + self, Purpose: StepElement_HArray1OfVolumeElementPurposeMember + ) -> None: ... def SetShape(self, Shape: StepElement_Volume3dElementShape) -> None: ... def Shape(self) -> StepElement_Volume3dElementShape: ... # harray1 classes -class StepElement_HArray1OfCurveElementEndReleasePacket(StepElement_Array1OfCurveElementEndReleasePacket, Standard_Transient): +class StepElement_HArray1OfCurveElementEndReleasePacket( + StepElement_Array1OfCurveElementEndReleasePacket, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepElement_Array1OfCurveElementEndReleasePacket: ... - -class StepElement_HArray1OfCurveElementSectionDefinition(StepElement_Array1OfCurveElementSectionDefinition, Standard_Transient): +class StepElement_HArray1OfCurveElementSectionDefinition( + StepElement_Array1OfCurveElementSectionDefinition, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepElement_Array1OfCurveElementSectionDefinition: ... - -class StepElement_HArray1OfHSequenceOfCurveElementPurposeMember(StepElement_Array1OfHSequenceOfCurveElementPurposeMember, Standard_Transient): +class StepElement_HArray1OfHSequenceOfCurveElementPurposeMember( + StepElement_Array1OfHSequenceOfCurveElementPurposeMember, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepElement_Array1OfHSequenceOfCurveElementPurposeMember: ... - -class StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember(StepElement_Array1OfHSequenceOfSurfaceElementPurposeMember, Standard_Transient): +class StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember( + StepElement_Array1OfHSequenceOfSurfaceElementPurposeMember, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepElement_Array1OfHSequenceOfSurfaceElementPurposeMember: ... - -class StepElement_HArray1OfMeasureOrUnspecifiedValue(StepElement_Array1OfMeasureOrUnspecifiedValue, Standard_Transient): +class StepElement_HArray1OfMeasureOrUnspecifiedValue( + StepElement_Array1OfMeasureOrUnspecifiedValue, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepElement_Array1OfMeasureOrUnspecifiedValue: ... - -class StepElement_HArray1OfSurfaceSection(StepElement_Array1OfSurfaceSection, Standard_Transient): +class StepElement_HArray1OfSurfaceSection( + StepElement_Array1OfSurfaceSection, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepElement_Array1OfSurfaceSection: ... - -class StepElement_HArray1OfVolumeElementPurpose(StepElement_Array1OfVolumeElementPurpose, Standard_Transient): +class StepElement_HArray1OfVolumeElementPurpose( + StepElement_Array1OfVolumeElementPurpose, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepElement_Array1OfVolumeElementPurpose: ... - -class StepElement_HArray1OfVolumeElementPurposeMember(StepElement_Array1OfVolumeElementPurposeMember, Standard_Transient): +class StepElement_HArray1OfVolumeElementPurposeMember( + StepElement_Array1OfVolumeElementPurposeMember, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepElement_Array1OfVolumeElementPurposeMember: ... # harray2 classes -class StepElement_HArray2OfCurveElementPurposeMember(StepElement_Array2OfCurveElementPurposeMember, Standard_Transient): +class StepElement_HArray2OfCurveElementPurposeMember( + StepElement_Array2OfCurveElementPurposeMember, Standard_Transient +): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload - def __init__(self, theOther: StepElement_Array2OfCurveElementPurposeMember) -> None: ... + def __init__( + self, theOther: StepElement_Array2OfCurveElementPurposeMember + ) -> None: ... def Array2(self) -> StepElement_Array2OfCurveElementPurposeMember: ... - -class StepElement_HArray2OfSurfaceElementPurpose(StepElement_Array2OfSurfaceElementPurpose, Standard_Transient): +class StepElement_HArray2OfSurfaceElementPurpose( + StepElement_Array2OfSurfaceElementPurpose, Standard_Transient +): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: StepElement_Array2OfSurfaceElementPurpose) -> None: ... def Array2(self) -> StepElement_Array2OfSurfaceElementPurpose: ... - -class StepElement_HArray2OfSurfaceElementPurposeMember(StepElement_Array2OfSurfaceElementPurposeMember, Standard_Transient): +class StepElement_HArray2OfSurfaceElementPurposeMember( + StepElement_Array2OfSurfaceElementPurposeMember, Standard_Transient +): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload - def __init__(self, theOther: StepElement_Array2OfSurfaceElementPurposeMember) -> None: ... + def __init__( + self, theOther: StepElement_Array2OfSurfaceElementPurposeMember + ) -> None: ... def Array2(self) -> StepElement_Array2OfSurfaceElementPurposeMember: ... # hsequence classes -class StepElement_HSequenceOfCurveElementPurposeMember(StepElement_SequenceOfCurveElementPurposeMember, Standard_Transient): +class StepElement_HSequenceOfCurveElementPurposeMember( + StepElement_SequenceOfCurveElementPurposeMember, Standard_Transient +): @overload def __init__(self) -> None: ... @overload - def __init__(self, other: StepElement_SequenceOfCurveElementPurposeMember) -> None: ... + def __init__( + self, other: StepElement_SequenceOfCurveElementPurposeMember + ) -> None: ... def Sequence(self) -> StepElement_SequenceOfCurveElementPurposeMember: ... - def Append(self, theSequence: StepElement_SequenceOfCurveElementPurposeMember) -> None: ... + def Append( + self, theSequence: StepElement_SequenceOfCurveElementPurposeMember + ) -> None: ... - -class StepElement_HSequenceOfCurveElementSectionDefinition(StepElement_SequenceOfCurveElementSectionDefinition, Standard_Transient): +class StepElement_HSequenceOfCurveElementSectionDefinition( + StepElement_SequenceOfCurveElementSectionDefinition, Standard_Transient +): @overload def __init__(self) -> None: ... @overload - def __init__(self, other: StepElement_SequenceOfCurveElementSectionDefinition) -> None: ... + def __init__( + self, other: StepElement_SequenceOfCurveElementSectionDefinition + ) -> None: ... def Sequence(self) -> StepElement_SequenceOfCurveElementSectionDefinition: ... - def Append(self, theSequence: StepElement_SequenceOfCurveElementSectionDefinition) -> None: ... - + def Append( + self, theSequence: StepElement_SequenceOfCurveElementSectionDefinition + ) -> None: ... -class StepElement_HSequenceOfElementMaterial(StepElement_SequenceOfElementMaterial, Standard_Transient): +class StepElement_HSequenceOfElementMaterial( + StepElement_SequenceOfElementMaterial, Standard_Transient +): @overload def __init__(self) -> None: ... @overload @@ -714,13 +946,16 @@ class StepElement_HSequenceOfElementMaterial(StepElement_SequenceOfElementMateri def Sequence(self) -> StepElement_SequenceOfElementMaterial: ... def Append(self, theSequence: StepElement_SequenceOfElementMaterial) -> None: ... - -class StepElement_HSequenceOfSurfaceElementPurposeMember(StepElement_SequenceOfSurfaceElementPurposeMember, Standard_Transient): +class StepElement_HSequenceOfSurfaceElementPurposeMember( + StepElement_SequenceOfSurfaceElementPurposeMember, Standard_Transient +): @overload def __init__(self) -> None: ... @overload - def __init__(self, other: StepElement_SequenceOfSurfaceElementPurposeMember) -> None: ... + def __init__( + self, other: StepElement_SequenceOfSurfaceElementPurposeMember + ) -> None: ... def Sequence(self) -> StepElement_SequenceOfSurfaceElementPurposeMember: ... - def Append(self, theSequence: StepElement_SequenceOfSurfaceElementPurposeMember) -> None: ... - - + def Append( + self, theSequence: StepElement_SequenceOfSurfaceElementPurposeMember + ) -> None: ... diff --git a/src/SWIG_files/wrapper/StepFEA.pyi b/src/SWIG_files/wrapper/StepFEA.pyi index 419719466..75a46f2bd 100644 --- a/src/SWIG_files/wrapper/StepFEA.pyi +++ b/src/SWIG_files/wrapper/StepFEA.pyi @@ -11,7 +11,6 @@ from OCC.Core.StepBasic import * from OCC.Core.StepRepr import * from OCC.Core.StepGeom import * - class StepFEA_Array1OfCurveElementEndOffset: @overload def __init__(self) -> None: ... @@ -157,64 +156,88 @@ class StepFEA_Array1OfNodeRepresentation: def SetValue(self, theIndex: int, theValue: False) -> None: ... class StepFEA_SequenceOfCurve3dElementProperty: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class StepFEA_SequenceOfElementGeometricRelationship: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class StepFEA_SequenceOfElementGeometricRelationship: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class StepFEA_SequenceOfElementRepresentation: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class StepFEA_SequenceOfElementRepresentation: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class StepFEA_SequenceOfNodeRepresentation: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class StepFEA_SequenceOfNodeRepresentation: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class StepFEA_CoordinateSystemType(IntEnum): StepFEA_Cartesian: int = ... @@ -262,45 +285,82 @@ class StepFEA_Curve3dElementProperty(Standard_Transient): def Description(self) -> TCollection_HAsciiString: ... def EndOffsets(self) -> StepFEA_HArray1OfCurveElementEndOffset: ... def EndReleases(self) -> StepFEA_HArray1OfCurveElementEndRelease: ... - def Init(self, aPropertyId: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aIntervalDefinitions: StepFEA_HArray1OfCurveElementInterval, aEndOffsets: StepFEA_HArray1OfCurveElementEndOffset, aEndReleases: StepFEA_HArray1OfCurveElementEndRelease) -> None: ... + def Init( + self, + aPropertyId: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aIntervalDefinitions: StepFEA_HArray1OfCurveElementInterval, + aEndOffsets: StepFEA_HArray1OfCurveElementEndOffset, + aEndReleases: StepFEA_HArray1OfCurveElementEndRelease, + ) -> None: ... def IntervalDefinitions(self) -> StepFEA_HArray1OfCurveElementInterval: ... def PropertyId(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... - def SetEndOffsets(self, EndOffsets: StepFEA_HArray1OfCurveElementEndOffset) -> None: ... - def SetEndReleases(self, EndReleases: StepFEA_HArray1OfCurveElementEndRelease) -> None: ... - def SetIntervalDefinitions(self, IntervalDefinitions: StepFEA_HArray1OfCurveElementInterval) -> None: ... + def SetEndOffsets( + self, EndOffsets: StepFEA_HArray1OfCurveElementEndOffset + ) -> None: ... + def SetEndReleases( + self, EndReleases: StepFEA_HArray1OfCurveElementEndRelease + ) -> None: ... + def SetIntervalDefinitions( + self, IntervalDefinitions: StepFEA_HArray1OfCurveElementInterval + ) -> None: ... def SetPropertyId(self, PropertyId: TCollection_HAsciiString) -> None: ... class StepFEA_CurveElementEndCoordinateSystem(StepData_SelectType): def __init__(self) -> None: ... - def AlignedCurve3dElementCoordinateSystem(self) -> StepFEA_AlignedCurve3dElementCoordinateSystem: ... + def AlignedCurve3dElementCoordinateSystem( + self, + ) -> StepFEA_AlignedCurve3dElementCoordinateSystem: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def FeaAxis2Placement3d(self) -> StepFEA_FeaAxis2Placement3d: ... - def ParametricCurve3dElementCoordinateSystem(self) -> StepFEA_ParametricCurve3dElementCoordinateSystem: ... + def ParametricCurve3dElementCoordinateSystem( + self, + ) -> StepFEA_ParametricCurve3dElementCoordinateSystem: ... class StepFEA_CurveElementEndOffset(Standard_Transient): def __init__(self) -> None: ... def CoordinateSystem(self) -> StepFEA_CurveElementEndCoordinateSystem: ... - def Init(self, aCoordinateSystem: StepFEA_CurveElementEndCoordinateSystem, aOffsetVector: TColStd_HArray1OfReal) -> None: ... + def Init( + self, + aCoordinateSystem: StepFEA_CurveElementEndCoordinateSystem, + aOffsetVector: TColStd_HArray1OfReal, + ) -> None: ... def OffsetVector(self) -> TColStd_HArray1OfReal: ... - def SetCoordinateSystem(self, CoordinateSystem: StepFEA_CurveElementEndCoordinateSystem) -> None: ... + def SetCoordinateSystem( + self, CoordinateSystem: StepFEA_CurveElementEndCoordinateSystem + ) -> None: ... def SetOffsetVector(self, OffsetVector: TColStd_HArray1OfReal) -> None: ... class StepFEA_CurveElementEndRelease(Standard_Transient): def __init__(self) -> None: ... def CoordinateSystem(self) -> StepFEA_CurveElementEndCoordinateSystem: ... - def Init(self, aCoordinateSystem: StepFEA_CurveElementEndCoordinateSystem, aReleases: StepElement_HArray1OfCurveElementEndReleasePacket) -> None: ... + def Init( + self, + aCoordinateSystem: StepFEA_CurveElementEndCoordinateSystem, + aReleases: StepElement_HArray1OfCurveElementEndReleasePacket, + ) -> None: ... def Releases(self) -> StepElement_HArray1OfCurveElementEndReleasePacket: ... - def SetCoordinateSystem(self, CoordinateSystem: StepFEA_CurveElementEndCoordinateSystem) -> None: ... - def SetReleases(self, Releases: StepElement_HArray1OfCurveElementEndReleasePacket) -> None: ... + def SetCoordinateSystem( + self, CoordinateSystem: StepFEA_CurveElementEndCoordinateSystem + ) -> None: ... + def SetReleases( + self, Releases: StepElement_HArray1OfCurveElementEndReleasePacket + ) -> None: ... class StepFEA_CurveElementInterval(Standard_Transient): def __init__(self) -> None: ... def EuAngles(self) -> StepBasic_EulerAngles: ... def FinishPosition(self) -> StepFEA_CurveElementLocation: ... - def Init(self, aFinishPosition: StepFEA_CurveElementLocation, aEuAngles: StepBasic_EulerAngles) -> None: ... + def Init( + self, + aFinishPosition: StepFEA_CurveElementLocation, + aEuAngles: StepBasic_EulerAngles, + ) -> None: ... def SetEuAngles(self, EuAngles: StepBasic_EulerAngles) -> None: ... - def SetFinishPosition(self, FinishPosition: StepFEA_CurveElementLocation) -> None: ... + def SetFinishPosition( + self, FinishPosition: StepFEA_CurveElementLocation + ) -> None: ... class StepFEA_CurveElementLocation(Standard_Transient): def __init__(self) -> None: ... @@ -315,8 +375,12 @@ class StepFEA_DegreeOfFreedom(StepData_SelectType): def CaseNum(self, ent: Standard_Transient) -> int: ... def EnumeratedDegreeOfFreedom(self) -> StepFEA_EnumeratedDegreeOfFreedom: ... def NewMember(self) -> StepData_SelectMember: ... - def SetApplicationDefinedDegreeOfFreedom(self, aVal: TCollection_HAsciiString) -> None: ... - def SetEnumeratedDegreeOfFreedom(self, aVal: StepFEA_EnumeratedDegreeOfFreedom) -> None: ... + def SetApplicationDefinedDegreeOfFreedom( + self, aVal: TCollection_HAsciiString + ) -> None: ... + def SetEnumeratedDegreeOfFreedom( + self, aVal: StepFEA_EnumeratedDegreeOfFreedom + ) -> None: ... class StepFEA_DegreeOfFreedomMember(StepData_SelectNamed): def __init__(self) -> None: ... @@ -329,7 +393,12 @@ class StepFEA_ElementGeometricRelationship(Standard_Transient): def __init__(self) -> None: ... def Aspect(self) -> StepElement_ElementAspect: ... def ElementRef(self) -> StepFEA_ElementOrElementGroup: ... - def Init(self, aElementRef: StepFEA_ElementOrElementGroup, aItem: StepElement_AnalysisItemWithinRepresentation, aAspect: StepElement_ElementAspect) -> None: ... + def Init( + self, + aElementRef: StepFEA_ElementOrElementGroup, + aItem: StepElement_AnalysisItemWithinRepresentation, + aAspect: StepElement_ElementAspect, + ) -> None: ... def Item(self) -> StepElement_AnalysisItemWithinRepresentation: ... def SetAspect(self, Aspect: StepElement_ElementAspect) -> None: ... def SetElementRef(self, ElementRef: StepFEA_ElementOrElementGroup) -> None: ... @@ -343,33 +412,62 @@ class StepFEA_ElementOrElementGroup(StepData_SelectType): class StepFEA_ElementRepresentation(StepRepr_Representation): def __init__(self) -> None: ... - def Init(self, aRepresentation_Name: TCollection_HAsciiString, aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, aRepresentation_ContextOfItems: StepRepr_RepresentationContext, aNodeList: StepFEA_HArray1OfNodeRepresentation) -> None: ... + def Init( + self, + aRepresentation_Name: TCollection_HAsciiString, + aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + aRepresentation_ContextOfItems: StepRepr_RepresentationContext, + aNodeList: StepFEA_HArray1OfNodeRepresentation, + ) -> None: ... def NodeList(self) -> StepFEA_HArray1OfNodeRepresentation: ... def SetNodeList(self, NodeList: StepFEA_HArray1OfNodeRepresentation) -> None: ... class StepFEA_FeaAxis2Placement3d(StepGeom_Axis2Placement3d): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aPlacement_Location: StepGeom_CartesianPoint, hasAxis2Placement3d_Axis: bool, aAxis2Placement3d_Axis: StepGeom_Direction, hasAxis2Placement3d_RefDirection: bool, aAxis2Placement3d_RefDirection: StepGeom_Direction, aSystemType: StepFEA_CoordinateSystemType, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aPlacement_Location: StepGeom_CartesianPoint, + hasAxis2Placement3d_Axis: bool, + aAxis2Placement3d_Axis: StepGeom_Direction, + hasAxis2Placement3d_RefDirection: bool, + aAxis2Placement3d_RefDirection: StepGeom_Direction, + aSystemType: StepFEA_CoordinateSystemType, + aDescription: TCollection_HAsciiString, + ) -> None: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetSystemType(self, SystemType: StepFEA_CoordinateSystemType) -> None: ... def SystemType(self) -> StepFEA_CoordinateSystemType: ... class StepFEA_FeaCurveSectionGeometricRelationship(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aSectionRef: StepElement_CurveElementSectionDefinition, aItem: StepElement_AnalysisItemWithinRepresentation) -> None: ... + def Init( + self, + aSectionRef: StepElement_CurveElementSectionDefinition, + aItem: StepElement_AnalysisItemWithinRepresentation, + ) -> None: ... def Item(self) -> StepElement_AnalysisItemWithinRepresentation: ... def SectionRef(self) -> StepElement_CurveElementSectionDefinition: ... def SetItem(self, Item: StepElement_AnalysisItemWithinRepresentation) -> None: ... - def SetSectionRef(self, SectionRef: StepElement_CurveElementSectionDefinition) -> None: ... + def SetSectionRef( + self, SectionRef: StepElement_CurveElementSectionDefinition + ) -> None: ... class StepFEA_FeaGroup(StepBasic_Group): def __init__(self) -> None: ... - def Init(self, aGroup_Name: TCollection_HAsciiString, aGroup_Description: TCollection_HAsciiString, aModelRef: StepFEA_FeaModel) -> None: ... + def Init( + self, + aGroup_Name: TCollection_HAsciiString, + aGroup_Description: TCollection_HAsciiString, + aModelRef: StepFEA_FeaModel, + ) -> None: ... def ModelRef(self) -> StepFEA_FeaModel: ... def SetModelRef(self, ModelRef: StepFEA_FeaModel) -> None: ... -class StepFEA_FeaMaterialPropertyRepresentation(StepRepr_MaterialPropertyRepresentation): +class StepFEA_FeaMaterialPropertyRepresentation( + StepRepr_MaterialPropertyRepresentation +): def __init__(self) -> None: ... class StepFEA_FeaMaterialPropertyRepresentationItem(StepRepr_RepresentationItem): @@ -380,12 +478,25 @@ class StepFEA_FeaModel(StepRepr_Representation): def AnalysisType(self) -> TCollection_HAsciiString: ... def CreatingSoftware(self) -> TCollection_HAsciiString: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aRepresentation_Name: TCollection_HAsciiString, aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, aRepresentation_ContextOfItems: StepRepr_RepresentationContext, aCreatingSoftware: TCollection_HAsciiString, aIntendedAnalysisCode: TColStd_HArray1OfAsciiString, aDescription: TCollection_HAsciiString, aAnalysisType: TCollection_HAsciiString) -> None: ... + def Init( + self, + aRepresentation_Name: TCollection_HAsciiString, + aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + aRepresentation_ContextOfItems: StepRepr_RepresentationContext, + aCreatingSoftware: TCollection_HAsciiString, + aIntendedAnalysisCode: TColStd_HArray1OfAsciiString, + aDescription: TCollection_HAsciiString, + aAnalysisType: TCollection_HAsciiString, + ) -> None: ... def IntendedAnalysisCode(self) -> TColStd_HArray1OfAsciiString: ... def SetAnalysisType(self, AnalysisType: TCollection_HAsciiString) -> None: ... - def SetCreatingSoftware(self, CreatingSoftware: TCollection_HAsciiString) -> None: ... + def SetCreatingSoftware( + self, CreatingSoftware: TCollection_HAsciiString + ) -> None: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... - def SetIntendedAnalysisCode(self, IntendedAnalysisCode: TColStd_HArray1OfAsciiString) -> None: ... + def SetIntendedAnalysisCode( + self, IntendedAnalysisCode: TColStd_HArray1OfAsciiString + ) -> None: ... class StepFEA_FeaModelDefinition(StepRepr_ShapeAspect): def __init__(self) -> None: ... @@ -393,7 +504,11 @@ class StepFEA_FeaModelDefinition(StepRepr_ShapeAspect): class StepFEA_FeaParametricPoint(StepGeom_Point): def __init__(self) -> None: ... def Coordinates(self) -> TColStd_HArray1OfReal: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aCoordinates: TColStd_HArray1OfReal) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aCoordinates: TColStd_HArray1OfReal, + ) -> None: ... def SetCoordinates(self, Coordinates: TColStd_HArray1OfReal) -> None: ... class StepFEA_FeaRepresentationItem(StepRepr_RepresentationItem): @@ -401,7 +516,11 @@ class StepFEA_FeaRepresentationItem(StepRepr_RepresentationItem): class StepFEA_FeaSurfaceSectionGeometricRelationship(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aSectionRef: StepElement_SurfaceSection, aItem: StepElement_AnalysisItemWithinRepresentation) -> None: ... + def Init( + self, + aSectionRef: StepElement_SurfaceSection, + aItem: StepElement_AnalysisItemWithinRepresentation, + ) -> None: ... def Item(self) -> StepElement_AnalysisItemWithinRepresentation: ... def SectionRef(self) -> StepElement_SurfaceSection: ... def SetItem(self, Item: StepElement_AnalysisItemWithinRepresentation) -> None: ... @@ -411,7 +530,11 @@ class StepFEA_FreedomAndCoefficient(Standard_Transient): def __init__(self) -> None: ... def A(self) -> StepElement_MeasureOrUnspecifiedValue: ... def Freedom(self) -> StepFEA_DegreeOfFreedom: ... - def Init(self, aFreedom: StepFEA_DegreeOfFreedom, aA: StepElement_MeasureOrUnspecifiedValue) -> None: ... + def Init( + self, + aFreedom: StepFEA_DegreeOfFreedom, + aA: StepElement_MeasureOrUnspecifiedValue, + ) -> None: ... def SetA(self, A: StepElement_MeasureOrUnspecifiedValue) -> None: ... def SetFreedom(self, Freedom: StepFEA_DegreeOfFreedom) -> None: ... @@ -426,13 +549,23 @@ class StepFEA_NodeDefinition(StepRepr_ShapeAspect): class StepFEA_NodeRepresentation(StepRepr_Representation): def __init__(self) -> None: ... - def Init(self, aRepresentation_Name: TCollection_HAsciiString, aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, aRepresentation_ContextOfItems: StepRepr_RepresentationContext, aModelRef: StepFEA_FeaModel) -> None: ... + def Init( + self, + aRepresentation_Name: TCollection_HAsciiString, + aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + aRepresentation_ContextOfItems: StepRepr_RepresentationContext, + aModelRef: StepFEA_FeaModel, + ) -> None: ... def ModelRef(self) -> StepFEA_FeaModel: ... def SetModelRef(self, ModelRef: StepFEA_FeaModel) -> None: ... class StepFEA_NodeSet(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aNodes: StepFEA_HArray1OfNodeRepresentation) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aNodes: StepFEA_HArray1OfNodeRepresentation, + ) -> None: ... def Nodes(self) -> StepFEA_HArray1OfNodeRepresentation: ... def SetNodes(self, Nodes: StepFEA_HArray1OfNodeRepresentation) -> None: ... @@ -470,8 +603,12 @@ class StepFEA_SymmetricTensor43d(StepData_SelectType): def AnisotropicSymmetricTensor43d(self) -> TColStd_HArray1OfReal: ... def CaseMem(self, ent: StepData_SelectMember) -> int: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def FeaColumnNormalisedMonoclinicSymmetricTensor43d(self) -> TColStd_HArray1OfReal: ... - def FeaColumnNormalisedOrthotropicSymmetricTensor43d(self) -> TColStd_HArray1OfReal: ... + def FeaColumnNormalisedMonoclinicSymmetricTensor43d( + self, + ) -> TColStd_HArray1OfReal: ... + def FeaColumnNormalisedOrthotropicSymmetricTensor43d( + self, + ) -> TColStd_HArray1OfReal: ... def FeaIsoOrthotropicSymmetricTensor43d(self) -> TColStd_HArray1OfReal: ... def FeaIsotropicSymmetricTensor43d(self) -> TColStd_HArray1OfReal: ... def FeaTransverseIsotropicSymmetricTensor43d(self) -> TColStd_HArray1OfReal: ... @@ -487,52 +624,101 @@ class StepFEA_SymmetricTensor43dMember(StepData_SelectArrReal): class StepFEA_AlignedCurve3dElementCoordinateSystem(StepFEA_FeaRepresentationItem): def __init__(self) -> None: ... def CoordinateSystem(self) -> StepFEA_FeaAxis2Placement3d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aCoordinateSystem: StepFEA_FeaAxis2Placement3d) -> None: ... - def SetCoordinateSystem(self, CoordinateSystem: StepFEA_FeaAxis2Placement3d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aCoordinateSystem: StepFEA_FeaAxis2Placement3d, + ) -> None: ... + def SetCoordinateSystem( + self, CoordinateSystem: StepFEA_FeaAxis2Placement3d + ) -> None: ... class StepFEA_AlignedSurface3dElementCoordinateSystem(StepFEA_FeaRepresentationItem): def __init__(self) -> None: ... def CoordinateSystem(self) -> StepFEA_FeaAxis2Placement3d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aCoordinateSystem: StepFEA_FeaAxis2Placement3d) -> None: ... - def SetCoordinateSystem(self, CoordinateSystem: StepFEA_FeaAxis2Placement3d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aCoordinateSystem: StepFEA_FeaAxis2Placement3d, + ) -> None: ... + def SetCoordinateSystem( + self, CoordinateSystem: StepFEA_FeaAxis2Placement3d + ) -> None: ... class StepFEA_ArbitraryVolume3dElementCoordinateSystem(StepFEA_FeaRepresentationItem): def __init__(self) -> None: ... def CoordinateSystem(self) -> StepFEA_FeaAxis2Placement3d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aCoordinateSystem: StepFEA_FeaAxis2Placement3d) -> None: ... - def SetCoordinateSystem(self, CoordinateSystem: StepFEA_FeaAxis2Placement3d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aCoordinateSystem: StepFEA_FeaAxis2Placement3d, + ) -> None: ... + def SetCoordinateSystem( + self, CoordinateSystem: StepFEA_FeaAxis2Placement3d + ) -> None: ... class StepFEA_ConstantSurface3dElementCoordinateSystem(StepFEA_FeaRepresentationItem): def __init__(self) -> None: ... def Angle(self) -> float: ... def Axis(self) -> int: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aAxis: int, aAngle: float) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aAxis: int, + aAngle: float, + ) -> None: ... def SetAngle(self, Angle: float) -> None: ... def SetAxis(self, Axis: int) -> None: ... class StepFEA_Curve3dElementRepresentation(StepFEA_ElementRepresentation): def __init__(self) -> None: ... def ElementDescriptor(self) -> StepElement_Curve3dElementDescriptor: ... - def Init(self, aRepresentation_Name: TCollection_HAsciiString, aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, aRepresentation_ContextOfItems: StepRepr_RepresentationContext, aElementRepresentation_NodeList: StepFEA_HArray1OfNodeRepresentation, aModelRef: StepFEA_FeaModel3d, aElementDescriptor: StepElement_Curve3dElementDescriptor, aProperty: StepFEA_Curve3dElementProperty, aMaterial: StepElement_ElementMaterial) -> None: ... + def Init( + self, + aRepresentation_Name: TCollection_HAsciiString, + aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + aRepresentation_ContextOfItems: StepRepr_RepresentationContext, + aElementRepresentation_NodeList: StepFEA_HArray1OfNodeRepresentation, + aModelRef: StepFEA_FeaModel3d, + aElementDescriptor: StepElement_Curve3dElementDescriptor, + aProperty: StepFEA_Curve3dElementProperty, + aMaterial: StepElement_ElementMaterial, + ) -> None: ... def Material(self) -> StepElement_ElementMaterial: ... def ModelRef(self) -> StepFEA_FeaModel3d: ... def Property(self) -> StepFEA_Curve3dElementProperty: ... - def SetElementDescriptor(self, ElementDescriptor: StepElement_Curve3dElementDescriptor) -> None: ... + def SetElementDescriptor( + self, ElementDescriptor: StepElement_Curve3dElementDescriptor + ) -> None: ... def SetMaterial(self, Material: StepElement_ElementMaterial) -> None: ... def SetModelRef(self, ModelRef: StepFEA_FeaModel3d) -> None: ... def SetProperty(self, Property: StepFEA_Curve3dElementProperty) -> None: ... class StepFEA_CurveElementIntervalConstant(StepFEA_CurveElementInterval): def __init__(self) -> None: ... - def Init(self, aCurveElementInterval_FinishPosition: StepFEA_CurveElementLocation, aCurveElementInterval_EuAngles: StepBasic_EulerAngles, aSection: StepElement_CurveElementSectionDefinition) -> None: ... + def Init( + self, + aCurveElementInterval_FinishPosition: StepFEA_CurveElementLocation, + aCurveElementInterval_EuAngles: StepBasic_EulerAngles, + aSection: StepElement_CurveElementSectionDefinition, + ) -> None: ... def Section(self) -> StepElement_CurveElementSectionDefinition: ... - def SetSection(self, Section: StepElement_CurveElementSectionDefinition) -> None: ... + def SetSection( + self, Section: StepElement_CurveElementSectionDefinition + ) -> None: ... class StepFEA_CurveElementIntervalLinearlyVarying(StepFEA_CurveElementInterval): def __init__(self) -> None: ... - def Init(self, aCurveElementInterval_FinishPosition: StepFEA_CurveElementLocation, aCurveElementInterval_EuAngles: StepBasic_EulerAngles, aSections: StepElement_HArray1OfCurveElementSectionDefinition) -> None: ... + def Init( + self, + aCurveElementInterval_FinishPosition: StepFEA_CurveElementLocation, + aCurveElementInterval_EuAngles: StepBasic_EulerAngles, + aSections: StepElement_HArray1OfCurveElementSectionDefinition, + ) -> None: ... def Sections(self) -> StepElement_HArray1OfCurveElementSectionDefinition: ... - def SetSections(self, Sections: StepElement_HArray1OfCurveElementSectionDefinition) -> None: ... + def SetSections( + self, Sections: StepElement_HArray1OfCurveElementSectionDefinition + ) -> None: ... class StepFEA_DummyNode(StepFEA_NodeRepresentation): def __init__(self) -> None: ... @@ -540,25 +726,39 @@ class StepFEA_DummyNode(StepFEA_NodeRepresentation): class StepFEA_ElementGroup(StepFEA_FeaGroup): def __init__(self) -> None: ... def Elements(self) -> StepFEA_HArray1OfElementRepresentation: ... - def Init(self, aGroup_Name: TCollection_HAsciiString, aGroup_Description: TCollection_HAsciiString, aFeaGroup_ModelRef: StepFEA_FeaModel, aElements: StepFEA_HArray1OfElementRepresentation) -> None: ... + def Init( + self, + aGroup_Name: TCollection_HAsciiString, + aGroup_Description: TCollection_HAsciiString, + aFeaGroup_ModelRef: StepFEA_FeaModel, + aElements: StepFEA_HArray1OfElementRepresentation, + ) -> None: ... def SetElements(self, Elements: StepFEA_HArray1OfElementRepresentation) -> None: ... class StepFEA_FeaAreaDensity(StepFEA_FeaMaterialPropertyRepresentationItem): def __init__(self) -> None: ... def FeaConstant(self) -> float: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstant: float) -> None: ... + def Init( + self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstant: float + ) -> None: ... def SetFeaConstant(self, FeaConstant: float) -> None: ... class StepFEA_FeaLinearElasticity(StepFEA_FeaMaterialPropertyRepresentationItem): def __init__(self) -> None: ... def FeaConstants(self) -> StepFEA_SymmetricTensor43d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstants: StepFEA_SymmetricTensor43d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFeaConstants: StepFEA_SymmetricTensor43d, + ) -> None: ... def SetFeaConstants(self, FeaConstants: StepFEA_SymmetricTensor43d) -> None: ... class StepFEA_FeaMassDensity(StepFEA_FeaMaterialPropertyRepresentationItem): def __init__(self) -> None: ... def FeaConstant(self) -> float: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstant: float) -> None: ... + def Init( + self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstant: float + ) -> None: ... def SetFeaConstant(self, FeaConstant: float) -> None: ... class StepFEA_FeaModel3d(StepFEA_FeaModel): @@ -567,13 +767,24 @@ class StepFEA_FeaModel3d(StepFEA_FeaModel): class StepFEA_FeaMoistureAbsorption(StepFEA_FeaMaterialPropertyRepresentationItem): def __init__(self) -> None: ... def FeaConstants(self) -> StepFEA_SymmetricTensor23d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstants: StepFEA_SymmetricTensor23d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFeaConstants: StepFEA_SymmetricTensor23d, + ) -> None: ... def SetFeaConstants(self, FeaConstants: StepFEA_SymmetricTensor23d) -> None: ... -class StepFEA_FeaSecantCoefficientOfLinearThermalExpansion(StepFEA_FeaMaterialPropertyRepresentationItem): +class StepFEA_FeaSecantCoefficientOfLinearThermalExpansion( + StepFEA_FeaMaterialPropertyRepresentationItem +): def __init__(self) -> None: ... def FeaConstants(self) -> StepFEA_SymmetricTensor23d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstants: StepFEA_SymmetricTensor23d, aReferenceTemperature: float) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFeaConstants: StepFEA_SymmetricTensor23d, + aReferenceTemperature: float, + ) -> None: ... def ReferenceTemperature(self) -> float: ... def SetFeaConstants(self, FeaConstants: StepFEA_SymmetricTensor23d) -> None: ... def SetReferenceTemperature(self, ReferenceTemperature: float) -> None: ... @@ -581,31 +792,55 @@ class StepFEA_FeaSecantCoefficientOfLinearThermalExpansion(StepFEA_FeaMaterialPr class StepFEA_FeaShellBendingStiffness(StepFEA_FeaMaterialPropertyRepresentationItem): def __init__(self) -> None: ... def FeaConstants(self) -> StepFEA_SymmetricTensor42d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstants: StepFEA_SymmetricTensor42d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFeaConstants: StepFEA_SymmetricTensor42d, + ) -> None: ... def SetFeaConstants(self, FeaConstants: StepFEA_SymmetricTensor42d) -> None: ... -class StepFEA_FeaShellMembraneBendingCouplingStiffness(StepFEA_FeaMaterialPropertyRepresentationItem): +class StepFEA_FeaShellMembraneBendingCouplingStiffness( + StepFEA_FeaMaterialPropertyRepresentationItem +): def __init__(self) -> None: ... def FeaConstants(self) -> StepFEA_SymmetricTensor42d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstants: StepFEA_SymmetricTensor42d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFeaConstants: StepFEA_SymmetricTensor42d, + ) -> None: ... def SetFeaConstants(self, FeaConstants: StepFEA_SymmetricTensor42d) -> None: ... class StepFEA_FeaShellMembraneStiffness(StepFEA_FeaMaterialPropertyRepresentationItem): def __init__(self) -> None: ... def FeaConstants(self) -> StepFEA_SymmetricTensor42d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstants: StepFEA_SymmetricTensor42d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFeaConstants: StepFEA_SymmetricTensor42d, + ) -> None: ... def SetFeaConstants(self, FeaConstants: StepFEA_SymmetricTensor42d) -> None: ... class StepFEA_FeaShellShearStiffness(StepFEA_FeaMaterialPropertyRepresentationItem): def __init__(self) -> None: ... def FeaConstants(self) -> StepFEA_SymmetricTensor22d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstants: StepFEA_SymmetricTensor22d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFeaConstants: StepFEA_SymmetricTensor22d, + ) -> None: ... def SetFeaConstants(self, FeaConstants: StepFEA_SymmetricTensor22d) -> None: ... -class StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion(StepFEA_FeaMaterialPropertyRepresentationItem): +class StepFEA_FeaTangentialCoefficientOfLinearThermalExpansion( + StepFEA_FeaMaterialPropertyRepresentationItem +): def __init__(self) -> None: ... def FeaConstants(self) -> StepFEA_SymmetricTensor23d: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFeaConstants: StepFEA_SymmetricTensor23d) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFeaConstants: StepFEA_SymmetricTensor23d, + ) -> None: ... def SetFeaConstants(self, FeaConstants: StepFEA_SymmetricTensor23d) -> None: ... class StepFEA_GeometricNode(StepFEA_NodeRepresentation): @@ -616,38 +851,73 @@ class StepFEA_Node(StepFEA_NodeRepresentation): class StepFEA_NodeGroup(StepFEA_FeaGroup): def __init__(self) -> None: ... - def Init(self, aGroup_Name: TCollection_HAsciiString, aGroup_Description: TCollection_HAsciiString, aFeaGroup_ModelRef: StepFEA_FeaModel, aNodes: StepFEA_HArray1OfNodeRepresentation) -> None: ... + def Init( + self, + aGroup_Name: TCollection_HAsciiString, + aGroup_Description: TCollection_HAsciiString, + aFeaGroup_ModelRef: StepFEA_FeaModel, + aNodes: StepFEA_HArray1OfNodeRepresentation, + ) -> None: ... def Nodes(self) -> StepFEA_HArray1OfNodeRepresentation: ... def SetNodes(self, Nodes: StepFEA_HArray1OfNodeRepresentation) -> None: ... -class StepFEA_ParametricCurve3dElementCoordinateDirection(StepFEA_FeaRepresentationItem): +class StepFEA_ParametricCurve3dElementCoordinateDirection( + StepFEA_FeaRepresentationItem +): def __init__(self) -> None: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aOrientation: StepGeom_Direction) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aOrientation: StepGeom_Direction, + ) -> None: ... def Orientation(self) -> StepGeom_Direction: ... def SetOrientation(self, Orientation: StepGeom_Direction) -> None: ... class StepFEA_ParametricCurve3dElementCoordinateSystem(StepFEA_FeaRepresentationItem): def __init__(self) -> None: ... def Direction(self) -> StepFEA_ParametricCurve3dElementCoordinateDirection: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aDirection: StepFEA_ParametricCurve3dElementCoordinateDirection) -> None: ... - def SetDirection(self, Direction: StepFEA_ParametricCurve3dElementCoordinateDirection) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aDirection: StepFEA_ParametricCurve3dElementCoordinateDirection, + ) -> None: ... + def SetDirection( + self, Direction: StepFEA_ParametricCurve3dElementCoordinateDirection + ) -> None: ... class StepFEA_ParametricSurface3dElementCoordinateSystem(StepFEA_FeaRepresentationItem): def __init__(self) -> None: ... def Angle(self) -> float: ... def Axis(self) -> int: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aAxis: int, aAngle: float) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aAxis: int, + aAngle: float, + ) -> None: ... def SetAngle(self, Angle: float) -> None: ... def SetAxis(self, Axis: int) -> None: ... class StepFEA_Surface3dElementRepresentation(StepFEA_ElementRepresentation): def __init__(self) -> None: ... def ElementDescriptor(self) -> StepElement_Surface3dElementDescriptor: ... - def Init(self, aRepresentation_Name: TCollection_HAsciiString, aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, aRepresentation_ContextOfItems: StepRepr_RepresentationContext, aElementRepresentation_NodeList: StepFEA_HArray1OfNodeRepresentation, aModelRef: StepFEA_FeaModel3d, aElementDescriptor: StepElement_Surface3dElementDescriptor, aProperty: StepElement_SurfaceElementProperty, aMaterial: StepElement_ElementMaterial) -> None: ... + def Init( + self, + aRepresentation_Name: TCollection_HAsciiString, + aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + aRepresentation_ContextOfItems: StepRepr_RepresentationContext, + aElementRepresentation_NodeList: StepFEA_HArray1OfNodeRepresentation, + aModelRef: StepFEA_FeaModel3d, + aElementDescriptor: StepElement_Surface3dElementDescriptor, + aProperty: StepElement_SurfaceElementProperty, + aMaterial: StepElement_ElementMaterial, + ) -> None: ... def Material(self) -> StepElement_ElementMaterial: ... def ModelRef(self) -> StepFEA_FeaModel3d: ... def Property(self) -> StepElement_SurfaceElementProperty: ... - def SetElementDescriptor(self, ElementDescriptor: StepElement_Surface3dElementDescriptor) -> None: ... + def SetElementDescriptor( + self, ElementDescriptor: StepElement_Surface3dElementDescriptor + ) -> None: ... def SetMaterial(self, Material: StepElement_ElementMaterial) -> None: ... def SetModelRef(self, ModelRef: StepFEA_FeaModel3d) -> None: ... def SetProperty(self, Property: StepElement_SurfaceElementProperty) -> None: ... @@ -655,10 +925,21 @@ class StepFEA_Surface3dElementRepresentation(StepFEA_ElementRepresentation): class StepFEA_Volume3dElementRepresentation(StepFEA_ElementRepresentation): def __init__(self) -> None: ... def ElementDescriptor(self) -> StepElement_Volume3dElementDescriptor: ... - def Init(self, aRepresentation_Name: TCollection_HAsciiString, aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, aRepresentation_ContextOfItems: StepRepr_RepresentationContext, aElementRepresentation_NodeList: StepFEA_HArray1OfNodeRepresentation, aModelRef: StepFEA_FeaModel3d, aElementDescriptor: StepElement_Volume3dElementDescriptor, aMaterial: StepElement_ElementMaterial) -> None: ... + def Init( + self, + aRepresentation_Name: TCollection_HAsciiString, + aRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + aRepresentation_ContextOfItems: StepRepr_RepresentationContext, + aElementRepresentation_NodeList: StepFEA_HArray1OfNodeRepresentation, + aModelRef: StepFEA_FeaModel3d, + aElementDescriptor: StepElement_Volume3dElementDescriptor, + aMaterial: StepElement_ElementMaterial, + ) -> None: ... def Material(self) -> StepElement_ElementMaterial: ... def ModelRef(self) -> StepFEA_FeaModel3d: ... - def SetElementDescriptor(self, ElementDescriptor: StepElement_Volume3dElementDescriptor) -> None: ... + def SetElementDescriptor( + self, ElementDescriptor: StepElement_Volume3dElementDescriptor + ) -> None: ... def SetMaterial(self, Material: StepElement_ElementMaterial) -> None: ... def SetModelRef(self, ModelRef: StepFEA_FeaModel3d) -> None: ... @@ -670,39 +951,48 @@ class StepFEA_NodeWithVector(StepFEA_Node): # harray1 classes -class StepFEA_HArray1OfCurveElementEndOffset(StepFEA_Array1OfCurveElementEndOffset, Standard_Transient): +class StepFEA_HArray1OfCurveElementEndOffset( + StepFEA_Array1OfCurveElementEndOffset, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepFEA_Array1OfCurveElementEndOffset: ... - -class StepFEA_HArray1OfCurveElementEndRelease(StepFEA_Array1OfCurveElementEndRelease, Standard_Transient): +class StepFEA_HArray1OfCurveElementEndRelease( + StepFEA_Array1OfCurveElementEndRelease, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepFEA_Array1OfCurveElementEndRelease: ... - -class StepFEA_HArray1OfCurveElementInterval(StepFEA_Array1OfCurveElementInterval, Standard_Transient): +class StepFEA_HArray1OfCurveElementInterval( + StepFEA_Array1OfCurveElementInterval, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepFEA_Array1OfCurveElementInterval: ... - -class StepFEA_HArray1OfDegreeOfFreedom(StepFEA_Array1OfDegreeOfFreedom, Standard_Transient): +class StepFEA_HArray1OfDegreeOfFreedom( + StepFEA_Array1OfDegreeOfFreedom, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepFEA_Array1OfDegreeOfFreedom: ... - -class StepFEA_HArray1OfElementRepresentation(StepFEA_Array1OfElementRepresentation, Standard_Transient): +class StepFEA_HArray1OfElementRepresentation( + StepFEA_Array1OfElementRepresentation, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepFEA_Array1OfElementRepresentation: ... - -class StepFEA_HArray1OfNodeRepresentation(StepFEA_Array1OfNodeRepresentation, Standard_Transient): +class StepFEA_HArray1OfNodeRepresentation( + StepFEA_Array1OfNodeRepresentation, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepFEA_Array1OfNodeRepresentation: ... # harray2 classes # hsequence classes -class StepFEA_HSequenceOfCurve3dElementProperty(StepFEA_SequenceOfCurve3dElementProperty, Standard_Transient): +class StepFEA_HSequenceOfCurve3dElementProperty( + StepFEA_SequenceOfCurve3dElementProperty, Standard_Transient +): @overload def __init__(self) -> None: ... @overload @@ -710,17 +1000,23 @@ class StepFEA_HSequenceOfCurve3dElementProperty(StepFEA_SequenceOfCurve3dElement def Sequence(self) -> StepFEA_SequenceOfCurve3dElementProperty: ... def Append(self, theSequence: StepFEA_SequenceOfCurve3dElementProperty) -> None: ... - -class StepFEA_HSequenceOfElementGeometricRelationship(StepFEA_SequenceOfElementGeometricRelationship, Standard_Transient): +class StepFEA_HSequenceOfElementGeometricRelationship( + StepFEA_SequenceOfElementGeometricRelationship, Standard_Transient +): @overload def __init__(self) -> None: ... @overload - def __init__(self, other: StepFEA_SequenceOfElementGeometricRelationship) -> None: ... + def __init__( + self, other: StepFEA_SequenceOfElementGeometricRelationship + ) -> None: ... def Sequence(self) -> StepFEA_SequenceOfElementGeometricRelationship: ... - def Append(self, theSequence: StepFEA_SequenceOfElementGeometricRelationship) -> None: ... - + def Append( + self, theSequence: StepFEA_SequenceOfElementGeometricRelationship + ) -> None: ... -class StepFEA_HSequenceOfElementRepresentation(StepFEA_SequenceOfElementRepresentation, Standard_Transient): +class StepFEA_HSequenceOfElementRepresentation( + StepFEA_SequenceOfElementRepresentation, Standard_Transient +): @overload def __init__(self) -> None: ... @overload @@ -728,13 +1024,12 @@ class StepFEA_HSequenceOfElementRepresentation(StepFEA_SequenceOfElementRepresen def Sequence(self) -> StepFEA_SequenceOfElementRepresentation: ... def Append(self, theSequence: StepFEA_SequenceOfElementRepresentation) -> None: ... - -class StepFEA_HSequenceOfNodeRepresentation(StepFEA_SequenceOfNodeRepresentation, Standard_Transient): +class StepFEA_HSequenceOfNodeRepresentation( + StepFEA_SequenceOfNodeRepresentation, Standard_Transient +): @overload def __init__(self) -> None: ... @overload def __init__(self, other: StepFEA_SequenceOfNodeRepresentation) -> None: ... def Sequence(self) -> StepFEA_SequenceOfNodeRepresentation: ... def Append(self, theSequence: StepFEA_SequenceOfNodeRepresentation) -> None: ... - - diff --git a/src/SWIG_files/wrapper/StepGeom.pyi b/src/SWIG_files/wrapper/StepGeom.pyi index 76cf2937c..cc10a3bdd 100644 --- a/src/SWIG_files/wrapper/StepGeom.pyi +++ b/src/SWIG_files/wrapper/StepGeom.pyi @@ -215,11 +215,15 @@ StepGeom_bssfCylindricalSurf = StepGeom_BSplineSurfaceForm.StepGeom_bssfCylindri StepGeom_bssfConicalSurf = StepGeom_BSplineSurfaceForm.StepGeom_bssfConicalSurf StepGeom_bssfSphericalSurf = StepGeom_BSplineSurfaceForm.StepGeom_bssfSphericalSurf StepGeom_bssfToroidalSurf = StepGeom_BSplineSurfaceForm.StepGeom_bssfToroidalSurf -StepGeom_bssfSurfOfRevolution = StepGeom_BSplineSurfaceForm.StepGeom_bssfSurfOfRevolution +StepGeom_bssfSurfOfRevolution = ( + StepGeom_BSplineSurfaceForm.StepGeom_bssfSurfOfRevolution +) StepGeom_bssfRuledSurf = StepGeom_BSplineSurfaceForm.StepGeom_bssfRuledSurf StepGeom_bssfGeneralisedCone = StepGeom_BSplineSurfaceForm.StepGeom_bssfGeneralisedCone StepGeom_bssfQuadricSurf = StepGeom_BSplineSurfaceForm.StepGeom_bssfQuadricSurf -StepGeom_bssfSurfOfLinearExtrusion = StepGeom_BSplineSurfaceForm.StepGeom_bssfSurfOfLinearExtrusion +StepGeom_bssfSurfOfLinearExtrusion = ( + StepGeom_BSplineSurfaceForm.StepGeom_bssfSurfOfLinearExtrusion +) StepGeom_bssfUnspecified = StepGeom_BSplineSurfaceForm.StepGeom_bssfUnspecified class StepGeom_KnotType(IntEnum): @@ -239,8 +243,12 @@ class StepGeom_PreferredSurfaceCurveRepresentation(IntEnum): StepGeom_pscrPcurveS2: int = ... StepGeom_pscrCurve3d = StepGeom_PreferredSurfaceCurveRepresentation.StepGeom_pscrCurve3d -StepGeom_pscrPcurveS1 = StepGeom_PreferredSurfaceCurveRepresentation.StepGeom_pscrPcurveS1 -StepGeom_pscrPcurveS2 = StepGeom_PreferredSurfaceCurveRepresentation.StepGeom_pscrPcurveS2 +StepGeom_pscrPcurveS1 = ( + StepGeom_PreferredSurfaceCurveRepresentation.StepGeom_pscrPcurveS1 +) +StepGeom_pscrPcurveS2 = ( + StepGeom_PreferredSurfaceCurveRepresentation.StepGeom_pscrPcurveS2 +) class StepGeom_TransitionCode(IntEnum): StepGeom_tcDiscontinuous: int = ... @@ -251,7 +259,9 @@ class StepGeom_TransitionCode(IntEnum): StepGeom_tcDiscontinuous = StepGeom_TransitionCode.StepGeom_tcDiscontinuous StepGeom_tcContinuous = StepGeom_TransitionCode.StepGeom_tcContinuous StepGeom_tcContSameGradient = StepGeom_TransitionCode.StepGeom_tcContSameGradient -StepGeom_tcContSameGradientSameCurvature = StepGeom_TransitionCode.StepGeom_tcContSameGradientSameCurvature +StepGeom_tcContSameGradientSameCurvature = ( + StepGeom_TransitionCode.StepGeom_tcContSameGradientSameCurvature +) class StepGeom_TrimmingPreference(IntEnum): StepGeom_tpCartesian: int = ... @@ -270,7 +280,12 @@ class StepGeom_Axis2Placement(StepData_SelectType): class StepGeom_CompositeCurveSegment(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aTransition: StepGeom_TransitionCode, aSameSense: bool, aParentCurve: StepGeom_Curve) -> None: ... + def Init( + self, + aTransition: StepGeom_TransitionCode, + aSameSense: bool, + aParentCurve: StepGeom_Curve, + ) -> None: ... def ParentCurve(self) -> StepGeom_Curve: ... def SameSense(self) -> bool: ... def SetParentCurve(self, aParentCurve: StepGeom_Curve) -> None: ... @@ -285,23 +300,51 @@ class StepGeom_CurveOnSurface(StepData_SelectType): def Pcurve(self) -> StepGeom_Pcurve: ... def SurfaceCurve(self) -> StepGeom_SurfaceCurve: ... -class StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx(StepRepr_RepresentationContext): +class StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx( + StepRepr_RepresentationContext +): def __init__(self) -> None: ... def CoordinateSpaceDimension(self) -> int: ... - def GeometricRepresentationContext(self) -> StepGeom_GeometricRepresentationContext: ... - def GlobalUncertaintyAssignedContext(self) -> StepRepr_GlobalUncertaintyAssignedContext: ... + def GeometricRepresentationContext( + self, + ) -> StepGeom_GeometricRepresentationContext: ... + def GlobalUncertaintyAssignedContext( + self, + ) -> StepRepr_GlobalUncertaintyAssignedContext: ... def GlobalUnitAssignedContext(self) -> StepRepr_GlobalUnitAssignedContext: ... @overload - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString, aGeometricRepresentationCtx: StepGeom_GeometricRepresentationContext, aGlobalUnitAssignedCtx: StepRepr_GlobalUnitAssignedContext, aGlobalUncertaintyAssignedCtx: StepRepr_GlobalUncertaintyAssignedContext) -> None: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + aGeometricRepresentationCtx: StepGeom_GeometricRepresentationContext, + aGlobalUnitAssignedCtx: StepRepr_GlobalUnitAssignedContext, + aGlobalUncertaintyAssignedCtx: StepRepr_GlobalUncertaintyAssignedContext, + ) -> None: ... @overload - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString, aCoordinateSpaceDimension: int, aUnits: StepBasic_HArray1OfNamedUnit, anUncertainty: StepBasic_HArray1OfUncertaintyMeasureWithUnit) -> None: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + aCoordinateSpaceDimension: int, + aUnits: StepBasic_HArray1OfNamedUnit, + anUncertainty: StepBasic_HArray1OfUncertaintyMeasureWithUnit, + ) -> None: ... def NbUncertainty(self) -> int: ... def NbUnits(self) -> int: ... def SetCoordinateSpaceDimension(self, aCoordinateSpaceDimension: int) -> None: ... - def SetGeometricRepresentationContext(self, aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext) -> None: ... - def SetGlobalUncertaintyAssignedContext(self, aGlobalUncertaintyAssignedCtx: StepRepr_GlobalUncertaintyAssignedContext) -> None: ... - def SetGlobalUnitAssignedContext(self, aGlobalUnitAssignedContext: StepRepr_GlobalUnitAssignedContext) -> None: ... - def SetUncertainty(self, aUncertainty: StepBasic_HArray1OfUncertaintyMeasureWithUnit) -> None: ... + def SetGeometricRepresentationContext( + self, aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext + ) -> None: ... + def SetGlobalUncertaintyAssignedContext( + self, aGlobalUncertaintyAssignedCtx: StepRepr_GlobalUncertaintyAssignedContext + ) -> None: ... + def SetGlobalUnitAssignedContext( + self, aGlobalUnitAssignedContext: StepRepr_GlobalUnitAssignedContext + ) -> None: ... + def SetUncertainty( + self, aUncertainty: StepBasic_HArray1OfUncertaintyMeasureWithUnit + ) -> None: ... def SetUnits(self, aUnits: StepBasic_HArray1OfNamedUnit) -> None: ... def Uncertainty(self) -> StepBasic_HArray1OfUncertaintyMeasureWithUnit: ... def UncertaintyValue(self, num: int) -> StepBasic_UncertaintyMeasureWithUnit: ... @@ -311,38 +354,84 @@ class StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx(StepRepr_ class StepGeom_GeometricRepresentationContext(StepRepr_RepresentationContext): def __init__(self) -> None: ... def CoordinateSpaceDimension(self) -> int: ... - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString, aCoordinateSpaceDimension: int) -> None: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + aCoordinateSpaceDimension: int, + ) -> None: ... def SetCoordinateSpaceDimension(self, aCoordinateSpaceDimension: int) -> None: ... -class StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext(StepRepr_RepresentationContext): +class StepGeom_GeometricRepresentationContextAndGlobalUnitAssignedContext( + StepRepr_RepresentationContext +): def __init__(self) -> None: ... def CoordinateSpaceDimension(self) -> int: ... - def GeometricRepresentationContext(self) -> StepGeom_GeometricRepresentationContext: ... + def GeometricRepresentationContext( + self, + ) -> StepGeom_GeometricRepresentationContext: ... def GlobalUnitAssignedContext(self) -> StepRepr_GlobalUnitAssignedContext: ... @overload - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString, aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext, aGlobalUnitAssignedContext: StepRepr_GlobalUnitAssignedContext) -> None: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext, + aGlobalUnitAssignedContext: StepRepr_GlobalUnitAssignedContext, + ) -> None: ... @overload - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString, aCoordinateSpaceDimension: int, aUnits: StepBasic_HArray1OfNamedUnit) -> None: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + aCoordinateSpaceDimension: int, + aUnits: StepBasic_HArray1OfNamedUnit, + ) -> None: ... def NbUnits(self) -> int: ... def SetCoordinateSpaceDimension(self, aCoordinateSpaceDimension: int) -> None: ... - def SetGeometricRepresentationContext(self, aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext) -> None: ... - def SetGlobalUnitAssignedContext(self, aGlobalUnitAssignedContext: StepRepr_GlobalUnitAssignedContext) -> None: ... + def SetGeometricRepresentationContext( + self, aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext + ) -> None: ... + def SetGlobalUnitAssignedContext( + self, aGlobalUnitAssignedContext: StepRepr_GlobalUnitAssignedContext + ) -> None: ... def SetUnits(self, aUnits: StepBasic_HArray1OfNamedUnit) -> None: ... def Units(self) -> StepBasic_HArray1OfNamedUnit: ... def UnitsValue(self, num: int) -> StepBasic_NamedUnit: ... -class StepGeom_GeometricRepresentationContextAndParametricRepresentationContext(StepRepr_RepresentationContext): +class StepGeom_GeometricRepresentationContextAndParametricRepresentationContext( + StepRepr_RepresentationContext +): def __init__(self) -> None: ... def CoordinateSpaceDimension(self) -> int: ... - def GeometricRepresentationContext(self) -> StepGeom_GeometricRepresentationContext: ... + def GeometricRepresentationContext( + self, + ) -> StepGeom_GeometricRepresentationContext: ... @overload - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString, aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext, aParametricRepresentationContext: StepRepr_ParametricRepresentationContext) -> None: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext, + aParametricRepresentationContext: StepRepr_ParametricRepresentationContext, + ) -> None: ... @overload - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString, aCoordinateSpaceDimension: int) -> None: ... - def ParametricRepresentationContext(self) -> StepRepr_ParametricRepresentationContext: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + aCoordinateSpaceDimension: int, + ) -> None: ... + def ParametricRepresentationContext( + self, + ) -> StepRepr_ParametricRepresentationContext: ... def SetCoordinateSpaceDimension(self, aCoordinateSpaceDimension: int) -> None: ... - def SetGeometricRepresentationContext(self, aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext) -> None: ... - def SetParametricRepresentationContext(self, aParametricRepresentationContext: StepRepr_ParametricRepresentationContext) -> None: ... + def SetGeometricRepresentationContext( + self, aGeometricRepresentationContext: StepGeom_GeometricRepresentationContext + ) -> None: ... + def SetParametricRepresentationContext( + self, aParametricRepresentationContext: StepRepr_ParametricRepresentationContext + ) -> None: ... class StepGeom_GeometricRepresentationItem(StepRepr_RepresentationItem): def __init__(self) -> None: ... @@ -361,7 +450,14 @@ class StepGeom_SurfaceBoundary(StepData_SelectType): class StepGeom_SurfacePatch(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aParentSurface: StepGeom_BoundedSurface, aUTransition: StepGeom_TransitionCode, aVTransition: StepGeom_TransitionCode, aUSense: bool, aVSense: bool) -> None: ... + def Init( + self, + aParentSurface: StepGeom_BoundedSurface, + aUTransition: StepGeom_TransitionCode, + aVTransition: StepGeom_TransitionCode, + aUSense: bool, + aVSense: bool, + ) -> None: ... def ParentSurface(self) -> StepGeom_BoundedSurface: ... def SetParentSurface(self, aParentSurface: StepGeom_BoundedSurface) -> None: ... def SetUSense(self, aUSense: bool) -> None: ... @@ -401,7 +497,17 @@ class StepGeom_CartesianTransformationOperator(StepGeom_GeometricRepresentationI def HasAxis1(self) -> bool: ... def HasAxis2(self) -> bool: ... def HasScale(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasAaxis1: bool, aAxis1: StepGeom_Direction, hasAaxis2: bool, aAxis2: StepGeom_Direction, aLocalOrigin: StepGeom_CartesianPoint, hasAscale: bool, aScale: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasAaxis1: bool, + aAxis1: StepGeom_Direction, + hasAaxis2: bool, + aAxis2: StepGeom_Direction, + aLocalOrigin: StepGeom_CartesianPoint, + hasAscale: bool, + aScale: float, + ) -> None: ... def LocalOrigin(self) -> StepGeom_CartesianPoint: ... def Scale(self) -> float: ... def SetAxis1(self, aAxis1: StepGeom_Direction) -> None: ... @@ -419,13 +525,17 @@ class StepGeom_Direction(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def DirectionRatios(self) -> TColStd_HArray1OfReal: ... def DirectionRatiosValue(self, num: int) -> float: ... - def Init(self, aName: TCollection_HAsciiString, aDirectionRatios: TColStd_HArray1OfReal) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aDirectionRatios: TColStd_HArray1OfReal + ) -> None: ... def NbDirectionRatios(self) -> int: ... def SetDirectionRatios(self, aDirectionRatios: TColStd_HArray1OfReal) -> None: ... class StepGeom_Placement(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aLocation: StepGeom_CartesianPoint) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aLocation: StepGeom_CartesianPoint + ) -> None: ... def Location(self) -> StepGeom_CartesianPoint: ... def SetLocation(self, aLocation: StepGeom_CartesianPoint) -> None: ... @@ -434,7 +544,13 @@ class StepGeom_Point(StepGeom_GeometricRepresentationItem): class StepGeom_ReparametrisedCompositeCurveSegment(StepGeom_CompositeCurveSegment): def __init__(self) -> None: ... - def Init(self, aTransition: StepGeom_TransitionCode, aSameSense: bool, aParentCurve: StepGeom_Curve, aParamLength: float) -> None: ... + def Init( + self, + aTransition: StepGeom_TransitionCode, + aSameSense: bool, + aParentCurve: StepGeom_Curve, + aParamLength: float, + ) -> None: ... def ParamLength(self) -> float: ... def SetParamLength(self, aParamLength: float) -> None: ... @@ -446,7 +562,16 @@ class StepGeom_SuParameters(StepGeom_GeometricRepresentationItem): def Beta(self) -> float: ... def C(self) -> float: ... def Gamma(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theA: float, theAlpha: float, theB: float, theBeta: float, theC: float, theGamma: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theA: float, + theAlpha: float, + theB: float, + theBeta: float, + theC: float, + theGamma: float, + ) -> None: ... def SetA(self, theA: float) -> None: ... def SetAlpha(self, theAlpha: float) -> None: ... def SetB(self, theB: float) -> None: ... @@ -459,7 +584,12 @@ class StepGeom_Surface(StepGeom_GeometricRepresentationItem): class StepGeom_Vector(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aOrientation: StepGeom_Direction, aMagnitude: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aOrientation: StepGeom_Direction, + aMagnitude: float, + ) -> None: ... def Magnitude(self) -> float: ... def Orientation(self) -> StepGeom_Direction: ... def SetMagnitude(self, aMagnitude: float) -> None: ... @@ -469,14 +599,26 @@ class StepGeom_Axis1Placement(StepGeom_Placement): def __init__(self) -> None: ... def Axis(self) -> StepGeom_Direction: ... def HasAxis(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, aLocation: StepGeom_CartesianPoint, hasAaxis: bool, aAxis: StepGeom_Direction) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aLocation: StepGeom_CartesianPoint, + hasAaxis: bool, + aAxis: StepGeom_Direction, + ) -> None: ... def SetAxis(self, aAxis: StepGeom_Direction) -> None: ... def UnSetAxis(self) -> None: ... class StepGeom_Axis2Placement2d(StepGeom_Placement): def __init__(self) -> None: ... def HasRefDirection(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, aLocation: StepGeom_CartesianPoint, hasArefDirection: bool, aRefDirection: StepGeom_Direction) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aLocation: StepGeom_CartesianPoint, + hasArefDirection: bool, + aRefDirection: StepGeom_Direction, + ) -> None: ... def RefDirection(self) -> StepGeom_Direction: ... def SetRefDirection(self, aRefDirection: StepGeom_Direction) -> None: ... def UnSetRefDirection(self) -> None: ... @@ -486,7 +628,15 @@ class StepGeom_Axis2Placement3d(StepGeom_Placement): def Axis(self) -> StepGeom_Direction: ... def HasAxis(self) -> bool: ... def HasRefDirection(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, aLocation: StepGeom_CartesianPoint, hasAaxis: bool, aAxis: StepGeom_Direction, hasArefDirection: bool, aRefDirection: StepGeom_Direction) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aLocation: StepGeom_CartesianPoint, + hasAaxis: bool, + aAxis: StepGeom_Direction, + hasArefDirection: bool, + aRefDirection: StepGeom_Direction, + ) -> None: ... def RefDirection(self) -> StepGeom_Direction: ... def SetAxis(self, aAxis: StepGeom_Direction) -> None: ... def SetRefDirection(self, aRefDirection: StepGeom_Direction) -> None: ... @@ -503,55 +653,98 @@ class StepGeom_CartesianPoint(StepGeom_Point): def __init__(self) -> None: ... def Coordinates(self) -> TColStd_HArray1OfReal: ... def CoordinatesValue(self, num: int) -> float: ... - def Init(self, aName: TCollection_HAsciiString, aCoordinates: TColStd_HArray1OfReal) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aCoordinates: TColStd_HArray1OfReal + ) -> None: ... def Init2D(self, aName: TCollection_HAsciiString, X: float, Y: float) -> None: ... - def Init3D(self, aName: TCollection_HAsciiString, X: float, Y: float, Z: float) -> None: ... + def Init3D( + self, aName: TCollection_HAsciiString, X: float, Y: float, Z: float + ) -> None: ... def NbCoordinates(self) -> int: ... def SetCoordinates(self, aCoordinates: TColStd_HArray1OfReal) -> None: ... -class StepGeom_CartesianTransformationOperator2d(StepGeom_CartesianTransformationOperator): +class StepGeom_CartesianTransformationOperator2d( + StepGeom_CartesianTransformationOperator +): def __init__(self) -> None: ... -class StepGeom_CartesianTransformationOperator3d(StepGeom_CartesianTransformationOperator): +class StepGeom_CartesianTransformationOperator3d( + StepGeom_CartesianTransformationOperator +): def __init__(self) -> None: ... def Axis3(self) -> StepGeom_Direction: ... def HasAxis3(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasAaxis1: bool, aAxis1: StepGeom_Direction, hasAaxis2: bool, aAxis2: StepGeom_Direction, aLocalOrigin: StepGeom_CartesianPoint, hasAscale: bool, aScale: float, hasAaxis3: bool, aAxis3: StepGeom_Direction) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasAaxis1: bool, + aAxis1: StepGeom_Direction, + hasAaxis2: bool, + aAxis2: StepGeom_Direction, + aLocalOrigin: StepGeom_CartesianPoint, + hasAscale: bool, + aScale: float, + hasAaxis3: bool, + aAxis3: StepGeom_Direction, + ) -> None: ... def SetAxis3(self, aAxis3: StepGeom_Direction) -> None: ... def UnSetAxis3(self) -> None: ... class StepGeom_Conic(StepGeom_Curve): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement + ) -> None: ... def Position(self) -> StepGeom_Axis2Placement: ... def SetPosition(self, aPosition: StepGeom_Axis2Placement) -> None: ... class StepGeom_CurveReplica(StepGeom_Curve): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aParentCurve: StepGeom_Curve, aTransformation: StepGeom_CartesianTransformationOperator) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aParentCurve: StepGeom_Curve, + aTransformation: StepGeom_CartesianTransformationOperator, + ) -> None: ... def ParentCurve(self) -> StepGeom_Curve: ... def SetParentCurve(self, aParentCurve: StepGeom_Curve) -> None: ... - def SetTransformation(self, aTransformation: StepGeom_CartesianTransformationOperator) -> None: ... + def SetTransformation( + self, aTransformation: StepGeom_CartesianTransformationOperator + ) -> None: ... def Transformation(self) -> StepGeom_CartesianTransformationOperator: ... class StepGeom_DegeneratePcurve(StepGeom_Point): def __init__(self) -> None: ... def BasisSurface(self) -> StepGeom_Surface: ... - def Init(self, aName: TCollection_HAsciiString, aBasisSurface: StepGeom_Surface, aReferenceToCurve: StepRepr_DefinitionalRepresentation) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBasisSurface: StepGeom_Surface, + aReferenceToCurve: StepRepr_DefinitionalRepresentation, + ) -> None: ... def ReferenceToCurve(self) -> StepRepr_DefinitionalRepresentation: ... def SetBasisSurface(self, aBasisSurface: StepGeom_Surface) -> None: ... - def SetReferenceToCurve(self, aReferenceToCurve: StepRepr_DefinitionalRepresentation) -> None: ... + def SetReferenceToCurve( + self, aReferenceToCurve: StepRepr_DefinitionalRepresentation + ) -> None: ... class StepGeom_ElementarySurface(StepGeom_Surface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement3d) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement3d + ) -> None: ... def Position(self) -> StepGeom_Axis2Placement3d: ... def SetPosition(self, aPosition: StepGeom_Axis2Placement3d) -> None: ... class StepGeom_Line(StepGeom_Curve): def __init__(self) -> None: ... def Dir(self) -> StepGeom_Vector: ... - def Init(self, aName: TCollection_HAsciiString, aPnt: StepGeom_CartesianPoint, aDir: StepGeom_Vector) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPnt: StepGeom_CartesianPoint, + aDir: StepGeom_Vector, + ) -> None: ... def Pnt(self) -> StepGeom_CartesianPoint: ... def SetDir(self, aDir: StepGeom_Vector) -> None: ... def SetPnt(self, aPnt: StepGeom_CartesianPoint) -> None: ... @@ -560,7 +753,14 @@ class StepGeom_OffsetCurve3d(StepGeom_Curve): def __init__(self) -> None: ... def BasisCurve(self) -> StepGeom_Curve: ... def Distance(self) -> float: ... - def Init(self, aName: TCollection_HAsciiString, aBasisCurve: StepGeom_Curve, aDistance: float, aSelfIntersect: StepData_Logical, aRefDirection: StepGeom_Direction) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBasisCurve: StepGeom_Curve, + aDistance: float, + aSelfIntersect: StepData_Logical, + aRefDirection: StepGeom_Direction, + ) -> None: ... def RefDirection(self) -> StepGeom_Direction: ... def SelfIntersect(self) -> StepData_Logical: ... def SetBasisCurve(self, aBasisCurve: StepGeom_Curve) -> None: ... @@ -572,7 +772,13 @@ class StepGeom_OffsetSurface(StepGeom_Surface): def __init__(self) -> None: ... def BasisSurface(self) -> StepGeom_Surface: ... def Distance(self) -> float: ... - def Init(self, aName: TCollection_HAsciiString, aBasisSurface: StepGeom_Surface, aDistance: float, aSelfIntersect: StepData_Logical) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBasisSurface: StepGeom_Surface, + aDistance: float, + aSelfIntersect: StepData_Logical, + ) -> None: ... def SelfIntersect(self) -> StepData_Logical: ... def SetBasisSurface(self, aBasisSurface: StepGeom_Surface) -> None: ... def SetDistance(self, aDistance: float) -> None: ... @@ -580,22 +786,36 @@ class StepGeom_OffsetSurface(StepGeom_Surface): class StepGeom_OrientedSurface(StepGeom_Surface): def __init__(self) -> None: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aOrientation: bool) -> None: ... + def Init( + self, aRepresentationItem_Name: TCollection_HAsciiString, aOrientation: bool + ) -> None: ... def Orientation(self) -> bool: ... def SetOrientation(self, Orientation: bool) -> None: ... class StepGeom_Pcurve(StepGeom_Curve): def __init__(self) -> None: ... def BasisSurface(self) -> StepGeom_Surface: ... - def Init(self, aName: TCollection_HAsciiString, aBasisSurface: StepGeom_Surface, aReferenceToCurve: StepRepr_DefinitionalRepresentation) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBasisSurface: StepGeom_Surface, + aReferenceToCurve: StepRepr_DefinitionalRepresentation, + ) -> None: ... def ReferenceToCurve(self) -> StepRepr_DefinitionalRepresentation: ... def SetBasisSurface(self, aBasisSurface: StepGeom_Surface) -> None: ... - def SetReferenceToCurve(self, aReferenceToCurve: StepRepr_DefinitionalRepresentation) -> None: ... + def SetReferenceToCurve( + self, aReferenceToCurve: StepRepr_DefinitionalRepresentation + ) -> None: ... class StepGeom_PointOnCurve(StepGeom_Point): def __init__(self) -> None: ... def BasisCurve(self) -> StepGeom_Curve: ... - def Init(self, aName: TCollection_HAsciiString, aBasisCurve: StepGeom_Curve, aPointParameter: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBasisCurve: StepGeom_Curve, + aPointParameter: float, + ) -> None: ... def PointParameter(self) -> float: ... def SetBasisCurve(self, aBasisCurve: StepGeom_Curve) -> None: ... def SetPointParameter(self, aPointParameter: float) -> None: ... @@ -603,7 +823,13 @@ class StepGeom_PointOnCurve(StepGeom_Point): class StepGeom_PointOnSurface(StepGeom_Point): def __init__(self) -> None: ... def BasisSurface(self) -> StepGeom_Surface: ... - def Init(self, aName: TCollection_HAsciiString, aBasisSurface: StepGeom_Surface, aPointParameterU: float, aPointParameterV: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBasisSurface: StepGeom_Surface, + aPointParameterU: float, + aPointParameterV: float, + ) -> None: ... def PointParameterU(self) -> float: ... def PointParameterV(self) -> float: ... def SetBasisSurface(self, aBasisSurface: StepGeom_Surface) -> None: ... @@ -612,10 +838,17 @@ class StepGeom_PointOnSurface(StepGeom_Point): class StepGeom_PointReplica(StepGeom_Point): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aParentPt: StepGeom_Point, aTransformation: StepGeom_CartesianTransformationOperator) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aParentPt: StepGeom_Point, + aTransformation: StepGeom_CartesianTransformationOperator, + ) -> None: ... def ParentPt(self) -> StepGeom_Point: ... def SetParentPt(self, aParentPt: StepGeom_Point) -> None: ... - def SetTransformation(self, aTransformation: StepGeom_CartesianTransformationOperator) -> None: ... + def SetTransformation( + self, aTransformation: StepGeom_CartesianTransformationOperator + ) -> None: ... def Transformation(self) -> StepGeom_CartesianTransformationOperator: ... class StepGeom_SurfaceCurve(StepGeom_Curve): @@ -623,24 +856,43 @@ class StepGeom_SurfaceCurve(StepGeom_Curve): def AssociatedGeometry(self) -> StepGeom_HArray1OfPcurveOrSurface: ... def AssociatedGeometryValue(self, num: int) -> StepGeom_PcurveOrSurface: ... def Curve3d(self) -> StepGeom_Curve: ... - def Init(self, aName: TCollection_HAsciiString, aCurve3d: StepGeom_Curve, aAssociatedGeometry: StepGeom_HArray1OfPcurveOrSurface, aMasterRepresentation: StepGeom_PreferredSurfaceCurveRepresentation) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aCurve3d: StepGeom_Curve, + aAssociatedGeometry: StepGeom_HArray1OfPcurveOrSurface, + aMasterRepresentation: StepGeom_PreferredSurfaceCurveRepresentation, + ) -> None: ... def MasterRepresentation(self) -> StepGeom_PreferredSurfaceCurveRepresentation: ... def NbAssociatedGeometry(self) -> int: ... - def SetAssociatedGeometry(self, aAssociatedGeometry: StepGeom_HArray1OfPcurveOrSurface) -> None: ... + def SetAssociatedGeometry( + self, aAssociatedGeometry: StepGeom_HArray1OfPcurveOrSurface + ) -> None: ... def SetCurve3d(self, aCurve3d: StepGeom_Curve) -> None: ... - def SetMasterRepresentation(self, aMasterRepresentation: StepGeom_PreferredSurfaceCurveRepresentation) -> None: ... + def SetMasterRepresentation( + self, aMasterRepresentation: StepGeom_PreferredSurfaceCurveRepresentation + ) -> None: ... class StepGeom_SurfaceReplica(StepGeom_Surface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aParentSurface: StepGeom_Surface, aTransformation: StepGeom_CartesianTransformationOperator3d) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aParentSurface: StepGeom_Surface, + aTransformation: StepGeom_CartesianTransformationOperator3d, + ) -> None: ... def ParentSurface(self) -> StepGeom_Surface: ... def SetParentSurface(self, aParentSurface: StepGeom_Surface) -> None: ... - def SetTransformation(self, aTransformation: StepGeom_CartesianTransformationOperator3d) -> None: ... + def SetTransformation( + self, aTransformation: StepGeom_CartesianTransformationOperator3d + ) -> None: ... def Transformation(self) -> StepGeom_CartesianTransformationOperator3d: ... class StepGeom_SweptSurface(StepGeom_Surface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aSweptCurve: StepGeom_Curve) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aSweptCurve: StepGeom_Curve + ) -> None: ... def SetSweptCurve(self, aSweptCurve: StepGeom_Curve) -> None: ... def SweptCurve(self) -> StepGeom_Curve: ... @@ -651,11 +903,21 @@ class StepGeom_BSplineCurve(StepGeom_BoundedCurve): def ControlPointsListValue(self, num: int) -> StepGeom_CartesianPoint: ... def CurveForm(self) -> StepGeom_BSplineCurveForm: ... def Degree(self) -> int: ... - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + ) -> None: ... def NbControlPointsList(self) -> int: ... def SelfIntersect(self) -> StepData_Logical: ... def SetClosedCurve(self, aClosedCurve: StepData_Logical) -> None: ... - def SetControlPointsList(self, aControlPointsList: StepGeom_HArray1OfCartesianPoint) -> None: ... + def SetControlPointsList( + self, aControlPointsList: StepGeom_HArray1OfCartesianPoint + ) -> None: ... def SetCurveForm(self, aCurveForm: StepGeom_BSplineCurveForm) -> None: ... def SetDegree(self, aDegree: int) -> None: ... def SetSelfIntersect(self, aSelfIntersect: StepData_Logical) -> None: ... @@ -663,12 +925,26 @@ class StepGeom_BSplineCurve(StepGeom_BoundedCurve): class StepGeom_BSplineSurface(StepGeom_BoundedSurface): def __init__(self) -> None: ... def ControlPointsList(self) -> StepGeom_HArray2OfCartesianPoint: ... - def ControlPointsListValue(self, num1: int, num2: int) -> StepGeom_CartesianPoint: ... - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical) -> None: ... + def ControlPointsListValue( + self, num1: int, num2: int + ) -> StepGeom_CartesianPoint: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + ) -> None: ... def NbControlPointsListI(self) -> int: ... def NbControlPointsListJ(self) -> int: ... def SelfIntersect(self) -> StepData_Logical: ... - def SetControlPointsList(self, aControlPointsList: StepGeom_HArray2OfCartesianPoint) -> None: ... + def SetControlPointsList( + self, aControlPointsList: StepGeom_HArray2OfCartesianPoint + ) -> None: ... def SetSelfIntersect(self, aSelfIntersect: StepData_Logical) -> None: ... def SetSurfaceForm(self, aSurfaceForm: StepGeom_BSplineSurfaceForm) -> None: ... def SetUClosed(self, aUClosed: StepData_Logical) -> None: ... @@ -683,23 +959,41 @@ class StepGeom_BSplineSurface(StepGeom_BoundedSurface): class StepGeom_Circle(StepGeom_Conic): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement, aRadius: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement, + aRadius: float, + ) -> None: ... def Radius(self) -> float: ... def SetRadius(self, aRadius: float) -> None: ... class StepGeom_CompositeCurve(StepGeom_BoundedCurve): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aSegments: StepGeom_HArray1OfCompositeCurveSegment, aSelfIntersect: StepData_Logical) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aSegments: StepGeom_HArray1OfCompositeCurveSegment, + aSelfIntersect: StepData_Logical, + ) -> None: ... def NbSegments(self) -> int: ... def Segments(self) -> StepGeom_HArray1OfCompositeCurveSegment: ... def SegmentsValue(self, num: int) -> StepGeom_CompositeCurveSegment: ... def SelfIntersect(self) -> StepData_Logical: ... - def SetSegments(self, aSegments: StepGeom_HArray1OfCompositeCurveSegment) -> None: ... + def SetSegments( + self, aSegments: StepGeom_HArray1OfCompositeCurveSegment + ) -> None: ... def SetSelfIntersect(self, aSelfIntersect: StepData_Logical) -> None: ... class StepGeom_ConicalSurface(StepGeom_ElementarySurface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement3d, aRadius: float, aSemiAngle: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement3d, + aRadius: float, + aSemiAngle: float, + ) -> None: ... def Radius(self) -> float: ... def SemiAngle(self) -> float: ... def SetRadius(self, aRadius: float) -> None: ... @@ -710,20 +1004,37 @@ class StepGeom_CurveBoundedSurface(StepGeom_BoundedSurface): def BasisSurface(self) -> StepGeom_Surface: ... def Boundaries(self) -> StepGeom_HArray1OfSurfaceBoundary: ... def ImplicitOuter(self) -> bool: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aBasisSurface: StepGeom_Surface, aBoundaries: StepGeom_HArray1OfSurfaceBoundary, aImplicitOuter: bool) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aBasisSurface: StepGeom_Surface, + aBoundaries: StepGeom_HArray1OfSurfaceBoundary, + aImplicitOuter: bool, + ) -> None: ... def SetBasisSurface(self, BasisSurface: StepGeom_Surface) -> None: ... def SetBoundaries(self, Boundaries: StepGeom_HArray1OfSurfaceBoundary) -> None: ... def SetImplicitOuter(self, ImplicitOuter: bool) -> None: ... class StepGeom_CylindricalSurface(StepGeom_ElementarySurface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement3d, aRadius: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement3d, + aRadius: float, + ) -> None: ... def Radius(self) -> float: ... def SetRadius(self, aRadius: float) -> None: ... class StepGeom_Ellipse(StepGeom_Conic): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement, aSemiAxis1: float, aSemiAxis2: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement, + aSemiAxis1: float, + aSemiAxis2: float, + ) -> None: ... def SemiAxis1(self) -> float: ... def SemiAxis2(self) -> float: ... def SetSemiAxis1(self, aSemiAxis1: float) -> None: ... @@ -732,12 +1043,24 @@ class StepGeom_Ellipse(StepGeom_Conic): class StepGeom_EvaluatedDegeneratePcurve(StepGeom_DegeneratePcurve): def __init__(self) -> None: ... def EquivalentPoint(self) -> StepGeom_CartesianPoint: ... - def Init(self, aName: TCollection_HAsciiString, aBasisSurface: StepGeom_Surface, aReferenceToCurve: StepRepr_DefinitionalRepresentation, aEquivalentPoint: StepGeom_CartesianPoint) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBasisSurface: StepGeom_Surface, + aReferenceToCurve: StepRepr_DefinitionalRepresentation, + aEquivalentPoint: StepGeom_CartesianPoint, + ) -> None: ... def SetEquivalentPoint(self, aEquivalentPoint: StepGeom_CartesianPoint) -> None: ... class StepGeom_Hyperbola(StepGeom_Conic): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement, aSemiAxis: float, aSemiImagAxis: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement, + aSemiAxis: float, + aSemiImagAxis: float, + ) -> None: ... def SemiAxis(self) -> float: ... def SemiImagAxis(self) -> float: ... def SetSemiAxis(self, aSemiAxis: float) -> None: ... @@ -749,7 +1072,12 @@ class StepGeom_IntersectionCurve(StepGeom_SurfaceCurve): class StepGeom_Parabola(StepGeom_Conic): def __init__(self) -> None: ... def FocalDist(self) -> float: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement, aFocalDist: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement, + aFocalDist: float, + ) -> None: ... def SetFocalDist(self, aFocalDist: float) -> None: ... class StepGeom_Plane(StepGeom_ElementarySurface): @@ -757,7 +1085,9 @@ class StepGeom_Plane(StepGeom_ElementarySurface): class StepGeom_Polyline(StepGeom_BoundedCurve): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPoints: StepGeom_HArray1OfCartesianPoint) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aPoints: StepGeom_HArray1OfCartesianPoint + ) -> None: ... def NbPoints(self) -> int: ... def Points(self) -> StepGeom_HArray1OfCartesianPoint: ... def PointsValue(self, num: int) -> StepGeom_CartesianPoint: ... @@ -765,7 +1095,9 @@ class StepGeom_Polyline(StepGeom_BoundedCurve): class StepGeom_RectangularCompositeSurface(StepGeom_BoundedSurface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aSegments: StepGeom_HArray2OfSurfacePatch) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aSegments: StepGeom_HArray2OfSurfacePatch + ) -> None: ... def NbSegmentsI(self) -> int: ... def NbSegmentsJ(self) -> int: ... def Segments(self) -> StepGeom_HArray2OfSurfacePatch: ... @@ -775,7 +1107,17 @@ class StepGeom_RectangularCompositeSurface(StepGeom_BoundedSurface): class StepGeom_RectangularTrimmedSurface(StepGeom_BoundedSurface): def __init__(self) -> None: ... def BasisSurface(self) -> StepGeom_Surface: ... - def Init(self, aName: TCollection_HAsciiString, aBasisSurface: StepGeom_Surface, aU1: float, aU2: float, aV1: float, aV2: float, aUsense: bool, aVsense: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBasisSurface: StepGeom_Surface, + aU1: float, + aU2: float, + aV1: float, + aV2: float, + aUsense: bool, + aVsense: bool, + ) -> None: ... def SetBasisSurface(self, aBasisSurface: StepGeom_Surface) -> None: ... def SetU1(self, aU1: float) -> None: ... def SetU2(self, aU2: float) -> None: ... @@ -795,7 +1137,12 @@ class StepGeom_SeamCurve(StepGeom_SurfaceCurve): class StepGeom_SphericalSurface(StepGeom_ElementarySurface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement3d, aRadius: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement3d, + aRadius: float, + ) -> None: ... def Radius(self) -> float: ... def SetRadius(self, aRadius: float) -> None: ... @@ -806,18 +1153,34 @@ class StepGeom_SurfaceCurveAndBoundedCurve(StepGeom_SurfaceCurve): class StepGeom_SurfaceOfLinearExtrusion(StepGeom_SweptSurface): def __init__(self) -> None: ... def ExtrusionAxis(self) -> StepGeom_Vector: ... - def Init(self, aName: TCollection_HAsciiString, aSweptCurve: StepGeom_Curve, aExtrusionAxis: StepGeom_Vector) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aSweptCurve: StepGeom_Curve, + aExtrusionAxis: StepGeom_Vector, + ) -> None: ... def SetExtrusionAxis(self, aExtrusionAxis: StepGeom_Vector) -> None: ... class StepGeom_SurfaceOfRevolution(StepGeom_SweptSurface): def __init__(self) -> None: ... def AxisPosition(self) -> StepGeom_Axis1Placement: ... - def Init(self, aName: TCollection_HAsciiString, aSweptCurve: StepGeom_Curve, aAxisPosition: StepGeom_Axis1Placement) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aSweptCurve: StepGeom_Curve, + aAxisPosition: StepGeom_Axis1Placement, + ) -> None: ... def SetAxisPosition(self, aAxisPosition: StepGeom_Axis1Placement) -> None: ... class StepGeom_ToroidalSurface(StepGeom_ElementarySurface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement3d, aMajorRadius: float, aMinorRadius: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement3d, + aMajorRadius: float, + aMinorRadius: float, + ) -> None: ... def MajorRadius(self) -> float: ... def MinorRadius(self) -> float: ... def SetMajorRadius(self, aMajorRadius: float) -> None: ... @@ -826,13 +1189,23 @@ class StepGeom_ToroidalSurface(StepGeom_ElementarySurface): class StepGeom_TrimmedCurve(StepGeom_BoundedCurve): def __init__(self) -> None: ... def BasisCurve(self) -> StepGeom_Curve: ... - def Init(self, aName: TCollection_HAsciiString, aBasisCurve: StepGeom_Curve, aTrim1: StepGeom_HArray1OfTrimmingSelect, aTrim2: StepGeom_HArray1OfTrimmingSelect, aSenseAgreement: bool, aMasterRepresentation: StepGeom_TrimmingPreference) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBasisCurve: StepGeom_Curve, + aTrim1: StepGeom_HArray1OfTrimmingSelect, + aTrim2: StepGeom_HArray1OfTrimmingSelect, + aSenseAgreement: bool, + aMasterRepresentation: StepGeom_TrimmingPreference, + ) -> None: ... def MasterRepresentation(self) -> StepGeom_TrimmingPreference: ... def NbTrim1(self) -> int: ... def NbTrim2(self) -> int: ... def SenseAgreement(self) -> bool: ... def SetBasisCurve(self, aBasisCurve: StepGeom_Curve) -> None: ... - def SetMasterRepresentation(self, aMasterRepresentation: StepGeom_TrimmingPreference) -> None: ... + def SetMasterRepresentation( + self, aMasterRepresentation: StepGeom_TrimmingPreference + ) -> None: ... def SetSenseAgreement(self, aSenseAgreement: bool) -> None: ... def SetTrim1(self, aTrim1: StepGeom_HArray1OfTrimmingSelect) -> None: ... def SetTrim2(self, aTrim2: StepGeom_HArray1OfTrimmingSelect) -> None: ... @@ -843,7 +1216,18 @@ class StepGeom_TrimmedCurve(StepGeom_BoundedCurve): class StepGeom_BSplineCurveWithKnots(StepGeom_BSplineCurve): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aKnotMultiplicities: TColStd_HArray1OfInteger, aKnots: TColStd_HArray1OfReal, aKnotSpec: StepGeom_KnotType) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aKnotMultiplicities: TColStd_HArray1OfInteger, + aKnots: TColStd_HArray1OfReal, + aKnotSpec: StepGeom_KnotType, + ) -> None: ... def KnotMultiplicities(self) -> TColStd_HArray1OfInteger: ... def KnotMultiplicitiesValue(self, num: int) -> int: ... def KnotSpec(self) -> StepGeom_KnotType: ... @@ -851,7 +1235,9 @@ class StepGeom_BSplineCurveWithKnots(StepGeom_BSplineCurve): def KnotsValue(self, num: int) -> float: ... def NbKnotMultiplicities(self) -> int: ... def NbKnots(self) -> int: ... - def SetKnotMultiplicities(self, aKnotMultiplicities: TColStd_HArray1OfInteger) -> None: ... + def SetKnotMultiplicities( + self, aKnotMultiplicities: TColStd_HArray1OfInteger + ) -> None: ... def SetKnotSpec(self, aKnotSpec: StepGeom_KnotType) -> None: ... def SetKnots(self, aKnots: TColStd_HArray1OfReal) -> None: ... @@ -859,9 +1245,31 @@ class StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve(StepGeom_BSplineCurv def __init__(self) -> None: ... def BSplineCurveWithKnots(self) -> StepGeom_BSplineCurveWithKnots: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aBSplineCurveWithKnots: StepGeom_BSplineCurveWithKnots, aRationalBSplineCurve: StepGeom_RationalBSplineCurve) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aBSplineCurveWithKnots: StepGeom_BSplineCurveWithKnots, + aRationalBSplineCurve: StepGeom_RationalBSplineCurve, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aKnotMultiplicities: TColStd_HArray1OfInteger, aKnots: TColStd_HArray1OfReal, aKnotSpec: StepGeom_KnotType, aWeightsData: TColStd_HArray1OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aKnotMultiplicities: TColStd_HArray1OfInteger, + aKnots: TColStd_HArray1OfReal, + aKnotSpec: StepGeom_KnotType, + aWeightsData: TColStd_HArray1OfReal, + ) -> None: ... def KnotMultiplicities(self) -> TColStd_HArray1OfInteger: ... def KnotMultiplicitiesValue(self, num: int) -> int: ... def KnotSpec(self) -> StepGeom_KnotType: ... @@ -871,18 +1279,39 @@ class StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve(StepGeom_BSplineCurv def NbKnots(self) -> int: ... def NbWeightsData(self) -> int: ... def RationalBSplineCurve(self) -> StepGeom_RationalBSplineCurve: ... - def SetBSplineCurveWithKnots(self, aBSplineCurveWithKnots: StepGeom_BSplineCurveWithKnots) -> None: ... - def SetKnotMultiplicities(self, aKnotMultiplicities: TColStd_HArray1OfInteger) -> None: ... + def SetBSplineCurveWithKnots( + self, aBSplineCurveWithKnots: StepGeom_BSplineCurveWithKnots + ) -> None: ... + def SetKnotMultiplicities( + self, aKnotMultiplicities: TColStd_HArray1OfInteger + ) -> None: ... def SetKnotSpec(self, aKnotSpec: StepGeom_KnotType) -> None: ... def SetKnots(self, aKnots: TColStd_HArray1OfReal) -> None: ... - def SetRationalBSplineCurve(self, aRationalBSplineCurve: StepGeom_RationalBSplineCurve) -> None: ... + def SetRationalBSplineCurve( + self, aRationalBSplineCurve: StepGeom_RationalBSplineCurve + ) -> None: ... def SetWeightsData(self, aWeightsData: TColStd_HArray1OfReal) -> None: ... def WeightsData(self) -> TColStd_HArray1OfReal: ... def WeightsDataValue(self, num: int) -> float: ... class StepGeom_BSplineSurfaceWithKnots(StepGeom_BSplineSurface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aUMultiplicities: TColStd_HArray1OfInteger, aVMultiplicities: TColStd_HArray1OfInteger, aUKnots: TColStd_HArray1OfReal, aVKnots: TColStd_HArray1OfReal, aKnotSpec: StepGeom_KnotType) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aUMultiplicities: TColStd_HArray1OfInteger, + aVMultiplicities: TColStd_HArray1OfInteger, + aUKnots: TColStd_HArray1OfReal, + aVKnots: TColStd_HArray1OfReal, + aKnotSpec: StepGeom_KnotType, + ) -> None: ... def KnotSpec(self) -> StepGeom_KnotType: ... def NbUKnots(self) -> int: ... def NbUMultiplicities(self) -> int: ... @@ -890,9 +1319,13 @@ class StepGeom_BSplineSurfaceWithKnots(StepGeom_BSplineSurface): def NbVMultiplicities(self) -> int: ... def SetKnotSpec(self, aKnotSpec: StepGeom_KnotType) -> None: ... def SetUKnots(self, aUKnots: TColStd_HArray1OfReal) -> None: ... - def SetUMultiplicities(self, aUMultiplicities: TColStd_HArray1OfInteger) -> None: ... + def SetUMultiplicities( + self, aUMultiplicities: TColStd_HArray1OfInteger + ) -> None: ... def SetVKnots(self, aVKnots: TColStd_HArray1OfReal) -> None: ... - def SetVMultiplicities(self, aVMultiplicities: TColStd_HArray1OfInteger) -> None: ... + def SetVMultiplicities( + self, aVMultiplicities: TColStd_HArray1OfInteger + ) -> None: ... def UKnots(self) -> TColStd_HArray1OfReal: ... def UKnotsValue(self, num: int) -> float: ... def UMultiplicities(self) -> TColStd_HArray1OfInteger: ... @@ -902,13 +1335,43 @@ class StepGeom_BSplineSurfaceWithKnots(StepGeom_BSplineSurface): def VMultiplicities(self) -> TColStd_HArray1OfInteger: ... def VMultiplicitiesValue(self, num: int) -> int: ... -class StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface(StepGeom_BSplineSurface): +class StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface( + StepGeom_BSplineSurface +): def __init__(self) -> None: ... def BSplineSurfaceWithKnots(self) -> StepGeom_BSplineSurfaceWithKnots: ... @overload - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aBSplineSurfaceWithKnots: StepGeom_BSplineSurfaceWithKnots, aRationalBSplineSurface: StepGeom_RationalBSplineSurface) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aBSplineSurfaceWithKnots: StepGeom_BSplineSurfaceWithKnots, + aRationalBSplineSurface: StepGeom_RationalBSplineSurface, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aUMultiplicities: TColStd_HArray1OfInteger, aVMultiplicities: TColStd_HArray1OfInteger, aUKnots: TColStd_HArray1OfReal, aVKnots: TColStd_HArray1OfReal, aKnotSpec: StepGeom_KnotType, aWeightsData: TColStd_HArray2OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aUMultiplicities: TColStd_HArray1OfInteger, + aVMultiplicities: TColStd_HArray1OfInteger, + aUKnots: TColStd_HArray1OfReal, + aVKnots: TColStd_HArray1OfReal, + aKnotSpec: StepGeom_KnotType, + aWeightsData: TColStd_HArray2OfReal, + ) -> None: ... def KnotSpec(self) -> StepGeom_KnotType: ... def NbUKnots(self) -> int: ... def NbUMultiplicities(self) -> int: ... @@ -917,13 +1380,21 @@ class StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface(StepGeom_BSpline def NbWeightsDataI(self) -> int: ... def NbWeightsDataJ(self) -> int: ... def RationalBSplineSurface(self) -> StepGeom_RationalBSplineSurface: ... - def SetBSplineSurfaceWithKnots(self, aBSplineSurfaceWithKnots: StepGeom_BSplineSurfaceWithKnots) -> None: ... + def SetBSplineSurfaceWithKnots( + self, aBSplineSurfaceWithKnots: StepGeom_BSplineSurfaceWithKnots + ) -> None: ... def SetKnotSpec(self, aKnotSpec: StepGeom_KnotType) -> None: ... - def SetRationalBSplineSurface(self, aRationalBSplineSurface: StepGeom_RationalBSplineSurface) -> None: ... + def SetRationalBSplineSurface( + self, aRationalBSplineSurface: StepGeom_RationalBSplineSurface + ) -> None: ... def SetUKnots(self, aUKnots: TColStd_HArray1OfReal) -> None: ... - def SetUMultiplicities(self, aUMultiplicities: TColStd_HArray1OfInteger) -> None: ... + def SetUMultiplicities( + self, aUMultiplicities: TColStd_HArray1OfInteger + ) -> None: ... def SetVKnots(self, aVKnots: TColStd_HArray1OfReal) -> None: ... - def SetVMultiplicities(self, aVMultiplicities: TColStd_HArray1OfInteger) -> None: ... + def SetVMultiplicities( + self, aVMultiplicities: TColStd_HArray1OfInteger + ) -> None: ... def SetWeightsData(self, aWeightsData: TColStd_HArray2OfReal) -> None: ... def UKnots(self) -> TColStd_HArray1OfReal: ... def UKnotsValue(self, num: int) -> float: ... @@ -943,13 +1414,34 @@ class StepGeom_BezierCurveAndRationalBSplineCurve(StepGeom_BSplineCurve): def __init__(self) -> None: ... def BezierCurve(self) -> StepGeom_BezierCurve: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aBezierCurve: StepGeom_BezierCurve, aRationalBSplineCurve: StepGeom_RationalBSplineCurve) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aBezierCurve: StepGeom_BezierCurve, + aRationalBSplineCurve: StepGeom_RationalBSplineCurve, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aWeightsData: TColStd_HArray1OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aWeightsData: TColStd_HArray1OfReal, + ) -> None: ... def NbWeightsData(self) -> int: ... def RationalBSplineCurve(self) -> StepGeom_RationalBSplineCurve: ... def SetBezierCurve(self, aBezierCurve: StepGeom_BezierCurve) -> None: ... - def SetRationalBSplineCurve(self, aRationalBSplineCurve: StepGeom_RationalBSplineCurve) -> None: ... + def SetRationalBSplineCurve( + self, aRationalBSplineCurve: StepGeom_RationalBSplineCurve + ) -> None: ... def SetWeightsData(self, aWeightsData: TColStd_HArray1OfReal) -> None: ... def WeightsData(self) -> TColStd_HArray1OfReal: ... def WeightsDataValue(self, num: int) -> float: ... @@ -961,14 +1453,39 @@ class StepGeom_BezierSurfaceAndRationalBSplineSurface(StepGeom_BSplineSurface): def __init__(self) -> None: ... def BezierSurface(self) -> StepGeom_BezierSurface: ... @overload - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aBezierSurface: StepGeom_BezierSurface, aRationalBSplineSurface: StepGeom_RationalBSplineSurface) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aBezierSurface: StepGeom_BezierSurface, + aRationalBSplineSurface: StepGeom_RationalBSplineSurface, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aWeightsData: TColStd_HArray2OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aWeightsData: TColStd_HArray2OfReal, + ) -> None: ... def NbWeightsDataI(self) -> int: ... def NbWeightsDataJ(self) -> int: ... def RationalBSplineSurface(self) -> StepGeom_RationalBSplineSurface: ... def SetBezierSurface(self, aBezierSurface: StepGeom_BezierSurface) -> None: ... - def SetRationalBSplineSurface(self, aRationalBSplineSurface: StepGeom_RationalBSplineSurface) -> None: ... + def SetRationalBSplineSurface( + self, aRationalBSplineSurface: StepGeom_RationalBSplineSurface + ) -> None: ... def SetWeightsData(self, aWeightsData: TColStd_HArray2OfReal) -> None: ... def WeightsData(self) -> TColStd_HArray2OfReal: ... def WeightsDataValue(self, num1: int, num2: int) -> float: ... @@ -978,7 +1495,14 @@ class StepGeom_CompositeCurveOnSurface(StepGeom_CompositeCurve): class StepGeom_DegenerateToroidalSurface(StepGeom_ToroidalSurface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement3d, aMajorRadius: float, aMinorRadius: float, aSelectOuter: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement3d, + aMajorRadius: float, + aMinorRadius: float, + aSelectOuter: bool, + ) -> None: ... def SelectOuter(self) -> bool: ... def SetSelectOuter(self, aSelectOuter: bool) -> None: ... @@ -988,14 +1512,37 @@ class StepGeom_QuasiUniformCurve(StepGeom_BSplineCurve): class StepGeom_QuasiUniformCurveAndRationalBSplineCurve(StepGeom_BSplineCurve): def __init__(self) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aQuasiUniformCurve: StepGeom_QuasiUniformCurve, aRationalBSplineCurve: StepGeom_RationalBSplineCurve) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aQuasiUniformCurve: StepGeom_QuasiUniformCurve, + aRationalBSplineCurve: StepGeom_RationalBSplineCurve, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aWeightsData: TColStd_HArray1OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aWeightsData: TColStd_HArray1OfReal, + ) -> None: ... def NbWeightsData(self) -> int: ... def QuasiUniformCurve(self) -> StepGeom_QuasiUniformCurve: ... def RationalBSplineCurve(self) -> StepGeom_RationalBSplineCurve: ... - def SetQuasiUniformCurve(self, aQuasiUniformCurve: StepGeom_QuasiUniformCurve) -> None: ... - def SetRationalBSplineCurve(self, aRationalBSplineCurve: StepGeom_RationalBSplineCurve) -> None: ... + def SetQuasiUniformCurve( + self, aQuasiUniformCurve: StepGeom_QuasiUniformCurve + ) -> None: ... + def SetRationalBSplineCurve( + self, aRationalBSplineCurve: StepGeom_RationalBSplineCurve + ) -> None: ... def SetWeightsData(self, aWeightsData: TColStd_HArray1OfReal) -> None: ... def WeightsData(self) -> TColStd_HArray1OfReal: ... def WeightsDataValue(self, num: int) -> float: ... @@ -1006,22 +1553,58 @@ class StepGeom_QuasiUniformSurface(StepGeom_BSplineSurface): class StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface(StepGeom_BSplineSurface): def __init__(self) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aQuasiUniformSurface: StepGeom_QuasiUniformSurface, aRationalBSplineSurface: StepGeom_RationalBSplineSurface) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aQuasiUniformSurface: StepGeom_QuasiUniformSurface, + aRationalBSplineSurface: StepGeom_RationalBSplineSurface, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aWeightsData: TColStd_HArray2OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aWeightsData: TColStd_HArray2OfReal, + ) -> None: ... def NbWeightsDataI(self) -> int: ... def NbWeightsDataJ(self) -> int: ... def QuasiUniformSurface(self) -> StepGeom_QuasiUniformSurface: ... def RationalBSplineSurface(self) -> StepGeom_RationalBSplineSurface: ... - def SetQuasiUniformSurface(self, aQuasiUniformSurface: StepGeom_QuasiUniformSurface) -> None: ... - def SetRationalBSplineSurface(self, aRationalBSplineSurface: StepGeom_RationalBSplineSurface) -> None: ... + def SetQuasiUniformSurface( + self, aQuasiUniformSurface: StepGeom_QuasiUniformSurface + ) -> None: ... + def SetRationalBSplineSurface( + self, aRationalBSplineSurface: StepGeom_RationalBSplineSurface + ) -> None: ... def SetWeightsData(self, aWeightsData: TColStd_HArray2OfReal) -> None: ... def WeightsData(self) -> TColStd_HArray2OfReal: ... def WeightsDataValue(self, num1: int, num2: int) -> float: ... class StepGeom_RationalBSplineCurve(StepGeom_BSplineCurve): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aWeightsData: TColStd_HArray1OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aWeightsData: TColStd_HArray1OfReal, + ) -> None: ... def NbWeightsData(self) -> int: ... def SetWeightsData(self, aWeightsData: TColStd_HArray1OfReal) -> None: ... def WeightsData(self) -> TColStd_HArray1OfReal: ... @@ -1029,7 +1612,18 @@ class StepGeom_RationalBSplineCurve(StepGeom_BSplineCurve): class StepGeom_RationalBSplineSurface(StepGeom_BSplineSurface): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aWeightsData: TColStd_HArray2OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aWeightsData: TColStd_HArray2OfReal, + ) -> None: ... def NbWeightsDataI(self) -> int: ... def NbWeightsDataJ(self) -> int: ... def SetWeightsData(self, aWeightsData: TColStd_HArray2OfReal) -> None: ... @@ -1042,12 +1636,33 @@ class StepGeom_UniformCurve(StepGeom_BSplineCurve): class StepGeom_UniformCurveAndRationalBSplineCurve(StepGeom_BSplineCurve): def __init__(self) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aUniformCurve: StepGeom_UniformCurve, aRationalBSplineCurve: StepGeom_RationalBSplineCurve) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aUniformCurve: StepGeom_UniformCurve, + aRationalBSplineCurve: StepGeom_RationalBSplineCurve, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aDegree: int, aControlPointsList: StepGeom_HArray1OfCartesianPoint, aCurveForm: StepGeom_BSplineCurveForm, aClosedCurve: StepData_Logical, aSelfIntersect: StepData_Logical, aWeightsData: TColStd_HArray1OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDegree: int, + aControlPointsList: StepGeom_HArray1OfCartesianPoint, + aCurveForm: StepGeom_BSplineCurveForm, + aClosedCurve: StepData_Logical, + aSelfIntersect: StepData_Logical, + aWeightsData: TColStd_HArray1OfReal, + ) -> None: ... def NbWeightsData(self) -> int: ... def RationalBSplineCurve(self) -> StepGeom_RationalBSplineCurve: ... - def SetRationalBSplineCurve(self, aRationalBSplineCurve: StepGeom_RationalBSplineCurve) -> None: ... + def SetRationalBSplineCurve( + self, aRationalBSplineCurve: StepGeom_RationalBSplineCurve + ) -> None: ... def SetUniformCurve(self, aUniformCurve: StepGeom_UniformCurve) -> None: ... def SetWeightsData(self, aWeightsData: TColStd_HArray1OfReal) -> None: ... def UniformCurve(self) -> StepGeom_UniformCurve: ... @@ -1060,13 +1675,38 @@ class StepGeom_UniformSurface(StepGeom_BSplineSurface): class StepGeom_UniformSurfaceAndRationalBSplineSurface(StepGeom_BSplineSurface): def __init__(self) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aUniformSurface: StepGeom_UniformSurface, aRationalBSplineSurface: StepGeom_RationalBSplineSurface) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aUniformSurface: StepGeom_UniformSurface, + aRationalBSplineSurface: StepGeom_RationalBSplineSurface, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aUDegree: int, aVDegree: int, aControlPointsList: StepGeom_HArray2OfCartesianPoint, aSurfaceForm: StepGeom_BSplineSurfaceForm, aUClosed: StepData_Logical, aVClosed: StepData_Logical, aSelfIntersect: StepData_Logical, aWeightsData: TColStd_HArray2OfReal) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aUDegree: int, + aVDegree: int, + aControlPointsList: StepGeom_HArray2OfCartesianPoint, + aSurfaceForm: StepGeom_BSplineSurfaceForm, + aUClosed: StepData_Logical, + aVClosed: StepData_Logical, + aSelfIntersect: StepData_Logical, + aWeightsData: TColStd_HArray2OfReal, + ) -> None: ... def NbWeightsDataI(self) -> int: ... def NbWeightsDataJ(self) -> int: ... def RationalBSplineSurface(self) -> StepGeom_RationalBSplineSurface: ... - def SetRationalBSplineSurface(self, aRationalBSplineSurface: StepGeom_RationalBSplineSurface) -> None: ... + def SetRationalBSplineSurface( + self, aRationalBSplineSurface: StepGeom_RationalBSplineSurface + ) -> None: ... def SetUniformSurface(self, aUniformSurface: StepGeom_UniformSurface) -> None: ... def SetWeightsData(self, aWeightsData: TColStd_HArray2OfReal) -> None: ... def UniformSurface(self) -> StepGeom_UniformSurface: ... @@ -1081,56 +1721,66 @@ class StepGeom_OuterBoundaryCurve(StepGeom_BoundaryCurve): # harray1 classes -class StepGeom_HArray1OfBoundaryCurve(StepGeom_Array1OfBoundaryCurve, Standard_Transient): +class StepGeom_HArray1OfBoundaryCurve( + StepGeom_Array1OfBoundaryCurve, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepGeom_Array1OfBoundaryCurve: ... - -class StepGeom_HArray1OfCartesianPoint(StepGeom_Array1OfCartesianPoint, Standard_Transient): +class StepGeom_HArray1OfCartesianPoint( + StepGeom_Array1OfCartesianPoint, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepGeom_Array1OfCartesianPoint: ... - -class StepGeom_HArray1OfCompositeCurveSegment(StepGeom_Array1OfCompositeCurveSegment, Standard_Transient): +class StepGeom_HArray1OfCompositeCurveSegment( + StepGeom_Array1OfCompositeCurveSegment, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepGeom_Array1OfCompositeCurveSegment: ... - class StepGeom_HArray1OfCurve(StepGeom_Array1OfCurve, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepGeom_Array1OfCurve: ... - -class StepGeom_HArray1OfPcurveOrSurface(StepGeom_Array1OfPcurveOrSurface, Standard_Transient): +class StepGeom_HArray1OfPcurveOrSurface( + StepGeom_Array1OfPcurveOrSurface, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepGeom_Array1OfPcurveOrSurface: ... - -class StepGeom_HArray1OfSurfaceBoundary(StepGeom_Array1OfSurfaceBoundary, Standard_Transient): +class StepGeom_HArray1OfSurfaceBoundary( + StepGeom_Array1OfSurfaceBoundary, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepGeom_Array1OfSurfaceBoundary: ... - -class StepGeom_HArray1OfTrimmingSelect(StepGeom_Array1OfTrimmingSelect, Standard_Transient): +class StepGeom_HArray1OfTrimmingSelect( + StepGeom_Array1OfTrimmingSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepGeom_Array1OfTrimmingSelect: ... # harray2 classes -class StepGeom_HArray2OfCartesianPoint(StepGeom_Array2OfCartesianPoint, Standard_Transient): +class StepGeom_HArray2OfCartesianPoint( + StepGeom_Array2OfCartesianPoint, Standard_Transient +): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: StepGeom_Array2OfCartesianPoint) -> None: ... def Array2(self) -> StepGeom_Array2OfCartesianPoint: ... - class StepGeom_HArray2OfSurfacePatch(StepGeom_Array2OfSurfacePatch, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: StepGeom_Array2OfSurfacePatch) -> None: ... def Array2(self) -> StepGeom_Array2OfSurfacePatch: ... # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepKinematics.pyi b/src/SWIG_files/wrapper/StepKinematics.pyi index 0851405d0..03736dec3 100644 --- a/src/SWIG_files/wrapper/StepKinematics.pyi +++ b/src/SWIG_files/wrapper/StepKinematics.pyi @@ -10,25 +10,46 @@ from OCC.Core.StepGeom import * from OCC.Core.StepData import * from OCC.Core.TColStd import * - class StepKinematics_ActuatedDirection(IntEnum): StepKinematics_adBidirectional: int = ... StepKinematics_adPositiveOnly: int = ... StepKinematics_adNegativeOnly: int = ... StepKinematics_adNotActuated: int = ... -StepKinematics_adBidirectional = StepKinematics_ActuatedDirection.StepKinematics_adBidirectional -StepKinematics_adPositiveOnly = StepKinematics_ActuatedDirection.StepKinematics_adPositiveOnly -StepKinematics_adNegativeOnly = StepKinematics_ActuatedDirection.StepKinematics_adNegativeOnly -StepKinematics_adNotActuated = StepKinematics_ActuatedDirection.StepKinematics_adNotActuated +StepKinematics_adBidirectional = ( + StepKinematics_ActuatedDirection.StepKinematics_adBidirectional +) +StepKinematics_adPositiveOnly = ( + StepKinematics_ActuatedDirection.StepKinematics_adPositiveOnly +) +StepKinematics_adNegativeOnly = ( + StepKinematics_ActuatedDirection.StepKinematics_adNegativeOnly +) +StepKinematics_adNotActuated = ( + StepKinematics_ActuatedDirection.StepKinematics_adNotActuated +) class StepKinematics_ContextDependentKinematicLinkRepresentation(Standard_Transient): def __init__(self) -> None: ... - def Init(self, theRepresentationRelation: StepKinematics_KinematicLinkRepresentationAssociation, theRepresentedProductRelation: StepKinematics_ProductDefinitionRelationshipKinematics) -> None: ... - def RepresentationRelation(self) -> StepKinematics_KinematicLinkRepresentationAssociation: ... - def RepresentedProductRelation(self) -> StepKinematics_ProductDefinitionRelationshipKinematics: ... - def SetRepresentationRelation(self, theRepresentationRelation: StepKinematics_KinematicLinkRepresentationAssociation) -> None: ... - def SetRepresentedProductRelation(self, theRepresentedProductRelation: StepKinematics_ProductDefinitionRelationshipKinematics) -> None: ... + def Init( + self, + theRepresentationRelation: StepKinematics_KinematicLinkRepresentationAssociation, + theRepresentedProductRelation: StepKinematics_ProductDefinitionRelationshipKinematics, + ) -> None: ... + def RepresentationRelation( + self, + ) -> StepKinematics_KinematicLinkRepresentationAssociation: ... + def RepresentedProductRelation( + self, + ) -> StepKinematics_ProductDefinitionRelationshipKinematics: ... + def SetRepresentationRelation( + self, + theRepresentationRelation: StepKinematics_KinematicLinkRepresentationAssociation, + ) -> None: ... + def SetRepresentedProductRelation( + self, + theRepresentedProductRelation: StepKinematics_ProductDefinitionRelationshipKinematics, + ) -> None: ... class StepKinematics_KinematicJoint(StepShape_Edge): def __init__(self) -> None: ... @@ -38,77 +59,165 @@ class StepKinematics_KinematicLink(StepShape_Vertex): class StepKinematics_KinematicLinkRepresentation(StepRepr_Representation): def __init__(self) -> None: ... - def Init(self, theRepresentation_Name: TCollection_HAsciiString, theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, theRepresentation_ContextOfItems: StepRepr_RepresentationContext, theRepresentedLink: StepKinematics_KinematicLink) -> None: ... + def Init( + self, + theRepresentation_Name: TCollection_HAsciiString, + theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + theRepresentation_ContextOfItems: StepRepr_RepresentationContext, + theRepresentedLink: StepKinematics_KinematicLink, + ) -> None: ... def RepresentedLink(self) -> StepKinematics_KinematicLink: ... - def SetRepresentedLink(self, theRepresentedLink: StepKinematics_KinematicLink) -> None: ... + def SetRepresentedLink( + self, theRepresentedLink: StepKinematics_KinematicLink + ) -> None: ... -class StepKinematics_KinematicLinkRepresentationAssociation(StepRepr_RepresentationRelationship): +class StepKinematics_KinematicLinkRepresentationAssociation( + StepRepr_RepresentationRelationship +): def __init__(self) -> None: ... class StepKinematics_KinematicPair(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theJoint: StepKinematics_KinematicJoint) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theJoint: StepKinematics_KinematicJoint, + ) -> None: ... def ItemDefinedTransformation(self) -> StepRepr_ItemDefinedTransformation: ... def Joint(self) -> StepKinematics_KinematicJoint: ... - def SetItemDefinedTransformation(self, theItemDefinedTransformation: StepRepr_ItemDefinedTransformation) -> None: ... + def SetItemDefinedTransformation( + self, theItemDefinedTransformation: StepRepr_ItemDefinedTransformation + ) -> None: ... def SetJoint(self, theJoint: StepKinematics_KinematicJoint) -> None: ... -class StepKinematics_KinematicPropertyDefinitionRepresentation(StepRepr_PropertyDefinitionRepresentation): +class StepKinematics_KinematicPropertyDefinitionRepresentation( + StepRepr_PropertyDefinitionRepresentation +): def __init__(self) -> None: ... class StepKinematics_KinematicTopologyDirectedStructure(StepRepr_Representation): def __init__(self) -> None: ... - def Init(self, theRepresentation_Name: TCollection_HAsciiString, theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, theRepresentation_ContextOfItems: StepRepr_RepresentationContext, theParent: StepKinematics_KinematicTopologyStructure) -> None: ... + def Init( + self, + theRepresentation_Name: TCollection_HAsciiString, + theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + theRepresentation_ContextOfItems: StepRepr_RepresentationContext, + theParent: StepKinematics_KinematicTopologyStructure, + ) -> None: ... def Parent(self) -> StepKinematics_KinematicTopologyStructure: ... - def SetParent(self, theParent: StepKinematics_KinematicTopologyStructure) -> None: ... + def SetParent( + self, theParent: StepKinematics_KinematicTopologyStructure + ) -> None: ... class StepKinematics_KinematicTopologyNetworkStructure(StepRepr_Representation): def __init__(self) -> None: ... - def Init(self, theRepresentation_Name: TCollection_HAsciiString, theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, theRepresentation_ContextOfItems: StepRepr_RepresentationContext, theParent: StepKinematics_KinematicTopologyStructure) -> None: ... + def Init( + self, + theRepresentation_Name: TCollection_HAsciiString, + theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + theRepresentation_ContextOfItems: StepRepr_RepresentationContext, + theParent: StepKinematics_KinematicTopologyStructure, + ) -> None: ... def Parent(self) -> StepKinematics_KinematicTopologyStructure: ... - def SetParent(self, theParent: StepKinematics_KinematicTopologyStructure) -> None: ... + def SetParent( + self, theParent: StepKinematics_KinematicTopologyStructure + ) -> None: ... class StepKinematics_KinematicTopologyRepresentationSelect(StepData_SelectType): def __init__(self) -> None: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def KinematicTopologyDirectedStructure(self) -> StepKinematics_KinematicTopologyDirectedStructure: ... - def KinematicTopologyNetworkStructure(self) -> StepKinematics_KinematicTopologyNetworkStructure: ... - def KinematicTopologyStructure(self) -> StepKinematics_KinematicTopologyStructure: ... + def KinematicTopologyDirectedStructure( + self, + ) -> StepKinematics_KinematicTopologyDirectedStructure: ... + def KinematicTopologyNetworkStructure( + self, + ) -> StepKinematics_KinematicTopologyNetworkStructure: ... + def KinematicTopologyStructure( + self, + ) -> StepKinematics_KinematicTopologyStructure: ... class StepKinematics_KinematicTopologyStructure(StepRepr_Representation): def __init__(self) -> None: ... class StepKinematics_MechanismRepresentation(StepRepr_Representation): def __init__(self) -> None: ... - def Init(self, theRepresentation_Name: TCollection_HAsciiString, theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, theRepresentation_ContextOfItems: StepRepr_RepresentationContext, theRepresentedTopology: StepKinematics_KinematicTopologyRepresentationSelect) -> None: ... - def RepresentedTopology(self) -> StepKinematics_KinematicTopologyRepresentationSelect: ... - def SetRepresentedTopology(self, theRepresentedTopology: StepKinematics_KinematicTopologyRepresentationSelect) -> None: ... + def Init( + self, + theRepresentation_Name: TCollection_HAsciiString, + theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + theRepresentation_ContextOfItems: StepRepr_RepresentationContext, + theRepresentedTopology: StepKinematics_KinematicTopologyRepresentationSelect, + ) -> None: ... + def RepresentedTopology( + self, + ) -> StepKinematics_KinematicTopologyRepresentationSelect: ... + def SetRepresentedTopology( + self, + theRepresentedTopology: StepKinematics_KinematicTopologyRepresentationSelect, + ) -> None: ... class StepKinematics_MechanismStateRepresentation(StepRepr_Representation): def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theItems: StepRepr_HArray1OfRepresentationItem, theContextOfItems: StepRepr_RepresentationContext, theMechanism: StepKinematics_MechanismRepresentation) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theItems: StepRepr_HArray1OfRepresentationItem, + theContextOfItems: StepRepr_RepresentationContext, + theMechanism: StepKinematics_MechanismRepresentation, + ) -> None: ... def Mechanism(self) -> StepKinematics_MechanismRepresentation: ... - def SetMechanism(self, theMechanism: StepKinematics_MechanismRepresentation) -> None: ... + def SetMechanism( + self, theMechanism: StepKinematics_MechanismRepresentation + ) -> None: ... class StepKinematics_OrientedJoint(StepShape_OrientedEdge): def __init__(self) -> None: ... -class StepKinematics_PairRepresentationRelationship(StepGeom_GeometricRepresentationItem): - def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theRepresentationRelationship_Name: TCollection_HAsciiString, hasRepresentationRelationship_Description: bool, theRepresentationRelationship_Description: TCollection_HAsciiString, theRepresentationRelationship_Rep1: StepRepr_RepresentationOrRepresentationReference, theRepresentationRelationship_Rep2: StepRepr_RepresentationOrRepresentationReference, theRepresentationRelationshipWithTransformation_TransformationOperator: StepRepr_Transformation) -> None: ... - def RepresentationRelationshipWithTransformation(self) -> StepRepr_RepresentationRelationshipWithTransformation: ... - def SetRepresentationRelationshipWithTransformation(self, theRepresentationRelationshipWithTransformation: StepRepr_RepresentationRelationshipWithTransformation) -> None: ... +class StepKinematics_PairRepresentationRelationship( + StepGeom_GeometricRepresentationItem +): + def __init__(self) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theRepresentationRelationship_Name: TCollection_HAsciiString, + hasRepresentationRelationship_Description: bool, + theRepresentationRelationship_Description: TCollection_HAsciiString, + theRepresentationRelationship_Rep1: StepRepr_RepresentationOrRepresentationReference, + theRepresentationRelationship_Rep2: StepRepr_RepresentationOrRepresentationReference, + theRepresentationRelationshipWithTransformation_TransformationOperator: StepRepr_Transformation, + ) -> None: ... + def RepresentationRelationshipWithTransformation( + self, + ) -> StepRepr_RepresentationRelationshipWithTransformation: ... + def SetRepresentationRelationshipWithTransformation( + self, + theRepresentationRelationshipWithTransformation: StepRepr_RepresentationRelationshipWithTransformation, + ) -> None: ... class StepKinematics_PairValue(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def AppliesToPair(self) -> StepKinematics_KinematicPair: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theAppliesToPair: StepKinematics_KinematicPair) -> None: ... - def SetAppliesToPair(self, theAppliesToPair: StepKinematics_KinematicPair) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theAppliesToPair: StepKinematics_KinematicPair, + ) -> None: ... + def SetAppliesToPair( + self, theAppliesToPair: StepKinematics_KinematicPair + ) -> None: ... class StepKinematics_ProductDefinitionKinematics(StepRepr_PropertyDefinition): def __init__(self) -> None: ... -class StepKinematics_ProductDefinitionRelationshipKinematics(StepRepr_PropertyDefinition): +class StepKinematics_ProductDefinitionRelationshipKinematics( + StepRepr_PropertyDefinition +): def __init__(self) -> None: ... class StepKinematics_RigidPlacement(StepData_SelectType): @@ -120,7 +229,12 @@ class StepKinematics_RigidPlacement(StepData_SelectType): class StepKinematics_RotationAboutDirection(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def DirectionOfAxis(self) -> StepGeom_Direction: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theDirectionOfAxis: StepGeom_Direction, theRotationAngle: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theDirectionOfAxis: StepGeom_Direction, + theRotationAngle: float, + ) -> None: ... def RotationAngle(self) -> float: ... def SetDirectionOfAxis(self, theDirectionOfAxis: StepGeom_Direction) -> None: ... def SetRotationAngle(self, theRotationAngle: float) -> None: ... @@ -141,8 +255,21 @@ class StepKinematics_ActuatedKinPairAndOrderKinPair(StepKinematics_KinematicPair def __init__(self) -> None: ... def GetActuatedKinematicPair(self) -> StepKinematics_ActuatedKinematicPair: ... def GetOrderKinematicPair(self) -> StepKinematics_KinematicPair: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theJoint: StepKinematics_KinematicJoint, theActuatedKinematicPair: StepKinematics_ActuatedKinematicPair, theOrderKinematicPair: StepKinematics_KinematicPair) -> None: ... - def SetActuatedKinematicPair(self, aKP: StepKinematics_ActuatedKinematicPair) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theJoint: StepKinematics_KinematicJoint, + theActuatedKinematicPair: StepKinematics_ActuatedKinematicPair, + theOrderKinematicPair: StepKinematics_KinematicPair, + ) -> None: ... + def SetActuatedKinematicPair( + self, aKP: StepKinematics_ActuatedKinematicPair + ) -> None: ... def SetOrderKinematicPair(self, aKP: StepKinematics_KinematicPair) -> None: ... class StepKinematics_ActuatedKinematicPair(StepKinematics_KinematicPair): @@ -153,7 +280,28 @@ class StepKinematics_ActuatedKinematicPair(StepKinematics_KinematicPair): def HasTX(self) -> bool: ... def HasTY(self) -> bool: ... def HasTZ(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, hasTX: bool, theTX: StepKinematics_ActuatedDirection, hasTY: bool, theTY: StepKinematics_ActuatedDirection, hasTZ: bool, theTZ: StepKinematics_ActuatedDirection, hasRX: bool, theRX: StepKinematics_ActuatedDirection, hasRY: bool, theRY: StepKinematics_ActuatedDirection, hasRZ: bool, theRZ: StepKinematics_ActuatedDirection) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + hasTX: bool, + theTX: StepKinematics_ActuatedDirection, + hasTY: bool, + theTY: StepKinematics_ActuatedDirection, + hasTZ: bool, + theTZ: StepKinematics_ActuatedDirection, + hasRX: bool, + theRX: StepKinematics_ActuatedDirection, + hasRY: bool, + theRY: StepKinematics_ActuatedDirection, + hasRZ: bool, + theRZ: StepKinematics_ActuatedDirection, + ) -> None: ... def RX(self) -> StepKinematics_ActuatedDirection: ... def RY(self) -> StepKinematics_ActuatedDirection: ... def RZ(self) -> StepKinematics_ActuatedDirection: ... @@ -171,31 +319,66 @@ class StepKinematics_CylindricalPairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualRotation(self) -> float: ... def ActualTranslation(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualTranslation: float, theActualRotation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualTranslation: float, + theActualRotation: float, + ) -> None: ... def SetActualRotation(self, theActualRotation: float) -> None: ... def SetActualTranslation(self, theActualTranslation: float) -> None: ... class StepKinematics_GearPairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualRotation1(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualRotation1: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualRotation1: float, + ) -> None: ... def SetActualRotation1(self, theActualRotation1: float) -> None: ... class StepKinematics_HighOrderKinematicPair(StepKinematics_KinematicPair): def __init__(self) -> None: ... -class StepKinematics_KinematicPropertyMechanismRepresentation(StepKinematics_KinematicPropertyDefinitionRepresentation): +class StepKinematics_KinematicPropertyMechanismRepresentation( + StepKinematics_KinematicPropertyDefinitionRepresentation +): def __init__(self) -> None: ... def Base(self) -> StepKinematics_KinematicLinkRepresentation: ... - def Init(self, thePropertyDefinitionRepresentation_Definition: StepRepr_RepresentedDefinition, thePropertyDefinitionRepresentation_UsedRepresentation: StepRepr_Representation, theBase: StepKinematics_KinematicLinkRepresentation) -> None: ... + def Init( + self, + thePropertyDefinitionRepresentation_Definition: StepRepr_RepresentedDefinition, + thePropertyDefinitionRepresentation_UsedRepresentation: StepRepr_Representation, + theBase: StepKinematics_KinematicLinkRepresentation, + ) -> None: ... def SetBase(self, theBase: StepKinematics_KinematicLinkRepresentation) -> None: ... -class StepKinematics_LinearFlexibleLinkRepresentation(StepKinematics_KinematicLinkRepresentation): +class StepKinematics_LinearFlexibleLinkRepresentation( + StepKinematics_KinematicLinkRepresentation +): def __init__(self) -> None: ... class StepKinematics_LowOrderKinematicPair(StepKinematics_KinematicPair): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theTX: bool, theTY: bool, theTZ: bool, theRX: bool, theRY: bool, theRZ: bool) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theTX: bool, + theTY: bool, + theTZ: bool, + theRX: bool, + theRY: bool, + theRZ: bool, + ) -> None: ... def RX(self) -> bool: ... def RY(self) -> bool: ... def RZ(self) -> bool: ... @@ -217,7 +400,17 @@ class StepKinematics_LowOrderKinematicPairValue(StepKinematics_PairValue): def ActualTranslationX(self) -> float: ... def ActualTranslationY(self) -> float: ... def ActualTranslationZ(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualTranslationX: float, theActualTranslationY: float, theActualTranslationZ: float, theActualRotationX: float, theActualRotationY: float, theActualRotationZ: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualTranslationX: float, + theActualTranslationY: float, + theActualTranslationZ: float, + theActualRotationX: float, + theActualRotationY: float, + theActualRotationZ: float, + ) -> None: ... def SetActualRotationX(self, theActualRotationX: float) -> None: ... def SetActualRotationY(self, theActualRotationY: float) -> None: ... def SetActualRotationZ(self, theActualRotationZ: float) -> None: ... @@ -225,7 +418,9 @@ class StepKinematics_LowOrderKinematicPairValue(StepKinematics_PairValue): def SetActualTranslationY(self, theActualTranslationY: float) -> None: ... def SetActualTranslationZ(self, theActualTranslationZ: float) -> None: ... -class StepKinematics_LowOrderKinematicPairWithMotionCoupling(StepKinematics_KinematicPair): +class StepKinematics_LowOrderKinematicPairWithMotionCoupling( + StepKinematics_KinematicPair +): def __init__(self) -> None: ... class StepKinematics_PlanarPairValue(StepKinematics_PairValue): @@ -233,7 +428,14 @@ class StepKinematics_PlanarPairValue(StepKinematics_PairValue): def ActualRotation(self) -> float: ... def ActualTranslationX(self) -> float: ... def ActualTranslationY(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualRotation: float, theActualTranslationX: float, theActualTranslationY: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualRotation: float, + theActualTranslationX: float, + theActualTranslationY: float, + ) -> None: ... def SetActualRotation(self, theActualRotation: float) -> None: ... def SetActualTranslationX(self, theActualTranslationX: float) -> None: ... def SetActualTranslationY(self, theActualTranslationY: float) -> None: ... @@ -241,94 +443,192 @@ class StepKinematics_PlanarPairValue(StepKinematics_PairValue): class StepKinematics_PointOnPlanarCurvePairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualPointOnCurve(self) -> StepGeom_PointOnCurve: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualPointOnCurve: StepGeom_PointOnCurve, theInputOrientation: StepKinematics_SpatialRotation) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualPointOnCurve: StepGeom_PointOnCurve, + theInputOrientation: StepKinematics_SpatialRotation, + ) -> None: ... def InputOrientation(self) -> StepKinematics_SpatialRotation: ... - def SetActualPointOnCurve(self, theActualPointOnCurve: StepGeom_PointOnCurve) -> None: ... - def SetInputOrientation(self, theInputOrientation: StepKinematics_SpatialRotation) -> None: ... + def SetActualPointOnCurve( + self, theActualPointOnCurve: StepGeom_PointOnCurve + ) -> None: ... + def SetInputOrientation( + self, theInputOrientation: StepKinematics_SpatialRotation + ) -> None: ... class StepKinematics_PointOnSurfacePairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualPointOnSurface(self) -> StepGeom_PointOnSurface: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualPointOnSurface: StepGeom_PointOnSurface, theInputOrientation: StepKinematics_SpatialRotation) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualPointOnSurface: StepGeom_PointOnSurface, + theInputOrientation: StepKinematics_SpatialRotation, + ) -> None: ... def InputOrientation(self) -> StepKinematics_SpatialRotation: ... - def SetActualPointOnSurface(self, theActualPointOnSurface: StepGeom_PointOnSurface) -> None: ... - def SetInputOrientation(self, theInputOrientation: StepKinematics_SpatialRotation) -> None: ... + def SetActualPointOnSurface( + self, theActualPointOnSurface: StepGeom_PointOnSurface + ) -> None: ... + def SetInputOrientation( + self, theInputOrientation: StepKinematics_SpatialRotation + ) -> None: ... class StepKinematics_PrismaticPairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualTranslation(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualTranslation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualTranslation: float, + ) -> None: ... def SetActualTranslation(self, theActualTranslation: float) -> None: ... class StepKinematics_RackAndPinionPairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualDisplacement(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualDisplacement: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualDisplacement: float, + ) -> None: ... def SetActualDisplacement(self, theActualDisplacement: float) -> None: ... class StepKinematics_RevolutePairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualRotation(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualRotation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualRotation: float, + ) -> None: ... def SetActualRotation(self, theActualRotation: float) -> None: ... -class StepKinematics_RigidLinkRepresentation(StepKinematics_KinematicLinkRepresentation): +class StepKinematics_RigidLinkRepresentation( + StepKinematics_KinematicLinkRepresentation +): def __init__(self) -> None: ... class StepKinematics_RollingCurvePairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualPointOnCurve1(self) -> StepGeom_PointOnCurve: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualPointOnCurve1: StepGeom_PointOnCurve) -> None: ... - def SetActualPointOnCurve1(self, theActualPointOnCurve1: StepGeom_PointOnCurve) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualPointOnCurve1: StepGeom_PointOnCurve, + ) -> None: ... + def SetActualPointOnCurve1( + self, theActualPointOnCurve1: StepGeom_PointOnCurve + ) -> None: ... class StepKinematics_RollingSurfacePairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualPointOnSurface(self) -> StepGeom_PointOnSurface: ... def ActualRotation(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualPointOnSurface: StepGeom_PointOnSurface, theActualRotation: float) -> None: ... - def SetActualPointOnSurface(self, theActualPointOnSurface: StepGeom_PointOnSurface) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualPointOnSurface: StepGeom_PointOnSurface, + theActualRotation: float, + ) -> None: ... + def SetActualPointOnSurface( + self, theActualPointOnSurface: StepGeom_PointOnSurface + ) -> None: ... def SetActualRotation(self, theActualRotation: float) -> None: ... class StepKinematics_ScrewPairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualRotation(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualRotation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualRotation: float, + ) -> None: ... def SetActualRotation(self, theActualRotation: float) -> None: ... class StepKinematics_SlidingCurvePairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualPointOnCurve1(self) -> StepGeom_PointOnCurve: ... def ActualPointOnCurve2(self) -> StepGeom_PointOnCurve: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualPointOnCurve1: StepGeom_PointOnCurve, theActualPointOnCurve2: StepGeom_PointOnCurve) -> None: ... - def SetActualPointOnCurve1(self, theActualPointOnCurve1: StepGeom_PointOnCurve) -> None: ... - def SetActualPointOnCurve2(self, theActualPointOnCurve2: StepGeom_PointOnCurve) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualPointOnCurve1: StepGeom_PointOnCurve, + theActualPointOnCurve2: StepGeom_PointOnCurve, + ) -> None: ... + def SetActualPointOnCurve1( + self, theActualPointOnCurve1: StepGeom_PointOnCurve + ) -> None: ... + def SetActualPointOnCurve2( + self, theActualPointOnCurve2: StepGeom_PointOnCurve + ) -> None: ... class StepKinematics_SlidingSurfacePairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualPointOnSurface1(self) -> StepGeom_PointOnSurface: ... def ActualPointOnSurface2(self) -> StepGeom_PointOnSurface: ... def ActualRotation(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualPointOnSurface1: StepGeom_PointOnSurface, theActualPointOnSurface2: StepGeom_PointOnSurface, theActualRotation: float) -> None: ... - def SetActualPointOnSurface1(self, theActualPointOnSurface1: StepGeom_PointOnSurface) -> None: ... - def SetActualPointOnSurface2(self, theActualPointOnSurface2: StepGeom_PointOnSurface) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualPointOnSurface1: StepGeom_PointOnSurface, + theActualPointOnSurface2: StepGeom_PointOnSurface, + theActualRotation: float, + ) -> None: ... + def SetActualPointOnSurface1( + self, theActualPointOnSurface1: StepGeom_PointOnSurface + ) -> None: ... + def SetActualPointOnSurface2( + self, theActualPointOnSurface2: StepGeom_PointOnSurface + ) -> None: ... def SetActualRotation(self, theActualRotation: float) -> None: ... class StepKinematics_SphericalPairValue(StepKinematics_PairValue): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theInputOrientation: StepKinematics_SpatialRotation) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theInputOrientation: StepKinematics_SpatialRotation, + ) -> None: ... def InputOrientation(self) -> StepKinematics_SpatialRotation: ... - def SetInputOrientation(self, theInputOrientation: StepKinematics_SpatialRotation) -> None: ... + def SetInputOrientation( + self, theInputOrientation: StepKinematics_SpatialRotation + ) -> None: ... class StepKinematics_UnconstrainedPairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def ActualPlacement(self) -> StepGeom_Axis2Placement3d: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theActualPlacement: StepGeom_Axis2Placement3d) -> None: ... - def SetActualPlacement(self, theActualPlacement: StepGeom_Axis2Placement3d) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theActualPlacement: StepGeom_Axis2Placement3d, + ) -> None: ... + def SetActualPlacement( + self, theActualPlacement: StepGeom_Axis2Placement3d + ) -> None: ... class StepKinematics_UniversalPairValue(StepKinematics_PairValue): def __init__(self) -> None: ... def FirstRotationAngle(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, thePairValue_AppliesToPair: StepKinematics_KinematicPair, theFirstRotationAngle: float, theSecondRotationAngle: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + thePairValue_AppliesToPair: StepKinematics_KinematicPair, + theFirstRotationAngle: float, + theSecondRotationAngle: float, + ) -> None: ... def SecondRotationAngle(self) -> float: ... def SetFirstRotationAngle(self, theFirstRotationAngle: float) -> None: ... def SetSecondRotationAngle(self, theSecondRotationAngle: float) -> None: ... @@ -344,7 +644,21 @@ class StepKinematics_GearPair(StepKinematics_LowOrderKinematicPairWithMotionCoup def Bevel(self) -> float: ... def GearRatio(self) -> float: ... def HelicalAngle(self) -> float: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theRadiusFirstLink: float, theRadiusSecondLink: float, theBevel: float, theHelicalAngle: float, theGearRatio: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theRadiusFirstLink: float, + theRadiusSecondLink: float, + theBevel: float, + theHelicalAngle: float, + theGearRatio: float, + ) -> None: ... def RadiusFirstLink(self) -> float: ... def RadiusSecondLink(self) -> float: ... def SetBevel(self, theBevel: float) -> None: ... @@ -353,21 +667,48 @@ class StepKinematics_GearPair(StepKinematics_LowOrderKinematicPairWithMotionCoup def SetRadiusFirstLink(self, theRadiusFirstLink: float) -> None: ... def SetRadiusSecondLink(self, theRadiusSecondLink: float) -> None: ... -class StepKinematics_LinearFlexibleAndPinionPair(StepKinematics_LowOrderKinematicPairWithMotionCoupling): - def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, thePinionRadius: float) -> None: ... +class StepKinematics_LinearFlexibleAndPinionPair( + StepKinematics_LowOrderKinematicPairWithMotionCoupling +): + def __init__(self) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + thePinionRadius: float, + ) -> None: ... def PinionRadius(self) -> float: ... def SetPinionRadius(self, thePinionRadius: float) -> None: ... -class StepKinematics_LinearFlexibleAndPlanarCurvePair(StepKinematics_HighOrderKinematicPair): - def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, thePairCurve: StepGeom_Curve, theOrientation: bool) -> None: ... +class StepKinematics_LinearFlexibleAndPlanarCurvePair( + StepKinematics_HighOrderKinematicPair +): + def __init__(self) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + thePairCurve: StepGeom_Curve, + theOrientation: bool, + ) -> None: ... def Orientation(self) -> bool: ... def PairCurve(self) -> StepGeom_Curve: ... def SetOrientation(self, theOrientation: bool) -> None: ... def SetPairCurve(self, thePairCurve: StepGeom_Curve) -> None: ... -class StepKinematics_LowOrderKinematicPairWithRange(StepKinematics_LowOrderKinematicPair): +class StepKinematics_LowOrderKinematicPairWithRange( + StepKinematics_LowOrderKinematicPair +): def __init__(self) -> None: ... def HasLowerLimitActualRotationX(self) -> bool: ... def HasLowerLimitActualRotationY(self) -> bool: ... @@ -381,25 +722,88 @@ class StepKinematics_LowOrderKinematicPairWithRange(StepKinematics_LowOrderKinem def HasUpperLimitActualTranslationX(self) -> bool: ... def HasUpperLimitActualTranslationY(self) -> bool: ... def HasUpperLimitActualTranslationZ(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theLowOrderKinematicPair_TX: bool, theLowOrderKinematicPair_TY: bool, theLowOrderKinematicPair_TZ: bool, theLowOrderKinematicPair_RX: bool, theLowOrderKinematicPair_RY: bool, theLowOrderKinematicPair_RZ: bool, hasLowerLimitActualRotationX: bool, theLowerLimitActualRotationX: float, hasUpperLimitActualRotationX: bool, theUpperLimitActualRotationX: float, hasLowerLimitActualRotationY: bool, theLowerLimitActualRotationY: float, hasUpperLimitActualRotationY: bool, theUpperLimitActualRotationY: float, hasLowerLimitActualRotationZ: bool, theLowerLimitActualRotationZ: float, hasUpperLimitActualRotationZ: bool, theUpperLimitActualRotationZ: float, hasLowerLimitActualTranslationX: bool, theLowerLimitActualTranslationX: float, hasUpperLimitActualTranslationX: bool, theUpperLimitActualTranslationX: float, hasLowerLimitActualTranslationY: bool, theLowerLimitActualTranslationY: float, hasUpperLimitActualTranslationY: bool, theUpperLimitActualTranslationY: float, hasLowerLimitActualTranslationZ: bool, theLowerLimitActualTranslationZ: float, hasUpperLimitActualTranslationZ: bool, theUpperLimitActualTranslationZ: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theLowOrderKinematicPair_TX: bool, + theLowOrderKinematicPair_TY: bool, + theLowOrderKinematicPair_TZ: bool, + theLowOrderKinematicPair_RX: bool, + theLowOrderKinematicPair_RY: bool, + theLowOrderKinematicPair_RZ: bool, + hasLowerLimitActualRotationX: bool, + theLowerLimitActualRotationX: float, + hasUpperLimitActualRotationX: bool, + theUpperLimitActualRotationX: float, + hasLowerLimitActualRotationY: bool, + theLowerLimitActualRotationY: float, + hasUpperLimitActualRotationY: bool, + theUpperLimitActualRotationY: float, + hasLowerLimitActualRotationZ: bool, + theLowerLimitActualRotationZ: float, + hasUpperLimitActualRotationZ: bool, + theUpperLimitActualRotationZ: float, + hasLowerLimitActualTranslationX: bool, + theLowerLimitActualTranslationX: float, + hasUpperLimitActualTranslationX: bool, + theUpperLimitActualTranslationX: float, + hasLowerLimitActualTranslationY: bool, + theLowerLimitActualTranslationY: float, + hasUpperLimitActualTranslationY: bool, + theUpperLimitActualTranslationY: float, + hasLowerLimitActualTranslationZ: bool, + theLowerLimitActualTranslationZ: float, + hasUpperLimitActualTranslationZ: bool, + theUpperLimitActualTranslationZ: float, + ) -> None: ... def LowerLimitActualRotationX(self) -> float: ... def LowerLimitActualRotationY(self) -> float: ... def LowerLimitActualRotationZ(self) -> float: ... def LowerLimitActualTranslationX(self) -> float: ... def LowerLimitActualTranslationY(self) -> float: ... def LowerLimitActualTranslationZ(self) -> float: ... - def SetLowerLimitActualRotationX(self, theLowerLimitActualRotationX: float) -> None: ... - def SetLowerLimitActualRotationY(self, theLowerLimitActualRotationY: float) -> None: ... - def SetLowerLimitActualRotationZ(self, theLowerLimitActualRotationZ: float) -> None: ... - def SetLowerLimitActualTranslationX(self, theLowerLimitActualTranslationX: float) -> None: ... - def SetLowerLimitActualTranslationY(self, theLowerLimitActualTranslationY: float) -> None: ... - def SetLowerLimitActualTranslationZ(self, theLowerLimitActualTranslationZ: float) -> None: ... - def SetUpperLimitActualRotationX(self, theUpperLimitActualRotationX: float) -> None: ... - def SetUpperLimitActualRotationY(self, theUpperLimitActualRotationY: float) -> None: ... - def SetUpperLimitActualRotationZ(self, theUpperLimitActualRotationZ: float) -> None: ... - def SetUpperLimitActualTranslationX(self, theUpperLimitActualTranslationX: float) -> None: ... - def SetUpperLimitActualTranslationY(self, theUpperLimitActualTranslationY: float) -> None: ... - def SetUpperLimitActualTranslationZ(self, theUpperLimitActualTranslationZ: float) -> None: ... + def SetLowerLimitActualRotationX( + self, theLowerLimitActualRotationX: float + ) -> None: ... + def SetLowerLimitActualRotationY( + self, theLowerLimitActualRotationY: float + ) -> None: ... + def SetLowerLimitActualRotationZ( + self, theLowerLimitActualRotationZ: float + ) -> None: ... + def SetLowerLimitActualTranslationX( + self, theLowerLimitActualTranslationX: float + ) -> None: ... + def SetLowerLimitActualTranslationY( + self, theLowerLimitActualTranslationY: float + ) -> None: ... + def SetLowerLimitActualTranslationZ( + self, theLowerLimitActualTranslationZ: float + ) -> None: ... + def SetUpperLimitActualRotationX( + self, theUpperLimitActualRotationX: float + ) -> None: ... + def SetUpperLimitActualRotationY( + self, theUpperLimitActualRotationY: float + ) -> None: ... + def SetUpperLimitActualRotationZ( + self, theUpperLimitActualRotationZ: float + ) -> None: ... + def SetUpperLimitActualTranslationX( + self, theUpperLimitActualTranslationX: float + ) -> None: ... + def SetUpperLimitActualTranslationY( + self, theUpperLimitActualTranslationY: float + ) -> None: ... + def SetUpperLimitActualTranslationZ( + self, theUpperLimitActualTranslationZ: float + ) -> None: ... def UpperLimitActualRotationX(self) -> float: ... def UpperLimitActualRotationY(self) -> float: ... def UpperLimitActualRotationZ(self) -> float: ... @@ -411,7 +815,19 @@ class StepKinematics_PlanarCurvePair(StepKinematics_HighOrderKinematicPair): def __init__(self) -> None: ... def Curve1(self) -> StepGeom_Curve: ... def Curve2(self) -> StepGeom_Curve: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theCurve1: StepGeom_Curve, theCurve2: StepGeom_Curve, theOrientation: bool) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theCurve1: StepGeom_Curve, + theCurve2: StepGeom_Curve, + theOrientation: bool, + ) -> None: ... def Orientation(self) -> bool: ... def SetCurve1(self, theCurve1: StepGeom_Curve) -> None: ... def SetCurve2(self, theCurve2: StepGeom_Curve) -> None: ... @@ -422,7 +838,18 @@ class StepKinematics_PlanarPair(StepKinematics_LowOrderKinematicPair): class StepKinematics_PointOnPlanarCurvePair(StepKinematics_HighOrderKinematicPair): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, thePairCurve: StepGeom_Curve, theOrientation: bool) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + thePairCurve: StepGeom_Curve, + theOrientation: bool, + ) -> None: ... def Orientation(self) -> bool: ... def PairCurve(self) -> StepGeom_Curve: ... def SetOrientation(self, theOrientation: bool) -> None: ... @@ -430,16 +857,38 @@ class StepKinematics_PointOnPlanarCurvePair(StepKinematics_HighOrderKinematicPai class StepKinematics_PointOnSurfacePair(StepKinematics_HighOrderKinematicPair): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, thePairSurface: StepGeom_Surface) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + thePairSurface: StepGeom_Surface, + ) -> None: ... def PairSurface(self) -> StepGeom_Surface: ... def SetPairSurface(self, thePairSurface: StepGeom_Surface) -> None: ... class StepKinematics_PrismaticPair(StepKinematics_LowOrderKinematicPair): def __init__(self) -> None: ... -class StepKinematics_RackAndPinionPair(StepKinematics_LowOrderKinematicPairWithMotionCoupling): - def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, thePinionRadius: float) -> None: ... +class StepKinematics_RackAndPinionPair( + StepKinematics_LowOrderKinematicPairWithMotionCoupling +): + def __init__(self) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + thePinionRadius: float, + ) -> None: ... def PinionRadius(self) -> float: ... def SetPinionRadius(self, thePinionRadius: float) -> None: ... @@ -448,7 +897,17 @@ class StepKinematics_RevolutePair(StepKinematics_LowOrderKinematicPair): class StepKinematics_ScrewPair(StepKinematics_LowOrderKinematicPairWithMotionCoupling): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, thePitch: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + thePitch: float, + ) -> None: ... def Pitch(self) -> float: ... def SetPitch(self, thePitch: float) -> None: ... @@ -460,7 +919,19 @@ class StepKinematics_SphericalPairWithPin(StepKinematics_LowOrderKinematicPair): class StepKinematics_SurfacePair(StepKinematics_HighOrderKinematicPair): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theSurface1: StepGeom_Surface, theSurface2: StepGeom_Surface, theOrientation: bool) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theSurface1: StepGeom_Surface, + theSurface2: StepGeom_Surface, + theOrientation: bool, + ) -> None: ... def Orientation(self) -> bool: ... def SetOrientation(self, theOrientation: bool) -> None: ... def SetSurface1(self, theSurface1: StepGeom_Surface) -> None: ... @@ -474,7 +945,24 @@ class StepKinematics_UnconstrainedPair(StepKinematics_LowOrderKinematicPair): class StepKinematics_UniversalPair(StepKinematics_LowOrderKinematicPair): def __init__(self) -> None: ... def HasInputSkewAngle(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theLowOrderKinematicPair_TX: bool, theLowOrderKinematicPair_TY: bool, theLowOrderKinematicPair_TZ: bool, theLowOrderKinematicPair_RX: bool, theLowOrderKinematicPair_RY: bool, theLowOrderKinematicPair_RZ: bool, hasInputSkewAngle: bool, theInputSkewAngle: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theLowOrderKinematicPair_TX: bool, + theLowOrderKinematicPair_TY: bool, + theLowOrderKinematicPair_TZ: bool, + theLowOrderKinematicPair_RX: bool, + theLowOrderKinematicPair_RY: bool, + theLowOrderKinematicPair_RZ: bool, + hasInputSkewAngle: bool, + theInputSkewAngle: float, + ) -> None: ... def InputSkewAngle(self) -> float: ... def SetInputSkewAngle(self, theInputSkewAngle: float) -> None: ... @@ -484,13 +972,44 @@ class StepKinematics_CylindricalPairWithRange(StepKinematics_CylindricalPair): def HasLowerLimitActualTranslation(self) -> bool: ... def HasUpperLimitActualRotation(self) -> bool: ... def HasUpperLimitActualTranslation(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theLowOrderKinematicPair_TX: bool, theLowOrderKinematicPair_TY: bool, theLowOrderKinematicPair_TZ: bool, theLowOrderKinematicPair_RX: bool, theLowOrderKinematicPair_RY: bool, theLowOrderKinematicPair_RZ: bool, hasLowerLimitActualTranslation: bool, theLowerLimitActualTranslation: float, hasUpperLimitActualTranslation: bool, theUpperLimitActualTranslation: float, hasLowerLimitActualRotation: bool, theLowerLimitActualRotation: float, hasUpperLimitActualRotation: bool, theUpperLimitActualRotation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theLowOrderKinematicPair_TX: bool, + theLowOrderKinematicPair_TY: bool, + theLowOrderKinematicPair_TZ: bool, + theLowOrderKinematicPair_RX: bool, + theLowOrderKinematicPair_RY: bool, + theLowOrderKinematicPair_RZ: bool, + hasLowerLimitActualTranslation: bool, + theLowerLimitActualTranslation: float, + hasUpperLimitActualTranslation: bool, + theUpperLimitActualTranslation: float, + hasLowerLimitActualRotation: bool, + theLowerLimitActualRotation: float, + hasUpperLimitActualRotation: bool, + theUpperLimitActualRotation: float, + ) -> None: ... def LowerLimitActualRotation(self) -> float: ... def LowerLimitActualTranslation(self) -> float: ... - def SetLowerLimitActualRotation(self, theLowerLimitActualRotation: float) -> None: ... - def SetLowerLimitActualTranslation(self, theLowerLimitActualTranslation: float) -> None: ... - def SetUpperLimitActualRotation(self, theUpperLimitActualRotation: float) -> None: ... - def SetUpperLimitActualTranslation(self, theUpperLimitActualTranslation: float) -> None: ... + def SetLowerLimitActualRotation( + self, theLowerLimitActualRotation: float + ) -> None: ... + def SetLowerLimitActualTranslation( + self, theLowerLimitActualTranslation: float + ) -> None: ... + def SetUpperLimitActualRotation( + self, theUpperLimitActualRotation: float + ) -> None: ... + def SetUpperLimitActualTranslation( + self, theUpperLimitActualTranslation: float + ) -> None: ... def UpperLimitActualRotation(self) -> float: ... def UpperLimitActualTranslation(self) -> float: ... @@ -498,10 +1017,32 @@ class StepKinematics_GearPairWithRange(StepKinematics_GearPair): def __init__(self) -> None: ... def HasLowerLimitActualRotation1(self) -> bool: ... def HasUpperLimitActualRotation1(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theGearPair_RadiusFirstLink: float, theGearPair_RadiusSecondLink: float, theGearPair_Bevel: float, theGearPair_HelicalAngle: float, theGearPair_GearRatio: float, hasLowerLimitActualRotation1: bool, theLowerLimitActualRotation1: float, hasUpperLimitActualRotation1: bool, theUpperLimitActualRotation1: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theGearPair_RadiusFirstLink: float, + theGearPair_RadiusSecondLink: float, + theGearPair_Bevel: float, + theGearPair_HelicalAngle: float, + theGearPair_GearRatio: float, + hasLowerLimitActualRotation1: bool, + theLowerLimitActualRotation1: float, + hasUpperLimitActualRotation1: bool, + theUpperLimitActualRotation1: float, + ) -> None: ... def LowerLimitActualRotation1(self) -> float: ... - def SetLowerLimitActualRotation1(self, theLowerLimitActualRotation1: float) -> None: ... - def SetUpperLimitActualRotation1(self, theUpperLimitActualRotation1: float) -> None: ... + def SetLowerLimitActualRotation1( + self, theLowerLimitActualRotation1: float + ) -> None: ... + def SetUpperLimitActualRotation1( + self, theUpperLimitActualRotation1: float + ) -> None: ... def UpperLimitActualRotation1(self) -> float: ... class StepKinematics_HomokineticPair(StepKinematics_UniversalPair): @@ -509,7 +1050,21 @@ class StepKinematics_HomokineticPair(StepKinematics_UniversalPair): class StepKinematics_PlanarCurvePairRange(StepKinematics_PlanarCurvePair): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, thePlanarCurvePair_Curve1: StepGeom_Curve, thePlanarCurvePair_Curve2: StepGeom_Curve, thePlanarCurvePair_Orientation: bool, theRangeOnCurve1: StepGeom_TrimmedCurve, theRangeOnCurve2: StepGeom_TrimmedCurve) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + thePlanarCurvePair_Curve1: StepGeom_Curve, + thePlanarCurvePair_Curve2: StepGeom_Curve, + thePlanarCurvePair_Orientation: bool, + theRangeOnCurve1: StepGeom_TrimmedCurve, + theRangeOnCurve2: StepGeom_TrimmedCurve, + ) -> None: ... def RangeOnCurve1(self) -> StepGeom_TrimmedCurve: ... def RangeOnCurve2(self) -> StepGeom_TrimmedCurve: ... def SetRangeOnCurve1(self, theRangeOnCurve1: StepGeom_TrimmedCurve) -> None: ... @@ -523,21 +1078,62 @@ class StepKinematics_PlanarPairWithRange(StepKinematics_PlanarPair): def HasUpperLimitActualRotation(self) -> bool: ... def HasUpperLimitActualTranslationX(self) -> bool: ... def HasUpperLimitActualTranslationY(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theLowOrderKinematicPair_TX: bool, theLowOrderKinematicPair_TY: bool, theLowOrderKinematicPair_TZ: bool, theLowOrderKinematicPair_RX: bool, theLowOrderKinematicPair_RY: bool, theLowOrderKinematicPair_RZ: bool, hasLowerLimitActualRotation: bool, theLowerLimitActualRotation: float, hasUpperLimitActualRotation: bool, theUpperLimitActualRotation: float, hasLowerLimitActualTranslationX: bool, theLowerLimitActualTranslationX: float, hasUpperLimitActualTranslationX: bool, theUpperLimitActualTranslationX: float, hasLowerLimitActualTranslationY: bool, theLowerLimitActualTranslationY: float, hasUpperLimitActualTranslationY: bool, theUpperLimitActualTranslationY: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theLowOrderKinematicPair_TX: bool, + theLowOrderKinematicPair_TY: bool, + theLowOrderKinematicPair_TZ: bool, + theLowOrderKinematicPair_RX: bool, + theLowOrderKinematicPair_RY: bool, + theLowOrderKinematicPair_RZ: bool, + hasLowerLimitActualRotation: bool, + theLowerLimitActualRotation: float, + hasUpperLimitActualRotation: bool, + theUpperLimitActualRotation: float, + hasLowerLimitActualTranslationX: bool, + theLowerLimitActualTranslationX: float, + hasUpperLimitActualTranslationX: bool, + theUpperLimitActualTranslationX: float, + hasLowerLimitActualTranslationY: bool, + theLowerLimitActualTranslationY: float, + hasUpperLimitActualTranslationY: bool, + theUpperLimitActualTranslationY: float, + ) -> None: ... def LowerLimitActualRotation(self) -> float: ... def LowerLimitActualTranslationX(self) -> float: ... def LowerLimitActualTranslationY(self) -> float: ... - def SetLowerLimitActualRotation(self, theLowerLimitActualRotation: float) -> None: ... - def SetLowerLimitActualTranslationX(self, theLowerLimitActualTranslationX: float) -> None: ... - def SetLowerLimitActualTranslationY(self, theLowerLimitActualTranslationY: float) -> None: ... - def SetUpperLimitActualRotation(self, theUpperLimitActualRotation: float) -> None: ... - def SetUpperLimitActualTranslationX(self, theUpperLimitActualTranslationX: float) -> None: ... - def SetUpperLimitActualTranslationY(self, theUpperLimitActualTranslationY: float) -> None: ... + def SetLowerLimitActualRotation( + self, theLowerLimitActualRotation: float + ) -> None: ... + def SetLowerLimitActualTranslationX( + self, theLowerLimitActualTranslationX: float + ) -> None: ... + def SetLowerLimitActualTranslationY( + self, theLowerLimitActualTranslationY: float + ) -> None: ... + def SetUpperLimitActualRotation( + self, theUpperLimitActualRotation: float + ) -> None: ... + def SetUpperLimitActualTranslationX( + self, theUpperLimitActualTranslationX: float + ) -> None: ... + def SetUpperLimitActualTranslationY( + self, theUpperLimitActualTranslationY: float + ) -> None: ... def UpperLimitActualRotation(self) -> float: ... def UpperLimitActualTranslationX(self) -> float: ... def UpperLimitActualTranslationY(self) -> float: ... -class StepKinematics_PointOnPlanarCurvePairWithRange(StepKinematics_PointOnPlanarCurvePair): +class StepKinematics_PointOnPlanarCurvePairWithRange( + StepKinematics_PointOnPlanarCurvePair +): def __init__(self) -> None: ... def HasLowerLimitPitch(self) -> bool: ... def HasLowerLimitRoll(self) -> bool: ... @@ -545,7 +1141,31 @@ class StepKinematics_PointOnPlanarCurvePairWithRange(StepKinematics_PointOnPlana def HasUpperLimitPitch(self) -> bool: ... def HasUpperLimitRoll(self) -> bool: ... def HasUpperLimitYaw(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, thePointOnPlanarCurvePair_PairCurve: StepGeom_Curve, thePointOnPlanarCurvePair_Orientation: bool, theRangeOnPairCurve: StepGeom_TrimmedCurve, hasLowerLimitYaw: bool, theLowerLimitYaw: float, hasUpperLimitYaw: bool, theUpperLimitYaw: float, hasLowerLimitPitch: bool, theLowerLimitPitch: float, hasUpperLimitPitch: bool, theUpperLimitPitch: float, hasLowerLimitRoll: bool, theLowerLimitRoll: float, hasUpperLimitRoll: bool, theUpperLimitRoll: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + thePointOnPlanarCurvePair_PairCurve: StepGeom_Curve, + thePointOnPlanarCurvePair_Orientation: bool, + theRangeOnPairCurve: StepGeom_TrimmedCurve, + hasLowerLimitYaw: bool, + theLowerLimitYaw: float, + hasUpperLimitYaw: bool, + theUpperLimitYaw: float, + hasLowerLimitPitch: bool, + theLowerLimitPitch: float, + hasUpperLimitPitch: bool, + theUpperLimitPitch: float, + hasLowerLimitRoll: bool, + theLowerLimitRoll: float, + hasUpperLimitRoll: bool, + theUpperLimitRoll: float, + ) -> None: ... def LowerLimitPitch(self) -> float: ... def LowerLimitRoll(self) -> float: ... def LowerLimitYaw(self) -> float: ... @@ -553,7 +1173,9 @@ class StepKinematics_PointOnPlanarCurvePairWithRange(StepKinematics_PointOnPlana def SetLowerLimitPitch(self, theLowerLimitPitch: float) -> None: ... def SetLowerLimitRoll(self, theLowerLimitRoll: float) -> None: ... def SetLowerLimitYaw(self, theLowerLimitYaw: float) -> None: ... - def SetRangeOnPairCurve(self, theRangeOnPairCurve: StepGeom_TrimmedCurve) -> None: ... + def SetRangeOnPairCurve( + self, theRangeOnPairCurve: StepGeom_TrimmedCurve + ) -> None: ... def SetUpperLimitPitch(self, theUpperLimitPitch: float) -> None: ... def SetUpperLimitRoll(self, theUpperLimitRoll: float) -> None: ... def SetUpperLimitYaw(self, theUpperLimitYaw: float) -> None: ... @@ -569,7 +1191,30 @@ class StepKinematics_PointOnSurfacePairWithRange(StepKinematics_PointOnSurfacePa def HasUpperLimitPitch(self) -> bool: ... def HasUpperLimitRoll(self) -> bool: ... def HasUpperLimitYaw(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, thePointOnSurfacePair_PairSurface: StepGeom_Surface, theRangeOnPairSurface: StepGeom_RectangularTrimmedSurface, hasLowerLimitYaw: bool, theLowerLimitYaw: float, hasUpperLimitYaw: bool, theUpperLimitYaw: float, hasLowerLimitPitch: bool, theLowerLimitPitch: float, hasUpperLimitPitch: bool, theUpperLimitPitch: float, hasLowerLimitRoll: bool, theLowerLimitRoll: float, hasUpperLimitRoll: bool, theUpperLimitRoll: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + thePointOnSurfacePair_PairSurface: StepGeom_Surface, + theRangeOnPairSurface: StepGeom_RectangularTrimmedSurface, + hasLowerLimitYaw: bool, + theLowerLimitYaw: float, + hasUpperLimitYaw: bool, + theUpperLimitYaw: float, + hasLowerLimitPitch: bool, + theLowerLimitPitch: float, + hasUpperLimitPitch: bool, + theUpperLimitPitch: float, + hasLowerLimitRoll: bool, + theLowerLimitRoll: float, + hasUpperLimitRoll: bool, + theUpperLimitRoll: float, + ) -> None: ... def LowerLimitPitch(self) -> float: ... def LowerLimitRoll(self) -> float: ... def LowerLimitYaw(self) -> float: ... @@ -577,7 +1222,9 @@ class StepKinematics_PointOnSurfacePairWithRange(StepKinematics_PointOnSurfacePa def SetLowerLimitPitch(self, theLowerLimitPitch: float) -> None: ... def SetLowerLimitRoll(self, theLowerLimitRoll: float) -> None: ... def SetLowerLimitYaw(self, theLowerLimitYaw: float) -> None: ... - def SetRangeOnPairSurface(self, theRangeOnPairSurface: StepGeom_RectangularTrimmedSurface) -> None: ... + def SetRangeOnPairSurface( + self, theRangeOnPairSurface: StepGeom_RectangularTrimmedSurface + ) -> None: ... def SetUpperLimitPitch(self, theUpperLimitPitch: float) -> None: ... def SetUpperLimitRoll(self, theUpperLimitRoll: float) -> None: ... def SetUpperLimitYaw(self, theUpperLimitYaw: float) -> None: ... @@ -589,30 +1236,94 @@ class StepKinematics_PrismaticPairWithRange(StepKinematics_PrismaticPair): def __init__(self) -> None: ... def HasLowerLimitActualTranslation(self) -> bool: ... def HasUpperLimitActualTranslation(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theLowOrderKinematicPair_TX: bool, theLowOrderKinematicPair_TY: bool, theLowOrderKinematicPair_TZ: bool, theLowOrderKinematicPair_RX: bool, theLowOrderKinematicPair_RY: bool, theLowOrderKinematicPair_RZ: bool, hasLowerLimitActualTranslation: bool, theLowerLimitActualTranslation: float, hasUpperLimitActualTranslation: bool, theUpperLimitActualTranslation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theLowOrderKinematicPair_TX: bool, + theLowOrderKinematicPair_TY: bool, + theLowOrderKinematicPair_TZ: bool, + theLowOrderKinematicPair_RX: bool, + theLowOrderKinematicPair_RY: bool, + theLowOrderKinematicPair_RZ: bool, + hasLowerLimitActualTranslation: bool, + theLowerLimitActualTranslation: float, + hasUpperLimitActualTranslation: bool, + theUpperLimitActualTranslation: float, + ) -> None: ... def LowerLimitActualTranslation(self) -> float: ... - def SetLowerLimitActualTranslation(self, theLowerLimitActualTranslation: float) -> None: ... - def SetUpperLimitActualTranslation(self, theUpperLimitActualTranslation: float) -> None: ... + def SetLowerLimitActualTranslation( + self, theLowerLimitActualTranslation: float + ) -> None: ... + def SetUpperLimitActualTranslation( + self, theUpperLimitActualTranslation: float + ) -> None: ... def UpperLimitActualTranslation(self) -> float: ... class StepKinematics_RackAndPinionPairWithRange(StepKinematics_RackAndPinionPair): def __init__(self) -> None: ... def HasLowerLimitRackDisplacement(self) -> bool: ... def HasUpperLimitRackDisplacement(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theRackAndPinionPair_PinionRadius: float, hasLowerLimitRackDisplacement: bool, theLowerLimitRackDisplacement: float, hasUpperLimitRackDisplacement: bool, theUpperLimitRackDisplacement: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theRackAndPinionPair_PinionRadius: float, + hasLowerLimitRackDisplacement: bool, + theLowerLimitRackDisplacement: float, + hasUpperLimitRackDisplacement: bool, + theUpperLimitRackDisplacement: float, + ) -> None: ... def LowerLimitRackDisplacement(self) -> float: ... - def SetLowerLimitRackDisplacement(self, theLowerLimitRackDisplacement: float) -> None: ... - def SetUpperLimitRackDisplacement(self, theUpperLimitRackDisplacement: float) -> None: ... + def SetLowerLimitRackDisplacement( + self, theLowerLimitRackDisplacement: float + ) -> None: ... + def SetUpperLimitRackDisplacement( + self, theUpperLimitRackDisplacement: float + ) -> None: ... def UpperLimitRackDisplacement(self) -> float: ... class StepKinematics_RevolutePairWithRange(StepKinematics_RevolutePair): def __init__(self) -> None: ... def HasLowerLimitActualRotation(self) -> bool: ... def HasUpperLimitActualRotation(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theLowOrderKinematicPair_TX: bool, theLowOrderKinematicPair_TY: bool, theLowOrderKinematicPair_TZ: bool, theLowOrderKinematicPair_RX: bool, theLowOrderKinematicPair_RY: bool, theLowOrderKinematicPair_RZ: bool, hasLowerLimitActualRotation: bool, theLowerLimitActualRotation: float, hasUpperLimitActualRotation: bool, theUpperLimitActualRotation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theLowOrderKinematicPair_TX: bool, + theLowOrderKinematicPair_TY: bool, + theLowOrderKinematicPair_TZ: bool, + theLowOrderKinematicPair_RX: bool, + theLowOrderKinematicPair_RY: bool, + theLowOrderKinematicPair_RZ: bool, + hasLowerLimitActualRotation: bool, + theLowerLimitActualRotation: float, + hasUpperLimitActualRotation: bool, + theUpperLimitActualRotation: float, + ) -> None: ... def LowerLimitActualRotation(self) -> float: ... - def SetLowerLimitActualRotation(self, theLowerLimitActualRotation: float) -> None: ... - def SetUpperLimitActualRotation(self, theUpperLimitActualRotation: float) -> None: ... + def SetLowerLimitActualRotation( + self, theLowerLimitActualRotation: float + ) -> None: ... + def SetUpperLimitActualRotation( + self, theUpperLimitActualRotation: float + ) -> None: ... def UpperLimitActualRotation(self) -> float: ... class StepKinematics_RollingCurvePair(StepKinematics_PlanarCurvePair): @@ -625,10 +1336,28 @@ class StepKinematics_ScrewPairWithRange(StepKinematics_ScrewPair): def __init__(self) -> None: ... def HasLowerLimitActualRotation(self) -> bool: ... def HasUpperLimitActualRotation(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theScrewPair_Pitch: float, hasLowerLimitActualRotation: bool, theLowerLimitActualRotation: float, hasUpperLimitActualRotation: bool, theUpperLimitActualRotation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theScrewPair_Pitch: float, + hasLowerLimitActualRotation: bool, + theLowerLimitActualRotation: float, + hasUpperLimitActualRotation: bool, + theUpperLimitActualRotation: float, + ) -> None: ... def LowerLimitActualRotation(self) -> float: ... - def SetLowerLimitActualRotation(self, theLowerLimitActualRotation: float) -> None: ... - def SetUpperLimitActualRotation(self, theUpperLimitActualRotation: float) -> None: ... + def SetLowerLimitActualRotation( + self, theLowerLimitActualRotation: float + ) -> None: ... + def SetUpperLimitActualRotation( + self, theUpperLimitActualRotation: float + ) -> None: ... def UpperLimitActualRotation(self) -> float: ... class StepKinematics_SlidingCurvePair(StepKinematics_PlanarCurvePair): @@ -643,7 +1372,30 @@ class StepKinematics_SphericalPairWithPinAndRange(StepKinematics_SphericalPairWi def HasLowerLimitYaw(self) -> bool: ... def HasUpperLimitRoll(self) -> bool: ... def HasUpperLimitYaw(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theLowOrderKinematicPair_TX: bool, theLowOrderKinematicPair_TY: bool, theLowOrderKinematicPair_TZ: bool, theLowOrderKinematicPair_RX: bool, theLowOrderKinematicPair_RY: bool, theLowOrderKinematicPair_RZ: bool, hasLowerLimitYaw: bool, theLowerLimitYaw: float, hasUpperLimitYaw: bool, theUpperLimitYaw: float, hasLowerLimitRoll: bool, theLowerLimitRoll: float, hasUpperLimitRoll: bool, theUpperLimitRoll: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theLowOrderKinematicPair_TX: bool, + theLowOrderKinematicPair_TY: bool, + theLowOrderKinematicPair_TZ: bool, + theLowOrderKinematicPair_RX: bool, + theLowOrderKinematicPair_RY: bool, + theLowOrderKinematicPair_RZ: bool, + hasLowerLimitYaw: bool, + theLowerLimitYaw: float, + hasUpperLimitYaw: bool, + theUpperLimitYaw: float, + hasLowerLimitRoll: bool, + theLowerLimitRoll: float, + hasUpperLimitRoll: bool, + theUpperLimitRoll: float, + ) -> None: ... def LowerLimitRoll(self) -> float: ... def LowerLimitYaw(self) -> float: ... def SetLowerLimitRoll(self, theLowerLimitRoll: float) -> None: ... @@ -661,7 +1413,34 @@ class StepKinematics_SphericalPairWithRange(StepKinematics_SphericalPair): def HasUpperLimitPitch(self) -> bool: ... def HasUpperLimitRoll(self) -> bool: ... def HasUpperLimitYaw(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theLowOrderKinematicPair_TX: bool, theLowOrderKinematicPair_TY: bool, theLowOrderKinematicPair_TZ: bool, theLowOrderKinematicPair_RX: bool, theLowOrderKinematicPair_RY: bool, theLowOrderKinematicPair_RZ: bool, hasLowerLimitYaw: bool, theLowerLimitYaw: float, hasUpperLimitYaw: bool, theUpperLimitYaw: float, hasLowerLimitPitch: bool, theLowerLimitPitch: float, hasUpperLimitPitch: bool, theUpperLimitPitch: float, hasLowerLimitRoll: bool, theLowerLimitRoll: float, hasUpperLimitRoll: bool, theUpperLimitRoll: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theLowOrderKinematicPair_TX: bool, + theLowOrderKinematicPair_TY: bool, + theLowOrderKinematicPair_TZ: bool, + theLowOrderKinematicPair_RX: bool, + theLowOrderKinematicPair_RY: bool, + theLowOrderKinematicPair_RZ: bool, + hasLowerLimitYaw: bool, + theLowerLimitYaw: float, + hasUpperLimitYaw: bool, + theUpperLimitYaw: float, + hasLowerLimitPitch: bool, + theLowerLimitPitch: float, + hasUpperLimitPitch: bool, + theUpperLimitPitch: float, + hasLowerLimitRoll: bool, + theLowerLimitRoll: float, + hasUpperLimitRoll: bool, + theUpperLimitRoll: float, + ) -> None: ... def LowerLimitPitch(self) -> float: ... def LowerLimitRoll(self) -> float: ... def LowerLimitYaw(self) -> float: ... @@ -679,14 +1458,40 @@ class StepKinematics_SurfacePairWithRange(StepKinematics_SurfacePair): def __init__(self) -> None: ... def HasLowerLimitActualRotation(self) -> bool: ... def HasUpperLimitActualRotation(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theSurfacePair_Surface1: StepGeom_Surface, theSurfacePair_Surface2: StepGeom_Surface, theSurfacePair_Orientation: bool, theRangeOnSurface1: StepGeom_RectangularTrimmedSurface, theRangeOnSurface2: StepGeom_RectangularTrimmedSurface, hasLowerLimitActualRotation: bool, theLowerLimitActualRotation: float, hasUpperLimitActualRotation: bool, theUpperLimitActualRotation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theSurfacePair_Surface1: StepGeom_Surface, + theSurfacePair_Surface2: StepGeom_Surface, + theSurfacePair_Orientation: bool, + theRangeOnSurface1: StepGeom_RectangularTrimmedSurface, + theRangeOnSurface2: StepGeom_RectangularTrimmedSurface, + hasLowerLimitActualRotation: bool, + theLowerLimitActualRotation: float, + hasUpperLimitActualRotation: bool, + theUpperLimitActualRotation: float, + ) -> None: ... def LowerLimitActualRotation(self) -> float: ... def RangeOnSurface1(self) -> StepGeom_RectangularTrimmedSurface: ... def RangeOnSurface2(self) -> StepGeom_RectangularTrimmedSurface: ... - def SetLowerLimitActualRotation(self, theLowerLimitActualRotation: float) -> None: ... - def SetRangeOnSurface1(self, theRangeOnSurface1: StepGeom_RectangularTrimmedSurface) -> None: ... - def SetRangeOnSurface2(self, theRangeOnSurface2: StepGeom_RectangularTrimmedSurface) -> None: ... - def SetUpperLimitActualRotation(self, theUpperLimitActualRotation: float) -> None: ... + def SetLowerLimitActualRotation( + self, theLowerLimitActualRotation: float + ) -> None: ... + def SetRangeOnSurface1( + self, theRangeOnSurface1: StepGeom_RectangularTrimmedSurface + ) -> None: ... + def SetRangeOnSurface2( + self, theRangeOnSurface2: StepGeom_RectangularTrimmedSurface + ) -> None: ... + def SetUpperLimitActualRotation( + self, theUpperLimitActualRotation: float + ) -> None: ... def UpperLimitActualRotation(self) -> float: ... class StepKinematics_UniversalPairWithRange(StepKinematics_UniversalPair): @@ -695,17 +1500,45 @@ class StepKinematics_UniversalPairWithRange(StepKinematics_UniversalPair): def HasLowerLimitSecondRotation(self) -> bool: ... def HasUpperLimitFirstRotation(self) -> bool: ... def HasUpperLimitSecondRotation(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItemDefinedTransformation_Name: TCollection_HAsciiString, hasItemDefinedTransformation_Description: bool, theItemDefinedTransformation_Description: TCollection_HAsciiString, theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, theKinematicPair_Joint: StepKinematics_KinematicJoint, theLowOrderKinematicPair_TX: bool, theLowOrderKinematicPair_TY: bool, theLowOrderKinematicPair_TZ: bool, theLowOrderKinematicPair_RX: bool, theLowOrderKinematicPair_RY: bool, theLowOrderKinematicPair_RZ: bool, hasUniversalPair_InputSkewAngle: bool, theUniversalPair_InputSkewAngle: float, hasLowerLimitFirstRotation: bool, theLowerLimitFirstRotation: float, hasUpperLimitFirstRotation: bool, theUpperLimitFirstRotation: float, hasLowerLimitSecondRotation: bool, theLowerLimitSecondRotation: float, hasUpperLimitSecondRotation: bool, theUpperLimitSecondRotation: float) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItemDefinedTransformation_Name: TCollection_HAsciiString, + hasItemDefinedTransformation_Description: bool, + theItemDefinedTransformation_Description: TCollection_HAsciiString, + theItemDefinedTransformation_TransformItem1: StepRepr_RepresentationItem, + theItemDefinedTransformation_TransformItem2: StepRepr_RepresentationItem, + theKinematicPair_Joint: StepKinematics_KinematicJoint, + theLowOrderKinematicPair_TX: bool, + theLowOrderKinematicPair_TY: bool, + theLowOrderKinematicPair_TZ: bool, + theLowOrderKinematicPair_RX: bool, + theLowOrderKinematicPair_RY: bool, + theLowOrderKinematicPair_RZ: bool, + hasUniversalPair_InputSkewAngle: bool, + theUniversalPair_InputSkewAngle: float, + hasLowerLimitFirstRotation: bool, + theLowerLimitFirstRotation: float, + hasUpperLimitFirstRotation: bool, + theUpperLimitFirstRotation: float, + hasLowerLimitSecondRotation: bool, + theLowerLimitSecondRotation: float, + hasUpperLimitSecondRotation: bool, + theUpperLimitSecondRotation: float, + ) -> None: ... def LowerLimitFirstRotation(self) -> float: ... def LowerLimitSecondRotation(self) -> float: ... def SetLowerLimitFirstRotation(self, theLowerLimitFirstRotation: float) -> None: ... - def SetLowerLimitSecondRotation(self, theLowerLimitSecondRotation: float) -> None: ... + def SetLowerLimitSecondRotation( + self, theLowerLimitSecondRotation: float + ) -> None: ... def SetUpperLimitFirstRotation(self, theUpperLimitFirstRotation: float) -> None: ... - def SetUpperLimitSecondRotation(self, theUpperLimitSecondRotation: float) -> None: ... + def SetUpperLimitSecondRotation( + self, theUpperLimitSecondRotation: float + ) -> None: ... def UpperLimitFirstRotation(self) -> float: ... def UpperLimitSecondRotation(self) -> float: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepRepr.pyi b/src/SWIG_files/wrapper/StepRepr.pyi index 6ab572c6a..bca127d83 100644 --- a/src/SWIG_files/wrapper/StepRepr.pyi +++ b/src/SWIG_files/wrapper/StepRepr.pyi @@ -7,7 +7,6 @@ from OCC.Core.TCollection import * from OCC.Core.StepData import * from OCC.Core.StepBasic import * - class StepRepr_Array1OfMaterialPropertyRepresentation: @overload def __init__(self) -> None: ... @@ -105,40 +104,58 @@ class StepRepr_Array1OfShapeAspect: def SetValue(self, theIndex: int, theValue: False) -> None: ... class StepRepr_SequenceOfMaterialPropertyRepresentation: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class StepRepr_SequenceOfRepresentationItem: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class StepRepr_SequenceOfRepresentationItem: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class StepRepr_AssemblyComponentUsageSubstitute(Standard_Transient): def __init__(self) -> None: ... def Base(self) -> StepRepr_AssemblyComponentUsage: ... def Definition(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aDef: TCollection_HAsciiString, aBase: StepRepr_AssemblyComponentUsage, aSubs: StepRepr_AssemblyComponentUsage) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDef: TCollection_HAsciiString, + aBase: StepRepr_AssemblyComponentUsage, + aSubs: StepRepr_AssemblyComponentUsage, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetBase(self, aBase: StepRepr_AssemblyComponentUsage) -> None: ... def SetDefinition(self, aDef: TCollection_HAsciiString) -> None: ... @@ -152,7 +169,9 @@ class StepRepr_CharacterizedDefinition(StepData_SelectType): def CharacterizedObject(self) -> StepBasic_CharacterizedObject: ... def DocumentFile(self) -> StepBasic_DocumentFile: ... def ProductDefinition(self) -> StepBasic_ProductDefinition: ... - def ProductDefinitionRelationship(self) -> StepBasic_ProductDefinitionRelationship: ... + def ProductDefinitionRelationship( + self, + ) -> StepBasic_ProductDefinitionRelationship: ... def ProductDefinitionShape(self) -> StepRepr_ProductDefinitionShape: ... def ShapeAspect(self) -> StepRepr_ShapeAspect: ... def ShapeAspectRelationship(self) -> StepRepr_ShapeAspectRelationship: ... @@ -161,7 +180,11 @@ class StepRepr_ConfigurationDesign(Standard_Transient): def __init__(self) -> None: ... def Configuration(self) -> StepRepr_ConfigurationItem: ... def Design(self) -> StepRepr_ConfigurationDesignItem: ... - def Init(self, aConfiguration: StepRepr_ConfigurationItem, aDesign: StepRepr_ConfigurationDesignItem) -> None: ... + def Init( + self, + aConfiguration: StepRepr_ConfigurationItem, + aDesign: StepRepr_ConfigurationDesignItem, + ) -> None: ... def SetConfiguration(self, Configuration: StepRepr_ConfigurationItem) -> None: ... def SetDesign(self, Design: StepRepr_ConfigurationDesignItem) -> None: ... @@ -174,7 +197,12 @@ class StepRepr_ConfigurationDesignItem(StepData_SelectType): class StepRepr_ConfigurationEffectivity(StepBasic_ProductDefinitionEffectivity): def __init__(self) -> None: ... def Configuration(self) -> StepRepr_ConfigurationDesign: ... - def Init(self, aEffectivity_Id: TCollection_HAsciiString, aProductDefinitionEffectivity_Usage: StepBasic_ProductDefinitionRelationship, aConfiguration: StepRepr_ConfigurationDesign) -> None: ... + def Init( + self, + aEffectivity_Id: TCollection_HAsciiString, + aProductDefinitionEffectivity_Usage: StepBasic_ProductDefinitionRelationship, + aConfiguration: StepRepr_ConfigurationDesign, + ) -> None: ... def SetConfiguration(self, Configuration: StepRepr_ConfigurationDesign) -> None: ... class StepRepr_ConfigurationItem(Standard_Transient): @@ -183,7 +211,16 @@ class StepRepr_ConfigurationItem(Standard_Transient): def HasDescription(self) -> bool: ... def HasPurpose(self) -> bool: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aItemConcept: StepRepr_ProductConcept, hasPurpose: bool, aPurpose: TCollection_HAsciiString) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aItemConcept: StepRepr_ProductConcept, + hasPurpose: bool, + aPurpose: TCollection_HAsciiString, + ) -> None: ... def ItemConcept(self) -> StepRepr_ProductConcept: ... def Name(self) -> TCollection_HAsciiString: ... def Purpose(self) -> TCollection_HAsciiString: ... @@ -197,16 +234,25 @@ class StepRepr_DataEnvironment(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def Elements(self) -> StepRepr_HArray1OfPropertyDefinitionRepresentation: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aElements: StepRepr_HArray1OfPropertyDefinitionRepresentation) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aElements: StepRepr_HArray1OfPropertyDefinitionRepresentation, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... - def SetElements(self, Elements: StepRepr_HArray1OfPropertyDefinitionRepresentation) -> None: ... + def SetElements( + self, Elements: StepRepr_HArray1OfPropertyDefinitionRepresentation + ) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... class StepRepr_FunctionallyDefinedTransformation(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... @@ -215,7 +261,13 @@ class StepRepr_ItemDefinedTransformation(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aTransformItem1: StepRepr_RepresentationItem, aTransformItem2: StepRepr_RepresentationItem) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aTransformItem1: StepRepr_RepresentationItem, + aTransformItem2: StepRepr_RepresentationItem, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... @@ -226,23 +278,38 @@ class StepRepr_ItemDefinedTransformation(Standard_Transient): class StepRepr_MaterialDesignation(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aOfDefinition: StepRepr_CharacterizedDefinition) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aOfDefinition: StepRepr_CharacterizedDefinition, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def OfDefinition(self) -> StepRepr_CharacterizedDefinition: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... - def SetOfDefinition(self, aOfDefinition: StepRepr_CharacterizedDefinition) -> None: ... + def SetOfDefinition( + self, aOfDefinition: StepRepr_CharacterizedDefinition + ) -> None: ... class StepRepr_ProductConcept(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, aId: TCollection_HAsciiString, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aMarketContext: StepBasic_ProductConceptContext) -> None: ... + def Init( + self, + aId: TCollection_HAsciiString, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aMarketContext: StepBasic_ProductConceptContext, + ) -> None: ... def MarketContext(self) -> StepBasic_ProductConceptContext: ... def Name(self) -> TCollection_HAsciiString: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetId(self, Id: TCollection_HAsciiString) -> None: ... - def SetMarketContext(self, MarketContext: StepBasic_ProductConceptContext) -> None: ... + def SetMarketContext( + self, MarketContext: StepBasic_ProductConceptContext + ) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... class StepRepr_ProductDefinitionUsage(StepBasic_ProductDefinitionRelationship): @@ -253,7 +320,13 @@ class StepRepr_PropertyDefinition(Standard_Transient): def Definition(self) -> StepRepr_CharacterizedDefinition: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aDefinition: StepRepr_CharacterizedDefinition) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aDefinition: StepRepr_CharacterizedDefinition, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetDefinition(self, Definition: StepRepr_CharacterizedDefinition) -> None: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... @@ -262,32 +335,55 @@ class StepRepr_PropertyDefinition(Standard_Transient): class StepRepr_PropertyDefinitionRelationship(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aRelatingPropertyDefinition: StepRepr_PropertyDefinition, aRelatedPropertyDefinition: StepRepr_PropertyDefinition) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aRelatingPropertyDefinition: StepRepr_PropertyDefinition, + aRelatedPropertyDefinition: StepRepr_PropertyDefinition, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RelatedPropertyDefinition(self) -> StepRepr_PropertyDefinition: ... def RelatingPropertyDefinition(self) -> StepRepr_PropertyDefinition: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... - def SetRelatedPropertyDefinition(self, RelatedPropertyDefinition: StepRepr_PropertyDefinition) -> None: ... - def SetRelatingPropertyDefinition(self, RelatingPropertyDefinition: StepRepr_PropertyDefinition) -> None: ... + def SetRelatedPropertyDefinition( + self, RelatedPropertyDefinition: StepRepr_PropertyDefinition + ) -> None: ... + def SetRelatingPropertyDefinition( + self, RelatingPropertyDefinition: StepRepr_PropertyDefinition + ) -> None: ... class StepRepr_PropertyDefinitionRepresentation(Standard_Transient): def __init__(self) -> None: ... def Definition(self) -> StepRepr_RepresentedDefinition: ... - def Init(self, aDefinition: StepRepr_RepresentedDefinition, aUsedRepresentation: StepRepr_Representation) -> None: ... + def Init( + self, + aDefinition: StepRepr_RepresentedDefinition, + aUsedRepresentation: StepRepr_Representation, + ) -> None: ... def SetDefinition(self, Definition: StepRepr_RepresentedDefinition) -> None: ... - def SetUsedRepresentation(self, UsedRepresentation: StepRepr_Representation) -> None: ... + def SetUsedRepresentation( + self, UsedRepresentation: StepRepr_Representation + ) -> None: ... def UsedRepresentation(self) -> StepRepr_Representation: ... class StepRepr_Representation(Standard_Transient): def __init__(self) -> None: ... def ContextOfItems(self) -> StepRepr_RepresentationContext: ... - def Init(self, aName: TCollection_HAsciiString, aItems: StepRepr_HArray1OfRepresentationItem, aContextOfItems: StepRepr_RepresentationContext) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aItems: StepRepr_HArray1OfRepresentationItem, + aContextOfItems: StepRepr_RepresentationContext, + ) -> None: ... def Items(self) -> StepRepr_HArray1OfRepresentationItem: ... def ItemsValue(self, num: int) -> StepRepr_RepresentationItem: ... def Name(self) -> TCollection_HAsciiString: ... def NbItems(self) -> int: ... - def SetContextOfItems(self, aContextOfItems: StepRepr_RepresentationContext) -> None: ... + def SetContextOfItems( + self, aContextOfItems: StepRepr_RepresentationContext + ) -> None: ... def SetItems(self, aItems: StepRepr_HArray1OfRepresentationItem) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... @@ -295,15 +391,23 @@ class StepRepr_RepresentationContext(Standard_Transient): def __init__(self) -> None: ... def ContextIdentifier(self) -> TCollection_HAsciiString: ... def ContextType(self) -> TCollection_HAsciiString: ... - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString) -> None: ... - def SetContextIdentifier(self, aContextIdentifier: TCollection_HAsciiString) -> None: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + ) -> None: ... + def SetContextIdentifier( + self, aContextIdentifier: TCollection_HAsciiString + ) -> None: ... def SetContextType(self, aContextType: TCollection_HAsciiString) -> None: ... class StepRepr_RepresentationContextReference(Standard_Transient): def __init__(self) -> None: ... def ContextIdentifier(self) -> TCollection_HAsciiString: ... def Init(self, theContextIdentifier: TCollection_HAsciiString) -> None: ... - def SetContextIdentifier(self, theContextIdentifier: TCollection_HAsciiString) -> None: ... + def SetContextIdentifier( + self, theContextIdentifier: TCollection_HAsciiString + ) -> None: ... class StepRepr_RepresentationItem(Standard_Transient): def __init__(self) -> None: ... @@ -313,10 +417,16 @@ class StepRepr_RepresentationItem(Standard_Transient): class StepRepr_RepresentationMap(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aMappingOrigin: StepRepr_RepresentationItem, aMappedRepresentation: StepRepr_Representation) -> None: ... + def Init( + self, + aMappingOrigin: StepRepr_RepresentationItem, + aMappedRepresentation: StepRepr_Representation, + ) -> None: ... def MappedRepresentation(self) -> StepRepr_Representation: ... def MappingOrigin(self) -> StepRepr_RepresentationItem: ... - def SetMappedRepresentation(self, aMappedRepresentation: StepRepr_Representation) -> None: ... + def SetMappedRepresentation( + self, aMappedRepresentation: StepRepr_Representation + ) -> None: ... def SetMappingOrigin(self, aMappingOrigin: StepRepr_RepresentationItem) -> None: ... class StepRepr_RepresentationOrRepresentationReference(StepData_SelectType): @@ -329,15 +439,27 @@ class StepRepr_RepresentationReference(Standard_Transient): def __init__(self) -> None: ... def ContextOfItems(self) -> StepRepr_RepresentationContextReference: ... def Id(self) -> TCollection_HAsciiString: ... - def Init(self, theId: TCollection_HAsciiString, theContextOfItems: StepRepr_RepresentationContextReference) -> None: ... - def SetContextOfItems(self, theContextOfItems: StepRepr_RepresentationContextReference) -> None: ... + def Init( + self, + theId: TCollection_HAsciiString, + theContextOfItems: StepRepr_RepresentationContextReference, + ) -> None: ... + def SetContextOfItems( + self, theContextOfItems: StepRepr_RepresentationContextReference + ) -> None: ... def SetId(self, theId: TCollection_HAsciiString) -> None: ... class StepRepr_RepresentationRelationship(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aRep1: StepRepr_Representation, aRep2: StepRepr_Representation) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aRep1: StepRepr_Representation, + aRep2: StepRepr_Representation, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def Rep1(self) -> StepRepr_Representation: ... def Rep2(self) -> StepRepr_Representation: ... @@ -351,34 +473,55 @@ class StepRepr_RepresentedDefinition(StepData_SelectType): def CaseNum(self, ent: Standard_Transient) -> int: ... def GeneralProperty(self) -> StepBasic_GeneralProperty: ... def PropertyDefinition(self) -> StepRepr_PropertyDefinition: ... - def PropertyDefinitionRelationship(self) -> StepRepr_PropertyDefinitionRelationship: ... + def PropertyDefinitionRelationship( + self, + ) -> StepRepr_PropertyDefinitionRelationship: ... def ShapeAspect(self) -> StepRepr_ShapeAspect: ... def ShapeAspectRelationship(self) -> StepRepr_ShapeAspectRelationship: ... class StepRepr_ShapeAspect(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aOfShape: StepRepr_ProductDefinitionShape, aProductDefinitional: StepData_Logical) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aOfShape: StepRepr_ProductDefinitionShape, + aProductDefinitional: StepData_Logical, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def OfShape(self) -> StepRepr_ProductDefinitionShape: ... def ProductDefinitional(self) -> StepData_Logical: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... def SetOfShape(self, aOfShape: StepRepr_ProductDefinitionShape) -> None: ... - def SetProductDefinitional(self, aProductDefinitional: StepData_Logical) -> None: ... + def SetProductDefinitional( + self, aProductDefinitional: StepData_Logical + ) -> None: ... class StepRepr_ShapeAspectRelationship(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... def HasDescription(self) -> bool: ... - def Init(self, aName: TCollection_HAsciiString, hasDescription: bool, aDescription: TCollection_HAsciiString, aRelatingShapeAspect: StepRepr_ShapeAspect, aRelatedShapeAspect: StepRepr_ShapeAspect) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + hasDescription: bool, + aDescription: TCollection_HAsciiString, + aRelatingShapeAspect: StepRepr_ShapeAspect, + aRelatedShapeAspect: StepRepr_ShapeAspect, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def RelatedShapeAspect(self) -> StepRepr_ShapeAspect: ... def RelatingShapeAspect(self) -> StepRepr_ShapeAspect: ... def SetDescription(self, Description: TCollection_HAsciiString) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... - def SetRelatedShapeAspect(self, RelatedShapeAspect: StepRepr_ShapeAspect) -> None: ... - def SetRelatingShapeAspect(self, RelatingShapeAspect: StepRepr_ShapeAspect) -> None: ... + def SetRelatedShapeAspect( + self, RelatedShapeAspect: StepRepr_ShapeAspect + ) -> None: ... + def SetRelatingShapeAspect( + self, RelatingShapeAspect: StepRepr_ShapeAspect + ) -> None: ... class StepRepr_ShapeDefinition(StepData_SelectType): def __init__(self) -> None: ... @@ -393,18 +536,42 @@ class StepRepr_SuppliedPartRelationship(StepBasic_ProductDefinitionRelationship) class StepRepr_Transformation(StepData_SelectType): def __init__(self) -> None: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def FunctionallyDefinedTransformation(self) -> StepRepr_FunctionallyDefinedTransformation: ... + def FunctionallyDefinedTransformation( + self, + ) -> StepRepr_FunctionallyDefinedTransformation: ... def ItemDefinedTransformation(self) -> StepRepr_ItemDefinedTransformation: ... class StepRepr_AssemblyComponentUsage(StepRepr_ProductDefinitionUsage): def __init__(self) -> None: ... def HasReferenceDesignator(self) -> bool: ... @overload - def Init(self, aProductDefinitionRelationship_Id: TCollection_HAsciiString, aProductDefinitionRelationship_Name: TCollection_HAsciiString, hasProductDefinitionRelationship_Description: bool, aProductDefinitionRelationship_Description: TCollection_HAsciiString, aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinition, aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinition, hasReferenceDesignator: bool, aReferenceDesignator: TCollection_HAsciiString) -> None: ... + def Init( + self, + aProductDefinitionRelationship_Id: TCollection_HAsciiString, + aProductDefinitionRelationship_Name: TCollection_HAsciiString, + hasProductDefinitionRelationship_Description: bool, + aProductDefinitionRelationship_Description: TCollection_HAsciiString, + aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinition, + aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinition, + hasReferenceDesignator: bool, + aReferenceDesignator: TCollection_HAsciiString, + ) -> None: ... @overload - def Init(self, aProductDefinitionRelationship_Id: TCollection_HAsciiString, aProductDefinitionRelationship_Name: TCollection_HAsciiString, hasProductDefinitionRelationship_Description: bool, aProductDefinitionRelationship_Description: TCollection_HAsciiString, aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinitionOrReference, aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinitionOrReference, hasReferenceDesignator: bool, aReferenceDesignator: TCollection_HAsciiString) -> None: ... + def Init( + self, + aProductDefinitionRelationship_Id: TCollection_HAsciiString, + aProductDefinitionRelationship_Name: TCollection_HAsciiString, + hasProductDefinitionRelationship_Description: bool, + aProductDefinitionRelationship_Description: TCollection_HAsciiString, + aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinitionOrReference, + aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinitionOrReference, + hasReferenceDesignator: bool, + aReferenceDesignator: TCollection_HAsciiString, + ) -> None: ... def ReferenceDesignator(self) -> TCollection_HAsciiString: ... - def SetReferenceDesignator(self, ReferenceDesignator: TCollection_HAsciiString) -> None: ... + def SetReferenceDesignator( + self, ReferenceDesignator: TCollection_HAsciiString + ) -> None: ... class StepRepr_BooleanRepresentationItem(StepRepr_RepresentationItem): def __init__(self) -> None: ... @@ -415,7 +582,13 @@ class StepRepr_BooleanRepresentationItem(StepRepr_RepresentationItem): class StepRepr_CharacterizedRepresentation(StepRepr_Representation): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theItems: StepRepr_HArray1OfRepresentationItem, theContextOfItems: StepRepr_RepresentationContext) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theItems: StepRepr_HArray1OfRepresentationItem, + theContextOfItems: StepRepr_RepresentationContext, + ) -> None: ... def SetDescription(self, theDescription: TCollection_HAsciiString) -> None: ... class StepRepr_CompShAspAndDatumFeatAndShAsp(StepRepr_ShapeAspect): @@ -426,17 +599,27 @@ class StepRepr_CompositeShapeAspect(StepRepr_ShapeAspect): class StepRepr_CompoundRepresentationItem(StepRepr_RepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, item_element: StepRepr_HArray1OfRepresentationItem) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + item_element: StepRepr_HArray1OfRepresentationItem, + ) -> None: ... def ItemElement(self) -> StepRepr_HArray1OfRepresentationItem: ... def ItemElementValue(self, num: int) -> StepRepr_RepresentationItem: ... def NbItemElement(self) -> int: ... - def SetItemElement(self, item_element: StepRepr_HArray1OfRepresentationItem) -> None: ... - def SetItemElementValue(self, num: int, anelement: StepRepr_RepresentationItem) -> None: ... + def SetItemElement( + self, item_element: StepRepr_HArray1OfRepresentationItem + ) -> None: ... + def SetItemElementValue( + self, num: int, anelement: StepRepr_RepresentationItem + ) -> None: ... class StepRepr_ConstructiveGeometryRepresentation(StepRepr_Representation): def __init__(self) -> None: ... -class StepRepr_ConstructiveGeometryRepresentationRelationship(StepRepr_RepresentationRelationship): +class StepRepr_ConstructiveGeometryRepresentationRelationship( + StepRepr_RepresentationRelationship +): def __init__(self) -> None: ... class StepRepr_DefinitionalRepresentation(StepRepr_Representation): @@ -448,7 +631,9 @@ class StepRepr_DerivedShapeAspect(StepRepr_ShapeAspect): class StepRepr_DescriptiveRepresentationItem(StepRepr_RepresentationItem): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString + ) -> None: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... class StepRepr_ExternallyDefinedRepresentation(StepRepr_Representation): @@ -459,15 +644,27 @@ class StepRepr_FeatureForDatumTargetRelationship(StepRepr_ShapeAspectRelationshi class StepRepr_GlobalUncertaintyAssignedContext(StepRepr_RepresentationContext): def __init__(self) -> None: ... - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString, aUncertainty: StepBasic_HArray1OfUncertaintyMeasureWithUnit) -> None: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + aUncertainty: StepBasic_HArray1OfUncertaintyMeasureWithUnit, + ) -> None: ... def NbUncertainty(self) -> int: ... - def SetUncertainty(self, aUncertainty: StepBasic_HArray1OfUncertaintyMeasureWithUnit) -> None: ... + def SetUncertainty( + self, aUncertainty: StepBasic_HArray1OfUncertaintyMeasureWithUnit + ) -> None: ... def Uncertainty(self) -> StepBasic_HArray1OfUncertaintyMeasureWithUnit: ... def UncertaintyValue(self, num: int) -> StepBasic_UncertaintyMeasureWithUnit: ... class StepRepr_GlobalUnitAssignedContext(StepRepr_RepresentationContext): def __init__(self) -> None: ... - def Init(self, aContextIdentifier: TCollection_HAsciiString, aContextType: TCollection_HAsciiString, aUnits: StepBasic_HArray1OfNamedUnit) -> None: ... + def Init( + self, + aContextIdentifier: TCollection_HAsciiString, + aContextType: TCollection_HAsciiString, + aUnits: StepBasic_HArray1OfNamedUnit, + ) -> None: ... def NbUnits(self) -> int: ... def SetUnits(self, aUnits: StepBasic_HArray1OfNamedUnit) -> None: ... def Units(self) -> StepBasic_HArray1OfNamedUnit: ... @@ -482,19 +679,48 @@ class StepRepr_IntegerRepresentationItem(StepRepr_RepresentationItem): class StepRepr_MakeFromUsageOption(StepRepr_ProductDefinitionUsage): def __init__(self) -> None: ... @overload - def Init(self, aProductDefinitionRelationship_Id: TCollection_HAsciiString, aProductDefinitionRelationship_Name: TCollection_HAsciiString, hasProductDefinitionRelationship_Description: bool, aProductDefinitionRelationship_Description: TCollection_HAsciiString, aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinition, aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinition, aRanking: int, aRankingRationale: TCollection_HAsciiString, aQuantity: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aProductDefinitionRelationship_Id: TCollection_HAsciiString, + aProductDefinitionRelationship_Name: TCollection_HAsciiString, + hasProductDefinitionRelationship_Description: bool, + aProductDefinitionRelationship_Description: TCollection_HAsciiString, + aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinition, + aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinition, + aRanking: int, + aRankingRationale: TCollection_HAsciiString, + aQuantity: StepBasic_MeasureWithUnit, + ) -> None: ... @overload - def Init(self, aProductDefinitionRelationship_Id: TCollection_HAsciiString, aProductDefinitionRelationship_Name: TCollection_HAsciiString, hasProductDefinitionRelationship_Description: bool, aProductDefinitionRelationship_Description: TCollection_HAsciiString, aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinitionOrReference, aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinitionOrReference, aRanking: int, aRankingRationale: TCollection_HAsciiString, aQuantity: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aProductDefinitionRelationship_Id: TCollection_HAsciiString, + aProductDefinitionRelationship_Name: TCollection_HAsciiString, + hasProductDefinitionRelationship_Description: bool, + aProductDefinitionRelationship_Description: TCollection_HAsciiString, + aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinitionOrReference, + aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinitionOrReference, + aRanking: int, + aRankingRationale: TCollection_HAsciiString, + aQuantity: StepBasic_MeasureWithUnit, + ) -> None: ... def Quantity(self) -> StepBasic_MeasureWithUnit: ... def Ranking(self) -> int: ... def RankingRationale(self) -> TCollection_HAsciiString: ... def SetQuantity(self, Quantity: StepBasic_MeasureWithUnit) -> None: ... def SetRanking(self, Ranking: int) -> None: ... - def SetRankingRationale(self, RankingRationale: TCollection_HAsciiString) -> None: ... + def SetRankingRationale( + self, RankingRationale: TCollection_HAsciiString + ) -> None: ... class StepRepr_MappedItem(StepRepr_RepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aMappingSource: StepRepr_RepresentationMap, aMappingTarget: StepRepr_RepresentationItem) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aMappingSource: StepRepr_RepresentationMap, + aMappingTarget: StepRepr_RepresentationItem, + ) -> None: ... def MappingSource(self) -> StepRepr_RepresentationMap: ... def MappingTarget(self) -> StepRepr_RepresentationItem: ... def SetMappingSource(self, aMappingSource: StepRepr_RepresentationMap) -> None: ... @@ -503,19 +729,35 @@ class StepRepr_MappedItem(StepRepr_RepresentationItem): class StepRepr_MaterialProperty(StepRepr_PropertyDefinition): def __init__(self) -> None: ... -class StepRepr_MaterialPropertyRepresentation(StepRepr_PropertyDefinitionRepresentation): +class StepRepr_MaterialPropertyRepresentation( + StepRepr_PropertyDefinitionRepresentation +): def __init__(self) -> None: ... def DependentEnvironment(self) -> StepRepr_DataEnvironment: ... - def Init(self, aPropertyDefinitionRepresentation_Definition: StepRepr_RepresentedDefinition, aPropertyDefinitionRepresentation_UsedRepresentation: StepRepr_Representation, aDependentEnvironment: StepRepr_DataEnvironment) -> None: ... - def SetDependentEnvironment(self, DependentEnvironment: StepRepr_DataEnvironment) -> None: ... + def Init( + self, + aPropertyDefinitionRepresentation_Definition: StepRepr_RepresentedDefinition, + aPropertyDefinitionRepresentation_UsedRepresentation: StepRepr_Representation, + aDependentEnvironment: StepRepr_DataEnvironment, + ) -> None: ... + def SetDependentEnvironment( + self, DependentEnvironment: StepRepr_DataEnvironment + ) -> None: ... class StepRepr_MeasureRepresentationItem(StepRepr_RepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aValueComponent: StepBasic_MeasureValueMember, aUnitComponent: StepBasic_Unit) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aValueComponent: StepBasic_MeasureValueMember, + aUnitComponent: StepBasic_Unit, + ) -> None: ... def Measure(self) -> StepBasic_MeasureWithUnit: ... def SetMeasure(self, Measure: StepBasic_MeasureWithUnit) -> None: ... -class StepRepr_MechanicalDesignAndDraughtingRelationship(StepRepr_RepresentationRelationship): +class StepRepr_MechanicalDesignAndDraughtingRelationship( + StepRepr_RepresentationRelationship +): def __init__(self) -> None: ... class StepRepr_ParametricRepresentationContext(StepRepr_RepresentationContext): @@ -535,7 +777,9 @@ class StepRepr_ReprItemAndMeasureWithUnit(StepRepr_RepresentationItem): def GetMeasureRepresentationItem(self) -> StepRepr_MeasureRepresentationItem: ... def GetMeasureWithUnit(self) -> StepBasic_MeasureWithUnit: ... def GetRepresentationItem(self) -> StepRepr_RepresentationItem: ... - def Init(self, aMWU: StepBasic_MeasureWithUnit, aRI: StepRepr_RepresentationItem) -> None: ... + def Init( + self, aMWU: StepBasic_MeasureWithUnit, aRI: StepRepr_RepresentationItem + ) -> None: ... def SetMeasureWithUnit(self, aMWU: StepBasic_MeasureWithUnit) -> None: ... class StepRepr_ShapeAspectDerivingRelationship(StepRepr_ShapeAspectRelationship): @@ -550,13 +794,21 @@ class StepRepr_ShapeRepresentationRelationship(StepRepr_RepresentationRelationsh class StepRepr_StructuralResponseProperty(StepRepr_PropertyDefinition): def __init__(self) -> None: ... -class StepRepr_StructuralResponsePropertyDefinitionRepresentation(StepRepr_PropertyDefinitionRepresentation): +class StepRepr_StructuralResponsePropertyDefinitionRepresentation( + StepRepr_PropertyDefinitionRepresentation +): def __init__(self) -> None: ... class StepRepr_ValueRepresentationItem(StepRepr_RepresentationItem): def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theValueComponentMember: StepBasic_MeasureValueMember) -> None: ... - def SetValueComponentMember(self, theValueComponentMember: StepBasic_MeasureValueMember) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theValueComponentMember: StepBasic_MeasureValueMember, + ) -> None: ... + def SetValueComponentMember( + self, theValueComponentMember: StepBasic_MeasureValueMember + ) -> None: ... def ValueComponentMember(self) -> StepBasic_MeasureValueMember: ... class StepRepr_Apex(StepRepr_DerivedShapeAspect): @@ -565,7 +817,9 @@ class StepRepr_Apex(StepRepr_DerivedShapeAspect): class StepRepr_CentreOfSymmetry(StepRepr_DerivedShapeAspect): def __init__(self) -> None: ... -class StepRepr_CompGroupShAspAndCompShAspAndDatumFeatAndShAsp(StepRepr_CompShAspAndDatumFeatAndShAsp): +class StepRepr_CompGroupShAspAndCompShAspAndDatumFeatAndShAsp( + StepRepr_CompShAspAndDatumFeatAndShAsp +): def __init__(self) -> None: ... class StepRepr_CompositeGroupShapeAspect(StepRepr_CompositeShapeAspect): @@ -585,7 +839,14 @@ class StepRepr_NextAssemblyUsageOccurrence(StepRepr_AssemblyComponentUsage): class StepRepr_ParallelOffset(StepRepr_DerivedShapeAspect): def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theOfShape: StepRepr_ProductDefinitionShape, theProductDefinitional: StepData_Logical, theOffset: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theOfShape: StepRepr_ProductDefinitionShape, + theProductDefinitional: StepData_Logical, + theOffset: StepBasic_MeasureWithUnit, + ) -> None: ... def Offset(self) -> StepBasic_MeasureWithUnit: ... def SetOffset(self, theOffset: StepBasic_MeasureWithUnit) -> None: ... @@ -598,34 +859,95 @@ class StepRepr_PromissoryUsageOccurrence(StepRepr_AssemblyComponentUsage): class StepRepr_QuantifiedAssemblyComponentUsage(StepRepr_AssemblyComponentUsage): def __init__(self) -> None: ... @overload - def Init(self, aProductDefinitionRelationship_Id: TCollection_HAsciiString, aProductDefinitionRelationship_Name: TCollection_HAsciiString, hasProductDefinitionRelationship_Description: bool, aProductDefinitionRelationship_Description: TCollection_HAsciiString, aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinition, aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinition, hasAssemblyComponentUsage_ReferenceDesignator: bool, aAssemblyComponentUsage_ReferenceDesignator: TCollection_HAsciiString, aQuantity: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aProductDefinitionRelationship_Id: TCollection_HAsciiString, + aProductDefinitionRelationship_Name: TCollection_HAsciiString, + hasProductDefinitionRelationship_Description: bool, + aProductDefinitionRelationship_Description: TCollection_HAsciiString, + aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinition, + aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinition, + hasAssemblyComponentUsage_ReferenceDesignator: bool, + aAssemblyComponentUsage_ReferenceDesignator: TCollection_HAsciiString, + aQuantity: StepBasic_MeasureWithUnit, + ) -> None: ... @overload - def Init(self, aProductDefinitionRelationship_Id: TCollection_HAsciiString, aProductDefinitionRelationship_Name: TCollection_HAsciiString, hasProductDefinitionRelationship_Description: bool, aProductDefinitionRelationship_Description: TCollection_HAsciiString, aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinitionOrReference, aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinitionOrReference, hasAssemblyComponentUsage_ReferenceDesignator: bool, aAssemblyComponentUsage_ReferenceDesignator: TCollection_HAsciiString, aQuantity: StepBasic_MeasureWithUnit) -> None: ... + def Init( + self, + aProductDefinitionRelationship_Id: TCollection_HAsciiString, + aProductDefinitionRelationship_Name: TCollection_HAsciiString, + hasProductDefinitionRelationship_Description: bool, + aProductDefinitionRelationship_Description: TCollection_HAsciiString, + aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinitionOrReference, + aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinitionOrReference, + hasAssemblyComponentUsage_ReferenceDesignator: bool, + aAssemblyComponentUsage_ReferenceDesignator: TCollection_HAsciiString, + aQuantity: StepBasic_MeasureWithUnit, + ) -> None: ... def Quantity(self) -> StepBasic_MeasureWithUnit: ... def SetQuantity(self, Quantity: StepBasic_MeasureWithUnit) -> None: ... class StepRepr_ReprItemAndLengthMeasureWithUnit(StepRepr_ReprItemAndMeasureWithUnit): def __init__(self) -> None: ... def GetLengthMeasureWithUnit(self) -> StepBasic_LengthMeasureWithUnit: ... - def SetLengthMeasureWithUnit(self, aLMWU: StepBasic_LengthMeasureWithUnit) -> None: ... + def SetLengthMeasureWithUnit( + self, aLMWU: StepBasic_LengthMeasureWithUnit + ) -> None: ... -class StepRepr_ReprItemAndPlaneAngleMeasureWithUnit(StepRepr_ReprItemAndMeasureWithUnit): +class StepRepr_ReprItemAndPlaneAngleMeasureWithUnit( + StepRepr_ReprItemAndMeasureWithUnit +): def __init__(self) -> None: ... def GetPlaneAngleMeasureWithUnit(self) -> StepBasic_PlaneAngleMeasureWithUnit: ... - def SetPlaneAngleMeasureWithUnit(self, aLMWU: StepBasic_PlaneAngleMeasureWithUnit) -> None: ... - -class StepRepr_RepresentationRelationshipWithTransformation(StepRepr_ShapeRepresentationRelationship): - def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aRep1: StepRepr_Representation, aRep2: StepRepr_Representation, aTransf: StepRepr_Transformation) -> None: ... + def SetPlaneAngleMeasureWithUnit( + self, aLMWU: StepBasic_PlaneAngleMeasureWithUnit + ) -> None: ... + +class StepRepr_RepresentationRelationshipWithTransformation( + StepRepr_ShapeRepresentationRelationship +): + def __init__(self) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aRep1: StepRepr_Representation, + aRep2: StepRepr_Representation, + aTransf: StepRepr_Transformation, + ) -> None: ... def SetTransformationOperator(self, aTrans: StepRepr_Transformation) -> None: ... def TransformationOperator(self) -> StepRepr_Transformation: ... class StepRepr_SpecifiedHigherUsageOccurrence(StepRepr_AssemblyComponentUsage): def __init__(self) -> None: ... @overload - def Init(self, aProductDefinitionRelationship_Id: TCollection_HAsciiString, aProductDefinitionRelationship_Name: TCollection_HAsciiString, hasProductDefinitionRelationship_Description: bool, aProductDefinitionRelationship_Description: TCollection_HAsciiString, aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinition, aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinition, hasAssemblyComponentUsage_ReferenceDesignator: bool, aAssemblyComponentUsage_ReferenceDesignator: TCollection_HAsciiString, aUpperUsage: StepRepr_AssemblyComponentUsage, aNextUsage: StepRepr_NextAssemblyUsageOccurrence) -> None: ... + def Init( + self, + aProductDefinitionRelationship_Id: TCollection_HAsciiString, + aProductDefinitionRelationship_Name: TCollection_HAsciiString, + hasProductDefinitionRelationship_Description: bool, + aProductDefinitionRelationship_Description: TCollection_HAsciiString, + aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinition, + aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinition, + hasAssemblyComponentUsage_ReferenceDesignator: bool, + aAssemblyComponentUsage_ReferenceDesignator: TCollection_HAsciiString, + aUpperUsage: StepRepr_AssemblyComponentUsage, + aNextUsage: StepRepr_NextAssemblyUsageOccurrence, + ) -> None: ... @overload - def Init(self, aProductDefinitionRelationship_Id: TCollection_HAsciiString, aProductDefinitionRelationship_Name: TCollection_HAsciiString, hasProductDefinitionRelationship_Description: bool, aProductDefinitionRelationship_Description: TCollection_HAsciiString, aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinitionOrReference, aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinitionOrReference, hasAssemblyComponentUsage_ReferenceDesignator: bool, aAssemblyComponentUsage_ReferenceDesignator: TCollection_HAsciiString, aUpperUsage: StepRepr_AssemblyComponentUsage, aNextUsage: StepRepr_NextAssemblyUsageOccurrence) -> None: ... + def Init( + self, + aProductDefinitionRelationship_Id: TCollection_HAsciiString, + aProductDefinitionRelationship_Name: TCollection_HAsciiString, + hasProductDefinitionRelationship_Description: bool, + aProductDefinitionRelationship_Description: TCollection_HAsciiString, + aProductDefinitionRelationship_RelatingProductDefinition: StepBasic_ProductDefinitionOrReference, + aProductDefinitionRelationship_RelatedProductDefinition: StepBasic_ProductDefinitionOrReference, + hasAssemblyComponentUsage_ReferenceDesignator: bool, + aAssemblyComponentUsage_ReferenceDesignator: TCollection_HAsciiString, + aUpperUsage: StepRepr_AssemblyComponentUsage, + aNextUsage: StepRepr_NextAssemblyUsageOccurrence, + ) -> None: ... def NextUsage(self) -> StepRepr_NextAssemblyUsageOccurrence: ... def SetNextUsage(self, NextUsage: StepRepr_NextAssemblyUsageOccurrence) -> None: ... def SetUpperUsage(self, UpperUsage: StepRepr_AssemblyComponentUsage) -> None: ... @@ -643,39 +965,52 @@ class StepRepr_AllAroundShapeAspect(StepRepr_ContinuosShapeAspect): class StepRepr_BetweenShapeAspect(StepRepr_ContinuosShapeAspect): def __init__(self) -> None: ... -class StepRepr_ReprItemAndLengthMeasureWithUnitAndQRI(StepRepr_ReprItemAndMeasureWithUnitAndQRI): +class StepRepr_ReprItemAndLengthMeasureWithUnitAndQRI( + StepRepr_ReprItemAndMeasureWithUnitAndQRI +): def __init__(self) -> None: ... def GetLengthMeasureWithUnit(self) -> StepBasic_LengthMeasureWithUnit: ... - def SetLengthMeasureWithUnit(self, aLMWU: StepBasic_LengthMeasureWithUnit) -> None: ... + def SetLengthMeasureWithUnit( + self, aLMWU: StepBasic_LengthMeasureWithUnit + ) -> None: ... -class StepRepr_ReprItemAndPlaneAngleMeasureWithUnitAndQRI(StepRepr_ReprItemAndMeasureWithUnitAndQRI): +class StepRepr_ReprItemAndPlaneAngleMeasureWithUnitAndQRI( + StepRepr_ReprItemAndMeasureWithUnitAndQRI +): def __init__(self) -> None: ... def GetPlaneAngleMeasureWithUnit(self) -> StepBasic_PlaneAngleMeasureWithUnit: ... - def SetPlaneAngleMeasureWithUnit(self, aLMWU: StepBasic_PlaneAngleMeasureWithUnit) -> None: ... + def SetPlaneAngleMeasureWithUnit( + self, aLMWU: StepBasic_PlaneAngleMeasureWithUnit + ) -> None: ... -class StepRepr_ShapeRepresentationRelationshipWithTransformation(StepRepr_RepresentationRelationshipWithTransformation): +class StepRepr_ShapeRepresentationRelationshipWithTransformation( + StepRepr_RepresentationRelationshipWithTransformation +): def __init__(self) -> None: ... -#classnotwrapped +# classnotwrapped class StepRepr_ReprItemAndMeasureWithUnitAndQRI: ... # harray1 classes -class StepRepr_HArray1OfMaterialPropertyRepresentation(StepRepr_Array1OfMaterialPropertyRepresentation, Standard_Transient): +class StepRepr_HArray1OfMaterialPropertyRepresentation( + StepRepr_Array1OfMaterialPropertyRepresentation, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepRepr_Array1OfMaterialPropertyRepresentation: ... - -class StepRepr_HArray1OfPropertyDefinitionRepresentation(StepRepr_Array1OfPropertyDefinitionRepresentation, Standard_Transient): +class StepRepr_HArray1OfPropertyDefinitionRepresentation( + StepRepr_Array1OfPropertyDefinitionRepresentation, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepRepr_Array1OfPropertyDefinitionRepresentation: ... - -class StepRepr_HArray1OfRepresentationItem(StepRepr_Array1OfRepresentationItem, Standard_Transient): +class StepRepr_HArray1OfRepresentationItem( + StepRepr_Array1OfRepresentationItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepRepr_Array1OfRepresentationItem: ... - class StepRepr_HArray1OfShapeAspect(StepRepr_Array1OfShapeAspect, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepRepr_Array1OfShapeAspect: ... @@ -683,21 +1018,26 @@ class StepRepr_HArray1OfShapeAspect(StepRepr_Array1OfShapeAspect, Standard_Trans # harray2 classes # hsequence classes -class StepRepr_HSequenceOfMaterialPropertyRepresentation(StepRepr_SequenceOfMaterialPropertyRepresentation, Standard_Transient): +class StepRepr_HSequenceOfMaterialPropertyRepresentation( + StepRepr_SequenceOfMaterialPropertyRepresentation, Standard_Transient +): @overload def __init__(self) -> None: ... @overload - def __init__(self, other: StepRepr_SequenceOfMaterialPropertyRepresentation) -> None: ... + def __init__( + self, other: StepRepr_SequenceOfMaterialPropertyRepresentation + ) -> None: ... def Sequence(self) -> StepRepr_SequenceOfMaterialPropertyRepresentation: ... - def Append(self, theSequence: StepRepr_SequenceOfMaterialPropertyRepresentation) -> None: ... + def Append( + self, theSequence: StepRepr_SequenceOfMaterialPropertyRepresentation + ) -> None: ... - -class StepRepr_HSequenceOfRepresentationItem(StepRepr_SequenceOfRepresentationItem, Standard_Transient): +class StepRepr_HSequenceOfRepresentationItem( + StepRepr_SequenceOfRepresentationItem, Standard_Transient +): @overload def __init__(self) -> None: ... @overload def __init__(self, other: StepRepr_SequenceOfRepresentationItem) -> None: ... def Sequence(self) -> StepRepr_SequenceOfRepresentationItem: ... def Append(self, theSequence: StepRepr_SequenceOfRepresentationItem) -> None: ... - - diff --git a/src/SWIG_files/wrapper/StepShape.pyi b/src/SWIG_files/wrapper/StepShape.pyi index 77c81cbd7..9412810cc 100644 --- a/src/SWIG_files/wrapper/StepShape.pyi +++ b/src/SWIG_files/wrapper/StepShape.pyi @@ -9,7 +9,6 @@ from OCC.Core.StepRepr import * from OCC.Core.StepData import * from OCC.Core.StepBasic import * - class StepShape_Array1OfConnectedEdgeSet: @overload def __init__(self) -> None: ... @@ -152,7 +151,9 @@ class StepShape_Array1OfGeometricSetSelect: def First(self) -> StepShape_GeometricSetSelect: ... def Last(self) -> StepShape_GeometricSetSelect: ... def Value(self, theIndex: int) -> StepShape_GeometricSetSelect: ... - def SetValue(self, theIndex: int, theValue: StepShape_GeometricSetSelect) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepShape_GeometricSetSelect + ) -> None: ... class StepShape_Array1OfOrientedClosedShell: @overload @@ -208,7 +209,9 @@ class StepShape_Array1OfShapeDimensionRepresentationItem: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepShape_ShapeDimensionRepresentationItem: ... - def __setitem__(self, index: int, value: StepShape_ShapeDimensionRepresentationItem) -> None: ... + def __setitem__( + self, index: int, value: StepShape_ShapeDimensionRepresentationItem + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepShape_ShapeDimensionRepresentationItem]: ... def next(self) -> StepShape_ShapeDimensionRepresentationItem: ... @@ -224,7 +227,9 @@ class StepShape_Array1OfShapeDimensionRepresentationItem: def First(self) -> StepShape_ShapeDimensionRepresentationItem: ... def Last(self) -> StepShape_ShapeDimensionRepresentationItem: ... def Value(self, theIndex: int) -> StepShape_ShapeDimensionRepresentationItem: ... - def SetValue(self, theIndex: int, theValue: StepShape_ShapeDimensionRepresentationItem) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepShape_ShapeDimensionRepresentationItem + ) -> None: ... class StepShape_Array1OfShell: @overload @@ -294,7 +299,14 @@ StepShape_boUnion = StepShape_BooleanOperator.StepShape_boUnion class StepShape_Block(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement3d, aX: float, aY: float, aZ: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement3d, + aX: float, + aY: float, + aZ: float, + ) -> None: ... def Position(self) -> StepGeom_Axis2Placement3d: ... def SetPosition(self, aPosition: StepGeom_Axis2Placement3d) -> None: ... def SetX(self, aX: float) -> None: ... @@ -320,7 +332,13 @@ class StepShape_BooleanOperand: class StepShape_BooleanResult(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def FirstOperand(self) -> StepShape_BooleanOperand: ... - def Init(self, aName: TCollection_HAsciiString, aOperator: StepShape_BooleanOperator, aFirstOperand: StepShape_BooleanOperand, aSecondOperand: StepShape_BooleanOperand) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aOperator: StepShape_BooleanOperator, + aFirstOperand: StepShape_BooleanOperand, + aSecondOperand: StepShape_BooleanOperand, + ) -> None: ... def Operator(self) -> StepShape_BooleanOperator: ... def SecondOperand(self) -> StepShape_BooleanOperand: ... def SetFirstOperand(self, aFirstOperand: StepShape_BooleanOperand) -> None: ... @@ -330,7 +348,13 @@ class StepShape_BooleanResult(StepGeom_GeometricRepresentationItem): class StepShape_BoxDomain(Standard_Transient): def __init__(self) -> None: ... def Corner(self) -> StepGeom_CartesianPoint: ... - def Init(self, aCorner: StepGeom_CartesianPoint, aXlength: float, aYlength: float, aZlength: float) -> None: ... + def Init( + self, + aCorner: StepGeom_CartesianPoint, + aXlength: float, + aYlength: float, + aZlength: float, + ) -> None: ... def SetCorner(self, aCorner: StepGeom_CartesianPoint) -> None: ... def SetXlength(self, aXlength: float) -> None: ... def SetYlength(self, aYlength: float) -> None: ... @@ -344,11 +368,19 @@ class StepShape_ConnectedFaceShapeRepresentation(StepRepr_Representation): class StepShape_ContextDependentShapeRepresentation(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aRepRel: StepRepr_ShapeRepresentationRelationship, aProRel: StepRepr_ProductDefinitionShape) -> None: ... + def Init( + self, + aRepRel: StepRepr_ShapeRepresentationRelationship, + aProRel: StepRepr_ProductDefinitionShape, + ) -> None: ... def RepresentationRelation(self) -> StepRepr_ShapeRepresentationRelationship: ... def RepresentedProductRelation(self) -> StepRepr_ProductDefinitionShape: ... - def SetRepresentationRelation(self, aRepRel: StepRepr_ShapeRepresentationRelationship) -> None: ... - def SetRepresentedProductRelation(self, aProRel: StepRepr_ProductDefinitionShape) -> None: ... + def SetRepresentationRelation( + self, aRepRel: StepRepr_ShapeRepresentationRelationship + ) -> None: ... + def SetRepresentedProductRelation( + self, aProRel: StepRepr_ProductDefinitionShape + ) -> None: ... class StepShape_CsgPrimitive(StepData_SelectType): def __init__(self) -> None: ... @@ -369,7 +401,9 @@ class StepShape_CsgSelect: def SetTypeOfContent(self, aTypeOfContent: int) -> None: ... def TypeOfContent(self) -> int: ... -class StepShape_DefinitionalRepresentationAndShapeRepresentation(StepRepr_DefinitionalRepresentation): +class StepShape_DefinitionalRepresentationAndShapeRepresentation( + StepRepr_DefinitionalRepresentation +): def __init__(self) -> None: ... class StepShape_DimensionalCharacteristic(StepData_SelectType): @@ -381,10 +415,16 @@ class StepShape_DimensionalCharacteristic(StepData_SelectType): class StepShape_DimensionalCharacteristicRepresentation(Standard_Transient): def __init__(self) -> None: ... def Dimension(self) -> StepShape_DimensionalCharacteristic: ... - def Init(self, aDimension: StepShape_DimensionalCharacteristic, aRepresentation: StepShape_ShapeDimensionRepresentation) -> None: ... + def Init( + self, + aDimension: StepShape_DimensionalCharacteristic, + aRepresentation: StepShape_ShapeDimensionRepresentation, + ) -> None: ... def Representation(self) -> StepShape_ShapeDimensionRepresentation: ... def SetDimension(self, Dimension: StepShape_DimensionalCharacteristic) -> None: ... - def SetRepresentation(self, Representation: StepShape_ShapeDimensionRepresentation) -> None: ... + def SetRepresentation( + self, Representation: StepShape_ShapeDimensionRepresentation + ) -> None: ... class StepShape_DimensionalLocation(StepRepr_ShapeAspectRelationship): def __init__(self) -> None: ... @@ -392,7 +432,9 @@ class StepShape_DimensionalLocation(StepRepr_ShapeAspectRelationship): class StepShape_DimensionalSize(Standard_Transient): def __init__(self) -> None: ... def AppliesTo(self) -> StepRepr_ShapeAspect: ... - def Init(self, aAppliesTo: StepRepr_ShapeAspect, aName: TCollection_HAsciiString) -> None: ... + def Init( + self, aAppliesTo: StepRepr_ShapeAspect, aName: TCollection_HAsciiString + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetAppliesTo(self, AppliesTo: StepRepr_ShapeAspect) -> None: ... def SetName(self, Name: TCollection_HAsciiString) -> None: ... @@ -400,20 +442,34 @@ class StepShape_DimensionalSize(Standard_Transient): class StepShape_EdgeBasedWireframeModel(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def EbwmBoundary(self) -> StepShape_HArray1OfConnectedEdgeSet: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aEbwmBoundary: StepShape_HArray1OfConnectedEdgeSet) -> None: ... - def SetEbwmBoundary(self, EbwmBoundary: StepShape_HArray1OfConnectedEdgeSet) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aEbwmBoundary: StepShape_HArray1OfConnectedEdgeSet, + ) -> None: ... + def SetEbwmBoundary( + self, EbwmBoundary: StepShape_HArray1OfConnectedEdgeSet + ) -> None: ... class StepShape_FaceBasedSurfaceModel(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def FbsmFaces(self) -> StepShape_HArray1OfConnectedFaceSet: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFbsmFaces: StepShape_HArray1OfConnectedFaceSet) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFbsmFaces: StepShape_HArray1OfConnectedFaceSet, + ) -> None: ... def SetFbsmFaces(self, FbsmFaces: StepShape_HArray1OfConnectedFaceSet) -> None: ... class StepShape_GeometricSet(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def Elements(self) -> StepShape_HArray1OfGeometricSetSelect: ... def ElementsValue(self, num: int) -> StepShape_GeometricSetSelect: ... - def Init(self, aName: TCollection_HAsciiString, aElements: StepShape_HArray1OfGeometricSetSelect) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aElements: StepShape_HArray1OfGeometricSetSelect, + ) -> None: ... def NbElements(self) -> int: ... def SetElements(self, aElements: StepShape_HArray1OfGeometricSetSelect) -> None: ... @@ -428,7 +484,12 @@ class StepShape_HalfSpaceSolid(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def AgreementFlag(self) -> bool: ... def BaseSurface(self) -> StepGeom_Surface: ... - def Init(self, aName: TCollection_HAsciiString, aBaseSurface: StepGeom_Surface, aAgreementFlag: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBaseSurface: StepGeom_Surface, + aAgreementFlag: bool, + ) -> None: ... def SetAgreementFlag(self, aAgreementFlag: bool) -> None: ... def SetBaseSurface(self, aBaseSurface: StepGeom_Surface) -> None: ... @@ -436,7 +497,13 @@ class StepShape_LimitsAndFits(Standard_Transient): def __init__(self) -> None: ... def FormVariance(self) -> TCollection_HAsciiString: ... def Grade(self) -> TCollection_HAsciiString: ... - def Init(self, form_variance: TCollection_HAsciiString, zone_variance: TCollection_HAsciiString, grade: TCollection_HAsciiString, source: TCollection_HAsciiString) -> None: ... + def Init( + self, + form_variance: TCollection_HAsciiString, + zone_variance: TCollection_HAsciiString, + grade: TCollection_HAsciiString, + source: TCollection_HAsciiString, + ) -> None: ... def SetFormVariance(self, form_variance: TCollection_HAsciiString) -> None: ... def SetGrade(self, grade: TCollection_HAsciiString) -> None: ... def SetSource(self, source: TCollection_HAsciiString) -> None: ... @@ -447,7 +514,13 @@ class StepShape_LimitsAndFits(Standard_Transient): class StepShape_MeasureQualification(Standard_Transient): def __init__(self) -> None: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, name: TCollection_HAsciiString, description: TCollection_HAsciiString, qualified_measure: StepBasic_MeasureWithUnit, qualifiers: StepShape_HArray1OfValueQualifier) -> None: ... + def Init( + self, + name: TCollection_HAsciiString, + description: TCollection_HAsciiString, + qualified_measure: StepBasic_MeasureWithUnit, + qualifiers: StepShape_HArray1OfValueQualifier, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def NbQualifiers(self) -> int: ... def QualifiedMeasure(self) -> StepBasic_MeasureWithUnit: ... @@ -455,27 +528,47 @@ class StepShape_MeasureQualification(Standard_Transient): def QualifiersValue(self, num: int) -> StepShape_ValueQualifier: ... def SetDescription(self, description: TCollection_HAsciiString) -> None: ... def SetName(self, name: TCollection_HAsciiString) -> None: ... - def SetQualifiedMeasure(self, qualified_measure: StepBasic_MeasureWithUnit) -> None: ... + def SetQualifiedMeasure( + self, qualified_measure: StepBasic_MeasureWithUnit + ) -> None: ... def SetQualifiers(self, qualifiers: StepShape_HArray1OfValueQualifier) -> None: ... - def SetQualifiersValue(self, num: int, aqualifier: StepShape_ValueQualifier) -> None: ... - -class StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem(StepRepr_RepresentationItem): - def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aValueComponent: StepBasic_MeasureValueMember, aUnitComponent: StepBasic_Unit, qualifiers: StepShape_HArray1OfValueQualifier) -> None: ... + def SetQualifiersValue( + self, num: int, aqualifier: StepShape_ValueQualifier + ) -> None: ... + +class StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem( + StepRepr_RepresentationItem +): + def __init__(self) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aValueComponent: StepBasic_MeasureValueMember, + aUnitComponent: StepBasic_Unit, + qualifiers: StepShape_HArray1OfValueQualifier, + ) -> None: ... def Measure(self) -> StepBasic_MeasureWithUnit: ... def NbQualifiers(self) -> int: ... def Qualifiers(self) -> StepShape_HArray1OfValueQualifier: ... def QualifiersValue(self, num: int) -> StepShape_ValueQualifier: ... def SetMeasure(self, Measure: StepBasic_MeasureWithUnit) -> None: ... def SetQualifiers(self, qualifiers: StepShape_HArray1OfValueQualifier) -> None: ... - def SetQualifiersValue(self, num: int, aqualifier: StepShape_ValueQualifier) -> None: ... + def SetQualifiersValue( + self, num: int, aqualifier: StepShape_ValueQualifier + ) -> None: ... class StepShape_PlusMinusTolerance(Standard_Transient): def __init__(self) -> None: ... - def Init(self, range: StepShape_ToleranceMethodDefinition, toleranced_dimension: StepShape_DimensionalCharacteristic) -> None: ... + def Init( + self, + range: StepShape_ToleranceMethodDefinition, + toleranced_dimension: StepShape_DimensionalCharacteristic, + ) -> None: ... def Range(self) -> StepShape_ToleranceMethodDefinition: ... def SetRange(self, range: StepShape_ToleranceMethodDefinition) -> None: ... - def SetTolerancedDimension(self, toleranced_dimension: StepShape_DimensionalCharacteristic) -> None: ... + def SetTolerancedDimension( + self, toleranced_dimension: StepShape_DimensionalCharacteristic + ) -> None: ... def TolerancedDimension(self) -> StepShape_DimensionalCharacteristic: ... class StepShape_PrecisionQualifier(Standard_Transient): @@ -486,12 +579,18 @@ class StepShape_PrecisionQualifier(Standard_Transient): class StepShape_QualifiedRepresentationItem(StepRepr_RepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, qualifiers: StepShape_HArray1OfValueQualifier) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + qualifiers: StepShape_HArray1OfValueQualifier, + ) -> None: ... def NbQualifiers(self) -> int: ... def Qualifiers(self) -> StepShape_HArray1OfValueQualifier: ... def QualifiersValue(self, num: int) -> StepShape_ValueQualifier: ... def SetQualifiers(self, qualifiers: StepShape_HArray1OfValueQualifier) -> None: ... - def SetQualifiersValue(self, num: int, aqualifier: StepShape_ValueQualifier) -> None: ... + def SetQualifiersValue( + self, num: int, aqualifier: StepShape_ValueQualifier + ) -> None: ... class StepShape_ReversibleTopologyItem(StepData_SelectType): def __init__(self) -> None: ... @@ -505,7 +604,15 @@ class StepShape_ReversibleTopologyItem(StepData_SelectType): class StepShape_RightAngularWedge(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis2Placement3d, aX: float, aY: float, aZ: float, aLtx: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis2Placement3d, + aX: float, + aY: float, + aZ: float, + aLtx: float, + ) -> None: ... def Ltx(self) -> float: ... def Position(self) -> StepGeom_Axis2Placement3d: ... def SetLtx(self, aLtx: float) -> None: ... @@ -520,7 +627,14 @@ class StepShape_RightAngularWedge(StepGeom_GeometricRepresentationItem): class StepShape_RightCircularCone(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def Height(self) -> float: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis1Placement, aHeight: float, aRadius: float, aSemiAngle: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis1Placement, + aHeight: float, + aRadius: float, + aSemiAngle: float, + ) -> None: ... def Position(self) -> StepGeom_Axis1Placement: ... def Radius(self) -> float: ... def SemiAngle(self) -> float: ... @@ -532,21 +646,31 @@ class StepShape_RightCircularCone(StepGeom_GeometricRepresentationItem): class StepShape_RightCircularCylinder(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def Height(self) -> float: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis1Placement, aHeight: float, aRadius: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis1Placement, + aHeight: float, + aRadius: float, + ) -> None: ... def Position(self) -> StepGeom_Axis1Placement: ... def Radius(self) -> float: ... def SetHeight(self, aHeight: float) -> None: ... def SetPosition(self, aPosition: StepGeom_Axis1Placement) -> None: ... def SetRadius(self, aRadius: float) -> None: ... -class StepShape_ShapeDefinitionRepresentation(StepRepr_PropertyDefinitionRepresentation): +class StepShape_ShapeDefinitionRepresentation( + StepRepr_PropertyDefinitionRepresentation +): def __init__(self) -> None: ... class StepShape_ShapeDimensionRepresentationItem(StepData_SelectType): def __init__(self) -> None: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def CompoundRepresentationItem(self) -> StepRepr_CompoundRepresentationItem: ... - def DescriptiveRepresentationItem(self) -> StepRepr_DescriptiveRepresentationItem: ... + def DescriptiveRepresentationItem( + self, + ) -> StepRepr_DescriptiveRepresentationItem: ... def MeasureRepresentationItem(self) -> StepRepr_MeasureRepresentationItem: ... def Placement(self) -> StepGeom_Placement: ... @@ -561,7 +685,9 @@ class StepShape_Shell(StepData_SelectType): class StepShape_ShellBasedSurfaceModel(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aSbsmBoundary: StepShape_HArray1OfShell) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aSbsmBoundary: StepShape_HArray1OfShell + ) -> None: ... def NbSbsmBoundary(self) -> int: ... def SbsmBoundary(self) -> StepShape_HArray1OfShell: ... def SbsmBoundaryValue(self, num: int) -> StepShape_Shell: ... @@ -573,7 +699,9 @@ class StepShape_SolidModel(StepGeom_GeometricRepresentationItem): class StepShape_Sphere(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def Centre(self) -> StepGeom_Point: ... - def Init(self, aName: TCollection_HAsciiString, aRadius: float, aCentre: StepGeom_Point) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aRadius: float, aCentre: StepGeom_Point + ) -> None: ... def Radius(self) -> float: ... def SetCentre(self, aCentre: StepGeom_Point) -> None: ... def SetRadius(self, aRadius: float) -> None: ... @@ -591,7 +719,9 @@ class StepShape_ToleranceMethodDefinition(StepData_SelectType): class StepShape_ToleranceValue(Standard_Transient): def __init__(self) -> None: ... - def Init(self, lower_bound: Standard_Transient, upper_bound: Standard_Transient) -> None: ... + def Init( + self, lower_bound: Standard_Transient, upper_bound: Standard_Transient + ) -> None: ... def LowerBound(self) -> Standard_Transient: ... def SetLowerBound(self, lower_bound: Standard_Transient) -> None: ... def SetUpperBound(self, upper_bound: Standard_Transient) -> None: ... @@ -602,7 +732,13 @@ class StepShape_TopologicalRepresentationItem(StepRepr_RepresentationItem): class StepShape_Torus(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPosition: StepGeom_Axis1Placement, aMajorRadius: float, aMinorRadius: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPosition: StepGeom_Axis1Placement, + aMajorRadius: float, + aMinorRadius: float, + ) -> None: ... def MajorRadius(self) -> float: ... def MinorRadius(self) -> float: ... def Position(self) -> StepGeom_Axis1Placement: ... @@ -635,19 +771,38 @@ class StepShape_AdvancedBrepShapeRepresentation(StepShape_ShapeRepresentation): class StepShape_AngularLocation(StepShape_DimensionalLocation): def __init__(self) -> None: ... def AngleSelection(self) -> StepShape_AngleRelator: ... - def Init(self, aShapeAspectRelationship_Name: TCollection_HAsciiString, hasShapeAspectRelationship_Description: bool, aShapeAspectRelationship_Description: TCollection_HAsciiString, aShapeAspectRelationship_RelatingShapeAspect: StepRepr_ShapeAspect, aShapeAspectRelationship_RelatedShapeAspect: StepRepr_ShapeAspect, aAngleSelection: StepShape_AngleRelator) -> None: ... + def Init( + self, + aShapeAspectRelationship_Name: TCollection_HAsciiString, + hasShapeAspectRelationship_Description: bool, + aShapeAspectRelationship_Description: TCollection_HAsciiString, + aShapeAspectRelationship_RelatingShapeAspect: StepRepr_ShapeAspect, + aShapeAspectRelationship_RelatedShapeAspect: StepRepr_ShapeAspect, + aAngleSelection: StepShape_AngleRelator, + ) -> None: ... def SetAngleSelection(self, AngleSelection: StepShape_AngleRelator) -> None: ... class StepShape_AngularSize(StepShape_DimensionalSize): def __init__(self) -> None: ... def AngleSelection(self) -> StepShape_AngleRelator: ... - def Init(self, aDimensionalSize_AppliesTo: StepRepr_ShapeAspect, aDimensionalSize_Name: TCollection_HAsciiString, aAngleSelection: StepShape_AngleRelator) -> None: ... + def Init( + self, + aDimensionalSize_AppliesTo: StepRepr_ShapeAspect, + aDimensionalSize_Name: TCollection_HAsciiString, + aAngleSelection: StepShape_AngleRelator, + ) -> None: ... def SetAngleSelection(self, AngleSelection: StepShape_AngleRelator) -> None: ... class StepShape_BoxedHalfSpace(StepShape_HalfSpaceSolid): def __init__(self) -> None: ... def Enclosure(self) -> StepShape_BoxDomain: ... - def Init(self, aName: TCollection_HAsciiString, aBaseSurface: StepGeom_Surface, aAgreementFlag: bool, aEnclosure: StepShape_BoxDomain) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBaseSurface: StepGeom_Surface, + aAgreementFlag: bool, + aEnclosure: StepShape_BoxDomain, + ) -> None: ... def SetEnclosure(self, aEnclosure: StepShape_BoxDomain) -> None: ... class StepShape_CompoundShapeRepresentation(StepShape_ShapeRepresentation): @@ -656,14 +811,20 @@ class StepShape_CompoundShapeRepresentation(StepShape_ShapeRepresentation): class StepShape_ConnectedEdgeSet(StepShape_TopologicalRepresentationItem): def __init__(self) -> None: ... def CesEdges(self) -> StepShape_HArray1OfEdge: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aCesEdges: StepShape_HArray1OfEdge) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aCesEdges: StepShape_HArray1OfEdge, + ) -> None: ... def SetCesEdges(self, CesEdges: StepShape_HArray1OfEdge) -> None: ... class StepShape_ConnectedFaceSet(StepShape_TopologicalRepresentationItem): def __init__(self) -> None: ... def CfsFaces(self) -> StepShape_HArray1OfFace: ... def CfsFacesValue(self, num: int) -> StepShape_Face: ... - def Init(self, aName: TCollection_HAsciiString, aCfsFaces: StepShape_HArray1OfFace) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aCfsFaces: StepShape_HArray1OfFace + ) -> None: ... def NbCfsFaces(self) -> int: ... def SetCfsFaces(self, aCfsFaces: StepShape_HArray1OfFace) -> None: ... @@ -672,19 +833,36 @@ class StepShape_CsgShapeRepresentation(StepShape_ShapeRepresentation): class StepShape_CsgSolid(StepShape_SolidModel): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aTreeRootExpression: StepShape_CsgSelect) -> None: ... - def SetTreeRootExpression(self, aTreeRootExpression: StepShape_CsgSelect) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aTreeRootExpression: StepShape_CsgSelect + ) -> None: ... + def SetTreeRootExpression( + self, aTreeRootExpression: StepShape_CsgSelect + ) -> None: ... def TreeRootExpression(self) -> StepShape_CsgSelect: ... class StepShape_DimensionalLocationWithPath(StepShape_DimensionalLocation): def __init__(self) -> None: ... - def Init(self, aShapeAspectRelationship_Name: TCollection_HAsciiString, hasShapeAspectRelationship_Description: bool, aShapeAspectRelationship_Description: TCollection_HAsciiString, aShapeAspectRelationship_RelatingShapeAspect: StepRepr_ShapeAspect, aShapeAspectRelationship_RelatedShapeAspect: StepRepr_ShapeAspect, aPath: StepRepr_ShapeAspect) -> None: ... + def Init( + self, + aShapeAspectRelationship_Name: TCollection_HAsciiString, + hasShapeAspectRelationship_Description: bool, + aShapeAspectRelationship_Description: TCollection_HAsciiString, + aShapeAspectRelationship_RelatingShapeAspect: StepRepr_ShapeAspect, + aShapeAspectRelationship_RelatedShapeAspect: StepRepr_ShapeAspect, + aPath: StepRepr_ShapeAspect, + ) -> None: ... def Path(self) -> StepRepr_ShapeAspect: ... def SetPath(self, Path: StepRepr_ShapeAspect) -> None: ... class StepShape_DimensionalSizeWithPath(StepShape_DimensionalSize): def __init__(self) -> None: ... - def Init(self, aDimensionalSize_AppliesTo: StepRepr_ShapeAspect, aDimensionalSize_Name: TCollection_HAsciiString, aPath: StepRepr_ShapeAspect) -> None: ... + def Init( + self, + aDimensionalSize_AppliesTo: StepRepr_ShapeAspect, + aDimensionalSize_Name: TCollection_HAsciiString, + aPath: StepRepr_ShapeAspect, + ) -> None: ... def Path(self) -> StepRepr_ShapeAspect: ... def SetPath(self, Path: StepRepr_ShapeAspect) -> None: ... @@ -695,7 +873,12 @@ class StepShape_Edge(StepShape_TopologicalRepresentationItem): def __init__(self) -> None: ... def EdgeEnd(self) -> StepShape_Vertex: ... def EdgeStart(self) -> StepShape_Vertex: ... - def Init(self, aName: TCollection_HAsciiString, aEdgeStart: StepShape_Vertex, aEdgeEnd: StepShape_Vertex) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aEdgeStart: StepShape_Vertex, + aEdgeEnd: StepShape_Vertex, + ) -> None: ... def SetEdgeEnd(self, aEdgeEnd: StepShape_Vertex) -> None: ... def SetEdgeStart(self, aEdgeStart: StepShape_Vertex) -> None: ... @@ -706,14 +889,21 @@ class StepShape_Face(StepShape_TopologicalRepresentationItem): def __init__(self) -> None: ... def Bounds(self) -> StepShape_HArray1OfFaceBound: ... def BoundsValue(self, num: int) -> StepShape_FaceBound: ... - def Init(self, aName: TCollection_HAsciiString, aBounds: StepShape_HArray1OfFaceBound) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aBounds: StepShape_HArray1OfFaceBound + ) -> None: ... def NbBounds(self) -> int: ... def SetBounds(self, aBounds: StepShape_HArray1OfFaceBound) -> None: ... class StepShape_FaceBound(StepShape_TopologicalRepresentationItem): def __init__(self) -> None: ... def Bound(self) -> StepShape_Loop: ... - def Init(self, aName: TCollection_HAsciiString, aBound: StepShape_Loop, aOrientation: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBound: StepShape_Loop, + aOrientation: bool, + ) -> None: ... def Orientation(self) -> bool: ... def SetBound(self, aBound: StepShape_Loop) -> None: ... def SetOrientation(self, aOrientation: bool) -> None: ... @@ -724,10 +914,14 @@ class StepShape_FacetedBrepShapeRepresentation(StepShape_ShapeRepresentation): class StepShape_GeometricCurveSet(StepShape_GeometricSet): def __init__(self) -> None: ... -class StepShape_GeometricallyBoundedSurfaceShapeRepresentation(StepShape_ShapeRepresentation): +class StepShape_GeometricallyBoundedSurfaceShapeRepresentation( + StepShape_ShapeRepresentation +): def __init__(self) -> None: ... -class StepShape_GeometricallyBoundedWireframeShapeRepresentation(StepShape_ShapeRepresentation): +class StepShape_GeometricallyBoundedWireframeShapeRepresentation( + StepShape_ShapeRepresentation +): def __init__(self) -> None: ... class StepShape_Loop(StepShape_TopologicalRepresentationItem): @@ -738,9 +932,18 @@ class StepShape_LoopAndPath(StepShape_TopologicalRepresentationItem): def EdgeList(self) -> StepShape_HArray1OfOrientedEdge: ... def EdgeListValue(self, num: int) -> StepShape_OrientedEdge: ... @overload - def Init(self, aName: TCollection_HAsciiString, aLoop: StepShape_Loop, aPath: StepShape_Path) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aLoop: StepShape_Loop, + aPath: StepShape_Path, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aEdgeList: StepShape_HArray1OfOrientedEdge) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aEdgeList: StepShape_HArray1OfOrientedEdge, + ) -> None: ... def Loop(self) -> StepShape_Loop: ... def NbEdgeList(self) -> int: ... def Path(self) -> StepShape_Path: ... @@ -751,9 +954,13 @@ class StepShape_LoopAndPath(StepShape_TopologicalRepresentationItem): class StepShape_ManifoldSolidBrep(StepShape_SolidModel): def __init__(self) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aOuter: StepShape_ClosedShell) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aOuter: StepShape_ClosedShell + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aOuter: StepShape_ConnectedFaceSet) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aOuter: StepShape_ConnectedFaceSet + ) -> None: ... def Outer(self) -> StepShape_ConnectedFaceSet: ... def SetOuter(self, aOuter: StepShape_ConnectedFaceSet) -> None: ... @@ -767,7 +974,11 @@ class StepShape_Path(StepShape_TopologicalRepresentationItem): def __init__(self) -> None: ... def EdgeList(self) -> StepShape_HArray1OfOrientedEdge: ... def EdgeListValue(self, num: int) -> StepShape_OrientedEdge: ... - def Init(self, aName: TCollection_HAsciiString, aEdgeList: StepShape_HArray1OfOrientedEdge) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aEdgeList: StepShape_HArray1OfOrientedEdge, + ) -> None: ... def NbEdgeList(self) -> int: ... def SetEdgeList(self, aEdgeList: StepShape_HArray1OfOrientedEdge) -> None: ... @@ -777,32 +988,55 @@ class StepShape_PointRepresentation(StepShape_ShapeRepresentation): class StepShape_ShapeDimensionRepresentation(StepShape_ShapeRepresentation): def __init__(self) -> None: ... @overload - def Init(self, theName: TCollection_HAsciiString, theItems: StepRepr_HArray1OfRepresentationItem, theContextOfItems: StepRepr_RepresentationContext) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theItems: StepRepr_HArray1OfRepresentationItem, + theContextOfItems: StepRepr_RepresentationContext, + ) -> None: ... @overload - def Init(self, theName: TCollection_HAsciiString, theItems: StepShape_HArray1OfShapeDimensionRepresentationItem, theContextOfItems: StepRepr_RepresentationContext) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theItems: StepShape_HArray1OfShapeDimensionRepresentationItem, + theContextOfItems: StepRepr_RepresentationContext, + ) -> None: ... def ItemsAP242(self) -> StepShape_HArray1OfShapeDimensionRepresentationItem: ... - def SetItemsAP242(self, theItems: StepShape_HArray1OfShapeDimensionRepresentationItem) -> None: ... + def SetItemsAP242( + self, theItems: StepShape_HArray1OfShapeDimensionRepresentationItem + ) -> None: ... class StepShape_ShapeRepresentationWithParameters(StepShape_ShapeRepresentation): def __init__(self) -> None: ... class StepShape_SolidReplica(StepShape_SolidModel): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aParentSolid: StepShape_SolidModel, aTransformation: StepGeom_CartesianTransformationOperator3d) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aParentSolid: StepShape_SolidModel, + aTransformation: StepGeom_CartesianTransformationOperator3d, + ) -> None: ... def ParentSolid(self) -> StepShape_SolidModel: ... def SetParentSolid(self, aParentSolid: StepShape_SolidModel) -> None: ... - def SetTransformation(self, aTransformation: StepGeom_CartesianTransformationOperator3d) -> None: ... + def SetTransformation( + self, aTransformation: StepGeom_CartesianTransformationOperator3d + ) -> None: ... def Transformation(self) -> StepGeom_CartesianTransformationOperator3d: ... class StepShape_SweptAreaSolid(StepShape_SolidModel): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aSweptArea: StepGeom_CurveBoundedSurface) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aSweptArea: StepGeom_CurveBoundedSurface + ) -> None: ... def SetSweptArea(self, aSweptArea: StepGeom_CurveBoundedSurface) -> None: ... def SweptArea(self) -> StepGeom_CurveBoundedSurface: ... class StepShape_SweptFaceSolid(StepShape_SolidModel): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aSweptArea: StepShape_FaceSurface) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aSweptArea: StepShape_FaceSurface + ) -> None: ... def SetSweptFace(self, aSweptArea: StepShape_FaceSurface) -> None: ... def SweptFace(self) -> StepShape_FaceSurface: ... @@ -814,7 +1048,12 @@ class StepShape_Vertex(StepShape_TopologicalRepresentationItem): class StepShape_BrepWithVoids(StepShape_ManifoldSolidBrep): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aOuter: StepShape_ClosedShell, aVoids: StepShape_HArray1OfOrientedClosedShell) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aOuter: StepShape_ClosedShell, + aVoids: StepShape_HArray1OfOrientedClosedShell, + ) -> None: ... def NbVoids(self) -> int: ... def SetVoids(self, aVoids: StepShape_HArray1OfOrientedClosedShell) -> None: ... def Voids(self) -> StepShape_HArray1OfOrientedClosedShell: ... @@ -825,14 +1064,26 @@ class StepShape_ClosedShell(StepShape_ConnectedFaceSet): class StepShape_ConnectedFaceSubSet(StepShape_ConnectedFaceSet): def __init__(self) -> None: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aConnectedFaceSet_CfsFaces: StepShape_HArray1OfFace, aParentFaceSet: StepShape_ConnectedFaceSet) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aConnectedFaceSet_CfsFaces: StepShape_HArray1OfFace, + aParentFaceSet: StepShape_ConnectedFaceSet, + ) -> None: ... def ParentFaceSet(self) -> StepShape_ConnectedFaceSet: ... def SetParentFaceSet(self, ParentFaceSet: StepShape_ConnectedFaceSet) -> None: ... class StepShape_EdgeCurve(StepShape_Edge): def __init__(self) -> None: ... def EdgeGeometry(self) -> StepGeom_Curve: ... - def Init(self, aName: TCollection_HAsciiString, aEdgeStart: StepShape_Vertex, aEdgeEnd: StepShape_Vertex, aEdgeGeometry: StepGeom_Curve, aSameSense: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aEdgeStart: StepShape_Vertex, + aEdgeEnd: StepShape_Vertex, + aEdgeGeometry: StepGeom_Curve, + aSameSense: bool, + ) -> None: ... def SameSense(self) -> bool: ... def SetEdgeGeometry(self, aEdgeGeometry: StepGeom_Curve) -> None: ... def SetSameSense(self, aSameSense: bool) -> None: ... @@ -841,7 +1092,11 @@ class StepShape_EdgeLoop(StepShape_Loop): def __init__(self) -> None: ... def EdgeList(self) -> StepShape_HArray1OfOrientedEdge: ... def EdgeListValue(self, num: int) -> StepShape_OrientedEdge: ... - def Init(self, aName: TCollection_HAsciiString, aEdgeList: StepShape_HArray1OfOrientedEdge) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aEdgeList: StepShape_HArray1OfOrientedEdge, + ) -> None: ... def NbEdgeList(self) -> int: ... def SetEdgeList(self, aEdgeList: StepShape_HArray1OfOrientedEdge) -> None: ... @@ -849,7 +1104,13 @@ class StepShape_ExtrudedAreaSolid(StepShape_SweptAreaSolid): def __init__(self) -> None: ... def Depth(self) -> float: ... def ExtrudedDirection(self) -> StepGeom_Direction: ... - def Init(self, aName: TCollection_HAsciiString, aSweptArea: StepGeom_CurveBoundedSurface, aExtrudedDirection: StepGeom_Direction, aDepth: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aSweptArea: StepGeom_CurveBoundedSurface, + aExtrudedDirection: StepGeom_Direction, + aDepth: float, + ) -> None: ... def SetDepth(self, aDepth: float) -> None: ... def SetExtrudedDirection(self, aExtrudedDirection: StepGeom_Direction) -> None: ... @@ -857,7 +1118,13 @@ class StepShape_ExtrudedFaceSolid(StepShape_SweptFaceSolid): def __init__(self) -> None: ... def Depth(self) -> float: ... def ExtrudedDirection(self) -> StepGeom_Direction: ... - def Init(self, aName: TCollection_HAsciiString, aSweptArea: StepShape_FaceSurface, aExtrudedDirection: StepGeom_Direction, aDepth: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aSweptArea: StepShape_FaceSurface, + aExtrudedDirection: StepGeom_Direction, + aDepth: float, + ) -> None: ... def SetDepth(self, aDepth: float) -> None: ... def SetExtrudedDirection(self, aExtrudedDirection: StepGeom_Direction) -> None: ... @@ -867,7 +1134,13 @@ class StepShape_FaceOuterBound(StepShape_FaceBound): class StepShape_FaceSurface(StepShape_Face): def __init__(self) -> None: ... def FaceGeometry(self) -> StepGeom_Surface: ... - def Init(self, aName: TCollection_HAsciiString, aBounds: StepShape_HArray1OfFaceBound, aFaceGeometry: StepGeom_Surface, aSameSense: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aBounds: StepShape_HArray1OfFaceBound, + aFaceGeometry: StepGeom_Surface, + aSameSense: bool, + ) -> None: ... def SameSense(self) -> bool: ... def SetFaceGeometry(self, aFaceGeometry: StepGeom_Surface) -> None: ... def SetSameSense(self, aSameSense: bool) -> None: ... @@ -880,9 +1153,20 @@ class StepShape_FacetedBrepAndBrepWithVoids(StepShape_ManifoldSolidBrep): def BrepWithVoids(self) -> StepShape_BrepWithVoids: ... def FacetedBrep(self) -> StepShape_FacetedBrep: ... @overload - def Init(self, aName: TCollection_HAsciiString, aOuter: StepShape_ClosedShell, aFacetedBrep: StepShape_FacetedBrep, aBrepWithVoids: StepShape_BrepWithVoids) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aOuter: StepShape_ClosedShell, + aFacetedBrep: StepShape_FacetedBrep, + aBrepWithVoids: StepShape_BrepWithVoids, + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aOuter: StepShape_ClosedShell, aVoids: StepShape_HArray1OfOrientedClosedShell) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aOuter: StepShape_ClosedShell, + aVoids: StepShape_HArray1OfOrientedClosedShell, + ) -> None: ... def NbVoids(self) -> int: ... def SetBrepWithVoids(self, aBrepWithVoids: StepShape_BrepWithVoids) -> None: ... def SetFacetedBrep(self, aFacetedBrep: StepShape_FacetedBrep) -> None: ... @@ -898,7 +1182,12 @@ class StepShape_OrientedEdge(StepShape_Edge): def EdgeElement(self) -> StepShape_Edge: ... def EdgeEnd(self) -> StepShape_Vertex: ... def EdgeStart(self) -> StepShape_Vertex: ... - def Init(self, aName: TCollection_HAsciiString, aEdgeElement: StepShape_Edge, aOrientation: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aEdgeElement: StepShape_Edge, + aOrientation: bool, + ) -> None: ... def Orientation(self) -> bool: ... def SetEdgeElement(self, aEdgeElement: StepShape_Edge) -> None: ... def SetEdgeEnd(self, aEdgeEnd: StepShape_Vertex) -> None: ... @@ -910,7 +1199,12 @@ class StepShape_OrientedFace(StepShape_Face): def Bounds(self) -> StepShape_HArray1OfFaceBound: ... def BoundsValue(self, num: int) -> StepShape_FaceBound: ... def FaceElement(self) -> StepShape_Face: ... - def Init(self, aName: TCollection_HAsciiString, aFaceElement: StepShape_Face, aOrientation: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aFaceElement: StepShape_Face, + aOrientation: bool, + ) -> None: ... def NbBounds(self) -> int: ... def Orientation(self) -> bool: ... def SetBounds(self, aBounds: StepShape_HArray1OfFaceBound) -> None: ... @@ -921,7 +1215,12 @@ class StepShape_OrientedPath(StepShape_Path): def __init__(self) -> None: ... def EdgeList(self) -> StepShape_HArray1OfOrientedEdge: ... def EdgeListValue(self, num: int) -> StepShape_OrientedEdge: ... - def Init(self, aName: TCollection_HAsciiString, aPathElement: StepShape_EdgeLoop, aOrientation: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPathElement: StepShape_EdgeLoop, + aOrientation: bool, + ) -> None: ... def NbEdgeList(self) -> int: ... def Orientation(self) -> bool: ... def PathElement(self) -> StepShape_EdgeLoop: ... @@ -931,7 +1230,11 @@ class StepShape_OrientedPath(StepShape_Path): class StepShape_PolyLoop(StepShape_Loop): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPolygon: StepGeom_HArray1OfCartesianPoint) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPolygon: StepGeom_HArray1OfCartesianPoint, + ) -> None: ... def NbPolygon(self) -> int: ... def Polygon(self) -> StepGeom_HArray1OfCartesianPoint: ... def PolygonValue(self, num: int) -> StepGeom_CartesianPoint: ... @@ -941,7 +1244,13 @@ class StepShape_RevolvedAreaSolid(StepShape_SweptAreaSolid): def __init__(self) -> None: ... def Angle(self) -> float: ... def Axis(self) -> StepGeom_Axis1Placement: ... - def Init(self, aName: TCollection_HAsciiString, aSweptArea: StepGeom_CurveBoundedSurface, aAxis: StepGeom_Axis1Placement, aAngle: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aSweptArea: StepGeom_CurveBoundedSurface, + aAxis: StepGeom_Axis1Placement, + aAngle: float, + ) -> None: ... def SetAngle(self, aAngle: float) -> None: ... def SetAxis(self, aAxis: StepGeom_Axis1Placement) -> None: ... @@ -950,33 +1259,56 @@ class StepShape_RevolvedFaceSolid(StepShape_SweptFaceSolid): def Angle(self) -> float: ... def Axis(self) -> StepGeom_Axis1Placement: ... @overload - def Init(self, aName: TCollection_HAsciiString, aSweptArea: StepShape_FaceSurface) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aSweptArea: StepShape_FaceSurface + ) -> None: ... @overload - def Init(self, aName: TCollection_HAsciiString, aSweptArea: StepShape_FaceSurface, aAxis: StepGeom_Axis1Placement, aAngle: float) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aSweptArea: StepShape_FaceSurface, + aAxis: StepGeom_Axis1Placement, + aAngle: float, + ) -> None: ... def SetAngle(self, aAngle: float) -> None: ... def SetAxis(self, aAxis: StepGeom_Axis1Placement) -> None: ... class StepShape_Subedge(StepShape_Edge): def __init__(self) -> None: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aEdge_EdgeStart: StepShape_Vertex, aEdge_EdgeEnd: StepShape_Vertex, aParentEdge: StepShape_Edge) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aEdge_EdgeStart: StepShape_Vertex, + aEdge_EdgeEnd: StepShape_Vertex, + aParentEdge: StepShape_Edge, + ) -> None: ... def ParentEdge(self) -> StepShape_Edge: ... def SetParentEdge(self, ParentEdge: StepShape_Edge) -> None: ... class StepShape_Subface(StepShape_Face): def __init__(self) -> None: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aFace_Bounds: StepShape_HArray1OfFaceBound, aParentFace: StepShape_Face) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aFace_Bounds: StepShape_HArray1OfFaceBound, + aParentFace: StepShape_Face, + ) -> None: ... def ParentFace(self) -> StepShape_Face: ... def SetParentFace(self, ParentFace: StepShape_Face) -> None: ... class StepShape_VertexLoop(StepShape_Loop): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aLoopVertex: StepShape_Vertex) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aLoopVertex: StepShape_Vertex + ) -> None: ... def LoopVertex(self) -> StepShape_Vertex: ... def SetLoopVertex(self, aLoopVertex: StepShape_Vertex) -> None: ... class StepShape_VertexPoint(StepShape_Vertex): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aVertexGeometry: StepGeom_Point) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aVertexGeometry: StepGeom_Point + ) -> None: ... def SetVertexGeometry(self, aVertexGeometry: StepGeom_Point) -> None: ... def VertexGeometry(self) -> StepGeom_Point: ... @@ -988,18 +1320,30 @@ class StepShape_OrientedClosedShell(StepShape_ClosedShell): def CfsFaces(self) -> StepShape_HArray1OfFace: ... def CfsFacesValue(self, num: int) -> StepShape_Face: ... def ClosedShellElement(self) -> StepShape_ClosedShell: ... - def Init(self, aName: TCollection_HAsciiString, aClosedShellElement: StepShape_ClosedShell, aOrientation: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aClosedShellElement: StepShape_ClosedShell, + aOrientation: bool, + ) -> None: ... def NbCfsFaces(self) -> int: ... def Orientation(self) -> bool: ... def SetCfsFaces(self, aCfsFaces: StepShape_HArray1OfFace) -> None: ... - def SetClosedShellElement(self, aClosedShellElement: StepShape_ClosedShell) -> None: ... + def SetClosedShellElement( + self, aClosedShellElement: StepShape_ClosedShell + ) -> None: ... def SetOrientation(self, aOrientation: bool) -> None: ... class StepShape_OrientedOpenShell(StepShape_OpenShell): def __init__(self) -> None: ... def CfsFaces(self) -> StepShape_HArray1OfFace: ... def CfsFacesValue(self, num: int) -> StepShape_Face: ... - def Init(self, aName: TCollection_HAsciiString, aOpenShellElement: StepShape_OpenShell, aOrientation: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aOpenShellElement: StepShape_OpenShell, + aOrientation: bool, + ) -> None: ... def NbCfsFaces(self) -> int: ... def OpenShellElement(self) -> StepShape_OpenShell: ... def Orientation(self) -> bool: ... @@ -1009,66 +1353,75 @@ class StepShape_OrientedOpenShell(StepShape_OpenShell): class StepShape_SeamEdge(StepShape_OrientedEdge): def __init__(self) -> None: ... - def Init(self, aRepresentationItem_Name: TCollection_HAsciiString, aOrientedEdge_EdgeElement: StepShape_Edge, aOrientedEdge_Orientation: bool, aPcurveReference: StepGeom_Pcurve) -> None: ... + def Init( + self, + aRepresentationItem_Name: TCollection_HAsciiString, + aOrientedEdge_EdgeElement: StepShape_Edge, + aOrientedEdge_Orientation: bool, + aPcurveReference: StepGeom_Pcurve, + ) -> None: ... def PcurveReference(self) -> StepGeom_Pcurve: ... def SetPcurveReference(self, PcurveReference: StepGeom_Pcurve) -> None: ... # harray1 classes -class StepShape_HArray1OfConnectedEdgeSet(StepShape_Array1OfConnectedEdgeSet, Standard_Transient): +class StepShape_HArray1OfConnectedEdgeSet( + StepShape_Array1OfConnectedEdgeSet, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfConnectedEdgeSet: ... - -class StepShape_HArray1OfConnectedFaceSet(StepShape_Array1OfConnectedFaceSet, Standard_Transient): +class StepShape_HArray1OfConnectedFaceSet( + StepShape_Array1OfConnectedFaceSet, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfConnectedFaceSet: ... - class StepShape_HArray1OfEdge(StepShape_Array1OfEdge, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfEdge: ... - class StepShape_HArray1OfFace(StepShape_Array1OfFace, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfFace: ... - class StepShape_HArray1OfFaceBound(StepShape_Array1OfFaceBound, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfFaceBound: ... - -class StepShape_HArray1OfGeometricSetSelect(StepShape_Array1OfGeometricSetSelect, Standard_Transient): +class StepShape_HArray1OfGeometricSetSelect( + StepShape_Array1OfGeometricSetSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfGeometricSetSelect: ... - -class StepShape_HArray1OfOrientedClosedShell(StepShape_Array1OfOrientedClosedShell, Standard_Transient): +class StepShape_HArray1OfOrientedClosedShell( + StepShape_Array1OfOrientedClosedShell, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfOrientedClosedShell: ... - -class StepShape_HArray1OfOrientedEdge(StepShape_Array1OfOrientedEdge, Standard_Transient): +class StepShape_HArray1OfOrientedEdge( + StepShape_Array1OfOrientedEdge, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfOrientedEdge: ... - -class StepShape_HArray1OfShapeDimensionRepresentationItem(StepShape_Array1OfShapeDimensionRepresentationItem, Standard_Transient): +class StepShape_HArray1OfShapeDimensionRepresentationItem( + StepShape_Array1OfShapeDimensionRepresentationItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfShapeDimensionRepresentationItem: ... - class StepShape_HArray1OfShell(StepShape_Array1OfShell, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfShell: ... - -class StepShape_HArray1OfValueQualifier(StepShape_Array1OfValueQualifier, Standard_Transient): +class StepShape_HArray1OfValueQualifier( + StepShape_Array1OfValueQualifier, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepShape_Array1OfValueQualifier: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepToGeom.pyi b/src/SWIG_files/wrapper/StepToGeom.pyi index 598e99202..d1aaa630a 100644 --- a/src/SWIG_files/wrapper/StepToGeom.pyi +++ b/src/SWIG_files/wrapper/StepToGeom.pyi @@ -12,108 +12,241 @@ from OCC.Core.StepKinematics import * from OCC.Core.StepRepr import * from OCC.Core.TColStd import * - class steptogeom: @staticmethod - def MakeAxis1Placement(SA: StepGeom_Axis1Placement, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Axis1Placement: ... + def MakeAxis1Placement( + SA: StepGeom_Axis1Placement, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Axis1Placement: ... @overload @staticmethod - def MakeAxis2Placement(SA: StepGeom_Axis2Placement3d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Axis2Placement: ... + def MakeAxis2Placement( + SA: StepGeom_Axis2Placement3d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Axis2Placement: ... @overload @staticmethod def MakeAxis2Placement(SP: StepGeom_SuParameters) -> Geom_Axis2Placement: ... @staticmethod - def MakeAxisPlacement(SA: StepGeom_Axis2Placement2d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_AxisPlacement: ... - @staticmethod - def MakeBSplineCurve(SC: StepGeom_BSplineCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_BSplineCurve: ... - @staticmethod - def MakeBSplineCurve2d(SC: StepGeom_BSplineCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_BSplineCurve: ... - @staticmethod - def MakeBSplineSurface(SS: StepGeom_BSplineSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_BSplineSurface: ... - @staticmethod - def MakeBoundedCurve(SC: StepGeom_BoundedCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_BoundedCurve: ... - @staticmethod - def MakeBoundedCurve2d(SC: StepGeom_BoundedCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_BoundedCurve: ... - @staticmethod - def MakeBoundedSurface(SS: StepGeom_BoundedSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_BoundedSurface: ... - @staticmethod - def MakeCartesianPoint(SP: StepGeom_CartesianPoint, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_CartesianPoint: ... - @staticmethod - def MakeCartesianPoint2d(SP: StepGeom_CartesianPoint, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_CartesianPoint: ... - @staticmethod - def MakeCircle(SC: StepGeom_Circle, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Circle: ... - @staticmethod - def MakeCircle2d(SC: StepGeom_Circle, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_Circle: ... - @staticmethod - def MakeConic(SC: StepGeom_Conic, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Conic: ... - @staticmethod - def MakeConic2d(SC: StepGeom_Conic, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_Conic: ... - @staticmethod - def MakeConicalSurface(SS: StepGeom_ConicalSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_ConicalSurface: ... - @staticmethod - def MakeCurve(SC: StepGeom_Curve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Curve: ... - @staticmethod - def MakeCurve2d(SC: StepGeom_Curve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_Curve: ... - @staticmethod - def MakeCylindricalSurface(SS: StepGeom_CylindricalSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_CylindricalSurface: ... + def MakeAxisPlacement( + SA: StepGeom_Axis2Placement2d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_AxisPlacement: ... + @staticmethod + def MakeBSplineCurve( + SC: StepGeom_BSplineCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_BSplineCurve: ... + @staticmethod + def MakeBSplineCurve2d( + SC: StepGeom_BSplineCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_BSplineCurve: ... + @staticmethod + def MakeBSplineSurface( + SS: StepGeom_BSplineSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_BSplineSurface: ... + @staticmethod + def MakeBoundedCurve( + SC: StepGeom_BoundedCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_BoundedCurve: ... + @staticmethod + def MakeBoundedCurve2d( + SC: StepGeom_BoundedCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_BoundedCurve: ... + @staticmethod + def MakeBoundedSurface( + SS: StepGeom_BoundedSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_BoundedSurface: ... + @staticmethod + def MakeCartesianPoint( + SP: StepGeom_CartesianPoint, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_CartesianPoint: ... + @staticmethod + def MakeCartesianPoint2d( + SP: StepGeom_CartesianPoint, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_CartesianPoint: ... + @staticmethod + def MakeCircle( + SC: StepGeom_Circle, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Circle: ... + @staticmethod + def MakeCircle2d( + SC: StepGeom_Circle, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_Circle: ... + @staticmethod + def MakeConic( + SC: StepGeom_Conic, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Conic: ... + @staticmethod + def MakeConic2d( + SC: StepGeom_Conic, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_Conic: ... + @staticmethod + def MakeConicalSurface( + SS: StepGeom_ConicalSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_ConicalSurface: ... + @staticmethod + def MakeCurve( + SC: StepGeom_Curve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Curve: ... + @staticmethod + def MakeCurve2d( + SC: StepGeom_Curve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_Curve: ... + @staticmethod + def MakeCylindricalSurface( + SS: StepGeom_CylindricalSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_CylindricalSurface: ... @staticmethod def MakeDirection(SD: StepGeom_Direction) -> Geom_Direction: ... @staticmethod def MakeDirection2d(SD: StepGeom_Direction) -> Geom2d_Direction: ... @staticmethod - def MakeElementarySurface(SS: StepGeom_ElementarySurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_ElementarySurface: ... - @staticmethod - def MakeEllipse(SC: StepGeom_Ellipse, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Ellipse: ... - @staticmethod - def MakeEllipse2d(SC: StepGeom_Ellipse, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_Ellipse: ... - @staticmethod - def MakeHyperbola(SC: StepGeom_Hyperbola, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Hyperbola: ... - @staticmethod - def MakeHyperbola2d(SC: StepGeom_Hyperbola, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_Hyperbola: ... - @staticmethod - def MakeLine(SC: StepGeom_Line, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Line: ... - @staticmethod - def MakeLine2d(SC: StepGeom_Line, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_Line: ... - @staticmethod - def MakeParabola(SC: StepGeom_Parabola, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Parabola: ... - @staticmethod - def MakeParabola2d(SC: StepGeom_Parabola, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_Parabola: ... - @staticmethod - def MakePlane(SP: StepGeom_Plane, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Plane: ... - @staticmethod - def MakePolyline(SPL: StepGeom_Polyline, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_BSplineCurve: ... - @staticmethod - def MakePolyline2d(SPL: StepGeom_Polyline, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_BSplineCurve: ... - @staticmethod - def MakeRectangularTrimmedSurface(SS: StepGeom_RectangularTrimmedSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_RectangularTrimmedSurface: ... - @staticmethod - def MakeSphericalSurface(SS: StepGeom_SphericalSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_SphericalSurface: ... - @staticmethod - def MakeSurface(SS: StepGeom_Surface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_Surface: ... - @staticmethod - def MakeSurfaceOfLinearExtrusion(SS: StepGeom_SurfaceOfLinearExtrusion, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_SurfaceOfLinearExtrusion: ... - @staticmethod - def MakeSurfaceOfRevolution(SS: StepGeom_SurfaceOfRevolution, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_SurfaceOfRevolution: ... - @staticmethod - def MakeSweptSurface(SS: StepGeom_SweptSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_SweptSurface: ... - @staticmethod - def MakeToroidalSurface(SS: StepGeom_ToroidalSurface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_ToroidalSurface: ... - @staticmethod - def MakeTransformation2d(SCTO: StepGeom_CartesianTransformationOperator2d, CT: gp_Trsf2d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - @staticmethod - def MakeTransformation3d(SCTO: StepGeom_CartesianTransformationOperator3d, CT: gp_Trsf, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - @staticmethod - def MakeTrimmedCurve(SC: StepGeom_TrimmedCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_TrimmedCurve: ... - @staticmethod - def MakeTrimmedCurve2d(SC: StepGeom_TrimmedCurve, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_BSplineCurve: ... - @staticmethod - def MakeVectorWithMagnitude(SV: StepGeom_Vector, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom_VectorWithMagnitude: ... - @staticmethod - def MakeVectorWithMagnitude2d(SV: StepGeom_Vector) -> Geom2d_VectorWithMagnitude: ... - @staticmethod - def MakeYprRotation(SR: StepKinematics_SpatialRotation, theCntxt: StepRepr_GlobalUnitAssignedContext) -> TColStd_HArray1OfReal: ... + def MakeElementarySurface( + SS: StepGeom_ElementarySurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_ElementarySurface: ... + @staticmethod + def MakeEllipse( + SC: StepGeom_Ellipse, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Ellipse: ... + @staticmethod + def MakeEllipse2d( + SC: StepGeom_Ellipse, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_Ellipse: ... + @staticmethod + def MakeHyperbola( + SC: StepGeom_Hyperbola, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Hyperbola: ... + @staticmethod + def MakeHyperbola2d( + SC: StepGeom_Hyperbola, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_Hyperbola: ... + @staticmethod + def MakeLine( + SC: StepGeom_Line, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Line: ... + @staticmethod + def MakeLine2d( + SC: StepGeom_Line, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_Line: ... + @staticmethod + def MakeParabola( + SC: StepGeom_Parabola, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Parabola: ... + @staticmethod + def MakeParabola2d( + SC: StepGeom_Parabola, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_Parabola: ... + @staticmethod + def MakePlane( + SP: StepGeom_Plane, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Plane: ... + @staticmethod + def MakePolyline( + SPL: StepGeom_Polyline, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_BSplineCurve: ... + @staticmethod + def MakePolyline2d( + SPL: StepGeom_Polyline, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_BSplineCurve: ... + @staticmethod + def MakeRectangularTrimmedSurface( + SS: StepGeom_RectangularTrimmedSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_RectangularTrimmedSurface: ... + @staticmethod + def MakeSphericalSurface( + SS: StepGeom_SphericalSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_SphericalSurface: ... + @staticmethod + def MakeSurface( + SS: StepGeom_Surface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_Surface: ... + @staticmethod + def MakeSurfaceOfLinearExtrusion( + SS: StepGeom_SurfaceOfLinearExtrusion, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_SurfaceOfLinearExtrusion: ... + @staticmethod + def MakeSurfaceOfRevolution( + SS: StepGeom_SurfaceOfRevolution, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_SurfaceOfRevolution: ... + @staticmethod + def MakeSweptSurface( + SS: StepGeom_SweptSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_SweptSurface: ... + @staticmethod + def MakeToroidalSurface( + SS: StepGeom_ToroidalSurface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_ToroidalSurface: ... + @staticmethod + def MakeTransformation2d( + SCTO: StepGeom_CartesianTransformationOperator2d, + CT: gp_Trsf2d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + @staticmethod + def MakeTransformation3d( + SCTO: StepGeom_CartesianTransformationOperator3d, + CT: gp_Trsf, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + @staticmethod + def MakeTrimmedCurve( + SC: StepGeom_TrimmedCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_TrimmedCurve: ... + @staticmethod + def MakeTrimmedCurve2d( + SC: StepGeom_TrimmedCurve, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_BSplineCurve: ... + @staticmethod + def MakeVectorWithMagnitude( + SV: StepGeom_Vector, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom_VectorWithMagnitude: ... + @staticmethod + def MakeVectorWithMagnitude2d( + SV: StepGeom_Vector, + ) -> Geom2d_VectorWithMagnitude: ... + @staticmethod + def MakeYprRotation( + SR: StepKinematics_SpatialRotation, theCntxt: StepRepr_GlobalUnitAssignedContext + ) -> TColStd_HArray1OfReal: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepToTopoDS.pyi b/src/SWIG_files/wrapper/StepToTopoDS.pyi index 65bd8ff30..fdf4bbd0d 100644 --- a/src/SWIG_files/wrapper/StepToTopoDS.pyi +++ b/src/SWIG_files/wrapper/StepToTopoDS.pyi @@ -16,7 +16,6 @@ from OCC.Core.gp import * from OCC.Core.Message import * from OCC.Core.StepVisual import * - class StepToTopoDS_BuilderError(IntEnum): StepToTopoDS_BuilderDone: int = ... StepToTopoDS_BuilderOther: int = ... @@ -32,94 +31,167 @@ class StepToTopoDS_GeometricToolError(IntEnum): StepToTopoDS_GeometricToolNoProjectiOnCurve: int = ... StepToTopoDS_GeometricToolOther: int = ... -StepToTopoDS_GeometricToolDone = StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolDone -StepToTopoDS_GeometricToolIsDegenerated = StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolIsDegenerated -StepToTopoDS_GeometricToolHasNoPCurve = StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolHasNoPCurve -StepToTopoDS_GeometricToolWrong3dParameters = StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolWrong3dParameters -StepToTopoDS_GeometricToolNoProjectiOnCurve = StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolNoProjectiOnCurve -StepToTopoDS_GeometricToolOther = StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolOther +StepToTopoDS_GeometricToolDone = ( + StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolDone +) +StepToTopoDS_GeometricToolIsDegenerated = ( + StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolIsDegenerated +) +StepToTopoDS_GeometricToolHasNoPCurve = ( + StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolHasNoPCurve +) +StepToTopoDS_GeometricToolWrong3dParameters = ( + StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolWrong3dParameters +) +StepToTopoDS_GeometricToolNoProjectiOnCurve = ( + StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolNoProjectiOnCurve +) +StepToTopoDS_GeometricToolOther = ( + StepToTopoDS_GeometricToolError.StepToTopoDS_GeometricToolOther +) class StepToTopoDS_TranslateEdgeError(IntEnum): StepToTopoDS_TranslateEdgeDone: int = ... StepToTopoDS_TranslateEdgeOther: int = ... -StepToTopoDS_TranslateEdgeDone = StepToTopoDS_TranslateEdgeError.StepToTopoDS_TranslateEdgeDone -StepToTopoDS_TranslateEdgeOther = StepToTopoDS_TranslateEdgeError.StepToTopoDS_TranslateEdgeOther +StepToTopoDS_TranslateEdgeDone = ( + StepToTopoDS_TranslateEdgeError.StepToTopoDS_TranslateEdgeDone +) +StepToTopoDS_TranslateEdgeOther = ( + StepToTopoDS_TranslateEdgeError.StepToTopoDS_TranslateEdgeOther +) class StepToTopoDS_TranslateEdgeLoopError(IntEnum): StepToTopoDS_TranslateEdgeLoopDone: int = ... StepToTopoDS_TranslateEdgeLoopOther: int = ... -StepToTopoDS_TranslateEdgeLoopDone = StepToTopoDS_TranslateEdgeLoopError.StepToTopoDS_TranslateEdgeLoopDone -StepToTopoDS_TranslateEdgeLoopOther = StepToTopoDS_TranslateEdgeLoopError.StepToTopoDS_TranslateEdgeLoopOther +StepToTopoDS_TranslateEdgeLoopDone = ( + StepToTopoDS_TranslateEdgeLoopError.StepToTopoDS_TranslateEdgeLoopDone +) +StepToTopoDS_TranslateEdgeLoopOther = ( + StepToTopoDS_TranslateEdgeLoopError.StepToTopoDS_TranslateEdgeLoopOther +) class StepToTopoDS_TranslateFaceError(IntEnum): StepToTopoDS_TranslateFaceDone: int = ... StepToTopoDS_TranslateFaceOther: int = ... -StepToTopoDS_TranslateFaceDone = StepToTopoDS_TranslateFaceError.StepToTopoDS_TranslateFaceDone -StepToTopoDS_TranslateFaceOther = StepToTopoDS_TranslateFaceError.StepToTopoDS_TranslateFaceOther +StepToTopoDS_TranslateFaceDone = ( + StepToTopoDS_TranslateFaceError.StepToTopoDS_TranslateFaceDone +) +StepToTopoDS_TranslateFaceOther = ( + StepToTopoDS_TranslateFaceError.StepToTopoDS_TranslateFaceOther +) class StepToTopoDS_TranslatePolyLoopError(IntEnum): StepToTopoDS_TranslatePolyLoopDone: int = ... StepToTopoDS_TranslatePolyLoopOther: int = ... -StepToTopoDS_TranslatePolyLoopDone = StepToTopoDS_TranslatePolyLoopError.StepToTopoDS_TranslatePolyLoopDone -StepToTopoDS_TranslatePolyLoopOther = StepToTopoDS_TranslatePolyLoopError.StepToTopoDS_TranslatePolyLoopOther +StepToTopoDS_TranslatePolyLoopDone = ( + StepToTopoDS_TranslatePolyLoopError.StepToTopoDS_TranslatePolyLoopDone +) +StepToTopoDS_TranslatePolyLoopOther = ( + StepToTopoDS_TranslatePolyLoopError.StepToTopoDS_TranslatePolyLoopOther +) class StepToTopoDS_TranslateShellError(IntEnum): StepToTopoDS_TranslateShellDone: int = ... StepToTopoDS_TranslateShellOther: int = ... -StepToTopoDS_TranslateShellDone = StepToTopoDS_TranslateShellError.StepToTopoDS_TranslateShellDone -StepToTopoDS_TranslateShellOther = StepToTopoDS_TranslateShellError.StepToTopoDS_TranslateShellOther +StepToTopoDS_TranslateShellDone = ( + StepToTopoDS_TranslateShellError.StepToTopoDS_TranslateShellDone +) +StepToTopoDS_TranslateShellOther = ( + StepToTopoDS_TranslateShellError.StepToTopoDS_TranslateShellOther +) class StepToTopoDS_TranslateSolidError(IntEnum): StepToTopoDS_TranslateSolidDone: int = ... StepToTopoDS_TranslateSolidOther: int = ... -StepToTopoDS_TranslateSolidDone = StepToTopoDS_TranslateSolidError.StepToTopoDS_TranslateSolidDone -StepToTopoDS_TranslateSolidOther = StepToTopoDS_TranslateSolidError.StepToTopoDS_TranslateSolidOther +StepToTopoDS_TranslateSolidDone = ( + StepToTopoDS_TranslateSolidError.StepToTopoDS_TranslateSolidDone +) +StepToTopoDS_TranslateSolidOther = ( + StepToTopoDS_TranslateSolidError.StepToTopoDS_TranslateSolidOther +) class StepToTopoDS_TranslateVertexError(IntEnum): StepToTopoDS_TranslateVertexDone: int = ... StepToTopoDS_TranslateVertexOther: int = ... -StepToTopoDS_TranslateVertexDone = StepToTopoDS_TranslateVertexError.StepToTopoDS_TranslateVertexDone -StepToTopoDS_TranslateVertexOther = StepToTopoDS_TranslateVertexError.StepToTopoDS_TranslateVertexOther +StepToTopoDS_TranslateVertexDone = ( + StepToTopoDS_TranslateVertexError.StepToTopoDS_TranslateVertexDone +) +StepToTopoDS_TranslateVertexOther = ( + StepToTopoDS_TranslateVertexError.StepToTopoDS_TranslateVertexOther +) class StepToTopoDS_TranslateVertexLoopError(IntEnum): StepToTopoDS_TranslateVertexLoopDone: int = ... StepToTopoDS_TranslateVertexLoopOther: int = ... -StepToTopoDS_TranslateVertexLoopDone = StepToTopoDS_TranslateVertexLoopError.StepToTopoDS_TranslateVertexLoopDone -StepToTopoDS_TranslateVertexLoopOther = StepToTopoDS_TranslateVertexLoopError.StepToTopoDS_TranslateVertexLoopOther +StepToTopoDS_TranslateVertexLoopDone = ( + StepToTopoDS_TranslateVertexLoopError.StepToTopoDS_TranslateVertexLoopDone +) +StepToTopoDS_TranslateVertexLoopOther = ( + StepToTopoDS_TranslateVertexLoopError.StepToTopoDS_TranslateVertexLoopOther +) class steptotopods: @staticmethod - def DecodeBuilderError(Error: StepToTopoDS_BuilderError) -> TCollection_HAsciiString: ... + def DecodeBuilderError( + Error: StepToTopoDS_BuilderError, + ) -> TCollection_HAsciiString: ... @staticmethod - def DecodeEdgeError(Error: StepToTopoDS_TranslateEdgeError) -> TCollection_HAsciiString: ... + def DecodeEdgeError( + Error: StepToTopoDS_TranslateEdgeError, + ) -> TCollection_HAsciiString: ... @staticmethod - def DecodeFaceError(Error: StepToTopoDS_TranslateFaceError) -> TCollection_HAsciiString: ... + def DecodeFaceError( + Error: StepToTopoDS_TranslateFaceError, + ) -> TCollection_HAsciiString: ... @staticmethod def DecodeGeometricToolError(Error: StepToTopoDS_GeometricToolError) -> str: ... @staticmethod - def DecodePolyLoopError(Error: StepToTopoDS_TranslatePolyLoopError) -> TCollection_HAsciiString: ... + def DecodePolyLoopError( + Error: StepToTopoDS_TranslatePolyLoopError, + ) -> TCollection_HAsciiString: ... @staticmethod - def DecodeShellError(Error: StepToTopoDS_TranslateShellError) -> TCollection_HAsciiString: ... + def DecodeShellError( + Error: StepToTopoDS_TranslateShellError, + ) -> TCollection_HAsciiString: ... @staticmethod - def DecodeVertexError(Error: StepToTopoDS_TranslateVertexError) -> TCollection_HAsciiString: ... + def DecodeVertexError( + Error: StepToTopoDS_TranslateVertexError, + ) -> TCollection_HAsciiString: ... @staticmethod - def DecodeVertexLoopError(Error: StepToTopoDS_TranslateVertexLoopError) -> TCollection_HAsciiString: ... + def DecodeVertexLoopError( + Error: StepToTopoDS_TranslateVertexLoopError, + ) -> TCollection_HAsciiString: ... class StepToTopoDS_GeometricTool: @staticmethod - def IsLikeSeam(SC: StepGeom_SurfaceCurve, S: StepGeom_Surface, E: StepShape_Edge, EL: StepShape_EdgeLoop) -> bool: ... + def IsLikeSeam( + SC: StepGeom_SurfaceCurve, + S: StepGeom_Surface, + E: StepShape_Edge, + EL: StepShape_EdgeLoop, + ) -> bool: ... @staticmethod - def IsSeamCurve(SC: StepGeom_SurfaceCurve, S: StepGeom_Surface, E: StepShape_Edge, EL: StepShape_EdgeLoop) -> bool: ... + def IsSeamCurve( + SC: StepGeom_SurfaceCurve, + S: StepGeom_Surface, + E: StepShape_Edge, + EL: StepShape_EdgeLoop, + ) -> bool: ... @staticmethod - def PCurve(SC: StepGeom_SurfaceCurve, S: StepGeom_Surface, PC: StepGeom_Pcurve, last: Optional[int] = 0) -> int: ... + def PCurve( + SC: StepGeom_SurfaceCurve, + S: StepGeom_Surface, + PC: StepGeom_Pcurve, + last: Optional[int] = 0, + ) -> int: ... @staticmethod def UpdateParam3d(C: Geom_Curve, preci: float) -> Tuple[bool, float, float]: ... @@ -127,7 +199,11 @@ class StepToTopoDS_NMTool: @overload def __init__(self) -> None: ... @overload - def __init__(self, MapOfRI: StepToTopoDS_DataMapOfRI, MapOfRINames: StepToTopoDS_DataMapOfRINames) -> None: ... + def __init__( + self, + MapOfRI: StepToTopoDS_DataMapOfRI, + MapOfRINames: StepToTopoDS_DataMapOfRINames, + ) -> None: ... @overload def Bind(self, RI: StepRepr_RepresentationItem, S: TopoDS_Shape) -> None: ... @overload @@ -137,7 +213,11 @@ class StepToTopoDS_NMTool: def Find(self, RI: StepRepr_RepresentationItem) -> TopoDS_Shape: ... @overload def Find(self, RIName: str) -> TopoDS_Shape: ... - def Init(self, MapOfRI: StepToTopoDS_DataMapOfRI, MapOfRINames: StepToTopoDS_DataMapOfRINames) -> None: ... + def Init( + self, + MapOfRI: StepToTopoDS_DataMapOfRI, + MapOfRINames: StepToTopoDS_DataMapOfRINames, + ) -> None: ... def IsActive(self) -> bool: ... @overload def IsBound(self, RI: StepRepr_RepresentationItem) -> bool: ... @@ -145,13 +225,17 @@ class StepToTopoDS_NMTool: def IsBound(self, RIName: str) -> bool: ... def IsIDEASCase(self) -> bool: ... def IsPureNMShell(self, Shell: TopoDS_Shape) -> bool: ... - def IsSuspectedAsClosing(self, BaseShell: TopoDS_Shape, SuspectedShell: TopoDS_Shape) -> bool: ... + def IsSuspectedAsClosing( + self, BaseShell: TopoDS_Shape, SuspectedShell: TopoDS_Shape + ) -> bool: ... def RegisterNMEdge(self, Edge: TopoDS_Shape) -> None: ... def SetActive(self, isActive: bool) -> None: ... def SetIDEASCase(self, IDEASCase: bool) -> None: ... class StepToTopoDS_PointPair: - def __init__(self, P1: StepGeom_CartesianPoint, P2: StepGeom_CartesianPoint) -> None: ... + def __init__( + self, P1: StepGeom_CartesianPoint, P2: StepGeom_CartesianPoint + ) -> None: ... def GetPoint1(self) -> StepGeom_CartesianPoint: ... def GetPoint2(self) -> StepGeom_CartesianPoint: ... @@ -166,14 +250,18 @@ class StepToTopoDS_Tool: @overload def __init__(self) -> None: ... @overload - def __init__(self, Map: StepToTopoDS_DataMapOfTRI, TP: Transfer_TransientProcess) -> None: ... + def __init__( + self, Map: StepToTopoDS_DataMapOfTRI, TP: Transfer_TransientProcess + ) -> None: ... @overload def AddContinuity(self, GeomSurf: Geom_Surface) -> None: ... @overload def AddContinuity(self, GeomCurve: Geom_Curve) -> None: ... @overload def AddContinuity(self, GeomCur2d: Geom2d_Curve) -> None: ... - def Bind(self, TRI: StepShape_TopologicalRepresentationItem, S: TopoDS_Shape) -> None: ... + def Bind( + self, TRI: StepShape_TopologicalRepresentationItem, S: TopoDS_Shape + ) -> None: ... def BindEdge(self, PP: StepToTopoDS_PointPair, E: TopoDS_Edge) -> None: ... def BindVertex(self, P: StepGeom_CartesianPoint, V: TopoDS_Vertex) -> None: ... def C0Cur2(self) -> int: ... @@ -194,7 +282,9 @@ class StepToTopoDS_Tool: def Find(self, TRI: StepShape_TopologicalRepresentationItem) -> TopoDS_Shape: ... def FindEdge(self, PP: StepToTopoDS_PointPair) -> TopoDS_Edge: ... def FindVertex(self, P: StepGeom_CartesianPoint) -> TopoDS_Vertex: ... - def Init(self, Map: StepToTopoDS_DataMapOfTRI, TP: Transfer_TransientProcess) -> None: ... + def Init( + self, Map: StepToTopoDS_DataMapOfTRI, TP: Transfer_TransientProcess + ) -> None: ... def IsBound(self, TRI: StepShape_TopologicalRepresentationItem) -> bool: ... def IsEdgeBound(self, PP: StepToTopoDS_PointPair) -> bool: ... def IsVertexBound(self, PG: StepGeom_CartesianPoint) -> bool: ... @@ -203,24 +293,63 @@ class StepToTopoDS_Tool: class StepToTopoDS_MakeTransformed(StepToTopoDS_Root): def __init__(self) -> None: ... @overload - def Compute(self, Origin: StepGeom_Axis2Placement3d, Target: StepGeom_Axis2Placement3d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - @overload - def Compute(self, Operator: StepGeom_CartesianTransformationOperator3d, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... + def Compute( + self, + Origin: StepGeom_Axis2Placement3d, + Target: StepGeom_Axis2Placement3d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + @overload + def Compute( + self, + Operator: StepGeom_CartesianTransformationOperator3d, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... def Transform(self, shape: TopoDS_Shape) -> bool: ... def Transformation(self) -> gp_Trsf: ... - def TranslateMappedItem(self, mapit: StepRepr_MappedItem, TP: Transfer_TransientProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> TopoDS_Shape: ... + def TranslateMappedItem( + self, + mapit: StepRepr_MappedItem, + TP: Transfer_TransientProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> TopoDS_Shape: ... class StepToTopoDS_TranslateCompositeCurve(StepToTopoDS_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, CC: StepGeom_CompositeCurve, TP: Transfer_TransientProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, CC: StepGeom_CompositeCurve, TP: Transfer_TransientProcess, S: StepGeom_Surface, Surf: Geom_Surface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def Init(self, CC: StepGeom_CompositeCurve, TP: Transfer_TransientProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - @overload - def Init(self, CC: StepGeom_CompositeCurve, TP: Transfer_TransientProcess, S: StepGeom_Surface, Surf: Geom_Surface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... + def __init__( + self, + CC: StepGeom_CompositeCurve, + TP: Transfer_TransientProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + CC: StepGeom_CompositeCurve, + TP: Transfer_TransientProcess, + S: StepGeom_Surface, + Surf: Geom_Surface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def Init( + self, + CC: StepGeom_CompositeCurve, + TP: Transfer_TransientProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + @overload + def Init( + self, + CC: StepGeom_CompositeCurve, + TP: Transfer_TransientProcess, + S: StepGeom_Surface, + Surf: Geom_Surface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... def IsInfiniteSegment(self) -> bool: ... def Value(self) -> TopoDS_Wire: ... @@ -228,97 +357,254 @@ class StepToTopoDS_TranslateCurveBoundedSurface(StepToTopoDS_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, CBS: StepGeom_CurveBoundedSurface, TP: Transfer_TransientProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - def Init(self, CBS: StepGeom_CurveBoundedSurface, TP: Transfer_TransientProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... + def __init__( + self, + CBS: StepGeom_CurveBoundedSurface, + TP: Transfer_TransientProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + def Init( + self, + CBS: StepGeom_CurveBoundedSurface, + TP: Transfer_TransientProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... def Value(self) -> TopoDS_Face: ... class StepToTopoDS_TranslateEdge(StepToTopoDS_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, E: StepShape_Edge, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + E: StepShape_Edge, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> StepToTopoDS_TranslateEdgeError: ... - def Init(self, E: StepShape_Edge, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - def MakeFromCurve3D(self, C3D: StepGeom_Curve, EC: StepShape_EdgeCurve, Vend: StepShape_Vertex, preci: float, E: TopoDS_Edge, V1: TopoDS_Vertex, V2: TopoDS_Vertex, T: StepToTopoDS_Tool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - def MakePCurve(self, PCU: StepGeom_Pcurve, ConvSurf: Geom_Surface, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> Geom2d_Curve: ... + def Init( + self, + E: StepShape_Edge, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + def MakeFromCurve3D( + self, + C3D: StepGeom_Curve, + EC: StepShape_EdgeCurve, + Vend: StepShape_Vertex, + preci: float, + E: TopoDS_Edge, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + T: StepToTopoDS_Tool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + def MakePCurve( + self, + PCU: StepGeom_Pcurve, + ConvSurf: Geom_Surface, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> Geom2d_Curve: ... def Value(self) -> TopoDS_Shape: ... class StepToTopoDS_TranslateEdgeLoop(StepToTopoDS_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, FB: StepShape_FaceBound, F: TopoDS_Face, S: Geom_Surface, SS: StepGeom_Surface, ss: bool, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + FB: StepShape_FaceBound, + F: TopoDS_Face, + S: Geom_Surface, + SS: StepGeom_Surface, + ss: bool, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> StepToTopoDS_TranslateEdgeLoopError: ... - def Init(self, FB: StepShape_FaceBound, F: TopoDS_Face, S: Geom_Surface, SS: StepGeom_Surface, ss: bool, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + FB: StepShape_FaceBound, + F: TopoDS_Face, + S: Geom_Surface, + SS: StepGeom_Surface, + ss: bool, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> TopoDS_Shape: ... class StepToTopoDS_TranslateFace(StepToTopoDS_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, FS: StepShape_FaceSurface, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def __init__(self, theTF: StepVisual_TessellatedFace, theTool: StepToTopoDS_Tool, theNMTool: StepToTopoDS_NMTool, theReadTessellatedWhenNoBRepOnly: bool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - @overload - def __init__(self, theTSS: StepVisual_TessellatedSurfaceSet, theTool: StepToTopoDS_Tool, theNMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + FS: StepShape_FaceSurface, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def __init__( + self, + theTF: StepVisual_TessellatedFace, + theTool: StepToTopoDS_Tool, + theNMTool: StepToTopoDS_NMTool, + theReadTessellatedWhenNoBRepOnly: bool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + @overload + def __init__( + self, + theTSS: StepVisual_TessellatedSurfaceSet, + theTool: StepToTopoDS_Tool, + theNMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> StepToTopoDS_TranslateFaceError: ... @overload - def Init(self, theFaceSurface: StepShape_FaceSurface, theTopoDSTool: StepToTopoDS_Tool, theTopoDSToolNM: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... - @overload - def Init(self, theTF: StepVisual_TessellatedFace, theTool: StepToTopoDS_Tool, theNMTool: StepToTopoDS_NMTool, theReadTessellatedWhenNoBRepOnly: bool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - @overload - def Init(self, theTSS: StepVisual_TessellatedSurfaceSet, theTool: StepToTopoDS_Tool, theNMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + theFaceSurface: StepShape_FaceSurface, + theTopoDSTool: StepToTopoDS_Tool, + theTopoDSToolNM: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... + @overload + def Init( + self, + theTF: StepVisual_TessellatedFace, + theTool: StepToTopoDS_Tool, + theNMTool: StepToTopoDS_NMTool, + theReadTessellatedWhenNoBRepOnly: bool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + @overload + def Init( + self, + theTSS: StepVisual_TessellatedSurfaceSet, + theTool: StepToTopoDS_Tool, + theNMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> TopoDS_Shape: ... class StepToTopoDS_TranslatePolyLoop(StepToTopoDS_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, PL: StepShape_PolyLoop, T: StepToTopoDS_Tool, S: Geom_Surface, F: TopoDS_Face, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + PL: StepShape_PolyLoop, + T: StepToTopoDS_Tool, + S: Geom_Surface, + F: TopoDS_Face, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> StepToTopoDS_TranslatePolyLoopError: ... - def Init(self, PL: StepShape_PolyLoop, T: StepToTopoDS_Tool, S: Geom_Surface, F: TopoDS_Face, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + PL: StepShape_PolyLoop, + T: StepToTopoDS_Tool, + S: Geom_Surface, + F: TopoDS_Face, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> TopoDS_Shape: ... class StepToTopoDS_TranslateShell(StepToTopoDS_Root): def __init__(self) -> None: ... def Error(self) -> StepToTopoDS_TranslateShellError: ... @overload - def Init(self, CFS: StepShape_ConnectedFaceSet, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - @overload - def Init(self, theTSh: StepVisual_TessellatedShell, theTool: StepToTopoDS_Tool, theNMTool: StepToTopoDS_NMTool, theReadTessellatedWhenNoBRepOnly: bool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Init( + self, + CFS: StepShape_ConnectedFaceSet, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + @overload + def Init( + self, + theTSh: StepVisual_TessellatedShell, + theTool: StepToTopoDS_Tool, + theNMTool: StepToTopoDS_NMTool, + theReadTessellatedWhenNoBRepOnly: bool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... def Value(self) -> TopoDS_Shape: ... class StepToTopoDS_TranslateSolid(StepToTopoDS_Root): def __init__(self) -> None: ... def Error(self) -> StepToTopoDS_TranslateSolidError: ... - def Init(self, theTSo: StepVisual_TessellatedSolid, theTP: Transfer_TransientProcess, theTool: StepToTopoDS_Tool, theNMTool: StepToTopoDS_NMTool, theReadTessellatedWhenNoBRepOnly: bool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Init( + self, + theTSo: StepVisual_TessellatedSolid, + theTP: Transfer_TransientProcess, + theTool: StepToTopoDS_Tool, + theNMTool: StepToTopoDS_NMTool, + theReadTessellatedWhenNoBRepOnly: bool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... def Value(self) -> TopoDS_Shape: ... class StepToTopoDS_TranslateVertex(StepToTopoDS_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, V: StepShape_Vertex, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + V: StepShape_Vertex, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> StepToTopoDS_TranslateVertexError: ... - def Init(self, V: StepShape_Vertex, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + V: StepShape_Vertex, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> TopoDS_Shape: ... class StepToTopoDS_TranslateVertexLoop(StepToTopoDS_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, VL: StepShape_VertexLoop, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + VL: StepShape_VertexLoop, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> StepToTopoDS_TranslateVertexLoopError: ... - def Init(self, VL: StepShape_VertexLoop, T: StepToTopoDS_Tool, NMTool: StepToTopoDS_NMTool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + VL: StepShape_VertexLoop, + T: StepToTopoDS_Tool, + NMTool: StepToTopoDS_NMTool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> TopoDS_Shape: ... -#classnotwrapped +# classnotwrapped class StepToTopoDS_Builder: ... -#classnotwrapped +# classnotwrapped class StepToTopoDS_PointVertexMap: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StepVisual.pyi b/src/SWIG_files/wrapper/StepVisual.pyi index 201d0b7f1..c8b5625b6 100644 --- a/src/SWIG_files/wrapper/StepVisual.pyi +++ b/src/SWIG_files/wrapper/StepVisual.pyi @@ -13,7 +13,9 @@ from OCC.Core.StepBasic import * from OCC.Core.TColgp import * # the following typedef cannot be wrapped as is -StepVisual_VectorOfHSequenceOfInteger = NewType("StepVisual_VectorOfHSequenceOfInteger", Any) +StepVisual_VectorOfHSequenceOfInteger = NewType( + "StepVisual_VectorOfHSequenceOfInteger", Any +) class StepVisual_Array1OfAnnotationPlaneElement: @overload @@ -21,7 +23,9 @@ class StepVisual_Array1OfAnnotationPlaneElement: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepVisual_AnnotationPlaneElement: ... - def __setitem__(self, index: int, value: StepVisual_AnnotationPlaneElement) -> None: ... + def __setitem__( + self, index: int, value: StepVisual_AnnotationPlaneElement + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepVisual_AnnotationPlaneElement]: ... def next(self) -> StepVisual_AnnotationPlaneElement: ... @@ -37,7 +41,9 @@ class StepVisual_Array1OfAnnotationPlaneElement: def First(self) -> StepVisual_AnnotationPlaneElement: ... def Last(self) -> StepVisual_AnnotationPlaneElement: ... def Value(self, theIndex: int) -> StepVisual_AnnotationPlaneElement: ... - def SetValue(self, theIndex: int, theValue: StepVisual_AnnotationPlaneElement) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_AnnotationPlaneElement + ) -> None: ... class StepVisual_Array1OfBoxCharacteristicSelect: @overload @@ -45,7 +51,9 @@ class StepVisual_Array1OfBoxCharacteristicSelect: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepVisual_BoxCharacteristicSelect: ... - def __setitem__(self, index: int, value: StepVisual_BoxCharacteristicSelect) -> None: ... + def __setitem__( + self, index: int, value: StepVisual_BoxCharacteristicSelect + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepVisual_BoxCharacteristicSelect]: ... def next(self) -> StepVisual_BoxCharacteristicSelect: ... @@ -61,20 +69,30 @@ class StepVisual_Array1OfBoxCharacteristicSelect: def First(self) -> StepVisual_BoxCharacteristicSelect: ... def Last(self) -> StepVisual_BoxCharacteristicSelect: ... def Value(self, theIndex: int) -> StepVisual_BoxCharacteristicSelect: ... - def SetValue(self, theIndex: int, theValue: StepVisual_BoxCharacteristicSelect) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_BoxCharacteristicSelect + ) -> None: ... class StepVisual_Array1OfCameraModelD3MultiClippingInterectionSelect: @overload def __init__(self) -> None: ... @overload def __init__(self, theLower: int, theUpper: int) -> None: ... - def __getitem__(self, index: int) -> StepVisual_CameraModelD3MultiClippingInterectionSelect: ... - def __setitem__(self, index: int, value: StepVisual_CameraModelD3MultiClippingInterectionSelect) -> None: ... + def __getitem__( + self, index: int + ) -> StepVisual_CameraModelD3MultiClippingInterectionSelect: ... + def __setitem__( + self, index: int, value: StepVisual_CameraModelD3MultiClippingInterectionSelect + ) -> None: ... def __len__(self) -> int: ... - def __iter__(self) -> Iterator[StepVisual_CameraModelD3MultiClippingInterectionSelect]: ... + def __iter__( + self, + ) -> Iterator[StepVisual_CameraModelD3MultiClippingInterectionSelect]: ... def next(self) -> StepVisual_CameraModelD3MultiClippingInterectionSelect: ... __next__ = next - def Init(self, theValue: StepVisual_CameraModelD3MultiClippingInterectionSelect) -> None: ... + def Init( + self, theValue: StepVisual_CameraModelD3MultiClippingInterectionSelect + ) -> None: ... def Size(self) -> int: ... def Length(self) -> int: ... def IsEmpty(self) -> bool: ... @@ -84,21 +102,35 @@ class StepVisual_Array1OfCameraModelD3MultiClippingInterectionSelect: def IsAllocated(self) -> bool: ... def First(self) -> StepVisual_CameraModelD3MultiClippingInterectionSelect: ... def Last(self) -> StepVisual_CameraModelD3MultiClippingInterectionSelect: ... - def Value(self, theIndex: int) -> StepVisual_CameraModelD3MultiClippingInterectionSelect: ... - def SetValue(self, theIndex: int, theValue: StepVisual_CameraModelD3MultiClippingInterectionSelect) -> None: ... + def Value( + self, theIndex: int + ) -> StepVisual_CameraModelD3MultiClippingInterectionSelect: ... + def SetValue( + self, + theIndex: int, + theValue: StepVisual_CameraModelD3MultiClippingInterectionSelect, + ) -> None: ... class StepVisual_Array1OfCameraModelD3MultiClippingUnionSelect: @overload def __init__(self) -> None: ... @overload def __init__(self, theLower: int, theUpper: int) -> None: ... - def __getitem__(self, index: int) -> StepVisual_CameraModelD3MultiClippingUnionSelect: ... - def __setitem__(self, index: int, value: StepVisual_CameraModelD3MultiClippingUnionSelect) -> None: ... + def __getitem__( + self, index: int + ) -> StepVisual_CameraModelD3MultiClippingUnionSelect: ... + def __setitem__( + self, index: int, value: StepVisual_CameraModelD3MultiClippingUnionSelect + ) -> None: ... def __len__(self) -> int: ... - def __iter__(self) -> Iterator[StepVisual_CameraModelD3MultiClippingUnionSelect]: ... + def __iter__( + self, + ) -> Iterator[StepVisual_CameraModelD3MultiClippingUnionSelect]: ... def next(self) -> StepVisual_CameraModelD3MultiClippingUnionSelect: ... __next__ = next - def Init(self, theValue: StepVisual_CameraModelD3MultiClippingUnionSelect) -> None: ... + def Init( + self, theValue: StepVisual_CameraModelD3MultiClippingUnionSelect + ) -> None: ... def Size(self) -> int: ... def Length(self) -> int: ... def IsEmpty(self) -> bool: ... @@ -108,8 +140,12 @@ class StepVisual_Array1OfCameraModelD3MultiClippingUnionSelect: def IsAllocated(self) -> bool: ... def First(self) -> StepVisual_CameraModelD3MultiClippingUnionSelect: ... def Last(self) -> StepVisual_CameraModelD3MultiClippingUnionSelect: ... - def Value(self, theIndex: int) -> StepVisual_CameraModelD3MultiClippingUnionSelect: ... - def SetValue(self, theIndex: int, theValue: StepVisual_CameraModelD3MultiClippingUnionSelect) -> None: ... + def Value( + self, theIndex: int + ) -> StepVisual_CameraModelD3MultiClippingUnionSelect: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_CameraModelD3MultiClippingUnionSelect + ) -> None: ... class StepVisual_Array1OfCurveStyleFontPattern: @overload @@ -141,7 +177,9 @@ class StepVisual_Array1OfDirectionCountSelect: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepVisual_DirectionCountSelect: ... - def __setitem__(self, index: int, value: StepVisual_DirectionCountSelect) -> None: ... + def __setitem__( + self, index: int, value: StepVisual_DirectionCountSelect + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepVisual_DirectionCountSelect]: ... def next(self) -> StepVisual_DirectionCountSelect: ... @@ -157,7 +195,9 @@ class StepVisual_Array1OfDirectionCountSelect: def First(self) -> StepVisual_DirectionCountSelect: ... def Last(self) -> StepVisual_DirectionCountSelect: ... def Value(self, theIndex: int) -> StepVisual_DirectionCountSelect: ... - def SetValue(self, theIndex: int, theValue: StepVisual_DirectionCountSelect) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_DirectionCountSelect + ) -> None: ... class StepVisual_Array1OfDraughtingCalloutElement: @overload @@ -165,7 +205,9 @@ class StepVisual_Array1OfDraughtingCalloutElement: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepVisual_DraughtingCalloutElement: ... - def __setitem__(self, index: int, value: StepVisual_DraughtingCalloutElement) -> None: ... + def __setitem__( + self, index: int, value: StepVisual_DraughtingCalloutElement + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepVisual_DraughtingCalloutElement]: ... def next(self) -> StepVisual_DraughtingCalloutElement: ... @@ -181,7 +223,9 @@ class StepVisual_Array1OfDraughtingCalloutElement: def First(self) -> StepVisual_DraughtingCalloutElement: ... def Last(self) -> StepVisual_DraughtingCalloutElement: ... def Value(self, theIndex: int) -> StepVisual_DraughtingCalloutElement: ... - def SetValue(self, theIndex: int, theValue: StepVisual_DraughtingCalloutElement) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_DraughtingCalloutElement + ) -> None: ... class StepVisual_Array1OfFillStyleSelect: @overload @@ -285,7 +329,9 @@ class StepVisual_Array1OfPresentationStyleSelect: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepVisual_PresentationStyleSelect: ... - def __setitem__(self, index: int, value: StepVisual_PresentationStyleSelect) -> None: ... + def __setitem__( + self, index: int, value: StepVisual_PresentationStyleSelect + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepVisual_PresentationStyleSelect]: ... def next(self) -> StepVisual_PresentationStyleSelect: ... @@ -301,7 +347,9 @@ class StepVisual_Array1OfPresentationStyleSelect: def First(self) -> StepVisual_PresentationStyleSelect: ... def Last(self) -> StepVisual_PresentationStyleSelect: ... def Value(self, theIndex: int) -> StepVisual_PresentationStyleSelect: ... - def SetValue(self, theIndex: int, theValue: StepVisual_PresentationStyleSelect) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_PresentationStyleSelect + ) -> None: ... class StepVisual_Array1OfRenderingPropertiesSelect: @overload @@ -309,7 +357,9 @@ class StepVisual_Array1OfRenderingPropertiesSelect: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepVisual_RenderingPropertiesSelect: ... - def __setitem__(self, index: int, value: StepVisual_RenderingPropertiesSelect) -> None: ... + def __setitem__( + self, index: int, value: StepVisual_RenderingPropertiesSelect + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepVisual_RenderingPropertiesSelect]: ... def next(self) -> StepVisual_RenderingPropertiesSelect: ... @@ -325,7 +375,9 @@ class StepVisual_Array1OfRenderingPropertiesSelect: def First(self) -> StepVisual_RenderingPropertiesSelect: ... def Last(self) -> StepVisual_RenderingPropertiesSelect: ... def Value(self, theIndex: int) -> StepVisual_RenderingPropertiesSelect: ... - def SetValue(self, theIndex: int, theValue: StepVisual_RenderingPropertiesSelect) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_RenderingPropertiesSelect + ) -> None: ... class StepVisual_Array1OfStyleContextSelect: @overload @@ -349,7 +401,9 @@ class StepVisual_Array1OfStyleContextSelect: def First(self) -> StepVisual_StyleContextSelect: ... def Last(self) -> StepVisual_StyleContextSelect: ... def Value(self, theIndex: int) -> StepVisual_StyleContextSelect: ... - def SetValue(self, theIndex: int, theValue: StepVisual_StyleContextSelect) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_StyleContextSelect + ) -> None: ... class StepVisual_Array1OfSurfaceStyleElementSelect: @overload @@ -357,7 +411,9 @@ class StepVisual_Array1OfSurfaceStyleElementSelect: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepVisual_SurfaceStyleElementSelect: ... - def __setitem__(self, index: int, value: StepVisual_SurfaceStyleElementSelect) -> None: ... + def __setitem__( + self, index: int, value: StepVisual_SurfaceStyleElementSelect + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepVisual_SurfaceStyleElementSelect]: ... def next(self) -> StepVisual_SurfaceStyleElementSelect: ... @@ -373,7 +429,9 @@ class StepVisual_Array1OfSurfaceStyleElementSelect: def First(self) -> StepVisual_SurfaceStyleElementSelect: ... def Last(self) -> StepVisual_SurfaceStyleElementSelect: ... def Value(self, theIndex: int) -> StepVisual_SurfaceStyleElementSelect: ... - def SetValue(self, theIndex: int, theValue: StepVisual_SurfaceStyleElementSelect) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_SurfaceStyleElementSelect + ) -> None: ... class StepVisual_Array1OfTessellatedEdgeOrVertex: @overload @@ -381,7 +439,9 @@ class StepVisual_Array1OfTessellatedEdgeOrVertex: @overload def __init__(self, theLower: int, theUpper: int) -> None: ... def __getitem__(self, index: int) -> StepVisual_TessellatedEdgeOrVertex: ... - def __setitem__(self, index: int, value: StepVisual_TessellatedEdgeOrVertex) -> None: ... + def __setitem__( + self, index: int, value: StepVisual_TessellatedEdgeOrVertex + ) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[StepVisual_TessellatedEdgeOrVertex]: ... def next(self) -> StepVisual_TessellatedEdgeOrVertex: ... @@ -397,7 +457,9 @@ class StepVisual_Array1OfTessellatedEdgeOrVertex: def First(self) -> StepVisual_TessellatedEdgeOrVertex: ... def Last(self) -> StepVisual_TessellatedEdgeOrVertex: ... def Value(self, theIndex: int) -> StepVisual_TessellatedEdgeOrVertex: ... - def SetValue(self, theIndex: int, theValue: StepVisual_TessellatedEdgeOrVertex) -> None: ... + def SetValue( + self, theIndex: int, theValue: StepVisual_TessellatedEdgeOrVertex + ) -> None: ... class StepVisual_Array1OfTessellatedItem: @overload @@ -506,10 +568,16 @@ class StepVisual_ShadingSurfaceMethod(IntEnum): StepVisual_ssmDotShading: int = ... StepVisual_ssmNormalShading: int = ... -StepVisual_ssmConstantShading = StepVisual_ShadingSurfaceMethod.StepVisual_ssmConstantShading -StepVisual_ssmColourShading = StepVisual_ShadingSurfaceMethod.StepVisual_ssmColourShading +StepVisual_ssmConstantShading = ( + StepVisual_ShadingSurfaceMethod.StepVisual_ssmConstantShading +) +StepVisual_ssmColourShading = ( + StepVisual_ShadingSurfaceMethod.StepVisual_ssmColourShading +) StepVisual_ssmDotShading = StepVisual_ShadingSurfaceMethod.StepVisual_ssmDotShading -StepVisual_ssmNormalShading = StepVisual_ShadingSurfaceMethod.StepVisual_ssmNormalShading +StepVisual_ssmNormalShading = ( + StepVisual_ShadingSurfaceMethod.StepVisual_ssmNormalShading +) class StepVisual_SurfaceSide(IntEnum): StepVisual_ssNegative: int = ... @@ -547,7 +615,9 @@ class StepVisual_AreaInSet(Standard_Transient): def __init__(self) -> None: ... def Area(self) -> StepVisual_PresentationArea: ... def InSet(self) -> StepVisual_PresentationSet: ... - def Init(self, aArea: StepVisual_PresentationArea, aInSet: StepVisual_PresentationSet) -> None: ... + def Init( + self, aArea: StepVisual_PresentationArea, aInSet: StepVisual_PresentationSet + ) -> None: ... def SetArea(self, aArea: StepVisual_PresentationArea) -> None: ... def SetInSet(self, aInSet: StepVisual_PresentationSet) -> None: ... @@ -572,25 +642,49 @@ class StepVisual_CameraModel(StepGeom_GeometricRepresentationItem): class StepVisual_CameraModelD3MultiClippingInterectionSelect(StepData_SelectType): def __init__(self) -> None: ... - def CameraModelD3MultiClippingUnion(self) -> StepVisual_CameraModelD3MultiClippingUnion: ... + def CameraModelD3MultiClippingUnion( + self, + ) -> StepVisual_CameraModelD3MultiClippingUnion: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def Plane(self) -> StepGeom_Plane: ... -class StepVisual_CameraModelD3MultiClippingIntersection(StepGeom_GeometricRepresentationItem): - def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect) -> None: ... - def SetShapeClipping(self, theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect) -> None: ... - def ShapeClipping(self) -> StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect: ... +class StepVisual_CameraModelD3MultiClippingIntersection( + StepGeom_GeometricRepresentationItem +): + def __init__(self) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect, + ) -> None: ... + def SetShapeClipping( + self, + theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect, + ) -> None: ... + def ShapeClipping( + self, + ) -> StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect: ... class StepVisual_CameraModelD3MultiClippingUnion(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect) -> None: ... - def SetShapeClipping(self, theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect) -> None: ... - def ShapeClipping(self) -> StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect: ... + def Init( + self, + theName: TCollection_HAsciiString, + theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect, + ) -> None: ... + def SetShapeClipping( + self, + theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect, + ) -> None: ... + def ShapeClipping( + self, + ) -> StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect: ... class StepVisual_CameraModelD3MultiClippingUnionSelect(StepData_SelectType): def __init__(self) -> None: ... - def CameraModelD3MultiClippingIntersection(self) -> StepVisual_CameraModelD3MultiClippingIntersection: ... + def CameraModelD3MultiClippingIntersection( + self, + ) -> StepVisual_CameraModelD3MultiClippingIntersection: ... def CaseNum(self, ent: Standard_Transient) -> int: ... def Plane(self) -> StepGeom_Plane: ... @@ -604,16 +698,28 @@ class StepVisual_CompositeText(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def CollectedText(self) -> StepVisual_HArray1OfTextOrCharacter: ... def CollectedTextValue(self, num: int) -> StepVisual_TextOrCharacter: ... - def Init(self, aName: TCollection_HAsciiString, aCollectedText: StepVisual_HArray1OfTextOrCharacter) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aCollectedText: StepVisual_HArray1OfTextOrCharacter, + ) -> None: ... def NbCollectedText(self) -> int: ... - def SetCollectedText(self, aCollectedText: StepVisual_HArray1OfTextOrCharacter) -> None: ... + def SetCollectedText( + self, aCollectedText: StepVisual_HArray1OfTextOrCharacter + ) -> None: ... class StepVisual_CurveStyle(Standard_Transient): def __init__(self) -> None: ... def CurveColour(self) -> StepVisual_Colour: ... def CurveFont(self) -> StepVisual_CurveStyleFontSelect: ... def CurveWidth(self) -> StepBasic_SizeSelect: ... - def Init(self, aName: TCollection_HAsciiString, aCurveFont: StepVisual_CurveStyleFontSelect, aCurveWidth: StepBasic_SizeSelect, aCurveColour: StepVisual_Colour) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aCurveFont: StepVisual_CurveStyleFontSelect, + aCurveWidth: StepBasic_SizeSelect, + aCurveColour: StepVisual_Colour, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetCurveColour(self, aCurveColour: StepVisual_Colour) -> None: ... def SetCurveFont(self, aCurveFont: StepVisual_CurveStyleFontSelect) -> None: ... @@ -622,17 +728,25 @@ class StepVisual_CurveStyle(Standard_Transient): class StepVisual_CurveStyleFont(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aPatternList: StepVisual_HArray1OfCurveStyleFontPattern) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aPatternList: StepVisual_HArray1OfCurveStyleFontPattern, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def NbPatternList(self) -> int: ... def PatternList(self) -> StepVisual_HArray1OfCurveStyleFontPattern: ... def PatternListValue(self, num: int) -> StepVisual_CurveStyleFontPattern: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... - def SetPatternList(self, aPatternList: StepVisual_HArray1OfCurveStyleFontPattern) -> None: ... + def SetPatternList( + self, aPatternList: StepVisual_HArray1OfCurveStyleFontPattern + ) -> None: ... class StepVisual_CurveStyleFontPattern(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aVisibleSegmentLength: float, aInvisibleSegmentLength: float) -> None: ... + def Init( + self, aVisibleSegmentLength: float, aInvisibleSegmentLength: float + ) -> None: ... def InvisibleSegmentLength(self) -> float: ... def SetInvisibleSegmentLength(self, aInvisibleSegmentLength: float) -> None: ... def SetVisibleSegmentLength(self, aVisibleSegmentLength: float) -> None: ... @@ -658,18 +772,30 @@ class StepVisual_DraughtingCallout(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def Contents(self) -> StepVisual_HArray1OfDraughtingCalloutElement: ... def ContentsValue(self, theNum: int) -> StepVisual_DraughtingCalloutElement: ... - def Init(self, theName: TCollection_HAsciiString, theContents: StepVisual_HArray1OfDraughtingCalloutElement) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theContents: StepVisual_HArray1OfDraughtingCalloutElement, + ) -> None: ... def NbContents(self) -> int: ... - def SetContents(self, theContents: StepVisual_HArray1OfDraughtingCalloutElement) -> None: ... - def SetContentsValue(self, theNum: int, theItem: StepVisual_DraughtingCalloutElement) -> None: ... + def SetContents( + self, theContents: StepVisual_HArray1OfDraughtingCalloutElement + ) -> None: ... + def SetContentsValue( + self, theNum: int, theItem: StepVisual_DraughtingCalloutElement + ) -> None: ... class StepVisual_DraughtingCalloutElement(StepData_SelectType): def __init__(self) -> None: ... def AnnotationCurveOccurrence(self) -> StepVisual_AnnotationCurveOccurrence: ... - def AnnotationFillAreaOccurrence(self) -> StepVisual_AnnotationFillAreaOccurrence: ... + def AnnotationFillAreaOccurrence( + self, + ) -> StepVisual_AnnotationFillAreaOccurrence: ... def AnnotationTextOccurrence(self) -> StepVisual_AnnotationTextOccurrence: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def TessellatedAnnotationOccurrence(self) -> StepVisual_TessellatedAnnotationOccurrence: ... + def TessellatedAnnotationOccurrence( + self, + ) -> StepVisual_TessellatedAnnotationOccurrence: ... class StepVisual_DraughtingModel(StepRepr_Representation): def __init__(self) -> None: ... @@ -696,16 +822,24 @@ class StepVisual_FillAreaStyle(Standard_Transient): def __init__(self) -> None: ... def FillStyles(self) -> StepVisual_HArray1OfFillStyleSelect: ... def FillStylesValue(self, num: int) -> StepVisual_FillStyleSelect: ... - def Init(self, aName: TCollection_HAsciiString, aFillStyles: StepVisual_HArray1OfFillStyleSelect) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aFillStyles: StepVisual_HArray1OfFillStyleSelect, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def NbFillStyles(self) -> int: ... - def SetFillStyles(self, aFillStyles: StepVisual_HArray1OfFillStyleSelect) -> None: ... + def SetFillStyles( + self, aFillStyles: StepVisual_HArray1OfFillStyleSelect + ) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... class StepVisual_FillAreaStyleColour(Standard_Transient): def __init__(self) -> None: ... def FillColour(self) -> StepVisual_Colour: ... - def Init(self, aName: TCollection_HAsciiString, aFillColour: StepVisual_Colour) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aFillColour: StepVisual_Colour + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def SetFillColour(self, aFillColour: StepVisual_Colour) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... @@ -727,7 +861,9 @@ class StepVisual_Invisibility(Standard_Transient): def InvisibleItems(self) -> StepVisual_HArray1OfInvisibleItem: ... def InvisibleItemsValue(self, num: int) -> StepVisual_InvisibleItem: ... def NbInvisibleItems(self) -> int: ... - def SetInvisibleItems(self, aInvisibleItems: StepVisual_HArray1OfInvisibleItem) -> None: ... + def SetInvisibleItems( + self, aInvisibleItems: StepVisual_HArray1OfInvisibleItem + ) -> None: ... class StepVisual_InvisibilityContext(StepData_SelectType): def __init__(self) -> None: ... @@ -784,7 +920,9 @@ class StepVisual_PathOrCompositeCurve(StepData_SelectType): class StepVisual_PlanarExtent(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aSizeInX: float, aSizeInY: float) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aSizeInX: float, aSizeInY: float + ) -> None: ... def SetSizeInX(self, aSizeInX: float) -> None: ... def SetSizeInY(self, aSizeInY: float) -> None: ... def SizeInX(self) -> float: ... @@ -792,7 +930,13 @@ class StepVisual_PlanarExtent(StepGeom_GeometricRepresentationItem): class StepVisual_PointStyle(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aMarker: StepVisual_MarkerSelect, aMarkerSize: StepBasic_SizeSelect, aMarkerColour: StepVisual_Colour) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aMarker: StepVisual_MarkerSelect, + aMarkerSize: StepBasic_SizeSelect, + aMarkerColour: StepVisual_Colour, + ) -> None: ... def Marker(self) -> StepVisual_MarkerSelect: ... def MarkerColour(self) -> StepVisual_Colour: ... def MarkerSize(self) -> StepBasic_SizeSelect: ... @@ -813,20 +957,35 @@ class StepVisual_PresentationLayerAssignment(Standard_Transient): def AssignedItems(self) -> StepVisual_HArray1OfLayeredItem: ... def AssignedItemsValue(self, num: int) -> StepVisual_LayeredItem: ... def Description(self) -> TCollection_HAsciiString: ... - def Init(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aAssignedItems: StepVisual_HArray1OfLayeredItem) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aAssignedItems: StepVisual_HArray1OfLayeredItem, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def NbAssignedItems(self) -> int: ... - def SetAssignedItems(self, aAssignedItems: StepVisual_HArray1OfLayeredItem) -> None: ... + def SetAssignedItems( + self, aAssignedItems: StepVisual_HArray1OfLayeredItem + ) -> None: ... def SetDescription(self, aDescription: TCollection_HAsciiString) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... class StepVisual_PresentationLayerUsage(Standard_Transient): def __init__(self) -> None: ... def Assignment(self) -> StepVisual_PresentationLayerAssignment: ... - def Init(self, aAssignment: StepVisual_PresentationLayerAssignment, aPresentation: StepVisual_PresentationRepresentation) -> None: ... + def Init( + self, + aAssignment: StepVisual_PresentationLayerAssignment, + aPresentation: StepVisual_PresentationRepresentation, + ) -> None: ... def Presentation(self) -> StepVisual_PresentationRepresentation: ... - def SetAssignment(self, aAssignment: StepVisual_PresentationLayerAssignment) -> None: ... - def SetPresentation(self, aPresentation: StepVisual_PresentationRepresentation) -> None: ... + def SetAssignment( + self, aAssignment: StepVisual_PresentationLayerAssignment + ) -> None: ... + def SetPresentation( + self, aPresentation: StepVisual_PresentationRepresentation + ) -> None: ... class StepVisual_PresentationRepresentation(StepRepr_Representation): def __init__(self) -> None: ... @@ -842,7 +1001,11 @@ class StepVisual_PresentationSet(Standard_Transient): class StepVisual_PresentationSize(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aUnit: StepVisual_PresentationSizeAssignmentSelect, aSize: StepVisual_PlanarBox) -> None: ... + def Init( + self, + aUnit: StepVisual_PresentationSizeAssignmentSelect, + aSize: StepVisual_PlanarBox, + ) -> None: ... def SetSize(self, aSize: StepVisual_PlanarBox) -> None: ... def SetUnit(self, aUnit: StepVisual_PresentationSizeAssignmentSelect) -> None: ... def Size(self) -> StepVisual_PlanarBox: ... @@ -859,7 +1022,9 @@ class StepVisual_PresentationStyleAssignment(Standard_Transient): def __init__(self) -> None: ... def Init(self, aStyles: StepVisual_HArray1OfPresentationStyleSelect) -> None: ... def NbStyles(self) -> int: ... - def SetStyles(self, aStyles: StepVisual_HArray1OfPresentationStyleSelect) -> None: ... + def SetStyles( + self, aStyles: StepVisual_HArray1OfPresentationStyleSelect + ) -> None: ... def Styles(self) -> StepVisual_HArray1OfPresentationStyleSelect: ... def StylesValue(self, num: int) -> StepVisual_PresentationStyleSelect: ... @@ -876,16 +1041,24 @@ class StepVisual_PresentedItem(Standard_Transient): class StepVisual_PresentedItemRepresentation(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aPresentation: StepVisual_PresentationRepresentationSelect, aItem: StepVisual_PresentedItem) -> None: ... + def Init( + self, + aPresentation: StepVisual_PresentationRepresentationSelect, + aItem: StepVisual_PresentedItem, + ) -> None: ... def Item(self) -> StepVisual_PresentedItem: ... def Presentation(self) -> StepVisual_PresentationRepresentationSelect: ... def SetItem(self, aItem: StepVisual_PresentedItem) -> None: ... - def SetPresentation(self, aPresentation: StepVisual_PresentationRepresentationSelect) -> None: ... + def SetPresentation( + self, aPresentation: StepVisual_PresentationRepresentationSelect + ) -> None: ... class StepVisual_RenderingPropertiesSelect(StepData_SelectType): def __init__(self) -> None: ... def CaseNum(self, ent: Standard_Transient) -> int: ... - def SurfaceStyleReflectanceAmbient(self) -> StepVisual_SurfaceStyleReflectanceAmbient: ... + def SurfaceStyleReflectanceAmbient( + self, + ) -> StepVisual_SurfaceStyleReflectanceAmbient: ... def SurfaceStyleTransparent(self) -> StepVisual_SurfaceStyleTransparent: ... class StepVisual_StyleContextSelect(StepData_SelectType): @@ -897,7 +1070,12 @@ class StepVisual_StyleContextSelect(StepData_SelectType): class StepVisual_StyledItem(StepRepr_RepresentationItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aStyles: StepVisual_HArray1OfPresentationStyleAssignment, aItem: Standard_Transient) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aStyles: StepVisual_HArray1OfPresentationStyleAssignment, + aItem: Standard_Transient, + ) -> None: ... def Item(self) -> StepRepr_RepresentationItem: ... def ItemAP242(self) -> StepVisual_StyledItemTarget: ... def NbStyles(self) -> int: ... @@ -905,7 +1083,9 @@ class StepVisual_StyledItem(StepRepr_RepresentationItem): def SetItem(self, aItem: StepRepr_RepresentationItem) -> None: ... @overload def SetItem(self, aItem: StepVisual_StyledItemTarget) -> None: ... - def SetStyles(self, aStyles: StepVisual_HArray1OfPresentationStyleAssignment) -> None: ... + def SetStyles( + self, aStyles: StepVisual_HArray1OfPresentationStyleAssignment + ) -> None: ... def Styles(self) -> StepVisual_HArray1OfPresentationStyleAssignment: ... def StylesValue(self, num: int) -> StepVisual_PresentationStyleAssignment: ... @@ -915,15 +1095,23 @@ class StepVisual_StyledItemTarget(StepData_SelectType): def GeometricRepresentationItem(self) -> StepGeom_GeometricRepresentationItem: ... def MappedItem(self) -> StepRepr_MappedItem: ... def Representation(self) -> StepRepr_Representation: ... - def TopologicalRepresentationItem(self) -> StepShape_TopologicalRepresentationItem: ... + def TopologicalRepresentationItem( + self, + ) -> StepShape_TopologicalRepresentationItem: ... class StepVisual_SurfaceSideStyle(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aStyles: StepVisual_HArray1OfSurfaceStyleElementSelect) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aStyles: StepVisual_HArray1OfSurfaceStyleElementSelect, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... def NbStyles(self) -> int: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... - def SetStyles(self, aStyles: StepVisual_HArray1OfSurfaceStyleElementSelect) -> None: ... + def SetStyles( + self, aStyles: StepVisual_HArray1OfSurfaceStyleElementSelect + ) -> None: ... def Styles(self) -> StepVisual_HArray1OfSurfaceStyleElementSelect: ... def StylesValue(self, num: int) -> StepVisual_SurfaceStyleElementSelect: ... @@ -936,7 +1124,9 @@ class StepVisual_SurfaceStyleBoundary(Standard_Transient): class StepVisual_SurfaceStyleControlGrid(Standard_Transient): def __init__(self) -> None: ... def Init(self, aStyleOfControlGrid: StepVisual_CurveStyle) -> None: ... - def SetStyleOfControlGrid(self, aStyleOfControlGrid: StepVisual_CurveStyle) -> None: ... + def SetStyleOfControlGrid( + self, aStyleOfControlGrid: StepVisual_CurveStyle + ) -> None: ... def StyleOfControlGrid(self) -> StepVisual_CurveStyle: ... class StepVisual_SurfaceStyleElementSelect(StepData_SelectType): @@ -957,10 +1147,18 @@ class StepVisual_SurfaceStyleParameterLine(Standard_Transient): def __init__(self) -> None: ... def DirectionCounts(self) -> StepVisual_HArray1OfDirectionCountSelect: ... def DirectionCountsValue(self, num: int) -> StepVisual_DirectionCountSelect: ... - def Init(self, aStyleOfParameterLines: StepVisual_CurveStyle, aDirectionCounts: StepVisual_HArray1OfDirectionCountSelect) -> None: ... + def Init( + self, + aStyleOfParameterLines: StepVisual_CurveStyle, + aDirectionCounts: StepVisual_HArray1OfDirectionCountSelect, + ) -> None: ... def NbDirectionCounts(self) -> int: ... - def SetDirectionCounts(self, aDirectionCounts: StepVisual_HArray1OfDirectionCountSelect) -> None: ... - def SetStyleOfParameterLines(self, aStyleOfParameterLines: StepVisual_CurveStyle) -> None: ... + def SetDirectionCounts( + self, aDirectionCounts: StepVisual_HArray1OfDirectionCountSelect + ) -> None: ... + def SetStyleOfParameterLines( + self, aStyleOfParameterLines: StepVisual_CurveStyle + ) -> None: ... def StyleOfParameterLines(self) -> StepVisual_CurveStyle: ... class StepVisual_SurfaceStyleReflectanceAmbient(Standard_Transient): @@ -971,22 +1169,32 @@ class StepVisual_SurfaceStyleReflectanceAmbient(Standard_Transient): class StepVisual_SurfaceStyleRendering(Standard_Transient): def __init__(self) -> None: ... - def Init(self, theRenderingMethod: StepVisual_ShadingSurfaceMethod, theSurfaceColour: StepVisual_Colour) -> None: ... + def Init( + self, + theRenderingMethod: StepVisual_ShadingSurfaceMethod, + theSurfaceColour: StepVisual_Colour, + ) -> None: ... def RenderingMethod(self) -> StepVisual_ShadingSurfaceMethod: ... - def SetRenderingMethod(self, theRenderingMethod: StepVisual_ShadingSurfaceMethod) -> None: ... + def SetRenderingMethod( + self, theRenderingMethod: StepVisual_ShadingSurfaceMethod + ) -> None: ... def SetSurfaceColour(self, theSurfaceColour: StepVisual_Colour) -> None: ... def SurfaceColour(self) -> StepVisual_Colour: ... class StepVisual_SurfaceStyleSegmentationCurve(Standard_Transient): def __init__(self) -> None: ... def Init(self, aStyleOfSegmentationCurve: StepVisual_CurveStyle) -> None: ... - def SetStyleOfSegmentationCurve(self, aStyleOfSegmentationCurve: StepVisual_CurveStyle) -> None: ... + def SetStyleOfSegmentationCurve( + self, aStyleOfSegmentationCurve: StepVisual_CurveStyle + ) -> None: ... def StyleOfSegmentationCurve(self) -> StepVisual_CurveStyle: ... class StepVisual_SurfaceStyleSilhouette(Standard_Transient): def __init__(self) -> None: ... def Init(self, aStyleOfSilhouette: StepVisual_CurveStyle) -> None: ... - def SetStyleOfSilhouette(self, aStyleOfSilhouette: StepVisual_CurveStyle) -> None: ... + def SetStyleOfSilhouette( + self, aStyleOfSilhouette: StepVisual_CurveStyle + ) -> None: ... def StyleOfSilhouette(self) -> StepVisual_CurveStyle: ... class StepVisual_SurfaceStyleTransparent(Standard_Transient): @@ -997,7 +1205,9 @@ class StepVisual_SurfaceStyleTransparent(Standard_Transient): class StepVisual_SurfaceStyleUsage(Standard_Transient): def __init__(self) -> None: ... - def Init(self, aSide: StepVisual_SurfaceSide, aStyle: StepVisual_SurfaceSideStyle) -> None: ... + def Init( + self, aSide: StepVisual_SurfaceSide, aStyle: StepVisual_SurfaceSideStyle + ) -> None: ... def SetSide(self, aSide: StepVisual_SurfaceSide) -> None: ... def SetStyle(self, aStyle: StepVisual_SurfaceSideStyle) -> None: ... def Side(self) -> StepVisual_SurfaceSide: ... @@ -1025,7 +1235,15 @@ class StepVisual_TextLiteral(StepGeom_GeometricRepresentationItem): def __init__(self) -> None: ... def Alignment(self) -> TCollection_HAsciiString: ... def Font(self) -> StepVisual_FontSelect: ... - def Init(self, aName: TCollection_HAsciiString, aLiteral: TCollection_HAsciiString, aPlacement: StepGeom_Axis2Placement, aAlignment: TCollection_HAsciiString, aPath: StepVisual_TextPath, aFont: StepVisual_FontSelect) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aLiteral: TCollection_HAsciiString, + aPlacement: StepGeom_Axis2Placement, + aAlignment: TCollection_HAsciiString, + aPath: StepVisual_TextPath, + aFont: StepVisual_FontSelect, + ) -> None: ... def Literal(self) -> TCollection_HAsciiString: ... def Path(self) -> StepVisual_TextPath: ... def Placement(self) -> StepGeom_Axis2Placement: ... @@ -1045,9 +1263,15 @@ class StepVisual_TextOrCharacter(StepData_SelectType): class StepVisual_TextStyle(Standard_Transient): def __init__(self) -> None: ... def CharacterAppearance(self) -> StepVisual_TextStyleForDefinedFont: ... - def Init(self, aName: TCollection_HAsciiString, aCharacterAppearance: StepVisual_TextStyleForDefinedFont) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aCharacterAppearance: StepVisual_TextStyleForDefinedFont, + ) -> None: ... def Name(self) -> TCollection_HAsciiString: ... - def SetCharacterAppearance(self, aCharacterAppearance: StepVisual_TextStyleForDefinedFont) -> None: ... + def SetCharacterAppearance( + self, aCharacterAppearance: StepVisual_TextStyleForDefinedFont + ) -> None: ... def SetName(self, aName: TCollection_HAsciiString) -> None: ... class StepVisual_TextStyleForDefinedFont(Standard_Transient): @@ -1062,7 +1286,18 @@ class StepVisual_ViewVolume(Standard_Transient): def BackPlaneDistance(self) -> float: ... def FrontPlaneClipping(self) -> bool: ... def FrontPlaneDistance(self) -> float: ... - def Init(self, aProjectionType: StepVisual_CentralOrParallel, aProjectionPoint: StepGeom_CartesianPoint, aViewPlaneDistance: float, aFrontPlaneDistance: float, aFrontPlaneClipping: bool, aBackPlaneDistance: float, aBackPlaneClipping: bool, aViewVolumeSidesClipping: bool, aViewWindow: StepVisual_PlanarBox) -> None: ... + def Init( + self, + aProjectionType: StepVisual_CentralOrParallel, + aProjectionPoint: StepGeom_CartesianPoint, + aViewPlaneDistance: float, + aFrontPlaneDistance: float, + aFrontPlaneClipping: bool, + aBackPlaneDistance: float, + aBackPlaneClipping: bool, + aViewVolumeSidesClipping: bool, + aViewWindow: StepVisual_PlanarBox, + ) -> None: ... def ProjectionPoint(self) -> StepGeom_CartesianPoint: ... def ProjectionType(self) -> StepVisual_CentralOrParallel: ... def SetBackPlaneClipping(self, aBackPlaneClipping: bool) -> None: ... @@ -1070,7 +1305,9 @@ class StepVisual_ViewVolume(Standard_Transient): def SetFrontPlaneClipping(self, aFrontPlaneClipping: bool) -> None: ... def SetFrontPlaneDistance(self, aFrontPlaneDistance: float) -> None: ... def SetProjectionPoint(self, aProjectionPoint: StepGeom_CartesianPoint) -> None: ... - def SetProjectionType(self, aProjectionType: StepVisual_CentralOrParallel) -> None: ... + def SetProjectionType( + self, aProjectionType: StepVisual_CentralOrParallel + ) -> None: ... def SetViewPlaneDistance(self, aViewPlaneDistance: float) -> None: ... def SetViewVolumeSidesClipping(self, aViewVolumeSidesClipping: bool) -> None: ... def SetViewWindow(self, aViewWindow: StepVisual_PlanarBox) -> None: ... @@ -1095,7 +1332,12 @@ class StepVisual_CameraImage3dWithScale(StepVisual_CameraImage): class StepVisual_CameraModelD2(StepVisual_CameraModel): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aViewWindow: StepVisual_PlanarBox, aViewWindowClipping: bool) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aViewWindow: StepVisual_PlanarBox, + aViewWindowClipping: bool, + ) -> None: ... def SetViewWindow(self, aViewWindow: StepVisual_PlanarBox) -> None: ... def SetViewWindowClipping(self, aViewWindowClipping: bool) -> None: ... def ViewWindow(self) -> StepVisual_PlanarBox: ... @@ -1103,13 +1345,24 @@ class StepVisual_CameraModelD2(StepVisual_CameraModel): class StepVisual_CameraModelD3(StepVisual_CameraModel): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aViewReferenceSystem: StepGeom_Axis2Placement3d, aPerspectiveOfVolume: StepVisual_ViewVolume) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aViewReferenceSystem: StepGeom_Axis2Placement3d, + aPerspectiveOfVolume: StepVisual_ViewVolume, + ) -> None: ... def PerspectiveOfVolume(self) -> StepVisual_ViewVolume: ... - def SetPerspectiveOfVolume(self, aPerspectiveOfVolume: StepVisual_ViewVolume) -> None: ... - def SetViewReferenceSystem(self, aViewReferenceSystem: StepGeom_Axis2Placement3d) -> None: ... + def SetPerspectiveOfVolume( + self, aPerspectiveOfVolume: StepVisual_ViewVolume + ) -> None: ... + def SetViewReferenceSystem( + self, aViewReferenceSystem: StepGeom_Axis2Placement3d + ) -> None: ... def ViewReferenceSystem(self) -> StepGeom_Axis2Placement3d: ... -class StepVisual_CharacterizedObjAndRepresentationAndDraughtingModel(StepVisual_DraughtingModel): +class StepVisual_CharacterizedObjAndRepresentationAndDraughtingModel( + StepVisual_DraughtingModel +): def __init__(self) -> None: ... class StepVisual_ColourSpecification(StepVisual_Colour): @@ -1121,32 +1374,59 @@ class StepVisual_ColourSpecification(StepVisual_Colour): class StepVisual_CompositeTextWithExtent(StepVisual_CompositeText): def __init__(self) -> None: ... def Extent(self) -> StepVisual_PlanarExtent: ... - def Init(self, aName: TCollection_HAsciiString, aCollectedText: StepVisual_HArray1OfTextOrCharacter, aExtent: StepVisual_PlanarExtent) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aCollectedText: StepVisual_HArray1OfTextOrCharacter, + aExtent: StepVisual_PlanarExtent, + ) -> None: ... def SetExtent(self, aExtent: StepVisual_PlanarExtent) -> None: ... class StepVisual_ContextDependentInvisibility(StepVisual_Invisibility): def __init__(self) -> None: ... - def Init(self, aInvisibleItems: StepVisual_HArray1OfInvisibleItem, aPresentationContext: StepVisual_InvisibilityContext) -> None: ... + def Init( + self, + aInvisibleItems: StepVisual_HArray1OfInvisibleItem, + aPresentationContext: StepVisual_InvisibilityContext, + ) -> None: ... def PresentationContext(self) -> StepVisual_InvisibilityContext: ... - def SetPresentationContext(self, aPresentationContext: StepVisual_InvisibilityContext) -> None: ... + def SetPresentationContext( + self, aPresentationContext: StepVisual_InvisibilityContext + ) -> None: ... class StepVisual_CoordinatesList(StepVisual_TessellatedItem): def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, thePoints: TColgp_HArray1OfXYZ) -> None: ... + def Init( + self, theName: TCollection_HAsciiString, thePoints: TColgp_HArray1OfXYZ + ) -> None: ... def Points(self) -> TColgp_HArray1OfXYZ: ... -class StepVisual_MechanicalDesignGeometricPresentationRepresentation(StepVisual_PresentationRepresentation): +class StepVisual_MechanicalDesignGeometricPresentationRepresentation( + StepVisual_PresentationRepresentation +): def __init__(self) -> None: ... class StepVisual_OverRidingStyledItem(StepVisual_StyledItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aStyles: StepVisual_HArray1OfPresentationStyleAssignment, aItem: Standard_Transient, aOverRiddenStyle: StepVisual_StyledItem) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aStyles: StepVisual_HArray1OfPresentationStyleAssignment, + aItem: Standard_Transient, + aOverRiddenStyle: StepVisual_StyledItem, + ) -> None: ... def OverRiddenStyle(self) -> StepVisual_StyledItem: ... def SetOverRiddenStyle(self, aOverRiddenStyle: StepVisual_StyledItem) -> None: ... class StepVisual_PlanarBox(StepVisual_PlanarExtent): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aSizeInX: float, aSizeInY: float, aPlacement: StepGeom_Axis2Placement) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aSizeInX: float, + aSizeInY: float, + aPlacement: StepGeom_Axis2Placement, + ) -> None: ... def Placement(self) -> StepGeom_Axis2Placement: ... def SetPlacement(self, aPlacement: StepGeom_Axis2Placement) -> None: ... @@ -1166,7 +1446,11 @@ class StepVisual_PresentationArea(StepVisual_PresentationRepresentation): class StepVisual_PresentationStyleByContext(StepVisual_PresentationStyleAssignment): def __init__(self) -> None: ... - def Init(self, aStyles: StepVisual_HArray1OfPresentationStyleSelect, aStyleContext: StepVisual_StyleContextSelect) -> None: ... + def Init( + self, + aStyles: StepVisual_HArray1OfPresentationStyleSelect, + aStyleContext: StepVisual_StyleContextSelect, + ) -> None: ... def SetStyleContext(self, aStyleContext: StepVisual_StyleContextSelect) -> None: ... def StyleContext(self) -> StepVisual_StyleContextSelect: ... @@ -1175,15 +1459,24 @@ class StepVisual_PresentationView(StepVisual_PresentationRepresentation): class StepVisual_RepositionedTessellatedItem(StepVisual_TessellatedItem): def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theLocation: StepGeom_Axis2Placement3d) -> None: ... + def Init( + self, theName: TCollection_HAsciiString, theLocation: StepGeom_Axis2Placement3d + ) -> None: ... def Location(self) -> StepGeom_Axis2Placement3d: ... def SetLocation(self, theLocation: StepGeom_Axis2Placement3d) -> None: ... class StepVisual_SurfaceStyleRenderingWithProperties(StepVisual_SurfaceStyleRendering): def __init__(self) -> None: ... - def Init(self, theSurfaceStyleRendering_RenderingMethod: StepVisual_ShadingSurfaceMethod, theSurfaceStyleRendering_SurfaceColour: StepVisual_Colour, theProperties: StepVisual_HArray1OfRenderingPropertiesSelect) -> None: ... + def Init( + self, + theSurfaceStyleRendering_RenderingMethod: StepVisual_ShadingSurfaceMethod, + theSurfaceStyleRendering_SurfaceColour: StepVisual_Colour, + theProperties: StepVisual_HArray1OfRenderingPropertiesSelect, + ) -> None: ... def Properties(self) -> StepVisual_HArray1OfRenderingPropertiesSelect: ... - def SetProperties(self, theProperties: StepVisual_HArray1OfRenderingPropertiesSelect) -> None: ... + def SetProperties( + self, theProperties: StepVisual_HArray1OfRenderingPropertiesSelect + ) -> None: ... class StepVisual_TessellatedAnnotationOccurrence(StepVisual_StyledItem): def __init__(self) -> None: ... @@ -1200,42 +1493,77 @@ class StepVisual_TessellatedGeometricSet(StepVisual_TessellatedItem): class StepVisual_TessellatedPointSet(StepVisual_TessellatedItem): def __init__(self) -> None: ... def Coordinates(self) -> StepVisual_CoordinatesList: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theCoordinates: StepVisual_CoordinatesList, thePointList: TColStd_HArray1OfInteger) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theCoordinates: StepVisual_CoordinatesList, + thePointList: TColStd_HArray1OfInteger, + ) -> None: ... def NbPointList(self) -> int: ... def PointList(self) -> TColStd_HArray1OfInteger: ... def PointListValue(self, theNum: int) -> int: ... def SetCoordinates(self, theCoordinates: StepVisual_CoordinatesList) -> None: ... def SetPointList(self, thePointList: TColStd_HArray1OfInteger) -> None: ... -class StepVisual_TessellatedShapeRepresentationWithAccuracyParameters(StepVisual_TessellatedShapeRepresentation): - def __init__(self) -> None: ... - def Init(self, theRepresentation_Name: TCollection_HAsciiString, theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, theRepresentation_ContextOfItems: StepRepr_RepresentationContext, theTessellationAccuracyParameters: TColStd_HArray1OfReal) -> None: ... +class StepVisual_TessellatedShapeRepresentationWithAccuracyParameters( + StepVisual_TessellatedShapeRepresentation +): + def __init__(self) -> None: ... + def Init( + self, + theRepresentation_Name: TCollection_HAsciiString, + theRepresentation_Items: StepRepr_HArray1OfRepresentationItem, + theRepresentation_ContextOfItems: StepRepr_RepresentationContext, + theTessellationAccuracyParameters: TColStd_HArray1OfReal, + ) -> None: ... def NbTessellationAccuracyParameters(self) -> int: ... - def SetTessellationAccuracyParameters(self, theTessellationAccuracyParameters: TColStd_HArray1OfReal) -> None: ... + def SetTessellationAccuracyParameters( + self, theTessellationAccuracyParameters: TColStd_HArray1OfReal + ) -> None: ... def TessellationAccuracyParameters(self) -> TColStd_HArray1OfReal: ... def TessellationAccuracyParametersValue(self, theNum: int) -> float: ... class StepVisual_TessellatedShell(StepVisual_TessellatedItem): def __init__(self) -> None: ... def HasTopologicalLink(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItems: StepVisual_HArray1OfTessellatedStructuredItem, theHasTopologicalLink: bool, theTopologicalLink: StepShape_ConnectedFaceSet) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItems: StepVisual_HArray1OfTessellatedStructuredItem, + theHasTopologicalLink: bool, + theTopologicalLink: StepShape_ConnectedFaceSet, + ) -> None: ... def Items(self) -> StepVisual_HArray1OfTessellatedStructuredItem: ... def ItemsValue(self, theNum: int) -> StepVisual_TessellatedStructuredItem: ... def NbItems(self) -> int: ... - def SetItems(self, theItems: StepVisual_HArray1OfTessellatedStructuredItem) -> None: ... - def SetTopologicalLink(self, theTopologicalLink: StepShape_ConnectedFaceSet) -> None: ... + def SetItems( + self, theItems: StepVisual_HArray1OfTessellatedStructuredItem + ) -> None: ... + def SetTopologicalLink( + self, theTopologicalLink: StepShape_ConnectedFaceSet + ) -> None: ... def TopologicalLink(self) -> StepShape_ConnectedFaceSet: ... class StepVisual_TessellatedSolid(StepVisual_TessellatedItem): def __init__(self) -> None: ... def GeometricLink(self) -> StepShape_ManifoldSolidBrep: ... def HasGeometricLink(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItems: StepVisual_HArray1OfTessellatedStructuredItem, theHasGeometricLink: bool, theGeometricLink: StepShape_ManifoldSolidBrep) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItems: StepVisual_HArray1OfTessellatedStructuredItem, + theHasGeometricLink: bool, + theGeometricLink: StepShape_ManifoldSolidBrep, + ) -> None: ... def Items(self) -> StepVisual_HArray1OfTessellatedStructuredItem: ... def ItemsValue(self, theNum: int) -> StepVisual_TessellatedStructuredItem: ... def NbItems(self) -> int: ... - def SetGeometricLink(self, theGeometricLink: StepShape_ManifoldSolidBrep) -> None: ... - def SetItems(self, theItems: StepVisual_HArray1OfTessellatedStructuredItem) -> None: ... + def SetGeometricLink( + self, theGeometricLink: StepShape_ManifoldSolidBrep + ) -> None: ... + def SetItems( + self, theItems: StepVisual_HArray1OfTessellatedStructuredItem + ) -> None: ... class StepVisual_TessellatedStructuredItem(StepVisual_TessellatedItem): def __init__(self) -> None: ... @@ -1243,7 +1571,13 @@ class StepVisual_TessellatedStructuredItem(StepVisual_TessellatedItem): class StepVisual_TessellatedSurfaceSet(StepVisual_TessellatedItem): def __init__(self) -> None: ... def Coordinates(self) -> StepVisual_CoordinatesList: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theCoordinates: StepVisual_CoordinatesList, thePnmax: int, theNormals: TColStd_HArray2OfReal) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theCoordinates: StepVisual_CoordinatesList, + thePnmax: int, + theNormals: TColStd_HArray2OfReal, + ) -> None: ... def NbNormals(self) -> int: ... def Normals(self) -> TColStd_HArray2OfReal: ... def Pnmax(self) -> int: ... @@ -1255,20 +1589,37 @@ class StepVisual_TessellatedWire(StepVisual_TessellatedItem): def __init__(self) -> None: ... def GeometricModelLink(self) -> StepVisual_PathOrCompositeCurve: ... def HasGeometricModelLink(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theItems: StepVisual_HArray1OfTessellatedEdgeOrVertex, theHasGeometricModelLink: bool, theGeometricModelLink: StepVisual_PathOrCompositeCurve) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theItems: StepVisual_HArray1OfTessellatedEdgeOrVertex, + theHasGeometricModelLink: bool, + theGeometricModelLink: StepVisual_PathOrCompositeCurve, + ) -> None: ... def Items(self) -> StepVisual_HArray1OfTessellatedEdgeOrVertex: ... def ItemsValue(self, theNum: int) -> StepVisual_TessellatedEdgeOrVertex: ... def NbItems(self) -> int: ... - def SetGeometricModelLink(self, theGeometricModelLink: StepVisual_PathOrCompositeCurve) -> None: ... - def SetItems(self, theItems: StepVisual_HArray1OfTessellatedEdgeOrVertex) -> None: ... + def SetGeometricModelLink( + self, theGeometricModelLink: StepVisual_PathOrCompositeCurve + ) -> None: ... + def SetItems( + self, theItems: StepVisual_HArray1OfTessellatedEdgeOrVertex + ) -> None: ... class StepVisual_TextStyleWithBoxCharacteristics(StepVisual_TextStyle): def __init__(self) -> None: ... def Characteristics(self) -> StepVisual_HArray1OfBoxCharacteristicSelect: ... def CharacteristicsValue(self, num: int) -> StepVisual_BoxCharacteristicSelect: ... - def Init(self, aName: TCollection_HAsciiString, aCharacterAppearance: StepVisual_TextStyleForDefinedFont, aCharacteristics: StepVisual_HArray1OfBoxCharacteristicSelect) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aCharacterAppearance: StepVisual_TextStyleForDefinedFont, + aCharacteristics: StepVisual_HArray1OfBoxCharacteristicSelect, + ) -> None: ... def NbCharacteristics(self) -> int: ... - def SetCharacteristics(self, aCharacteristics: StepVisual_HArray1OfBoxCharacteristicSelect) -> None: ... + def SetCharacteristics( + self, aCharacteristics: StepVisual_HArray1OfBoxCharacteristicSelect + ) -> None: ... class StepVisual_AnnotationCurveOccurrence(StepVisual_AnnotationOccurrence): def __init__(self) -> None: ... @@ -1276,32 +1627,63 @@ class StepVisual_AnnotationCurveOccurrence(StepVisual_AnnotationOccurrence): class StepVisual_AnnotationFillAreaOccurrence(StepVisual_AnnotationOccurrence): def __init__(self) -> None: ... def FillStyleTarget(self) -> StepGeom_GeometricRepresentationItem: ... - def Init(self, theName: TCollection_HAsciiString, theStyles: StepVisual_HArray1OfPresentationStyleAssignment, theItem: Standard_Transient, theFillStyleTarget: StepGeom_GeometricRepresentationItem) -> None: ... - def SetFillStyleTarget(self, theTarget: StepGeom_GeometricRepresentationItem) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theStyles: StepVisual_HArray1OfPresentationStyleAssignment, + theItem: Standard_Transient, + theFillStyleTarget: StepGeom_GeometricRepresentationItem, + ) -> None: ... + def SetFillStyleTarget( + self, theTarget: StepGeom_GeometricRepresentationItem + ) -> None: ... class StepVisual_AnnotationPlane(StepVisual_AnnotationOccurrence): def __init__(self) -> None: ... def Elements(self) -> StepVisual_HArray1OfAnnotationPlaneElement: ... def ElementsValue(self, theNum: int) -> StepVisual_AnnotationPlaneElement: ... - def Init(self, theName: TCollection_HAsciiString, theStyles: StepVisual_HArray1OfPresentationStyleAssignment, theItem: Standard_Transient, theElements: StepVisual_HArray1OfAnnotationPlaneElement) -> None: ... + def Init( + self, + theName: TCollection_HAsciiString, + theStyles: StepVisual_HArray1OfPresentationStyleAssignment, + theItem: Standard_Transient, + theElements: StepVisual_HArray1OfAnnotationPlaneElement, + ) -> None: ... def NbElements(self) -> int: ... - def SetElements(self, theElements: StepVisual_HArray1OfAnnotationPlaneElement) -> None: ... - def SetElementsValue(self, theNum: int, theItem: StepVisual_AnnotationPlaneElement) -> None: ... + def SetElements( + self, theElements: StepVisual_HArray1OfAnnotationPlaneElement + ) -> None: ... + def SetElementsValue( + self, theNum: int, theItem: StepVisual_AnnotationPlaneElement + ) -> None: ... class StepVisual_AnnotationTextOccurrence(StepVisual_AnnotationOccurrence): def __init__(self) -> None: ... class StepVisual_CameraModelD3MultiClipping(StepVisual_CameraModelD3): def __init__(self) -> None: ... - def Init(self, theName: TCollection_HAsciiString, theViewReferenceSystem: StepGeom_Axis2Placement3d, thePerspectiveOfVolume: StepVisual_ViewVolume, theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect) -> None: ... - def SetShapeClipping(self, theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect) -> None: ... - def ShapeClipping(self) -> StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect: ... + def Init( + self, + theName: TCollection_HAsciiString, + theViewReferenceSystem: StepGeom_Axis2Placement3d, + thePerspectiveOfVolume: StepVisual_ViewVolume, + theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect, + ) -> None: ... + def SetShapeClipping( + self, + theShapeClipping: StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect, + ) -> None: ... + def ShapeClipping( + self, + ) -> StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect: ... class StepVisual_ColourRgb(StepVisual_ColourSpecification): def __init__(self) -> None: ... def Blue(self) -> float: ... def Green(self) -> float: ... - def Init(self, aName: TCollection_HAsciiString, aRed: float, aGreen: float, aBlue: float) -> None: ... + def Init( + self, aName: TCollection_HAsciiString, aRed: float, aGreen: float, aBlue: float + ) -> None: ... def Red(self) -> float: ... def SetBlue(self, aBlue: float) -> None: ... def SetGreen(self, aGreen: float) -> None: ... @@ -1309,7 +1691,16 @@ class StepVisual_ColourRgb(StepVisual_ColourSpecification): class StepVisual_ComplexTriangulatedSurfaceSet(StepVisual_TessellatedSurfaceSet): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theTessellatedSurfaceSet_Coordinates: StepVisual_CoordinatesList, theTessellatedSurfaceSet_Pnmax: int, theTessellatedSurfaceSet_Normals: TColStd_HArray2OfReal, thePnindex: TColStd_HArray1OfInteger, theTriangleStrips: TColStd_HArray1OfTransient, theTriangleFans: TColStd_HArray1OfTransient) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theTessellatedSurfaceSet_Coordinates: StepVisual_CoordinatesList, + theTessellatedSurfaceSet_Pnmax: int, + theTessellatedSurfaceSet_Normals: TColStd_HArray2OfReal, + thePnindex: TColStd_HArray1OfInteger, + theTriangleStrips: TColStd_HArray1OfTransient, + theTriangleFans: TColStd_HArray1OfTransient, + ) -> None: ... def NbPnindex(self) -> int: ... def NbTriangleFans(self) -> int: ... def NbTriangleStrips(self) -> int: ... @@ -1317,15 +1708,26 @@ class StepVisual_ComplexTriangulatedSurfaceSet(StepVisual_TessellatedSurfaceSet) def PnindexValue(self, theNum: int) -> int: ... def SetPnindex(self, thePnindex: TColStd_HArray1OfInteger) -> None: ... def SetTriangleFans(self, theTriangleFans: TColStd_HArray1OfTransient) -> None: ... - def SetTriangleStrips(self, theTriangleStrips: TColStd_HArray1OfTransient) -> None: ... + def SetTriangleStrips( + self, theTriangleStrips: TColStd_HArray1OfTransient + ) -> None: ... def TriangleFans(self) -> TColStd_HArray1OfTransient: ... def TriangleStrips(self) -> TColStd_HArray1OfTransient: ... class StepVisual_ContextDependentOverRidingStyledItem(StepVisual_OverRidingStyledItem): def __init__(self) -> None: ... - def Init(self, aName: TCollection_HAsciiString, aStyles: StepVisual_HArray1OfPresentationStyleAssignment, aItem: Standard_Transient, aOverRiddenStyle: StepVisual_StyledItem, aStyleContext: StepVisual_HArray1OfStyleContextSelect) -> None: ... + def Init( + self, + aName: TCollection_HAsciiString, + aStyles: StepVisual_HArray1OfPresentationStyleAssignment, + aItem: Standard_Transient, + aOverRiddenStyle: StepVisual_StyledItem, + aStyleContext: StepVisual_HArray1OfStyleContextSelect, + ) -> None: ... def NbStyleContext(self) -> int: ... - def SetStyleContext(self, aStyleContext: StepVisual_HArray1OfStyleContextSelect) -> None: ... + def SetStyleContext( + self, aStyleContext: StepVisual_HArray1OfStyleContextSelect + ) -> None: ... def StyleContext(self) -> StepVisual_HArray1OfStyleContextSelect: ... def StyleContextValue(self, num: int) -> StepVisual_StyleContextSelect: ... @@ -1341,7 +1743,9 @@ class StepVisual_DraughtingPreDefinedCurveFont(StepVisual_PreDefinedCurveFont): class StepVisual_MechanicalDesignGeometricPresentationArea(StepVisual_PresentationArea): def __init__(self) -> None: ... -class StepVisual_RepositionedTessellatedGeometricSet(StepVisual_TessellatedGeometricSet): +class StepVisual_RepositionedTessellatedGeometricSet( + StepVisual_TessellatedGeometricSet +): def __init__(self) -> None: ... def Location(self) -> StepGeom_Axis2Placement3d: ... def SetLocation(self, theLocation: StepGeom_Axis2Placement3d) -> None: ... @@ -1351,7 +1755,14 @@ class StepVisual_TessellatedEdge(StepVisual_TessellatedStructuredItem): def Coordinates(self) -> StepVisual_CoordinatesList: ... def GeometricLink(self) -> StepVisual_EdgeOrCurve: ... def HasGeometricLink(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theCoordinates: StepVisual_CoordinatesList, theHasGeometricLink: bool, theGeometricLink: StepVisual_EdgeOrCurve, theLineStrip: TColStd_HArray1OfInteger) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theCoordinates: StepVisual_CoordinatesList, + theHasGeometricLink: bool, + theGeometricLink: StepVisual_EdgeOrCurve, + theLineStrip: TColStd_HArray1OfInteger, + ) -> None: ... def LineStrip(self) -> TColStd_HArray1OfInteger: ... def LineStripValue(self, theNum: int) -> int: ... def NbLineStrip(self) -> int: ... @@ -1364,7 +1775,15 @@ class StepVisual_TessellatedFace(StepVisual_TessellatedStructuredItem): def Coordinates(self) -> StepVisual_CoordinatesList: ... def GeometricLink(self) -> StepVisual_FaceOrSurface: ... def HasGeometricLink(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theCoordinates: StepVisual_CoordinatesList, thePnmax: int, theNormals: TColStd_HArray2OfReal, theHasGeometricLink: bool, theGeometricLink: StepVisual_FaceOrSurface) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theCoordinates: StepVisual_CoordinatesList, + thePnmax: int, + theNormals: TColStd_HArray2OfReal, + theHasGeometricLink: bool, + theGeometricLink: StepVisual_FaceOrSurface, + ) -> None: ... def NbNormals(self) -> int: ... def Normals(self) -> TColStd_HArray2OfReal: ... def Pnmax(self) -> int: ... @@ -1377,7 +1796,14 @@ class StepVisual_TessellatedVertex(StepVisual_TessellatedStructuredItem): def __init__(self) -> None: ... def Coordinates(self) -> StepVisual_CoordinatesList: ... def HasTopologicalLink(self) -> bool: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theCoordinates: StepVisual_CoordinatesList, theHasTopologicalLink: bool, theTopologicalLink: StepShape_VertexPoint, thePointIndex: int) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theCoordinates: StepVisual_CoordinatesList, + theHasTopologicalLink: bool, + theTopologicalLink: StepShape_VertexPoint, + thePointIndex: int, + ) -> None: ... def PointIndex(self) -> int: ... def SetCoordinates(self, theCoordinates: StepVisual_CoordinatesList) -> None: ... def SetPointIndex(self, thePointIndex: int) -> None: ... @@ -1386,7 +1812,15 @@ class StepVisual_TessellatedVertex(StepVisual_TessellatedStructuredItem): class StepVisual_TriangulatedSurfaceSet(StepVisual_TessellatedSurfaceSet): def __init__(self) -> None: ... - def Init(self, theRepresentationItemName: TCollection_HAsciiString, theTessellatedFaceCoordinates: StepVisual_CoordinatesList, theTessellatedFacePnmax: int, theTessellatedFaceNormals: TColStd_HArray2OfReal, thePnindex: TColStd_HArray1OfInteger, theTriangles: TColStd_HArray2OfInteger) -> None: ... + def Init( + self, + theRepresentationItemName: TCollection_HAsciiString, + theTessellatedFaceCoordinates: StepVisual_CoordinatesList, + theTessellatedFacePnmax: int, + theTessellatedFaceNormals: TColStd_HArray2OfReal, + thePnindex: TColStd_HArray1OfInteger, + theTriangles: TColStd_HArray2OfInteger, + ) -> None: ... def NbPnindex(self) -> int: ... def NbTriangles(self) -> int: ... def Pnindex(self) -> TColStd_HArray1OfInteger: ... @@ -1395,12 +1829,25 @@ class StepVisual_TriangulatedSurfaceSet(StepVisual_TessellatedSurfaceSet): def SetTriangles(self, theTriangles: TColStd_HArray2OfInteger) -> None: ... def Triangles(self) -> TColStd_HArray2OfInteger: ... -class StepVisual_AnnotationCurveOccurrenceAndGeomReprItem(StepVisual_AnnotationCurveOccurrence): +class StepVisual_AnnotationCurveOccurrenceAndGeomReprItem( + StepVisual_AnnotationCurveOccurrence +): def __init__(self) -> None: ... class StepVisual_ComplexTriangulatedFace(StepVisual_TessellatedFace): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theTessellatedFace_Coordinates: StepVisual_CoordinatesList, theTessellatedFace_Pnmax: int, theTessellatedFace_Normals: TColStd_HArray2OfReal, theHasTessellatedFace_GeometricLink: bool, theTessellatedFace_GeometricLink: StepVisual_FaceOrSurface, thePnindex: TColStd_HArray1OfInteger, theTriangleStrips: TColStd_HArray1OfTransient, theTriangleFans: TColStd_HArray1OfTransient) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theTessellatedFace_Coordinates: StepVisual_CoordinatesList, + theTessellatedFace_Pnmax: int, + theTessellatedFace_Normals: TColStd_HArray2OfReal, + theHasTessellatedFace_GeometricLink: bool, + theTessellatedFace_GeometricLink: StepVisual_FaceOrSurface, + thePnindex: TColStd_HArray1OfInteger, + theTriangleStrips: TColStd_HArray1OfTransient, + theTriangleFans: TColStd_HArray1OfTransient, + ) -> None: ... def NbPnindex(self) -> int: ... def NbTriangleFans(self) -> int: ... def NbTriangleStrips(self) -> int: ... @@ -1408,7 +1855,9 @@ class StepVisual_ComplexTriangulatedFace(StepVisual_TessellatedFace): def PnindexValue(self, theNum: int) -> int: ... def SetPnindex(self, thePnindex: TColStd_HArray1OfInteger) -> None: ... def SetTriangleFans(self, theTriangleFans: TColStd_HArray1OfTransient) -> None: ... - def SetTriangleStrips(self, theTriangleStrips: TColStd_HArray1OfTransient) -> None: ... + def SetTriangleStrips( + self, theTriangleStrips: TColStd_HArray1OfTransient + ) -> None: ... def TriangleFans(self) -> TColStd_HArray1OfTransient: ... def TriangleStrips(self) -> TColStd_HArray1OfTransient: ... @@ -1418,7 +1867,16 @@ class StepVisual_CubicBezierTessellatedEdge(StepVisual_TessellatedEdge): class StepVisual_CubicBezierTriangulatedFace(StepVisual_TessellatedFace): def __init__(self) -> None: ... def Ctriangles(self) -> TColStd_HArray2OfInteger: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theTessellatedFace_Coordinates: StepVisual_CoordinatesList, theTessellatedFace_Pnmax: int, theTessellatedFace_Normals: TColStd_HArray2OfReal, theHasTessellatedFace_GeometricLink: bool, theTessellatedFace_GeometricLink: StepVisual_FaceOrSurface, theCtriangles: TColStd_HArray2OfInteger) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theTessellatedFace_Coordinates: StepVisual_CoordinatesList, + theTessellatedFace_Pnmax: int, + theTessellatedFace_Normals: TColStd_HArray2OfReal, + theHasTessellatedFace_GeometricLink: bool, + theTessellatedFace_GeometricLink: StepVisual_FaceOrSurface, + theCtriangles: TColStd_HArray2OfInteger, + ) -> None: ... def NbCtriangles(self) -> int: ... def SetCtriangles(self, theCtriangles: TColStd_HArray2OfInteger) -> None: ... @@ -1426,7 +1884,19 @@ class StepVisual_TessellatedConnectingEdge(StepVisual_TessellatedEdge): def __init__(self) -> None: ... def Face1(self) -> StepVisual_TessellatedFace: ... def Face2(self) -> StepVisual_TessellatedFace: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theTessellatedEdge_Coordinates: StepVisual_CoordinatesList, theHasTessellatedEdge_GeometricLink: bool, theTessellatedEdge_GeometricLink: StepVisual_EdgeOrCurve, theTessellatedEdge_LineStrip: TColStd_HArray1OfInteger, theSmooth: StepData_Logical, theFace1: StepVisual_TessellatedFace, theFace2: StepVisual_TessellatedFace, theLineStripFace1: TColStd_HArray1OfInteger, theLineStripFace2: TColStd_HArray1OfInteger) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theTessellatedEdge_Coordinates: StepVisual_CoordinatesList, + theHasTessellatedEdge_GeometricLink: bool, + theTessellatedEdge_GeometricLink: StepVisual_EdgeOrCurve, + theTessellatedEdge_LineStrip: TColStd_HArray1OfInteger, + theSmooth: StepData_Logical, + theFace1: StepVisual_TessellatedFace, + theFace2: StepVisual_TessellatedFace, + theLineStripFace1: TColStd_HArray1OfInteger, + theLineStripFace2: TColStd_HArray1OfInteger, + ) -> None: ... def LineStripFace1(self) -> TColStd_HArray1OfInteger: ... def LineStripFace1Value(self, theNum: int) -> int: ... def LineStripFace2(self) -> TColStd_HArray1OfInteger: ... @@ -1435,14 +1905,28 @@ class StepVisual_TessellatedConnectingEdge(StepVisual_TessellatedEdge): def NbLineStripFace2(self) -> int: ... def SetFace1(self, theFace1: StepVisual_TessellatedFace) -> None: ... def SetFace2(self, theFace2: StepVisual_TessellatedFace) -> None: ... - def SetLineStripFace1(self, theLineStripFace1: TColStd_HArray1OfInteger) -> None: ... - def SetLineStripFace2(self, theLineStripFace2: TColStd_HArray1OfInteger) -> None: ... + def SetLineStripFace1( + self, theLineStripFace1: TColStd_HArray1OfInteger + ) -> None: ... + def SetLineStripFace2( + self, theLineStripFace2: TColStd_HArray1OfInteger + ) -> None: ... def SetSmooth(self, theSmooth: StepData_Logical) -> None: ... def Smooth(self) -> StepData_Logical: ... class StepVisual_TriangulatedFace(StepVisual_TessellatedFace): def __init__(self) -> None: ... - def Init(self, theRepresentationItem_Name: TCollection_HAsciiString, theTessellatedFace_Coordinates: StepVisual_CoordinatesList, theTessellatedFace_Pnmax: int, theTessellatedFace_Normals: TColStd_HArray2OfReal, theHasTessellatedFace_GeometricLink: bool, theTessellatedFace_GeometricLink: StepVisual_FaceOrSurface, thePnindex: TColStd_HArray1OfInteger, theTriangles: TColStd_HArray2OfInteger) -> None: ... + def Init( + self, + theRepresentationItem_Name: TCollection_HAsciiString, + theTessellatedFace_Coordinates: StepVisual_CoordinatesList, + theTessellatedFace_Pnmax: int, + theTessellatedFace_Normals: TColStd_HArray2OfReal, + theHasTessellatedFace_GeometricLink: bool, + theTessellatedFace_GeometricLink: StepVisual_FaceOrSurface, + thePnindex: TColStd_HArray1OfInteger, + theTriangles: TColStd_HArray2OfInteger, + ) -> None: ... def NbPnindex(self) -> int: ... def NbTriangles(self) -> int: ... def Pnindex(self) -> TColStd_HArray1OfInteger: ... @@ -1453,95 +1937,115 @@ class StepVisual_TriangulatedFace(StepVisual_TessellatedFace): # harray1 classes -class StepVisual_HArray1OfAnnotationPlaneElement(StepVisual_Array1OfAnnotationPlaneElement, Standard_Transient): +class StepVisual_HArray1OfAnnotationPlaneElement( + StepVisual_Array1OfAnnotationPlaneElement, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfAnnotationPlaneElement: ... - -class StepVisual_HArray1OfBoxCharacteristicSelect(StepVisual_Array1OfBoxCharacteristicSelect, Standard_Transient): +class StepVisual_HArray1OfBoxCharacteristicSelect( + StepVisual_Array1OfBoxCharacteristicSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfBoxCharacteristicSelect: ... - -class StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect(StepVisual_Array1OfCameraModelD3MultiClippingInterectionSelect, Standard_Transient): +class StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect( + StepVisual_Array1OfCameraModelD3MultiClippingInterectionSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... - def Array1(self) -> StepVisual_Array1OfCameraModelD3MultiClippingInterectionSelect: ... - + def Array1( + self, + ) -> StepVisual_Array1OfCameraModelD3MultiClippingInterectionSelect: ... -class StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect(StepVisual_Array1OfCameraModelD3MultiClippingUnionSelect, Standard_Transient): +class StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect( + StepVisual_Array1OfCameraModelD3MultiClippingUnionSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfCameraModelD3MultiClippingUnionSelect: ... - -class StepVisual_HArray1OfCurveStyleFontPattern(StepVisual_Array1OfCurveStyleFontPattern, Standard_Transient): +class StepVisual_HArray1OfCurveStyleFontPattern( + StepVisual_Array1OfCurveStyleFontPattern, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfCurveStyleFontPattern: ... - -class StepVisual_HArray1OfDirectionCountSelect(StepVisual_Array1OfDirectionCountSelect, Standard_Transient): +class StepVisual_HArray1OfDirectionCountSelect( + StepVisual_Array1OfDirectionCountSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfDirectionCountSelect: ... - -class StepVisual_HArray1OfDraughtingCalloutElement(StepVisual_Array1OfDraughtingCalloutElement, Standard_Transient): +class StepVisual_HArray1OfDraughtingCalloutElement( + StepVisual_Array1OfDraughtingCalloutElement, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfDraughtingCalloutElement: ... - -class StepVisual_HArray1OfFillStyleSelect(StepVisual_Array1OfFillStyleSelect, Standard_Transient): +class StepVisual_HArray1OfFillStyleSelect( + StepVisual_Array1OfFillStyleSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfFillStyleSelect: ... - -class StepVisual_HArray1OfInvisibleItem(StepVisual_Array1OfInvisibleItem, Standard_Transient): +class StepVisual_HArray1OfInvisibleItem( + StepVisual_Array1OfInvisibleItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfInvisibleItem: ... - -class StepVisual_HArray1OfLayeredItem(StepVisual_Array1OfLayeredItem, Standard_Transient): +class StepVisual_HArray1OfLayeredItem( + StepVisual_Array1OfLayeredItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfLayeredItem: ... - -class StepVisual_HArray1OfPresentationStyleAssignment(StepVisual_Array1OfPresentationStyleAssignment, Standard_Transient): +class StepVisual_HArray1OfPresentationStyleAssignment( + StepVisual_Array1OfPresentationStyleAssignment, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfPresentationStyleAssignment: ... - -class StepVisual_HArray1OfPresentationStyleSelect(StepVisual_Array1OfPresentationStyleSelect, Standard_Transient): +class StepVisual_HArray1OfPresentationStyleSelect( + StepVisual_Array1OfPresentationStyleSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfPresentationStyleSelect: ... - -class StepVisual_HArray1OfRenderingPropertiesSelect(StepVisual_Array1OfRenderingPropertiesSelect, Standard_Transient): +class StepVisual_HArray1OfRenderingPropertiesSelect( + StepVisual_Array1OfRenderingPropertiesSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfRenderingPropertiesSelect: ... - -class StepVisual_HArray1OfStyleContextSelect(StepVisual_Array1OfStyleContextSelect, Standard_Transient): +class StepVisual_HArray1OfStyleContextSelect( + StepVisual_Array1OfStyleContextSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfStyleContextSelect: ... - -class StepVisual_HArray1OfSurfaceStyleElementSelect(StepVisual_Array1OfSurfaceStyleElementSelect, Standard_Transient): +class StepVisual_HArray1OfSurfaceStyleElementSelect( + StepVisual_Array1OfSurfaceStyleElementSelect, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfSurfaceStyleElementSelect: ... - -class StepVisual_HArray1OfTessellatedEdgeOrVertex(StepVisual_Array1OfTessellatedEdgeOrVertex, Standard_Transient): +class StepVisual_HArray1OfTessellatedEdgeOrVertex( + StepVisual_Array1OfTessellatedEdgeOrVertex, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfTessellatedEdgeOrVertex: ... - -class StepVisual_HArray1OfTessellatedStructuredItem(StepVisual_Array1OfTessellatedStructuredItem, Standard_Transient): +class StepVisual_HArray1OfTessellatedStructuredItem( + StepVisual_Array1OfTessellatedStructuredItem, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfTessellatedStructuredItem: ... - -class StepVisual_HArray1OfTextOrCharacter(StepVisual_Array1OfTextOrCharacter, Standard_Transient): +class StepVisual_HArray1OfTextOrCharacter( + StepVisual_Array1OfTextOrCharacter, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> StepVisual_Array1OfTextOrCharacter: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/StlAPI.pyi b/src/SWIG_files/wrapper/StlAPI.pyi index 091947132..dc2b2dbf9 100644 --- a/src/SWIG_files/wrapper/StlAPI.pyi +++ b/src/SWIG_files/wrapper/StlAPI.pyi @@ -6,12 +6,13 @@ from OCC.Core.NCollection import * from OCC.Core.TopoDS import * from OCC.Core.Message import * - class stlapi: @staticmethod def Read(theShape: TopoDS_Shape, aFile: str) -> bool: ... @staticmethod - def Write(theShape: TopoDS_Shape, theFile: str, theAsciiMode: Optional[bool] = True) -> bool: ... + def Write( + theShape: TopoDS_Shape, theFile: str, theAsciiMode: Optional[bool] = True + ) -> bool: ... class StlAPI_Reader: def Read(self, theShape: TopoDS_Shape, theFileName: str) -> bool: ... @@ -20,9 +21,13 @@ class StlAPI_Writer: def __init__(self) -> None: ... def GetASCIIMode(self) -> bool: ... def SetASCIIMode(self, value: bool) -> None: ... - def Write(self, theShape: TopoDS_Shape, theFileName: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def Write( + self, + theShape: TopoDS_Shape, + theFileName: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Storage.pyi b/src/SWIG_files/wrapper/Storage.pyi index 623eb50c6..1b647eb9a 100644 --- a/src/SWIG_files/wrapper/Storage.pyi +++ b/src/SWIG_files/wrapper/Storage.pyi @@ -57,19 +57,25 @@ class Storage_ArrayOfSchema: def SetValue(self, theIndex: int, theValue: False) -> None: ... class Storage_SeqOfRoot: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Storage_Error(IntEnum): Storage_VSOk: int = ... @@ -122,49 +128,49 @@ Storage_AddSolve = Storage_SolveMode.Storage_AddSolve Storage_WriteSolve = Storage_SolveMode.Storage_WriteSolve Storage_ReadSolve = Storage_SolveMode.Storage_ReadSolve -#classnotwrapped +# classnotwrapped class Storage: ... -#classnotwrapped +# classnotwrapped class Storage_BaseDriver: ... -#classnotwrapped +# classnotwrapped class Storage_Bucket: ... -#classnotwrapped +# classnotwrapped class Storage_BucketOfPersistent: ... -#classnotwrapped +# classnotwrapped class Storage_BucketIterator: ... -#classnotwrapped +# classnotwrapped class Storage_CallBack: ... -#classnotwrapped +# classnotwrapped class Storage_Data: ... -#classnotwrapped +# classnotwrapped class Storage_DefaultCallBack: ... -#classnotwrapped +# classnotwrapped class Storage_HeaderData: ... -#classnotwrapped +# classnotwrapped class Storage_InternalData: ... -#classnotwrapped +# classnotwrapped class Storage_Root: ... -#classnotwrapped +# classnotwrapped class Storage_RootData: ... -#classnotwrapped +# classnotwrapped class Storage_Schema: ... -#classnotwrapped +# classnotwrapped class Storage_TypeData: ... -#classnotwrapped +# classnotwrapped class Storage_TypedCallBack: ... # harray1 classes @@ -173,12 +179,10 @@ class Storage_HArrayOfCallBack(Storage_ArrayOfCallBack, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Storage_ArrayOfCallBack: ... - class Storage_HArrayOfSchema(Storage_ArrayOfSchema, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Storage_ArrayOfSchema: ... - class Storage_HPArray(Storage_PArray, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> Storage_PArray: ... @@ -193,5 +197,3 @@ class Storage_HSeqOfRoot(Storage_SeqOfRoot, Standard_Transient): def __init__(self, other: Storage_SeqOfRoot) -> None: ... def Sequence(self) -> Storage_SeqOfRoot: ... def Append(self, theSequence: Storage_SeqOfRoot) -> None: ... - - diff --git a/src/SWIG_files/wrapper/Sweep.pyi b/src/SWIG_files/wrapper/Sweep.pyi index bebae68e0..85204bd0d 100644 --- a/src/SWIG_files/wrapper/Sweep.pyi +++ b/src/SWIG_files/wrapper/Sweep.pyi @@ -5,17 +5,30 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.TopAbs import * - class Sweep_NumShape: @overload def __init__(self) -> None: ... @overload - def __init__(self, Index: int, Type: TopAbs_ShapeEnum, Closed: Optional[bool] = False, BegInf: Optional[bool] = False, EndInf: Optional[bool] = False) -> None: ... + def __init__( + self, + Index: int, + Type: TopAbs_ShapeEnum, + Closed: Optional[bool] = False, + BegInf: Optional[bool] = False, + EndInf: Optional[bool] = False, + ) -> None: ... def BegInfinite(self) -> bool: ... def Closed(self) -> bool: ... def EndInfinite(self) -> bool: ... def Index(self) -> int: ... - def Init(self, Index: int, Type: TopAbs_ShapeEnum, Closed: Optional[bool] = False, BegInf: Optional[bool] = False, EndInf: Optional[bool] = False) -> None: ... + def Init( + self, + Index: int, + Type: TopAbs_ShapeEnum, + Closed: Optional[bool] = False, + BegInf: Optional[bool] = False, + EndInf: Optional[bool] = False, + ) -> None: ... def Orientation(self) -> TopAbs_Orientation: ... def Type(self) -> TopAbs_ShapeEnum: ... @@ -42,4 +55,3 @@ class Sweep_NumShapeTool: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TColGeom.pyi b/src/SWIG_files/wrapper/TColGeom.pyi index 00ee0b542..5b70905cd 100644 --- a/src/SWIG_files/wrapper/TColGeom.pyi +++ b/src/SWIG_files/wrapper/TColGeom.pyi @@ -107,49 +107,67 @@ class TColGeom_Array1OfSurface: def SetValue(self, theIndex: int, theValue: False) -> None: ... class TColGeom_SequenceOfBoundedCurve: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TColGeom_SequenceOfCurve: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColGeom_SequenceOfCurve: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TColGeom_SequenceOfSurface: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColGeom_SequenceOfSurface: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... # harray1 classes @@ -157,17 +175,14 @@ class TColGeom_HArray1OfBSplineCurve(TColGeom_Array1OfBSplineCurve, Standard_Tra def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColGeom_Array1OfBSplineCurve: ... - class TColGeom_HArray1OfBezierCurve(TColGeom_Array1OfBezierCurve, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColGeom_Array1OfBezierCurve: ... - class TColGeom_HArray1OfCurve(TColGeom_Array1OfCurve, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColGeom_Array1OfCurve: ... - class TColGeom_HArray1OfSurface(TColGeom_Array1OfSurface, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColGeom_Array1OfSurface: ... @@ -176,14 +191,18 @@ class TColGeom_HArray1OfSurface(TColGeom_Array1OfSurface, Standard_Transient): class TColGeom_HArray2OfSurface(TColGeom_Array2OfSurface, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColGeom_Array2OfSurface) -> None: ... def Array2(self) -> TColGeom_Array2OfSurface: ... # hsequence classes -class TColGeom_HSequenceOfBoundedCurve(TColGeom_SequenceOfBoundedCurve, Standard_Transient): +class TColGeom_HSequenceOfBoundedCurve( + TColGeom_SequenceOfBoundedCurve, Standard_Transient +): @overload def __init__(self) -> None: ... @overload @@ -191,7 +210,6 @@ class TColGeom_HSequenceOfBoundedCurve(TColGeom_SequenceOfBoundedCurve, Standard def Sequence(self) -> TColGeom_SequenceOfBoundedCurve: ... def Append(self, theSequence: TColGeom_SequenceOfBoundedCurve) -> None: ... - class TColGeom_HSequenceOfCurve(TColGeom_SequenceOfCurve, Standard_Transient): @overload def __init__(self) -> None: ... @@ -199,5 +217,3 @@ class TColGeom_HSequenceOfCurve(TColGeom_SequenceOfCurve, Standard_Transient): def __init__(self, other: TColGeom_SequenceOfCurve) -> None: ... def Sequence(self) -> TColGeom_SequenceOfCurve: ... def Append(self, theSequence: TColGeom_SequenceOfCurve) -> None: ... - - diff --git a/src/SWIG_files/wrapper/TColGeom2d.pyi b/src/SWIG_files/wrapper/TColGeom2d.pyi index d550ed4c8..f74eaa59c 100644 --- a/src/SWIG_files/wrapper/TColGeom2d.pyi +++ b/src/SWIG_files/wrapper/TColGeom2d.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.Geom2d import * - class TColGeom2d_Array1OfBSplineCurve: @overload def __init__(self) -> None: ... @@ -79,62 +78,82 @@ class TColGeom2d_Array1OfCurve: def SetValue(self, theIndex: int, theValue: False) -> None: ... class TColGeom2d_SequenceOfBoundedCurve: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TColGeom2d_SequenceOfCurve: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColGeom2d_SequenceOfCurve: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TColGeom2d_SequenceOfGeometry: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColGeom2d_SequenceOfGeometry: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... # harray1 classes -class TColGeom2d_HArray1OfBSplineCurve(TColGeom2d_Array1OfBSplineCurve, Standard_Transient): +class TColGeom2d_HArray1OfBSplineCurve( + TColGeom2d_Array1OfBSplineCurve, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColGeom2d_Array1OfBSplineCurve: ... - -class TColGeom2d_HArray1OfBezierCurve(TColGeom2d_Array1OfBezierCurve, Standard_Transient): +class TColGeom2d_HArray1OfBezierCurve( + TColGeom2d_Array1OfBezierCurve, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColGeom2d_Array1OfBezierCurve: ... - class TColGeom2d_HArray1OfCurve(TColGeom2d_Array1OfCurve, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColGeom2d_Array1OfCurve: ... @@ -142,7 +161,9 @@ class TColGeom2d_HArray1OfCurve(TColGeom2d_Array1OfCurve, Standard_Transient): # harray2 classes # hsequence classes -class TColGeom2d_HSequenceOfBoundedCurve(TColGeom2d_SequenceOfBoundedCurve, Standard_Transient): +class TColGeom2d_HSequenceOfBoundedCurve( + TColGeom2d_SequenceOfBoundedCurve, Standard_Transient +): @overload def __init__(self) -> None: ... @overload @@ -150,7 +171,6 @@ class TColGeom2d_HSequenceOfBoundedCurve(TColGeom2d_SequenceOfBoundedCurve, Stan def Sequence(self) -> TColGeom2d_SequenceOfBoundedCurve: ... def Append(self, theSequence: TColGeom2d_SequenceOfBoundedCurve) -> None: ... - class TColGeom2d_HSequenceOfCurve(TColGeom2d_SequenceOfCurve, Standard_Transient): @overload def __init__(self) -> None: ... @@ -158,5 +178,3 @@ class TColGeom2d_HSequenceOfCurve(TColGeom2d_SequenceOfCurve, Standard_Transient def __init__(self, other: TColGeom2d_SequenceOfCurve) -> None: ... def Sequence(self) -> TColGeom2d_SequenceOfCurve: ... def Append(self, theSequence: TColGeom2d_SequenceOfCurve) -> None: ... - - diff --git a/src/SWIG_files/wrapper/TColQuantity.pyi b/src/SWIG_files/wrapper/TColQuantity.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/TColQuantity.pyi +++ b/src/SWIG_files/wrapper/TColQuantity.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TColStd.i b/src/SWIG_files/wrapper/TColStd.i index 328d1b90b..48306a4ba 100644 --- a/src/SWIG_files/wrapper/TColStd.i +++ b/src/SWIG_files/wrapper/TColStd.i @@ -220,6 +220,12 @@ Array2NumpyTemplate(TColStd_Array2OfReal, double, Standard_Real) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TColStd_ListIteratorOfListOfAsciiString(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TColStd_ListOfInteger) NCollection_List; @@ -228,6 +234,12 @@ Array2NumpyTemplate(TColStd_Array2OfReal, double, Standard_Real) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TColStd_ListIteratorOfListOfInteger(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TColStd_ListOfReal) NCollection_List; @@ -236,6 +248,12 @@ Array2NumpyTemplate(TColStd_Array2OfReal, double, Standard_Real) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TColStd_ListIteratorOfListOfReal(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TColStd_ListOfTransient) NCollection_List>; @@ -244,6 +262,12 @@ Array2NumpyTemplate(TColStd_Array2OfReal, double, Standard_Real) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TColStd_ListIteratorOfListOfTransient(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TColStd_MapOfAsciiString) NCollection_Map; diff --git a/src/SWIG_files/wrapper/TColStd.pyi b/src/SWIG_files/wrapper/TColStd.pyi index 139794b05..34b4dca60 100644 --- a/src/SWIG_files/wrapper/TColStd.pyi +++ b/src/SWIG_files/wrapper/TColStd.pyi @@ -16,9 +16,13 @@ TColStd_Array2OfReal = NewType("TColStd_Array2OfReal", Any) # the following typedef cannot be wrapped as is TColStd_Array2OfTransient = NewType("TColStd_Array2OfTransient", Any) # the following typedef cannot be wrapped as is -TColStd_IndexedDataMapOfStringString = NewType("TColStd_IndexedDataMapOfStringString", Any) +TColStd_IndexedDataMapOfStringString = NewType( + "TColStd_IndexedDataMapOfStringString", Any +) # the following typedef cannot be wrapped as is -TColStd_IndexedDataMapOfTransientTransient = NewType("TColStd_IndexedDataMapOfTransientTransient", Any) +TColStd_IndexedDataMapOfTransientTransient = NewType( + "TColStd_IndexedDataMapOfTransientTransient", Any +) # the following typedef cannot be wrapped as is TColStd_IndexedMapOfInteger = NewType("TColStd_IndexedMapOfInteger", Any) # the following typedef cannot be wrapped as is @@ -26,15 +30,21 @@ TColStd_IndexedMapOfReal = NewType("TColStd_IndexedMapOfReal", Any) # the following typedef cannot be wrapped as is TColStd_IndexedMapOfTransient = NewType("TColStd_IndexedMapOfTransient", Any) # the following typedef cannot be wrapped as is -TColStd_MapIteratorOfMapOfAsciiString = NewType("TColStd_MapIteratorOfMapOfAsciiString", Any) +TColStd_MapIteratorOfMapOfAsciiString = NewType( + "TColStd_MapIteratorOfMapOfAsciiString", Any +) # the following typedef cannot be wrapped as is TColStd_MapIteratorOfMapOfInteger = NewType("TColStd_MapIteratorOfMapOfInteger", Any) # the following typedef cannot be wrapped as is TColStd_MapIteratorOfMapOfReal = NewType("TColStd_MapIteratorOfMapOfReal", Any) # the following typedef cannot be wrapped as is -TColStd_MapIteratorOfMapOfTransient = NewType("TColStd_MapIteratorOfMapOfTransient", Any) +TColStd_MapIteratorOfMapOfTransient = NewType( + "TColStd_MapIteratorOfMapOfTransient", Any +) # the following typedef cannot be wrapped as is -TColStd_MapIteratorOfPackedMapOfInteger = NewType("TColStd_MapIteratorOfPackedMapOfInteger", Any) +TColStd_MapIteratorOfPackedMapOfInteger = NewType( + "TColStd_MapIteratorOfPackedMapOfInteger", Any +) # the following typedef cannot be wrapped as is TColStd_MapOfAsciiString = NewType("TColStd_MapOfAsciiString", Any) # the following typedef cannot be wrapped as is @@ -237,195 +247,251 @@ class TColStd_Array1OfTransient: def SetValue(self, theIndex: int, theValue: False) -> None: ... class TColStd_ListOfAsciiString: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: str) -> str: ... + def Assign( + self, theItem: TColStd_ListOfAsciiString + ) -> TColStd_ListOfAsciiString: ... def Clear(self) -> None: ... def First(self) -> str: ... def Last(self) -> str: ... - def Append(self, theItem: str) -> str: ... def Prepend(self, theItem: str) -> str: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> str: ... - def SetValue(self, theIndex: int, theValue: str) -> None: ... - -class TColStd_ListOfInteger: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> str: ... + +class TColStd_ListOfInteger: + def Append(self, theItem: int) -> int: ... + def Assign(self, theItem: TColStd_ListOfInteger) -> TColStd_ListOfInteger: ... def Clear(self) -> None: ... def First(self) -> int: ... def Last(self) -> int: ... - def Append(self, theItem: int) -> int: ... def Prepend(self, theItem: int) -> int: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> int: ... - def SetValue(self, theIndex: int, theValue: int) -> None: ... - -class TColStd_ListOfReal: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> int: ... + +class TColStd_ListOfReal: + def Append(self, theItem: float) -> float: ... + def Assign(self, theItem: TColStd_ListOfReal) -> TColStd_ListOfReal: ... def Clear(self) -> None: ... def First(self) -> float: ... def Last(self) -> float: ... - def Append(self, theItem: float) -> float: ... def Prepend(self, theItem: float) -> float: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> float: ... - def SetValue(self, theIndex: int, theValue: float) -> None: ... - -class TColStd_ListOfTransient: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> float: ... + +class TColStd_ListOfTransient: + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: TColStd_ListOfTransient) -> TColStd_ListOfTransient: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TColStd_SequenceOfAddress: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class TColStd_SequenceOfAddress: + def Assign(self, theItem: None) -> None: ... def Clear(self) -> None: ... def First(self) -> None: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> None: ... def Length(self) -> int: ... - def Append(self, theItem: None) -> None: ... + def Lower(self) -> int: ... def Prepend(self, theItem: None) -> None: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> None: ... def SetValue(self, theIndex: int, theValue: None) -> None: ... - -class TColStd_SequenceOfAsciiString: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> None: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColStd_SequenceOfAsciiString: + def Assign(self, theItem: str) -> str: ... def Clear(self) -> None: ... def First(self) -> str: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> str: ... def Length(self) -> int: ... - def Append(self, theItem: str) -> str: ... + def Lower(self) -> int: ... def Prepend(self, theItem: str) -> str: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> str: ... def SetValue(self, theIndex: int, theValue: str) -> None: ... - -class TColStd_SequenceOfBoolean: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> str: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColStd_SequenceOfBoolean: + def Assign(self, theItem: bool) -> bool: ... def Clear(self) -> None: ... def First(self) -> bool: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> bool: ... def Length(self) -> int: ... - def Append(self, theItem: bool) -> bool: ... + def Lower(self) -> int: ... def Prepend(self, theItem: bool) -> bool: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> bool: ... def SetValue(self, theIndex: int, theValue: bool) -> None: ... - -class TColStd_SequenceOfExtendedString: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> bool: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColStd_SequenceOfExtendedString: + def Assign(self, theItem: str) -> str: ... def Clear(self) -> None: ... def First(self) -> str: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> str: ... def Length(self) -> int: ... - def Append(self, theItem: str) -> str: ... + def Lower(self) -> int: ... def Prepend(self, theItem: str) -> str: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> str: ... def SetValue(self, theIndex: int, theValue: str) -> None: ... - -class TColStd_SequenceOfHAsciiString: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> str: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColStd_SequenceOfHAsciiString: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TColStd_SequenceOfHExtendedString: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColStd_SequenceOfHExtendedString: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TColStd_SequenceOfInteger: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColStd_SequenceOfInteger: + def Assign(self, theItem: int) -> int: ... def Clear(self) -> None: ... def First(self) -> int: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> int: ... def Length(self) -> int: ... - def Append(self, theItem: int) -> int: ... + def Lower(self) -> int: ... def Prepend(self, theItem: int) -> int: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> int: ... def SetValue(self, theIndex: int, theValue: int) -> None: ... - -class TColStd_SequenceOfReal: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColStd_SequenceOfReal: + def Assign(self, theItem: float) -> float: ... def Clear(self) -> None: ... def First(self) -> float: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> float: ... def Length(self) -> int: ... - def Append(self, theItem: float) -> float: ... + def Lower(self) -> int: ... def Prepend(self, theItem: float) -> float: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> float: ... def SetValue(self, theIndex: int, theValue: float) -> None: ... - -class TColStd_SequenceOfTransient: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> float: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColStd_SequenceOfTransient: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class TColStd_HPackedMapOfInteger(Standard_Transient): @overload @@ -458,42 +524,36 @@ class TColStd_HArray1OfAsciiString(TColStd_Array1OfAsciiString, Standard_Transie def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColStd_Array1OfAsciiString: ... - class TColStd_HArray1OfBoolean(TColStd_Array1OfBoolean, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColStd_Array1OfBoolean: ... - class TColStd_HArray1OfByte(TColStd_Array1OfByte, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColStd_Array1OfByte: ... - class TColStd_HArray1OfCharacter(TColStd_Array1OfCharacter, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColStd_Array1OfCharacter: ... - -class TColStd_HArray1OfExtendedString(TColStd_Array1OfExtendedString, Standard_Transient): +class TColStd_HArray1OfExtendedString( + TColStd_Array1OfExtendedString, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColStd_Array1OfExtendedString: ... - class TColStd_HArray1OfInteger(TColStd_Array1OfInteger, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColStd_Array1OfInteger: ... - class TColStd_HArray1OfListOfInteger(TColStd_Array1OfListOfInteger, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColStd_Array1OfListOfInteger: ... - class TColStd_HArray1OfReal(TColStd_Array1OfReal, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColStd_Array1OfReal: ... - class TColStd_HArray1OfTransient(TColStd_Array1OfTransient, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColStd_Array1OfTransient: ... @@ -502,39 +562,45 @@ class TColStd_HArray1OfTransient(TColStd_Array1OfTransient, Standard_Transient): class TColStd_HArray2OfBoolean(TColStd_Array2OfBoolean, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColStd_Array2OfBoolean) -> None: ... def Array2(self) -> TColStd_Array2OfBoolean: ... - class TColStd_HArray2OfCharacter(TColStd_Array2OfCharacter, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColStd_Array2OfCharacter) -> None: ... def Array2(self) -> TColStd_Array2OfCharacter: ... - class TColStd_HArray2OfInteger(TColStd_Array2OfInteger, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColStd_Array2OfInteger) -> None: ... def Array2(self) -> TColStd_Array2OfInteger: ... - class TColStd_HArray2OfReal(TColStd_Array2OfReal, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColStd_Array2OfReal) -> None: ... def Array2(self) -> TColStd_Array2OfReal: ... - class TColStd_HArray2OfTransient(TColStd_Array2OfTransient, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColStd_Array2OfTransient) -> None: ... def Array2(self) -> TColStd_Array2OfTransient: ... @@ -549,8 +615,9 @@ class TColStd_HSequenceOfAsciiString(TColStd_SequenceOfAsciiString, Standard_Tra def Sequence(self) -> TColStd_SequenceOfAsciiString: ... def Append(self, theSequence: TColStd_SequenceOfAsciiString) -> None: ... - -class TColStd_HSequenceOfExtendedString(TColStd_SequenceOfExtendedString, Standard_Transient): +class TColStd_HSequenceOfExtendedString( + TColStd_SequenceOfExtendedString, Standard_Transient +): @overload def __init__(self) -> None: ... @overload @@ -558,8 +625,9 @@ class TColStd_HSequenceOfExtendedString(TColStd_SequenceOfExtendedString, Standa def Sequence(self) -> TColStd_SequenceOfExtendedString: ... def Append(self, theSequence: TColStd_SequenceOfExtendedString) -> None: ... - -class TColStd_HSequenceOfHAsciiString(TColStd_SequenceOfHAsciiString, Standard_Transient): +class TColStd_HSequenceOfHAsciiString( + TColStd_SequenceOfHAsciiString, Standard_Transient +): @overload def __init__(self) -> None: ... @overload @@ -567,8 +635,9 @@ class TColStd_HSequenceOfHAsciiString(TColStd_SequenceOfHAsciiString, Standard_T def Sequence(self) -> TColStd_SequenceOfHAsciiString: ... def Append(self, theSequence: TColStd_SequenceOfHAsciiString) -> None: ... - -class TColStd_HSequenceOfHExtendedString(TColStd_SequenceOfHExtendedString, Standard_Transient): +class TColStd_HSequenceOfHExtendedString( + TColStd_SequenceOfHExtendedString, Standard_Transient +): @overload def __init__(self) -> None: ... @overload @@ -576,7 +645,6 @@ class TColStd_HSequenceOfHExtendedString(TColStd_SequenceOfHExtendedString, Stan def Sequence(self) -> TColStd_SequenceOfHExtendedString: ... def Append(self, theSequence: TColStd_SequenceOfHExtendedString) -> None: ... - class TColStd_HSequenceOfInteger(TColStd_SequenceOfInteger, Standard_Transient): @overload def __init__(self) -> None: ... @@ -585,7 +653,6 @@ class TColStd_HSequenceOfInteger(TColStd_SequenceOfInteger, Standard_Transient): def Sequence(self) -> TColStd_SequenceOfInteger: ... def Append(self, theSequence: TColStd_SequenceOfInteger) -> None: ... - class TColStd_HSequenceOfReal(TColStd_SequenceOfReal, Standard_Transient): @overload def __init__(self) -> None: ... @@ -594,7 +661,6 @@ class TColStd_HSequenceOfReal(TColStd_SequenceOfReal, Standard_Transient): def Sequence(self) -> TColStd_SequenceOfReal: ... def Append(self, theSequence: TColStd_SequenceOfReal) -> None: ... - class TColStd_HSequenceOfTransient(TColStd_SequenceOfTransient, Standard_Transient): @overload def __init__(self) -> None: ... @@ -602,5 +668,3 @@ class TColStd_HSequenceOfTransient(TColStd_SequenceOfTransient, Standard_Transie def __init__(self, other: TColStd_SequenceOfTransient) -> None: ... def Sequence(self) -> TColStd_SequenceOfTransient: ... def Append(self, theSequence: TColStd_SequenceOfTransient) -> None: ... - - diff --git a/src/SWIG_files/wrapper/TColgp.pyi b/src/SWIG_files/wrapper/TColgp.pyi index 3b2caf43b..d282e0106 100644 --- a/src/SWIG_files/wrapper/TColgp.pyi +++ b/src/SWIG_files/wrapper/TColgp.pyi @@ -266,154 +266,214 @@ class TColgp_Array1OfXYZ: def SetValue(self, theIndex: int, theValue: gp_XYZ) -> None: ... class TColgp_SequenceOfArray1OfPnt2d: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TColgp_SequenceOfAx1: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColgp_SequenceOfAx1: + def Assign(self, theItem: gp_Ax1) -> gp_Ax1: ... def Clear(self) -> None: ... def First(self) -> gp_Ax1: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Ax1: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Ax1) -> gp_Ax1: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Ax1) -> gp_Ax1: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Ax1: ... def SetValue(self, theIndex: int, theValue: gp_Ax1) -> None: ... - -class TColgp_SequenceOfDir: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Ax1: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColgp_SequenceOfDir: + def Assign(self, theItem: gp_Dir) -> gp_Dir: ... def Clear(self) -> None: ... def First(self) -> gp_Dir: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Dir: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Dir) -> gp_Dir: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Dir) -> gp_Dir: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Dir: ... def SetValue(self, theIndex: int, theValue: gp_Dir) -> None: ... - -class TColgp_SequenceOfDir2d: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Dir: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColgp_SequenceOfDir2d: + def Assign(self, theItem: gp_Dir2d) -> gp_Dir2d: ... def Clear(self) -> None: ... def First(self) -> gp_Dir2d: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Dir2d: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Dir2d) -> gp_Dir2d: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Dir2d) -> gp_Dir2d: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Dir2d: ... def SetValue(self, theIndex: int, theValue: gp_Dir2d) -> None: ... - -class TColgp_SequenceOfPnt: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Dir2d: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColgp_SequenceOfPnt: + def Assign(self, theItem: gp_Pnt) -> gp_Pnt: ... def Clear(self) -> None: ... def First(self) -> gp_Pnt: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Pnt: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Pnt) -> gp_Pnt: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Pnt) -> gp_Pnt: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Pnt: ... def SetValue(self, theIndex: int, theValue: gp_Pnt) -> None: ... - -class TColgp_SequenceOfPnt2d: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Pnt: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColgp_SequenceOfPnt2d: + def Assign(self, theItem: gp_Pnt2d) -> gp_Pnt2d: ... def Clear(self) -> None: ... def First(self) -> gp_Pnt2d: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Pnt2d: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Pnt2d) -> gp_Pnt2d: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Pnt2d) -> gp_Pnt2d: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Pnt2d: ... def SetValue(self, theIndex: int, theValue: gp_Pnt2d) -> None: ... - -class TColgp_SequenceOfVec: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Pnt2d: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColgp_SequenceOfVec: + def Assign(self, theItem: gp_Vec) -> gp_Vec: ... def Clear(self) -> None: ... def First(self) -> gp_Vec: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Vec: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Vec) -> gp_Vec: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Vec) -> gp_Vec: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Vec: ... def SetValue(self, theIndex: int, theValue: gp_Vec) -> None: ... - -class TColgp_SequenceOfVec2d: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Vec: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColgp_SequenceOfVec2d: + def Assign(self, theItem: gp_Vec2d) -> gp_Vec2d: ... def Clear(self) -> None: ... def First(self) -> gp_Vec2d: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_Vec2d: ... def Length(self) -> int: ... - def Append(self, theItem: gp_Vec2d) -> gp_Vec2d: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_Vec2d) -> gp_Vec2d: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_Vec2d: ... def SetValue(self, theIndex: int, theValue: gp_Vec2d) -> None: ... - -class TColgp_SequenceOfXY: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_Vec2d: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColgp_SequenceOfXY: + def Assign(self, theItem: gp_XY) -> gp_XY: ... def Clear(self) -> None: ... def First(self) -> gp_XY: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_XY: ... def Length(self) -> int: ... - def Append(self, theItem: gp_XY) -> gp_XY: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_XY) -> gp_XY: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_XY: ... def SetValue(self, theIndex: int, theValue: gp_XY) -> None: ... - -class TColgp_SequenceOfXYZ: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_XY: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TColgp_SequenceOfXYZ: + def Assign(self, theItem: gp_XYZ) -> gp_XYZ: ... def Clear(self) -> None: ... def First(self) -> gp_XYZ: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> gp_XYZ: ... def Length(self) -> int: ... - def Append(self, theItem: gp_XYZ) -> gp_XYZ: ... + def Lower(self) -> int: ... def Prepend(self, theItem: gp_XYZ) -> gp_XYZ: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> gp_XYZ: ... def SetValue(self, theIndex: int, theValue: gp_XYZ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> gp_XYZ: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... # harray1 classes @@ -421,47 +481,38 @@ class TColgp_HArray1OfCirc2d(TColgp_Array1OfCirc2d, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfCirc2d: ... - class TColgp_HArray1OfDir(TColgp_Array1OfDir, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfDir: ... - class TColgp_HArray1OfDir2d(TColgp_Array1OfDir2d, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfDir2d: ... - class TColgp_HArray1OfLin2d(TColgp_Array1OfLin2d, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfLin2d: ... - class TColgp_HArray1OfPnt(TColgp_Array1OfPnt, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfPnt: ... - class TColgp_HArray1OfPnt2d(TColgp_Array1OfPnt2d, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfPnt2d: ... - class TColgp_HArray1OfVec(TColgp_Array1OfVec, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfVec: ... - class TColgp_HArray1OfVec2d(TColgp_Array1OfVec2d, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfVec2d: ... - class TColgp_HArray1OfXY(TColgp_Array1OfXY, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfXY: ... - class TColgp_HArray1OfXYZ(TColgp_Array1OfXYZ, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TColgp_Array1OfXYZ: ... @@ -470,79 +521,90 @@ class TColgp_HArray1OfXYZ(TColgp_Array1OfXYZ, Standard_Transient): class TColgp_HArray2OfCirc2d(TColgp_Array2OfCirc2d, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfCirc2d) -> None: ... def Array2(self) -> TColgp_Array2OfCirc2d: ... - class TColgp_HArray2OfDir(TColgp_Array2OfDir, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfDir) -> None: ... def Array2(self) -> TColgp_Array2OfDir: ... - class TColgp_HArray2OfDir2d(TColgp_Array2OfDir2d, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfDir2d) -> None: ... def Array2(self) -> TColgp_Array2OfDir2d: ... - class TColgp_HArray2OfLin2d(TColgp_Array2OfLin2d, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfLin2d) -> None: ... def Array2(self) -> TColgp_Array2OfLin2d: ... - class TColgp_HArray2OfPnt(TColgp_Array2OfPnt, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfPnt) -> None: ... def Array2(self) -> TColgp_Array2OfPnt: ... - class TColgp_HArray2OfPnt2d(TColgp_Array2OfPnt2d, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfPnt2d) -> None: ... def Array2(self) -> TColgp_Array2OfPnt2d: ... - class TColgp_HArray2OfVec(TColgp_Array2OfVec, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfVec) -> None: ... def Array2(self) -> TColgp_Array2OfVec: ... - class TColgp_HArray2OfVec2d(TColgp_Array2OfVec2d, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfVec2d) -> None: ... def Array2(self) -> TColgp_Array2OfVec2d: ... - class TColgp_HArray2OfXY(TColgp_Array2OfXY, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfXY) -> None: ... def Array2(self) -> TColgp_Array2OfXY: ... - class TColgp_HArray2OfXYZ(TColgp_Array2OfXYZ, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TColgp_Array2OfXYZ) -> None: ... def Array2(self) -> TColgp_Array2OfXYZ: ... @@ -557,7 +619,6 @@ class TColgp_HSequenceOfDir(TColgp_SequenceOfDir, Standard_Transient): def Sequence(self) -> TColgp_SequenceOfDir: ... def Append(self, theSequence: TColgp_SequenceOfDir) -> None: ... - class TColgp_HSequenceOfDir2d(TColgp_SequenceOfDir2d, Standard_Transient): @overload def __init__(self) -> None: ... @@ -566,7 +627,6 @@ class TColgp_HSequenceOfDir2d(TColgp_SequenceOfDir2d, Standard_Transient): def Sequence(self) -> TColgp_SequenceOfDir2d: ... def Append(self, theSequence: TColgp_SequenceOfDir2d) -> None: ... - class TColgp_HSequenceOfPnt(TColgp_SequenceOfPnt, Standard_Transient): @overload def __init__(self) -> None: ... @@ -575,7 +635,6 @@ class TColgp_HSequenceOfPnt(TColgp_SequenceOfPnt, Standard_Transient): def Sequence(self) -> TColgp_SequenceOfPnt: ... def Append(self, theSequence: TColgp_SequenceOfPnt) -> None: ... - class TColgp_HSequenceOfPnt2d(TColgp_SequenceOfPnt2d, Standard_Transient): @overload def __init__(self) -> None: ... @@ -584,7 +643,6 @@ class TColgp_HSequenceOfPnt2d(TColgp_SequenceOfPnt2d, Standard_Transient): def Sequence(self) -> TColgp_SequenceOfPnt2d: ... def Append(self, theSequence: TColgp_SequenceOfPnt2d) -> None: ... - class TColgp_HSequenceOfVec(TColgp_SequenceOfVec, Standard_Transient): @overload def __init__(self) -> None: ... @@ -593,7 +651,6 @@ class TColgp_HSequenceOfVec(TColgp_SequenceOfVec, Standard_Transient): def Sequence(self) -> TColgp_SequenceOfVec: ... def Append(self, theSequence: TColgp_SequenceOfVec) -> None: ... - class TColgp_HSequenceOfVec2d(TColgp_SequenceOfVec2d, Standard_Transient): @overload def __init__(self) -> None: ... @@ -602,7 +659,6 @@ class TColgp_HSequenceOfVec2d(TColgp_SequenceOfVec2d, Standard_Transient): def Sequence(self) -> TColgp_SequenceOfVec2d: ... def Append(self, theSequence: TColgp_SequenceOfVec2d) -> None: ... - class TColgp_HSequenceOfXY(TColgp_SequenceOfXY, Standard_Transient): @overload def __init__(self) -> None: ... @@ -611,7 +667,6 @@ class TColgp_HSequenceOfXY(TColgp_SequenceOfXY, Standard_Transient): def Sequence(self) -> TColgp_SequenceOfXY: ... def Append(self, theSequence: TColgp_SequenceOfXY) -> None: ... - class TColgp_HSequenceOfXYZ(TColgp_SequenceOfXYZ, Standard_Transient): @overload def __init__(self) -> None: ... @@ -619,5 +674,3 @@ class TColgp_HSequenceOfXYZ(TColgp_SequenceOfXYZ, Standard_Transient): def __init__(self, other: TColgp_SequenceOfXYZ) -> None: ... def Sequence(self) -> TColgp_SequenceOfXYZ: ... def Append(self, theSequence: TColgp_SequenceOfXYZ) -> None: ... - - diff --git a/src/SWIG_files/wrapper/TCollection.pyi b/src/SWIG_files/wrapper/TCollection.pyi index b48ed5819..883bc6534 100644 --- a/src/SWIG_files/wrapper/TCollection.pyi +++ b/src/SWIG_files/wrapper/TCollection.pyi @@ -4,7 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class tcollection: @staticmethod def NextPrimeForMap(I: int) -> int: ... @@ -60,7 +59,9 @@ class TCollection_AsciiString: @overload def Cat(self, other: str) -> str: ... def Center(self, Width: int, Filler: str) -> None: ... - def ChangeAll(self, aChar: str, NewChar: str, CaseSensitive: Optional[bool] = True) -> None: ... + def ChangeAll( + self, aChar: str, NewChar: str, CaseSensitive: Optional[bool] = True + ) -> None: ... def Clear(self) -> None: ... @overload def Copy(self, fromwhere: str) -> None: ... @@ -106,7 +107,9 @@ class TCollection_AsciiString: def IsLess(self, other: str) -> bool: ... def IsRealValue(self, theToCheckFull: Optional[bool] = False) -> bool: ... @staticmethod - def IsSameString(theString1: str, theString2: str, theIsCaseSensitive: bool) -> bool: ... + def IsSameString( + theString1: str, theString2: str, theIsCaseSensitive: bool + ) -> bool: ... def LeftAdjust(self) -> None: ... def LeftJustify(self, Width: int, Filler: str) -> None: ... def Length(self) -> int: ... @@ -145,7 +148,9 @@ class TCollection_AsciiString: def SubString(self, FromIndex: int, ToIndex: int) -> str: ... def Swap(self, theOther: str) -> None: ... def ToCString(self) -> str: ... - def Token(self, separators: Optional[str] = "\t", whichone: Optional[int] = 1) -> str: ... + def Token( + self, separators: Optional[str] = "\t", whichone: Optional[int] = 1 + ) -> str: ... def Trunc(self, ahowmany: int) -> None: ... def UpperCase(self) -> None: ... def UsefullLength(self) -> int: ... @@ -181,7 +186,9 @@ class TCollection_ExtendedString: @overload def AssignCat(self, theChar: Standard_Utf16Char) -> None: ... def Cat(self, other: str) -> str: ... - def ChangeAll(self, aChar: Standard_ExtCharacter, NewChar: Standard_ExtCharacter) -> None: ... + def ChangeAll( + self, aChar: Standard_ExtCharacter, NewChar: Standard_ExtCharacter + ) -> None: ... def Clear(self) -> None: ... def Copy(self, fromwhere: str) -> None: ... def EndsWith(self, theEndString: str) -> bool: ... @@ -227,7 +234,9 @@ class TCollection_ExtendedString: def Swap(self, theOther: str) -> None: ... def ToExtString(self) -> Standard_ExtString: ... def ToUTF8CString(self, theCString: Standard_PCharacter) -> int: ... - def Token(self, separators: Standard_ExtString, whichone: Optional[int] = 1) -> str: ... + def Token( + self, separators: Standard_ExtString, whichone: Optional[int] = 1 + ) -> str: ... def Trunc(self, ahowmany: int) -> None: ... def Value(self, where: int) -> Standard_ExtCharacter: ... @@ -251,7 +260,9 @@ class TCollection_HAsciiString(Standard_Transient): @overload def __init__(self, aString: TCollection_HAsciiString) -> None: ... @overload - def __init__(self, aString: TCollection_HExtendedString, replaceNonAscii: str) -> None: ... + def __init__( + self, aString: TCollection_HExtendedString, replaceNonAscii: str + ) -> None: ... @overload def AssignCat(self, other: str) -> None: ... @overload @@ -262,10 +273,16 @@ class TCollection_HAsciiString(Standard_Transient): @overload def Cat(self, other: TCollection_HAsciiString) -> TCollection_HAsciiString: ... def Center(self, Width: int, Filler: str) -> None: ... - def ChangeAll(self, aChar: str, NewChar: str, CaseSensitive: Optional[bool] = True) -> None: ... + def ChangeAll( + self, aChar: str, NewChar: str, CaseSensitive: Optional[bool] = True + ) -> None: ... def Clear(self) -> None: ... - def FirstLocationInSet(self, Set: TCollection_HAsciiString, FromIndex: int, ToIndex: int) -> int: ... - def FirstLocationNotInSet(self, Set: TCollection_HAsciiString, FromIndex: int, ToIndex: int) -> int: ... + def FirstLocationInSet( + self, Set: TCollection_HAsciiString, FromIndex: int, ToIndex: int + ) -> int: ... + def FirstLocationNotInSet( + self, Set: TCollection_HAsciiString, FromIndex: int, ToIndex: int + ) -> int: ... @overload def Insert(self, where: int, what: str) -> None: ... @overload @@ -286,12 +303,16 @@ class TCollection_HAsciiString(Standard_Transient): @overload def IsSameString(self, S: TCollection_HAsciiString) -> bool: ... @overload - def IsSameString(self, S: TCollection_HAsciiString, CaseSensitive: bool) -> bool: ... + def IsSameString( + self, S: TCollection_HAsciiString, CaseSensitive: bool + ) -> bool: ... def LeftAdjust(self) -> None: ... def LeftJustify(self, Width: int, Filler: str) -> None: ... def Length(self) -> int: ... @overload - def Location(self, other: TCollection_HAsciiString, FromIndex: int, ToIndex: int) -> int: ... + def Location( + self, other: TCollection_HAsciiString, FromIndex: int, ToIndex: int + ) -> int: ... @overload def Location(self, N: int, C: str, FromIndex: int, ToIndex: int) -> int: ... def LowerCase(self) -> None: ... @@ -323,7 +344,9 @@ class TCollection_HAsciiString(Standard_Transient): def String(self) -> str: ... def SubString(self, FromIndex: int, ToIndex: int) -> TCollection_HAsciiString: ... def ToCString(self) -> str: ... - def Token(self, separators: Optional[str] = "\t", whichone: Optional[int] = 1) -> TCollection_HAsciiString: ... + def Token( + self, separators: Optional[str] = "\t", whichone: Optional[int] = 1 + ) -> TCollection_HAsciiString: ... def Trunc(self, ahowmany: int) -> None: ... def UpperCase(self) -> None: ... def UsefullLength(self) -> int: ... @@ -349,8 +372,12 @@ class TCollection_HExtendedString(Standard_Transient): @overload def __init__(self, aString: TCollection_HExtendedString) -> None: ... def AssignCat(self, other: TCollection_HExtendedString) -> None: ... - def Cat(self, other: TCollection_HExtendedString) -> TCollection_HExtendedString: ... - def ChangeAll(self, aChar: Standard_ExtCharacter, NewChar: Standard_ExtCharacter) -> None: ... + def Cat( + self, other: TCollection_HExtendedString + ) -> TCollection_HExtendedString: ... + def ChangeAll( + self, aChar: Standard_ExtCharacter, NewChar: Standard_ExtCharacter + ) -> None: ... def Clear(self) -> None: ... @overload def Insert(self, where: int, what: Standard_ExtCharacter) -> None: ... @@ -374,11 +401,12 @@ class TCollection_HExtendedString(Standard_Transient): def Split(self, where: int) -> TCollection_HExtendedString: ... def String(self) -> str: ... def ToExtString(self) -> Standard_ExtString: ... - def Token(self, separators: Standard_ExtString, whichone: Optional[int] = 1) -> TCollection_HExtendedString: ... + def Token( + self, separators: Standard_ExtString, whichone: Optional[int] = 1 + ) -> TCollection_HExtendedString: ... def Trunc(self, ahowmany: int) -> None: ... def Value(self, where: int) -> Standard_ExtCharacter: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TDF.i b/src/SWIG_files/wrapper/TDF.i index da1bc2875..3847eb785 100644 --- a/src/SWIG_files/wrapper/TDF.i +++ b/src/SWIG_files/wrapper/TDF.i @@ -107,6 +107,12 @@ Array1ExtendIter(opencascade::handle) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TDF_ListIteratorOfAttributeDeltaList(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TDF_AttributeDoubleMap) NCollection_DoubleMap,opencascade::handle>; @@ -117,6 +123,12 @@ Array1ExtendIter(opencascade::handle) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TDF_ListIteratorOfAttributeList(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TDF_AttributeMap) NCollection_Map>; @@ -134,6 +146,12 @@ Array1ExtendIter(opencascade::handle) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TDF_ListIteratorOfDeltaList(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TDF_GUIDProgIDMap) NCollection_DoubleMap; @@ -144,6 +162,12 @@ Array1ExtendIter(opencascade::handle) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TDF_ListIteratorOfIDList(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TDF_IDMap) NCollection_Map; @@ -157,6 +181,12 @@ Array1ExtendIter(opencascade::handle) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TDF_ListIteratorOfLabelList(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TDF_LabelMap) NCollection_Map; diff --git a/src/SWIG_files/wrapper/TDF.pyi b/src/SWIG_files/wrapper/TDF.pyi index 9028c1c07..406094f83 100644 --- a/src/SWIG_files/wrapper/TDF.pyi +++ b/src/SWIG_files/wrapper/TDF.pyi @@ -13,11 +13,17 @@ TDF_AttributeIndexedMap = NewType("TDF_AttributeIndexedMap", Any) # the following typedef cannot be wrapped as is TDF_AttributeMap = NewType("TDF_AttributeMap", Any) # the following typedef cannot be wrapped as is -TDF_DoubleMapIteratorOfAttributeDoubleMap = NewType("TDF_DoubleMapIteratorOfAttributeDoubleMap", Any) +TDF_DoubleMapIteratorOfAttributeDoubleMap = NewType( + "TDF_DoubleMapIteratorOfAttributeDoubleMap", Any +) # the following typedef cannot be wrapped as is -TDF_DoubleMapIteratorOfGUIDProgIDMap = NewType("TDF_DoubleMapIteratorOfGUIDProgIDMap", Any) +TDF_DoubleMapIteratorOfGUIDProgIDMap = NewType( + "TDF_DoubleMapIteratorOfGUIDProgIDMap", Any +) # the following typedef cannot be wrapped as is -TDF_DoubleMapIteratorOfLabelDoubleMap = NewType("TDF_DoubleMapIteratorOfLabelDoubleMap", Any) +TDF_DoubleMapIteratorOfLabelDoubleMap = NewType( + "TDF_DoubleMapIteratorOfLabelDoubleMap", Any +) # the following typedef cannot be wrapped as is TDF_GUIDProgIDMap = NewType("TDF_GUIDProgIDMap", Any) # the following typedef cannot be wrapped as is @@ -63,105 +69,116 @@ class TDF_AttributeArray1: def SetValue(self, theIndex: int, theValue: False) -> None: ... class TDF_AttributeDeltaList: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: TDF_AttributeDeltaList) -> TDF_AttributeDeltaList: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TDF_AttributeList: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class TDF_AttributeList: + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: TDF_AttributeList) -> TDF_AttributeList: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TDF_AttributeSequence: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class TDF_AttributeSequence: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TDF_DeltaList: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TDF_DeltaList: + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: TDF_DeltaList) -> TDF_DeltaList: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TDF_IDList: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class TDF_IDList: + def Append(self, theItem: Standard_GUID) -> Standard_GUID: ... + def Assign(self, theItem: TDF_IDList) -> TDF_IDList: ... def Clear(self) -> None: ... def First(self) -> Standard_GUID: ... def Last(self) -> Standard_GUID: ... - def Append(self, theItem: Standard_GUID) -> Standard_GUID: ... def Prepend(self, theItem: Standard_GUID) -> Standard_GUID: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> Standard_GUID: ... - def SetValue(self, theIndex: int, theValue: Standard_GUID) -> None: ... - -class TDF_LabelList: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> Standard_GUID: ... + +class TDF_LabelList: + def Append(self, theItem: TDF_Label) -> TDF_Label: ... + def Assign(self, theItem: TDF_LabelList) -> TDF_LabelList: ... def Clear(self) -> None: ... def First(self) -> TDF_Label: ... def Last(self) -> TDF_Label: ... - def Append(self, theItem: TDF_Label) -> TDF_Label: ... def Prepend(self, theItem: TDF_Label) -> TDF_Label: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TDF_Label: ... - def SetValue(self, theIndex: int, theValue: TDF_Label) -> None: ... - -class TDF_LabelSequence: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> TDF_Label: ... + +class TDF_LabelSequence: + def Assign(self, theItem: TDF_Label) -> TDF_Label: ... def Clear(self) -> None: ... def First(self) -> TDF_Label: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> TDF_Label: ... def Length(self) -> int: ... - def Append(self, theItem: TDF_Label) -> TDF_Label: ... + def Lower(self) -> int: ... def Prepend(self, theItem: TDF_Label) -> TDF_Label: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TDF_Label: ... def SetValue(self, theIndex: int, theValue: TDF_Label) -> None: ... - + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> TDF_Label: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class tdf: @staticmethod @@ -180,26 +197,36 @@ class TDF_Attribute(Standard_Transient): def AfterAddition(self) -> None: ... def AfterResume(self) -> None: ... def AfterRetrieval(self, forceIt: Optional[bool] = False) -> bool: ... - def AfterUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def AfterUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def Backup(self) -> None: ... def BackupCopy(self) -> TDF_Attribute: ... def BeforeCommitTransaction(self) -> None: ... def BeforeForget(self) -> None: ... def BeforeRemoval(self) -> None: ... - def BeforeUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def BeforeUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def DeltaOnAddition(self) -> TDF_DeltaOnAddition: ... def DeltaOnForget(self) -> TDF_DeltaOnForget: ... @overload - def DeltaOnModification(self, anOldAttribute: TDF_Attribute) -> TDF_DeltaOnModification: ... + def DeltaOnModification( + self, anOldAttribute: TDF_Attribute + ) -> TDF_DeltaOnModification: ... @overload def DeltaOnModification(self, aDelta: TDF_DeltaOnModification) -> None: ... def DeltaOnRemoval(self) -> TDF_DeltaOnRemoval: ... def DeltaOnResume(self) -> TDF_DeltaOnResume: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - def ExtendedDump(self, aFilter: TDF_IDFilter, aMap: TDF_AttributeIndexedMap) -> str: ... - @overload - def FindAttribute(self, anID: Standard_GUID, anAttribute: TDF_Attribute) -> bool: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + def ExtendedDump( + self, aFilter: TDF_IDFilter, aMap: TDF_AttributeIndexedMap + ) -> str: ... + @overload + def FindAttribute( + self, anID: Standard_GUID, anAttribute: TDF_Attribute + ) -> bool: ... def Forget(self, aTransaction: int) -> None: ... def ForgetAllAttributes(self, clearChildren: Optional[bool] = True) -> None: ... def ForgetAttribute(self, aguid: Standard_GUID) -> bool: ... @@ -211,7 +238,9 @@ class TDF_Attribute(Standard_Transient): def IsValid(self) -> bool: ... def Label(self) -> TDF_Label: ... def NewEmpty(self) -> TDF_Attribute: ... - def Paste(self, intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable) -> None: ... + def Paste( + self, intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable + ) -> None: ... def References(self, aDataSet: TDF_DataSet) -> None: ... def Restore(self, anAttribute: TDF_Attribute) -> None: ... @overload @@ -223,7 +252,7 @@ class TDF_AttributeDelta(Standard_Transient): def Apply(self) -> None: ... def Attribute(self) -> TDF_Attribute: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ID(self) -> Standard_GUID: ... def Label(self) -> TDF_Label: ... @@ -231,10 +260,16 @@ class TDF_AttributeIterator: @overload def __init__(self) -> None: ... @overload - def __init__(self, aLabel: TDF_Label, withoutForgotten: Optional[bool] = True) -> None: ... + def __init__( + self, aLabel: TDF_Label, withoutForgotten: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, aLabelNode: TDF_LabelNodePtr, withoutForgotten: Optional[bool] = True) -> None: ... - def Initialize(self, aLabel: TDF_Label, withoutForgotten: Optional[bool] = True) -> None: ... + def __init__( + self, aLabelNode: TDF_LabelNodePtr, withoutForgotten: Optional[bool] = True + ) -> None: ... + def Initialize( + self, aLabel: TDF_Label, withoutForgotten: Optional[bool] = True + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def PtrValue(self) -> TDF_Attribute: ... @@ -244,8 +279,12 @@ class TDF_ChildIDIterator: @overload def __init__(self) -> None: ... @overload - def __init__(self, aLabel: TDF_Label, anID: Standard_GUID, allLevels: Optional[bool] = False) -> None: ... - def Initialize(self, aLabel: TDF_Label, anID: Standard_GUID, allLevels: Optional[bool] = False) -> None: ... + def __init__( + self, aLabel: TDF_Label, anID: Standard_GUID, allLevels: Optional[bool] = False + ) -> None: ... + def Initialize( + self, aLabel: TDF_Label, anID: Standard_GUID, allLevels: Optional[bool] = False + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def NextBrother(self) -> None: ... @@ -255,8 +294,12 @@ class TDF_ChildIterator: @overload def __init__(self) -> None: ... @overload - def __init__(self, aLabel: TDF_Label, allLevels: Optional[bool] = False) -> None: ... - def Initialize(self, aLabel: TDF_Label, allLevels: Optional[bool] = False) -> None: ... + def __init__( + self, aLabel: TDF_Label, allLevels: Optional[bool] = False + ) -> None: ... + def Initialize( + self, aLabel: TDF_Label, allLevels: Optional[bool] = False + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def NextBrother(self) -> None: ... @@ -279,22 +322,47 @@ class TDF_ClosureTool: def Closure(aDataSet: TDF_DataSet) -> None: ... @overload @staticmethod - def Closure(aDataSet: TDF_DataSet, aFilter: TDF_IDFilter, aMode: TDF_ClosureMode) -> None: ... + def Closure( + aDataSet: TDF_DataSet, aFilter: TDF_IDFilter, aMode: TDF_ClosureMode + ) -> None: ... @overload @staticmethod - def Closure(aLabel: TDF_Label, aLabMap: TDF_LabelMap, anAttMap: TDF_AttributeMap, aFilter: TDF_IDFilter, aMode: TDF_ClosureMode) -> None: ... + def Closure( + aLabel: TDF_Label, + aLabMap: TDF_LabelMap, + anAttMap: TDF_AttributeMap, + aFilter: TDF_IDFilter, + aMode: TDF_ClosureMode, + ) -> None: ... class TDF_ComparisonTool: @staticmethod - def Compare(aSourceDataSet: TDF_DataSet, aTargetDataSet: TDF_DataSet, aFilter: TDF_IDFilter, aRelocationTable: TDF_RelocationTable) -> None: ... + def Compare( + aSourceDataSet: TDF_DataSet, + aTargetDataSet: TDF_DataSet, + aFilter: TDF_IDFilter, + aRelocationTable: TDF_RelocationTable, + ) -> None: ... @staticmethod def Cut(aDataSet: TDF_DataSet) -> None: ... @staticmethod def IsSelfContained(aLabel: TDF_Label, aDataSet: TDF_DataSet) -> bool: ... @staticmethod - def SourceUnbound(aRefDataSet: TDF_DataSet, aRelocationTable: TDF_RelocationTable, aFilter: TDF_IDFilter, aDiffDataSet: TDF_DataSet, anOption: Optional[int] = 2) -> bool: ... - @staticmethod - def TargetUnbound(aRefDataSet: TDF_DataSet, aRelocationTable: TDF_RelocationTable, aFilter: TDF_IDFilter, aDiffDataSet: TDF_DataSet, anOption: Optional[int] = 2) -> bool: ... + def SourceUnbound( + aRefDataSet: TDF_DataSet, + aRelocationTable: TDF_RelocationTable, + aFilter: TDF_IDFilter, + aDiffDataSet: TDF_DataSet, + anOption: Optional[int] = 2, + ) -> bool: ... + @staticmethod + def TargetUnbound( + aRefDataSet: TDF_DataSet, + aRelocationTable: TDF_RelocationTable, + aFilter: TDF_IDFilter, + aDiffDataSet: TDF_DataSet, + anOption: Optional[int] = 2, + ) -> bool: ... class TDF_CopyLabel: @overload @@ -303,10 +371,18 @@ class TDF_CopyLabel: def __init__(self, aSource: TDF_Label, aTarget: TDF_Label) -> None: ... @overload @staticmethod - def ExternalReferences(Lab: TDF_Label, aExternals: TDF_AttributeMap, aFilter: TDF_IDFilter) -> bool: ... + def ExternalReferences( + Lab: TDF_Label, aExternals: TDF_AttributeMap, aFilter: TDF_IDFilter + ) -> bool: ... @overload @staticmethod - def ExternalReferences(aRefLab: TDF_Label, Lab: TDF_Label, aExternals: TDF_AttributeMap, aFilter: TDF_IDFilter, aDataSet: TDF_DataSet) -> None: ... + def ExternalReferences( + aRefLab: TDF_Label, + Lab: TDF_Label, + aExternals: TDF_AttributeMap, + aFilter: TDF_IDFilter, + aDataSet: TDF_DataSet, + ) -> None: ... def IsDone(self) -> bool: ... def Load(self, aSource: TDF_Label, aTarget: TDF_Label) -> None: ... def Perform(self) -> None: ... @@ -316,20 +392,32 @@ class TDF_CopyLabel: class TDF_CopyTool: @overload @staticmethod - def Copy(aSourceDataSet: TDF_DataSet, aRelocationTable: TDF_RelocationTable) -> None: ... + def Copy( + aSourceDataSet: TDF_DataSet, aRelocationTable: TDF_RelocationTable + ) -> None: ... @overload @staticmethod - def Copy(aSourceDataSet: TDF_DataSet, aRelocationTable: TDF_RelocationTable, aPrivilegeFilter: TDF_IDFilter) -> None: ... + def Copy( + aSourceDataSet: TDF_DataSet, + aRelocationTable: TDF_RelocationTable, + aPrivilegeFilter: TDF_IDFilter, + ) -> None: ... @overload @staticmethod - def Copy(aSourceDataSet: TDF_DataSet, aRelocationTable: TDF_RelocationTable, aPrivilegeFilter: TDF_IDFilter, aRefFilter: TDF_IDFilter, setSelfContained: bool) -> None: ... + def Copy( + aSourceDataSet: TDF_DataSet, + aRelocationTable: TDF_RelocationTable, + aPrivilegeFilter: TDF_IDFilter, + aRefFilter: TDF_IDFilter, + setSelfContained: bool, + ) -> None: ... class TDF_Data(Standard_Transient): def __init__(self) -> None: ... def AllowModification(self, isAllowed: bool) -> None: ... def Destroy(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetLabel(self, anEntry: str, aLabel: TDF_Label) -> bool: ... def IsAccessByEntries(self) -> bool: ... def IsApplicable(self, aDelta: TDF_Delta) -> bool: ... @@ -341,7 +429,9 @@ class TDF_Data(Standard_Transient): def SetAccessByEntries(self, aSet: bool) -> None: ... def Time(self) -> int: ... def Transaction(self) -> int: ... - def Undo(self, aDelta: TDF_Delta, withDelta: Optional[bool] = False) -> TDF_Delta: ... + def Undo( + self, aDelta: TDF_Delta, withDelta: Optional[bool] = False + ) -> TDF_Delta: ... class TDF_DataSet(Standard_Transient): def __init__(self) -> None: ... @@ -362,7 +452,7 @@ class TDF_Delta(Standard_Transient): def AttributeDeltas(self) -> TDF_AttributeDeltaList: ... def BeginTime(self) -> int: ... def Dump(self) -> str: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EndTime(self) -> int: ... def IsApplicable(self, aCurrentTime: int) -> bool: ... def IsEmpty(self) -> bool: ... @@ -399,18 +489,26 @@ class TDF_IDFilter: class TDF_Label: def __init__(self) -> None: ... - def AddAttribute(self, anAttribute: TDF_Attribute, append: Optional[bool] = True) -> None: ... + def AddAttribute( + self, anAttribute: TDF_Attribute, append: Optional[bool] = True + ) -> None: ... def AttributesModified(self) -> bool: ... def Data(self) -> TDF_Data: ... def Depth(self) -> int: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... def EntryDump(self) -> str: ... - def ExtendedDump(self, aFilter: TDF_IDFilter, aMap: TDF_AttributeIndexedMap) -> str: ... + def ExtendedDump( + self, aFilter: TDF_IDFilter, aMap: TDF_AttributeIndexedMap + ) -> str: ... def Father(self) -> TDF_Label: ... @overload - def FindAttribute(self, anID: Standard_GUID, anAttribute: TDF_Attribute) -> bool: ... + def FindAttribute( + self, anID: Standard_GUID, anAttribute: TDF_Attribute + ) -> bool: ... @overload - def FindAttribute(self, anID: Standard_GUID, aTransaction: int, anAttribute: TDF_Attribute) -> bool: ... + def FindAttribute( + self, anID: Standard_GUID, aTransaction: int, anAttribute: TDF_Attribute + ) -> bool: ... def FindChild(self, aTag: int, create: Optional[bool] = True) -> TDF_Label: ... def ForgetAllAttributes(self, clearChildren: Optional[bool] = True) -> None: ... @overload @@ -447,31 +545,49 @@ class TDF_RelocationTable(Standard_Transient): def AfterRelocate(self) -> bool: ... def AttributeTable(self) -> TDF_AttributeDataMap: ... def Clear(self) -> None: ... - def Dump(self, dumpLabels: bool, dumpAttributes: bool, dumpTransients: bool) -> Tuple[Standard_OStream, str]: ... - @overload - def HasRelocation(self, aSourceLabel: TDF_Label, aTargetLabel: TDF_Label) -> bool: ... - @overload - def HasRelocation(self, aSourceAttribute: TDF_Attribute, aTargetAttribute: TDF_Attribute) -> bool: ... - def HasTransientRelocation(self, aSourceTransient: Standard_Transient, aTargetTransient: Standard_Transient) -> bool: ... + def Dump( + self, dumpLabels: bool, dumpAttributes: bool, dumpTransients: bool + ) -> Tuple[Standard_OStream, str]: ... + @overload + def HasRelocation( + self, aSourceLabel: TDF_Label, aTargetLabel: TDF_Label + ) -> bool: ... + @overload + def HasRelocation( + self, aSourceAttribute: TDF_Attribute, aTargetAttribute: TDF_Attribute + ) -> bool: ... + def HasTransientRelocation( + self, aSourceTransient: Standard_Transient, aTargetTransient: Standard_Transient + ) -> bool: ... def LabelTable(self) -> TDF_LabelDataMap: ... @overload def SelfRelocate(self, selfRelocate: bool) -> None: ... @overload def SelfRelocate(self) -> bool: ... @overload - def SetRelocation(self, aSourceLabel: TDF_Label, aTargetLabel: TDF_Label) -> None: ... + def SetRelocation( + self, aSourceLabel: TDF_Label, aTargetLabel: TDF_Label + ) -> None: ... @overload - def SetRelocation(self, aSourceAttribute: TDF_Attribute, aTargetAttribute: TDF_Attribute) -> None: ... - def SetTransientRelocation(self, aSourceTransient: Standard_Transient, aTargetTransient: Standard_Transient) -> None: ... + def SetRelocation( + self, aSourceAttribute: TDF_Attribute, aTargetAttribute: TDF_Attribute + ) -> None: ... + def SetTransientRelocation( + self, aSourceTransient: Standard_Transient, aTargetTransient: Standard_Transient + ) -> None: ... def TargetAttributeMap(self, anAttributeMap: TDF_AttributeMap) -> None: ... def TargetLabelMap(self, aLabelMap: TDF_LabelMap) -> None: ... def TransientTable(self) -> TColStd_IndexedDataMapOfTransientTransient: ... class TDF_Tool: @staticmethod - def CountLabels(aLabelList: TDF_LabelList, aLabelMap: TDF_LabelIntegerMap) -> None: ... + def CountLabels( + aLabelList: TDF_LabelList, aLabelMap: TDF_LabelIntegerMap + ) -> None: ... @staticmethod - def DeductLabels(aLabelList: TDF_LabelList, aLabelMap: TDF_LabelIntegerMap) -> None: ... + def DeductLabels( + aLabelList: TDF_LabelList, aLabelMap: TDF_LabelIntegerMap + ) -> None: ... @overload @staticmethod def DeepDump(aDF: TDF_Data) -> str: ... @@ -494,13 +610,22 @@ class TDF_Tool: def IsSelfContained(aLabel: TDF_Label, aFilter: TDF_IDFilter) -> bool: ... @overload @staticmethod - def Label(aDF: TDF_Data, anEntry: str, aLabel: TDF_Label, create: Optional[bool] = False) -> None: ... + def Label( + aDF: TDF_Data, anEntry: str, aLabel: TDF_Label, create: Optional[bool] = False + ) -> None: ... @overload @staticmethod - def Label(aDF: TDF_Data, anEntry: str, aLabel: TDF_Label, create: Optional[bool] = False) -> None: ... + def Label( + aDF: TDF_Data, anEntry: str, aLabel: TDF_Label, create: Optional[bool] = False + ) -> None: ... @overload @staticmethod - def Label(aDF: TDF_Data, aTagList: TColStd_ListOfInteger, aLabel: TDF_Label, create: Optional[bool] = False) -> None: ... + def Label( + aDF: TDF_Data, + aTagList: TColStd_ListOfInteger, + aLabel: TDF_Label, + create: Optional[bool] = False, + ) -> None: ... @overload @staticmethod def NbAttributes(aLabel: TDF_Label) -> int: ... @@ -514,15 +639,31 @@ class TDF_Tool: def OutReferences(aLabel: TDF_Label, atts: TDF_AttributeMap) -> None: ... @overload @staticmethod - def OutReferences(aLabel: TDF_Label, aFilterForReferers: TDF_IDFilter, aFilterForReferences: TDF_IDFilter, atts: TDF_AttributeMap) -> None: ... + def OutReferences( + aLabel: TDF_Label, + aFilterForReferers: TDF_IDFilter, + aFilterForReferences: TDF_IDFilter, + atts: TDF_AttributeMap, + ) -> None: ... @overload @staticmethod def OutReferers(theLabel: TDF_Label, theAtts: TDF_AttributeMap) -> None: ... @overload @staticmethod - def OutReferers(aLabel: TDF_Label, aFilterForReferers: TDF_IDFilter, aFilterForReferences: TDF_IDFilter, atts: TDF_AttributeMap) -> None: ... + def OutReferers( + aLabel: TDF_Label, + aFilterForReferers: TDF_IDFilter, + aFilterForReferences: TDF_IDFilter, + atts: TDF_AttributeMap, + ) -> None: ... @staticmethod - def RelocateLabel(aSourceLabel: TDF_Label, fromRoot: TDF_Label, toRoot: TDF_Label, aTargetLabel: TDF_Label, create: Optional[bool] = False) -> None: ... + def RelocateLabel( + aSourceLabel: TDF_Label, + fromRoot: TDF_Label, + toRoot: TDF_Label, + aTargetLabel: TDF_Label, + create: Optional[bool] = False, + ) -> None: ... @overload @staticmethod def TagList(aLabel: TDF_Label, aTagList: TColStd_ListOfInteger) -> None: ... @@ -538,7 +679,7 @@ class TDF_Transaction: def Abort(self) -> None: ... def Commit(self, withDelta: Optional[bool] = False) -> TDF_Delta: ... def Data(self) -> TDF_Data: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Initialize(self, aDF: TDF_Data) -> None: ... def IsOpen(self) -> bool: ... def Name(self) -> str: ... @@ -562,12 +703,12 @@ class TDF_DeltaOnRemoval(TDF_AttributeDelta): class TDF_DeltaOnResume(TDF_AttributeDelta): def __init__(self, anAtt: TDF_Attribute) -> None: ... def Apply(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... class TDF_Reference(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Get(self) -> TDF_Label: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -584,7 +725,7 @@ class TDF_Reference(TDF_Attribute): class TDF_TagSource(TDF_Attribute): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Get(self) -> int: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -612,10 +753,10 @@ class TDF_DefaultDeltaOnRemoval(TDF_DeltaOnRemoval): def __init__(self, anAttribute: TDF_Attribute) -> None: ... def Apply(self) -> None: ... -#classnotwrapped +# classnotwrapped class TDF_LabelNode: ... -#classnotwrapped +# classnotwrapped class TDF_DerivedAttribute: ... # harray1 classes @@ -626,4 +767,3 @@ class TDF_HAttributeArray1(TDF_AttributeArray1, Standard_Transient): # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TDataStd.i b/src/SWIG_files/wrapper/TDataStd.i index 02f7320ab..f4ebf5f5f 100644 --- a/src/SWIG_files/wrapper/TDataStd.i +++ b/src/SWIG_files/wrapper/TDataStd.i @@ -144,6 +144,12 @@ Array1ExtendIter(TDF_Label) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TDataStd_ListIteratorOfListOfByte(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TDataStd_ListOfExtendedString) NCollection_List; @@ -152,6 +158,12 @@ Array1ExtendIter(TDF_Label) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TDataStd_ListIteratorOfListOfExtendedString(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/TDataStd.pyi b/src/SWIG_files/wrapper/TDataStd.pyi index d5a105c4e..bc7824f46 100644 --- a/src/SWIG_files/wrapper/TDataStd.pyi +++ b/src/SWIG_files/wrapper/TDataStd.pyi @@ -34,32 +34,34 @@ class TDataStd_LabelArray1: def SetValue(self, theIndex: int, theValue: TDF_Label) -> None: ... class TDataStd_ListOfByte: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: str) -> str: ... + def Assign(self, theItem: TDataStd_ListOfByte) -> TDataStd_ListOfByte: ... def Clear(self) -> None: ... def First(self) -> str: ... def Last(self) -> str: ... - def Append(self, theItem: str) -> str: ... def Prepend(self, theItem: str) -> str: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> str: ... - def SetValue(self, theIndex: int, theValue: str) -> None: ... - -class TDataStd_ListOfExtendedString: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> str: ... + +class TDataStd_ListOfExtendedString: + def Append(self, theItem: str) -> str: ... + def Assign( + self, theItem: TDataStd_ListOfExtendedString + ) -> TDataStd_ListOfExtendedString: ... def Clear(self) -> None: ... def First(self) -> str: ... def Last(self) -> str: ... - def Append(self, theItem: str) -> str: ... def Prepend(self, theItem: str) -> str: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> str: ... - def SetValue(self, theIndex: int, theValue: str) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> str: ... class TDataStd_RealEnum(IntEnum): TDataStd_SCALAR: int = ... @@ -79,7 +81,7 @@ class tdatastd: class TDataStd_AsciiString(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Get(self) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -93,7 +95,9 @@ class TDataStd_AsciiString(TDF_Attribute): def Set(label: TDF_Label, string: str) -> TDataStd_AsciiString: ... @overload @staticmethod - def Set(label: TDF_Label, guid: Standard_GUID, string: str) -> TDataStd_AsciiString: ... + def Set( + label: TDF_Label, guid: Standard_GUID, string: str + ) -> TDataStd_AsciiString: ... @overload def Set(self, S: str) -> None: ... @overload @@ -104,7 +108,7 @@ class TDataStd_AsciiString(TDF_Attribute): class TDataStd_BooleanArray(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... def ID(self) -> Standard_GUID: ... @@ -120,7 +124,9 @@ class TDataStd_BooleanArray(TDF_Attribute): def Set(label: TDF_Label, lower: int, upper: int) -> TDataStd_BooleanArray: ... @overload @staticmethod - def Set(label: TDF_Label, theGuid: Standard_GUID, lower: int, upper: int) -> TDataStd_BooleanArray: ... + def Set( + label: TDF_Label, theGuid: Standard_GUID, lower: int, upper: int + ) -> TDataStd_BooleanArray: ... @overload def SetID(self, theGuid: Standard_GUID) -> None: ... @overload @@ -135,7 +141,7 @@ class TDataStd_BooleanList(TDF_Attribute): def Append(self, value: bool) -> None: ... def Clear(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Extent(self) -> int: ... def First(self) -> bool: ... @staticmethod @@ -164,10 +170,14 @@ class TDataStd_BooleanList(TDF_Attribute): class TDataStd_ByteArray(TDF_Attribute): def __init__(self) -> None: ... - def ChangeArray(self, newArray: TColStd_HArray1OfByte, isCheckItems: Optional[bool] = True) -> None: ... - def DeltaOnModification(self, anOldAttribute: TDF_Attribute) -> TDF_DeltaOnModification: ... + def ChangeArray( + self, newArray: TColStd_HArray1OfByte, isCheckItems: Optional[bool] = True + ) -> None: ... + def DeltaOnModification( + self, anOldAttribute: TDF_Attribute + ) -> TDF_DeltaOnModification: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetDelta(self) -> bool: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -181,10 +191,18 @@ class TDataStd_ByteArray(TDF_Attribute): def Restore(self, with_: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(label: TDF_Label, lower: int, upper: int, isDelta: Optional[bool] = False) -> TDataStd_ByteArray: ... + def Set( + label: TDF_Label, lower: int, upper: int, isDelta: Optional[bool] = False + ) -> TDataStd_ByteArray: ... @overload @staticmethod - def Set(label: TDF_Label, theGuid: Standard_GUID, lower: int, upper: int, isDelta: Optional[bool] = False) -> TDataStd_ByteArray: ... + def Set( + label: TDF_Label, + theGuid: Standard_GUID, + lower: int, + upper: int, + isDelta: Optional[bool] = False, + ) -> TDataStd_ByteArray: ... def SetDelta(self, isDelta: bool) -> None: ... @overload def SetID(self, theGuid: Standard_GUID) -> None: ... @@ -198,8 +216,12 @@ class TDataStd_ChildNodeIterator: @overload def __init__(self) -> None: ... @overload - def __init__(self, aTreeNode: TDataStd_TreeNode, allLevels: Optional[bool] = False) -> None: ... - def Initialize(self, aTreeNode: TDataStd_TreeNode, allLevels: Optional[bool] = False) -> None: ... + def __init__( + self, aTreeNode: TDataStd_TreeNode, allLevels: Optional[bool] = False + ) -> None: ... + def Initialize( + self, aTreeNode: TDataStd_TreeNode, allLevels: Optional[bool] = False + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def NextBrother(self) -> None: ... @@ -208,7 +230,7 @@ class TDataStd_ChildNodeIterator: class TDataStd_Current(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def Get(acces: TDF_Label) -> TDF_Label: ... @staticmethod @@ -247,7 +269,7 @@ class TDataStd_DeltaOnModificationOfRealArray(TDF_DeltaOnModification): class TDataStd_Expression(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetExpression(self) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -264,10 +286,16 @@ class TDataStd_Expression(TDF_Attribute): class TDataStd_ExtStringArray(TDF_Attribute): def __init__(self) -> None: ... def Array(self) -> TColStd_HArray1OfExtendedString: ... - def ChangeArray(self, newArray: TColStd_HArray1OfExtendedString, isCheckItems: Optional[bool] = True) -> None: ... - def DeltaOnModification(self, anOldAttribute: TDF_Attribute) -> TDF_DeltaOnModification: ... + def ChangeArray( + self, + newArray: TColStd_HArray1OfExtendedString, + isCheckItems: Optional[bool] = True, + ) -> None: ... + def DeltaOnModification( + self, anOldAttribute: TDF_Attribute + ) -> TDF_DeltaOnModification: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetDelta(self) -> bool: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -280,10 +308,18 @@ class TDataStd_ExtStringArray(TDF_Attribute): def Restore(self, With: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(label: TDF_Label, lower: int, upper: int, isDelta: Optional[bool] = False) -> TDataStd_ExtStringArray: ... + def Set( + label: TDF_Label, lower: int, upper: int, isDelta: Optional[bool] = False + ) -> TDataStd_ExtStringArray: ... @overload @staticmethod - def Set(label: TDF_Label, theGuid: Standard_GUID, lower: int, upper: int, isDelta: Optional[bool] = False) -> TDataStd_ExtStringArray: ... + def Set( + label: TDF_Label, + theGuid: Standard_GUID, + lower: int, + upper: int, + isDelta: Optional[bool] = False, + ) -> TDataStd_ExtStringArray: ... def SetDelta(self, isDelta: bool) -> None: ... @overload def SetID(self, theGuid: Standard_GUID) -> None: ... @@ -298,7 +334,7 @@ class TDataStd_ExtStringList(TDF_Attribute): def Append(self, value: str) -> None: ... def Clear(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Extent(self) -> int: ... def First(self) -> str: ... @staticmethod @@ -391,9 +427,11 @@ class TDataStd_IntPackedMap(TDF_Attribute): def ChangeMap(self, theMap: TColStd_PackedMapOfInteger) -> bool: ... def Clear(self) -> bool: ... def Contains(self, theKey: int) -> bool: ... - def DeltaOnModification(self, anOldAttribute: TDF_Attribute) -> TDF_DeltaOnModification: ... + def DeltaOnModification( + self, anOldAttribute: TDF_Attribute + ) -> TDF_DeltaOnModification: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Extent(self) -> int: ... def GetDelta(self) -> bool: ... def GetHMap(self) -> TColStd_HPackedMapOfInteger: ... @@ -407,13 +445,15 @@ class TDataStd_IntPackedMap(TDF_Attribute): def Remove(self, theKey: int) -> bool: ... def Restore(self, with_: TDF_Attribute) -> None: ... @staticmethod - def Set(label: TDF_Label, isDelta: Optional[bool] = False) -> TDataStd_IntPackedMap: ... + def Set( + label: TDF_Label, isDelta: Optional[bool] = False + ) -> TDataStd_IntPackedMap: ... def SetDelta(self, isDelta: bool) -> None: ... class TDataStd_Integer(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Get(self) -> int: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -438,10 +478,14 @@ class TDataStd_Integer(TDF_Attribute): class TDataStd_IntegerArray(TDF_Attribute): def __init__(self) -> None: ... def Array(self) -> TColStd_HArray1OfInteger: ... - def ChangeArray(self, newArray: TColStd_HArray1OfInteger, isCheckItems: Optional[bool] = True) -> None: ... - def DeltaOnModification(self, anOldAttribute: TDF_Attribute) -> TDF_DeltaOnModification: ... + def ChangeArray( + self, newArray: TColStd_HArray1OfInteger, isCheckItems: Optional[bool] = True + ) -> None: ... + def DeltaOnModification( + self, anOldAttribute: TDF_Attribute + ) -> TDF_DeltaOnModification: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetDelta(self) -> bool: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -454,10 +498,18 @@ class TDataStd_IntegerArray(TDF_Attribute): def Restore(self, With: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(label: TDF_Label, lower: int, upper: int, isDelta: Optional[bool] = False) -> TDataStd_IntegerArray: ... + def Set( + label: TDF_Label, lower: int, upper: int, isDelta: Optional[bool] = False + ) -> TDataStd_IntegerArray: ... @overload @staticmethod - def Set(label: TDF_Label, theGuid: Standard_GUID, lower: int, upper: int, isDelta: Optional[bool] = False) -> TDataStd_IntegerArray: ... + def Set( + label: TDF_Label, + theGuid: Standard_GUID, + lower: int, + upper: int, + isDelta: Optional[bool] = False, + ) -> TDataStd_IntegerArray: ... def SetDelta(self, isDelta: bool) -> None: ... @overload def SetID(self, theGuid: Standard_GUID) -> None: ... @@ -472,7 +524,7 @@ class TDataStd_IntegerList(TDF_Attribute): def Append(self, value: int) -> None: ... def Clear(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Extent(self) -> int: ... def First(self) -> int: ... @staticmethod @@ -504,18 +556,24 @@ class TDataStd_IntegerList(TDF_Attribute): class TDataStd_NamedData(TDF_Attribute): def __init__(self) -> None: ... - def ChangeArraysOfIntegers(self, theArraysOfIntegers: TDataStd_DataMapOfStringHArray1OfInteger) -> None: ... - def ChangeArraysOfReals(self, theArraysOfReals: TDataStd_DataMapOfStringHArray1OfReal) -> None: ... + def ChangeArraysOfIntegers( + self, theArraysOfIntegers: TDataStd_DataMapOfStringHArray1OfInteger + ) -> None: ... + def ChangeArraysOfReals( + self, theArraysOfReals: TDataStd_DataMapOfStringHArray1OfReal + ) -> None: ... def ChangeBytes(self, theBytes: TDataStd_DataMapOfStringByte) -> None: ... def ChangeIntegers(self, theIntegers: TColStd_DataMapOfStringInteger) -> None: ... def ChangeReals(self, theReals: TDataStd_DataMapOfStringReal) -> None: ... def ChangeStrings(self, theStrings: TDataStd_DataMapOfStringString) -> None: ... def Clear(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetArrayOfIntegers(self, theName: str) -> TColStd_HArray1OfInteger: ... def GetArrayOfReals(self, theName: str) -> TColStd_HArray1OfReal: ... - def GetArraysOfIntegersContainer(self) -> TDataStd_DataMapOfStringHArray1OfInteger: ... + def GetArraysOfIntegersContainer( + self, + ) -> TDataStd_DataMapOfStringHArray1OfInteger: ... def GetArraysOfRealsContainer(self) -> TDataStd_DataMapOfStringHArray1OfReal: ... def GetByte(self, theName: str) -> str: ... def GetBytesContainer(self) -> TDataStd_DataMapOfStringByte: ... @@ -547,16 +605,24 @@ class TDataStd_NamedData(TDF_Attribute): def Restore(self, With: TDF_Attribute) -> None: ... @staticmethod def Set(label: TDF_Label) -> TDataStd_NamedData: ... - def SetArrayOfIntegers(self, theName: str, theArrayOfIntegers: TColStd_HArray1OfInteger) -> None: ... - def SetArrayOfReals(self, theName: str, theArrayOfReals: TColStd_HArray1OfReal) -> None: ... + def SetArrayOfIntegers( + self, theName: str, theArrayOfIntegers: TColStd_HArray1OfInteger + ) -> None: ... + def SetArrayOfReals( + self, theName: str, theArrayOfReals: TColStd_HArray1OfReal + ) -> None: ... def SetByte(self, theName: str, theByte: str) -> None: ... def SetInteger(self, theName: str, theInteger: int) -> None: ... def SetReal(self, theName: str, theReal: float) -> None: ... def SetString(self, theName: str, theString: str) -> None: ... def UnloadDeferredData(self) -> bool: ... def clear(self) -> None: ... - def setArrayOfIntegers(self, theName: str, theArrayOfIntegers: TColStd_HArray1OfInteger) -> None: ... - def setArrayOfReals(self, theName: str, theArrayOfReals: TColStd_HArray1OfReal) -> None: ... + def setArrayOfIntegers( + self, theName: str, theArrayOfIntegers: TColStd_HArray1OfInteger + ) -> None: ... + def setArrayOfReals( + self, theName: str, theArrayOfReals: TColStd_HArray1OfReal + ) -> None: ... def setByte(self, theName: str, theByte: str) -> None: ... def setInteger(self, theName: str, theInteger: int) -> None: ... def setReal(self, theName: str, theReal: float) -> None: ... @@ -565,7 +631,7 @@ class TDataStd_NamedData(TDF_Attribute): class TDataStd_Real(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Get(self) -> float: ... def GetDimension(self) -> TDataStd_RealEnum: ... @staticmethod @@ -592,10 +658,14 @@ class TDataStd_Real(TDF_Attribute): class TDataStd_RealArray(TDF_Attribute): def __init__(self) -> None: ... def Array(self) -> TColStd_HArray1OfReal: ... - def ChangeArray(self, newArray: TColStd_HArray1OfReal, isCheckItems: Optional[bool] = True) -> None: ... - def DeltaOnModification(self, anOldAttribute: TDF_Attribute) -> TDF_DeltaOnModification: ... + def ChangeArray( + self, newArray: TColStd_HArray1OfReal, isCheckItems: Optional[bool] = True + ) -> None: ... + def DeltaOnModification( + self, anOldAttribute: TDF_Attribute + ) -> TDF_DeltaOnModification: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetDelta(self) -> bool: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -608,10 +678,18 @@ class TDataStd_RealArray(TDF_Attribute): def Restore(self, With: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(label: TDF_Label, lower: int, upper: int, isDelta: Optional[bool] = False) -> TDataStd_RealArray: ... + def Set( + label: TDF_Label, lower: int, upper: int, isDelta: Optional[bool] = False + ) -> TDataStd_RealArray: ... @overload @staticmethod - def Set(label: TDF_Label, theGuid: Standard_GUID, lower: int, upper: int, isDelta: Optional[bool] = False) -> TDataStd_RealArray: ... + def Set( + label: TDF_Label, + theGuid: Standard_GUID, + lower: int, + upper: int, + isDelta: Optional[bool] = False, + ) -> TDataStd_RealArray: ... def SetDelta(self, isDelta: bool) -> None: ... @overload def SetID(self, theGuid: Standard_GUID) -> None: ... @@ -626,7 +704,7 @@ class TDataStd_RealList(TDF_Attribute): def Append(self, value: float) -> None: ... def Clear(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Extent(self) -> int: ... def First(self) -> float: ... @staticmethod @@ -659,7 +737,7 @@ class TDataStd_RealList(TDF_Attribute): class TDataStd_ReferenceArray(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... def ID(self) -> Standard_GUID: ... @@ -676,12 +754,16 @@ class TDataStd_ReferenceArray(TDF_Attribute): def Set(label: TDF_Label, lower: int, upper: int) -> TDataStd_ReferenceArray: ... @overload @staticmethod - def Set(label: TDF_Label, theGuid: Standard_GUID, lower: int, upper: int) -> TDataStd_ReferenceArray: ... + def Set( + label: TDF_Label, theGuid: Standard_GUID, lower: int, upper: int + ) -> TDataStd_ReferenceArray: ... @overload def SetID(self, theGuid: Standard_GUID) -> None: ... @overload def SetID(self) -> None: ... - def SetInternalArray(self, values: TDataStd_HLabelArray1, isCheckItems: Optional[bool] = True) -> None: ... + def SetInternalArray( + self, values: TDataStd_HLabelArray1, isCheckItems: Optional[bool] = True + ) -> None: ... def SetValue(self, index: int, value: TDF_Label) -> None: ... def Upper(self) -> int: ... def Value(self, Index: int) -> TDF_Label: ... @@ -691,7 +773,7 @@ class TDataStd_ReferenceList(TDF_Attribute): def Append(self, value: TDF_Label) -> None: ... def Clear(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Extent(self) -> int: ... def First(self) -> TDF_Label: ... @staticmethod @@ -732,13 +814,17 @@ class TDataStd_TreeNode(TDF_Attribute): def __init__(self) -> None: ... def AfterAddition(self) -> None: ... def AfterResume(self) -> None: ... - def AfterUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def AfterUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def Append(self, Child: TDataStd_TreeNode) -> bool: ... def BeforeForget(self) -> None: ... - def BeforeUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def BeforeUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def Depth(self) -> int: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Father(self) -> TDataStd_TreeNode: ... @staticmethod def Find(L: TDF_Label, T: TDataStd_TreeNode) -> bool: ... @@ -786,7 +872,7 @@ class TDataStd_TreeNode(TDF_Attribute): class TDataStd_UAttribute(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def ID(self) -> Standard_GUID: ... def NewEmpty(self) -> TDF_Attribute: ... def Paste(self, into: TDF_Attribute, RT: TDF_RelocationTable) -> None: ... @@ -802,7 +888,7 @@ class TDataStd_Variable(TDF_Attribute): def Constant(self, status: bool) -> None: ... def Desassign(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Expression(self) -> TDataStd_Expression: ... def Get(self) -> float: ... @staticmethod @@ -887,9 +973,13 @@ class TDataStd_Name(TDataStd_GenericExtString): class TDataStd_NoteBook(TDataStd_GenericEmpty): def __init__(self) -> None: ... @overload - def Append(self, value: float, isExported: Optional[bool] = False) -> TDataStd_Real: ... + def Append( + self, value: float, isExported: Optional[bool] = False + ) -> TDataStd_Real: ... @overload - def Append(self, value: int, isExported: Optional[bool] = False) -> TDataStd_Integer: ... + def Append( + self, value: int, isExported: Optional[bool] = False + ) -> TDataStd_Integer: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... @staticmethod def Find(current: TDF_Label, N: TDataStd_NoteBook) -> bool: ... @@ -902,7 +992,7 @@ class TDataStd_NoteBook(TDataStd_GenericEmpty): class TDataStd_Relation(TDataStd_Expression): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... def GetRelation(self) -> str: ... @@ -920,10 +1010,10 @@ class TDataStd_Tick(TDataStd_GenericEmpty): @staticmethod def Set(label: TDF_Label) -> TDataStd_Tick: ... -#classnotwrapped +# classnotwrapped class TDataStd_GenericEmpty: ... -#classnotwrapped +# classnotwrapped class TDataStd_GenericExtString: ... # harray1 classes @@ -934,4 +1024,3 @@ class TDataStd_HLabelArray1(TDataStd_LabelArray1, Standard_Transient): # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TDataXtd.pyi b/src/SWIG_files/wrapper/TDataXtd.pyi index 5148a9168..d69dc26eb 100644 --- a/src/SWIG_files/wrapper/TDataXtd.pyi +++ b/src/SWIG_files/wrapper/TDataXtd.pyi @@ -11,7 +11,6 @@ from OCC.Core.Quantity import * from OCC.Core.TopoDS import * from OCC.Core.Poly import * - class TDataXtd_Array1OfTrsf: @overload def __init__(self) -> None: ... @@ -167,11 +166,29 @@ class TDataXtd_Constraint(TDF_Attribute): @overload def Set(self, type: TDataXtd_ConstraintEnum, G1: TNaming_NamedShape) -> None: ... @overload - def Set(self, type: TDataXtd_ConstraintEnum, G1: TNaming_NamedShape, G2: TNaming_NamedShape) -> None: ... - @overload - def Set(self, type: TDataXtd_ConstraintEnum, G1: TNaming_NamedShape, G2: TNaming_NamedShape, G3: TNaming_NamedShape) -> None: ... - @overload - def Set(self, type: TDataXtd_ConstraintEnum, G1: TNaming_NamedShape, G2: TNaming_NamedShape, G3: TNaming_NamedShape, G4: TNaming_NamedShape) -> None: ... + def Set( + self, + type: TDataXtd_ConstraintEnum, + G1: TNaming_NamedShape, + G2: TNaming_NamedShape, + ) -> None: ... + @overload + def Set( + self, + type: TDataXtd_ConstraintEnum, + G1: TNaming_NamedShape, + G2: TNaming_NamedShape, + G3: TNaming_NamedShape, + ) -> None: ... + @overload + def Set( + self, + type: TDataXtd_ConstraintEnum, + G1: TNaming_NamedShape, + G2: TNaming_NamedShape, + G3: TNaming_NamedShape, + G4: TNaming_NamedShape, + ) -> None: ... def SetGeometry(self, Index: int, G: TNaming_NamedShape) -> None: ... def SetPlane(self, plane: TNaming_NamedShape) -> None: ... def SetType(self, CTR: TDataXtd_ConstraintEnum) -> None: ... @@ -295,7 +312,9 @@ class TDataXtd_Position(TDF_Attribute): def GetPosition(self) -> gp_Pnt: ... def ID(self) -> Standard_GUID: ... def NewEmpty(self) -> TDF_Attribute: ... - def Paste(self, intoAttribute: TDF_Attribute, aRelocTationable: TDF_RelocationTable) -> None: ... + def Paste( + self, intoAttribute: TDF_Attribute, aRelocTationable: TDF_RelocationTable + ) -> None: ... def Restore(self, anAttribute: TDF_Attribute) -> None: ... @overload @staticmethod @@ -307,7 +326,9 @@ class TDataXtd_Position(TDF_Attribute): class TDataXtd_Presentation(TDF_Attribute): def __init__(self) -> None: ... - def AddSelectionMode(self, theSelectionMode: int, theTransaction: Optional[bool] = True) -> None: ... + def AddSelectionMode( + self, theSelectionMode: int, theTransaction: Optional[bool] = True + ) -> None: ... def BackupCopy(self) -> TDF_Attribute: ... def Color(self) -> Quantity_NameOfColor: ... def GetDriverGUID(self) -> Standard_GUID: ... @@ -325,17 +346,23 @@ class TDataXtd_Presentation(TDF_Attribute): def MaterialIndex(self) -> int: ... def Mode(self) -> int: ... def NewEmpty(self) -> TDF_Attribute: ... - def Paste(self, intoAttribute: TDF_Attribute, aRelocTationable: TDF_RelocationTable) -> None: ... + def Paste( + self, intoAttribute: TDF_Attribute, aRelocTationable: TDF_RelocationTable + ) -> None: ... def Restore(self, anAttribute: TDF_Attribute) -> None: ... def SelectionMode(self, index: Optional[int] = 1) -> int: ... @staticmethod - def Set(theLabel: TDF_Label, theDriverId: Standard_GUID) -> TDataXtd_Presentation: ... + def Set( + theLabel: TDF_Label, theDriverId: Standard_GUID + ) -> TDataXtd_Presentation: ... def SetColor(self, theColor: Quantity_NameOfColor) -> None: ... def SetDisplayed(self, theIsDisplayed: bool) -> None: ... def SetDriverGUID(self, theGUID: Standard_GUID) -> None: ... def SetMaterialIndex(self, theMaterialIndex: int) -> None: ... def SetMode(self, theMode: int) -> None: ... - def SetSelectionMode(self, theSelectionMode: int, theTransaction: Optional[bool] = True) -> None: ... + def SetSelectionMode( + self, theSelectionMode: int, theTransaction: Optional[bool] = True + ) -> None: ... def SetTransparency(self, theValue: float) -> None: ... def SetWidth(self, theWidth: float) -> None: ... def Transparency(self) -> float: ... @@ -395,7 +422,9 @@ class TDataXtd_Triangulation(TDF_Attribute): def Set(theLabel: TDF_Label) -> TDataXtd_Triangulation: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theTriangulation: Poly_Triangulation) -> TDataXtd_Triangulation: ... + def Set( + theLabel: TDF_Label, theTriangulation: Poly_Triangulation + ) -> TDataXtd_Triangulation: ... @overload def Set(self, theTriangulation: Poly_Triangulation) -> None: ... def SetNode(self, theIndex: int, theNode: gp_Pnt) -> None: ... @@ -468,4 +497,3 @@ class TDataXtd_HArray1OfTrsf(TDataXtd_Array1OfTrsf, Standard_Transient): # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TDocStd.pyi b/src/SWIG_files/wrapper/TDocStd.pyi index 8a06084d9..c20ea07ef 100644 --- a/src/SWIG_files/wrapper/TDocStd.pyi +++ b/src/SWIG_files/wrapper/TDocStd.pyi @@ -15,34 +15,46 @@ from OCC.Core.Resource import * TDocStd_XLinkPtr = NewType("TDocStd_XLinkPtr", TDocStd_XLink) class TDocStd_SequenceOfApplicationDelta: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TDocStd_SequenceOfDocument: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TDocStd_SequenceOfDocument: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class TDocStd_FormatVersion(IntEnum): TDocStd_FormatVersion_VERSION_2: int = ... @@ -66,12 +78,17 @@ TDocStd_FormatVersion_VERSION_6 = TDocStd_FormatVersion.TDocStd_FormatVersion_VE TDocStd_FormatVersion_VERSION_7 = TDocStd_FormatVersion.TDocStd_FormatVersion_VERSION_7 TDocStd_FormatVersion_VERSION_8 = TDocStd_FormatVersion.TDocStd_FormatVersion_VERSION_8 TDocStd_FormatVersion_VERSION_9 = TDocStd_FormatVersion.TDocStd_FormatVersion_VERSION_9 -TDocStd_FormatVersion_VERSION_10 = TDocStd_FormatVersion.TDocStd_FormatVersion_VERSION_10 -TDocStd_FormatVersion_VERSION_11 = TDocStd_FormatVersion.TDocStd_FormatVersion_VERSION_11 -TDocStd_FormatVersion_VERSION_12 = TDocStd_FormatVersion.TDocStd_FormatVersion_VERSION_12 +TDocStd_FormatVersion_VERSION_10 = ( + TDocStd_FormatVersion.TDocStd_FormatVersion_VERSION_10 +) +TDocStd_FormatVersion_VERSION_11 = ( + TDocStd_FormatVersion.TDocStd_FormatVersion_VERSION_11 +) +TDocStd_FormatVersion_VERSION_12 = ( + TDocStd_FormatVersion.TDocStd_FormatVersion_VERSION_12 +) TDocStd_FormatVersion_CURRENT = TDocStd_FormatVersion.TDocStd_FormatVersion_CURRENT - class tdocstd: @staticmethod def IDList(anIDList: TDF_IDList) -> None: ... @@ -79,8 +96,15 @@ class tdocstd: class TDocStd_Application(CDF_Application): def __init__(self) -> None: ... def Close(self, aDoc: TDocStd_Document) -> None: ... - def DefineFormat(self, theFormat: str, theDescription: str, theExtension: str, theReader: PCDM_RetrievalDriver, theWriter: PCDM_StorageDriver) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DefineFormat( + self, + theFormat: str, + theDescription: str, + theExtension: str, + theReader: PCDM_RetrievalDriver, + theWriter: PCDM_StorageDriver, + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetDocument(self, index: int, aDoc: TDocStd_Document) -> None: ... def InitDocument(self, aDoc: CDM_Document) -> None: ... def IsDriverLoaded(self) -> bool: ... @@ -94,28 +118,79 @@ class TDocStd_Application(CDF_Application): def OnCommitTransaction(self, theDoc: TDocStd_Document) -> None: ... def OnOpenTransaction(self, theDoc: TDocStd_Document) -> None: ... @overload - def Open(self, thePath: str, theDoc: TDocStd_Document, theFilter: PCDM_ReaderFilter, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> PCDM_ReaderStatus: ... - @overload - def Open(self, thePath: str, theDoc: TDocStd_Document, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> PCDM_ReaderStatus: ... - @overload - def Open(self, theIStream: str, theDoc: TDocStd_Document, theFilter: PCDM_ReaderFilter, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> PCDM_ReaderStatus: ... - @overload - def Open(self, theIStream: str, theDoc: TDocStd_Document, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> PCDM_ReaderStatus: ... + def Open( + self, + thePath: str, + theDoc: TDocStd_Document, + theFilter: PCDM_ReaderFilter, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> PCDM_ReaderStatus: ... + @overload + def Open( + self, + thePath: str, + theDoc: TDocStd_Document, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> PCDM_ReaderStatus: ... + @overload + def Open( + self, + theIStream: str, + theDoc: TDocStd_Document, + theFilter: PCDM_ReaderFilter, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> PCDM_ReaderStatus: ... + @overload + def Open( + self, + theIStream: str, + theDoc: TDocStd_Document, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> PCDM_ReaderStatus: ... def ReadingFormats(self, theFormats: TColStd_SequenceOfAsciiString) -> None: ... def Resources(self) -> Resource_Manager: ... def ResourcesName(self) -> str: ... @overload - def Save(self, theDoc: TDocStd_Document, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> PCDM_StoreStatus: ... - @overload - def Save(self, theDoc: TDocStd_Document, theStatusMessage: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> PCDM_StoreStatus: ... - @overload - def SaveAs(self, theDoc: TDocStd_Document, path: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> PCDM_StoreStatus: ... - @overload - def SaveAs(self, theDoc: TDocStd_Document, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Tuple[PCDM_StoreStatus, str]: ... - @overload - def SaveAs(self, theDoc: TDocStd_Document, path: str, theStatusMessage: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> PCDM_StoreStatus: ... - @overload - def SaveAs(self, theDoc: TDocStd_Document, theStatusMessage: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Tuple[PCDM_StoreStatus, str]: ... + def Save( + self, + theDoc: TDocStd_Document, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> PCDM_StoreStatus: ... + @overload + def Save( + self, + theDoc: TDocStd_Document, + theStatusMessage: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> PCDM_StoreStatus: ... + @overload + def SaveAs( + self, + theDoc: TDocStd_Document, + path: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> PCDM_StoreStatus: ... + @overload + def SaveAs( + self, + theDoc: TDocStd_Document, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Tuple[PCDM_StoreStatus, str]: ... + @overload + def SaveAs( + self, + theDoc: TDocStd_Document, + path: str, + theStatusMessage: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> PCDM_StoreStatus: ... + @overload + def SaveAs( + self, + theDoc: TDocStd_Document, + theStatusMessage: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Tuple[PCDM_StoreStatus, str]: ... def WritingFormats(self, theFormats: TColStd_SequenceOfAsciiString) -> None: ... class TDocStd_ApplicationDelta(Standard_Transient): @@ -144,7 +219,7 @@ class TDocStd_Document(CDM_Document): def CommitCommand(self) -> bool: ... @staticmethod def CurrentStorageFormatVersion() -> TDocStd_FormatVersion: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EmptyLabelsSavingMode(self) -> bool: ... @staticmethod def Get(L: TDF_Label) -> TDocStd_Document: ... @@ -185,7 +260,9 @@ class TDocStd_Document(CDM_Document): def StorageFormat(self) -> str: ... def StorageFormatVersion(self) -> TDocStd_FormatVersion: ... def Undo(self) -> bool: ... - def Update(self, aToDocument: CDM_Document, aReferenceIdentifier: int, aModifContext: None) -> None: ... + def Update( + self, aToDocument: CDM_Document, aReferenceIdentifier: int, aModifContext: None + ) -> None: ... def UpdateReferences(self, aDocEntry: str) -> None: ... class TDocStd_Modified(TDF_Attribute): @@ -251,7 +328,7 @@ class TDocStd_MultiTransactionManager(Standard_Transient): class TDocStd_Owner(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload @staticmethod def GetDocument(ofdata: TDF_Data) -> TDocStd_Document: ... @@ -286,10 +363,14 @@ class TDocStd_PathParser: class TDocStd_XLink(TDF_Attribute): def __init__(self) -> None: ... def AfterAddition(self) -> None: ... - def AfterUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def AfterUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def BackupCopy(self) -> TDF_Attribute: ... def BeforeRemoval(self) -> None: ... - def BeforeUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def BeforeUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... @overload def DocumentEntry(self, aDocEntry: str) -> None: ... @overload @@ -305,7 +386,9 @@ class TDocStd_XLink(TDF_Attribute): @overload def LabelEntry(self) -> str: ... def NewEmpty(self) -> TDF_Attribute: ... - def Paste(self, intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable) -> None: ... + def Paste( + self, intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable + ) -> None: ... def Restore(self, anAttribute: TDF_Attribute) -> None: ... @staticmethod def Set(atLabel: TDF_Label) -> TDocStd_XLink: ... @@ -330,7 +413,9 @@ class TDocStd_XLinkRoot(TDF_Attribute): @staticmethod def Insert(anXLinkPtr: TDocStd_XLinkPtr) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... - def Paste(self, intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable) -> None: ... + def Paste( + self, intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable + ) -> None: ... @staticmethod def Remove(anXLinkPtr: TDocStd_XLinkPtr) -> None: ... def Restore(self, anAttribute: TDF_Attribute) -> None: ... @@ -349,4 +434,3 @@ class TDocStd_XLinkTool: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TFunction.pyi b/src/SWIG_files/wrapper/TFunction.pyi index 5464a9665..8b53b08b4 100644 --- a/src/SWIG_files/wrapper/TFunction.pyi +++ b/src/SWIG_files/wrapper/TFunction.pyi @@ -7,7 +7,9 @@ from OCC.Core.TDF import * from OCC.Core.TColStd import * # the following typedef cannot be wrapped as is -TFunction_DoubleMapIteratorOfDoubleMapOfIntegerLabel = NewType("TFunction_DoubleMapIteratorOfDoubleMapOfIntegerLabel", Any) +TFunction_DoubleMapIteratorOfDoubleMapOfIntegerLabel = NewType( + "TFunction_DoubleMapIteratorOfDoubleMapOfIntegerLabel", Any +) # the following typedef cannot be wrapped as is TFunction_DoubleMapOfIntegerLabel = NewType("TFunction_DoubleMapOfIntegerLabel", Any) @@ -35,10 +37,14 @@ class TFunction_Driver(Standard_Transient): class TFunction_DriverTable(Standard_Transient): def __init__(self) -> None: ... - def AddDriver(self, guid: Standard_GUID, driver: TFunction_Driver, thread: Optional[int] = 0) -> bool: ... + def AddDriver( + self, guid: Standard_GUID, driver: TFunction_Driver, thread: Optional[int] = 0 + ) -> bool: ... def Clear(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def FindDriver(self, guid: Standard_GUID, driver: TFunction_Driver, thread: Optional[int] = 0) -> bool: ... + def FindDriver( + self, guid: Standard_GUID, driver: TFunction_Driver, thread: Optional[int] = 0 + ) -> bool: ... @staticmethod def Get() -> TFunction_DriverTable: ... def HasDriver(self, guid: Standard_GUID, thread: Optional[int] = 0) -> bool: ... @@ -47,7 +53,7 @@ class TFunction_DriverTable(Standard_Transient): class TFunction_Function(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Failed(self) -> bool: ... def GetDriverGUID(self) -> Standard_GUID: ... def GetFailure(self) -> int: ... @@ -161,13 +167,17 @@ class TFunction_Logbook(TDF_Attribute): def ID(self) -> Standard_GUID: ... def IsDone(self) -> bool: ... def IsEmpty(self) -> bool: ... - def IsModified(self, L: TDF_Label, WithChildren: Optional[bool] = False) -> bool: ... + def IsModified( + self, L: TDF_Label, WithChildren: Optional[bool] = False + ) -> bool: ... def NewEmpty(self) -> TDF_Attribute: ... def Paste(self, into: TDF_Attribute, RT: TDF_RelocationTable) -> None: ... def Restore(self, with_: TDF_Attribute) -> None: ... @staticmethod def Set(Access: TDF_Label) -> TFunction_Logbook: ... - def SetImpacted(self, L: TDF_Label, WithChildren: Optional[bool] = False) -> None: ... + def SetImpacted( + self, L: TDF_Label, WithChildren: Optional[bool] = False + ) -> None: ... def SetTouched(self, L: TDF_Label) -> None: ... @overload def SetValid(self, L: TDF_Label, WithChildren: Optional[bool] = False) -> None: ... @@ -207,10 +217,11 @@ class TFunction_Scope(TDF_Attribute): # harray1 classes -class TFunction_HArray1OfDataMapOfGUIDDriver(TFunction_Array1OfDataMapOfGUIDDriver, Standard_Transient): +class TFunction_HArray1OfDataMapOfGUIDDriver( + TFunction_Array1OfDataMapOfGUIDDriver, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TFunction_Array1OfDataMapOfGUIDDriver: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TNaming.i b/src/SWIG_files/wrapper/TNaming.i index e192780db..2ebb93f80 100644 --- a/src/SWIG_files/wrapper/TNaming.i +++ b/src/SWIG_files/wrapper/TNaming.i @@ -167,6 +167,12 @@ TNaming_SHELLIN = TNaming_NameType.TNaming_SHELLIN %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TNaming_ListOfMapOfShape) NCollection_List; @@ -175,6 +181,12 @@ TNaming_SHELLIN = TNaming_NameType.TNaming_SHELLIN %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TNaming_ListIteratorOfListOfMapOfShape(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TNaming_ListOfNamedShape) NCollection_List>; @@ -183,6 +195,12 @@ TNaming_SHELLIN = TNaming_NameType.TNaming_SHELLIN %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TNaming_ListIteratorOfListOfNamedShape(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TNaming_MapOfNamedShape) NCollection_Map>; diff --git a/src/SWIG_files/wrapper/TNaming.pyi b/src/SWIG_files/wrapper/TNaming.pyi index f413689c3..2cefe9b57 100644 --- a/src/SWIG_files/wrapper/TNaming.pyi +++ b/src/SWIG_files/wrapper/TNaming.pyi @@ -12,9 +12,13 @@ from OCC.Core.TColStd import * from OCC.Core.TopAbs import * # the following typedef cannot be wrapped as is -TNaming_DataMapIteratorOfDataMapOfShapeMapOfShape = NewType("TNaming_DataMapIteratorOfDataMapOfShapeMapOfShape", Any) +TNaming_DataMapIteratorOfDataMapOfShapeMapOfShape = NewType( + "TNaming_DataMapIteratorOfDataMapOfShapeMapOfShape", Any +) # the following typedef cannot be wrapped as is -TNaming_MapIteratorOfMapOfNamedShape = NewType("TNaming_MapIteratorOfMapOfNamedShape", Any) +TNaming_MapIteratorOfMapOfNamedShape = NewType( + "TNaming_MapIteratorOfMapOfNamedShape", Any +) # the following typedef cannot be wrapped as is TNaming_MapIteratorOfMapOfShape = NewType("TNaming_MapIteratorOfMapOfShape", Any) # the following typedef cannot be wrapped as is @@ -26,46 +30,52 @@ TNaming_PtrNode = NewType("TNaming_PtrNode", TNaming_Node) TNaming_PtrRefShape = NewType("TNaming_PtrRefShape", TNaming_RefShape) class TNaming_ListOfIndexedDataMapOfShapeListOfShape: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append( + self, theItem: TopTools_IndexedDataMapOfShapeListOfShape + ) -> TopTools_IndexedDataMapOfShapeListOfShape: ... + def Assign( + self, theItem: TNaming_ListOfIndexedDataMapOfShapeListOfShape + ) -> TNaming_ListOfIndexedDataMapOfShapeListOfShape: ... def Clear(self) -> None: ... def First(self) -> TopTools_IndexedDataMapOfShapeListOfShape: ... def Last(self) -> TopTools_IndexedDataMapOfShapeListOfShape: ... - def Append(self, theItem: TopTools_IndexedDataMapOfShapeListOfShape) -> TopTools_IndexedDataMapOfShapeListOfShape: ... - def Prepend(self, theItem: TopTools_IndexedDataMapOfShapeListOfShape) -> TopTools_IndexedDataMapOfShapeListOfShape: ... + def Prepend( + self, theItem: TopTools_IndexedDataMapOfShapeListOfShape + ) -> TopTools_IndexedDataMapOfShapeListOfShape: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopTools_IndexedDataMapOfShapeListOfShape: ... - def SetValue(self, theIndex: int, theValue: TopTools_IndexedDataMapOfShapeListOfShape) -> None: ... - -class TNaming_ListOfMapOfShape: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> TopTools_IndexedDataMapOfShapeListOfShape: ... + +class TNaming_ListOfMapOfShape: + def Append(self, theItem: TopTools_MapOfShape) -> TopTools_MapOfShape: ... + def Assign(self, theItem: TNaming_ListOfMapOfShape) -> TNaming_ListOfMapOfShape: ... def Clear(self) -> None: ... def First(self) -> TopTools_MapOfShape: ... def Last(self) -> TopTools_MapOfShape: ... - def Append(self, theItem: TopTools_MapOfShape) -> TopTools_MapOfShape: ... def Prepend(self, theItem: TopTools_MapOfShape) -> TopTools_MapOfShape: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopTools_MapOfShape: ... - def SetValue(self, theIndex: int, theValue: TopTools_MapOfShape) -> None: ... - -class TNaming_ListOfNamedShape: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> TopTools_MapOfShape: ... + +class TNaming_ListOfNamedShape: + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: TNaming_ListOfNamedShape) -> TNaming_ListOfNamedShape: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class TNaming_Evolution(IntEnum): TNaming_PRIMITIVE: int = ... @@ -113,11 +123,15 @@ class tnaming: @staticmethod def ChangeShapes(label: TDF_Label, M: TopTools_DataMapOfShapeShape) -> None: ... @staticmethod - def Displace(label: TDF_Label, aLocation: TopLoc_Location, WithOld: Optional[bool] = True) -> None: ... + def Displace( + label: TDF_Label, aLocation: TopLoc_Location, WithOld: Optional[bool] = True + ) -> None: ... @staticmethod def FindUniqueContext(S: TopoDS_Shape, Context: TopoDS_Shape) -> TopoDS_Shape: ... @staticmethod - def FindUniqueContextSet(S: TopoDS_Shape, Context: TopoDS_Shape, Arr: TopTools_HArray1OfShape) -> TopoDS_Shape: ... + def FindUniqueContextSet( + S: TopoDS_Shape, Context: TopoDS_Shape, Arr: TopTools_HArray1OfShape + ) -> TopoDS_Shape: ... @staticmethod def IDList(anIDList: TDF_IDList) -> None: ... @staticmethod @@ -142,9 +156,15 @@ class tnaming: @staticmethod def Replicate(SH: TopoDS_Shape, T: gp_Trsf, L: TDF_Label) -> None: ... @staticmethod - def Substitute(labelsource: TDF_Label, labelcible: TDF_Label, mapOldNew: TopTools_DataMapOfShapeShape) -> None: ... + def Substitute( + labelsource: TDF_Label, + labelcible: TDF_Label, + mapOldNew: TopTools_DataMapOfShapeShape, + ) -> None: ... @staticmethod - def SubstituteSShape(accesslabel: TDF_Label, From: TopoDS_Shape, To: TopoDS_Shape) -> bool: ... + def SubstituteSShape( + accesslabel: TDF_Label, From: TopoDS_Shape, To: TopoDS_Shape + ) -> bool: ... @staticmethod def Transform(label: TDF_Label, aTransformation: gp_Trsf) -> None: ... @staticmethod @@ -163,13 +183,24 @@ class TNaming_Builder: class TNaming_CopyShape: @staticmethod - def CopyTool(aShape: TopoDS_Shape, aMap: TColStd_IndexedDataMapOfTransientTransient, aResult: TopoDS_Shape) -> None: ... + def CopyTool( + aShape: TopoDS_Shape, + aMap: TColStd_IndexedDataMapOfTransientTransient, + aResult: TopoDS_Shape, + ) -> None: ... @overload @staticmethod - def Translate(aShape: TopoDS_Shape, aMap: TColStd_IndexedDataMapOfTransientTransient, aResult: TopoDS_Shape, TrTool: TNaming_TranslateTool) -> None: ... + def Translate( + aShape: TopoDS_Shape, + aMap: TColStd_IndexedDataMapOfTransientTransient, + aResult: TopoDS_Shape, + TrTool: TNaming_TranslateTool, + ) -> None: ... @overload @staticmethod - def Translate(L: TopLoc_Location, aMap: TColStd_IndexedDataMapOfTransientTransient) -> TopLoc_Location: ... + def Translate( + L: TopLoc_Location, aMap: TColStd_IndexedDataMapOfTransientTransient + ) -> TopLoc_Location: ... class TNaming_DeltaOnModification(TDF_DeltaOnModification): def __init__(self, NS: TNaming_NamedShape) -> None: ... @@ -181,22 +212,34 @@ class TNaming_DeltaOnRemoval(TDF_DeltaOnRemoval): class TNaming_Identifier: @overload - def __init__(self, Lab: TDF_Label, S: TopoDS_Shape, Context: TopoDS_Shape, Geom: bool) -> None: ... + def __init__( + self, Lab: TDF_Label, S: TopoDS_Shape, Context: TopoDS_Shape, Geom: bool + ) -> None: ... @overload - def __init__(self, Lab: TDF_Label, S: TopoDS_Shape, ContextNS: TNaming_NamedShape, Geom: bool) -> None: ... - def AncestorIdentification(self, Localizer: TNaming_Localizer, Context: TopoDS_Shape) -> None: ... + def __init__( + self, Lab: TDF_Label, S: TopoDS_Shape, ContextNS: TNaming_NamedShape, Geom: bool + ) -> None: ... + def AncestorIdentification( + self, Localizer: TNaming_Localizer, Context: TopoDS_Shape + ) -> None: ... def ArgIsFeature(self) -> bool: ... def Feature(self) -> TNaming_NamedShape: ... def FeatureArg(self) -> TNaming_NamedShape: ... - def GeneratedIdentification(self, Localizer: TNaming_Localizer, NS: TNaming_NamedShape) -> None: ... - def Identification(self, Localizer: TNaming_Localizer, NS: TNaming_NamedShape) -> None: ... + def GeneratedIdentification( + self, Localizer: TNaming_Localizer, NS: TNaming_NamedShape + ) -> None: ... + def Identification( + self, Localizer: TNaming_Localizer, NS: TNaming_NamedShape + ) -> None: ... def InitArgs(self) -> None: ... def IsDone(self) -> bool: ... def IsFeature(self) -> bool: ... def MoreArgs(self) -> bool: ... def NamedShapeOfGeneration(self) -> TNaming_NamedShape: ... def NextArg(self) -> None: ... - def PrimitiveIdentification(self, Localizer: TNaming_Localizer, NS: TNaming_NamedShape) -> None: ... + def PrimitiveIdentification( + self, Localizer: TNaming_Localizer, NS: TNaming_NamedShape + ) -> None: ... def ShapeArg(self) -> TopoDS_Shape: ... def ShapeContext(self) -> TopoDS_Shape: ... def Type(self) -> TNaming_NameType: ... @@ -227,19 +270,46 @@ class TNaming_IteratorOnShapesSet: class TNaming_Localizer: def __init__(self) -> None: ... - def Ancestors(self, S: TopoDS_Shape, Type: TopAbs_ShapeEnum) -> TopTools_IndexedDataMapOfShapeListOfShape: ... - def Backward(self, NS: TNaming_NamedShape, S: TopoDS_Shape, Primitives: TNaming_MapOfNamedShape, ValidShapes: TopTools_MapOfShape) -> None: ... - def FindFeaturesInAncestors(self, S: TopoDS_Shape, In: TopoDS_Shape, AncInFeatures: TopTools_MapOfShape) -> None: ... - @staticmethod - def FindGenerator(NS: TNaming_NamedShape, S: TopoDS_Shape, theListOfGenerators: TopTools_ListOfShape) -> None: ... - def FindNeighbourg(self, Cont: TopoDS_Shape, S: TopoDS_Shape, Neighbourg: TopTools_MapOfShape) -> None: ... - @staticmethod - def FindShapeContext(NS: TNaming_NamedShape, theS: TopoDS_Shape, theSC: TopoDS_Shape) -> None: ... - def GoBack(self, S: TopoDS_Shape, Lab: TDF_Label, Evol: TNaming_Evolution, OldS: TopTools_ListOfShape, OldLab: TNaming_ListOfNamedShape) -> None: ... + def Ancestors( + self, S: TopoDS_Shape, Type: TopAbs_ShapeEnum + ) -> TopTools_IndexedDataMapOfShapeListOfShape: ... + def Backward( + self, + NS: TNaming_NamedShape, + S: TopoDS_Shape, + Primitives: TNaming_MapOfNamedShape, + ValidShapes: TopTools_MapOfShape, + ) -> None: ... + def FindFeaturesInAncestors( + self, S: TopoDS_Shape, In: TopoDS_Shape, AncInFeatures: TopTools_MapOfShape + ) -> None: ... + @staticmethod + def FindGenerator( + NS: TNaming_NamedShape, + S: TopoDS_Shape, + theListOfGenerators: TopTools_ListOfShape, + ) -> None: ... + def FindNeighbourg( + self, Cont: TopoDS_Shape, S: TopoDS_Shape, Neighbourg: TopTools_MapOfShape + ) -> None: ... + @staticmethod + def FindShapeContext( + NS: TNaming_NamedShape, theS: TopoDS_Shape, theSC: TopoDS_Shape + ) -> None: ... + def GoBack( + self, + S: TopoDS_Shape, + Lab: TDF_Label, + Evol: TNaming_Evolution, + OldS: TopTools_ListOfShape, + OldLab: TNaming_ListOfNamedShape, + ) -> None: ... def Init(self, US: TNaming_UsedShapes, CurTrans: int) -> None: ... @staticmethod def IsNew(S: TopoDS_Shape, NS: TNaming_NamedShape) -> bool: ... - def SubShapes(self, S: TopoDS_Shape, Type: TopAbs_ShapeEnum) -> TopTools_MapOfShape: ... + def SubShapes( + self, S: TopoDS_Shape, Type: TopAbs_ShapeEnum + ) -> TopTools_MapOfShape: ... class TNaming_Name: def __init__(self) -> None: ... @@ -249,7 +319,7 @@ class TNaming_Name: def ContextLabel(self, theLab: TDF_Label) -> None: ... @overload def ContextLabel(self) -> TDF_Label: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Index(self, I: int) -> None: ... @overload @@ -279,18 +349,24 @@ class TNaming_Name: class TNaming_NamedShape(TDF_Attribute): def __init__(self) -> None: ... - def AfterUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def AfterUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def BackupCopy(self) -> TDF_Attribute: ... def BeforeRemoval(self) -> None: ... - def BeforeUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def BeforeUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def Clear(self) -> None: ... @overload - def DeltaOnModification(self, anOldAttribute: TDF_Attribute) -> TDF_DeltaOnModification: ... + def DeltaOnModification( + self, anOldAttribute: TDF_Attribute + ) -> TDF_DeltaOnModification: ... @overload def DeltaOnModification(self, aDelta: TDF_DeltaOnModification) -> None: ... def DeltaOnRemoval(self) -> TDF_DeltaOnRemoval: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Evolution(self) -> TNaming_Evolution: ... def Get(self) -> TopoDS_Shape: ... @staticmethod @@ -298,7 +374,9 @@ class TNaming_NamedShape(TDF_Attribute): def ID(self) -> Standard_GUID: ... def IsEmpty(self) -> bool: ... def NewEmpty(self) -> TDF_Attribute: ... - def Paste(self, intoAttribute: TDF_Attribute, aRelocTationable: TDF_RelocationTable) -> None: ... + def Paste( + self, intoAttribute: TDF_Attribute, aRelocTationable: TDF_RelocationTable + ) -> None: ... def References(self, aDataSet: TDF_DataSet) -> None: ... def Restore(self, anAttribute: TDF_Attribute) -> None: ... def SetVersion(self, version: int) -> None: ... @@ -308,8 +386,10 @@ class TNaming_Naming(TDF_Attribute): def __init__(self) -> None: ... def ChangeName(self) -> TNaming_Name: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - def ExtendedDump(self, aFilter: TDF_IDFilter, aMap: TDF_AttributeIndexedMap) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + def ExtendedDump( + self, aFilter: TDF_IDFilter, aMap: TDF_AttributeIndexedMap + ) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... def GetName(self) -> TNaming_Name: ... @@ -318,7 +398,14 @@ class TNaming_Naming(TDF_Attribute): def Insert(under: TDF_Label) -> TNaming_Naming: ... def IsDefined(self) -> bool: ... @staticmethod - def Name(where: TDF_Label, Selection: TopoDS_Shape, Context: TopoDS_Shape, Geometry: Optional[bool] = False, KeepOrientation: Optional[bool] = False, BNproblem: Optional[bool] = False) -> TNaming_NamedShape: ... + def Name( + where: TDF_Label, + Selection: TopoDS_Shape, + Context: TopoDS_Shape, + Geometry: Optional[bool] = False, + KeepOrientation: Optional[bool] = False, + BNproblem: Optional[bool] = False, + ) -> TNaming_NamedShape: ... def NewEmpty(self) -> TDF_Attribute: ... def Paste(self, Into: TDF_Attribute, RT: TDF_RelocationTable) -> None: ... def References(self, aDataSet: TDF_DataSet) -> None: ... @@ -330,13 +417,26 @@ class TNaming_NamingTool: @staticmethod def BuildDescendants(NS: TNaming_NamedShape, Labels: TDF_LabelMap) -> None: ... @staticmethod - def CurrentShape(Valid: TDF_LabelMap, Forbiden: TDF_LabelMap, NS: TNaming_NamedShape, MS: TopTools_IndexedMapOfShape) -> None: ... - @staticmethod - def CurrentShapeFromShape(Valid: TDF_LabelMap, Forbiden: TDF_LabelMap, Acces: TDF_Label, S: TopoDS_Shape, MS: TopTools_IndexedMapOfShape) -> None: ... + def CurrentShape( + Valid: TDF_LabelMap, + Forbiden: TDF_LabelMap, + NS: TNaming_NamedShape, + MS: TopTools_IndexedMapOfShape, + ) -> None: ... + @staticmethod + def CurrentShapeFromShape( + Valid: TDF_LabelMap, + Forbiden: TDF_LabelMap, + Acces: TDF_Label, + S: TopoDS_Shape, + MS: TopTools_IndexedMapOfShape, + ) -> None: ... class TNaming_NewShapeIterator: @overload - def __init__(self, aShape: TopoDS_Shape, Transaction: int, access: TDF_Label) -> None: ... + def __init__( + self, aShape: TopoDS_Shape, Transaction: int, access: TDF_Label + ) -> None: ... @overload def __init__(self, aShape: TopoDS_Shape, access: TDF_Label) -> None: ... @overload @@ -352,7 +452,9 @@ class TNaming_NewShapeIterator: class TNaming_OldShapeIterator: @overload - def __init__(self, aShape: TopoDS_Shape, Transaction: int, access: TDF_Label) -> None: ... + def __init__( + self, aShape: TopoDS_Shape, Transaction: int, access: TDF_Label + ) -> None: ... @overload def __init__(self, aShape: TopoDS_Shape, access: TDF_Label) -> None: ... @overload @@ -371,7 +473,7 @@ class TNaming_RefShape: def __init__(self) -> None: ... @overload def __init__(self, S: TopoDS_Shape) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def FirstUse(self, aPtr: TNaming_PtrNode) -> None: ... @overload @@ -402,7 +504,9 @@ class TNaming_Scope: def GetValid(self) -> TDF_LabelMap: ... def IsValid(self, L: TDF_Label) -> bool: ... def Unvalid(self, L: TDF_Label) -> None: ... - def UnvalidChildren(self, L: TDF_Label, withroot: Optional[bool] = True) -> None: ... + def UnvalidChildren( + self, L: TDF_Label, withroot: Optional[bool] = True + ) -> None: ... def Valid(self, L: TDF_Label) -> None: ... def ValidChildren(self, L: TDF_Label, withroot: Optional[bool] = True) -> None: ... @overload @@ -414,19 +518,37 @@ class TNaming_Selector: def __init__(self, aLabel: TDF_Label) -> None: ... def Arguments(self, args: TDF_AttributeMap) -> None: ... @staticmethod - def IsIdentified(access: TDF_Label, selection: TopoDS_Shape, NS: TNaming_NamedShape, Geometry: Optional[bool] = False) -> bool: ... + def IsIdentified( + access: TDF_Label, + selection: TopoDS_Shape, + NS: TNaming_NamedShape, + Geometry: Optional[bool] = False, + ) -> bool: ... def NamedShape(self) -> TNaming_NamedShape: ... @overload - def Select(self, Selection: TopoDS_Shape, Context: TopoDS_Shape, Geometry: Optional[bool] = False, KeepOrientatation: Optional[bool] = False) -> bool: ... - @overload - def Select(self, Selection: TopoDS_Shape, Geometry: Optional[bool] = False, KeepOrientatation: Optional[bool] = False) -> bool: ... + def Select( + self, + Selection: TopoDS_Shape, + Context: TopoDS_Shape, + Geometry: Optional[bool] = False, + KeepOrientatation: Optional[bool] = False, + ) -> bool: ... + @overload + def Select( + self, + Selection: TopoDS_Shape, + Geometry: Optional[bool] = False, + KeepOrientatation: Optional[bool] = False, + ) -> bool: ... def Solve(self, Valid: TDF_LabelMap) -> bool: ... class TNaming_ShapesSet: @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, Type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def __init__( + self, S: TopoDS_Shape, Type: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE + ) -> None: ... @overload def Add(self, S: TopoDS_Shape) -> bool: ... @overload @@ -445,10 +567,16 @@ class TNaming_ShapesSet: class TNaming_Tool: @staticmethod - def Collect(NS: TNaming_NamedShape, Labels: TNaming_MapOfNamedShape, OnlyModif: Optional[bool] = True) -> None: ... + def Collect( + NS: TNaming_NamedShape, + Labels: TNaming_MapOfNamedShape, + OnlyModif: Optional[bool] = True, + ) -> None: ... @overload @staticmethod - def CurrentNamedShape(NS: TNaming_NamedShape, Updated: TDF_LabelMap) -> TNaming_NamedShape: ... + def CurrentNamedShape( + NS: TNaming_NamedShape, Updated: TDF_LabelMap + ) -> TNaming_NamedShape: ... @overload @staticmethod def CurrentNamedShape(NS: TNaming_NamedShape) -> TNaming_NamedShape: ... @@ -459,15 +587,24 @@ class TNaming_Tool: @staticmethod def CurrentShape(NS: TNaming_NamedShape, Updated: TDF_LabelMap) -> TopoDS_Shape: ... @staticmethod - def FindShape(Valid: TDF_LabelMap, Forbiden: TDF_LabelMap, Arg: TNaming_NamedShape, S: TopoDS_Shape) -> None: ... + def FindShape( + Valid: TDF_LabelMap, + Forbiden: TDF_LabelMap, + Arg: TNaming_NamedShape, + S: TopoDS_Shape, + ) -> None: ... @staticmethod - def GeneratedShape(S: TopoDS_Shape, Generation: TNaming_NamedShape) -> TopoDS_Shape: ... + def GeneratedShape( + S: TopoDS_Shape, Generation: TNaming_NamedShape + ) -> TopoDS_Shape: ... @staticmethod def GetShape(NS: TNaming_NamedShape) -> TopoDS_Shape: ... @staticmethod def HasLabel(access: TDF_Label, aShape: TopoDS_Shape) -> bool: ... @staticmethod - def InitialShape(aShape: TopoDS_Shape, anAcces: TDF_Label, Labels: TDF_LabelList) -> TopoDS_Shape: ... + def InitialShape( + aShape: TopoDS_Shape, anAcces: TDF_Label, Labels: TDF_LabelList + ) -> TopoDS_Shape: ... @staticmethod def Label(access: TDF_Label, aShape: TopoDS_Shape) -> Tuple[TDF_Label, int]: ... @staticmethod @@ -487,10 +624,25 @@ class TNaming_TranslateTool(Standard_Transient): def MakeSolid(self, S: TopoDS_Shape) -> None: ... def MakeVertex(self, S: TopoDS_Shape) -> None: ... def MakeWire(self, S: TopoDS_Shape) -> None: ... - def UpdateEdge(self, S1: TopoDS_Shape, S2: TopoDS_Shape, M: TColStd_IndexedDataMapOfTransientTransient) -> None: ... - def UpdateFace(self, S1: TopoDS_Shape, S2: TopoDS_Shape, M: TColStd_IndexedDataMapOfTransientTransient) -> None: ... + def UpdateEdge( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + M: TColStd_IndexedDataMapOfTransientTransient, + ) -> None: ... + def UpdateFace( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + M: TColStd_IndexedDataMapOfTransientTransient, + ) -> None: ... def UpdateShape(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... - def UpdateVertex(self, S1: TopoDS_Shape, S2: TopoDS_Shape, M: TColStd_IndexedDataMapOfTransientTransient) -> None: ... + def UpdateVertex( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + M: TColStd_IndexedDataMapOfTransientTransient, + ) -> None: ... class TNaming_Translator: def __init__(self) -> None: ... @@ -504,24 +656,27 @@ class TNaming_Translator: def Perform(self) -> None: ... class TNaming_UsedShapes(TDF_Attribute): - def AfterUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def AfterUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def BackupCopy(self) -> TDF_Attribute: ... def BeforeRemoval(self) -> None: ... def DeltaOnAddition(self) -> TDF_DeltaOnAddition: ... def DeltaOnRemoval(self) -> TDF_DeltaOnRemoval: ... def Destroy(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... def ID(self) -> Standard_GUID: ... def Map(self) -> TNaming_DataMapOfShapePtrRefShape: ... def NewEmpty(self) -> TDF_Attribute: ... - def Paste(self, intoAttribute: TDF_Attribute, aRelocTationable: TDF_RelocationTable) -> None: ... + def Paste( + self, intoAttribute: TDF_Attribute, aRelocTationable: TDF_RelocationTable + ) -> None: ... def References(self, aDataSet: TDF_DataSet) -> None: ... def Restore(self, anAttribute: TDF_Attribute) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TObj.pyi b/src/SWIG_files/wrapper/TObj.pyi index 64dd475e8..8edec0106 100644 --- a/src/SWIG_files/wrapper/TObj.pyi +++ b/src/SWIG_files/wrapper/TObj.pyi @@ -15,34 +15,46 @@ TObj_TIntSparseArray_MapOfData = NewType("TObj_TIntSparseArray_MapOfData", Any) TObj_TIntSparseArray_VecOfData = NewType("TObj_TIntSparseArray_VecOfData", Any) class TObj_SequenceOfIterator: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TObj_SequenceOfObject: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class TObj_SequenceOfObject: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class TObj_DeletingMode(IntEnum): TObj_FreeOnly: int = ... @@ -55,7 +67,7 @@ TObj_Forced = TObj_DeletingMode.TObj_Forced class TObj_Application(TDocStd_Application): def CreateNewDocument(self, theDoc: TDocStd_Document, theFormat: str) -> bool: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def ErrorMessage(self, theMsg: str, theLevel: Message_Gravity) -> None: ... @overload @@ -64,13 +76,17 @@ class TObj_Application(TDocStd_Application): def GetInstance() -> TObj_Application: ... def IsVerbose(self) -> bool: ... @overload - def LoadDocument(self, theSourceFile: str, theTargetDoc: TDocStd_Document) -> bool: ... + def LoadDocument( + self, theSourceFile: str, theTargetDoc: TDocStd_Document + ) -> bool: ... @overload def LoadDocument(self, theIStream: str, theTargetDoc: TDocStd_Document) -> bool: ... def Messenger(self) -> Message_Messenger: ... def ResourcesName(self) -> str: ... @overload - def SaveDocument(self, theSourceDoc: TDocStd_Document, theTargetFile: str) -> bool: ... + def SaveDocument( + self, theSourceDoc: TDocStd_Document, theTargetFile: str + ) -> bool: ... @overload def SaveDocument(self, theSourceDoc: TDocStd_Document) -> Tuple[bool, str]: ... def SetVerbose(self, isVerbose: bool) -> None: ... @@ -111,8 +127,12 @@ class TObj_Model(Standard_Transient): def Close(self) -> bool: ... def CloseDocument(self, theDoc: TDocStd_Document) -> None: ... def CommitCommand(self) -> None: ... - def CopyReferences(self, theTarget: TObj_Model, theRelocTable: TDF_RelocationTable) -> None: ... - def FindObject(self, theName: TCollection_HExtendedString, theDictionary: TObj_TNameContainer) -> TObj_Object: ... + def CopyReferences( + self, theTarget: TObj_Model, theRelocTable: TDF_RelocationTable + ) -> None: ... + def FindObject( + self, theName: TCollection_HExtendedString, theDictionary: TObj_TNameContainer + ) -> TObj_Object: ... def GetApplication(self) -> TObj_Application: ... def GetChecker(self) -> TObj_CheckModel: ... def GetChildren(self) -> TObj_ObjectIterator: ... @@ -131,7 +151,9 @@ class TObj_Model(Standard_Transient): def GetRoot(self) -> TObj_Object: ... def HasOpenCommand(self) -> bool: ... def IsModified(self) -> bool: ... - def IsRegisteredName(self, theName: TCollection_HExtendedString, theDictionary: TObj_TNameContainer) -> bool: ... + def IsRegisteredName( + self, theName: TCollection_HExtendedString, theDictionary: TObj_TNameContainer + ) -> bool: ... @overload def Load(self, theFile: str) -> bool: ... @overload @@ -139,8 +161,15 @@ class TObj_Model(Standard_Transient): def Messenger(self) -> Message_Messenger: ... def NewEmpty(self) -> TObj_Model: ... def OpenCommand(self) -> None: ... - def Paste(self, theModel: TObj_Model, theRelocTable: Optional[TDF_RelocationTable] = 0) -> bool: ... - def RegisterName(self, theName: TCollection_HExtendedString, theLabel: TDF_Label, theDictionary: TObj_TNameContainer) -> None: ... + def Paste( + self, theModel: TObj_Model, theRelocTable: Optional[TDF_RelocationTable] = 0 + ) -> bool: ... + def RegisterName( + self, + theName: TCollection_HExtendedString, + theLabel: TDF_Label, + theDictionary: TObj_TNameContainer, + ) -> None: ... def Save(self) -> bool: ... @overload def SaveAs(self, theFile: str) -> bool: ... @@ -151,32 +180,54 @@ class TObj_Model(Standard_Transient): def SetModified(self, theModified: bool) -> None: ... @staticmethod def SetNewName(theObject: TObj_Object) -> None: ... - def UnRegisterName(self, theName: TCollection_HExtendedString, theDictionary: TObj_TNameContainer) -> None: ... + def UnRegisterName( + self, theName: TCollection_HExtendedString, theDictionary: TObj_TNameContainer + ) -> None: ... def Update(self) -> bool: ... class TObj_Object(Standard_Transient): def AddBackReference(self, theObject: TObj_Object) -> None: ... def AfterRetrieval(self) -> None: ... def BeforeStoring(self) -> None: ... - def CanDetach(self, theMode: Optional[TObj_DeletingMode] = TObj_FreeOnly) -> bool: ... + def CanDetach( + self, theMode: Optional[TObj_DeletingMode] = TObj_FreeOnly + ) -> bool: ... def CanRemoveReference(self, theObject: TObj_Object) -> bool: ... def ClearBackReferences(self) -> None: ... def ClearFlags(self, theMask: Optional[int] = ~0) -> None: ... - def Clone(self, theTargetLabel: TDF_Label, theRelocTable: Optional[TDF_RelocationTable] = 0) -> TObj_Object: ... - def CopyChildren(self, theTargetLabel: TDF_Label, theRelocTable: TDF_RelocationTable) -> None: ... - def CopyReferences(self, theTargetObject: TObj_Object, theRelocTable: TDF_RelocationTable) -> None: ... + def Clone( + self, + theTargetLabel: TDF_Label, + theRelocTable: Optional[TDF_RelocationTable] = 0, + ) -> TObj_Object: ... + def CopyChildren( + self, theTargetLabel: TDF_Label, theRelocTable: TDF_RelocationTable + ) -> None: ... + def CopyReferences( + self, theTargetObject: TObj_Object, theRelocTable: TDF_RelocationTable + ) -> None: ... @overload def Detach(self, theMode: Optional[TObj_DeletingMode] = TObj_FreeOnly) -> bool: ... @overload @staticmethod - def Detach(theLabel: TDF_Label, theMode: Optional[TObj_DeletingMode] = TObj_FreeOnly) -> bool: ... - def GetBackReferences(self, theType: Optional[Standard_Type] = None) -> TObj_ObjectIterator: ... - def GetBadReference(self, theRoot: TDF_Label, theBadReference: TDF_Label) -> bool: ... + def Detach( + theLabel: TDF_Label, theMode: Optional[TObj_DeletingMode] = TObj_FreeOnly + ) -> bool: ... + def GetBackReferences( + self, theType: Optional[Standard_Type] = None + ) -> TObj_ObjectIterator: ... + def GetBadReference( + self, theRoot: TDF_Label, theBadReference: TDF_Label + ) -> bool: ... def GetChildLabel(self) -> TDF_Label: ... - def GetChildren(self, theType: Optional[Standard_Type] = None) -> TObj_ObjectIterator: ... + def GetChildren( + self, theType: Optional[Standard_Type] = None + ) -> TObj_ObjectIterator: ... def GetDataLabel(self) -> TDF_Label: ... def GetDictionary(self) -> TObj_TNameContainer: ... - def GetFatherObject(self, theType: Optional[Standard_Type] = None) -> TObj_Object: ... + def GetFatherObject( + self, theType: Optional[Standard_Type] = None + ) -> TObj_Object: ... def GetFlags(self) -> int: ... def GetLabel(self) -> TDF_Label: ... def GetModel(self) -> TObj_Model: ... @@ -187,21 +238,36 @@ class TObj_Object(Standard_Transient): @overload def GetName(self, theName: str) -> bool: ... @staticmethod - def GetObj(theLabel: TDF_Label, theResult: TObj_Object, isSuper: Optional[bool] = False) -> bool: ... + def GetObj( + theLabel: TDF_Label, theResult: TObj_Object, isSuper: Optional[bool] = False + ) -> bool: ... def GetOrder(self) -> int: ... def GetReferenceLabel(self) -> TDF_Label: ... - def GetReferences(self, theType: Optional[Standard_Type] = None) -> TObj_ObjectIterator: ... + def GetReferences( + self, theType: Optional[Standard_Type] = None + ) -> TObj_ObjectIterator: ... def GetTypeFlags(self) -> int: ... def HasBackReferences(self) -> bool: ... def HasModifications(self) -> bool: ... def HasReference(self, theObject: TObj_Object) -> bool: ... def IsAlive(self) -> bool: ... - def RelocateReferences(self, theFromRoot: TDF_Label, theToRoot: TDF_Label, theUpdateBackRefs: Optional[bool] = True) -> bool: ... + def RelocateReferences( + self, + theFromRoot: TDF_Label, + theToRoot: TDF_Label, + theUpdateBackRefs: Optional[bool] = True, + ) -> bool: ... def RemoveAllReferences(self) -> None: ... - def RemoveBackReference(self, theObject: TObj_Object, theSingleOnly: Optional[bool] = True) -> None: ... - def RemoveBackReferences(self, theMode: Optional[TObj_DeletingMode] = TObj_FreeOnly) -> bool: ... + def RemoveBackReference( + self, theObject: TObj_Object, theSingleOnly: Optional[bool] = True + ) -> None: ... + def RemoveBackReferences( + self, theMode: Optional[TObj_DeletingMode] = TObj_FreeOnly + ) -> bool: ... def RemoveReference(self, theObject: TObj_Object) -> None: ... - def ReplaceReference(self, theOldObject: TObj_Object, theNewObject: TObj_Object) -> None: ... + def ReplaceReference( + self, theOldObject: TObj_Object, theNewObject: TObj_Object + ) -> None: ... def SetFlags(self, theMask: int) -> None: ... @overload def SetName(self, theName: TCollection_HExtendedString) -> bool: ... @@ -269,7 +335,9 @@ class TObj_TNameContainer(TDF_Attribute): def IsRegistered(self, theName: TCollection_HExtendedString) -> bool: ... def NewEmpty(self) -> TDF_Attribute: ... def Paste(self, theInto: TDF_Attribute, theRT: TDF_RelocationTable) -> None: ... - def RecordName(self, theName: TCollection_HExtendedString, theLabel: TDF_Label) -> None: ... + def RecordName( + self, theName: TCollection_HExtendedString, theLabel: TDF_Label + ) -> None: ... def RemoveName(self, theName: TCollection_HExtendedString) -> None: ... def Restore(self, theWith: TDF_Attribute) -> None: ... @overload @@ -299,9 +367,13 @@ class TObj_TReference(TDF_Attribute): def __init__(self) -> None: ... def AfterResume(self) -> None: ... def AfterRetrieval(self, forceIt: Optional[bool] = False) -> bool: ... - def AfterUndo(self, theDelta: TDF_AttributeDelta, isForced: Optional[bool] = False) -> bool: ... + def AfterUndo( + self, theDelta: TDF_AttributeDelta, isForced: Optional[bool] = False + ) -> bool: ... def BeforeForget(self) -> None: ... - def BeforeUndo(self, theDelta: TDF_AttributeDelta, isForced: Optional[bool] = False) -> bool: ... + def BeforeUndo( + self, theDelta: TDF_AttributeDelta, isForced: Optional[bool] = False + ) -> bool: ... def Get(self) -> TObj_Object: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -313,7 +385,9 @@ class TObj_TReference(TDF_Attribute): def Restore(self, theWith: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theObject: TObj_Object, theMaster: TObj_Object) -> TObj_TReference: ... + def Set( + theLabel: TDF_Label, theObject: TObj_Object, theMaster: TObj_Object + ) -> TObj_TReference: ... @overload def Set(self, theObject: TObj_Object, theMasterLabel: TDF_Label) -> None: ... @overload @@ -350,10 +424,14 @@ class TObj_ModelIterator(TObj_ObjectIterator): class TObj_Partition(TObj_Object): def AfterRetrieval(self) -> None: ... @staticmethod - def Create(theLabel: TDF_Label, theSetName: Optional[bool] = True) -> TObj_Partition: ... + def Create( + theLabel: TDF_Label, theSetName: Optional[bool] = True + ) -> TObj_Partition: ... def GetLastIndex(self) -> int: ... def GetNamePrefix(self) -> TCollection_HExtendedString: ... - def GetNewName(self, theIsToChangeCount: Optional[bool] = True) -> TCollection_HExtendedString: ... + def GetNewName( + self, theIsToChangeCount: Optional[bool] = True + ) -> TCollection_HExtendedString: ... @staticmethod def GetPartition(theObject: TObj_Object) -> TObj_Partition: ... def NewLabel(self) -> TDF_Label: ... @@ -363,7 +441,11 @@ class TObj_Partition(TObj_Object): def Update(self) -> bool: ... class TObj_SequenceIterator(TObj_ObjectIterator): - def __init__(self, theObjects: TObj_HSequenceOfObject, theType: Optional[Standard_Type] = None) -> None: ... + def __init__( + self, + theObjects: TObj_HSequenceOfObject, + theType: Optional[Standard_Type] = None, + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def Value(self) -> TObj_Object: ... @@ -373,10 +455,21 @@ class TObj_HiddenPartition(TObj_Partition): def GetTypeFlags(self) -> int: ... class TObj_OcafObjectIterator(TObj_LabelIterator): - def __init__(self, theLabel: TDF_Label, theType: Optional[Standard_Type] = None, theRecursive: Optional[bool] = False, theAllSubChildren: Optional[bool] = False) -> None: ... + def __init__( + self, + theLabel: TDF_Label, + theType: Optional[Standard_Type] = None, + theRecursive: Optional[bool] = False, + theAllSubChildren: Optional[bool] = False, + ) -> None: ... class TObj_ReferenceIterator(TObj_LabelIterator): - def __init__(self, theLabel: TDF_Label, theType: Optional[Standard_Type] = None, theRecursive: Optional[bool] = True) -> None: ... + def __init__( + self, + theLabel: TDF_Label, + theType: Optional[Standard_Type] = None, + theRecursive: Optional[bool] = True, + ) -> None: ... # harray1 classes # harray2 classes @@ -389,5 +482,3 @@ class TObj_HSequenceOfObject(TObj_SequenceOfObject, Standard_Transient): def __init__(self, other: TObj_SequenceOfObject) -> None: ... def Sequence(self) -> TObj_SequenceOfObject: ... def Append(self, theSequence: TObj_SequenceOfObject) -> None: ... - - diff --git a/src/SWIG_files/wrapper/TPrsStd.pyi b/src/SWIG_files/wrapper/TPrsStd.pyi index 9de8617f9..c23538022 100644 --- a/src/SWIG_files/wrapper/TPrsStd.pyi +++ b/src/SWIG_files/wrapper/TPrsStd.pyi @@ -11,20 +11,25 @@ from OCC.Core.V3d import * from OCC.Core.TDataXtd import * from OCC.Core.TCollection import * - class TPrsStd_AISPresentation(TDF_Attribute): def __init__(self) -> None: ... - def AddSelectionMode(self, theSelectionMode: int, theTransaction: Optional[bool] = True) -> None: ... + def AddSelectionMode( + self, theSelectionMode: int, theTransaction: Optional[bool] = True + ) -> None: ... def AfterAddition(self) -> None: ... def AfterResume(self) -> None: ... - def AfterUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def AfterUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def BackupCopy(self) -> TDF_Attribute: ... def BeforeForget(self) -> None: ... def BeforeRemoval(self) -> None: ... - def BeforeUndo(self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False) -> bool: ... + def BeforeUndo( + self, anAttDelta: TDF_AttributeDelta, forceIt: Optional[bool] = False + ) -> bool: ... def Color(self) -> Quantity_NameOfColor: ... def Display(self, update: Optional[bool] = False) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Erase(self, remove: Optional[bool] = False) -> None: ... def GetAIS(self) -> AIS_InteractiveObject: ... def GetDriverGUID(self) -> Standard_GUID: ... @@ -56,7 +61,9 @@ class TPrsStd_AISPresentation(TDF_Attribute): def SetDriverGUID(self, guid: Standard_GUID) -> None: ... def SetMaterial(self, aName: Graphic3d_NameOfMaterial) -> None: ... def SetMode(self, theMode: int) -> None: ... - def SetSelectionMode(self, theSelectionMode: int, theTransaction: Optional[bool] = True) -> None: ... + def SetSelectionMode( + self, theSelectionMode: int, theTransaction: Optional[bool] = True + ) -> None: ... def SetTransparency(self, aValue: Optional[float] = 0.6) -> None: ... def SetWidth(self, aWidth: float) -> None: ... def Transparency(self) -> float: ... @@ -73,7 +80,7 @@ class TPrsStd_AISPresentation(TDF_Attribute): class TPrsStd_AISViewer(TDF_Attribute): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload @staticmethod def Find(acces: TDF_Label, A: TPrsStd_AISViewer) -> bool: ... @@ -91,7 +98,9 @@ class TPrsStd_AISViewer(TDF_Attribute): def ID(self) -> Standard_GUID: ... @overload @staticmethod - def New(access: TDF_Label, selector: AIS_InteractiveContext) -> TPrsStd_AISViewer: ... + def New( + access: TDF_Label, selector: AIS_InteractiveContext + ) -> TPrsStd_AISViewer: ... @overload @staticmethod def New(acces: TDF_Label, viewer: V3d_Viewer) -> TPrsStd_AISViewer: ... @@ -107,51 +116,97 @@ class TPrsStd_AISViewer(TDF_Attribute): class TPrsStd_ConstraintTools: @staticmethod - def ComputeAngle(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeAngle( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeAngleForOneFace(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeAngleForOneFace( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeCoincident(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeCoincident( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeConcentric(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeConcentric( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeDiameter(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeDiameter( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeDistance(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeDistance( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeEqualDistance(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeEqualDistance( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeEqualRadius(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeEqualRadius( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeFix(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeFix( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeMaxRadius(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeMaxRadius( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeMidPoint(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeMidPoint( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeMinRadius(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeMinRadius( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeOffset(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeOffset( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeOthers(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeOthers( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeParallel(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeParallel( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputePerpendicular(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputePerpendicular( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputePlacement(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputePlacement( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeRadius(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeRadius( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeRound(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeRound( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeSymmetry(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeSymmetry( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeTangent(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def ComputeTangent( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... @staticmethod - def ComputeTextAndValue(aConst: TDataXtd_Constraint, aText: str, anIsAngle: bool) -> float: ... + def ComputeTextAndValue( + aConst: TDataXtd_Constraint, aText: str, anIsAngle: bool + ) -> float: ... @staticmethod - def UpdateOnlyValue(aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject) -> None: ... + def UpdateOnlyValue( + aConst: TDataXtd_Constraint, anAIS: AIS_InteractiveObject + ) -> None: ... class TPrsStd_Driver(Standard_Transient): def Update(self, L: TDF_Label, ais: AIS_InteractiveObject) -> bool: ... @@ -193,4 +248,3 @@ class TPrsStd_PointDriver(TPrsStd_Driver): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TShort.pyi b/src/SWIG_files/wrapper/TShort.pyi index b03106966..ff799a0ee 100644 --- a/src/SWIG_files/wrapper/TShort.pyi +++ b/src/SWIG_files/wrapper/TShort.pyi @@ -32,19 +32,25 @@ class TShort_Array1OfShortReal: def SetValue(self, theIndex: int, theValue: float) -> None: ... class TShort_SequenceOfShortReal: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: float) -> float: ... def Clear(self) -> None: ... def First(self) -> float: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> float: ... def Length(self) -> int: ... - def Append(self, theItem: float) -> float: ... + def Lower(self) -> int: ... def Prepend(self, theItem: float) -> float: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> float: ... def SetValue(self, theIndex: int, theValue: float) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> float: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... # harray1 classes @@ -56,7 +62,9 @@ class TShort_HArray1OfShortReal(TShort_Array1OfShortReal, Standard_Transient): class TShort_HArray2OfShortReal(TShort_Array2OfShortReal, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TShort_Array2OfShortReal) -> None: ... def Array2(self) -> TShort_Array2OfShortReal: ... @@ -70,5 +78,3 @@ class TShort_HSequenceOfShortReal(TShort_SequenceOfShortReal, Standard_Transient def __init__(self, other: TShort_SequenceOfShortReal) -> None: ... def Sequence(self) -> TShort_SequenceOfShortReal: ... def Append(self, theSequence: TShort_SequenceOfShortReal) -> None: ... - - diff --git a/src/SWIG_files/wrapper/TopAbs.pyi b/src/SWIG_files/wrapper/TopAbs.pyi index b7dea6cfd..73a385671 100644 --- a/src/SWIG_files/wrapper/TopAbs.pyi +++ b/src/SWIG_files/wrapper/TopAbs.pyi @@ -4,7 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class TopAbs_Orientation(IntEnum): TopAbs_FORWARD: int = ... TopAbs_REVERSED: int = ... @@ -52,7 +51,9 @@ class topabs: @staticmethod def Complement(Or: TopAbs_Orientation) -> TopAbs_Orientation: ... @staticmethod - def Compose(Or1: TopAbs_Orientation, Or2: TopAbs_Orientation) -> TopAbs_Orientation: ... + def Compose( + Or1: TopAbs_Orientation, Or2: TopAbs_Orientation + ) -> TopAbs_Orientation: ... @overload @staticmethod def Print(theShapeType: TopAbs_ShapeEnum) -> Tuple[Standard_OStream, str]: ... @@ -69,7 +70,9 @@ class topabs: def ShapeOrientationFromString(theOrientationString: str) -> TopAbs_Orientation: ... @overload @staticmethod - def ShapeOrientationFromString(theOrientationString: str) -> Tuple[bool, TopAbs_Orientation]: ... + def ShapeOrientationFromString( + theOrientationString: str, + ) -> Tuple[bool, TopAbs_Orientation]: ... @staticmethod def ShapeOrientationToString(theOrientation: TopAbs_Orientation) -> str: ... @overload @@ -84,4 +87,3 @@ class topabs: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopBas.i b/src/SWIG_files/wrapper/TopBas.i index 6ca119058..976858a47 100644 --- a/src/SWIG_files/wrapper/TopBas.i +++ b/src/SWIG_files/wrapper/TopBas.i @@ -79,6 +79,12 @@ from OCC.Core.Exception import * %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopBas_ListIteratorOfListOfTestInterference(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/TopBas.pyi b/src/SWIG_files/wrapper/TopBas.pyi index 7ee9e63b5..eccdaffd3 100644 --- a/src/SWIG_files/wrapper/TopBas.pyi +++ b/src/SWIG_files/wrapper/TopBas.pyi @@ -5,26 +5,34 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.TopAbs import * - class TopBas_ListOfTestInterference: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: TopBas_TestInterference) -> TopBas_TestInterference: ... + def Assign( + self, theItem: TopBas_ListOfTestInterference + ) -> TopBas_ListOfTestInterference: ... def Clear(self) -> None: ... def First(self) -> TopBas_TestInterference: ... def Last(self) -> TopBas_TestInterference: ... - def Append(self, theItem: TopBas_TestInterference) -> TopBas_TestInterference: ... def Prepend(self, theItem: TopBas_TestInterference) -> TopBas_TestInterference: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopBas_TestInterference: ... - def SetValue(self, theIndex: int, theValue: TopBas_TestInterference) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> TopBas_TestInterference: ... class TopBas_TestInterference: @overload def __init__(self) -> None: ... @overload - def __init__(self, Inters: float, Bound: int, Orient: TopAbs_Orientation, Trans: TopAbs_Orientation, BTrans: TopAbs_Orientation) -> None: ... + def __init__( + self, + Inters: float, + Bound: int, + Orient: TopAbs_Orientation, + Trans: TopAbs_Orientation, + BTrans: TopAbs_Orientation, + ) -> None: ... @overload def Boundary(self, B: int) -> None: ... @overload @@ -53,4 +61,3 @@ class TopBas_TestInterference: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopClass.pyi b/src/SWIG_files/wrapper/TopClass.pyi index 6380e38e7..3636bfa63 100644 --- a/src/SWIG_files/wrapper/TopClass.pyi +++ b/src/SWIG_files/wrapper/TopClass.pyi @@ -4,8 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopCnx.pyi b/src/SWIG_files/wrapper/TopCnx.pyi index 671f9c96d..0fb164f31 100644 --- a/src/SWIG_files/wrapper/TopCnx.pyi +++ b/src/SWIG_files/wrapper/TopCnx.pyi @@ -6,10 +6,18 @@ from OCC.Core.NCollection import * from OCC.Core.gp import * from OCC.Core.TopAbs import * - class TopCnx_EdgeFaceTransition: def __init__(self) -> None: ... - def AddInterference(self, Tole: float, Tang: gp_Dir, Norm: gp_Dir, Curv: float, Or: TopAbs_Orientation, Tr: TopAbs_Orientation, BTr: TopAbs_Orientation) -> None: ... + def AddInterference( + self, + Tole: float, + Tang: gp_Dir, + Norm: gp_Dir, + Curv: float, + Or: TopAbs_Orientation, + Tr: TopAbs_Orientation, + BTr: TopAbs_Orientation, + ) -> None: ... def BoundaryTransition(self) -> TopAbs_Orientation: ... @overload def Reset(self, Tgt: gp_Dir, Norm: gp_Dir, Curv: float) -> None: ... @@ -20,4 +28,3 @@ class TopCnx_EdgeFaceTransition: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopExp.pyi b/src/SWIG_files/wrapper/TopExp.pyi index 69c81ba28..5acf8ae4d 100644 --- a/src/SWIG_files/wrapper/TopExp.pyi +++ b/src/SWIG_files/wrapper/TopExp.pyi @@ -13,39 +13,81 @@ class topexp: @staticmethod def CommonVertex(E1: TopoDS_Edge, E2: TopoDS_Edge, V: TopoDS_Vertex) -> bool: ... @staticmethod - def FirstVertex(E: TopoDS_Edge, CumOri: Optional[bool] = False) -> TopoDS_Vertex: ... + def FirstVertex( + E: TopoDS_Edge, CumOri: Optional[bool] = False + ) -> TopoDS_Vertex: ... @staticmethod def LastVertex(E: TopoDS_Edge, CumOri: Optional[bool] = False) -> TopoDS_Vertex: ... @overload @staticmethod - def MapShapes(S: TopoDS_Shape, T: TopAbs_ShapeEnum, M: TopTools_IndexedMapOfShape) -> None: ... + def MapShapes( + S: TopoDS_Shape, T: TopAbs_ShapeEnum, M: TopTools_IndexedMapOfShape + ) -> None: ... @overload @staticmethod - def MapShapes(S: TopoDS_Shape, M: TopTools_IndexedMapOfShape, cumOri: Optional[bool] = True, cumLoc: Optional[bool] = True) -> None: ... + def MapShapes( + S: TopoDS_Shape, + M: TopTools_IndexedMapOfShape, + cumOri: Optional[bool] = True, + cumLoc: Optional[bool] = True, + ) -> None: ... @overload @staticmethod - def MapShapes(S: TopoDS_Shape, M: TopTools_MapOfShape, cumOri: Optional[bool] = True, cumLoc: Optional[bool] = True) -> None: ... + def MapShapes( + S: TopoDS_Shape, + M: TopTools_MapOfShape, + cumOri: Optional[bool] = True, + cumLoc: Optional[bool] = True, + ) -> None: ... @staticmethod - def MapShapesAndAncestors(S: TopoDS_Shape, TS: TopAbs_ShapeEnum, TA: TopAbs_ShapeEnum, M: TopTools_IndexedDataMapOfShapeListOfShape) -> None: ... + def MapShapesAndAncestors( + S: TopoDS_Shape, + TS: TopAbs_ShapeEnum, + TA: TopAbs_ShapeEnum, + M: TopTools_IndexedDataMapOfShapeListOfShape, + ) -> None: ... @staticmethod - def MapShapesAndUniqueAncestors(S: TopoDS_Shape, TS: TopAbs_ShapeEnum, TA: TopAbs_ShapeEnum, M: TopTools_IndexedDataMapOfShapeListOfShape, useOrientation: Optional[bool] = False) -> None: ... + def MapShapesAndUniqueAncestors( + S: TopoDS_Shape, + TS: TopAbs_ShapeEnum, + TA: TopAbs_ShapeEnum, + M: TopTools_IndexedDataMapOfShapeListOfShape, + useOrientation: Optional[bool] = False, + ) -> None: ... @overload @staticmethod - def Vertices(E: TopoDS_Edge, Vfirst: TopoDS_Vertex, Vlast: TopoDS_Vertex, CumOri: Optional[bool] = False) -> None: ... + def Vertices( + E: TopoDS_Edge, + Vfirst: TopoDS_Vertex, + Vlast: TopoDS_Vertex, + CumOri: Optional[bool] = False, + ) -> None: ... @overload @staticmethod - def Vertices(W: TopoDS_Wire, Vfirst: TopoDS_Vertex, Vlast: TopoDS_Vertex) -> None: ... + def Vertices( + W: TopoDS_Wire, Vfirst: TopoDS_Vertex, Vlast: TopoDS_Vertex + ) -> None: ... class TopExp_Explorer: @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, ToFind: TopAbs_ShapeEnum, ToAvoid: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + ToFind: TopAbs_ShapeEnum, + ToAvoid: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... def Clear(self) -> None: ... def Current(self) -> TopoDS_Shape: ... def Depth(self) -> int: ... def ExploredShape(self) -> TopoDS_Shape: ... - def Init(self, S: TopoDS_Shape, ToFind: TopAbs_ShapeEnum, ToAvoid: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def Init( + self, + S: TopoDS_Shape, + ToFind: TopAbs_ShapeEnum, + ToAvoid: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def ReInit(self) -> None: ... @@ -54,4 +96,3 @@ class TopExp_Explorer: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopLoc.pyi b/src/SWIG_files/wrapper/TopLoc.pyi index d3d41d1cc..14b037341 100644 --- a/src/SWIG_files/wrapper/TopLoc.pyi +++ b/src/SWIG_files/wrapper/TopLoc.pyi @@ -17,7 +17,7 @@ class TopLoc_Datum3D(Standard_Transient): def __init__(self) -> None: ... @overload def __init__(self, T: gp_Trsf) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Form(self) -> gp_TrsfForm: ... def ShallowDump(self) -> str: ... def Transformation(self) -> gp_Trsf: ... @@ -25,7 +25,7 @@ class TopLoc_Datum3D(Standard_Transient): class TopLoc_ItemLocation: def __init__(self, D: TopLoc_Datum3D, P: int) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... class TopLoc_Location: @overload @@ -36,7 +36,7 @@ class TopLoc_Location: def __init__(self, D: TopLoc_Datum3D) -> None: ... def Clear(self) -> None: ... def Divided(self, Other: TopLoc_Location) -> TopLoc_Location: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FirstDatum(self) -> TopLoc_Datum3D: ... def FirstPower(self) -> int: ... def HashCode(self) -> False: ... @@ -55,7 +55,9 @@ class TopLoc_Location: def Transformation(self) -> gp_Trsf: ... class TopLoc_SListNodeOfItemLocation(Standard_Transient): - def __init__(self, I: TopLoc_ItemLocation, aTail: TopLoc_SListOfItemLocation) -> None: ... + def __init__( + self, I: TopLoc_ItemLocation, aTail: TopLoc_SListOfItemLocation + ) -> None: ... def Tail(self) -> TopLoc_SListOfItemLocation: ... def Value(self) -> TopLoc_ItemLocation: ... @@ -63,12 +65,16 @@ class TopLoc_SListOfItemLocation: @overload def __init__(self) -> None: ... @overload - def __init__(self, anItem: TopLoc_ItemLocation, aTail: TopLoc_SListOfItemLocation) -> None: ... + def __init__( + self, anItem: TopLoc_ItemLocation, aTail: TopLoc_SListOfItemLocation + ) -> None: ... @overload def __init__(self, Other: TopLoc_SListOfItemLocation) -> None: ... @overload def __init__(self, theOther: TopLoc_SListOfItemLocation) -> None: ... - def Assign(self, Other: TopLoc_SListOfItemLocation) -> TopLoc_SListOfItemLocation: ... + def Assign( + self, Other: TopLoc_SListOfItemLocation + ) -> TopLoc_SListOfItemLocation: ... def Clear(self) -> None: ... def Construct(self, anItem: TopLoc_ItemLocation) -> None: ... def IsEmpty(self) -> bool: ... @@ -81,4 +87,3 @@ class TopLoc_SListOfItemLocation: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopOpeBRep.i b/src/SWIG_files/wrapper/TopOpeBRep.i index dae6d8d1c..5c69a9219 100644 --- a/src/SWIG_files/wrapper/TopOpeBRep.i +++ b/src/SWIG_files/wrapper/TopOpeBRep.i @@ -185,6 +185,12 @@ Array1ExtendIter(TopOpeBRep_VPointInter) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopOpeBRep_ListIteratorOfListOfBipoint(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TopOpeBRep_SequenceOfPoint2d) NCollection_Sequence; diff --git a/src/SWIG_files/wrapper/TopOpeBRep.pyi b/src/SWIG_files/wrapper/TopOpeBRep.pyi index 7ebbf18c5..1ce8bc996 100644 --- a/src/SWIG_files/wrapper/TopOpeBRep.pyi +++ b/src/SWIG_files/wrapper/TopOpeBRep.pyi @@ -19,13 +19,21 @@ from OCC.Core.Geom2d import * from OCC.Core.Geom import * from OCC.Core.BRepAdaptor import * -TopOpeBRep_PEdgesIntersector = NewType("TopOpeBRep_PEdgesIntersector", TopOpeBRep_EdgesIntersector) +TopOpeBRep_PEdgesIntersector = NewType( + "TopOpeBRep_PEdgesIntersector", TopOpeBRep_EdgesIntersector +) TopOpeBRep_PFacesFiller = NewType("TopOpeBRep_PFacesFiller", TopOpeBRep_FacesFiller) -TopOpeBRep_PFacesIntersector = NewType("TopOpeBRep_PFacesIntersector", TopOpeBRep_FacesIntersector) -TopOpeBRep_PIntRes2d_IntersectionPoint = NewType("TopOpeBRep_PIntRes2d_IntersectionPoint", IntRes2d_IntersectionPoint) +TopOpeBRep_PFacesIntersector = NewType( + "TopOpeBRep_PFacesIntersector", TopOpeBRep_FacesIntersector +) +TopOpeBRep_PIntRes2d_IntersectionPoint = NewType( + "TopOpeBRep_PIntRes2d_IntersectionPoint", IntRes2d_IntersectionPoint +) TopOpeBRep_PLineInter = NewType("TopOpeBRep_PLineInter", TopOpeBRep_LineInter) TopOpeBRep_PPntOn2S = NewType("TopOpeBRep_PPntOn2S", IntSurf_PntOn2S) -TopOpeBRep_PThePointOfIntersection = NewType("TopOpeBRep_PThePointOfIntersection", IntPatch_Point) +TopOpeBRep_PThePointOfIntersection = NewType( + "TopOpeBRep_PThePointOfIntersection", IntPatch_Point +) class TopOpeBRep_Array1OfLineInter: @overload @@ -76,33 +84,39 @@ class TopOpeBRep_Array1OfVPointInter: def SetValue(self, theIndex: int, theValue: TopOpeBRep_VPointInter) -> None: ... class TopOpeBRep_ListOfBipoint: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: TopOpeBRep_Bipoint) -> TopOpeBRep_Bipoint: ... + def Assign(self, theItem: TopOpeBRep_ListOfBipoint) -> TopOpeBRep_ListOfBipoint: ... def Clear(self) -> None: ... def First(self) -> TopOpeBRep_Bipoint: ... def Last(self) -> TopOpeBRep_Bipoint: ... - def Append(self, theItem: TopOpeBRep_Bipoint) -> TopOpeBRep_Bipoint: ... def Prepend(self, theItem: TopOpeBRep_Bipoint) -> TopOpeBRep_Bipoint: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopOpeBRep_Bipoint: ... - def SetValue(self, theIndex: int, theValue: TopOpeBRep_Bipoint) -> None: ... - -class TopOpeBRep_SequenceOfPoint2d: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> TopOpeBRep_Bipoint: ... + +class TopOpeBRep_SequenceOfPoint2d: + def Assign(self, theItem: TopOpeBRep_Point2d) -> TopOpeBRep_Point2d: ... def Clear(self) -> None: ... def First(self) -> TopOpeBRep_Point2d: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> TopOpeBRep_Point2d: ... def Length(self) -> int: ... - def Append(self, theItem: TopOpeBRep_Point2d) -> TopOpeBRep_Point2d: ... + def Lower(self) -> int: ... def Prepend(self, theItem: TopOpeBRep_Point2d) -> TopOpeBRep_Point2d: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopOpeBRep_Point2d: ... def SetValue(self, theIndex: int, theValue: TopOpeBRep_Point2d) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> TopOpeBRep_Point2d: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class TopOpeBRep_P2Dstatus(IntEnum): TopOpeBRep_P2DUNK: int = ... @@ -163,11 +177,35 @@ class TopOpeBRep_DSFiller: def CompleteDS2d(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... def Filter(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... def GapFiller(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... - def Insert(self, S1: TopoDS_Shape, S2: TopoDS_Shape, HDS: TopOpeBRepDS_HDataStructure, orientFORWARD: Optional[bool] = True) -> None: ... - def Insert1d(self, S1: TopoDS_Shape, S2: TopoDS_Shape, F1: TopoDS_Face, F2: TopoDS_Face, HDS: TopOpeBRepDS_HDataStructure, orientFORWARD: Optional[bool] = False) -> None: ... - def Insert2d(self, S1: TopoDS_Shape, S2: TopoDS_Shape, HDS: TopOpeBRepDS_HDataStructure) -> None: ... - def InsertIntersection(self, S1: TopoDS_Shape, S2: TopoDS_Shape, HDS: TopOpeBRepDS_HDataStructure, orientFORWARD: Optional[bool] = True) -> None: ... - def InsertIntersection2d(self, S1: TopoDS_Shape, S2: TopoDS_Shape, HDS: TopOpeBRepDS_HDataStructure) -> None: ... + def Insert( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + HDS: TopOpeBRepDS_HDataStructure, + orientFORWARD: Optional[bool] = True, + ) -> None: ... + def Insert1d( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + F1: TopoDS_Face, + F2: TopoDS_Face, + HDS: TopOpeBRepDS_HDataStructure, + orientFORWARD: Optional[bool] = False, + ) -> None: ... + def Insert2d( + self, S1: TopoDS_Shape, S2: TopoDS_Shape, HDS: TopOpeBRepDS_HDataStructure + ) -> None: ... + def InsertIntersection( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + HDS: TopOpeBRepDS_HDataStructure, + orientFORWARD: Optional[bool] = True, + ) -> None: ... + def InsertIntersection2d( + self, S1: TopoDS_Shape, S2: TopoDS_Shape, HDS: TopOpeBRepDS_HDataStructure + ) -> None: ... def IsContext1d(self, S: TopoDS_Shape) -> bool: ... def IsMadeOf1d(self, S: TopoDS_Shape) -> bool: ... def PShapeClassifier(self) -> TopOpeBRepTool_PShapeClassifier: ... @@ -180,7 +218,13 @@ class TopOpeBRep_EdgesFiller: def Face(self, I: int, F: TopoDS_Shape) -> None: ... @overload def Face(self, I: int) -> TopoDS_Shape: ... - def Insert(self, E1: TopoDS_Shape, E2: TopoDS_Shape, EI: TopOpeBRep_EdgesIntersector, HDS: TopOpeBRepDS_HDataStructure) -> None: ... + def Insert( + self, + E1: TopoDS_Shape, + E2: TopoDS_Shape, + EI: TopOpeBRep_EdgesIntersector, + HDS: TopOpeBRepDS_HDataStructure, + ) -> None: ... class TopOpeBRep_EdgesIntersector: def __init__(self) -> None: ... @@ -189,7 +233,9 @@ class TopOpeBRep_EdgesIntersector: def Dimension(self, D: int) -> None: ... @overload def Dimension(self) -> int: ... - def Dump(self, str: str, ie1: Optional[int] = 0, ie2: Optional[int] = 0) -> None: ... + def Dump( + self, str: str, ie1: Optional[int] = 0, ie2: Optional[int] = 0 + ) -> None: ... def Edge(self, Index: int) -> TopoDS_Shape: ... def Face(self, Index: int) -> TopoDS_Shape: ... def FacesSameOriented(self) -> bool: ... @@ -201,18 +247,24 @@ class TopOpeBRep_EdgesIntersector: def NbPoints(self) -> int: ... def NbSegments(self) -> int: ... def NextPoint(self) -> None: ... - def Perform(self, E1: TopoDS_Shape, E2: TopoDS_Shape, ReduceSegments: Optional[bool] = True) -> None: ... + def Perform( + self, E1: TopoDS_Shape, E2: TopoDS_Shape, ReduceSegments: Optional[bool] = True + ) -> None: ... @overload def Point(self) -> TopOpeBRep_Point2d: ... @overload def Point(self, I: int) -> TopOpeBRep_Point2d: ... def Points(self) -> TopOpeBRep_SequenceOfPoint2d: ... - def ReduceSegment(self, P1: TopOpeBRep_Point2d, P2: TopOpeBRep_Point2d, Pn: TopOpeBRep_Point2d) -> bool: ... + def ReduceSegment( + self, P1: TopOpeBRep_Point2d, P2: TopOpeBRep_Point2d, Pn: TopOpeBRep_Point2d + ) -> bool: ... def SameDomain(self) -> bool: ... @overload def SetFaces(self, F1: TopoDS_Shape, F2: TopoDS_Shape) -> None: ... @overload - def SetFaces(self, F1: TopoDS_Shape, F2: TopoDS_Shape, B1: Bnd_Box, B2: Bnd_Box) -> None: ... + def SetFaces( + self, F1: TopoDS_Shape, F2: TopoDS_Shape, B1: Bnd_Box, B2: Bnd_Box + ) -> None: ... def Status1(self) -> TopOpeBRep_P2Dstatus: ... def Surface(self, Index: int) -> BRepAdaptor_Surface: ... def SurfacesSameOriented(self) -> bool: ... @@ -221,7 +273,9 @@ class TopOpeBRep_EdgesIntersector: class TopOpeBRep_FFDumper(Standard_Transient): def __init__(self, PFF: TopOpeBRep_PFacesFiller) -> None: ... - def DumpDSP(self, VP: TopOpeBRep_VPointInter, GK: TopOpeBRepDS_Kind, G: int, newinDS: bool) -> None: ... + def DumpDSP( + self, VP: TopOpeBRep_VPointInter, GK: TopOpeBRepDS_Kind, G: int, newinDS: bool + ) -> None: ... @overload def DumpLine(self, I: int) -> None: ... @overload @@ -236,21 +290,41 @@ class TopOpeBRep_FFDumper(Standard_Transient): class TopOpeBRep_FFTransitionTool: @staticmethod - def ProcessEdgeONTransition(VP: TopOpeBRep_VPointInter, Index: int, R: TopoDS_Shape, E: TopoDS_Shape, F: TopoDS_Shape) -> TopOpeBRepDS_Transition: ... + def ProcessEdgeONTransition( + VP: TopOpeBRep_VPointInter, + Index: int, + R: TopoDS_Shape, + E: TopoDS_Shape, + F: TopoDS_Shape, + ) -> TopOpeBRepDS_Transition: ... @staticmethod - def ProcessEdgeTransition(P: TopOpeBRep_VPointInter, Index: int, LineOrientation: TopAbs_Orientation) -> TopOpeBRepDS_Transition: ... + def ProcessEdgeTransition( + P: TopOpeBRep_VPointInter, Index: int, LineOrientation: TopAbs_Orientation + ) -> TopOpeBRepDS_Transition: ... @staticmethod - def ProcessFaceTransition(L: TopOpeBRep_LineInter, Index: int, FaceOrientation: TopAbs_Orientation) -> TopOpeBRepDS_Transition: ... + def ProcessFaceTransition( + L: TopOpeBRep_LineInter, Index: int, FaceOrientation: TopAbs_Orientation + ) -> TopOpeBRepDS_Transition: ... @overload @staticmethod - def ProcessLineTransition(P: TopOpeBRep_VPointInter, Index: int, EdgeOrientation: TopAbs_Orientation) -> TopOpeBRepDS_Transition: ... + def ProcessLineTransition( + P: TopOpeBRep_VPointInter, Index: int, EdgeOrientation: TopAbs_Orientation + ) -> TopOpeBRepDS_Transition: ... @overload @staticmethod - def ProcessLineTransition(P: TopOpeBRep_VPointInter, L: TopOpeBRep_LineInter) -> TopOpeBRepDS_Transition: ... + def ProcessLineTransition( + P: TopOpeBRep_VPointInter, L: TopOpeBRep_LineInter + ) -> TopOpeBRepDS_Transition: ... class TopOpeBRep_FaceEdgeFiller: def __init__(self) -> None: ... - def Insert(self, F: TopoDS_Shape, E: TopoDS_Shape, FEINT: TopOpeBRep_FaceEdgeIntersector, HDS: TopOpeBRepDS_HDataStructure) -> None: ... + def Insert( + self, + F: TopoDS_Shape, + E: TopoDS_Shape, + FEINT: TopOpeBRep_FaceEdgeIntersector, + HDS: TopOpeBRepDS_HDataStructure, + ) -> None: ... class TopOpeBRep_FaceEdgeIntersector: def __init__(self) -> None: ... @@ -259,7 +333,9 @@ class TopOpeBRep_FaceEdgeIntersector: def InitPoint(self) -> None: ... def IsEmpty(self) -> bool: ... @overload - def IsVertex(self, S: TopoDS_Shape, P: gp_Pnt, Tol: float, V: TopoDS_Vertex) -> bool: ... + def IsVertex( + self, S: TopoDS_Shape, P: gp_Pnt, Tol: float, V: TopoDS_Vertex + ) -> bool: ... @overload def IsVertex(self, I: int, V: TopoDS_Vertex) -> bool: ... def MorePoint(self) -> bool: ... @@ -270,7 +346,9 @@ class TopOpeBRep_FaceEdgeIntersector: def Shape(self, Index: int) -> TopoDS_Shape: ... def State(self) -> TopAbs_State: ... def Tolerance(self) -> float: ... - def Transition(self, Index: int, FaceOrientation: TopAbs_Orientation) -> TopOpeBRepDS_Transition: ... + def Transition( + self, Index: int, FaceOrientation: TopAbs_Orientation + ) -> TopOpeBRepDS_Transition: ... def UVPoint(self, P: gp_Pnt2d) -> None: ... def Value(self) -> gp_Pnt: ... @@ -282,31 +360,56 @@ class TopOpeBRep_FacesFiller: def ChangePointClassifier(self) -> TopOpeBRep_PointClassifier: ... def CheckLine(self, L: TopOpeBRep_LineInter) -> bool: ... @staticmethod - def EqualpPonR(Lrest: TopOpeBRep_LineInter, VP1: TopOpeBRep_VPointInter, VP2: TopOpeBRep_VPointInter) -> bool: ... + def EqualpPonR( + Lrest: TopOpeBRep_LineInter, + VP1: TopOpeBRep_VPointInter, + VP2: TopOpeBRep_VPointInter, + ) -> bool: ... def Face(self, I: int) -> TopoDS_Face: ... @overload - def FaceFaceTransition(self, L: TopOpeBRep_LineInter, I: int) -> TopOpeBRepDS_Transition: ... + def FaceFaceTransition( + self, L: TopOpeBRep_LineInter, I: int + ) -> TopOpeBRepDS_Transition: ... @overload def FaceFaceTransition(self, I: int) -> TopOpeBRepDS_Transition: ... def FillLine(self) -> None: ... def FillLineVPonR(self) -> None: ... def GetESL(self, LES: TopTools_ListOfShape) -> None: ... @overload - def GetFFGeometry(self, DSP: TopOpeBRepDS_Point, K: TopOpeBRepDS_Kind) -> Tuple[bool, int]: ... - @overload - def GetFFGeometry(self, VP: TopOpeBRep_VPointInter, K: TopOpeBRepDS_Kind) -> Tuple[bool, int]: ... - def GetGeometry(self, IT: TopOpeBRepDS_ListIteratorOfListOfInterference, VP: TopOpeBRep_VPointInter, K: TopOpeBRepDS_Kind) -> Tuple[bool, int]: ... + def GetFFGeometry( + self, DSP: TopOpeBRepDS_Point, K: TopOpeBRepDS_Kind + ) -> Tuple[bool, int]: ... + @overload + def GetFFGeometry( + self, VP: TopOpeBRep_VPointInter, K: TopOpeBRepDS_Kind + ) -> Tuple[bool, int]: ... + def GetGeometry( + self, + IT: TopOpeBRepDS_ListIteratorOfListOfInterference, + VP: TopOpeBRep_VPointInter, + K: TopOpeBRepDS_Kind, + ) -> Tuple[bool, int]: ... def GetTraceIndex(self) -> Tuple[int, int]: ... def HDataStructure(self) -> TopOpeBRepDS_HDataStructure: ... - def Insert(self, F1: TopoDS_Shape, F2: TopoDS_Shape, FACINT: TopOpeBRep_FacesIntersector, HDS: TopOpeBRepDS_HDataStructure) -> None: ... + def Insert( + self, + F1: TopoDS_Shape, + F2: TopoDS_Shape, + FACINT: TopOpeBRep_FacesIntersector, + HDS: TopOpeBRepDS_HDataStructure, + ) -> None: ... @staticmethod - def IsVPtransLok(L: TopOpeBRep_LineInter, iVP: int, SI12: int, T: TopOpeBRepDS_Transition) -> bool: ... + def IsVPtransLok( + L: TopOpeBRep_LineInter, iVP: int, SI12: int, T: TopOpeBRepDS_Transition + ) -> bool: ... @staticmethod def LSameDomainERL(L: TopOpeBRep_LineInter, ERL: TopTools_ListOfShape) -> bool: ... @staticmethod def Lminmax(L: TopOpeBRep_LineInter) -> Tuple[float, float]: ... def LoadLine(self, L: TopOpeBRep_LineInter) -> None: ... - def MakeGeometry(self, VP: TopOpeBRep_VPointInter, ShapeIndex: int, K: TopOpeBRepDS_Kind) -> int: ... + def MakeGeometry( + self, VP: TopOpeBRep_VPointInter, ShapeIndex: int, K: TopOpeBRepDS_Kind + ) -> int: ... def PDataStructureDummy(self) -> TopOpeBRepDS_PDataStructure: ... def PFacesIntersectorDummy(self) -> TopOpeBRep_PFacesIntersector: ... def PLineInterDummy(self) -> TopOpeBRep_PLineInter: ... @@ -315,26 +418,63 @@ class TopOpeBRep_FacesFiller: def ProcessRLine(self) -> None: ... def ProcessSectionEdges(self) -> None: ... def ProcessVPInotonR(self, VPI: TopOpeBRep_VPointInterIterator) -> None: ... - def ProcessVPIonR(self, VPI: TopOpeBRep_VPointInterIterator, trans1: TopOpeBRepDS_Transition, F1: TopoDS_Shape, ShapeIndex: int) -> None: ... - def ProcessVPR(self, FF: TopOpeBRep_FacesFiller, VP: TopOpeBRep_VPointInter) -> None: ... + def ProcessVPIonR( + self, + VPI: TopOpeBRep_VPointInterIterator, + trans1: TopOpeBRepDS_Transition, + F1: TopoDS_Shape, + ShapeIndex: int, + ) -> None: ... + def ProcessVPR( + self, FF: TopOpeBRep_FacesFiller, VP: TopOpeBRep_VPointInter + ) -> None: ... def ProcessVPnotonR(self, VP: TopOpeBRep_VPointInter) -> None: ... - def ProcessVPonR(self, VP: TopOpeBRep_VPointInter, trans1: TopOpeBRepDS_Transition, F1: TopoDS_Shape, ShapeIndex: int) -> None: ... - def ProcessVPonclosingR(self, VP: TopOpeBRep_VPointInter, F1: TopoDS_Shape, ShapeIndex: int, transEdge: TopOpeBRepDS_Transition, PVKind: TopOpeBRepDS_Kind, PVIndex: int, EPIfound: bool, IEPI: TopOpeBRepDS_Interference) -> None: ... - def ProcessVPondgE(self, VP: TopOpeBRep_VPointInter, ShapeIndex: int, PVKind: TopOpeBRepDS_Kind, IEPI: TopOpeBRepDS_Interference, ICPI: TopOpeBRepDS_Interference) -> Tuple[bool, int, bool, bool]: ... + def ProcessVPonR( + self, + VP: TopOpeBRep_VPointInter, + trans1: TopOpeBRepDS_Transition, + F1: TopoDS_Shape, + ShapeIndex: int, + ) -> None: ... + def ProcessVPonclosingR( + self, + VP: TopOpeBRep_VPointInter, + F1: TopoDS_Shape, + ShapeIndex: int, + transEdge: TopOpeBRepDS_Transition, + PVKind: TopOpeBRepDS_Kind, + PVIndex: int, + EPIfound: bool, + IEPI: TopOpeBRepDS_Interference, + ) -> None: ... + def ProcessVPondgE( + self, + VP: TopOpeBRep_VPointInter, + ShapeIndex: int, + PVKind: TopOpeBRepDS_Kind, + IEPI: TopOpeBRepDS_Interference, + ICPI: TopOpeBRepDS_Interference, + ) -> Tuple[bool, int, bool, bool]: ... def ResetDSC(self) -> None: ... def SetPShapeClassifier(self, PSC: TopOpeBRepTool_PShapeClassifier) -> None: ... def SetTraceIndex(self, exF1: int, exF2: int) -> None: ... def StoreCurveInterference(self, I: TopOpeBRepDS_Interference) -> None: ... @staticmethod - def TransvpOK(L: TopOpeBRep_LineInter, iVP: int, SI: int, isINOUT: bool) -> bool: ... + def TransvpOK( + L: TopOpeBRep_LineInter, iVP: int, SI: int, isINOUT: bool + ) -> bool: ... @staticmethod - def VPParamOnER(vp: TopOpeBRep_VPointInter, Lrest: TopOpeBRep_LineInter) -> float: ... + def VPParamOnER( + vp: TopOpeBRep_VPointInter, Lrest: TopOpeBRep_LineInter + ) -> float: ... @overload def VP_Position(self, FACINT: TopOpeBRep_FacesIntersector) -> None: ... @overload def VP_Position(self, L: TopOpeBRep_LineInter) -> None: ... @overload - def VP_Position(self, VP: TopOpeBRep_VPointInter, VPC: TopOpeBRep_VPointInterClassifier) -> None: ... + def VP_Position( + self, VP: TopOpeBRep_VPointInter, VPC: TopOpeBRep_VPointInterClassifier + ) -> None: ... def VP_PositionOnL(self, L: TopOpeBRep_LineInter) -> None: ... def VP_PositionOnR(self, L: TopOpeBRep_LineInter) -> None: ... @@ -357,7 +497,9 @@ class TopOpeBRep_FacesIntersector: @overload def Perform(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... @overload - def Perform(self, S1: TopoDS_Shape, S2: TopoDS_Shape, B1: Bnd_Box, B2: Bnd_Box) -> None: ... + def Perform( + self, S1: TopoDS_Shape, S2: TopoDS_Shape, B1: Bnd_Box, B2: Bnd_Box + ) -> None: ... def PrepareLines(self) -> None: ... def Restrictions(self) -> TopTools_IndexedMapOfShape: ... def SameDomain(self) -> bool: ... @@ -369,16 +511,33 @@ class TopOpeBRep_GeomTool: @staticmethod def MakeBSpline1fromWALKING3d(L: TopOpeBRep_LineInter) -> Geom_Curve: ... @staticmethod - def MakeCurve(min: float, max: float, L: TopOpeBRep_LineInter, C: Geom_Curve) -> None: ... + def MakeCurve( + min: float, max: float, L: TopOpeBRep_LineInter, C: Geom_Curve + ) -> None: ... @staticmethod - def MakeCurves(min: float, max: float, L: TopOpeBRep_LineInter, S1: TopoDS_Shape, S2: TopoDS_Shape, C: TopOpeBRepDS_Curve, PC1: Geom2d_Curve, PC2: Geom2d_Curve) -> None: ... + def MakeCurves( + min: float, + max: float, + L: TopOpeBRep_LineInter, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + C: TopOpeBRepDS_Curve, + PC1: Geom2d_Curve, + PC2: Geom2d_Curve, + ) -> None: ... class TopOpeBRep_Hctxee2d(Standard_Transient): def __init__(self) -> None: ... def Curve(self, I: int) -> Geom2dAdaptor_Curve: ... def Domain(self, I: int) -> IntRes2d_Domain: ... def Edge(self, I: int) -> TopoDS_Shape: ... - def SetEdges(self, E1: TopoDS_Edge, E2: TopoDS_Edge, BAS1: BRepAdaptor_Surface, BAS2: BRepAdaptor_Surface) -> None: ... + def SetEdges( + self, + E1: TopoDS_Edge, + E2: TopoDS_Edge, + BAS1: BRepAdaptor_Surface, + BAS2: BRepAdaptor_Surface, + ) -> None: ... class TopOpeBRep_Hctxff2d(Standard_Transient): def __init__(self) -> None: ... @@ -389,7 +548,9 @@ class TopOpeBRep_Hctxff2d(Standard_Transient): def GetTolerances(self) -> Tuple[float, float]: ... def HSurface(self, I: int) -> BRepAdaptor_Surface: ... def SetFaces(self, F1: TopoDS_Face, F2: TopoDS_Face) -> None: ... - def SetHSurfaces(self, S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface) -> None: ... + def SetHSurfaces( + self, S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface + ) -> None: ... def SetTolerances(self, Tol1: float, Tol2: float) -> None: ... def SurfacesSameOriented(self) -> bool: ... @@ -432,7 +593,9 @@ class TopOpeBRep_LineInter: def SetHasVPonR(self) -> None: ... def SetINL(self) -> None: ... def SetIsVClosed(self) -> None: ... - def SetLine(self, L: IntPatch_Line, S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface) -> None: ... + def SetLine( + self, L: IntPatch_Line, S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface + ) -> None: ... def SetOK(self, B: bool) -> None: ... def SetTraceIndex(self, exF1: int, exF2: int) -> None: ... def SetVPBounds(self) -> None: ... @@ -518,10 +681,17 @@ class TopOpeBRep_ShapeIntersector: @overload def InitIntersection(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... @overload - def InitIntersection(self, S1: TopoDS_Shape, S2: TopoDS_Shape, F1: TopoDS_Face, F2: TopoDS_Face) -> None: ... + def InitIntersection( + self, S1: TopoDS_Shape, S2: TopoDS_Shape, F1: TopoDS_Face, F2: TopoDS_Face + ) -> None: ... def MoreIntersection(self) -> bool: ... def NextIntersection(self) -> None: ... - def RejectedFaces(self, anObj: TopoDS_Shape, aReference: TopoDS_Shape, aListOfShape: TopTools_ListOfShape) -> None: ... + def RejectedFaces( + self, + anObj: TopoDS_Shape, + aReference: TopoDS_Shape, + aListOfShape: TopTools_ListOfShape, + ) -> None: ... def Shape(self, Index: int) -> TopoDS_Shape: ... class TopOpeBRep_ShapeIntersector2d: @@ -537,7 +707,12 @@ class TopOpeBRep_ShapeIntersector2d: class TopOpeBRep_ShapeScanner: def __init__(self) -> None: ... - def AddBoxesMakeCOB(self, S: TopoDS_Shape, TS: TopAbs_ShapeEnum, TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def AddBoxesMakeCOB( + self, + S: TopoDS_Shape, + TS: TopAbs_ShapeEnum, + TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... def BoxSort(self) -> TopOpeBRepTool_BoxSort: ... def ChangeBoxSort(self) -> TopOpeBRepTool_BoxSort: ... def Clear(self) -> None: ... @@ -559,7 +734,9 @@ class TopOpeBRep_VPointInter: @overload def Dump(self, I: int, F: TopoDS_Face) -> Tuple[Standard_OStream, str]: ... @overload - def Dump(self, F1: TopoDS_Face, F2: TopoDS_Face) -> Tuple[Standard_OStream, str]: ... + def Dump( + self, F1: TopoDS_Face, F2: TopoDS_Face + ) -> Tuple[Standard_OStream, str]: ... def Edge(self, I: int) -> TopoDS_Shape: ... @overload def EdgeON(self, Eon: TopoDS_Shape, Par: float, I: int) -> None: ... @@ -614,7 +791,15 @@ class TopOpeBRep_VPointInterClassifier: def __init__(self) -> None: ... def Edge(self) -> TopoDS_Shape: ... def EdgeParameter(self) -> float: ... - def VPointPosition(self, F: TopoDS_Shape, VP: TopOpeBRep_VPointInter, ShapeIndex: int, PC: TopOpeBRep_PointClassifier, AssumeINON: bool, Tol: float) -> TopAbs_State: ... + def VPointPosition( + self, + F: TopoDS_Shape, + VP: TopOpeBRep_VPointInter, + ShapeIndex: int, + PC: TopOpeBRep_PointClassifier, + AssumeINON: bool, + Tol: float, + ) -> TopAbs_State: ... class TopOpeBRep_VPointInterIterator: @overload @@ -625,7 +810,9 @@ class TopOpeBRep_VPointInterIterator: def CurrentVP(self) -> TopOpeBRep_VPointInter: ... def CurrentVPIndex(self) -> int: ... @overload - def Init(self, LI: TopOpeBRep_LineInter, checkkeep: Optional[bool] = False) -> None: ... + def Init( + self, LI: TopOpeBRep_LineInter, checkkeep: Optional[bool] = False + ) -> None: ... @overload def Init(self) -> None: ... def More(self) -> bool: ... @@ -657,7 +844,7 @@ class TopOpeBRep_WPointInterIterator: def Next(self) -> None: ... def PLineInterDummy(self) -> TopOpeBRep_PLineInter: ... -#classnotwrapped +# classnotwrapped class TopOpeBRep_traceSIFF: ... # harray1 classes @@ -666,11 +853,11 @@ class TopOpeBRep_HArray1OfLineInter(TopOpeBRep_Array1OfLineInter, Standard_Trans def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TopOpeBRep_Array1OfLineInter: ... - -class TopOpeBRep_HArray1OfVPointInter(TopOpeBRep_Array1OfVPointInter, Standard_Transient): +class TopOpeBRep_HArray1OfVPointInter( + TopOpeBRep_Array1OfVPointInter, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TopOpeBRep_Array1OfVPointInter: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopOpeBRepBuild.i b/src/SWIG_files/wrapper/TopOpeBRepBuild.i index c9671443b..090046e57 100644 --- a/src/SWIG_files/wrapper/TopOpeBRepBuild.i +++ b/src/SWIG_files/wrapper/TopOpeBRepBuild.i @@ -129,6 +129,12 @@ TopOpeBRepBuild_BLOCK = TopOpeBRepBuild_LoopEnum.TopOpeBRepBuild_BLOCK %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopOpeBRepBuild_ListIteratorOfListOfListOfLoop(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TopOpeBRepBuild_ListOfLoop) NCollection_List>; @@ -137,6 +143,12 @@ TopOpeBRepBuild_BLOCK = TopOpeBRepBuild_LoopEnum.TopOpeBRepBuild_BLOCK %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopOpeBRepBuild_ListIteratorOfListOfLoop(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TopOpeBRepBuild_ListOfPave) NCollection_List>; @@ -145,6 +157,12 @@ TopOpeBRepBuild_BLOCK = TopOpeBRepBuild_LoopEnum.TopOpeBRepBuild_BLOCK %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopOpeBRepBuild_ListIteratorOfListOfPave(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TopOpeBRepBuild_ListOfShapeListOfShape) NCollection_List; @@ -153,6 +171,12 @@ TopOpeBRepBuild_BLOCK = TopOpeBRepBuild_LoopEnum.TopOpeBRepBuild_BLOCK %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopOpeBRepBuild_ListIteratorOfListOfShapeListOfShape(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/TopOpeBRepBuild.pyi b/src/SWIG_files/wrapper/TopOpeBRepBuild.pyi index 10225824a..05ff86f8e 100644 --- a/src/SWIG_files/wrapper/TopOpeBRepBuild.pyi +++ b/src/SWIG_files/wrapper/TopOpeBRepBuild.pyi @@ -13,66 +13,86 @@ from OCC.Core.TCollection import * from OCC.Core.TColStd import * # the following typedef cannot be wrapped as is -TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo = NewType("TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo", Any) +TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo = NewType( + "TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo", Any +) TopOpeBRepBuild_PBuilder = NewType("TopOpeBRepBuild_PBuilder", TopOpeBRepBuild_Builder) TopOpeBRepBuild_PGTopo = NewType("TopOpeBRepBuild_PGTopo", TopOpeBRepBuild_GTopo) -TopOpeBRepBuild_PWireEdgeSet = NewType("TopOpeBRepBuild_PWireEdgeSet", TopOpeBRepBuild_WireEdgeSet) +TopOpeBRepBuild_PWireEdgeSet = NewType( + "TopOpeBRepBuild_PWireEdgeSet", TopOpeBRepBuild_WireEdgeSet +) class TopOpeBRepBuild_ListOfListOfLoop: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append( + self, theItem: TopOpeBRepBuild_ListOfLoop + ) -> TopOpeBRepBuild_ListOfLoop: ... + def Assign( + self, theItem: TopOpeBRepBuild_ListOfListOfLoop + ) -> TopOpeBRepBuild_ListOfListOfLoop: ... def Clear(self) -> None: ... def First(self) -> TopOpeBRepBuild_ListOfLoop: ... def Last(self) -> TopOpeBRepBuild_ListOfLoop: ... - def Append(self, theItem: TopOpeBRepBuild_ListOfLoop) -> TopOpeBRepBuild_ListOfLoop: ... - def Prepend(self, theItem: TopOpeBRepBuild_ListOfLoop) -> TopOpeBRepBuild_ListOfLoop: ... + def Prepend( + self, theItem: TopOpeBRepBuild_ListOfLoop + ) -> TopOpeBRepBuild_ListOfLoop: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopOpeBRepBuild_ListOfLoop: ... - def SetValue(self, theIndex: int, theValue: TopOpeBRepBuild_ListOfLoop) -> None: ... - -class TopOpeBRepBuild_ListOfLoop: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> TopOpeBRepBuild_ListOfLoop: ... + +class TopOpeBRepBuild_ListOfLoop: + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: TopOpeBRepBuild_ListOfLoop + ) -> TopOpeBRepBuild_ListOfLoop: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TopOpeBRepBuild_ListOfPave: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class TopOpeBRepBuild_ListOfPave: + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: TopOpeBRepBuild_ListOfPave + ) -> TopOpeBRepBuild_ListOfPave: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class TopOpeBRepBuild_ListOfShapeListOfShape: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class TopOpeBRepBuild_ListOfShapeListOfShape: + def Append( + self, theItem: TopOpeBRepBuild_ShapeListOfShape + ) -> TopOpeBRepBuild_ShapeListOfShape: ... + def Assign( + self, theItem: TopOpeBRepBuild_ListOfShapeListOfShape + ) -> TopOpeBRepBuild_ListOfShapeListOfShape: ... def Clear(self) -> None: ... def First(self) -> TopOpeBRepBuild_ShapeListOfShape: ... def Last(self) -> TopOpeBRepBuild_ShapeListOfShape: ... - def Append(self, theItem: TopOpeBRepBuild_ShapeListOfShape) -> TopOpeBRepBuild_ShapeListOfShape: ... - def Prepend(self, theItem: TopOpeBRepBuild_ShapeListOfShape) -> TopOpeBRepBuild_ShapeListOfShape: ... + def Prepend( + self, theItem: TopOpeBRepBuild_ShapeListOfShape + ) -> TopOpeBRepBuild_ShapeListOfShape: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopOpeBRepBuild_ShapeListOfShape: ... - def SetValue(self, theIndex: int, theValue: TopOpeBRepBuild_ShapeListOfShape) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> TopOpeBRepBuild_ShapeListOfShape: ... class TopOpeBRepBuild_LoopEnum(IntEnum): TopOpeBRepBuild_ANYLOOP: int = ... @@ -87,18 +107,45 @@ class TopOpeBRepBuild_AreaBuilder: @overload def __init__(self) -> None: ... @overload - def __init__(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... - def ADD_LISTOFLoop_TO_LISTOFLoop(self, LOL1: TopOpeBRepBuild_ListOfLoop, LOL2: TopOpeBRepBuild_ListOfLoop, s: Optional[None] = None, s1: Optional[None] = None, s2: Optional[None] = None) -> None: ... - def ADD_Loop_TO_LISTOFLoop(self, L: TopOpeBRepBuild_Loop, LOL: TopOpeBRepBuild_ListOfLoop, s: Optional[None] = None) -> None: ... + def __init__( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... + def ADD_LISTOFLoop_TO_LISTOFLoop( + self, + LOL1: TopOpeBRepBuild_ListOfLoop, + LOL2: TopOpeBRepBuild_ListOfLoop, + s: Optional[None] = None, + s1: Optional[None] = None, + s2: Optional[None] = None, + ) -> None: ... + def ADD_Loop_TO_LISTOFLoop( + self, + L: TopOpeBRepBuild_Loop, + LOL: TopOpeBRepBuild_ListOfLoop, + s: Optional[None] = None, + ) -> None: ... def InitArea(self) -> int: ... - def InitAreaBuilder(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... + def InitAreaBuilder( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... def InitLoop(self) -> int: ... def Loop(self) -> TopOpeBRepBuild_Loop: ... def MoreArea(self) -> bool: ... def MoreLoop(self) -> bool: ... def NextArea(self) -> None: ... def NextLoop(self) -> None: ... - def REM_Loop_FROM_LISTOFLoop(self, ITLOL: TopOpeBRepBuild_ListIteratorOfListOfLoop, LOL: TopOpeBRepBuild_ListOfLoop, s: Optional[None] = None) -> None: ... + def REM_Loop_FROM_LISTOFLoop( + self, + ITLOL: TopOpeBRepBuild_ListIteratorOfListOfLoop, + LOL: TopOpeBRepBuild_ListOfLoop, + s: Optional[None] = None, + ) -> None: ... class TopOpeBRepBuild_BlockBuilder: @overload @@ -140,14 +187,20 @@ class TopOpeBRepBuild_BlockIterator: class TopOpeBRepBuild_Builder: def __init__(self, BT: TopOpeBRepDS_BuildTool) -> None: ... - def AddONPatchesSFS(self, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... + def AddONPatchesSFS( + self, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet + ) -> None: ... def BuildEdges(self, DS: TopOpeBRepDS_HDataStructure) -> None: ... def BuildTool(self) -> TopOpeBRepDS_BuildTool: ... def BuildVertices(self, DS: TopOpeBRepDS_HDataStructure) -> None: ... def ChangeBuildTool(self) -> TopOpeBRepDS_BuildTool: ... def ChangeClassify(self, B: bool) -> None: ... - def ChangeMSplit(self, s: TopAbs_State) -> TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State: ... - def ChangeSplit(self, S: TopoDS_Shape, TB: TopAbs_State) -> TopTools_ListOfShape: ... + def ChangeMSplit( + self, s: TopAbs_State + ) -> TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State: ... + def ChangeSplit( + self, S: TopoDS_Shape, TB: TopAbs_State + ) -> TopTools_ListOfShape: ... def Classify(self) -> bool: ... def Clear(self) -> None: ... def ClearMaps(self) -> None: ... @@ -155,89 +208,314 @@ class TopOpeBRepBuild_Builder: def Contains(S: TopoDS_Shape, L: TopTools_ListOfShape) -> bool: ... def DataStructure(self) -> TopOpeBRepDS_HDataStructure: ... def End(self) -> None: ... - def FillOnPatches(self, anEdgesON: TopTools_ListOfShape, aBaseFace: TopoDS_Shape, avoidMap: TopTools_IndexedMapOfOrientedShape) -> None: ... - def FillSecEdgeAncestorMap(self, aShapeRank: int, aMapON: TopTools_MapOfShape, anAncMap: TopTools_DataMapOfShapeShape) -> None: ... - def FindFacesTouchingEdge(self, aFace: TopoDS_Shape, anEdge: TopoDS_Shape, aShRank: int, aFaces: TopTools_ListOfShape) -> None: ... + def FillOnPatches( + self, + anEdgesON: TopTools_ListOfShape, + aBaseFace: TopoDS_Shape, + avoidMap: TopTools_IndexedMapOfOrientedShape, + ) -> None: ... + def FillSecEdgeAncestorMap( + self, + aShapeRank: int, + aMapON: TopTools_MapOfShape, + anAncMap: TopTools_DataMapOfShapeShape, + ) -> None: ... + def FindFacesTouchingEdge( + self, + aFace: TopoDS_Shape, + anEdge: TopoDS_Shape, + aShRank: int, + aFaces: TopTools_ListOfShape, + ) -> None: ... def FindIsKPart(self) -> int: ... - def FindSameDomain(self, L1: TopTools_ListOfShape, L2: TopTools_ListOfShape) -> None: ... - def FindSameDomainSameOrientation(self, LSO: TopTools_ListOfShape, LDO: TopTools_ListOfShape) -> None: ... - def FindSameRank(self, L1: TopTools_ListOfShape, R: int, L2: TopTools_ListOfShape) -> None: ... + def FindSameDomain( + self, L1: TopTools_ListOfShape, L2: TopTools_ListOfShape + ) -> None: ... + def FindSameDomainSameOrientation( + self, LSO: TopTools_ListOfShape, LDO: TopTools_ListOfShape + ) -> None: ... + def FindSameRank( + self, L1: TopTools_ListOfShape, R: int, L2: TopTools_ListOfShape + ) -> None: ... def GClearMaps(self) -> None: ... @staticmethod def GContains(S: TopoDS_Shape, L: TopTools_ListOfShape) -> bool: ... @overload @staticmethod - def GCopyList(Lin: TopTools_ListOfShape, i1: int, i2: int, Lou: TopTools_ListOfShape) -> None: ... + def GCopyList( + Lin: TopTools_ListOfShape, i1: int, i2: int, Lou: TopTools_ListOfShape + ) -> None: ... @overload @staticmethod def GCopyList(Lin: TopTools_ListOfShape, Lou: TopTools_ListOfShape) -> None: ... - def GEDBUMakeEdges(self, EF: TopoDS_Shape, EDBU: TopOpeBRepBuild_EdgeBuilder, LOE: TopTools_ListOfShape) -> None: ... - def GFABUMakeFaces(self, FF: TopoDS_Shape, FABU: TopOpeBRepBuild_FaceBuilder, LOF: TopTools_ListOfShape, MWisOld: TopTools_DataMapOfShapeInteger) -> None: ... - @overload - def GFillCurveTopologyWES(self, F: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - @overload - def GFillCurveTopologyWES(self, IT: TopOpeBRepDS_CurveIterator, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GFillEdgePVS(self, E: TopoDS_Shape, LE2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, PVS: TopOpeBRepBuild_PaveSet) -> None: ... - def GFillEdgeWES(self, E: TopoDS_Shape, LF2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GFillEdgesPVS(self, LE1: TopTools_ListOfShape, LE2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, PVS: TopOpeBRepBuild_PaveSet) -> None: ... - def GFillFaceSFS(self, F1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - def GFillFaceWES(self, F: TopoDS_Shape, LF2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GFillFacesWES(self, LF1: TopTools_ListOfShape, LF2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GFillFacesWESK(self, LF1: TopTools_ListOfShape, LF2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet, K: int) -> None: ... - def GFillFacesWESMakeFaces(self, LF1: TopTools_ListOfShape, LF2: TopTools_ListOfShape, LSO: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo) -> None: ... - def GFillONPartsWES(self, F: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, LSclass: TopTools_ListOfShape, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - @overload - def GFillPointTopologyPVS(self, E: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, PVS: TopOpeBRepBuild_PaveSet) -> None: ... - @overload - def GFillPointTopologyPVS(self, E: TopoDS_Shape, IT: TopOpeBRepDS_PointIterator, G: TopOpeBRepBuild_GTopo, PVS: TopOpeBRepBuild_PaveSet) -> None: ... - def GFillShellSFS(self, SH1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - def GFillSolidSFS(self, SO1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - def GFillSolidsSFS(self, LSO1: TopTools_ListOfShape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - @overload - def GFillSurfaceTopologySFS(self, SO1: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - @overload - def GFillSurfaceTopologySFS(self, IT: TopOpeBRepDS_SurfaceIterator, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - def GFillWireWES(self, W: TopoDS_Shape, LF2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - @overload - def GFindSamDom(self, S: TopoDS_Shape, L1: TopTools_ListOfShape, L2: TopTools_ListOfShape) -> None: ... - @overload - def GFindSamDom(self, L1: TopTools_ListOfShape, L2: TopTools_ListOfShape) -> None: ... - @overload - def GFindSamDomSODO(self, S: TopoDS_Shape, LSO: TopTools_ListOfShape, LDO: TopTools_ListOfShape) -> None: ... - @overload - def GFindSamDomSODO(self, LSO: TopTools_ListOfShape, LDO: TopTools_ListOfShape) -> None: ... - def GFindSameRank(self, L1: TopTools_ListOfShape, R: int, L2: TopTools_ListOfShape) -> None: ... + def GEDBUMakeEdges( + self, + EF: TopoDS_Shape, + EDBU: TopOpeBRepBuild_EdgeBuilder, + LOE: TopTools_ListOfShape, + ) -> None: ... + def GFABUMakeFaces( + self, + FF: TopoDS_Shape, + FABU: TopOpeBRepBuild_FaceBuilder, + LOF: TopTools_ListOfShape, + MWisOld: TopTools_DataMapOfShapeInteger, + ) -> None: ... + @overload + def GFillCurveTopologyWES( + self, + F: TopoDS_Shape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + @overload + def GFillCurveTopologyWES( + self, + IT: TopOpeBRepDS_CurveIterator, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GFillEdgePVS( + self, + E: TopoDS_Shape, + LE2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + PVS: TopOpeBRepBuild_PaveSet, + ) -> None: ... + def GFillEdgeWES( + self, + E: TopoDS_Shape, + LF2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GFillEdgesPVS( + self, + LE1: TopTools_ListOfShape, + LE2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + PVS: TopOpeBRepBuild_PaveSet, + ) -> None: ... + def GFillFaceSFS( + self, + F1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + def GFillFaceWES( + self, + F: TopoDS_Shape, + LF2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GFillFacesWES( + self, + LF1: TopTools_ListOfShape, + LF2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GFillFacesWESK( + self, + LF1: TopTools_ListOfShape, + LF2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + K: int, + ) -> None: ... + def GFillFacesWESMakeFaces( + self, + LF1: TopTools_ListOfShape, + LF2: TopTools_ListOfShape, + LSO: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + ) -> None: ... + def GFillONPartsWES( + self, + F: TopoDS_Shape, + G: TopOpeBRepBuild_GTopo, + LSclass: TopTools_ListOfShape, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + @overload + def GFillPointTopologyPVS( + self, E: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, PVS: TopOpeBRepBuild_PaveSet + ) -> None: ... + @overload + def GFillPointTopologyPVS( + self, + E: TopoDS_Shape, + IT: TopOpeBRepDS_PointIterator, + G: TopOpeBRepBuild_GTopo, + PVS: TopOpeBRepBuild_PaveSet, + ) -> None: ... + def GFillShellSFS( + self, + SH1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + def GFillSolidSFS( + self, + SO1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + def GFillSolidsSFS( + self, + LSO1: TopTools_ListOfShape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + @overload + def GFillSurfaceTopologySFS( + self, + SO1: TopoDS_Shape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + @overload + def GFillSurfaceTopologySFS( + self, + IT: TopOpeBRepDS_SurfaceIterator, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + def GFillWireWES( + self, + W: TopoDS_Shape, + LF2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + @overload + def GFindSamDom( + self, S: TopoDS_Shape, L1: TopTools_ListOfShape, L2: TopTools_ListOfShape + ) -> None: ... + @overload + def GFindSamDom( + self, L1: TopTools_ListOfShape, L2: TopTools_ListOfShape + ) -> None: ... + @overload + def GFindSamDomSODO( + self, S: TopoDS_Shape, LSO: TopTools_ListOfShape, LDO: TopTools_ListOfShape + ) -> None: ... + @overload + def GFindSamDomSODO( + self, LSO: TopTools_ListOfShape, LDO: TopTools_ListOfShape + ) -> None: ... + def GFindSameRank( + self, L1: TopTools_ListOfShape, R: int, L2: TopTools_ListOfShape + ) -> None: ... def GIsShapeOf(self, S: TopoDS_Shape, I12: int) -> bool: ... - def GKeepShape(self, S: TopoDS_Shape, Lref: TopTools_ListOfShape, T: TopAbs_State) -> bool: ... - def GKeepShape1(self, S: TopoDS_Shape, Lref: TopTools_ListOfShape, T: TopAbs_State) -> Tuple[bool, TopAbs_State]: ... - def GKeepShapes(self, S: TopoDS_Shape, Lref: TopTools_ListOfShape, T: TopAbs_State, Lin: TopTools_ListOfShape, Lou: TopTools_ListOfShape) -> None: ... + def GKeepShape( + self, S: TopoDS_Shape, Lref: TopTools_ListOfShape, T: TopAbs_State + ) -> bool: ... + def GKeepShape1( + self, S: TopoDS_Shape, Lref: TopTools_ListOfShape, T: TopAbs_State + ) -> Tuple[bool, TopAbs_State]: ... + def GKeepShapes( + self, + S: TopoDS_Shape, + Lref: TopTools_ListOfShape, + T: TopAbs_State, + Lin: TopTools_ListOfShape, + Lou: TopTools_ListOfShape, + ) -> None: ... def GMapShapes(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... - def GMergeEdgeWES(self, E: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GMergeEdges(self, LE1: TopTools_ListOfShape, LE2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo) -> None: ... - def GMergeFaceSFS(self, F: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - def GMergeFaces(self, LF1: TopTools_ListOfShape, LF2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo) -> None: ... - def GMergeSolids(self, LSO1: TopTools_ListOfShape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo) -> None: ... - def GPVSMakeEdges(self, EF: TopoDS_Shape, PVS: TopOpeBRepBuild_PaveSet, LOE: TopTools_ListOfShape) -> None: ... - def GParamOnReference(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float]: ... - def GSFSMakeSolids(self, SOF: TopoDS_Shape, SFS: TopOpeBRepBuild_ShellFaceSet, LOSO: TopTools_ListOfShape) -> None: ... - def GSOBUMakeSolids(self, SOF: TopoDS_Shape, SOBU: TopOpeBRepBuild_SolidBuilder, LOSO: TopTools_ListOfShape) -> None: ... + def GMergeEdgeWES( + self, + E: TopoDS_Shape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GMergeEdges( + self, + LE1: TopTools_ListOfShape, + LE2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + ) -> None: ... + def GMergeFaceSFS( + self, + F: TopoDS_Shape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + def GMergeFaces( + self, + LF1: TopTools_ListOfShape, + LF2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + ) -> None: ... + def GMergeSolids( + self, + LSO1: TopTools_ListOfShape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + ) -> None: ... + def GPVSMakeEdges( + self, EF: TopoDS_Shape, PVS: TopOpeBRepBuild_PaveSet, LOE: TopTools_ListOfShape + ) -> None: ... + def GParamOnReference( + self, V: TopoDS_Vertex, E: TopoDS_Edge + ) -> Tuple[bool, float]: ... + def GSFSMakeSolids( + self, + SOF: TopoDS_Shape, + SFS: TopOpeBRepBuild_ShellFaceSet, + LOSO: TopTools_ListOfShape, + ) -> None: ... + def GSOBUMakeSolids( + self, + SOF: TopoDS_Shape, + SOBU: TopOpeBRepBuild_SolidBuilder, + LOSO: TopTools_ListOfShape, + ) -> None: ... def GShapeRank(self, S: TopoDS_Shape) -> int: ... - def GSplitEdge(self, E: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, LSclass: TopTools_ListOfShape) -> None: ... - def GSplitEdgeWES(self, E: TopoDS_Shape, LF2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GSplitFace(self, F: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, LSclass: TopTools_ListOfShape) -> None: ... - def GSplitFaceSFS(self, F1: TopoDS_Shape, LSclass: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... + def GSplitEdge( + self, E: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, LSclass: TopTools_ListOfShape + ) -> None: ... + def GSplitEdgeWES( + self, + E: TopoDS_Shape, + LF2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GSplitFace( + self, F: TopoDS_Shape, G: TopOpeBRepBuild_GTopo, LSclass: TopTools_ListOfShape + ) -> None: ... + def GSplitFaceSFS( + self, + F1: TopoDS_Shape, + LSclass: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... @staticmethod def GTakeCommonOfDiff(G: TopOpeBRepBuild_GTopo) -> bool: ... @staticmethod def GTakeCommonOfSame(G: TopOpeBRepBuild_GTopo) -> bool: ... def GToMerge(self, S: TopoDS_Shape) -> bool: ... def GToSplit(self, S: TopoDS_Shape, TB: TopAbs_State) -> bool: ... - def GWESMakeFaces(self, FF: TopoDS_Shape, WES: TopOpeBRepBuild_WireEdgeSet, LOF: TopTools_ListOfShape) -> None: ... + def GWESMakeFaces( + self, + FF: TopoDS_Shape, + WES: TopOpeBRepBuild_WireEdgeSet, + LOF: TopTools_ListOfShape, + ) -> None: ... @staticmethod def GcheckNBOUNDS(E: TopoDS_Shape) -> bool: ... def GdumpEDBU(self, EB: TopOpeBRepBuild_EdgeBuilder) -> None: ... def GdumpEDG(self, S: TopoDS_Shape, str: Optional[None] = None) -> None: ... - def GdumpEDGVER(self, E: TopoDS_Shape, V: TopoDS_Shape, str: Optional[None] = None) -> None: ... + def GdumpEDGVER( + self, E: TopoDS_Shape, V: TopoDS_Shape, str: Optional[None] = None + ) -> None: ... def GdumpEXP(self, E: TopOpeBRepTool_ShapeExplorer) -> None: ... def GdumpFABU(self, FB: TopOpeBRepBuild_FaceBuilder) -> None: ... def GdumpLS(self, L: TopTools_ListOfShape) -> None: ... @@ -245,18 +523,36 @@ class TopOpeBRepBuild_Builder: def GdumpORIPARPNT(o: TopAbs_Orientation, p: float, Pnt: gp_Pnt) -> None: ... @staticmethod def GdumpPNT(P: gp_Pnt) -> None: ... - def GdumpSAMDOM(self, L: TopTools_ListOfShape, str: Optional[None] = None) -> None: ... + def GdumpSAMDOM( + self, L: TopTools_ListOfShape, str: Optional[None] = None + ) -> None: ... def GdumpSHA(self, S: TopoDS_Shape, str: Optional[None] = None) -> None: ... def GdumpSHAORI(self, S: TopoDS_Shape, str: Optional[None] = None) -> None: ... def GdumpSHAORIGEO(self, S: TopoDS_Shape, str: Optional[None] = None) -> None: ... def GdumpSHASETindex(self) -> int: ... def GdumpSHASETreset(self) -> None: ... @overload - def GdumpSHASTA(self, iS: int, T: TopAbs_State, a: Optional[str] = "", b: Optional[str] = "") -> None: ... - @overload - def GdumpSHASTA(self, S: TopoDS_Shape, T: TopAbs_State, a: Optional[str] = "", b: Optional[str] = "") -> None: ... - @overload - def GdumpSHASTA(self, iS: int, T: TopAbs_State, SS: TopOpeBRepBuild_ShapeSet, a: Optional[str] = "", b: Optional[str] = "", c: Optional[str] = "\n") -> None: ... + def GdumpSHASTA( + self, iS: int, T: TopAbs_State, a: Optional[str] = "", b: Optional[str] = "" + ) -> None: ... + @overload + def GdumpSHASTA( + self, + S: TopoDS_Shape, + T: TopAbs_State, + a: Optional[str] = "", + b: Optional[str] = "", + ) -> None: ... + @overload + def GdumpSHASTA( + self, + iS: int, + T: TopAbs_State, + SS: TopOpeBRepBuild_ShapeSet, + a: Optional[str] = "", + b: Optional[str] = "", + c: Optional[str] = "\n", + ) -> None: ... def GdumpSOBU(self, SB: TopOpeBRepBuild_SolidBuilder) -> None: ... @overload def GtraceSPS(self, iS: int) -> bool: ... @@ -274,35 +570,59 @@ class TopOpeBRepBuild_Builder: def KPClearMaps(self) -> None: ... @staticmethod def KPContains(S: TopoDS_Shape, L: TopTools_ListOfShape) -> bool: ... - def KPSameDomain(self, L1: TopTools_ListOfShape, L2: TopTools_ListOfShape) -> None: ... + def KPSameDomain( + self, L1: TopTools_ListOfShape, L2: TopTools_ListOfShape + ) -> None: ... @overload - def KPclasSS(self, S1: TopoDS_Shape, exceptLS1: TopTools_ListOfShape, S2: TopoDS_Shape) -> TopAbs_State: ... + def KPclasSS( + self, S1: TopoDS_Shape, exceptLS1: TopTools_ListOfShape, S2: TopoDS_Shape + ) -> TopAbs_State: ... @overload - def KPclasSS(self, S1: TopoDS_Shape, exceptS1: TopoDS_Shape, S2: TopoDS_Shape) -> TopAbs_State: ... + def KPclasSS( + self, S1: TopoDS_Shape, exceptS1: TopoDS_Shape, S2: TopoDS_Shape + ) -> TopAbs_State: ... @overload def KPclasSS(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> TopAbs_State: ... def KPclassF(self, F1: TopoDS_Shape, F2: TopoDS_Shape) -> TopAbs_State: ... - def KPclassFF(self, F1: TopoDS_Shape, F2: TopoDS_Shape) -> Tuple[TopAbs_State, TopAbs_State]: ... + def KPclassFF( + self, F1: TopoDS_Shape, F2: TopoDS_Shape + ) -> Tuple[TopAbs_State, TopAbs_State]: ... def KPisdisj(self) -> int: ... - def KPisdisjanalyse(self, ST1: TopAbs_State, ST2: TopAbs_State) -> Tuple[int, int, int]: ... + def KPisdisjanalyse( + self, ST1: TopAbs_State, ST2: TopAbs_State + ) -> Tuple[int, int, int]: ... def KPisdisjsh(self, S: TopoDS_Shape) -> int: ... def KPisfafa(self) -> int: ... def KPisfafash(self, S: TopoDS_Shape) -> int: ... def KPiskole(self) -> int: ... - def KPiskoleFF(self, F1: TopoDS_Shape, F2: TopoDS_Shape) -> Tuple[bool, TopAbs_State, TopAbs_State]: ... - def KPiskoleanalyse(self, FT1: TopAbs_State, FT2: TopAbs_State, ST1: TopAbs_State, ST2: TopAbs_State) -> Tuple[int, int, int]: ... - def KPiskolesh(self, S: TopoDS_Shape, LS: TopTools_ListOfShape, LF: TopTools_ListOfShape) -> bool: ... + def KPiskoleFF( + self, F1: TopoDS_Shape, F2: TopoDS_Shape + ) -> Tuple[bool, TopAbs_State, TopAbs_State]: ... + def KPiskoleanalyse( + self, FT1: TopAbs_State, FT2: TopAbs_State, ST1: TopAbs_State, ST2: TopAbs_State + ) -> Tuple[int, int, int]: ... + def KPiskolesh( + self, S: TopoDS_Shape, LS: TopTools_ListOfShape, LF: TopTools_ListOfShape + ) -> bool: ... def KPiskoletge(self) -> int: ... - def KPiskoletgeanalyse(self, Conf: TopOpeBRepDS_Config, ST1: TopAbs_State, ST2: TopAbs_State) -> int: ... - def KPiskoletgesh(self, S: TopoDS_Shape, LS: TopTools_ListOfShape, LF: TopTools_ListOfShape) -> bool: ... + def KPiskoletgeanalyse( + self, Conf: TopOpeBRepDS_Config, ST1: TopAbs_State, ST2: TopAbs_State + ) -> int: ... + def KPiskoletgesh( + self, S: TopoDS_Shape, LS: TopTools_ListOfShape, LF: TopTools_ListOfShape + ) -> bool: ... def KPissoso(self) -> int: ... def KPissososh(self, S: TopoDS_Shape) -> int: ... @overload - def KPlhg(self, S: TopoDS_Shape, T: TopAbs_ShapeEnum, L: TopTools_ListOfShape) -> int: ... + def KPlhg( + self, S: TopoDS_Shape, T: TopAbs_ShapeEnum, L: TopTools_ListOfShape + ) -> int: ... @overload def KPlhg(self, S: TopoDS_Shape, T: TopAbs_ShapeEnum) -> int: ... @overload - def KPlhsd(self, S: TopoDS_Shape, T: TopAbs_ShapeEnum, L: TopTools_ListOfShape) -> int: ... + def KPlhsd( + self, S: TopoDS_Shape, T: TopAbs_ShapeEnum, L: TopTools_ListOfShape + ) -> int: ... @overload def KPlhsd(self, S: TopoDS_Shape, T: TopAbs_ShapeEnum) -> int: ... @overload @@ -311,18 +631,56 @@ class TopOpeBRepBuild_Builder: @overload @staticmethod def KPls(S: TopoDS_Shape, T: TopAbs_ShapeEnum) -> int: ... - def KPmakeface(self, F1: TopoDS_Shape, LF2: TopTools_ListOfShape, T1: TopAbs_State, T2: TopAbs_State, R1: bool, R2: bool) -> TopoDS_Shape: ... + def KPmakeface( + self, + F1: TopoDS_Shape, + LF2: TopTools_ListOfShape, + T1: TopAbs_State, + T2: TopAbs_State, + R1: bool, + R2: bool, + ) -> TopoDS_Shape: ... @staticmethod def KPreturn(KP: int) -> int: ... - def KeepShape(self, S: TopoDS_Shape, LS: TopTools_ListOfShape, T: TopAbs_State) -> bool: ... - def MSplit(self, s: TopAbs_State) -> TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State: ... - def MakeEdges(self, E: TopoDS_Shape, B: TopOpeBRepBuild_EdgeBuilder, L: TopTools_ListOfShape) -> None: ... - def MakeFaces(self, F: TopoDS_Shape, B: TopOpeBRepBuild_FaceBuilder, L: TopTools_ListOfShape) -> None: ... - def MakeShells(self, B: TopOpeBRepBuild_SolidBuilder, L: TopTools_ListOfShape) -> None: ... - def MakeSolids(self, B: TopOpeBRepBuild_SolidBuilder, L: TopTools_ListOfShape) -> None: ... + def KeepShape( + self, S: TopoDS_Shape, LS: TopTools_ListOfShape, T: TopAbs_State + ) -> bool: ... + def MSplit( + self, s: TopAbs_State + ) -> TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State: ... + def MakeEdges( + self, E: TopoDS_Shape, B: TopOpeBRepBuild_EdgeBuilder, L: TopTools_ListOfShape + ) -> None: ... + def MakeFaces( + self, F: TopoDS_Shape, B: TopOpeBRepBuild_FaceBuilder, L: TopTools_ListOfShape + ) -> None: ... + def MakeShells( + self, B: TopOpeBRepBuild_SolidBuilder, L: TopTools_ListOfShape + ) -> None: ... + def MakeSolids( + self, B: TopOpeBRepBuild_SolidBuilder, L: TopTools_ListOfShape + ) -> None: ... def MapShapes(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... - def MergeEdges(self, L1: TopTools_ListOfShape, TB1: TopAbs_State, L2: TopTools_ListOfShape, TB2: TopAbs_State, onA: Optional[bool] = False, onB: Optional[bool] = False, onAB: Optional[bool] = False) -> None: ... - def MergeFaces(self, S1: TopTools_ListOfShape, TB1: TopAbs_State, S2: TopTools_ListOfShape, TB2: TopAbs_State, onA: Optional[bool] = False, onB: Optional[bool] = False, onAB: Optional[bool] = False) -> None: ... + def MergeEdges( + self, + L1: TopTools_ListOfShape, + TB1: TopAbs_State, + L2: TopTools_ListOfShape, + TB2: TopAbs_State, + onA: Optional[bool] = False, + onB: Optional[bool] = False, + onAB: Optional[bool] = False, + ) -> None: ... + def MergeFaces( + self, + S1: TopTools_ListOfShape, + TB1: TopAbs_State, + S2: TopTools_ListOfShape, + TB2: TopAbs_State, + onA: Optional[bool] = False, + onB: Optional[bool] = False, + onAB: Optional[bool] = False, + ) -> None: ... @overload def MergeKPart(self) -> None: ... @overload @@ -332,9 +690,13 @@ class TopOpeBRepBuild_Builder: def MergeKPartiskole(self) -> None: ... def MergeKPartiskoletge(self) -> None: ... def MergeKPartissoso(self) -> None: ... - def MergeShapes(self, S1: TopoDS_Shape, TB1: TopAbs_State, S2: TopoDS_Shape, TB2: TopAbs_State) -> None: ... + def MergeShapes( + self, S1: TopoDS_Shape, TB1: TopAbs_State, S2: TopoDS_Shape, TB2: TopAbs_State + ) -> None: ... def MergeSolid(self, S: TopoDS_Shape, TB: TopAbs_State) -> None: ... - def MergeSolids(self, S1: TopoDS_Shape, TB1: TopAbs_State, S2: TopoDS_Shape, TB2: TopAbs_State) -> None: ... + def MergeSolids( + self, S1: TopoDS_Shape, TB1: TopAbs_State, S2: TopoDS_Shape, TB2: TopAbs_State + ) -> None: ... def Merged(self, S: TopoDS_Shape, TB: TopAbs_State) -> TopTools_ListOfShape: ... def NewEdges(self, I: int) -> TopTools_ListOfShape: ... def NewFaces(self, I: int) -> TopTools_ListOfShape: ... @@ -348,7 +710,9 @@ class TopOpeBRepBuild_Builder: @overload def Perform(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... @overload - def Perform(self, HDS: TopOpeBRepDS_HDataStructure, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... + def Perform( + self, HDS: TopOpeBRepDS_HDataStructure, S1: TopoDS_Shape, S2: TopoDS_Shape + ) -> None: ... @staticmethod def PrintCur(E: TopoDS_Edge) -> None: ... @staticmethod @@ -359,10 +723,24 @@ class TopOpeBRepBuild_Builder: def PrintPnt(V: TopoDS_Vertex) -> None: ... @staticmethod def PrintSur(F: TopoDS_Face) -> None: ... - def RegularizeFace(self, FF: TopoDS_Shape, newFace: TopoDS_Shape, LOF: TopTools_ListOfShape) -> None: ... - def RegularizeFaces(self, FF: TopoDS_Shape, lnewFace: TopTools_ListOfShape, LOF: TopTools_ListOfShape) -> None: ... - def RegularizeSolid(self, SS: TopoDS_Shape, newSolid: TopoDS_Shape, LOS: TopTools_ListOfShape) -> None: ... - def RegularizeSolids(self, SS: TopoDS_Shape, lnewSolid: TopTools_ListOfShape, LOS: TopTools_ListOfShape) -> None: ... + def RegularizeFace( + self, FF: TopoDS_Shape, newFace: TopoDS_Shape, LOF: TopTools_ListOfShape + ) -> None: ... + def RegularizeFaces( + self, + FF: TopoDS_Shape, + lnewFace: TopTools_ListOfShape, + LOF: TopTools_ListOfShape, + ) -> None: ... + def RegularizeSolid( + self, SS: TopoDS_Shape, newSolid: TopoDS_Shape, LOS: TopTools_ListOfShape + ) -> None: ... + def RegularizeSolids( + self, + SS: TopoDS_Shape, + lnewSolid: TopTools_ListOfShape, + LOS: TopTools_ListOfShape, + ) -> None: ... @staticmethod def Reverse(T1: TopAbs_State, T2: TopAbs_State) -> bool: ... @overload @@ -371,7 +749,9 @@ class TopOpeBRepBuild_Builder: def Section(self) -> TopTools_ListOfShape: ... def SectionCurves(self, L: TopTools_ListOfShape) -> None: ... def SectionEdges(self, L: TopTools_ListOfShape) -> None: ... - def ShapePosition(self, S: TopoDS_Shape, LS: TopTools_ListOfShape) -> TopAbs_State: ... + def ShapePosition( + self, S: TopoDS_Shape, LS: TopTools_ListOfShape + ) -> TopAbs_State: ... def ShapeRank(self, S: TopoDS_Shape) -> int: ... def SplitEvisoONperiodicF(self) -> None: ... def SplitSectionEdge(self, E: TopoDS_Shape) -> None: ... @@ -386,47 +766,96 @@ class TopOpeBRepBuild_BuilderON: @overload def __init__(self) -> None: ... @overload - def __init__(self, PB: TopOpeBRepBuild_PBuilder, F: TopoDS_Shape, PG: TopOpeBRepBuild_PGTopo, PLSclass: TopOpeBRepTool_Plos, PWES: TopOpeBRepBuild_PWireEdgeSet) -> None: ... + def __init__( + self, + PB: TopOpeBRepBuild_PBuilder, + F: TopoDS_Shape, + PG: TopOpeBRepBuild_PGTopo, + PLSclass: TopOpeBRepTool_Plos, + PWES: TopOpeBRepBuild_PWireEdgeSet, + ) -> None: ... def GFillONCheckI(self, I: TopOpeBRepDS_Interference) -> bool: ... - def GFillONParts2dWES2(self, I: TopOpeBRepDS_Interference, EspON: TopoDS_Shape) -> None: ... + def GFillONParts2dWES2( + self, I: TopOpeBRepDS_Interference, EspON: TopoDS_Shape + ) -> None: ... def GFillONPartsWES1(self, I: TopOpeBRepDS_Interference) -> None: ... - def GFillONPartsWES2(self, I: TopOpeBRepDS_Interference, EspON: TopoDS_Shape) -> None: ... - def Perform(self, PB: TopOpeBRepBuild_PBuilder, F: TopoDS_Shape, PG: TopOpeBRepBuild_PGTopo, PLSclass: TopOpeBRepTool_Plos, PWES: TopOpeBRepBuild_PWireEdgeSet) -> None: ... - def Perform2d(self, PB: TopOpeBRepBuild_PBuilder, F: TopoDS_Shape, PG: TopOpeBRepBuild_PGTopo, PLSclass: TopOpeBRepTool_Plos, PWES: TopOpeBRepBuild_PWireEdgeSet) -> None: ... + def GFillONPartsWES2( + self, I: TopOpeBRepDS_Interference, EspON: TopoDS_Shape + ) -> None: ... + def Perform( + self, + PB: TopOpeBRepBuild_PBuilder, + F: TopoDS_Shape, + PG: TopOpeBRepBuild_PGTopo, + PLSclass: TopOpeBRepTool_Plos, + PWES: TopOpeBRepBuild_PWireEdgeSet, + ) -> None: ... + def Perform2d( + self, + PB: TopOpeBRepBuild_PBuilder, + F: TopoDS_Shape, + PG: TopOpeBRepBuild_PGTopo, + PLSclass: TopOpeBRepTool_Plos, + PWES: TopOpeBRepBuild_PWireEdgeSet, + ) -> None: ... class TopOpeBRepBuild_CorrectFace2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, aFace: TopoDS_Face, anAvoidMap: TopTools_IndexedMapOfOrientedShape, aMap: TopTools_IndexedDataMapOfShapeShape) -> None: ... + def __init__( + self, + aFace: TopoDS_Face, + anAvoidMap: TopTools_IndexedMapOfOrientedShape, + aMap: TopTools_IndexedDataMapOfShapeShape, + ) -> None: ... @staticmethod def CheckList(aFace: TopoDS_Face, aHeadList: TopTools_ListOfShape) -> None: ... def CorrectedFace(self) -> TopoDS_Face: ... def ErrorStatus(self) -> int: ... def Face(self) -> TopoDS_Face: ... @staticmethod - def GetP2dFL(aFace: TopoDS_Face, anEdge: TopoDS_Edge, P2dF: gp_Pnt2d, P2dL: gp_Pnt2d) -> None: ... + def GetP2dFL( + aFace: TopoDS_Face, anEdge: TopoDS_Edge, P2dF: gp_Pnt2d, P2dL: gp_Pnt2d + ) -> None: ... def IsDone(self) -> bool: ... def MapOfTrans2dInfo(self) -> TopTools_IndexedDataMapOfShapeShape: ... def Perform(self) -> None: ... - def SetMapOfTrans2dInfo(self, aMap: TopTools_IndexedDataMapOfShapeShape) -> None: ... + def SetMapOfTrans2dInfo( + self, aMap: TopTools_IndexedDataMapOfShapeShape + ) -> None: ... class TopOpeBRepBuild_FaceBuilder: @overload def __init__(self) -> None: ... @overload - def __init__(self, ES: TopOpeBRepBuild_WireEdgeSet, F: TopoDS_Shape, ForceClass: Optional[bool] = False) -> None: ... + def __init__( + self, + ES: TopOpeBRepBuild_WireEdgeSet, + F: TopoDS_Shape, + ForceClass: Optional[bool] = False, + ) -> None: ... def AddEdgeWire(self, E: TopoDS_Shape, W: TopoDS_Shape) -> int: ... - def CorrectGclosedWire(self, mapVVref: TopTools_IndexedDataMapOfShapeShape, mapVon1Edge: TopTools_IndexedDataMapOfShapeShape) -> None: ... + def CorrectGclosedWire( + self, + mapVVref: TopTools_IndexedDataMapOfShapeShape, + mapVon1Edge: TopTools_IndexedDataMapOfShapeShape, + ) -> None: ... def DetectPseudoInternalEdge(self, mapE: TopTools_IndexedMapOfShape) -> None: ... - def DetectUnclosedWire(self, mapVVsameG: TopTools_IndexedDataMapOfShapeShape, mapVon1Edge: TopTools_IndexedDataMapOfShapeShape) -> None: ... + def DetectUnclosedWire( + self, + mapVVsameG: TopTools_IndexedDataMapOfShapeShape, + mapVon1Edge: TopTools_IndexedDataMapOfShapeShape, + ) -> None: ... def Edge(self) -> TopoDS_Shape: ... def EdgeConnexity(self, E: TopoDS_Shape) -> int: ... def Face(self) -> TopoDS_Shape: ... def FindNextValidElement(self) -> None: ... def InitEdge(self) -> int: ... def InitFace(self) -> int: ... - def InitFaceBuilder(self, ES: TopOpeBRepBuild_WireEdgeSet, F: TopoDS_Shape, ForceClass: bool) -> None: ... + def InitFaceBuilder( + self, ES: TopOpeBRepBuild_WireEdgeSet, F: TopoDS_Shape, ForceClass: bool + ) -> None: ... def InitWire(self) -> int: ... def IsOldWire(self) -> bool: ... def MoreEdge(self) -> bool: ... @@ -441,10 +870,14 @@ class TopOpeBRepBuild_FuseFace: @overload def __init__(self) -> None: ... @overload - def __init__(self, LIF: TopTools_ListOfShape, LRF: TopTools_ListOfShape, CXM: int) -> None: ... + def __init__( + self, LIF: TopTools_ListOfShape, LRF: TopTools_ListOfShape, CXM: int + ) -> None: ... def ClearEdge(self) -> None: ... def ClearVertex(self) -> None: ... - def Init(self, LIF: TopTools_ListOfShape, LRF: TopTools_ListOfShape, CXM: int) -> None: ... + def Init( + self, LIF: TopTools_ListOfShape, LRF: TopTools_ListOfShape, CXM: int + ) -> None: ... def IsDone(self) -> bool: ... def IsModified(self) -> bool: ... def LExternEdge(self) -> TopTools_ListOfShape: ... @@ -475,30 +908,65 @@ class TopOpeBRepBuild_GTool: @staticmethod def Dump() -> str: ... @staticmethod - def GComDiff(s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum) -> TopOpeBRepBuild_GTopo: ... + def GComDiff( + s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum + ) -> TopOpeBRepBuild_GTopo: ... @staticmethod - def GComSame(s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum) -> TopOpeBRepBuild_GTopo: ... + def GComSame( + s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum + ) -> TopOpeBRepBuild_GTopo: ... @staticmethod - def GComUnsh(s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum) -> TopOpeBRepBuild_GTopo: ... + def GComUnsh( + s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum + ) -> TopOpeBRepBuild_GTopo: ... @staticmethod - def GCutDiff(s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum) -> TopOpeBRepBuild_GTopo: ... + def GCutDiff( + s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum + ) -> TopOpeBRepBuild_GTopo: ... @staticmethod - def GCutSame(s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum) -> TopOpeBRepBuild_GTopo: ... + def GCutSame( + s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum + ) -> TopOpeBRepBuild_GTopo: ... @staticmethod - def GCutUnsh(s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum) -> TopOpeBRepBuild_GTopo: ... + def GCutUnsh( + s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum + ) -> TopOpeBRepBuild_GTopo: ... @staticmethod - def GFusDiff(s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum) -> TopOpeBRepBuild_GTopo: ... + def GFusDiff( + s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum + ) -> TopOpeBRepBuild_GTopo: ... @staticmethod - def GFusSame(s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum) -> TopOpeBRepBuild_GTopo: ... + def GFusSame( + s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum + ) -> TopOpeBRepBuild_GTopo: ... @staticmethod - def GFusUnsh(s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum) -> TopOpeBRepBuild_GTopo: ... + def GFusUnsh( + s1: TopAbs_ShapeEnum, s2: TopAbs_ShapeEnum + ) -> TopOpeBRepBuild_GTopo: ... class TopOpeBRepBuild_GTopo: @overload def __init__(self) -> None: ... @overload - def __init__(self, II: bool, IN: bool, IO: bool, NI: bool, NN: bool, NO: bool, OI: bool, ON: bool, OO: bool, t1: TopAbs_ShapeEnum, t2: TopAbs_ShapeEnum, C1: TopOpeBRepDS_Config, C2: TopOpeBRepDS_Config) -> None: ... - def ChangeConfig(self, C1: TopOpeBRepDS_Config, C2: TopOpeBRepDS_Config) -> None: ... + def __init__( + self, + II: bool, + IN: bool, + IO: bool, + NI: bool, + NN: bool, + NO: bool, + OI: bool, + ON: bool, + OO: bool, + t1: TopAbs_ShapeEnum, + t2: TopAbs_ShapeEnum, + C1: TopOpeBRepDS_Config, + C2: TopOpeBRepDS_Config, + ) -> None: ... + def ChangeConfig( + self, C1: TopOpeBRepDS_Config, C2: TopOpeBRepDS_Config + ) -> None: ... def ChangeType(self, t1: TopAbs_ShapeEnum, t2: TopAbs_ShapeEnum) -> None: ... @overload def ChangeValue(self, i1: int, i2: int, b: bool) -> None: ... @@ -519,7 +987,18 @@ class TopOpeBRepBuild_GTopo: def IsToReverse2(self) -> bool: ... def Reset(self) -> None: ... def Reverse(self) -> bool: ... - def Set(self, II: bool, IN: bool, IO: bool, NI: bool, NN: bool, NO: bool, OI: bool, ON: bool, OO: bool) -> None: ... + def Set( + self, + II: bool, + IN: bool, + IO: bool, + NI: bool, + NN: bool, + NO: bool, + OI: bool, + ON: bool, + OO: bool, + ) -> None: ... def SetReverse(self, rev: bool) -> None: ... def StatesON(self) -> Tuple[TopAbs_State, TopAbs_State]: ... def Type(self) -> Tuple[TopAbs_ShapeEnum, TopAbs_ShapeEnum]: ... @@ -539,12 +1018,23 @@ class TopOpeBRepBuild_HBuilder(Standard_Transient): def Clear(self) -> None: ... def CurrentSection(self) -> TopoDS_Shape: ... def DataStructure(self) -> TopOpeBRepDS_HDataStructure: ... - def EdgeCurveAncestors(self, E: TopoDS_Shape, F1: TopoDS_Shape, F2: TopoDS_Shape) -> Tuple[bool, int]: ... - def EdgeSectionAncestors(self, E: TopoDS_Shape, LF1: TopTools_ListOfShape, LF2: TopTools_ListOfShape, LE1: TopTools_ListOfShape, LE2: TopTools_ListOfShape) -> bool: ... + def EdgeCurveAncestors( + self, E: TopoDS_Shape, F1: TopoDS_Shape, F2: TopoDS_Shape + ) -> Tuple[bool, int]: ... + def EdgeSectionAncestors( + self, + E: TopoDS_Shape, + LF1: TopTools_ListOfShape, + LF2: TopTools_ListOfShape, + LE1: TopTools_ListOfShape, + LE2: TopTools_ListOfShape, + ) -> bool: ... def GetDSCurveFromSectEdge(self, SectEdge: TopoDS_Shape) -> int: ... def GetDSEdgeFromSectEdge(self, E: TopoDS_Shape, rank: int) -> int: ... def GetDSFaceFromDSCurve(self, indexCur: int, rank: int) -> int: ... - def GetDSFaceFromDSEdge(self, indexEdg: int, rank: int) -> TColStd_ListOfInteger: ... + def GetDSFaceFromDSEdge( + self, indexEdg: int, rank: int + ) -> TColStd_ListOfInteger: ... def GetDSPointFromNewVertex(self, NewVert: TopoDS_Shape) -> int: ... def InitExtendedSectionDS(self, k: Optional[int] = 3) -> None: ... def InitSection(self, k: Optional[int] = 3) -> None: ... @@ -552,10 +1042,16 @@ class TopOpeBRepBuild_HBuilder(Standard_Transient): def IsMerged(self, S: TopoDS_Shape, ToBuild: TopAbs_State) -> bool: ... def IsSplit(self, S: TopoDS_Shape, ToBuild: TopAbs_State) -> bool: ... def MergeKPart(self, TB1: TopAbs_State, TB2: TopAbs_State) -> None: ... - def MergeShapes(self, S1: TopoDS_Shape, TB1: TopAbs_State, S2: TopoDS_Shape, TB2: TopAbs_State) -> None: ... + def MergeShapes( + self, S1: TopoDS_Shape, TB1: TopAbs_State, S2: TopoDS_Shape, TB2: TopAbs_State + ) -> None: ... def MergeSolid(self, S: TopoDS_Shape, TB: TopAbs_State) -> None: ... - def MergeSolids(self, S1: TopoDS_Shape, TB1: TopAbs_State, S2: TopoDS_Shape, TB2: TopAbs_State) -> None: ... - def Merged(self, S: TopoDS_Shape, ToBuild: TopAbs_State) -> TopTools_ListOfShape: ... + def MergeSolids( + self, S1: TopoDS_Shape, TB1: TopAbs_State, S2: TopoDS_Shape, TB2: TopAbs_State + ) -> None: ... + def Merged( + self, S: TopoDS_Shape, ToBuild: TopAbs_State + ) -> TopTools_ListOfShape: ... def MoreSection(self) -> bool: ... def NewEdges(self, I: int) -> TopTools_ListOfShape: ... def NewFaces(self, I: int) -> TopTools_ListOfShape: ... @@ -564,9 +1060,13 @@ class TopOpeBRepBuild_HBuilder(Standard_Transient): @overload def Perform(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... @overload - def Perform(self, HDS: TopOpeBRepDS_HDataStructure, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... + def Perform( + self, HDS: TopOpeBRepDS_HDataStructure, S1: TopoDS_Shape, S2: TopoDS_Shape + ) -> None: ... def Section(self) -> TopTools_ListOfShape: ... - def Splits(self, S: TopoDS_Shape, ToBuild: TopAbs_State) -> TopTools_ListOfShape: ... + def Splits( + self, S: TopoDS_Shape, ToBuild: TopAbs_State + ) -> TopTools_ListOfShape: ... class TopOpeBRepBuild_Loop(Standard_Transient): @overload @@ -579,7 +1079,9 @@ class TopOpeBRepBuild_Loop(Standard_Transient): def Shape(self) -> TopoDS_Shape: ... class TopOpeBRepBuild_LoopClassifier: - def Compare(self, L1: TopOpeBRepBuild_Loop, L2: TopOpeBRepBuild_Loop) -> TopAbs_State: ... + def Compare( + self, L1: TopOpeBRepBuild_Loop, L2: TopOpeBRepBuild_Loop + ) -> TopAbs_State: ... class TopOpeBRepBuild_LoopSet: def __init__(self) -> None: ... @@ -602,7 +1104,9 @@ class TopOpeBRepBuild_ShapeListOfShape: def Shape(self) -> TopoDS_Shape: ... class TopOpeBRepBuild_ShapeSet: - def __init__(self, SubShapeType: TopAbs_ShapeEnum, checkshape: Optional[bool] = True) -> None: ... + def __init__( + self, SubShapeType: TopAbs_ShapeEnum, checkshape: Optional[bool] = True + ) -> None: ... def AddElement(self, S: TopoDS_Shape) -> None: ... def AddShape(self, S: TopoDS_Shape) -> None: ... def AddStartElement(self, S: TopoDS_Shape) -> None: ... @@ -612,7 +1116,9 @@ class TopOpeBRepBuild_ShapeSet: @overload def CheckShape(self) -> bool: ... @overload - def CheckShape(self, S: TopoDS_Shape, checkgeom: Optional[bool] = False) -> bool: ... + def CheckShape( + self, S: TopoDS_Shape, checkgeom: Optional[bool] = False + ) -> bool: ... @overload def DEBName(self, N: str) -> None: ... @overload @@ -629,7 +1135,9 @@ class TopOpeBRepBuild_ShapeSet: def InitNeighbours(self, S: TopoDS_Shape) -> None: ... def InitShapes(self) -> None: ... def InitStartElements(self) -> None: ... - def MakeNeighboursList(self, E: TopoDS_Shape, V: TopoDS_Shape) -> TopTools_ListOfShape: ... + def MakeNeighboursList( + self, E: TopoDS_Shape, V: TopoDS_Shape + ) -> TopTools_ListOfShape: ... def MaxNumberSubShape(self, Shape: TopoDS_Shape) -> int: ... def MoreNeighbours(self) -> bool: ... def MoreShapes(self) -> bool: ... @@ -639,13 +1147,21 @@ class TopOpeBRepBuild_ShapeSet: def NextShape(self) -> None: ... def NextStartElement(self) -> None: ... @overload - def SName(self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SName( + self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... @overload - def SName(self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SName( + self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... @overload - def SNameori(self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SNameori( + self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... @overload - def SNameori(self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SNameori( + self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... def Shape(self) -> TopoDS_Shape: ... def StartElement(self) -> TopoDS_Shape: ... def StartElements(self) -> TopTools_ListOfShape: ... @@ -660,12 +1176,16 @@ class TopOpeBRepBuild_SolidBuilder: @overload def __init__(self) -> None: ... @overload - def __init__(self, FS: TopOpeBRepBuild_ShellFaceSet, ForceClass: Optional[bool] = False) -> None: ... + def __init__( + self, FS: TopOpeBRepBuild_ShellFaceSet, ForceClass: Optional[bool] = False + ) -> None: ... def Face(self) -> TopoDS_Shape: ... def InitFace(self) -> int: ... def InitShell(self) -> int: ... def InitSolid(self) -> int: ... - def InitSolidBuilder(self, FS: TopOpeBRepBuild_ShellFaceSet, ForceClass: bool) -> None: ... + def InitSolidBuilder( + self, FS: TopOpeBRepBuild_ShellFaceSet, ForceClass: bool + ) -> None: ... def IsOldShell(self) -> bool: ... def MoreFace(self) -> bool: ... def MoreShell(self) -> bool: ... @@ -679,53 +1199,127 @@ class TopOpeBRepBuild_Tools: @staticmethod def CheckFaceClosed2d(theFace: TopoDS_Face) -> bool: ... @staticmethod - def CorrectCurveOnSurface(aS: TopoDS_Shape, aTolMax: Optional[float] = 0.0001) -> None: ... - @staticmethod - def CorrectFace2d(oldFace: TopoDS_Shape, corrFace: TopoDS_Shape, aSourceShapes: TopTools_IndexedMapOfOrientedShape, aMapOfCorrect2dEdges: TopTools_IndexedDataMapOfShapeShape) -> None: ... - @staticmethod - def CorrectPointOnCurve(aS: TopoDS_Shape, aTolMax: Optional[float] = 0.0001) -> None: ... - @staticmethod - def CorrectTolerances(aS: TopoDS_Shape, aTolMax: Optional[float] = 0.0001) -> None: ... - @staticmethod - def FindState(aVertex: TopoDS_Shape, aState: TopAbs_State, aShapeEnum: TopAbs_ShapeEnum, aMapVertexEdges: TopTools_IndexedDataMapOfShapeListOfShape, aMapProcessedVertices: TopTools_MapOfShape, aMapVs: TopOpeBRepDS_DataMapOfShapeState) -> None: ... - @staticmethod - def FindState1(anEdge: TopoDS_Shape, aState: TopAbs_State, aMapEdgesFaces: TopTools_IndexedDataMapOfShapeListOfShape, aMapProcessedVertices: TopTools_MapOfShape, aMapVs: TopOpeBRepDS_DataMapOfShapeState) -> None: ... - @staticmethod - def FindState2(anEdge: TopoDS_Shape, aState: TopAbs_State, aMapEdgesFaces: TopTools_IndexedDataMapOfShapeListOfShape, aMapProcessedEdges: TopTools_MapOfShape, aMapVs: TopOpeBRepDS_DataMapOfShapeState) -> None: ... - @staticmethod - def FindStateThroughVertex(aShape: TopoDS_Shape, aShapeClassifier: TopOpeBRepTool_ShapeClassifier, aMapOfShapeWithState: TopOpeBRepDS_IndexedDataMapOfShapeWithState, anAvoidSubshMap: TopTools_MapOfShape) -> TopAbs_State: ... - @staticmethod - def GetAdjacentFace(aFaceObj: TopoDS_Shape, anEObj: TopoDS_Shape, anEdgeFaceMap: TopTools_IndexedDataMapOfShapeListOfShape, anAdjFaceObj: TopoDS_Shape) -> bool: ... - @staticmethod - def GetNormalInNearestPoint(aFace: TopoDS_Face, anEdge: TopoDS_Edge, aNormal: gp_Vec) -> None: ... - @staticmethod - def GetNormalToFaceOnEdge(aFObj: TopoDS_Face, anEdgeObj: TopoDS_Edge, aDirNormal: gp_Vec) -> None: ... + def CorrectCurveOnSurface( + aS: TopoDS_Shape, aTolMax: Optional[float] = 0.0001 + ) -> None: ... + @staticmethod + def CorrectFace2d( + oldFace: TopoDS_Shape, + corrFace: TopoDS_Shape, + aSourceShapes: TopTools_IndexedMapOfOrientedShape, + aMapOfCorrect2dEdges: TopTools_IndexedDataMapOfShapeShape, + ) -> None: ... + @staticmethod + def CorrectPointOnCurve( + aS: TopoDS_Shape, aTolMax: Optional[float] = 0.0001 + ) -> None: ... + @staticmethod + def CorrectTolerances( + aS: TopoDS_Shape, aTolMax: Optional[float] = 0.0001 + ) -> None: ... + @staticmethod + def FindState( + aVertex: TopoDS_Shape, + aState: TopAbs_State, + aShapeEnum: TopAbs_ShapeEnum, + aMapVertexEdges: TopTools_IndexedDataMapOfShapeListOfShape, + aMapProcessedVertices: TopTools_MapOfShape, + aMapVs: TopOpeBRepDS_DataMapOfShapeState, + ) -> None: ... + @staticmethod + def FindState1( + anEdge: TopoDS_Shape, + aState: TopAbs_State, + aMapEdgesFaces: TopTools_IndexedDataMapOfShapeListOfShape, + aMapProcessedVertices: TopTools_MapOfShape, + aMapVs: TopOpeBRepDS_DataMapOfShapeState, + ) -> None: ... + @staticmethod + def FindState2( + anEdge: TopoDS_Shape, + aState: TopAbs_State, + aMapEdgesFaces: TopTools_IndexedDataMapOfShapeListOfShape, + aMapProcessedEdges: TopTools_MapOfShape, + aMapVs: TopOpeBRepDS_DataMapOfShapeState, + ) -> None: ... + @staticmethod + def FindStateThroughVertex( + aShape: TopoDS_Shape, + aShapeClassifier: TopOpeBRepTool_ShapeClassifier, + aMapOfShapeWithState: TopOpeBRepDS_IndexedDataMapOfShapeWithState, + anAvoidSubshMap: TopTools_MapOfShape, + ) -> TopAbs_State: ... + @staticmethod + def GetAdjacentFace( + aFaceObj: TopoDS_Shape, + anEObj: TopoDS_Shape, + anEdgeFaceMap: TopTools_IndexedDataMapOfShapeListOfShape, + anAdjFaceObj: TopoDS_Shape, + ) -> bool: ... + @staticmethod + def GetNormalInNearestPoint( + aFace: TopoDS_Face, anEdge: TopoDS_Edge, aNormal: gp_Vec + ) -> None: ... + @staticmethod + def GetNormalToFaceOnEdge( + aFObj: TopoDS_Face, anEdgeObj: TopoDS_Edge, aDirNormal: gp_Vec + ) -> None: ... @staticmethod def GetTangentToEdge(anEdgeObj: TopoDS_Edge, aTangent: gp_Vec) -> bool: ... @staticmethod - def GetTangentToEdgeEdge(aFObj: TopoDS_Face, anEdgeObj: TopoDS_Edge, aOriEObj: TopoDS_Edge, aTangent: gp_Vec) -> bool: ... + def GetTangentToEdgeEdge( + aFObj: TopoDS_Face, + anEdgeObj: TopoDS_Edge, + aOriEObj: TopoDS_Edge, + aTangent: gp_Vec, + ) -> bool: ... @staticmethod def IsDegEdgesTheSame(anE1: TopoDS_Shape, anE2: TopoDS_Shape) -> bool: ... @staticmethod def NormalizeFace(oldFace: TopoDS_Shape, corrFace: TopoDS_Shape) -> None: ... @staticmethod - def PropagateState(aSplEdgesState: TopOpeBRepDS_DataMapOfShapeState, anEdgesToRestMap: TopTools_IndexedMapOfShape, aShapeEnum1: TopAbs_ShapeEnum, aShapeEnum2: TopAbs_ShapeEnum, aShapeClassifier: TopOpeBRepTool_ShapeClassifier, aMapOfShapeWithState: TopOpeBRepDS_IndexedDataMapOfShapeWithState, anUnkStateShapes: TopTools_MapOfShape) -> None: ... - @staticmethod - def PropagateStateForWires(aFacesToRestMap: TopTools_IndexedMapOfShape, aMapOfShapeWithState: TopOpeBRepDS_IndexedDataMapOfShapeWithState) -> None: ... - @staticmethod - def SpreadStateToChild(aShape: TopoDS_Shape, aState: TopAbs_State, aMapOfShapeWithState: TopOpeBRepDS_IndexedDataMapOfShapeWithState) -> None: ... - @staticmethod - def UpdateEdgeOnFace(aEdgeToUpdate: TopoDS_Edge, OldFace: TopoDS_Face, NewFace: TopoDS_Face) -> None: ... - @staticmethod - def UpdateEdgeOnPeriodicalFace(aEdgeToUpdate: TopoDS_Edge, OldFace: TopoDS_Face, NewFace: TopoDS_Face) -> None: ... - @staticmethod - def UpdatePCurves(aWire: TopoDS_Wire, fromFace: TopoDS_Face, toFace: TopoDS_Face) -> None: ... + def PropagateState( + aSplEdgesState: TopOpeBRepDS_DataMapOfShapeState, + anEdgesToRestMap: TopTools_IndexedMapOfShape, + aShapeEnum1: TopAbs_ShapeEnum, + aShapeEnum2: TopAbs_ShapeEnum, + aShapeClassifier: TopOpeBRepTool_ShapeClassifier, + aMapOfShapeWithState: TopOpeBRepDS_IndexedDataMapOfShapeWithState, + anUnkStateShapes: TopTools_MapOfShape, + ) -> None: ... + @staticmethod + def PropagateStateForWires( + aFacesToRestMap: TopTools_IndexedMapOfShape, + aMapOfShapeWithState: TopOpeBRepDS_IndexedDataMapOfShapeWithState, + ) -> None: ... + @staticmethod + def SpreadStateToChild( + aShape: TopoDS_Shape, + aState: TopAbs_State, + aMapOfShapeWithState: TopOpeBRepDS_IndexedDataMapOfShapeWithState, + ) -> None: ... + @staticmethod + def UpdateEdgeOnFace( + aEdgeToUpdate: TopoDS_Edge, OldFace: TopoDS_Face, NewFace: TopoDS_Face + ) -> None: ... + @staticmethod + def UpdateEdgeOnPeriodicalFace( + aEdgeToUpdate: TopoDS_Edge, OldFace: TopoDS_Face, NewFace: TopoDS_Face + ) -> None: ... + @staticmethod + def UpdatePCurves( + aWire: TopoDS_Wire, fromFace: TopoDS_Face, toFace: TopoDS_Face + ) -> None: ... class TopOpeBRepBuild_Tools2d: @staticmethod - def DumpMapOfShapeVertexInfo(aMap: TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo) -> None: ... + def DumpMapOfShapeVertexInfo( + aMap: TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo, + ) -> None: ... @staticmethod - def MakeMapOfShapeVertexInfo(aWire: TopoDS_Wire, aMap: TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo) -> None: ... + def MakeMapOfShapeVertexInfo( + aWire: TopoDS_Wire, aMap: TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo + ) -> None: ... @staticmethod def Path(aWire: TopoDS_Wire, aResList: TopTools_ListOfShape) -> None: ... @@ -760,43 +1354,155 @@ class TopOpeBRepBuild_Area1dBuilder(TopOpeBRepBuild_AreaBuilder): @overload def __init__(self) -> None: ... @overload - def __init__(self, LS: TopOpeBRepBuild_PaveSet, LC: TopOpeBRepBuild_PaveClassifier, ForceClass: Optional[bool] = False) -> None: ... - def ADD_LISTOFLoop_TO_LISTOFLoop(self, LOL1: TopOpeBRepBuild_ListOfLoop, LOL2: TopOpeBRepBuild_ListOfLoop, s: Optional[None] = None, s1: Optional[None] = None, s2: Optional[None] = None) -> None: ... - def ADD_Loop_TO_LISTOFLoop(self, L: TopOpeBRepBuild_Loop, LOL: TopOpeBRepBuild_ListOfLoop, s: Optional[None] = None) -> None: ... + def __init__( + self, + LS: TopOpeBRepBuild_PaveSet, + LC: TopOpeBRepBuild_PaveClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... + def ADD_LISTOFLoop_TO_LISTOFLoop( + self, + LOL1: TopOpeBRepBuild_ListOfLoop, + LOL2: TopOpeBRepBuild_ListOfLoop, + s: Optional[None] = None, + s1: Optional[None] = None, + s2: Optional[None] = None, + ) -> None: ... + def ADD_Loop_TO_LISTOFLoop( + self, + L: TopOpeBRepBuild_Loop, + LOL: TopOpeBRepBuild_ListOfLoop, + s: Optional[None] = None, + ) -> None: ... @staticmethod def DumpList(L: TopOpeBRepBuild_ListOfLoop) -> None: ... - def InitAreaBuilder(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... - def REM_Loop_FROM_LISTOFLoop(self, ITLOL: TopOpeBRepBuild_ListIteratorOfListOfLoop, LOL: TopOpeBRepBuild_ListOfLoop, s: Optional[None] = None) -> None: ... + def InitAreaBuilder( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... + def REM_Loop_FROM_LISTOFLoop( + self, + ITLOL: TopOpeBRepBuild_ListIteratorOfListOfLoop, + LOL: TopOpeBRepBuild_ListOfLoop, + s: Optional[None] = None, + ) -> None: ... class TopOpeBRepBuild_Area2dBuilder(TopOpeBRepBuild_AreaBuilder): @overload def __init__(self) -> None: ... @overload - def __init__(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... - def InitAreaBuilder(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... + def __init__( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... + def InitAreaBuilder( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... class TopOpeBRepBuild_Area3dBuilder(TopOpeBRepBuild_AreaBuilder): @overload def __init__(self) -> None: ... @overload - def __init__(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... - def InitAreaBuilder(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... + def __init__( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... + def InitAreaBuilder( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... class TopOpeBRepBuild_Builder1(TopOpeBRepBuild_Builder): def __init__(self, BT: TopOpeBRepDS_BuildTool) -> None: ... def Clear(self) -> None: ... def CorrectResult2d(self, aResult: TopoDS_Shape) -> int: ... - def GFillEdgeNotSameDomWES(self, E1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GFillEdgeSameDomWES(self, E1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GFillFaceNotSameDomSFS(self, F1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - def GFillFaceNotSameDomWES(self, F1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GFillFaceSameDomSFS(self, F1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - def GFillFaceSameDomWES(self, F1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GFillShellSFS(self, SH1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - def GFillSolidSFS(self, SO1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, SFS: TopOpeBRepBuild_ShellFaceSet) -> None: ... - def GFillWireNotSameDomWES(self, W1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GFillWireSameDomWES(self, W1: TopoDS_Shape, LSO2: TopTools_ListOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def GWESMakeFaces(self, FF: TopoDS_Shape, WES: TopOpeBRepBuild_WireEdgeSet, LOF: TopTools_ListOfShape) -> None: ... + def GFillEdgeNotSameDomWES( + self, + E1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GFillEdgeSameDomWES( + self, + E1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GFillFaceNotSameDomSFS( + self, + F1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + def GFillFaceNotSameDomWES( + self, + F1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GFillFaceSameDomSFS( + self, + F1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + def GFillFaceSameDomWES( + self, + F1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GFillShellSFS( + self, + SH1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + def GFillSolidSFS( + self, + SO1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + SFS: TopOpeBRepBuild_ShellFaceSet, + ) -> None: ... + def GFillWireNotSameDomWES( + self, + W1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GFillWireSameDomWES( + self, + W1: TopoDS_Shape, + LSO2: TopTools_ListOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def GWESMakeFaces( + self, + FF: TopoDS_Shape, + WES: TopOpeBRepBuild_WireEdgeSet, + LOF: TopTools_ListOfShape, + ) -> None: ... @overload def MergeKPart(self) -> None: ... @overload @@ -804,16 +1510,49 @@ class TopOpeBRepBuild_Builder1(TopOpeBRepBuild_Builder): @overload def Perform(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... @overload - def Perform(self, HDS: TopOpeBRepDS_HDataStructure, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... - def PerformONParts(self, F: TopoDS_Shape, SDfaces: TopTools_IndexedMapOfShape, G: TopOpeBRepBuild_GTopo, WES: TopOpeBRepBuild_WireEdgeSet) -> None: ... - def PerformPieceIn2D(self, aPieceToPerform: TopoDS_Edge, aOriginalEdge: TopoDS_Edge, edgeFace: TopoDS_Face, toFace: TopoDS_Face, G: TopOpeBRepBuild_GTopo) -> bool: ... - def PerformPieceOn2D(self, aPieceObj: TopoDS_Shape, aFaceObj: TopoDS_Shape, aEdgeObj: TopoDS_Shape, aListOfPieces: TopTools_ListOfShape, aListOfFaces: TopTools_ListOfShape, aListOfPiecesOut2d: TopTools_ListOfShape) -> int: ... - def TwoPiecesON(self, aSeq: TopTools_SequenceOfShape, aListOfPieces: TopTools_ListOfShape, aListOfFaces: TopTools_ListOfShape, aListOfPiecesOut2d: TopTools_ListOfShape) -> int: ... + def Perform( + self, HDS: TopOpeBRepDS_HDataStructure, S1: TopoDS_Shape, S2: TopoDS_Shape + ) -> None: ... + def PerformONParts( + self, + F: TopoDS_Shape, + SDfaces: TopTools_IndexedMapOfShape, + G: TopOpeBRepBuild_GTopo, + WES: TopOpeBRepBuild_WireEdgeSet, + ) -> None: ... + def PerformPieceIn2D( + self, + aPieceToPerform: TopoDS_Edge, + aOriginalEdge: TopoDS_Edge, + edgeFace: TopoDS_Face, + toFace: TopoDS_Face, + G: TopOpeBRepBuild_GTopo, + ) -> bool: ... + def PerformPieceOn2D( + self, + aPieceObj: TopoDS_Shape, + aFaceObj: TopoDS_Shape, + aEdgeObj: TopoDS_Shape, + aListOfPieces: TopTools_ListOfShape, + aListOfFaces: TopTools_ListOfShape, + aListOfPiecesOut2d: TopTools_ListOfShape, + ) -> int: ... + def TwoPiecesON( + self, + aSeq: TopTools_SequenceOfShape, + aListOfPieces: TopTools_ListOfShape, + aListOfFaces: TopTools_ListOfShape, + aListOfPiecesOut2d: TopTools_ListOfShape, + ) -> int: ... class TopOpeBRepBuild_CompositeClassifier(TopOpeBRepBuild_LoopClassifier): - def Compare(self, L1: TopOpeBRepBuild_Loop, L2: TopOpeBRepBuild_Loop) -> TopAbs_State: ... + def Compare( + self, L1: TopOpeBRepBuild_Loop, L2: TopOpeBRepBuild_Loop + ) -> TopAbs_State: ... def CompareElement(self, E: TopoDS_Shape) -> bool: ... - def CompareElementToShape(self, E: TopoDS_Shape, B: TopoDS_Shape) -> TopAbs_State: ... + def CompareElementToShape( + self, E: TopoDS_Shape, B: TopoDS_Shape + ) -> TopAbs_State: ... def CompareShapes(self, B1: TopoDS_Shape, B2: TopoDS_Shape) -> TopAbs_State: ... def ResetElement(self, E: TopoDS_Shape) -> None: ... def ResetShape(self, B: TopoDS_Shape) -> None: ... @@ -843,9 +1582,13 @@ class TopOpeBRepBuild_Pave(TopOpeBRepBuild_Loop): class TopOpeBRepBuild_PaveClassifier(TopOpeBRepBuild_LoopClassifier): def __init__(self, E: TopoDS_Shape) -> None: ... @staticmethod - def AdjustCase(p1: float, o: TopAbs_Orientation, first: float, period: float, tol: float) -> Tuple[float, int]: ... + def AdjustCase( + p1: float, o: TopAbs_Orientation, first: float, period: float, tol: float + ) -> Tuple[float, int]: ... def ClosedVertices(self, B: bool) -> None: ... - def Compare(self, L1: TopOpeBRepBuild_Loop, L2: TopOpeBRepBuild_Loop) -> TopAbs_State: ... + def Compare( + self, L1: TopOpeBRepBuild_Loop, L2: TopOpeBRepBuild_Loop + ) -> TopAbs_State: ... def SetFirstParameter(self, P: float) -> None: ... class TopOpeBRepBuild_PaveSet(TopOpeBRepBuild_LoopSet): @@ -861,7 +1604,9 @@ class TopOpeBRepBuild_PaveSet(TopOpeBRepBuild_LoopSet): def NextLoop(self) -> None: ... def RemovePV(self, B: bool) -> None: ... @staticmethod - def SortPave(Lin: TopOpeBRepBuild_ListOfPave, Lout: TopOpeBRepBuild_ListOfPave) -> None: ... + def SortPave( + Lin: TopOpeBRepBuild_ListOfPave, Lout: TopOpeBRepBuild_ListOfPave + ) -> None: ... class TopOpeBRepBuild_ShellFaceSet(TopOpeBRepBuild_ShapeSet): @overload @@ -873,13 +1618,21 @@ class TopOpeBRepBuild_ShellFaceSet(TopOpeBRepBuild_ShapeSet): def AddStartElement(self, S: TopoDS_Shape) -> None: ... def DumpSS(self) -> None: ... @overload - def SName(self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SName( + self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... @overload - def SName(self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SName( + self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... @overload - def SNameori(self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SNameori( + self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... @overload - def SNameori(self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SNameori( + self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... def Solid(self) -> TopoDS_Solid: ... class TopOpeBRepBuild_WireEdgeSet(TopOpeBRepBuild_ShapeSet): @@ -893,23 +1646,43 @@ class TopOpeBRepBuild_WireEdgeSet(TopOpeBRepBuild_ShapeSet): def InitNeighbours(self, E: TopoDS_Shape) -> None: ... @staticmethod def IsUVISO(E: TopoDS_Edge, F: TopoDS_Face) -> Tuple[bool, bool]: ... - def MakeNeighboursList(self, E: TopoDS_Shape, V: TopoDS_Shape) -> TopTools_ListOfShape: ... + def MakeNeighboursList( + self, E: TopoDS_Shape, V: TopoDS_Shape + ) -> TopTools_ListOfShape: ... @overload - def SName(self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SName( + self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... @overload - def SName(self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SName( + self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... @overload - def SNameori(self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SNameori( + self, S: TopoDS_Shape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... @overload - def SNameori(self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "") -> str: ... + def SNameori( + self, S: TopTools_ListOfShape, sb: Optional[str] = "", sa: Optional[str] = "" + ) -> str: ... class TopOpeBRepBuild_EdgeBuilder(TopOpeBRepBuild_Area1dBuilder): @overload def __init__(self) -> None: ... @overload - def __init__(self, LS: TopOpeBRepBuild_PaveSet, LC: TopOpeBRepBuild_PaveClassifier, ForceClass: Optional[bool] = False) -> None: ... + def __init__( + self, + LS: TopOpeBRepBuild_PaveSet, + LC: TopOpeBRepBuild_PaveClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... def InitEdge(self) -> None: ... - def InitEdgeBuilder(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... + def InitEdgeBuilder( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... def InitVertex(self) -> None: ... def MoreEdge(self) -> bool: ... def MoreVertex(self) -> bool: ... @@ -922,14 +1695,26 @@ class TopOpeBRepBuild_FaceAreaBuilder(TopOpeBRepBuild_Area2dBuilder): @overload def __init__(self) -> None: ... @overload - def __init__(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... - def InitFaceAreaBuilder(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... + def __init__( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... + def InitFaceAreaBuilder( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... class TopOpeBRepBuild_ShellFaceClassifier(TopOpeBRepBuild_CompositeClassifier): def __init__(self, BB: TopOpeBRepBuild_BlockBuilder) -> None: ... def Clear(self) -> None: ... def CompareElement(self, F: TopoDS_Shape) -> bool: ... - def CompareElementToShape(self, F: TopoDS_Shape, S: TopoDS_Shape) -> TopAbs_State: ... + def CompareElementToShape( + self, F: TopoDS_Shape, S: TopoDS_Shape + ) -> TopAbs_State: ... def CompareShapes(self, B1: TopoDS_Shape, B2: TopoDS_Shape) -> TopAbs_State: ... def ResetElement(self, F: TopoDS_Shape) -> None: ... def ResetShape(self, S: TopoDS_Shape) -> None: ... @@ -939,14 +1724,28 @@ class TopOpeBRepBuild_SolidAreaBuilder(TopOpeBRepBuild_Area3dBuilder): @overload def __init__(self) -> None: ... @overload - def __init__(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... - def InitSolidAreaBuilder(self, LS: TopOpeBRepBuild_LoopSet, LC: TopOpeBRepBuild_LoopClassifier, ForceClass: Optional[bool] = False) -> None: ... + def __init__( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... + def InitSolidAreaBuilder( + self, + LS: TopOpeBRepBuild_LoopSet, + LC: TopOpeBRepBuild_LoopClassifier, + ForceClass: Optional[bool] = False, + ) -> None: ... class TopOpeBRepBuild_WireEdgeClassifier(TopOpeBRepBuild_CompositeClassifier): def __init__(self, F: TopoDS_Shape, BB: TopOpeBRepBuild_BlockBuilder) -> None: ... - def Compare(self, L1: TopOpeBRepBuild_Loop, L2: TopOpeBRepBuild_Loop) -> TopAbs_State: ... + def Compare( + self, L1: TopOpeBRepBuild_Loop, L2: TopOpeBRepBuild_Loop + ) -> TopAbs_State: ... def CompareElement(self, E: TopoDS_Shape) -> bool: ... - def CompareElementToShape(self, E: TopoDS_Shape, B: TopoDS_Shape) -> TopAbs_State: ... + def CompareElementToShape( + self, E: TopoDS_Shape, B: TopoDS_Shape + ) -> TopAbs_State: ... def CompareShapes(self, B1: TopoDS_Shape, B2: TopoDS_Shape) -> TopAbs_State: ... def LoopToShape(self, L: TopOpeBRepBuild_Loop) -> TopoDS_Shape: ... def ResetElement(self, E: TopoDS_Shape) -> None: ... @@ -956,4 +1755,3 @@ class TopOpeBRepBuild_WireEdgeClassifier(TopOpeBRepBuild_CompositeClassifier): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopOpeBRepDS.i b/src/SWIG_files/wrapper/TopOpeBRepDS.i index a863ec5e3..016df90d1 100644 --- a/src/SWIG_files/wrapper/TopOpeBRepDS.i +++ b/src/SWIG_files/wrapper/TopOpeBRepDS.i @@ -220,6 +220,12 @@ TopOpeBRepDS_UNKNOWN = TopOpeBRepDS_Kind.TopOpeBRepDS_UNKNOWN %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopOpeBRepDS_ListIteratorOfListOfInterference(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TopOpeBRepDS_MapOfCurve) NCollection_DataMap; diff --git a/src/SWIG_files/wrapper/TopOpeBRepDS.pyi b/src/SWIG_files/wrapper/TopOpeBRepDS.pyi index 18e2cd747..2a62b0201 100644 --- a/src/SWIG_files/wrapper/TopOpeBRepDS.pyi +++ b/src/SWIG_files/wrapper/TopOpeBRepDS.pyi @@ -14,30 +14,42 @@ from OCC.Core.gp import * from OCC.Core.TColStd import * # the following typedef cannot be wrapped as is -TopOpeBRepDS_DoubleMapIteratorOfDoubleMapOfIntegerShape = NewType("TopOpeBRepDS_DoubleMapIteratorOfDoubleMapOfIntegerShape", Any) +TopOpeBRepDS_DoubleMapIteratorOfDoubleMapOfIntegerShape = NewType( + "TopOpeBRepDS_DoubleMapIteratorOfDoubleMapOfIntegerShape", Any +) # the following typedef cannot be wrapped as is -TopOpeBRepDS_DoubleMapOfIntegerShape = NewType("TopOpeBRepDS_DoubleMapOfIntegerShape", Any) +TopOpeBRepDS_DoubleMapOfIntegerShape = NewType( + "TopOpeBRepDS_DoubleMapOfIntegerShape", Any +) # the following typedef cannot be wrapped as is -TopOpeBRepDS_IndexedDataMapOfShapeWithState = NewType("TopOpeBRepDS_IndexedDataMapOfShapeWithState", Any) +TopOpeBRepDS_IndexedDataMapOfShapeWithState = NewType( + "TopOpeBRepDS_IndexedDataMapOfShapeWithState", Any +) # the following typedef cannot be wrapped as is -TopOpeBRepDS_IndexedDataMapOfVertexPoint = NewType("TopOpeBRepDS_IndexedDataMapOfVertexPoint", Any) +TopOpeBRepDS_IndexedDataMapOfVertexPoint = NewType( + "TopOpeBRepDS_IndexedDataMapOfVertexPoint", Any +) # the following typedef cannot be wrapped as is TopOpeBRepDS_MapOfShapeData = NewType("TopOpeBRepDS_MapOfShapeData", Any) -TopOpeBRepDS_PDataStructure = NewType("TopOpeBRepDS_PDataStructure", TopOpeBRepDS_DataStructure) +TopOpeBRepDS_PDataStructure = NewType( + "TopOpeBRepDS_PDataStructure", TopOpeBRepDS_DataStructure +) class TopOpeBRepDS_ListOfInterference: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: TopOpeBRepDS_ListOfInterference + ) -> TopOpeBRepDS_ListOfInterference: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class TopOpeBRepDS_CheckStatus(IntEnum): TopOpeBRepDS_OK: int = ... @@ -97,7 +109,9 @@ class topopebrepds: def Print(K: TopOpeBRepDS_Kind) -> Tuple[Standard_OStream, str]: ... @overload @staticmethod - def Print(K: TopOpeBRepDS_Kind, I: int, B: Optional[str] = "", A: Optional[str] = "") -> Tuple[Standard_OStream, str]: ... + def Print( + K: TopOpeBRepDS_Kind, I: int, B: Optional[str] = "", A: Optional[str] = "" + ) -> Tuple[Standard_OStream, str]: ... @overload @staticmethod def Print(T: TopAbs_ShapeEnum, I: int) -> Tuple[Standard_OStream, str]: ... @@ -112,7 +126,9 @@ class topopebrepds: def SPrint(K: TopOpeBRepDS_Kind) -> str: ... @overload @staticmethod - def SPrint(K: TopOpeBRepDS_Kind, I: int, B: Optional[str] = "", A: Optional[str] = "") -> str: ... + def SPrint( + K: TopOpeBRepDS_Kind, I: int, B: Optional[str] = "", A: Optional[str] = "" + ) -> str: ... @overload @staticmethod def SPrint(T: TopAbs_ShapeEnum) -> str: ... @@ -130,12 +146,20 @@ class topopebrepds: class TopOpeBRepDS_Association(Standard_Transient): def __init__(self) -> None: ... - def AreAssociated(self, I: TopOpeBRepDS_Interference, K: TopOpeBRepDS_Interference) -> bool: ... - @overload - def Associate(self, I: TopOpeBRepDS_Interference, K: TopOpeBRepDS_Interference) -> None: ... - @overload - def Associate(self, I: TopOpeBRepDS_Interference, LI: TopOpeBRepDS_ListOfInterference) -> None: ... - def Associated(self, I: TopOpeBRepDS_Interference) -> TopOpeBRepDS_ListOfInterference: ... + def AreAssociated( + self, I: TopOpeBRepDS_Interference, K: TopOpeBRepDS_Interference + ) -> bool: ... + @overload + def Associate( + self, I: TopOpeBRepDS_Interference, K: TopOpeBRepDS_Interference + ) -> None: ... + @overload + def Associate( + self, I: TopOpeBRepDS_Interference, LI: TopOpeBRepDS_ListOfInterference + ) -> None: ... + def Associated( + self, I: TopOpeBRepDS_Interference + ) -> TopOpeBRepDS_ListOfInterference: ... def HasAssociation(self, I: TopOpeBRepDS_Interference) -> bool: ... class TopOpeBRepDS_BuildTool: @@ -146,27 +170,43 @@ class TopOpeBRepDS_BuildTool: @overload def __init__(self, GT: TopOpeBRepTool_GeomTool) -> None: ... @overload - def AddEdgeVertex(self, Ein: TopoDS_Shape, Eou: TopoDS_Shape, V: TopoDS_Shape) -> None: ... + def AddEdgeVertex( + self, Ein: TopoDS_Shape, Eou: TopoDS_Shape, V: TopoDS_Shape + ) -> None: ... @overload def AddEdgeVertex(self, E: TopoDS_Shape, V: TopoDS_Shape) -> None: ... def AddFaceWire(self, F: TopoDS_Shape, W: TopoDS_Shape) -> None: ... def AddShellFace(self, Sh: TopoDS_Shape, F: TopoDS_Shape) -> None: ... def AddSolidShell(self, S: TopoDS_Shape, Sh: TopoDS_Shape) -> None: ... def AddWireEdge(self, W: TopoDS_Shape, E: TopoDS_Shape) -> None: ... - def ApproxCurves(self, C: TopOpeBRepDS_Curve, E: TopoDS_Edge, HDS: TopOpeBRepDS_HDataStructure) -> int: ... + def ApproxCurves( + self, C: TopOpeBRepDS_Curve, E: TopoDS_Edge, HDS: TopOpeBRepDS_HDataStructure + ) -> int: ... def Approximation(self) -> bool: ... def ChangeGeomTool(self) -> TopOpeBRepTool_GeomTool: ... def Closed(self, S: TopoDS_Shape, B: bool) -> None: ... - def ComputePCurves(self, C: TopOpeBRepDS_Curve, E: TopoDS_Edge, newC: TopOpeBRepDS_Curve, CompPC1: bool, CompPC2: bool, CompC3D: bool) -> None: ... + def ComputePCurves( + self, + C: TopOpeBRepDS_Curve, + E: TopoDS_Edge, + newC: TopOpeBRepDS_Curve, + CompPC1: bool, + CompPC2: bool, + CompC3D: bool, + ) -> None: ... def CopyEdge(self, Ein: TopoDS_Shape, Eou: TopoDS_Shape) -> None: ... def CopyFace(self, Fin: TopoDS_Shape, Fou: TopoDS_Shape) -> None: ... def Curve3D(self, E: TopoDS_Shape, C: Geom_Curve, Tol: float) -> None: ... def GetGeomTool(self) -> TopOpeBRepTool_GeomTool: ... - def GetOrientedEdgeVertices(self, E: TopoDS_Edge, Vmin: TopoDS_Vertex, Vmax: TopoDS_Vertex) -> Tuple[float, float]: ... + def GetOrientedEdgeVertices( + self, E: TopoDS_Edge, Vmin: TopoDS_Vertex, Vmax: TopoDS_Vertex + ) -> Tuple[float, float]: ... @overload def MakeEdge(self, E: TopoDS_Shape, C: TopOpeBRepDS_Curve) -> None: ... @overload - def MakeEdge(self, E: TopoDS_Shape, C: TopOpeBRepDS_Curve, DS: TopOpeBRepDS_DataStructure) -> None: ... + def MakeEdge( + self, E: TopoDS_Shape, C: TopOpeBRepDS_Curve, DS: TopOpeBRepDS_DataStructure + ) -> None: ... @overload def MakeEdge(self, E: TopoDS_Shape, C: Geom_Curve, Tol: float) -> None: ... @overload @@ -187,24 +227,47 @@ class TopOpeBRepDS_BuildTool: @overload def PCurve(self, F: TopoDS_Shape, E: TopoDS_Shape, C: Geom2d_Curve) -> None: ... @overload - def PCurve(self, F: TopoDS_Shape, E: TopoDS_Shape, CDS: TopOpeBRepDS_Curve, C: Geom2d_Curve) -> None: ... + def PCurve( + self, F: TopoDS_Shape, E: TopoDS_Shape, CDS: TopOpeBRepDS_Curve, C: Geom2d_Curve + ) -> None: ... @overload def Parameter(self, E: TopoDS_Shape, V: TopoDS_Shape, P: float) -> None: ... @overload - def Parameter(self, C: TopOpeBRepDS_Curve, E: TopoDS_Shape, V: TopoDS_Shape) -> None: ... - def PutPCurves(self, newC: TopOpeBRepDS_Curve, E: TopoDS_Edge, CompPC1: bool, CompPC2: bool) -> None: ... + def Parameter( + self, C: TopOpeBRepDS_Curve, E: TopoDS_Shape, V: TopoDS_Shape + ) -> None: ... + def PutPCurves( + self, newC: TopOpeBRepDS_Curve, E: TopoDS_Edge, CompPC1: bool, CompPC2: bool + ) -> None: ... def Range(self, E: TopoDS_Shape, first: float, last: float) -> None: ... - def RecomputeCurves(self, C: TopOpeBRepDS_Curve, oldE: TopoDS_Edge, E: TopoDS_Edge, HDS: TopOpeBRepDS_HDataStructure) -> int: ... + def RecomputeCurves( + self, + C: TopOpeBRepDS_Curve, + oldE: TopoDS_Edge, + E: TopoDS_Edge, + HDS: TopOpeBRepDS_HDataStructure, + ) -> int: ... @overload def Translate(self) -> bool: ... @overload def Translate(self, T: bool) -> None: ... def UpdateEdge(self, Ein: TopoDS_Shape, Eou: TopoDS_Shape) -> None: ... - def UpdateEdgeCurveTol(self, F1: TopoDS_Face, F2: TopoDS_Face, E: TopoDS_Edge, C3Dnew: Geom_Curve, tol3d: float, tol2d1: float, tol2d2: float) -> Tuple[float, float, float]: ... + def UpdateEdgeCurveTol( + self, + F1: TopoDS_Face, + F2: TopoDS_Face, + E: TopoDS_Edge, + C3Dnew: Geom_Curve, + tol3d: float, + tol2d1: float, + tol2d2: float, + ) -> Tuple[float, float, float]: ... @overload def UpdateSurface(self, F: TopoDS_Shape, SU: Geom_Surface) -> None: ... @overload - def UpdateSurface(self, E: TopoDS_Shape, oldF: TopoDS_Shape, newF: TopoDS_Shape) -> None: ... + def UpdateSurface( + self, E: TopoDS_Shape, oldF: TopoDS_Shape, newF: TopoDS_Shape + ) -> None: ... class TopOpeBRepDS_Check(Standard_Transient): @overload @@ -230,7 +293,9 @@ class TopOpeBRepDS_Curve: @overload def __init__(self) -> None: ... @overload - def __init__(self, P: Geom_Curve, T: float, IsWalk: Optional[bool] = False) -> None: ... + def __init__( + self, P: Geom_Curve, T: float, IsWalk: Optional[bool] = False + ) -> None: ... def ChangeCurve(self) -> Geom_Curve: ... def ChangeDSIndex(self, I: int) -> None: ... def ChangeIsWalk(self, B: bool) -> None: ... @@ -252,7 +317,9 @@ class TopOpeBRepDS_Curve: def Curve2(self, PC2: Geom2d_Curve) -> None: ... def DSIndex(self) -> int: ... def DefineCurve(self, P: Geom_Curve, T: float, IsWalk: bool) -> None: ... - def GetSCI(self, I1: TopOpeBRepDS_Interference, I2: TopOpeBRepDS_Interference) -> None: ... + def GetSCI( + self, I1: TopOpeBRepDS_Interference, I2: TopOpeBRepDS_Interference + ) -> None: ... def GetSCI1(self) -> TopOpeBRepDS_Interference: ... def GetSCI2(self) -> TopOpeBRepDS_Interference: ... def GetShapes(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... @@ -261,7 +328,9 @@ class TopOpeBRepDS_Curve: def Mother(self) -> int: ... def Range(self) -> Tuple[bool, float, float]: ... def SetRange(self, First: float, Last: float) -> None: ... - def SetSCI(self, I1: TopOpeBRepDS_Interference, I2: TopOpeBRepDS_Interference) -> None: ... + def SetSCI( + self, I1: TopOpeBRepDS_Interference, I2: TopOpeBRepDS_Interference + ) -> None: ... def SetShapes(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ... def Shape1(self) -> TopoDS_Shape: ... def Shape2(self) -> TopoDS_Shape: ... @@ -274,13 +343,17 @@ class TopOpeBRepDS_CurveExplorer: @overload def __init__(self) -> None: ... @overload - def __init__(self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True) -> None: ... + def __init__( + self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True + ) -> None: ... @overload def Curve(self) -> TopOpeBRepDS_Curve: ... @overload def Curve(self, I: int) -> TopOpeBRepDS_Curve: ... def Index(self) -> int: ... - def Init(self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True) -> None: ... + def Init( + self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True + ) -> None: ... def IsCurve(self, I: int) -> bool: ... def IsCurveKeep(self, I: int) -> bool: ... def More(self) -> bool: ... @@ -291,13 +364,17 @@ class TopOpeBRepDS_DataStructure: def __init__(self) -> None: ... def AddCurve(self, S: TopOpeBRepDS_Curve) -> int: ... def AddPoint(self, PDS: TopOpeBRepDS_Point) -> int: ... - def AddPointSS(self, PDS: TopOpeBRepDS_Point, S1: TopoDS_Shape, S2: TopoDS_Shape) -> int: ... + def AddPointSS( + self, PDS: TopOpeBRepDS_Point, S1: TopoDS_Shape, S2: TopoDS_Shape + ) -> int: ... def AddSectionEdge(self, E: TopoDS_Edge) -> int: ... @overload def AddShape(self, S: TopoDS_Shape) -> int: ... @overload def AddShape(self, S: TopoDS_Shape, I: int) -> int: ... - def AddShapeInterference(self, S: TopoDS_Shape, I: TopOpeBRepDS_Interference) -> None: ... + def AddShapeInterference( + self, S: TopoDS_Shape, I: TopOpeBRepDS_Interference + ) -> None: ... def AddShapeSameDomain(self, S: TopoDS_Shape, SSD: TopoDS_Shape) -> None: ... def AddSurface(self, S: TopOpeBRepDS_Surface) -> int: ... @overload @@ -328,14 +405,22 @@ class TopOpeBRepDS_DataStructure: def ChangeKeepSurface(self, S: TopOpeBRepDS_Surface, FindKeep: bool) -> None: ... def ChangeMapOfRejectedShapesObj(self) -> TopTools_IndexedMapOfShape: ... def ChangeMapOfRejectedShapesTool(self) -> TopTools_IndexedMapOfShape: ... - def ChangeMapOfShapeWithState(self, aShape: TopoDS_Shape) -> Tuple[TopOpeBRepDS_IndexedDataMapOfShapeWithState, bool]: ... - def ChangeMapOfShapeWithStateObj(self) -> TopOpeBRepDS_IndexedDataMapOfShapeWithState: ... - def ChangeMapOfShapeWithStateTool(self) -> TopOpeBRepDS_IndexedDataMapOfShapeWithState: ... + def ChangeMapOfShapeWithState( + self, aShape: TopoDS_Shape + ) -> Tuple[TopOpeBRepDS_IndexedDataMapOfShapeWithState, bool]: ... + def ChangeMapOfShapeWithStateObj( + self, + ) -> TopOpeBRepDS_IndexedDataMapOfShapeWithState: ... + def ChangeMapOfShapeWithStateTool( + self, + ) -> TopOpeBRepDS_IndexedDataMapOfShapeWithState: ... def ChangeNbCurves(self, N: int) -> None: ... def ChangePoint(self, I: int) -> TopOpeBRepDS_Point: ... def ChangePointInterferences(self, I: int) -> TopOpeBRepDS_ListOfInterference: ... @overload - def ChangeShapeInterferences(self, S: TopoDS_Shape) -> TopOpeBRepDS_ListOfInterference: ... + def ChangeShapeInterferences( + self, S: TopoDS_Shape + ) -> TopOpeBRepDS_ListOfInterference: ... @overload def ChangeShapeInterferences(self, I: int) -> TopOpeBRepDS_ListOfInterference: ... @overload @@ -348,16 +433,29 @@ class TopOpeBRepDS_DataStructure: def Curve(self, I: int) -> TopOpeBRepDS_Curve: ... def CurveInterferences(self, I: int) -> TopOpeBRepDS_ListOfInterference: ... @overload - def FillShapesSameDomain(self, S1: TopoDS_Shape, S2: TopoDS_Shape, refFirst: Optional[bool] = True) -> None: ... - @overload - def FillShapesSameDomain(self, S1: TopoDS_Shape, S2: TopoDS_Shape, c1: TopOpeBRepDS_Config, c2: TopOpeBRepDS_Config, refFirst: Optional[bool] = True) -> None: ... - def GetShapeWithState(self, aShape: TopoDS_Shape) -> TopOpeBRepDS_ShapeWithState: ... + def FillShapesSameDomain( + self, S1: TopoDS_Shape, S2: TopoDS_Shape, refFirst: Optional[bool] = True + ) -> None: ... + @overload + def FillShapesSameDomain( + self, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + c1: TopOpeBRepDS_Config, + c2: TopOpeBRepDS_Config, + refFirst: Optional[bool] = True, + ) -> None: ... + def GetShapeWithState( + self, aShape: TopoDS_Shape + ) -> TopOpeBRepDS_ShapeWithState: ... def HasGeometry(self, S: TopoDS_Shape) -> bool: ... def HasNewSurface(self, F: TopoDS_Shape) -> bool: ... def HasShape(self, S: TopoDS_Shape, FindKeep: Optional[bool] = True) -> bool: ... def Init(self) -> None: ... def InitSectionEdges(self) -> None: ... - def IsSectionEdge(self, E: TopoDS_Edge, FindKeep: Optional[bool] = True) -> bool: ... + def IsSectionEdge( + self, E: TopoDS_Edge, FindKeep: Optional[bool] = True + ) -> bool: ... @overload def Isfafa(self, isfafa: bool) -> None: ... @overload @@ -388,7 +486,9 @@ class TopOpeBRepDS_DataStructure: def PointInterferences(self, I: int) -> TopOpeBRepDS_ListOfInterference: ... def RemoveCurve(self, I: int) -> None: ... def RemovePoint(self, I: int) -> None: ... - def RemoveShapeInterference(self, S: TopoDS_Shape, I: TopOpeBRepDS_Interference) -> None: ... + def RemoveShapeInterference( + self, S: TopoDS_Shape, I: TopOpeBRepDS_Interference + ) -> None: ... def RemoveShapeSameDomain(self, S: TopoDS_Shape, SSD: TopoDS_Shape) -> None: ... def RemoveSurface(self, I: int) -> None: ... @overload @@ -425,9 +525,13 @@ class TopOpeBRepDS_DataStructure: @overload def Shape(self, S: TopoDS_Shape, FindKeep: Optional[bool] = True) -> int: ... @overload - def ShapeInterferences(self, S: TopoDS_Shape, FindKeep: Optional[bool] = True) -> TopOpeBRepDS_ListOfInterference: ... + def ShapeInterferences( + self, S: TopoDS_Shape, FindKeep: Optional[bool] = True + ) -> TopOpeBRepDS_ListOfInterference: ... @overload - def ShapeInterferences(self, I: int, FindKeep: Optional[bool] = True) -> TopOpeBRepDS_ListOfInterference: ... + def ShapeInterferences( + self, I: int, FindKeep: Optional[bool] = True + ) -> TopOpeBRepDS_ListOfInterference: ... @overload def ShapeSameDomain(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... @overload @@ -449,7 +553,9 @@ class TopOpeBRepDS_Dumper: @overload def SPrintShapeRefOri(self, S: TopoDS_Shape, B: Optional[str] = "") -> str: ... @overload - def SPrintShapeRefOri(self, L: TopTools_ListOfShape, B: Optional[str] = "") -> str: ... + def SPrintShapeRefOri( + self, L: TopTools_ListOfShape, B: Optional[str] = "" + ) -> str: ... class TopOpeBRepDS_EIR: def __init__(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... @@ -460,17 +566,33 @@ class TopOpeBRepDS_EIR: class TopOpeBRepDS_Edge3dInterferenceTool: def __init__(self) -> None: ... - def Add(self, Eref: TopoDS_Shape, E: TopoDS_Shape, F: TopoDS_Shape, I: TopOpeBRepDS_Interference) -> None: ... - def Init(self, Eref: TopoDS_Shape, E: TopoDS_Shape, F: TopoDS_Shape, I: TopOpeBRepDS_Interference) -> None: ... + def Add( + self, + Eref: TopoDS_Shape, + E: TopoDS_Shape, + F: TopoDS_Shape, + I: TopOpeBRepDS_Interference, + ) -> None: ... + def Init( + self, + Eref: TopoDS_Shape, + E: TopoDS_Shape, + F: TopoDS_Shape, + I: TopOpeBRepDS_Interference, + ) -> None: ... def InitPointVertex(self, IsVertex: int, VonOO: TopoDS_Shape) -> None: ... def Transition(self, I: TopOpeBRepDS_Interference) -> None: ... class TopOpeBRepDS_EdgeInterferenceTool: def __init__(self) -> None: ... @overload - def Add(self, E: TopoDS_Shape, V: TopoDS_Shape, I: TopOpeBRepDS_Interference) -> None: ... + def Add( + self, E: TopoDS_Shape, V: TopoDS_Shape, I: TopOpeBRepDS_Interference + ) -> None: ... @overload - def Add(self, E: TopoDS_Shape, P: TopOpeBRepDS_Point, I: TopOpeBRepDS_Interference) -> None: ... + def Add( + self, E: TopoDS_Shape, P: TopOpeBRepDS_Point, I: TopOpeBRepDS_Interference + ) -> None: ... def Init(self, E: TopoDS_Shape, I: TopOpeBRepDS_Interference) -> None: ... def Transition(self, I: TopOpeBRepDS_Interference) -> None: ... @@ -478,12 +600,22 @@ class TopOpeBRepDS_Explorer: @overload def __init__(self) -> None: ... @overload - def __init__(self, HDS: TopOpeBRepDS_HDataStructure, T: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, findkeep: Optional[bool] = True) -> None: ... + def __init__( + self, + HDS: TopOpeBRepDS_HDataStructure, + T: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + findkeep: Optional[bool] = True, + ) -> None: ... def Current(self) -> TopoDS_Shape: ... def Edge(self) -> TopoDS_Edge: ... def Face(self) -> TopoDS_Face: ... def Index(self) -> int: ... - def Init(self, HDS: TopOpeBRepDS_HDataStructure, T: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, findkeep: Optional[bool] = True) -> None: ... + def Init( + self, + HDS: TopOpeBRepDS_HDataStructure, + T: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + findkeep: Optional[bool] = True, + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def Type(self) -> TopAbs_ShapeEnum: ... @@ -492,24 +624,47 @@ class TopOpeBRepDS_Explorer: class TopOpeBRepDS_FIR: def __init__(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... @overload - def ProcessFaceInterferences(self, M: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State) -> None: ... + def ProcessFaceInterferences( + self, M: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State + ) -> None: ... @overload - def ProcessFaceInterferences(self, I: int, M: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State) -> None: ... + def ProcessFaceInterferences( + self, I: int, M: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State + ) -> None: ... class TopOpeBRepDS_FaceInterferenceTool: def __init__(self, P: TopOpeBRepDS_PDataStructure) -> None: ... @overload - def Add(self, FI: TopoDS_Shape, F: TopoDS_Shape, E: TopoDS_Shape, Eisnew: bool, I: TopOpeBRepDS_Interference) -> None: ... - @overload - def Add(self, E: TopoDS_Shape, C: TopOpeBRepDS_Curve, I: TopOpeBRepDS_Interference) -> None: ... + def Add( + self, + FI: TopoDS_Shape, + F: TopoDS_Shape, + E: TopoDS_Shape, + Eisnew: bool, + I: TopOpeBRepDS_Interference, + ) -> None: ... + @overload + def Add( + self, E: TopoDS_Shape, C: TopOpeBRepDS_Curve, I: TopOpeBRepDS_Interference + ) -> None: ... def GetEdgePntPar(self, P: gp_Pnt) -> float: ... - def Init(self, FI: TopoDS_Shape, E: TopoDS_Shape, Eisnew: bool, I: TopOpeBRepDS_Interference) -> None: ... + def Init( + self, + FI: TopoDS_Shape, + E: TopoDS_Shape, + Eisnew: bool, + I: TopOpeBRepDS_Interference, + ) -> None: ... def IsEdgePntParDef(self) -> bool: ... def SetEdgePntPar(self, P: gp_Pnt, par: float) -> None: ... def Transition(self, I: TopOpeBRepDS_Interference) -> None: ... class TopOpeBRepDS_Filter: - def __init__(self, HDS: TopOpeBRepDS_HDataStructure, pClassif: Optional[TopOpeBRepTool_PShapeClassifier] = 0) -> None: ... + def __init__( + self, + HDS: TopOpeBRepDS_HDataStructure, + pClassif: Optional[TopOpeBRepTool_PShapeClassifier] = 0, + ) -> None: ... @overload def ProcessCurveInterferences(self) -> None: ... @overload @@ -519,40 +674,71 @@ class TopOpeBRepDS_Filter: @overload def ProcessEdgeInterferences(self, I: int) -> None: ... @overload - def ProcessFaceInterferences(self, MEsp: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State) -> None: ... + def ProcessFaceInterferences( + self, MEsp: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State + ) -> None: ... @overload - def ProcessFaceInterferences(self, I: int, MEsp: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State) -> None: ... + def ProcessFaceInterferences( + self, I: int, MEsp: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State + ) -> None: ... def ProcessInterferences(self) -> None: ... class TopOpeBRepDS_GapFiller: def __init__(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... - def AddPointsOnConnexShape(self, F: TopoDS_Shape, LI: TopOpeBRepDS_ListOfInterference) -> None: ... - def AddPointsOnShape(self, S: TopoDS_Shape, LI: TopOpeBRepDS_ListOfInterference) -> None: ... + def AddPointsOnConnexShape( + self, F: TopoDS_Shape, LI: TopOpeBRepDS_ListOfInterference + ) -> None: ... + def AddPointsOnShape( + self, S: TopoDS_Shape, LI: TopOpeBRepDS_ListOfInterference + ) -> None: ... def BuildNewGeometries(self) -> None: ... def CheckConnexity(self, LI: TopOpeBRepDS_ListOfInterference) -> bool: ... - def FilterByEdge(self, E: TopoDS_Edge, LI: TopOpeBRepDS_ListOfInterference) -> None: ... - def FilterByFace(self, F: TopoDS_Face, LI: TopOpeBRepDS_ListOfInterference) -> None: ... - def FilterByIncidentDistance(self, F: TopoDS_Face, I: TopOpeBRepDS_Interference, LI: TopOpeBRepDS_ListOfInterference) -> None: ... - def FindAssociatedPoints(self, I: TopOpeBRepDS_Interference, LI: TopOpeBRepDS_ListOfInterference) -> None: ... + def FilterByEdge( + self, E: TopoDS_Edge, LI: TopOpeBRepDS_ListOfInterference + ) -> None: ... + def FilterByFace( + self, F: TopoDS_Face, LI: TopOpeBRepDS_ListOfInterference + ) -> None: ... + def FilterByIncidentDistance( + self, + F: TopoDS_Face, + I: TopOpeBRepDS_Interference, + LI: TopOpeBRepDS_ListOfInterference, + ) -> None: ... + def FindAssociatedPoints( + self, I: TopOpeBRepDS_Interference, LI: TopOpeBRepDS_ListOfInterference + ) -> None: ... def IsOnEdge(self, I: TopOpeBRepDS_Interference, E: TopoDS_Edge) -> bool: ... def IsOnFace(self, I: TopOpeBRepDS_Interference, F: TopoDS_Face) -> bool: ... def Perform(self) -> None: ... - def ReBuildGeom(self, I1: TopOpeBRepDS_Interference, Done: TColStd_MapOfInteger) -> None: ... + def ReBuildGeom( + self, I1: TopOpeBRepDS_Interference, Done: TColStd_MapOfInteger + ) -> None: ... class TopOpeBRepDS_GapTool(Standard_Transient): @overload def __init__(self) -> None: ... @overload def __init__(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... - def ChangeSameInterferences(self, I: TopOpeBRepDS_Interference) -> TopOpeBRepDS_ListOfInterference: ... + def ChangeSameInterferences( + self, I: TopOpeBRepDS_Interference + ) -> TopOpeBRepDS_ListOfInterference: ... def Curve(self, I: TopOpeBRepDS_Interference, C: TopOpeBRepDS_Curve) -> bool: ... def EdgeSupport(self, I: TopOpeBRepDS_Interference, E: TopoDS_Shape) -> bool: ... - def FacesSupport(self, I: TopOpeBRepDS_Interference, F1: TopoDS_Shape, F2: TopoDS_Shape) -> bool: ... + def FacesSupport( + self, I: TopOpeBRepDS_Interference, F1: TopoDS_Shape, F2: TopoDS_Shape + ) -> bool: ... def Init(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... def Interferences(self, IndexPoint: int) -> TopOpeBRepDS_ListOfInterference: ... - def ParameterOnEdge(self, I: TopOpeBRepDS_Interference, E: TopoDS_Shape) -> Tuple[bool, float]: ... - def SameInterferences(self, I: TopOpeBRepDS_Interference) -> TopOpeBRepDS_ListOfInterference: ... - def SetParameterOnEdge(self, I: TopOpeBRepDS_Interference, E: TopoDS_Shape, U: float) -> None: ... + def ParameterOnEdge( + self, I: TopOpeBRepDS_Interference, E: TopoDS_Shape + ) -> Tuple[bool, float]: ... + def SameInterferences( + self, I: TopOpeBRepDS_Interference + ) -> TopOpeBRepDS_ListOfInterference: ... + def SetParameterOnEdge( + self, I: TopOpeBRepDS_Interference, E: TopoDS_Shape, U: float + ) -> None: ... def SetPoint(self, I: TopOpeBRepDS_Interference, IndexPoint: int) -> None: ... class TopOpeBRepDS_GeometryData: @@ -569,7 +755,14 @@ class TopOpeBRepDS_Interference(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, Transition: TopOpeBRepDS_Transition, SupportType: TopOpeBRepDS_Kind, Support: int, GeometryType: TopOpeBRepDS_Kind, Geometry: int) -> None: ... + def __init__( + self, + Transition: TopOpeBRepDS_Transition, + SupportType: TopOpeBRepDS_Kind, + Support: int, + GeometryType: TopOpeBRepDS_Kind, + Geometry: int, + ) -> None: ... @overload def __init__(self, I: TopOpeBRepDS_Interference) -> None: ... def ChangeTransition(self) -> TopOpeBRepDS_Transition: ... @@ -617,19 +810,52 @@ class TopOpeBRepDS_InterferenceIterator: class TopOpeBRepDS_InterferenceTool: @staticmethod - def DuplicateCurvePointInterference(I: TopOpeBRepDS_Interference) -> TopOpeBRepDS_Interference: ... + def DuplicateCurvePointInterference( + I: TopOpeBRepDS_Interference, + ) -> TopOpeBRepDS_Interference: ... @staticmethod - def MakeCurveInterference(T: TopOpeBRepDS_Transition, SK: TopOpeBRepDS_Kind, SI: int, GK: TopOpeBRepDS_Kind, GI: int, P: float) -> TopOpeBRepDS_Interference: ... + def MakeCurveInterference( + T: TopOpeBRepDS_Transition, + SK: TopOpeBRepDS_Kind, + SI: int, + GK: TopOpeBRepDS_Kind, + GI: int, + P: float, + ) -> TopOpeBRepDS_Interference: ... @staticmethod - def MakeEdgeInterference(T: TopOpeBRepDS_Transition, SK: TopOpeBRepDS_Kind, SI: int, GK: TopOpeBRepDS_Kind, GI: int, P: float) -> TopOpeBRepDS_Interference: ... + def MakeEdgeInterference( + T: TopOpeBRepDS_Transition, + SK: TopOpeBRepDS_Kind, + SI: int, + GK: TopOpeBRepDS_Kind, + GI: int, + P: float, + ) -> TopOpeBRepDS_Interference: ... @staticmethod - def MakeEdgeVertexInterference(Transition: TopOpeBRepDS_Transition, EdgeI: int, VertexI: int, VertexIsBound: bool, Config: TopOpeBRepDS_Config, param: float) -> TopOpeBRepDS_Interference: ... + def MakeEdgeVertexInterference( + Transition: TopOpeBRepDS_Transition, + EdgeI: int, + VertexI: int, + VertexIsBound: bool, + Config: TopOpeBRepDS_Config, + param: float, + ) -> TopOpeBRepDS_Interference: ... @staticmethod - def MakeFaceCurveInterference(Transition: TopOpeBRepDS_Transition, FaceI: int, CurveI: int, PC: Geom2d_Curve) -> TopOpeBRepDS_Interference: ... + def MakeFaceCurveInterference( + Transition: TopOpeBRepDS_Transition, FaceI: int, CurveI: int, PC: Geom2d_Curve + ) -> TopOpeBRepDS_Interference: ... @staticmethod - def MakeFaceEdgeInterference(Transition: TopOpeBRepDS_Transition, FaceI: int, EdgeI: int, EdgeIsBound: bool, Config: TopOpeBRepDS_Config) -> TopOpeBRepDS_Interference: ... + def MakeFaceEdgeInterference( + Transition: TopOpeBRepDS_Transition, + FaceI: int, + EdgeI: int, + EdgeIsBound: bool, + Config: TopOpeBRepDS_Config, + ) -> TopOpeBRepDS_Interference: ... @staticmethod - def MakeSolidSurfaceInterference(Transition: TopOpeBRepDS_Transition, SolidI: int, SurfaceI: int) -> TopOpeBRepDS_Interference: ... + def MakeSolidSurfaceInterference( + Transition: TopOpeBRepDS_Transition, SolidI: int, SurfaceI: int + ) -> TopOpeBRepDS_Interference: ... @overload @staticmethod def Parameter(CPI: TopOpeBRepDS_Interference) -> float: ... @@ -676,9 +902,13 @@ class TopOpeBRepDS_PointExplorer: @overload def __init__(self) -> None: ... @overload - def __init__(self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True) -> None: ... + def __init__( + self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True + ) -> None: ... def Index(self) -> int: ... - def Init(self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True) -> None: ... + def Init( + self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True + ) -> None: ... def IsPoint(self, I: int) -> bool: ... def IsPointKeep(self, I: int) -> bool: ... def More(self) -> bool: ... @@ -692,7 +922,9 @@ class TopOpeBRepDS_PointExplorer: class TopOpeBRepDS_Reducer: def __init__(self, HDS: TopOpeBRepDS_HDataStructure) -> None: ... def ProcessEdgeInterferences(self) -> None: ... - def ProcessFaceInterferences(self, M: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State) -> None: ... + def ProcessFaceInterferences( + self, M: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State + ) -> None: ... class TopOpeBRepDS_ShapeData: def __init__(self) -> None: ... @@ -704,7 +936,9 @@ class TopOpeBRepDS_ShapeData: class TopOpeBRepDS_ShapeWithState: def __init__(self) -> None: ... def AddPart(self, aShape: TopoDS_Shape, aState: TopAbs_State) -> None: ... - def AddParts(self, aListOfShape: TopTools_ListOfShape, aState: TopAbs_State) -> None: ... + def AddParts( + self, aListOfShape: TopTools_ListOfShape, aState: TopAbs_State + ) -> None: ... def IsSplitted(self) -> bool: ... def Part(self, aState: TopAbs_State) -> TopTools_ListOfShape: ... def SetIsSplitted(self, anIsSplitted: bool) -> None: ... @@ -731,9 +965,13 @@ class TopOpeBRepDS_SurfaceExplorer: @overload def __init__(self) -> None: ... @overload - def __init__(self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True) -> None: ... + def __init__( + self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True + ) -> None: ... def Index(self) -> int: ... - def Init(self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True) -> None: ... + def Init( + self, DS: TopOpeBRepDS_DataStructure, FindOnlyKeep: Optional[bool] = True + ) -> None: ... def IsSurface(self, I: int) -> bool: ... def IsSurfaceKeep(self, I: int) -> bool: ... def More(self) -> bool: ... @@ -749,46 +987,83 @@ class TopOpeBRepDS_TKI: @overload def Add(self, K: TopOpeBRepDS_Kind, G: int) -> None: ... @overload - def Add(self, K: TopOpeBRepDS_Kind, G: int, HI: TopOpeBRepDS_Interference) -> None: ... - def ChangeInterferences(self, K: TopOpeBRepDS_Kind, G: int) -> TopOpeBRepDS_ListOfInterference: ... - def ChangeValue(self) -> Tuple[TopOpeBRepDS_ListOfInterference, TopOpeBRepDS_Kind, int]: ... + def Add( + self, K: TopOpeBRepDS_Kind, G: int, HI: TopOpeBRepDS_Interference + ) -> None: ... + def ChangeInterferences( + self, K: TopOpeBRepDS_Kind, G: int + ) -> TopOpeBRepDS_ListOfInterference: ... + def ChangeValue( + self, + ) -> Tuple[TopOpeBRepDS_ListOfInterference, TopOpeBRepDS_Kind, int]: ... def Clear(self) -> None: ... - def DumpTKIIterator(self, s1: Optional[str] = "", s2: Optional[str] = "") -> None: ... + def DumpTKIIterator( + self, s1: Optional[str] = "", s2: Optional[str] = "" + ) -> None: ... def FillOnGeometry(self, L: TopOpeBRepDS_ListOfInterference) -> None: ... def FillOnSupport(self, L: TopOpeBRepDS_ListOfInterference) -> None: ... def HasInterferences(self, K: TopOpeBRepDS_Kind, G: int) -> bool: ... def Init(self) -> None: ... - def Interferences(self, K: TopOpeBRepDS_Kind, G: int) -> TopOpeBRepDS_ListOfInterference: ... + def Interferences( + self, K: TopOpeBRepDS_Kind, G: int + ) -> TopOpeBRepDS_ListOfInterference: ... def IsBound(self, K: TopOpeBRepDS_Kind, G: int) -> bool: ... def More(self) -> bool: ... def Next(self) -> None: ... - def Value(self) -> Tuple[TopOpeBRepDS_ListOfInterference, TopOpeBRepDS_Kind, int]: ... + def Value( + self, + ) -> Tuple[TopOpeBRepDS_ListOfInterference, TopOpeBRepDS_Kind, int]: ... class TopOpeBRepDS_TOOL: @staticmethod - def EShareG(HDS: TopOpeBRepDS_HDataStructure, E: TopoDS_Edge, lEsd: TopTools_ListOfShape) -> int: ... + def EShareG( + HDS: TopOpeBRepDS_HDataStructure, E: TopoDS_Edge, lEsd: TopTools_ListOfShape + ) -> int: ... @staticmethod - def GetConfig(HDS: TopOpeBRepDS_HDataStructure, MEspON: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State, ie: int, iesd: int) -> Tuple[bool, int]: ... + def GetConfig( + HDS: TopOpeBRepDS_HDataStructure, + MEspON: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State, + ie: int, + iesd: int, + ) -> Tuple[bool, int]: ... @staticmethod - def GetEsd(HDS: TopOpeBRepDS_HDataStructure, S: TopoDS_Shape, ie: int) -> Tuple[bool, int]: ... + def GetEsd( + HDS: TopOpeBRepDS_HDataStructure, S: TopoDS_Shape, ie: int + ) -> Tuple[bool, int]: ... @staticmethod def ShareG(HDS: TopOpeBRepDS_HDataStructure, is1: int, is2: int) -> bool: ... @staticmethod - def ShareSplitON(HDS: TopOpeBRepDS_HDataStructure, MspON: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State, i1: int, i2: int, spON: TopoDS_Shape) -> bool: ... + def ShareSplitON( + HDS: TopOpeBRepDS_HDataStructure, + MspON: TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State, + i1: int, + i2: int, + spON: TopoDS_Shape, + ) -> bool: ... class TopOpeBRepDS_Transition: @overload def __init__(self) -> None: ... @overload - def __init__(self, StateBefore: TopAbs_State, StateAfter: TopAbs_State, ShapeBefore: Optional[TopAbs_ShapeEnum] = TopAbs_FACE, ShapeAfter: Optional[TopAbs_ShapeEnum] = TopAbs_FACE) -> None: ... + def __init__( + self, + StateBefore: TopAbs_State, + StateAfter: TopAbs_State, + ShapeBefore: Optional[TopAbs_ShapeEnum] = TopAbs_FACE, + ShapeAfter: Optional[TopAbs_ShapeEnum] = TopAbs_FACE, + ) -> None: ... @overload def __init__(self, O: TopAbs_Orientation) -> None: ... @overload - def After(self, S: TopAbs_State, ShapeAfter: Optional[TopAbs_ShapeEnum] = TopAbs_FACE) -> None: ... + def After( + self, S: TopAbs_State, ShapeAfter: Optional[TopAbs_ShapeEnum] = TopAbs_FACE + ) -> None: ... @overload def After(self) -> TopAbs_State: ... @overload - def Before(self, S: TopAbs_State, ShapeBefore: Optional[TopAbs_ShapeEnum] = TopAbs_FACE) -> None: ... + def Before( + self, S: TopAbs_State, ShapeBefore: Optional[TopAbs_ShapeEnum] = TopAbs_FACE + ) -> None: ... @overload def Before(self) -> TopAbs_State: ... def Complement(self) -> TopOpeBRepDS_Transition: ... @@ -807,9 +1082,17 @@ class TopOpeBRepDS_Transition: def IsUnknown(self) -> bool: ... def ONAfter(self) -> TopAbs_ShapeEnum: ... def ONBefore(self) -> TopAbs_ShapeEnum: ... - def Orientation(self, S: TopAbs_State, T: Optional[TopAbs_ShapeEnum] = TopAbs_FACE) -> TopAbs_Orientation: ... - @overload - def Set(self, StateBefore: TopAbs_State, StateAfter: TopAbs_State, ShapeBefore: Optional[TopAbs_ShapeEnum] = TopAbs_FACE, ShapeAfter: Optional[TopAbs_ShapeEnum] = TopAbs_FACE) -> None: ... + def Orientation( + self, S: TopAbs_State, T: Optional[TopAbs_ShapeEnum] = TopAbs_FACE + ) -> TopAbs_Orientation: ... + @overload + def Set( + self, + StateBefore: TopAbs_State, + StateAfter: TopAbs_State, + ShapeBefore: Optional[TopAbs_ShapeEnum] = TopAbs_FACE, + ShapeAfter: Optional[TopAbs_ShapeEnum] = TopAbs_FACE, + ) -> None: ... @overload def Set(self, O: TopAbs_Orientation) -> None: ... @overload @@ -837,7 +1120,15 @@ class TopOpeBRepDS_CurveIterator(TopOpeBRepDS_InterferenceIterator): def PCurve(self) -> Geom2d_Curve: ... class TopOpeBRepDS_CurvePointInterference(TopOpeBRepDS_Interference): - def __init__(self, T: TopOpeBRepDS_Transition, ST: TopOpeBRepDS_Kind, S: int, GT: TopOpeBRepDS_Kind, G: int, P: float) -> None: ... + def __init__( + self, + T: TopOpeBRepDS_Transition, + ST: TopOpeBRepDS_Kind, + S: int, + GT: TopOpeBRepDS_Kind, + G: int, + P: float, + ) -> None: ... @overload def Parameter(self) -> float: ... @overload @@ -866,19 +1157,43 @@ class TopOpeBRepDS_PointIterator(TopOpeBRepDS_InterferenceIterator): def Support(self) -> int: ... class TopOpeBRepDS_ShapeShapeInterference(TopOpeBRepDS_Interference): - def __init__(self, T: TopOpeBRepDS_Transition, ST: TopOpeBRepDS_Kind, S: int, GT: TopOpeBRepDS_Kind, G: int, GBound: bool, C: TopOpeBRepDS_Config) -> None: ... + def __init__( + self, + T: TopOpeBRepDS_Transition, + ST: TopOpeBRepDS_Kind, + S: int, + GT: TopOpeBRepDS_Kind, + G: int, + GBound: bool, + C: TopOpeBRepDS_Config, + ) -> None: ... def Config(self) -> TopOpeBRepDS_Config: ... def GBound(self) -> bool: ... def SetGBound(self, b: bool) -> None: ... class TopOpeBRepDS_SolidSurfaceInterference(TopOpeBRepDS_Interference): - def __init__(self, Transition: TopOpeBRepDS_Transition, SupportType: TopOpeBRepDS_Kind, Support: int, GeometryType: TopOpeBRepDS_Kind, Geometry: int) -> None: ... + def __init__( + self, + Transition: TopOpeBRepDS_Transition, + SupportType: TopOpeBRepDS_Kind, + Support: int, + GeometryType: TopOpeBRepDS_Kind, + Geometry: int, + ) -> None: ... class TopOpeBRepDS_SurfaceCurveInterference(TopOpeBRepDS_Interference): @overload def __init__(self) -> None: ... @overload - def __init__(self, Transition: TopOpeBRepDS_Transition, SupportType: TopOpeBRepDS_Kind, Support: int, GeometryType: TopOpeBRepDS_Kind, Geometry: int, PC: Geom2d_Curve) -> None: ... + def __init__( + self, + Transition: TopOpeBRepDS_Transition, + SupportType: TopOpeBRepDS_Kind, + Support: int, + GeometryType: TopOpeBRepDS_Kind, + Geometry: int, + PC: Geom2d_Curve, + ) -> None: ... @overload def __init__(self, I: TopOpeBRepDS_Interference) -> None: ... @overload @@ -899,29 +1214,54 @@ class TopOpeBRepDS_SurfaceIterator(TopOpeBRepDS_InterferenceIterator): class TopOpeBRepDS_EdgeVertexInterference(TopOpeBRepDS_ShapeShapeInterference): @overload - def __init__(self, T: TopOpeBRepDS_Transition, ST: TopOpeBRepDS_Kind, S: int, G: int, GIsBound: bool, C: TopOpeBRepDS_Config, P: float) -> None: ... - @overload - def __init__(self, T: TopOpeBRepDS_Transition, S: int, G: int, GIsBound: bool, C: TopOpeBRepDS_Config, P: float) -> None: ... + def __init__( + self, + T: TopOpeBRepDS_Transition, + ST: TopOpeBRepDS_Kind, + S: int, + G: int, + GIsBound: bool, + C: TopOpeBRepDS_Config, + P: float, + ) -> None: ... + @overload + def __init__( + self, + T: TopOpeBRepDS_Transition, + S: int, + G: int, + GIsBound: bool, + C: TopOpeBRepDS_Config, + P: float, + ) -> None: ... @overload def Parameter(self) -> float: ... @overload def Parameter(self, P: float) -> None: ... class TopOpeBRepDS_FaceEdgeInterference(TopOpeBRepDS_ShapeShapeInterference): - def __init__(self, T: TopOpeBRepDS_Transition, S: int, G: int, GIsBound: bool, C: TopOpeBRepDS_Config) -> None: ... + def __init__( + self, + T: TopOpeBRepDS_Transition, + S: int, + G: int, + GIsBound: bool, + C: TopOpeBRepDS_Config, + ) -> None: ... -#classnotwrapped +# classnotwrapped class TopOpeBRepDS_DSS: ... -#classnotwrapped +# classnotwrapped class TopOpeBRepDS_HDataStructure: ... # harray1 classes -class TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference(TopOpeBRepDS_Array1OfDataMapOfIntegerListOfInterference, Standard_Transient): +class TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference( + TopOpeBRepDS_Array1OfDataMapOfIntegerListOfInterference, Standard_Transient +): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TopOpeBRepDS_Array1OfDataMapOfIntegerListOfInterference: ... # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopOpeBRepTool.i b/src/SWIG_files/wrapper/TopOpeBRepTool.i index 59a62fb56..91dc6f354 100644 --- a/src/SWIG_files/wrapper/TopOpeBRepTool.i +++ b/src/SWIG_files/wrapper/TopOpeBRepTool.i @@ -136,6 +136,12 @@ TopOpeBRepTool_INTERPOL = TopOpeBRepTool_OutCurveType.TopOpeBRepTool_INTERPOL %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopOpeBRepTool_ListIteratorOfListOfC2DF(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/TopOpeBRepTool.pyi b/src/SWIG_files/wrapper/TopOpeBRepTool.pyi index 259d36de1..d386e6c53 100644 --- a/src/SWIG_files/wrapper/TopOpeBRepTool.pyi +++ b/src/SWIG_files/wrapper/TopOpeBRepTool.pyi @@ -17,28 +17,40 @@ from OCC.Core.TopExp import * from OCC.Core.BRepAdaptor import * # the following typedef cannot be wrapped as is -TopOpeBRepTool_IndexedDataMapOfShapeBox = NewType("TopOpeBRepTool_IndexedDataMapOfShapeBox", Any) +TopOpeBRepTool_IndexedDataMapOfShapeBox = NewType( + "TopOpeBRepTool_IndexedDataMapOfShapeBox", Any +) # the following typedef cannot be wrapped as is -TopOpeBRepTool_IndexedDataMapOfShapeBox2d = NewType("TopOpeBRepTool_IndexedDataMapOfShapeBox2d", Any) +TopOpeBRepTool_IndexedDataMapOfShapeBox2d = NewType( + "TopOpeBRepTool_IndexedDataMapOfShapeBox2d", Any +) # the following typedef cannot be wrapped as is -TopOpeBRepTool_IndexedDataMapOfShapeconnexity = NewType("TopOpeBRepTool_IndexedDataMapOfShapeconnexity", Any) -TopOpeBRepTool_PShapeClassifier = NewType("TopOpeBRepTool_PShapeClassifier", TopOpeBRepTool_ShapeClassifier) -TopOpeBRepTool_PSoClassif = NewType("TopOpeBRepTool_PSoClassif", BRepClass3d_SolidClassifier) +TopOpeBRepTool_IndexedDataMapOfShapeconnexity = NewType( + "TopOpeBRepTool_IndexedDataMapOfShapeconnexity", Any +) +TopOpeBRepTool_PShapeClassifier = NewType( + "TopOpeBRepTool_PShapeClassifier", TopOpeBRepTool_ShapeClassifier +) +TopOpeBRepTool_PSoClassif = NewType( + "TopOpeBRepTool_PSoClassif", BRepClass3d_SolidClassifier +) TopOpeBRepTool_Plos = NewType("TopOpeBRepTool_Plos", TopTools_ListOfShape) class TopOpeBRepTool_ListOfC2DF: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: TopOpeBRepTool_C2DF) -> TopOpeBRepTool_C2DF: ... + def Assign( + self, theItem: TopOpeBRepTool_ListOfC2DF + ) -> TopOpeBRepTool_ListOfC2DF: ... def Clear(self) -> None: ... def First(self) -> TopOpeBRepTool_C2DF: ... def Last(self) -> TopOpeBRepTool_C2DF: ... - def Append(self, theItem: TopOpeBRepTool_C2DF) -> TopOpeBRepTool_C2DF: ... def Prepend(self, theItem: TopOpeBRepTool_C2DF) -> TopOpeBRepTool_C2DF: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopOpeBRepTool_C2DF: ... - def SetValue(self, theIndex: int, theValue: TopOpeBRepTool_C2DF) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> TopOpeBRepTool_C2DF: ... class TopOpeBRepTool_OutCurveType(IntEnum): TopOpeBRepTool_BSPLINE1: int = ... @@ -53,43 +65,99 @@ class topopebreptool: @staticmethod def CorrectONUVISO(F: TopoDS_Face, Fsp: TopoDS_Face) -> bool: ... @staticmethod - def MakeFaces(F: TopoDS_Face, LOF: TopTools_ListOfShape, MshNOK: TopTools_IndexedMapOfOrientedShape, LOFF: TopTools_ListOfShape) -> bool: ... + def MakeFaces( + F: TopoDS_Face, + LOF: TopTools_ListOfShape, + MshNOK: TopTools_IndexedMapOfOrientedShape, + LOFF: TopTools_ListOfShape, + ) -> bool: ... @staticmethod def Print(OCT: TopOpeBRepTool_OutCurveType) -> Tuple[Standard_OStream, str]: ... @overload @staticmethod - def PurgeClosingEdges(F: TopoDS_Face, FF: TopoDS_Face, MWisOld: TopTools_DataMapOfShapeInteger, MshNOK: TopTools_IndexedMapOfOrientedShape) -> bool: ... - @overload - @staticmethod - def PurgeClosingEdges(F: TopoDS_Face, LOF: TopTools_ListOfShape, MWisOld: TopTools_DataMapOfShapeInteger, MshNOK: TopTools_IndexedMapOfOrientedShape) -> bool: ... - @staticmethod - def Regularize(aFace: TopoDS_Face, aListOfFaces: TopTools_ListOfShape, ESplits: TopTools_DataMapOfShapeListOfShape) -> bool: ... - @staticmethod - def RegularizeFace(aFace: TopoDS_Face, OldWiresnewWires: TopTools_DataMapOfShapeListOfShape, aListOfFaces: TopTools_ListOfShape) -> bool: ... - @staticmethod - def RegularizeShells(aSolid: TopoDS_Solid, OldSheNewShe: TopTools_DataMapOfShapeListOfShape, FSplits: TopTools_DataMapOfShapeListOfShape) -> bool: ... - @staticmethod - def RegularizeWires(aFace: TopoDS_Face, OldWiresNewWires: TopTools_DataMapOfShapeListOfShape, ESplits: TopTools_DataMapOfShapeListOfShape) -> bool: ... + def PurgeClosingEdges( + F: TopoDS_Face, + FF: TopoDS_Face, + MWisOld: TopTools_DataMapOfShapeInteger, + MshNOK: TopTools_IndexedMapOfOrientedShape, + ) -> bool: ... + @overload + @staticmethod + def PurgeClosingEdges( + F: TopoDS_Face, + LOF: TopTools_ListOfShape, + MWisOld: TopTools_DataMapOfShapeInteger, + MshNOK: TopTools_IndexedMapOfOrientedShape, + ) -> bool: ... + @staticmethod + def Regularize( + aFace: TopoDS_Face, + aListOfFaces: TopTools_ListOfShape, + ESplits: TopTools_DataMapOfShapeListOfShape, + ) -> bool: ... + @staticmethod + def RegularizeFace( + aFace: TopoDS_Face, + OldWiresnewWires: TopTools_DataMapOfShapeListOfShape, + aListOfFaces: TopTools_ListOfShape, + ) -> bool: ... + @staticmethod + def RegularizeShells( + aSolid: TopoDS_Solid, + OldSheNewShe: TopTools_DataMapOfShapeListOfShape, + FSplits: TopTools_DataMapOfShapeListOfShape, + ) -> bool: ... + @staticmethod + def RegularizeWires( + aFace: TopoDS_Face, + OldWiresNewWires: TopTools_DataMapOfShapeListOfShape, + ESplits: TopTools_DataMapOfShapeListOfShape, + ) -> bool: ... class TopOpeBRepTool_AncestorsTool: @staticmethod - def MakeAncestors(S: TopoDS_Shape, TS: TopAbs_ShapeEnum, TA: TopAbs_ShapeEnum, M: TopTools_IndexedDataMapOfShapeListOfShape) -> None: ... + def MakeAncestors( + S: TopoDS_Shape, + TS: TopAbs_ShapeEnum, + TA: TopAbs_ShapeEnum, + M: TopTools_IndexedDataMapOfShapeListOfShape, + ) -> None: ... class TopOpeBRepTool_BoxSort: @overload def __init__(self) -> None: ... @overload def __init__(self, T: TopOpeBRepTool_HBoxTool) -> None: ... - def AddBoxes(self, S: TopoDS_Shape, TS: TopAbs_ShapeEnum, TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... - def AddBoxesMakeCOB(self, S: TopoDS_Shape, TS: TopAbs_ShapeEnum, TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def AddBoxes( + self, + S: TopoDS_Shape, + TS: TopAbs_ShapeEnum, + TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... + def AddBoxesMakeCOB( + self, + S: TopoDS_Shape, + TS: TopAbs_ShapeEnum, + TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... def Box(self, S: TopoDS_Shape) -> Bnd_Box: ... def Clear(self) -> None: ... def Compare(self, S: TopoDS_Shape) -> TColStd_ListIteratorOfListOfInteger: ... def HAB(self) -> Bnd_HArray1OfBox: ... def HABShape(self, I: int) -> TopoDS_Shape: ... def HBoxTool(self) -> TopOpeBRepTool_HBoxTool: ... - def MakeCOB(self, S: TopoDS_Shape, TS: TopAbs_ShapeEnum, TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... - def MakeHAB(self, S: TopoDS_Shape, TS: TopAbs_ShapeEnum, TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def MakeCOB( + self, + S: TopoDS_Shape, + TS: TopAbs_ShapeEnum, + TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... + def MakeHAB( + self, + S: TopoDS_Shape, + TS: TopAbs_ShapeEnum, + TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... @staticmethod def MakeHABCOB(HAB: Bnd_HArray1OfBox, COB: Bnd_Box) -> None: ... def SetHBoxTool(self, T: TopOpeBRepTool_HBoxTool) -> None: ... @@ -99,7 +167,9 @@ class TopOpeBRepTool_C2DF: @overload def __init__(self) -> None: ... @overload - def __init__(self, PC: Geom2d_Curve, f2d: float, l2d: float, tol: float, F: TopoDS_Face) -> None: ... + def __init__( + self, PC: Geom2d_Curve, f2d: float, l2d: float, tol: float, F: TopoDS_Face + ) -> None: ... def Face(self) -> TopoDS_Face: ... def IsFace(self, F: TopoDS_Face) -> bool: ... def IsPC(self, PC: Geom2d_Curve) -> bool: ... @@ -110,8 +180,12 @@ class TopOpeBRepTool_C2DF: class TopOpeBRepTool_CLASSI: def __init__(self) -> None: ... def Add2d(self, S: TopoDS_Shape) -> bool: ... - def ClassiBnd2d(self, S1: TopoDS_Shape, S2: TopoDS_Shape, tol: float, checklarge: bool) -> int: ... - def Classilist(self, lS: TopTools_ListOfShape, mapgreasma: TopTools_DataMapOfShapeListOfShape) -> bool: ... + def ClassiBnd2d( + self, S1: TopoDS_Shape, S2: TopoDS_Shape, tol: float, checklarge: bool + ) -> int: ... + def Classilist( + self, lS: TopTools_ListOfShape, mapgreasma: TopTools_DataMapOfShapeListOfShape + ) -> bool: ... def Classip2d(self, S1: TopoDS_Shape, S2: TopoDS_Shape, stabnd2d12: int) -> int: ... def GetBox2d(self, S: TopoDS_Shape, Box2d: Bnd_Box2d) -> bool: ... def Getface(self, S: TopoDS_Shape, fa: TopOpeBRepTool_face) -> bool: ... @@ -125,26 +199,46 @@ class TopOpeBRepTool_CORRISO: def __init__(self, FRef: TopoDS_Face) -> None: ... def AddNewConnexity(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> bool: ... def Connexity(self, V: TopoDS_Vertex, Eds: TopTools_ListOfShape) -> bool: ... - def EdgeOUTofBoundsUV(self, E: TopoDS_Edge, onU: bool, tolx: float) -> Tuple[int, float]: ... + def EdgeOUTofBoundsUV( + self, E: TopoDS_Edge, onU: bool, tolx: float + ) -> Tuple[int, float]: ... @overload def EdgeWithFaultyUV(self, E: TopoDS_Edge) -> Tuple[bool, int]: ... @overload - def EdgeWithFaultyUV(self, EdsToCheck: TopTools_ListOfShape, nfybounds: int, fyE: TopoDS_Shape) -> Tuple[bool, int]: ... - def EdgesOUTofBoundsUV(self, EdsToCheck: TopTools_ListOfShape, onU: bool, tolx: float, FyEds: TopTools_DataMapOfOrientedShapeInteger) -> bool: ... - def EdgesWithFaultyUV(self, EdsToCheck: TopTools_ListOfShape, nfybounds: int, FyEds: TopTools_DataMapOfOrientedShapeInteger, stopatfirst: Optional[bool] = False) -> bool: ... + def EdgeWithFaultyUV( + self, EdsToCheck: TopTools_ListOfShape, nfybounds: int, fyE: TopoDS_Shape + ) -> Tuple[bool, int]: ... + def EdgesOUTofBoundsUV( + self, + EdsToCheck: TopTools_ListOfShape, + onU: bool, + tolx: float, + FyEds: TopTools_DataMapOfOrientedShapeInteger, + ) -> bool: ... + def EdgesWithFaultyUV( + self, + EdsToCheck: TopTools_ListOfShape, + nfybounds: int, + FyEds: TopTools_DataMapOfOrientedShapeInteger, + stopatfirst: Optional[bool] = False, + ) -> bool: ... def Eds(self) -> TopTools_ListOfShape: ... def Fref(self) -> TopoDS_Face: ... def GASref(self) -> GeomAdaptor_Surface: ... def GetnewS(self, newS: TopoDS_Face) -> bool: ... def Init(self, S: TopoDS_Shape) -> bool: ... - def PurgeFyClosingE(self, ClEds: TopTools_ListOfShape, fyClEds: TopTools_ListOfShape) -> bool: ... + def PurgeFyClosingE( + self, ClEds: TopTools_ListOfShape, fyClEds: TopTools_ListOfShape + ) -> bool: ... def Refclosed(self, x: int) -> Tuple[bool, float]: ... def RemoveOldConnexity(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> bool: ... def S(self) -> TopoDS_Shape: ... def SetConnexity(self, V: TopoDS_Vertex, Eds: TopTools_ListOfShape) -> bool: ... def SetUVRep(self, E: TopoDS_Edge, C2DF: TopOpeBRepTool_C2DF) -> bool: ... def Tol(self, I: int, tol3d: float) -> float: ... - def TrslUV(self, onU: bool, FyEds: TopTools_DataMapOfOrientedShapeInteger) -> bool: ... + def TrslUV( + self, onU: bool, FyEds: TopTools_DataMapOfOrientedShapeInteger + ) -> bool: ... def UVClosed(self) -> bool: ... def UVRep(self, E: TopoDS_Edge, C2DF: TopOpeBRepTool_C2DF) -> bool: ... @@ -163,13 +257,32 @@ class TopOpeBRepTool_CurveTool: def MakeBSpline1fromPnt(P: TColgp_Array1OfPnt) -> Geom_Curve: ... @staticmethod def MakeBSpline1fromPnt2d(P: TColgp_Array1OfPnt2d) -> Geom2d_Curve: ... - def MakeCurves(self, min: float, max: float, C3D: Geom_Curve, PC1: Geom2d_Curve, PC2: Geom2d_Curve, S1: TopoDS_Shape, S2: TopoDS_Shape, C3DN: Geom_Curve, PC1N: Geom2d_Curve, PC2N: Geom2d_Curve) -> Tuple[bool, float, float]: ... - @staticmethod - def MakePCurveOnFace(S: TopoDS_Shape, C: Geom_Curve, first: Optional[float] = 0.0, last: Optional[float] = 0.0) -> Tuple[Geom2d_Curve, float]: ... + def MakeCurves( + self, + min: float, + max: float, + C3D: Geom_Curve, + PC1: Geom2d_Curve, + PC2: Geom2d_Curve, + S1: TopoDS_Shape, + S2: TopoDS_Shape, + C3DN: Geom_Curve, + PC1N: Geom2d_Curve, + PC2N: Geom2d_Curve, + ) -> Tuple[bool, float, float]: ... + @staticmethod + def MakePCurveOnFace( + S: TopoDS_Shape, + C: Geom_Curve, + first: Optional[float] = 0.0, + last: Optional[float] = 0.0, + ) -> Tuple[Geom2d_Curve, float]: ... def SetGeomTool(self, GT: TopOpeBRepTool_GeomTool) -> None: ... class TopOpeBRepTool_FuseEdges: - def __init__(self, theShape: TopoDS_Shape, PerformNow: Optional[bool] = False) -> None: ... + def __init__( + self, theShape: TopoDS_Shape, PerformNow: Optional[bool] = False + ) -> None: ... def AvoidEdges(self, theMapEdg: TopTools_IndexedMapOfShape) -> None: ... def Edges(self, theMapLstEdg: TopTools_DataMapOfIntegerListOfShape) -> None: ... def Faces(self, theMapFac: TopTools_DataMapOfShapeShape) -> None: ... @@ -179,12 +292,24 @@ class TopOpeBRepTool_FuseEdges: def Shape(self) -> TopoDS_Shape: ... class TopOpeBRepTool_GeomTool: - def __init__(self, TypeC3D: Optional[TopOpeBRepTool_OutCurveType] = TopOpeBRepTool_BSPLINE1, CompC3D: Optional[bool] = True, CompPC1: Optional[bool] = True, CompPC2: Optional[bool] = True) -> None: ... + def __init__( + self, + TypeC3D: Optional[TopOpeBRepTool_OutCurveType] = TopOpeBRepTool_BSPLINE1, + CompC3D: Optional[bool] = True, + CompPC1: Optional[bool] = True, + CompPC2: Optional[bool] = True, + ) -> None: ... def CompC3D(self) -> bool: ... def CompPC1(self) -> bool: ... def CompPC2(self) -> bool: ... @overload - def Define(self, TypeC3D: TopOpeBRepTool_OutCurveType, CompC3D: bool, CompPC1: bool, CompPC2: bool) -> None: ... + def Define( + self, + TypeC3D: TopOpeBRepTool_OutCurveType, + CompC3D: bool, + CompPC1: bool, + CompPC2: bool, + ) -> None: ... @overload def Define(self, TypeC3D: TopOpeBRepTool_OutCurveType) -> None: ... @overload @@ -201,7 +326,12 @@ class TopOpeBRepTool_GeomTool: class TopOpeBRepTool_HBoxTool(Standard_Transient): def __init__(self) -> None: ... def AddBox(self, S: TopoDS_Shape) -> None: ... - def AddBoxes(self, S: TopoDS_Shape, TS: TopAbs_ShapeEnum, TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def AddBoxes( + self, + S: TopoDS_Shape, + TS: TopAbs_ShapeEnum, + TA: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... @overload def Box(self, S: TopoDS_Shape) -> Bnd_Box: ... @overload @@ -221,7 +351,9 @@ class TopOpeBRepTool_HBoxTool(Standard_Transient): def Shape(self, I: int) -> TopoDS_Shape: ... class TopOpeBRepTool_PurgeInternalEdges: - def __init__(self, theShape: TopoDS_Shape, PerformNow: Optional[bool] = True) -> None: ... + def __init__( + self, theShape: TopoDS_Shape, PerformNow: Optional[bool] = True + ) -> None: ... def Faces(self, theMapFacLstEdg: TopTools_DataMapOfShapeListOfShape) -> None: ... def IsDone(self) -> bool: ... def NbEdges(self) -> int: ... @@ -235,7 +367,9 @@ class TopOpeBRepTool_REGUS: def Init(self, S: TopoDS_Shape) -> None: ... def InitBlock(self) -> bool: ... def MapS(self) -> bool: ... - def NearestF(self, e: TopoDS_Edge, lof: TopTools_ListOfShape, ffound: TopoDS_Face) -> bool: ... + def NearestF( + self, e: TopoDS_Edge, lof: TopTools_ListOfShape, ffound: TopoDS_Face + ) -> bool: ... def NextinBlock(self) -> bool: ... def REGU(self) -> bool: ... def S(self) -> TopoDS_Shape: ... @@ -245,11 +379,15 @@ class TopOpeBRepTool_REGUS: def SplitF(Fanc: TopoDS_Face, FSplits: TopTools_ListOfShape) -> bool: ... def SplitFaces(self) -> bool: ... @staticmethod - def WireToFace(Fanc: TopoDS_Face, nWs: TopTools_ListOfShape, nFs: TopTools_ListOfShape) -> bool: ... + def WireToFace( + Fanc: TopoDS_Face, nWs: TopTools_ListOfShape, nFs: TopTools_ListOfShape + ) -> bool: ... class TopOpeBRepTool_REGUW: def __init__(self, FRef: TopoDS_Face) -> None: ... - def AddNewConnexity(self, v: TopoDS_Vertex, OriKey: int, e: TopoDS_Edge) -> bool: ... + def AddNewConnexity( + self, v: TopoDS_Vertex, OriKey: int, e: TopoDS_Edge + ) -> bool: ... def Connexity(self, v: TopoDS_Vertex, co: TopOpeBRepTool_connexity) -> bool: ... def Fref(self) -> TopoDS_Face: ... def GetEsplits(self, Esplits: TopTools_DataMapOfShapeListOfShape) -> None: ... @@ -262,10 +400,14 @@ class TopOpeBRepTool_REGUW: def NearestE(self, loe: TopTools_ListOfShape, efound: TopoDS_Edge) -> bool: ... def NextinBlock(self) -> bool: ... @overload - def REGU(self, istep: int, Scur: TopoDS_Shape, Splits: TopTools_ListOfShape) -> bool: ... + def REGU( + self, istep: int, Scur: TopoDS_Shape, Splits: TopTools_ListOfShape + ) -> bool: ... @overload def REGU(self) -> bool: ... - def RemoveOldConnexity(self, v: TopoDS_Vertex, OriKey: int, e: TopoDS_Edge) -> bool: ... + def RemoveOldConnexity( + self, v: TopoDS_Vertex, OriKey: int, e: TopoDS_Edge + ) -> bool: ... def S(self) -> TopoDS_Shape: ... def SetEsplits(self, Esplits: TopTools_DataMapOfShapeListOfShape) -> None: ... def SetOwNw(self, OwNw: TopTools_DataMapOfShapeListOfShape) -> None: ... @@ -291,24 +433,44 @@ class TopOpeBRepTool_ShapeClassifier: def StateP2DReference(self, P2D: gp_Pnt2d) -> None: ... def StateP3DReference(self, P3D: gp_Pnt) -> None: ... @overload - def StateShapeReference(self, S: TopoDS_Shape, AvoidS: TopoDS_Shape) -> TopAbs_State: ... + def StateShapeReference( + self, S: TopoDS_Shape, AvoidS: TopoDS_Shape + ) -> TopAbs_State: ... @overload - def StateShapeReference(self, S: TopoDS_Shape, LAvoidS: TopTools_ListOfShape) -> TopAbs_State: ... + def StateShapeReference( + self, S: TopoDS_Shape, LAvoidS: TopTools_ListOfShape + ) -> TopAbs_State: ... @overload - def StateShapeShape(self, S: TopoDS_Shape, SRef: TopoDS_Shape, samedomain: Optional[int] = 0) -> TopAbs_State: ... + def StateShapeShape( + self, S: TopoDS_Shape, SRef: TopoDS_Shape, samedomain: Optional[int] = 0 + ) -> TopAbs_State: ... @overload - def StateShapeShape(self, S: TopoDS_Shape, AvoidS: TopoDS_Shape, SRef: TopoDS_Shape) -> TopAbs_State: ... + def StateShapeShape( + self, S: TopoDS_Shape, AvoidS: TopoDS_Shape, SRef: TopoDS_Shape + ) -> TopAbs_State: ... @overload - def StateShapeShape(self, S: TopoDS_Shape, LAvoidS: TopTools_ListOfShape, SRef: TopoDS_Shape) -> TopAbs_State: ... + def StateShapeShape( + self, S: TopoDS_Shape, LAvoidS: TopTools_ListOfShape, SRef: TopoDS_Shape + ) -> TopAbs_State: ... class TopOpeBRepTool_ShapeExplorer(TopExp_Explorer): @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, ToFind: TopAbs_ShapeEnum, ToAvoid: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + ToFind: TopAbs_ShapeEnum, + ToAvoid: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... def DumpCurrent(self) -> Tuple[Standard_OStream, str]: ... def Index(self) -> int: ... - def Init(self, S: TopoDS_Shape, ToFind: TopAbs_ShapeEnum, ToAvoid: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> None: ... + def Init( + self, + S: TopoDS_Shape, + ToFind: TopAbs_ShapeEnum, + ToAvoid: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE, + ) -> None: ... def Next(self) -> None: ... class TopOpeBRepTool_ShapeTool: @@ -332,10 +494,14 @@ class TopOpeBRepTool_ShapeTool: def CurvesSameOriented(C1: BRepAdaptor_Curve, C2: BRepAdaptor_Curve) -> bool: ... @overload @staticmethod - def EdgeData(BRAC: BRepAdaptor_Curve, P: float, T: gp_Dir, N: gp_Dir) -> Tuple[float, float]: ... + def EdgeData( + BRAC: BRepAdaptor_Curve, P: float, T: gp_Dir, N: gp_Dir + ) -> Tuple[float, float]: ... @overload @staticmethod - def EdgeData(E: TopoDS_Shape, P: float, T: gp_Dir, N: gp_Dir) -> Tuple[float, float]: ... + def EdgeData( + E: TopoDS_Shape, P: float, T: gp_Dir, N: gp_Dir + ) -> Tuple[float, float]: ... @staticmethod def EdgesSameOriented(E1: TopoDS_Shape, E2: TopoDS_Shape) -> bool: ... @staticmethod @@ -357,7 +523,9 @@ class TopOpeBRepTool_ShapeTool: @staticmethod def ShapesSameOriented(S1: TopoDS_Shape, S2: TopoDS_Shape) -> bool: ... @staticmethod - def SurfacesSameOriented(S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface) -> bool: ... + def SurfacesSameOriented( + S1: BRepAdaptor_Surface, S2: BRepAdaptor_Surface + ) -> bool: ... @staticmethod def Tolerance(S: TopoDS_Shape) -> float: ... @overload @@ -386,13 +554,21 @@ class TopOpeBRepTool_TOOL: @staticmethod def CurvE(E: TopoDS_Edge, par: float, tg0: gp_Dir) -> Tuple[bool, float]: ... @staticmethod - def CurvF(F: TopoDS_Face, uv: gp_Pnt2d, tg0: gp_Dir) -> Tuple[bool, float, bool]: ... + def CurvF( + F: TopoDS_Face, uv: gp_Pnt2d, tg0: gp_Dir + ) -> Tuple[bool, float, bool]: ... @staticmethod - def EdgeONFace(par: float, ed: TopoDS_Edge, uv: gp_Pnt2d, fa: TopoDS_Face) -> Tuple[bool, bool]: ... + def EdgeONFace( + par: float, ed: TopoDS_Edge, uv: gp_Pnt2d, fa: TopoDS_Face + ) -> Tuple[bool, bool]: ... @staticmethod - def Getduv(f: TopoDS_Face, uv: gp_Pnt2d, dir: gp_Vec, factor: float, duv: gp_Dir2d) -> bool: ... + def Getduv( + f: TopoDS_Face, uv: gp_Pnt2d, dir: gp_Vec, factor: float, duv: gp_Dir2d + ) -> bool: ... @staticmethod - def Getstp3dF(p: gp_Pnt, f: TopoDS_Face, uv: gp_Pnt2d) -> Tuple[bool, TopAbs_State]: ... + def Getstp3dF( + p: gp_Pnt, f: TopoDS_Face, uv: gp_Pnt2d + ) -> Tuple[bool, TopAbs_State]: ... @overload @staticmethod def IsClosingE(E: TopoDS_Edge, F: TopoDS_Face) -> bool: ... @@ -407,10 +583,14 @@ class TopOpeBRepTool_TOOL: def IsQuad(F: TopoDS_Face) -> bool: ... @overload @staticmethod - def IsonCLO(PC: Geom2d_Curve, onU: bool, xfirst: float, xperiod: float, xtol: float) -> bool: ... + def IsonCLO( + PC: Geom2d_Curve, onU: bool, xfirst: float, xperiod: float, xtol: float + ) -> bool: ... @overload @staticmethod - def IsonCLO(C2DF: TopOpeBRepTool_C2DF, onU: bool, xfirst: float, xperiod: float, xtol: float) -> bool: ... + def IsonCLO( + C2DF: TopOpeBRepTool_C2DF, onU: bool, xfirst: float, xperiod: float, xtol: float + ) -> bool: ... @overload @staticmethod def Matter(d1: gp_Vec, d2: gp_Vec, ref: gp_Vec) -> float: ... @@ -419,16 +599,24 @@ class TopOpeBRepTool_TOOL: def Matter(d1: gp_Vec2d, d2: gp_Vec2d) -> float: ... @overload @staticmethod - def Matter(xx1: gp_Dir, nt1: gp_Dir, xx2: gp_Dir, nt2: gp_Dir, tola: float) -> Tuple[bool, float]: ... + def Matter( + xx1: gp_Dir, nt1: gp_Dir, xx2: gp_Dir, nt2: gp_Dir, tola: float + ) -> Tuple[bool, float]: ... @overload @staticmethod - def Matter(f1: TopoDS_Face, f2: TopoDS_Face, e: TopoDS_Edge, pare: float, tola: float) -> Tuple[bool, float]: ... + def Matter( + f1: TopoDS_Face, f2: TopoDS_Face, e: TopoDS_Edge, pare: float, tola: float + ) -> Tuple[bool, float]: ... @staticmethod - def MatterKPtg(f1: TopoDS_Face, f2: TopoDS_Face, e: TopoDS_Edge) -> Tuple[bool, float]: ... + def MatterKPtg( + f1: TopoDS_Face, f2: TopoDS_Face, e: TopoDS_Edge + ) -> Tuple[bool, float]: ... @staticmethod def MkShell(lF: TopTools_ListOfShape, She: TopoDS_Shape) -> None: ... @staticmethod - def NgApp(par: float, E: TopoDS_Edge, F: TopoDS_Face, tola: float, ngApp: gp_Dir) -> bool: ... + def NgApp( + par: float, E: TopoDS_Edge, F: TopoDS_Face, tola: float, ngApp: gp_Dir + ) -> bool: ... @staticmethod def NggeomF(uv: gp_Pnt2d, F: TopoDS_Face, ng: gp_Vec) -> bool: ... @staticmethod @@ -436,13 +624,17 @@ class TopOpeBRepTool_TOOL: @staticmethod def OnBoundary(par: float, E: TopoDS_Edge) -> int: ... @staticmethod - def OriinSor(sub: TopoDS_Shape, S: TopoDS_Shape, checkclo: Optional[bool] = False) -> int: ... + def OriinSor( + sub: TopoDS_Shape, S: TopoDS_Shape, checkclo: Optional[bool] = False + ) -> int: ... @staticmethod def OriinSorclosed(sub: TopoDS_Shape, S: TopoDS_Shape) -> int: ... @staticmethod def ParE(Iv: int, E: TopoDS_Edge) -> float: ... @staticmethod - def ParE2d(p2d: gp_Pnt2d, e: TopoDS_Edge, f: TopoDS_Face) -> Tuple[bool, float, float]: ... + def ParE2d( + p2d: gp_Pnt2d, e: TopoDS_Edge, f: TopoDS_Face + ) -> Tuple[bool, float, float]: ... @staticmethod def ParISO(p2d: gp_Pnt2d, e: TopoDS_Edge, f: TopoDS_Face) -> Tuple[bool, float]: ... @staticmethod @@ -452,7 +644,9 @@ class TopOpeBRepTool_TOOL: @staticmethod def Tg2d(iv: int, E: TopoDS_Edge, C2DF: TopOpeBRepTool_C2DF) -> gp_Vec2d: ... @staticmethod - def Tg2dApp(iv: int, E: TopoDS_Edge, C2DF: TopOpeBRepTool_C2DF, factor: float) -> gp_Vec2d: ... + def Tg2dApp( + iv: int, E: TopoDS_Edge, C2DF: TopOpeBRepTool_C2DF, factor: float + ) -> gp_Vec2d: ... @staticmethod def TgINSIDE(v: TopoDS_Vertex, E: TopoDS_Edge, Tg: gp_Vec) -> Tuple[bool, int]: ... @overload @@ -473,21 +667,33 @@ class TopOpeBRepTool_TOOL: def UVF(par: float, C2DF: TopOpeBRepTool_C2DF) -> gp_Pnt2d: ... @overload @staticmethod - def UVISO(PC: Geom2d_Curve, d2d: gp_Dir2d, o2d: gp_Pnt2d) -> Tuple[bool, bool, bool]: ... + def UVISO( + PC: Geom2d_Curve, d2d: gp_Dir2d, o2d: gp_Pnt2d + ) -> Tuple[bool, bool, bool]: ... @overload @staticmethod - def UVISO(C2DF: TopOpeBRepTool_C2DF, d2d: gp_Dir2d, o2d: gp_Pnt2d) -> Tuple[bool, bool, bool]: ... + def UVISO( + C2DF: TopOpeBRepTool_C2DF, d2d: gp_Dir2d, o2d: gp_Pnt2d + ) -> Tuple[bool, bool, bool]: ... @overload @staticmethod - def UVISO(E: TopoDS_Edge, F: TopoDS_Face, d2d: gp_Dir2d, o2d: gp_Pnt2d) -> Tuple[bool, bool, bool]: ... + def UVISO( + E: TopoDS_Edge, F: TopoDS_Face, d2d: gp_Dir2d, o2d: gp_Pnt2d + ) -> Tuple[bool, bool, bool]: ... @staticmethod def Vertex(Iv: int, E: TopoDS_Edge) -> TopoDS_Vertex: ... @staticmethod def Vertices(E: TopoDS_Edge, Vces: TopTools_Array1OfShape) -> None: ... @staticmethod - def WireToFace(Fref: TopoDS_Face, mapWlow: TopTools_DataMapOfShapeListOfShape, lFs: TopTools_ListOfShape) -> bool: ... + def WireToFace( + Fref: TopoDS_Face, + mapWlow: TopTools_DataMapOfShapeListOfShape, + lFs: TopTools_ListOfShape, + ) -> bool: ... @staticmethod - def XX(uv: gp_Pnt2d, f: TopoDS_Face, par: float, e: TopoDS_Edge, xx: gp_Dir) -> bool: ... + def XX( + uv: gp_Pnt2d, f: TopoDS_Face, par: float, e: TopoDS_Edge, xx: gp_Dir + ) -> bool: ... @staticmethod def minDUV(F: TopoDS_Face) -> float: ... @staticmethod @@ -495,13 +701,19 @@ class TopOpeBRepTool_TOOL: @staticmethod def stuvF(uv: gp_Pnt2d, F: TopoDS_Face) -> Tuple[int, int]: ... @staticmethod - def tryNgApp(par: float, E: TopoDS_Edge, F: TopoDS_Face, tola: float, ng: gp_Dir) -> bool: ... + def tryNgApp( + par: float, E: TopoDS_Edge, F: TopoDS_Face, tola: float, ng: gp_Dir + ) -> bool: ... @staticmethod def tryOriEinF(par: float, E: TopoDS_Edge, F: TopoDS_Face) -> int: ... @staticmethod - def tryTg2dApp(iv: int, E: TopoDS_Edge, C2DF: TopOpeBRepTool_C2DF, factor: float) -> gp_Vec2d: ... + def tryTg2dApp( + iv: int, E: TopoDS_Edge, C2DF: TopOpeBRepTool_C2DF, factor: float + ) -> gp_Vec2d: ... @staticmethod - def uvApp(f: TopoDS_Face, e: TopoDS_Edge, par: float, eps: float, uvapp: gp_Pnt2d) -> bool: ... + def uvApp( + f: TopoDS_Face, e: TopoDS_Edge, par: float, eps: float, uvapp: gp_Pnt2d + ) -> bool: ... class TopOpeBRepTool_connexity: @overload @@ -538,7 +750,16 @@ class TopOpeBRepTool_makeTransition: def __init__(self) -> None: ... def Getfactor(self) -> float: ... def HasRest(self) -> bool: ... - def Initialize(self, E: TopoDS_Edge, pbef: float, paft: float, parE: float, FS: TopoDS_Face, uv: gp_Pnt2d, factor: float) -> bool: ... + def Initialize( + self, + E: TopoDS_Edge, + pbef: float, + paft: float, + parE: float, + FS: TopoDS_Face, + uv: gp_Pnt2d, + factor: float, + ) -> bool: ... def IsT2d(self) -> bool: ... def MkT2donE(self) -> Tuple[bool, TopAbs_State, TopAbs_State]: ... def MkT3dproj(self) -> Tuple[bool, TopAbs_State, TopAbs_State]: ... @@ -547,13 +768,12 @@ class TopOpeBRepTool_makeTransition: def SetRest(self, ES: TopoDS_Edge, parES: float) -> bool: ... def Setfactor(self, factor: float) -> None: ... -#classnotwrapped +# classnotwrapped class TopOpeBRepTool_STATE: ... -#classnotwrapped +# classnotwrapped class TopOpeBRepTool_mkTondgE: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopTools.i b/src/SWIG_files/wrapper/TopTools.i index b6f02481c..3a76f2ad6 100644 --- a/src/SWIG_files/wrapper/TopTools.i +++ b/src/SWIG_files/wrapper/TopTools.i @@ -158,6 +158,12 @@ Array1ExtendIter(TopoDS_Shape) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopTools_ListIteratorOfListOfListOfShape(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TopTools_ListOfShape) NCollection_List; @@ -166,6 +172,12 @@ Array1ExtendIter(TopoDS_Shape) %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = TopTools_ListIteratorOfListOfShape(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(TopTools_MapOfOrientedShape) NCollection_Map; diff --git a/src/SWIG_files/wrapper/TopTools.pyi b/src/SWIG_files/wrapper/TopTools.pyi index 0a464f401..a6d31d68e 100644 --- a/src/SWIG_files/wrapper/TopTools.pyi +++ b/src/SWIG_files/wrapper/TopTools.pyi @@ -12,24 +12,36 @@ from OCC.Core.TCollection import * # the following typedef cannot be wrapped as is TopTools_Array2OfShape = NewType("TopTools_Array2OfShape", Any) # the following typedef cannot be wrapped as is -TopTools_DataMapIteratorOfDataMapOfShapeBox = NewType("TopTools_DataMapIteratorOfDataMapOfShapeBox", Any) +TopTools_DataMapIteratorOfDataMapOfShapeBox = NewType( + "TopTools_DataMapIteratorOfDataMapOfShapeBox", Any +) # the following typedef cannot be wrapped as is -TopTools_IndexedDataMapOfShapeAddress = NewType("TopTools_IndexedDataMapOfShapeAddress", Any) +TopTools_IndexedDataMapOfShapeAddress = NewType( + "TopTools_IndexedDataMapOfShapeAddress", Any +) # the following typedef cannot be wrapped as is -TopTools_IndexedDataMapOfShapeListOfShape = NewType("TopTools_IndexedDataMapOfShapeListOfShape", Any) +TopTools_IndexedDataMapOfShapeListOfShape = NewType( + "TopTools_IndexedDataMapOfShapeListOfShape", Any +) # the following typedef cannot be wrapped as is TopTools_IndexedDataMapOfShapeReal = NewType("TopTools_IndexedDataMapOfShapeReal", Any) # the following typedef cannot be wrapped as is -TopTools_IndexedDataMapOfShapeShape = NewType("TopTools_IndexedDataMapOfShapeShape", Any) +TopTools_IndexedDataMapOfShapeShape = NewType( + "TopTools_IndexedDataMapOfShapeShape", Any +) # the following typedef cannot be wrapped as is TopTools_IndexedMapOfOrientedShape = NewType("TopTools_IndexedMapOfOrientedShape", Any) # the following typedef cannot be wrapped as is TopTools_IndexedMapOfShape = NewType("TopTools_IndexedMapOfShape", Any) # the following typedef cannot be wrapped as is -TopTools_ListIteratorOfListOfListOfShape = NewType("TopTools_ListIteratorOfListOfListOfShape", Any) +TopTools_ListIteratorOfListOfListOfShape = NewType( + "TopTools_ListIteratorOfListOfListOfShape", Any +) TopTools_LocationSetPtr = NewType("TopTools_LocationSetPtr", TopTools_LocationSet) # the following typedef cannot be wrapped as is -TopTools_MapIteratorOfMapOfOrientedShape = NewType("TopTools_MapIteratorOfMapOfOrientedShape", Any) +TopTools_MapIteratorOfMapOfOrientedShape = NewType( + "TopTools_MapIteratorOfMapOfOrientedShape", Any +) # the following typedef cannot be wrapped as is TopTools_MapIteratorOfMapOfShape = NewType("TopTools_MapIteratorOfMapOfShape", Any) # the following typedef cannot be wrapped as is @@ -62,47 +74,55 @@ class TopTools_Array1OfShape: def SetValue(self, theIndex: int, theValue: TopoDS_Shape) -> None: ... class TopTools_ListOfListOfShape: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: TopTools_ListOfShape) -> TopTools_ListOfShape: ... + def Assign( + self, theItem: TopTools_ListOfListOfShape + ) -> TopTools_ListOfListOfShape: ... def Clear(self) -> None: ... def First(self) -> TopTools_ListOfShape: ... def Last(self) -> TopTools_ListOfShape: ... - def Append(self, theItem: TopTools_ListOfShape) -> TopTools_ListOfShape: ... def Prepend(self, theItem: TopTools_ListOfShape) -> TopTools_ListOfShape: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopTools_ListOfShape: ... - def SetValue(self, theIndex: int, theValue: TopTools_ListOfShape) -> None: ... - -class TopTools_ListOfShape: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> TopTools_ListOfShape: ... + +class TopTools_ListOfShape: + def Append(self, theItem: TopoDS_Shape) -> TopoDS_Shape: ... + def Assign(self, theItem: TopTools_ListOfShape) -> TopTools_ListOfShape: ... def Clear(self) -> None: ... def First(self) -> TopoDS_Shape: ... def Last(self) -> TopoDS_Shape: ... - def Append(self, theItem: TopoDS_Shape) -> TopoDS_Shape: ... def Prepend(self, theItem: TopoDS_Shape) -> TopoDS_Shape: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopoDS_Shape: ... - def SetValue(self, theIndex: int, theValue: TopoDS_Shape) -> None: ... - -class TopTools_SequenceOfShape: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> TopoDS_Shape: ... + +class TopTools_SequenceOfShape: + def Assign(self, theItem: TopoDS_Shape) -> TopoDS_Shape: ... def Clear(self) -> None: ... def First(self) -> TopoDS_Shape: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> TopoDS_Shape: ... def Length(self) -> int: ... - def Append(self, theItem: TopoDS_Shape) -> TopoDS_Shape: ... + def Lower(self) -> int: ... def Prepend(self, theItem: TopoDS_Shape) -> TopoDS_Shape: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> TopoDS_Shape: ... def SetValue(self, theIndex: int, theValue: TopoDS_Shape) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> TopoDS_Shape: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class TopTools_FormatVersion(IntEnum): TopTools_FormatVersion_VERSION_1: int = ... @@ -110,12 +130,17 @@ class TopTools_FormatVersion(IntEnum): TopTools_FormatVersion_VERSION_3: int = ... TopTools_FormatVersion_CURRENT: int = ... -TopTools_FormatVersion_VERSION_1 = TopTools_FormatVersion.TopTools_FormatVersion_VERSION_1 -TopTools_FormatVersion_VERSION_2 = TopTools_FormatVersion.TopTools_FormatVersion_VERSION_2 -TopTools_FormatVersion_VERSION_3 = TopTools_FormatVersion.TopTools_FormatVersion_VERSION_3 +TopTools_FormatVersion_VERSION_1 = ( + TopTools_FormatVersion.TopTools_FormatVersion_VERSION_1 +) +TopTools_FormatVersion_VERSION_2 = ( + TopTools_FormatVersion.TopTools_FormatVersion_VERSION_2 +) +TopTools_FormatVersion_VERSION_3 = ( + TopTools_FormatVersion.TopTools_FormatVersion_VERSION_3 +) TopTools_FormatVersion_CURRENT = TopTools_FormatVersion.TopTools_FormatVersion_CURRENT - class toptools: @staticmethod def Dummy(I: int) -> None: ... @@ -129,13 +154,21 @@ class TopTools_LocationSet: def Dump(self) -> str: ... def Index(self, L: TopLoc_Location) -> int: ... def Location(self, I: int) -> TopLoc_Location: ... - def Read(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def Write(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Read( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def Write( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... class TopTools_MutexForShapeProvider: def __init__(self) -> None: ... def CreateMutexForShape(self, theShape: TopoDS_Shape) -> None: ... - def CreateMutexesForSubShapes(self, theShape: TopoDS_Shape, theType: TopAbs_ShapeEnum) -> None: ... + def CreateMutexesForSubShapes( + self, theShape: TopoDS_Shape, theType: TopAbs_ShapeEnum + ) -> None: ... def GetMutex(self, theShape: TopoDS_Shape) -> Standard_Mutex: ... def RemoveAllMutexes(self) -> None: ... @@ -167,21 +200,33 @@ class TopTools_ShapeSet: def Locations(self) -> TopTools_LocationSet: ... def NbShapes(self) -> int: ... @overload - def Read(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload def Read(self, S: TopoDS_Shape, IS: str) -> None: ... @overload - def ReadGeometry(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def ReadGeometry( + self, + IS: str, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload def ReadGeometry(self, T: TopAbs_ShapeEnum, IS: str, S: TopoDS_Shape) -> None: ... def SetFormatNb(self, theFormatNb: int) -> None: ... def Shape(self, I: int) -> TopoDS_Shape: ... @overload - def Write(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... @overload def Write(self, S: TopoDS_Shape) -> str: ... @overload - def WriteGeometry(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def WriteGeometry( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> str: ... @overload def WriteGeometry(self, S: TopoDS_Shape) -> str: ... @@ -191,7 +236,6 @@ class TopTools_HArray1OfListOfShape(TopTools_Array1OfListOfShape, Standard_Trans def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TopTools_Array1OfListOfShape: ... - class TopTools_HArray1OfShape(TopTools_Array1OfShape, Standard_Transient): def __init__(self, theLower: int, theUpper: int) -> None: ... def Array1(self) -> TopTools_Array1OfShape: ... @@ -200,7 +244,9 @@ class TopTools_HArray1OfShape(TopTools_Array1OfShape, Standard_Transient): class TopTools_HArray2OfShape(TopTools_Array2OfShape, Standard_Transient): @overload - def __init__(self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int) -> None: ... + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... @overload def __init__(self, theOther: TopTools_Array2OfShape) -> None: ... def Array2(self) -> TopTools_Array2OfShape: ... @@ -214,5 +260,3 @@ class TopTools_HSequenceOfShape(TopTools_SequenceOfShape, Standard_Transient): def __init__(self, other: TopTools_SequenceOfShape) -> None: ... def Sequence(self) -> TopTools_SequenceOfShape: ... def Append(self, theSequence: TopTools_SequenceOfShape) -> None: ... - - diff --git a/src/SWIG_files/wrapper/TopTrans.pyi b/src/SWIG_files/wrapper/TopTrans.pyi index 96bdb646e..d17b3f38c 100644 --- a/src/SWIG_files/wrapper/TopTrans.pyi +++ b/src/SWIG_files/wrapper/TopTrans.pyi @@ -11,7 +11,15 @@ TopTrans_Array2OfOrientation = NewType("TopTrans_Array2OfOrientation", Any) class TopTrans_CurveTransition: def __init__(self) -> None: ... - def Compare(self, Tole: float, Tang: gp_Dir, Norm: gp_Dir, Curv: float, S: TopAbs_Orientation, Or: TopAbs_Orientation) -> None: ... + def Compare( + self, + Tole: float, + Tang: gp_Dir, + Norm: gp_Dir, + Curv: float, + S: TopAbs_Orientation, + Or: TopAbs_Orientation, + ) -> None: ... @overload def Reset(self, Tgt: gp_Dir, Norm: gp_Dir, Curv: float) -> None: ... @overload @@ -22,15 +30,35 @@ class TopTrans_CurveTransition: class TopTrans_SurfaceTransition: def __init__(self) -> None: ... @overload - def Compare(self, Tole: float, Norm: gp_Dir, MaxD: gp_Dir, MinD: gp_Dir, MaxCurv: float, MinCurv: float, S: TopAbs_Orientation, O: TopAbs_Orientation) -> None: ... + def Compare( + self, + Tole: float, + Norm: gp_Dir, + MaxD: gp_Dir, + MinD: gp_Dir, + MaxCurv: float, + MinCurv: float, + S: TopAbs_Orientation, + O: TopAbs_Orientation, + ) -> None: ... @overload - def Compare(self, Tole: float, Norm: gp_Dir, S: TopAbs_Orientation, O: TopAbs_Orientation) -> None: ... + def Compare( + self, Tole: float, Norm: gp_Dir, S: TopAbs_Orientation, O: TopAbs_Orientation + ) -> None: ... @staticmethod def GetAfter(Tran: TopAbs_Orientation) -> TopAbs_State: ... @staticmethod def GetBefore(Tran: TopAbs_Orientation) -> TopAbs_State: ... @overload - def Reset(self, Tgt: gp_Dir, Norm: gp_Dir, MaxD: gp_Dir, MinD: gp_Dir, MaxCurv: float, MinCurv: float) -> None: ... + def Reset( + self, + Tgt: gp_Dir, + Norm: gp_Dir, + MaxD: gp_Dir, + MinD: gp_Dir, + MaxCurv: float, + MinCurv: float, + ) -> None: ... @overload def Reset(self, Tgt: gp_Dir, Norm: gp_Dir) -> None: ... def StateAfter(self) -> TopAbs_State: ... @@ -39,4 +67,3 @@ class TopTrans_SurfaceTransition: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/TopoDS.i b/src/SWIG_files/wrapper/TopoDS.i index 67e46a881..cf74e9adb 100644 --- a/src/SWIG_files/wrapper/TopoDS.i +++ b/src/SWIG_files/wrapper/TopoDS.i @@ -1334,10 +1334,9 @@ No available documentation. } %pythoncode { def __ne__(self, right): - try: - return self.__ne_wrapper__(right) - except: + if not isinstance(right, TopoDS_Shape): return True + return self.__ne_wrapper__(right) } %extend{ @@ -1348,10 +1347,9 @@ def __ne__(self, right): } %pythoncode { def __eq__(self, right): - try: - return self.__eq_wrapper__(right) - except: + if not isinstance(right, TopoDS_Shape): return False + return self.__eq_wrapper__(right) } }; diff --git a/src/SWIG_files/wrapper/TopoDS.pyi b/src/SWIG_files/wrapper/TopoDS.pyi index e1dc8a2e2..6f8f9bc10 100644 --- a/src/SWIG_files/wrapper/TopoDS.pyi +++ b/src/SWIG_files/wrapper/TopoDS.pyi @@ -8,10 +8,11 @@ from OCC.Core.TCollection import * from OCC.Core.TopAbs import * from OCC.Core.TopLoc import * - class TopoDS_AlertAttribute(Message_AttributeStream): - def __init__(self, theShape: TopoDS_Shape, theName: Optional[str] = TCollection_AsciiString()) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def __init__( + self, theShape: TopoDS_Shape, theName: Optional[str] = TCollection_AsciiString() + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetShape(self) -> TopoDS_Shape: ... @staticmethod def Send(theMessenger: Message_Messenger, theShape: TopoDS_Shape) -> None: ... @@ -47,8 +48,18 @@ class TopoDS_Iterator: @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, cumOri: Optional[bool] = True, cumLoc: Optional[bool] = True) -> None: ... - def Initialize(self, S: TopoDS_Shape, cumOri: Optional[bool] = True, cumLoc: Optional[bool] = True) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + cumOri: Optional[bool] = True, + cumLoc: Optional[bool] = True, + ) -> None: ... + def Initialize( + self, + S: TopoDS_Shape, + cumOri: Optional[bool] = True, + cumLoc: Optional[bool] = True, + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def Value(self) -> TopoDS_Shape: ... @@ -72,7 +83,7 @@ class TopoDS_Shape: def Convex(self) -> bool: ... @overload def Convex(self, theIsConvex: bool) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EmptyCopied(self) -> TopoDS_Shape: ... def EmptyCopy(self) -> None: ... @overload @@ -88,11 +99,15 @@ class TopoDS_Shape: def IsNull(self) -> bool: ... def IsPartner(self, theOther: TopoDS_Shape) -> bool: ... def IsSame(self, theOther: TopoDS_Shape) -> bool: ... - def Located(self, theLoc: TopLoc_Location, theRaiseExc: Optional[bool] = False) -> TopoDS_Shape: ... + def Located( + self, theLoc: TopLoc_Location, theRaiseExc: Optional[bool] = False + ) -> TopoDS_Shape: ... @overload def Location(self) -> TopLoc_Location: ... @overload - def Location(self, theLoc: TopLoc_Location, theRaiseExc: Optional[bool] = False) -> None: ... + def Location( + self, theLoc: TopLoc_Location, theRaiseExc: Optional[bool] = False + ) -> None: ... @overload def Locked(self) -> bool: ... @overload @@ -101,8 +116,12 @@ class TopoDS_Shape: def Modified(self) -> bool: ... @overload def Modified(self, theIsModified: bool) -> None: ... - def Move(self, thePosition: TopLoc_Location, theRaiseExc: Optional[bool] = False) -> None: ... - def Moved(self, thePosition: TopLoc_Location, theRaiseExc: Optional[bool] = False) -> TopoDS_Shape: ... + def Move( + self, thePosition: TopLoc_Location, theRaiseExc: Optional[bool] = False + ) -> None: ... + def Moved( + self, thePosition: TopLoc_Location, theRaiseExc: Optional[bool] = False + ) -> TopoDS_Shape: ... def NbChildren(self) -> int: ... def Nullify(self) -> None: ... @overload @@ -135,7 +154,7 @@ class TopoDS_TShape(Standard_Transient): def Convex(self) -> bool: ... @overload def Convex(self, theIsConvex: bool) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def EmptyCopy(self) -> TopoDS_TShape: ... @overload def Free(self) -> bool: ... @@ -224,7 +243,6 @@ class TopoDS_Wire(TopoDS_Shape): # harray2 classes # hsequence classes - class topods: @staticmethod def Edge(*args, **kwargs) -> TopoDS_Edge: ... @@ -242,4 +260,3 @@ class topods: def CompSolid(*args, **kwargs) -> TopoDS_CompSolid: ... @staticmethod def Compound(*args, **kwargs) -> TopoDS_Compound: ... - diff --git a/src/SWIG_files/wrapper/TopoDSToStep.pyi b/src/SWIG_files/wrapper/TopoDSToStep.pyi index 14f2e07b4..c660db431 100644 --- a/src/SWIG_files/wrapper/TopoDSToStep.pyi +++ b/src/SWIG_files/wrapper/TopoDSToStep.pyi @@ -13,7 +13,6 @@ from OCC.Core.Message import * from OCC.Core.StepVisual import * from OCC.Core.TColStd import * - class TopoDSToStep_BuilderError(IntEnum): TopoDSToStep_BuilderDone: int = ... TopoDSToStep_NoFaceMapped: int = ... @@ -73,18 +72,24 @@ TopoDSToStep_WireOther = TopoDSToStep_MakeWireError.TopoDSToStep_WireOther class topodstostep: @overload @staticmethod - def AddResult(FP: Transfer_FinderProcess, Shape: TopoDS_Shape, entity: Standard_Transient) -> None: ... + def AddResult( + FP: Transfer_FinderProcess, Shape: TopoDS_Shape, entity: Standard_Transient + ) -> None: ... @overload @staticmethod def AddResult(FP: Transfer_FinderProcess, Tool: TopoDSToStep_Tool) -> None: ... @staticmethod - def DecodeBuilderError(E: TopoDSToStep_BuilderError) -> TCollection_HAsciiString: ... + def DecodeBuilderError( + E: TopoDSToStep_BuilderError, + ) -> TCollection_HAsciiString: ... @staticmethod def DecodeEdgeError(E: TopoDSToStep_MakeEdgeError) -> TCollection_HAsciiString: ... @staticmethod def DecodeFaceError(E: TopoDSToStep_MakeFaceError) -> TCollection_HAsciiString: ... @staticmethod - def DecodeVertexError(E: TopoDSToStep_MakeVertexError) -> TCollection_HAsciiString: ... + def DecodeVertexError( + E: TopoDSToStep_MakeVertexError, + ) -> TCollection_HAsciiString: ... @staticmethod def DecodeWireError(E: TopoDSToStep_MakeWireError) -> TCollection_HAsciiString: ... @@ -101,8 +106,15 @@ class TopoDSToStep_Tool: @overload def __init__(self, theModel: StepData_StepModel) -> None: ... @overload - def __init__(self, M: MoniTool_DataMapOfShapeTransient, FacetedContext: bool, theSurfCurveMode: int) -> None: ... - def Bind(self, S: TopoDS_Shape, T: StepShape_TopologicalRepresentationItem) -> None: ... + def __init__( + self, + M: MoniTool_DataMapOfShapeTransient, + FacetedContext: bool, + theSurfCurveMode: int, + ) -> None: ... + def Bind( + self, S: TopoDS_Shape, T: StepShape_TopologicalRepresentationItem + ) -> None: ... def CurrentEdge(self) -> TopoDS_Edge: ... def CurrentFace(self) -> TopoDS_Face: ... def CurrentShell(self) -> TopoDS_Shell: ... @@ -110,7 +122,12 @@ class TopoDSToStep_Tool: def CurrentWire(self) -> TopoDS_Wire: ... def Faceted(self) -> bool: ... def Find(self, S: TopoDS_Shape) -> StepShape_TopologicalRepresentationItem: ... - def Init(self, M: MoniTool_DataMapOfShapeTransient, FacetedContext: bool, theSurfCurveMode: int) -> None: ... + def Init( + self, + M: MoniTool_DataMapOfShapeTransient, + FacetedContext: bool, + theSurfCurveMode: int, + ) -> None: ... def IsBound(self, S: TopoDS_Shape) -> bool: ... def Lowest3DTolerance(self) -> float: ... def Map(self) -> MoniTool_DataMapOfShapeTransient: ... @@ -127,49 +144,124 @@ class TopoDSToStep_Builder(TopoDSToStep_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theTessellatedGeomParam: int, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theTessellatedGeomParam: int, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def Error(self) -> TopoDSToStep_BuilderError: ... - def Init(self, S: TopoDS_Shape, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theTessellatedGeomParam: int, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Init( + self, + S: TopoDS_Shape, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theTessellatedGeomParam: int, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def TessellatedValue(self) -> StepVisual_TessellatedItem: ... def Value(self) -> StepShape_TopologicalRepresentationItem: ... class TopoDSToStep_MakeBrepWithVoids(TopoDSToStep_Root): - def __init__(self, S: TopoDS_Solid, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Solid, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def TessellatedValue(self) -> StepVisual_TessellatedItem: ... def Value(self) -> StepShape_BrepWithVoids: ... class TopoDSToStep_MakeFacetedBrep(TopoDSToStep_Root): @overload - def __init__(self, S: TopoDS_Shell, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Shell, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def __init__(self, S: TopoDS_Solid, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Solid, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def TessellatedValue(self) -> StepVisual_TessellatedItem: ... def Value(self) -> StepShape_FacetedBrep: ... class TopoDSToStep_MakeFacetedBrepAndBrepWithVoids(TopoDSToStep_Root): - def __init__(self, S: TopoDS_Solid, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Solid, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def TessellatedValue(self) -> StepVisual_TessellatedItem: ... def Value(self) -> StepShape_FacetedBrepAndBrepWithVoids: ... class TopoDSToStep_MakeGeometricCurveSet(TopoDSToStep_Root): - def __init__(self, SH: TopoDS_Shape, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + SH: TopoDS_Shape, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepShape_GeometricCurveSet: ... class TopoDSToStep_MakeManifoldSolidBrep(TopoDSToStep_Root): @overload - def __init__(self, S: TopoDS_Shell, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Shell, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def __init__(self, S: TopoDS_Solid, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Solid, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def TessellatedValue(self) -> StepVisual_TessellatedItem: ... def Value(self) -> StepShape_ManifoldSolidBrep: ... class TopoDSToStep_MakeShellBasedSurfaceModel(TopoDSToStep_Root): @overload - def __init__(self, F: TopoDS_Face, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + F: TopoDS_Face, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def __init__(self, S: TopoDS_Shell, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Shell, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def __init__(self, S: TopoDS_Solid, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + S: TopoDS_Solid, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def TessellatedValue(self) -> StepVisual_TessellatedItem: ... def Value(self) -> StepShape_ShellBasedSurfaceModel: ... @@ -177,64 +269,166 @@ class TopoDSToStep_MakeStepEdge(TopoDSToStep_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, E: TopoDS_Edge, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + E: TopoDS_Edge, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> TopoDSToStep_MakeEdgeError: ... - def Init(self, E: TopoDS_Edge, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + E: TopoDS_Edge, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepShape_TopologicalRepresentationItem: ... class TopoDSToStep_MakeStepFace(TopoDSToStep_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, F: TopoDS_Face, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + F: TopoDS_Face, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> TopoDSToStep_MakeFaceError: ... - def Init(self, F: TopoDS_Face, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + F: TopoDS_Face, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepShape_TopologicalRepresentationItem: ... class TopoDSToStep_MakeStepVertex(TopoDSToStep_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, V: TopoDS_Vertex, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + V: TopoDS_Vertex, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> TopoDSToStep_MakeVertexError: ... - def Init(self, V: TopoDS_Vertex, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + V: TopoDS_Vertex, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepShape_TopologicalRepresentationItem: ... class TopoDSToStep_MakeStepWire(TopoDSToStep_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, W: TopoDS_Wire, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + W: TopoDS_Wire, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> TopoDSToStep_MakeWireError: ... - def Init(self, W: TopoDS_Wire, T: TopoDSToStep_Tool, FP: Transfer_FinderProcess, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def Init( + self, + W: TopoDS_Wire, + T: TopoDSToStep_Tool, + FP: Transfer_FinderProcess, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> StepShape_TopologicalRepresentationItem: ... class TopoDSToStep_MakeTessellatedItem(TopoDSToStep_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, theFace: TopoDS_Face, theTool: TopoDSToStep_Tool, theFP: Transfer_FinderProcess, theToPreferSurfaceSet: bool, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + theFace: TopoDS_Face, + theTool: TopoDSToStep_Tool, + theFP: Transfer_FinderProcess, + theToPreferSurfaceSet: bool, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def __init__(self, theShell: TopoDS_Shell, theTool: TopoDSToStep_Tool, theFP: Transfer_FinderProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + theShell: TopoDS_Shell, + theTool: TopoDSToStep_Tool, + theFP: Transfer_FinderProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def Init(self, theFace: TopoDS_Face, theTool: TopoDSToStep_Tool, theFP: Transfer_FinderProcess, theToPreferSurfaceSet: bool, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Init( + self, + theFace: TopoDS_Face, + theTool: TopoDSToStep_Tool, + theFP: Transfer_FinderProcess, + theToPreferSurfaceSet: bool, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def Init(self, theShell: TopoDS_Shell, theTool: TopoDSToStep_Tool, theFP: Transfer_FinderProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Init( + self, + theShell: TopoDS_Shell, + theTool: TopoDSToStep_Tool, + theFP: Transfer_FinderProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def Value(self) -> StepVisual_TessellatedItem: ... class TopoDSToStep_WireframeBuilder(TopoDSToStep_Root): @overload def __init__(self) -> None: ... @overload - def __init__(self, S: TopoDS_Shape, T: TopoDSToStep_Tool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def __init__( + self, + S: TopoDS_Shape, + T: TopoDSToStep_Tool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Error(self) -> TopoDSToStep_BuilderError: ... - def GetTrimmedCurveFromEdge(self, E: TopoDS_Edge, F: TopoDS_Face, M: MoniTool_DataMapOfShapeTransient, L: TColStd_HSequenceOfTransient, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - def GetTrimmedCurveFromFace(self, F: TopoDS_Face, M: MoniTool_DataMapOfShapeTransient, L: TColStd_HSequenceOfTransient, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - def GetTrimmedCurveFromShape(self, S: TopoDS_Shape, M: MoniTool_DataMapOfShapeTransient, L: TColStd_HSequenceOfTransient, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> bool: ... - def Init(self, S: TopoDS_Shape, T: TopoDSToStep_Tool, theLocalFactors: Optional[StepData_Factors] = StepData_Factors()) -> None: ... + def GetTrimmedCurveFromEdge( + self, + E: TopoDS_Edge, + F: TopoDS_Face, + M: MoniTool_DataMapOfShapeTransient, + L: TColStd_HSequenceOfTransient, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + def GetTrimmedCurveFromFace( + self, + F: TopoDS_Face, + M: MoniTool_DataMapOfShapeTransient, + L: TColStd_HSequenceOfTransient, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + def GetTrimmedCurveFromShape( + self, + S: TopoDS_Shape, + M: MoniTool_DataMapOfShapeTransient, + L: TColStd_HSequenceOfTransient, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> bool: ... + def Init( + self, + S: TopoDS_Shape, + T: TopoDSToStep_Tool, + theLocalFactors: Optional[StepData_Factors] = StepData_Factors(), + ) -> None: ... def Value(self) -> TColStd_HSequenceOfTransient: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Transfer.pyi b/src/SWIG_files/wrapper/Transfer.pyi index 9963bd0f9..a43260560 100644 --- a/src/SWIG_files/wrapper/Transfer.pyi +++ b/src/SWIG_files/wrapper/Transfer.pyi @@ -9,39 +9,55 @@ from OCC.Core.TColStd import * from OCC.Core.DE import * # the following typedef cannot be wrapped as is -Transfer_TransferMapOfProcessForFinder = NewType("Transfer_TransferMapOfProcessForFinder", Any) +Transfer_TransferMapOfProcessForFinder = NewType( + "Transfer_TransferMapOfProcessForFinder", Any +) # the following typedef cannot be wrapped as is -Transfer_TransferMapOfProcessForTransient = NewType("Transfer_TransferMapOfProcessForTransient", Any) +Transfer_TransferMapOfProcessForTransient = NewType( + "Transfer_TransferMapOfProcessForTransient", Any +) class Transfer_SequenceOfBinder: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Transfer_SequenceOfFinder: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Transfer_SequenceOfFinder: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class Transfer_StatusExec(IntEnum): Transfer_StatusInitial: int = ... @@ -84,8 +100,15 @@ class Transfer_ActorOfProcessForFinder(Standard_Transient): def Recognize(self, start: Transfer_Finder) -> bool: ... def SetLast(self, mode: Optional[bool] = True) -> None: ... def SetNext(self, next: Transfer_ActorOfProcessForFinder) -> None: ... - def Transferring(self, start: Transfer_Finder, TP: Transfer_ProcessForFinder, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... - def TransientResult(self, res: Standard_Transient) -> Transfer_SimpleBinderOfTransient: ... + def Transferring( + self, + start: Transfer_Finder, + TP: Transfer_ProcessForFinder, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... + def TransientResult( + self, res: Standard_Transient + ) -> Transfer_SimpleBinderOfTransient: ... class Transfer_ActorOfProcessForTransient(Standard_Transient): def __init__(self) -> None: ... @@ -95,8 +118,15 @@ class Transfer_ActorOfProcessForTransient(Standard_Transient): def Recognize(self, start: Standard_Transient) -> bool: ... def SetLast(self, mode: Optional[bool] = True) -> None: ... def SetNext(self, next: Transfer_ActorOfProcessForTransient) -> None: ... - def Transferring(self, start: Standard_Transient, TP: Transfer_ProcessForTransient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... - def TransientResult(self, res: Standard_Transient) -> Transfer_SimpleBinderOfTransient: ... + def Transferring( + self, + start: Standard_Transient, + TP: Transfer_ProcessForTransient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... + def TransientResult( + self, res: Standard_Transient + ) -> Transfer_SimpleBinderOfTransient: ... class Transfer_Binder(Standard_Transient): def AddFail(self, mess: str, orig: Optional[str] = "") -> None: ... @@ -122,7 +152,9 @@ class Transfer_DataInfo: def TypeName(ent: Standard_Transient) -> str: ... class Transfer_DispatchControl(Interface_CopyControl): - def __init__(self, model: Interface_InterfaceModel, TP: Transfer_TransientProcess) -> None: ... + def __init__( + self, model: Interface_InterfaceModel, TP: Transfer_TransientProcess + ) -> None: ... def Bind(self, ent: Standard_Transient, res: Standard_Transient) -> None: ... def Clear(self) -> None: ... def Search(self, ent: Standard_Transient, res: Standard_Transient) -> bool: ... @@ -137,8 +169,15 @@ class Transfer_Finder(Standard_Transient): def Attribute(self, name: str) -> Standard_Transient: ... def AttributeType(self, name: str) -> Interface_ParamType: ... def Equates(self, other: Transfer_Finder) -> bool: ... - def GetAttribute(self, name: str, type: Standard_Type, val: Standard_Transient) -> bool: ... - def GetAttributes(self, other: Transfer_Finder, fromname: Optional[str] = "", copied: Optional[bool] = True) -> None: ... + def GetAttribute( + self, name: str, type: Standard_Type, val: Standard_Transient + ) -> bool: ... + def GetAttributes( + self, + other: Transfer_Finder, + fromname: Optional[str] = "", + copied: Optional[bool] = True, + ) -> None: ... def GetHashCode(self) -> False: ... def GetIntegerAttribute(self, name: str) -> Tuple[bool, int]: ... def GetRealAttribute(self, name: str) -> Tuple[bool, float]: ... @@ -158,44 +197,68 @@ class Transfer_Finder(Standard_Transient): class Transfer_MapContainer(Standard_Transient): def __init__(self) -> None: ... def GetMapObjects(self) -> TColStd_DataMapOfTransientTransient: ... - def SetMapObjects(self, theMapObjects: TColStd_DataMapOfTransientTransient) -> None: ... + def SetMapObjects( + self, theMapObjects: TColStd_DataMapOfTransientTransient + ) -> None: ... class Transfer_ProcessForTransient(Standard_Transient): @overload def __init__(self, nb: Optional[int] = 10000) -> None: ... @overload - def __init__(self, printer: Message_Messenger, nb: Optional[int] = 10000) -> None: ... + def __init__( + self, printer: Message_Messenger, nb: Optional[int] = 10000 + ) -> None: ... def AbnormalResult(self) -> Transfer_IteratorOfProcessForTransient: ... def Actor(self) -> Transfer_ActorOfProcessForTransient: ... - def AddError(self, start: Standard_Transient, mess: str, orig: Optional[str] = "") -> None: ... + def AddError( + self, start: Standard_Transient, mess: str, orig: Optional[str] = "" + ) -> None: ... @overload - def AddFail(self, start: Standard_Transient, mess: str, orig: Optional[str] = "") -> None: ... + def AddFail( + self, start: Standard_Transient, mess: str, orig: Optional[str] = "" + ) -> None: ... @overload def AddFail(self, start: Standard_Transient, amsg: Message_Msg) -> None: ... - def AddMultiple(self, start: Standard_Transient, res: Standard_Transient) -> None: ... + def AddMultiple( + self, start: Standard_Transient, res: Standard_Transient + ) -> None: ... @overload - def AddWarning(self, start: Standard_Transient, mess: str, orig: Optional[str] = "") -> None: ... + def AddWarning( + self, start: Standard_Transient, mess: str, orig: Optional[str] = "" + ) -> None: ... @overload def AddWarning(self, start: Standard_Transient, amsg: Message_Msg) -> None: ... def Bind(self, start: Standard_Transient, binder: Transfer_Binder) -> None: ... def BindMultiple(self, start: Standard_Transient) -> None: ... - def BindTransient(self, start: Standard_Transient, res: Standard_Transient) -> None: ... + def BindTransient( + self, start: Standard_Transient, res: Standard_Transient + ) -> None: ... def Check(self, start: Standard_Transient) -> Interface_Check: ... def CheckList(self, erronly: bool) -> Interface_CheckIterator: ... - def CheckListOne(self, start: Standard_Transient, level: int, erronly: bool) -> Interface_CheckIterator: ... + def CheckListOne( + self, start: Standard_Transient, level: int, erronly: bool + ) -> Interface_CheckIterator: ... def CheckNum(self, start: Standard_Transient) -> int: ... def Clean(self) -> None: ... def Clear(self) -> None: ... - def CompleteResult(self, withstart: Optional[bool] = False) -> Transfer_IteratorOfProcessForTransient: ... + def CompleteResult( + self, withstart: Optional[bool] = False + ) -> Transfer_IteratorOfProcessForTransient: ... def ErrorHandle(self) -> bool: ... def Find(self, start: Standard_Transient) -> Transfer_Binder: ... def FindElseBind(self, start: Standard_Transient) -> Transfer_Binder: ... def FindTransient(self, start: Standard_Transient) -> Standard_Transient: ... - def FindTypedTransient(self, start: Standard_Transient, atype: Standard_Type, val: Standard_Transient) -> bool: ... - def GetTypedTransient(self, binder: Transfer_Binder, atype: Standard_Type, val: Standard_Transient) -> bool: ... + def FindTypedTransient( + self, start: Standard_Transient, atype: Standard_Type, val: Standard_Transient + ) -> bool: ... + def GetTypedTransient( + self, binder: Transfer_Binder, atype: Standard_Type, val: Standard_Transient + ) -> bool: ... def IsAlreadyUsed(self, start: Standard_Transient) -> bool: ... def IsBound(self, start: Standard_Transient) -> bool: ... - def IsCheckListEmpty(self, start: Standard_Transient, level: int, erronly: bool) -> bool: ... + def IsCheckListEmpty( + self, start: Standard_Transient, level: int, erronly: bool + ) -> bool: ... def IsLooping(self, alevel: int) -> bool: ... def MapIndex(self, start: Standard_Transient) -> int: ... def MapItem(self, num: int) -> Transfer_Binder: ... @@ -208,14 +271,20 @@ class Transfer_ProcessForTransient(Standard_Transient): def PrintTrace(self, start: Standard_Transient) -> str: ... def Rebind(self, start: Standard_Transient, binder: Transfer_Binder) -> None: ... def Recognize(self, start: Standard_Transient) -> bool: ... - def RemoveResult(self, start: Standard_Transient, level: int, compute: Optional[bool] = True) -> None: ... + def RemoveResult( + self, start: Standard_Transient, level: int, compute: Optional[bool] = True + ) -> None: ... def ResetNestingLevel(self) -> None: ... def Resize(self, nb: int) -> None: ... - def ResultOne(self, start: Standard_Transient, level: int, withstart: Optional[bool] = False) -> Transfer_IteratorOfProcessForTransient: ... + def ResultOne( + self, start: Standard_Transient, level: int, withstart: Optional[bool] = False + ) -> Transfer_IteratorOfProcessForTransient: ... def Root(self, num: int) -> Standard_Transient: ... def RootIndex(self, start: Standard_Transient) -> int: ... def RootItem(self, num: int) -> Transfer_Binder: ... - def RootResult(self, withstart: Optional[bool] = False) -> Transfer_IteratorOfProcessForTransient: ... + def RootResult( + self, withstart: Optional[bool] = False + ) -> Transfer_IteratorOfProcessForTransient: ... def SendFail(self, start: Standard_Transient, amsg: Message_Msg) -> None: ... def SendMsg(self, start: Standard_Transient, amsg: Message_Msg) -> None: ... def SendWarning(self, start: Standard_Transient, amsg: Message_Msg) -> None: ... @@ -225,17 +294,31 @@ class Transfer_ProcessForTransient(Standard_Transient): def SetRoot(self, start: Standard_Transient) -> None: ... def SetRootManagement(self, stat: bool) -> None: ... def SetTraceLevel(self, tracelev: int) -> None: ... - def StartTrace(self, binder: Transfer_Binder, start: Standard_Transient, level: int, mode: int) -> None: ... + def StartTrace( + self, binder: Transfer_Binder, start: Standard_Transient, level: int, mode: int + ) -> None: ... def TraceLevel(self) -> int: ... - def Transfer(self, start: Standard_Transient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... - def Transferring(self, start: Standard_Transient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... + def Transfer( + self, + start: Standard_Transient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def Transferring( + self, + start: Standard_Transient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... def Unbind(self, start: Standard_Transient) -> bool: ... class Transfer_ResultFromModel(Standard_Transient): def __init__(self) -> None: ... - def CheckList(self, erronly: bool, level: Optional[int] = 2) -> Interface_CheckIterator: ... + def CheckList( + self, erronly: bool, level: Optional[int] = 2 + ) -> Interface_CheckIterator: ... def CheckStatus(self) -> Interface_CheckStatus: ... - def CheckedList(self, check: Interface_CheckStatus, result: bool) -> TColStd_HSequenceOfTransient: ... + def CheckedList( + self, check: Interface_CheckStatus, result: bool + ) -> TColStd_HSequenceOfTransient: ... def ComputeCheckStatus(self, enforce: bool) -> Interface_CheckStatus: ... def FileName(self) -> str: ... def Fill(self, TP: Transfer_TransientProcess, ent: Standard_Transient) -> bool: ... @@ -245,13 +328,17 @@ class Transfer_ResultFromModel(Standard_Transient): def MainNumber(self) -> int: ... def MainResult(self) -> Transfer_ResultFromTransient: ... def Model(self) -> Interface_InterfaceModel: ... - def ResultFromKey(self, start: Standard_Transient) -> Transfer_ResultFromTransient: ... + def ResultFromKey( + self, start: Standard_Transient + ) -> Transfer_ResultFromTransient: ... def Results(self, level: int) -> TColStd_HSequenceOfTransient: ... def SetFileName(self, filename: str) -> None: ... def SetMainResult(self, amain: Transfer_ResultFromTransient) -> None: ... def SetModel(self, model: Interface_InterfaceModel) -> None: ... def Strip(self, mode: int) -> None: ... - def TransferredList(self, level: Optional[int] = 2) -> TColStd_HSequenceOfTransient: ... + def TransferredList( + self, level: Optional[int] = 2 + ) -> TColStd_HSequenceOfTransient: ... class Transfer_ResultFromTransient(Standard_Transient): def __init__(self) -> None: ... @@ -265,7 +352,9 @@ class Transfer_ResultFromTransient(Standard_Transient): def FillMap(self, map: TColStd_IndexedMapOfTransient) -> None: ... def HasResult(self) -> bool: ... def NbSubResults(self) -> int: ... - def ResultFromKey(self, key: Standard_Transient) -> Transfer_ResultFromTransient: ... + def ResultFromKey( + self, key: Standard_Transient + ) -> Transfer_ResultFromTransient: ... def SetBinder(self, binder: Transfer_Binder) -> None: ... def SetStart(self, start: Standard_Transient) -> None: ... def Start(self) -> Standard_Transient: ... @@ -274,25 +363,51 @@ class Transfer_ResultFromTransient(Standard_Transient): class Transfer_TransferDispatch(Interface_CopyTool): @overload - def __init__(self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib + ) -> None: ... @overload - def __init__(self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol + ) -> None: ... @overload def __init__(self, amodel: Interface_InterfaceModel) -> None: ... - def Copy(self, entfrom: Standard_Transient, entto: Standard_Transient, mapped: bool, errstat: bool) -> bool: ... + def Copy( + self, + entfrom: Standard_Transient, + entto: Standard_Transient, + mapped: bool, + errstat: bool, + ) -> bool: ... def TransientProcess(self) -> Transfer_TransientProcess: ... class Transfer_TransferInput: def __init__(self) -> None: ... def Entities(self, list: Transfer_TransferIterator) -> Interface_EntityIterator: ... @overload - def FillModel(self, proc: Transfer_TransientProcess, amodel: Interface_InterfaceModel) -> None: ... + def FillModel( + self, proc: Transfer_TransientProcess, amodel: Interface_InterfaceModel + ) -> None: ... @overload - def FillModel(self, proc: Transfer_TransientProcess, amodel: Interface_InterfaceModel, proto: Interface_Protocol, roots: Optional[bool] = True) -> None: ... + def FillModel( + self, + proc: Transfer_TransientProcess, + amodel: Interface_InterfaceModel, + proto: Interface_Protocol, + roots: Optional[bool] = True, + ) -> None: ... @overload - def FillModel(self, proc: Transfer_FinderProcess, amodel: Interface_InterfaceModel) -> None: ... + def FillModel( + self, proc: Transfer_FinderProcess, amodel: Interface_InterfaceModel + ) -> None: ... @overload - def FillModel(self, proc: Transfer_FinderProcess, amodel: Interface_InterfaceModel, proto: Interface_Protocol, roots: Optional[bool] = True) -> None: ... + def FillModel( + self, + proc: Transfer_FinderProcess, + amodel: Interface_InterfaceModel, + proto: Interface_Protocol, + roots: Optional[bool] = True, + ) -> None: ... class Transfer_TransferIterator: def __init__(self) -> None: ... @@ -318,19 +433,41 @@ class Transfer_TransferIterator: class Transfer_TransferOutput: @overload - def __init__(self, actor: Transfer_ActorOfTransientProcess, amodel: Interface_InterfaceModel) -> None: ... + def __init__( + self, actor: Transfer_ActorOfTransientProcess, amodel: Interface_InterfaceModel + ) -> None: ... @overload - def __init__(self, proc: Transfer_TransientProcess, amodel: Interface_InterfaceModel) -> None: ... - def ListForStatus(self, normal: bool, roots: Optional[bool] = True) -> Interface_EntityIterator: ... + def __init__( + self, proc: Transfer_TransientProcess, amodel: Interface_InterfaceModel + ) -> None: ... + def ListForStatus( + self, normal: bool, roots: Optional[bool] = True + ) -> Interface_EntityIterator: ... def Model(self) -> Interface_InterfaceModel: ... - def ModelForStatus(self, protocol: Interface_Protocol, normal: bool, roots: Optional[bool] = True) -> Interface_InterfaceModel: ... - def Transfer(self, obj: Standard_Transient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def ModelForStatus( + self, protocol: Interface_Protocol, normal: bool, roots: Optional[bool] = True + ) -> Interface_InterfaceModel: ... + def Transfer( + self, + obj: Standard_Transient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def TransferRoots(self, protocol: Interface_Protocol, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def TransferRoots( + self, + protocol: Interface_Protocol, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def TransferRoots(self, G: Interface_Graph, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def TransferRoots( + self, + G: Interface_Graph, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def TransferRoots(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def TransferRoots( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def TransientProcess(self) -> Transfer_TransientProcess: ... class Transfer_ActorOfFinderProcess(Transfer_ActorOfProcessForFinder): @@ -339,17 +476,47 @@ class Transfer_ActorOfFinderProcess(Transfer_ActorOfProcessForFinder): def GetShapeProcessFlags(self) -> False: ... def GetModeTrans(self) -> int: ... def SetModeTrans(self, value: int) -> None: ... - def Transfer(self, start: Transfer_Finder, TP: Transfer_FinderProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... - def TransferTransient(self, start: Standard_Transient, TP: Transfer_FinderProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Standard_Transient: ... - def Transferring(self, start: Transfer_Finder, TP: Transfer_ProcessForFinder, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... + def Transfer( + self, + start: Transfer_Finder, + TP: Transfer_FinderProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... + def TransferTransient( + self, + start: Standard_Transient, + TP: Transfer_FinderProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Standard_Transient: ... + def Transferring( + self, + start: Transfer_Finder, + TP: Transfer_ProcessForFinder, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... class Transfer_ActorOfTransientProcess(Transfer_ActorOfProcessForTransient): def __init__(self) -> None: ... def GetProcessingFlags(self) -> False: ... def GetShapeFixParameters(self) -> False: ... - def Transfer(self, start: Standard_Transient, TP: Transfer_TransientProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... - def TransferTransient(self, start: Standard_Transient, TP: Transfer_TransientProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Standard_Transient: ... - def Transferring(self, start: Standard_Transient, TP: Transfer_ProcessForTransient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... + def Transfer( + self, + start: Standard_Transient, + TP: Transfer_TransientProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... + def TransferTransient( + self, + start: Standard_Transient, + TP: Transfer_TransientProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Standard_Transient: ... + def Transferring( + self, + start: Standard_Transient, + TP: Transfer_ProcessForTransient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... class Transfer_FinderProcess(Transfer_ProcessForFinder): def __init__(self, nb: Optional[int] = 10000) -> None: ... @@ -366,7 +533,9 @@ class Transfer_IteratorOfProcessForFinder(Transfer_TransferIterator): def Add(self, binder: Transfer_Binder) -> None: ... @overload def Add(self, binder: Transfer_Binder, start: Transfer_Finder) -> None: ... - def Filter(self, list: Transfer_HSequenceOfFinder, keep: Optional[bool] = True) -> None: ... + def Filter( + self, list: Transfer_HSequenceOfFinder, keep: Optional[bool] = True + ) -> None: ... def HasStarting(self) -> bool: ... def Starting(self) -> Transfer_Finder: ... @@ -376,7 +545,9 @@ class Transfer_IteratorOfProcessForTransient(Transfer_TransferIterator): def Add(self, binder: Transfer_Binder) -> None: ... @overload def Add(self, binder: Transfer_Binder, start: Standard_Transient) -> None: ... - def Filter(self, list: TColStd_HSequenceOfTransient, keep: Optional[bool] = True) -> None: ... + def Filter( + self, list: TColStd_HSequenceOfTransient, keep: Optional[bool] = True + ) -> None: ... def HasStarting(self) -> bool: ... def Starting(self) -> Standard_Transient: ... @@ -394,7 +565,9 @@ class Transfer_MultipleBinder(Transfer_Binder): class Transfer_SimpleBinderOfTransient(Transfer_Binder): def __init__(self) -> None: ... @staticmethod - def GetTypedResult(bnd: Transfer_Binder, atype: Standard_Type, res: Standard_Transient) -> bool: ... + def GetTypedResult( + bnd: Transfer_Binder, atype: Standard_Type, res: Standard_Transient + ) -> bool: ... def Result(self) -> Standard_Transient: ... def ResultType(self) -> Standard_Type: ... def ResultTypeName(self) -> str: ... @@ -425,7 +598,9 @@ class Transfer_TransientProcess(Transfer_ProcessForTransient): def __init__(self, nb: Optional[int] = 10000) -> None: ... def CheckNum(self, ent: Standard_Transient) -> int: ... def Context(self) -> False: ... - def GetContext(self, name: str, type: Standard_Type, ctx: Standard_Transient) -> bool: ... + def GetContext( + self, name: str, type: Standard_Type, ctx: Standard_Transient + ) -> bool: ... def Graph(self) -> Interface_Graph: ... def HGraph(self) -> Interface_HGraph: ... def HasGraph(self) -> bool: ... @@ -438,7 +613,9 @@ class Transfer_TransientProcess(Transfer_ProcessForTransient): def SetContext(self, name: str, ctx: Standard_Transient) -> None: ... def SetGraph(self, HG: Interface_HGraph) -> None: ... def SetModel(self, model: Interface_InterfaceModel) -> None: ... - def TypedSharings(self, start: Standard_Transient, type: Standard_Type) -> Interface_EntityIterator: ... + def TypedSharings( + self, start: Standard_Transient, type: Standard_Type + ) -> Interface_EntityIterator: ... class Transfer_VoidBinder(Transfer_Binder): def __init__(self) -> None: ... @@ -447,13 +624,22 @@ class Transfer_VoidBinder(Transfer_Binder): class Transfer_ActorDispatch(Transfer_ActorOfTransientProcess): @overload - def __init__(self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, lib: Interface_GeneralLib + ) -> None: ... @overload - def __init__(self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol) -> None: ... + def __init__( + self, amodel: Interface_InterfaceModel, protocol: Interface_Protocol + ) -> None: ... @overload def __init__(self, amodel: Interface_InterfaceModel) -> None: ... def AddActor(self, actor: Transfer_ActorOfTransientProcess) -> None: ... - def Transfer(self, start: Standard_Transient, TP: Transfer_TransientProcess, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> Transfer_Binder: ... + def Transfer( + self, + start: Standard_Transient, + TP: Transfer_TransientProcess, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> Transfer_Binder: ... def TransferDispatch(self) -> Transfer_TransferDispatch: ... class Transfer_BinderOfTransientInteger(Transfer_SimpleBinderOfTransient): @@ -461,7 +647,7 @@ class Transfer_BinderOfTransientInteger(Transfer_SimpleBinderOfTransient): def Integer(self) -> int: ... def SetInteger(self, value: int) -> None: ... -#classnotwrapped +# classnotwrapped class Transfer_ProcessForFinder: ... # harray1 classes @@ -476,7 +662,6 @@ class Transfer_HSequenceOfBinder(Transfer_SequenceOfBinder, Standard_Transient): def Sequence(self) -> Transfer_SequenceOfBinder: ... def Append(self, theSequence: Transfer_SequenceOfBinder) -> None: ... - class Transfer_HSequenceOfFinder(Transfer_SequenceOfFinder, Standard_Transient): @overload def __init__(self) -> None: ... @@ -484,5 +669,3 @@ class Transfer_HSequenceOfFinder(Transfer_SequenceOfFinder, Standard_Transient): def __init__(self, other: Transfer_SequenceOfFinder) -> None: ... def Sequence(self) -> Transfer_SequenceOfFinder: ... def Append(self, theSequence: Transfer_SequenceOfFinder) -> None: ... - - diff --git a/src/SWIG_files/wrapper/TransferBRep.pyi b/src/SWIG_files/wrapper/TransferBRep.pyi index a11a96ba6..ca5ed265e 100644 --- a/src/SWIG_files/wrapper/TransferBRep.pyi +++ b/src/SWIG_files/wrapper/TransferBRep.pyi @@ -11,63 +11,107 @@ from OCC.Core.Transfer import * from OCC.Core.TopoDS import * from OCC.Core.TopAbs import * - class TransferBRep_SequenceOfTransferResultInfo: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class transferbrep: @staticmethod - def CheckObject(chl: Interface_CheckIterator, obj: Standard_Transient) -> Interface_CheckIterator: ... + def CheckObject( + chl: Interface_CheckIterator, obj: Standard_Transient + ) -> Interface_CheckIterator: ... @staticmethod - def Checked(chl: Interface_CheckIterator, alsoshapes: Optional[bool] = False) -> TColStd_HSequenceOfTransient: ... + def Checked( + chl: Interface_CheckIterator, alsoshapes: Optional[bool] = False + ) -> TColStd_HSequenceOfTransient: ... @staticmethod def CheckedShapes(chl: Interface_CheckIterator) -> TopTools_HSequenceOfShape: ... @staticmethod - def PrintResultInfo(Printer: Message_Printer, Header: Message_Msg, ResultInfo: TransferBRep_TransferResultInfo, printEmpty: Optional[bool] = True) -> None: ... + def PrintResultInfo( + Printer: Message_Printer, + Header: Message_Msg, + ResultInfo: TransferBRep_TransferResultInfo, + printEmpty: Optional[bool] = True, + ) -> None: ... @staticmethod - def ResultCheckList(chl: Interface_CheckIterator, FP: Transfer_FinderProcess, model: Interface_InterfaceModel) -> Interface_CheckIterator: ... + def ResultCheckList( + chl: Interface_CheckIterator, + FP: Transfer_FinderProcess, + model: Interface_InterfaceModel, + ) -> Interface_CheckIterator: ... @staticmethod - def ResultFromShape(FP: Transfer_FinderProcess, shape: TopoDS_Shape) -> Transfer_Binder: ... + def ResultFromShape( + FP: Transfer_FinderProcess, shape: TopoDS_Shape + ) -> Transfer_Binder: ... @staticmethod - def SetShapeResult(TP: Transfer_TransientProcess, ent: Standard_Transient, result: TopoDS_Shape) -> None: ... + def SetShapeResult( + TP: Transfer_TransientProcess, ent: Standard_Transient, result: TopoDS_Shape + ) -> None: ... @staticmethod - def SetTransientFromShape(FP: Transfer_FinderProcess, shape: TopoDS_Shape, result: Standard_Transient) -> None: ... + def SetTransientFromShape( + FP: Transfer_FinderProcess, shape: TopoDS_Shape, result: Standard_Transient + ) -> None: ... @staticmethod - def ShapeMapper(FP: Transfer_FinderProcess, shape: TopoDS_Shape) -> TransferBRep_ShapeMapper: ... + def ShapeMapper( + FP: Transfer_FinderProcess, shape: TopoDS_Shape + ) -> TransferBRep_ShapeMapper: ... @overload @staticmethod def ShapeResult(binder: Transfer_Binder) -> TopoDS_Shape: ... @overload @staticmethod - def ShapeResult(TP: Transfer_TransientProcess, ent: Standard_Transient) -> TopoDS_Shape: ... + def ShapeResult( + TP: Transfer_TransientProcess, ent: Standard_Transient + ) -> TopoDS_Shape: ... @staticmethod - def ShapeState(FP: Transfer_FinderProcess, shape: TopoDS_Shape) -> TopAbs_Orientation: ... + def ShapeState( + FP: Transfer_FinderProcess, shape: TopoDS_Shape + ) -> TopAbs_Orientation: ... @overload @staticmethod - def Shapes(TP: Transfer_TransientProcess, rootsonly: Optional[bool] = True) -> TopTools_HSequenceOfShape: ... + def Shapes( + TP: Transfer_TransientProcess, rootsonly: Optional[bool] = True + ) -> TopTools_HSequenceOfShape: ... @overload @staticmethod - def Shapes(TP: Transfer_TransientProcess, list: TColStd_HSequenceOfTransient) -> TopTools_HSequenceOfShape: ... + def Shapes( + TP: Transfer_TransientProcess, list: TColStd_HSequenceOfTransient + ) -> TopTools_HSequenceOfShape: ... @overload @staticmethod - def TransferResultInfo(TP: Transfer_TransientProcess, EntityTypes: TColStd_HSequenceOfTransient, InfoSeq: TransferBRep_HSequenceOfTransferResultInfo) -> None: ... + def TransferResultInfo( + TP: Transfer_TransientProcess, + EntityTypes: TColStd_HSequenceOfTransient, + InfoSeq: TransferBRep_HSequenceOfTransferResultInfo, + ) -> None: ... @overload @staticmethod - def TransferResultInfo(FP: Transfer_FinderProcess, ShapeTypes: TColStd_HSequenceOfInteger, InfoSeq: TransferBRep_HSequenceOfTransferResultInfo) -> None: ... + def TransferResultInfo( + FP: Transfer_FinderProcess, + ShapeTypes: TColStd_HSequenceOfInteger, + InfoSeq: TransferBRep_HSequenceOfTransferResultInfo, + ) -> None: ... @staticmethod - def TransientFromShape(FP: Transfer_FinderProcess, shape: TopoDS_Shape) -> Standard_Transient: ... + def TransientFromShape( + FP: Transfer_FinderProcess, shape: TopoDS_Shape + ) -> Standard_Transient: ... class TransferBRep_BinderOfShape(Transfer_Binder): @overload @@ -109,9 +153,19 @@ class TransferBRep_Reader: def ShapeResult(self, ent: Standard_Transient) -> TopoDS_Shape: ... def Shapes(self) -> TopTools_HSequenceOfShape: ... def SyntaxError(self) -> bool: ... - def Transfer(self, num: int, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... - def TransferList(self, list: TColStd_HSequenceOfTransient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def TransferRoots(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Transfer( + self, + num: int, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def TransferList( + self, + list: TColStd_HSequenceOfTransient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def TransferRoots( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... def Transient(self, num: Optional[int] = 1) -> Standard_Transient: ... def TransientProcess(self) -> Transfer_TransientProcess: ... def Transients(self) -> TColStd_HSequenceOfTransient: ... @@ -191,12 +245,14 @@ class TransferBRep_ShapeBinder(TransferBRep_BinderOfShape): # harray2 classes # hsequence classes -class TransferBRep_HSequenceOfTransferResultInfo(TransferBRep_SequenceOfTransferResultInfo, Standard_Transient): +class TransferBRep_HSequenceOfTransferResultInfo( + TransferBRep_SequenceOfTransferResultInfo, Standard_Transient +): @overload def __init__(self) -> None: ... @overload def __init__(self, other: TransferBRep_SequenceOfTransferResultInfo) -> None: ... def Sequence(self) -> TransferBRep_SequenceOfTransferResultInfo: ... - def Append(self, theSequence: TransferBRep_SequenceOfTransferResultInfo) -> None: ... - - + def Append( + self, theSequence: TransferBRep_SequenceOfTransferResultInfo + ) -> None: ... diff --git a/src/SWIG_files/wrapper/UTL.pyi b/src/SWIG_files/wrapper/UTL.pyi index e91ad5ae8..ad0d1f787 100644 --- a/src/SWIG_files/wrapper/UTL.pyi +++ b/src/SWIG_files/wrapper/UTL.pyi @@ -8,7 +8,6 @@ from OCC.Core.TCollection import * from OCC.Core.OSD import * from OCC.Core.Resource import * - class utl: @staticmethod def AddToUserInfo(aData: Storage_Data, anInfo: str) -> None: ... @@ -39,7 +38,9 @@ class utl: @staticmethod def Name(aPath: OSD_Path) -> str: ... @staticmethod - def OpenFile(aFile: Storage_BaseDriver, aName: str, aMode: Storage_OpenMode) -> Storage_Error: ... + def OpenFile( + aFile: Storage_BaseDriver, aName: str, aMode: Storage_OpenMode + ) -> Storage_Error: ... @staticmethod def Path(aFileName: str) -> OSD_Path: ... @staticmethod @@ -52,4 +53,3 @@ class utl: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Units.pyi b/src/SWIG_files/wrapper/Units.pyi index 3423c16dd..384df2a32 100644 --- a/src/SWIG_files/wrapper/Units.pyi +++ b/src/SWIG_files/wrapper/Units.pyi @@ -6,51 +6,68 @@ from OCC.Core.NCollection import * from OCC.Core.TCollection import * from OCC.Core.TColStd import * - class Units_QtsSequence: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Units_TksSequence: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Units_TksSequence: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class Units_UtsSequence: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class Units_UtsSequence: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class units: @staticmethod @@ -87,7 +104,18 @@ class units: def UnitsFile(afile: str) -> None: ... class Units_Dimensions(Standard_Transient): - def __init__(self, amass: float, alength: float, atime: float, anelectriccurrent: float, athermodynamictemperature: float, anamountofsubstance: float, aluminousintensity: float, aplaneangle: float, asolidangle: float) -> None: ... + def __init__( + self, + amass: float, + alength: float, + atime: float, + anelectriccurrent: float, + athermodynamictemperature: float, + anamountofsubstance: float, + aluminousintensity: float, + aplaneangle: float, + asolidangle: float, + ) -> None: ... @staticmethod def AAmountOfSubstance() -> Units_Dimensions: ... @staticmethod @@ -135,7 +163,9 @@ class Units_Explorer: @overload def __init__(self, aunitssystem: Units_UnitsSystem, aquantity: str) -> None: ... @overload - def __init__(self, aunitsdictionary: Units_UnitsDictionary, aquantity: str) -> None: ... + def __init__( + self, aunitsdictionary: Units_UnitsDictionary, aquantity: str + ) -> None: ... @overload def Init(self, aunitssystem: Units_UnitsSystem) -> None: ... @overload @@ -186,7 +216,12 @@ class Units_Measurement: def Token(self) -> Units_Token: ... class Units_Quantity(Standard_Transient): - def __init__(self, aname: str, adimensions: Units_Dimensions, aunitssequence: Units_UnitsSequence) -> None: ... + def __init__( + self, + aname: str, + adimensions: Units_Dimensions, + aunitssequence: Units_UnitsSequence, + ) -> None: ... def Dimensions(self) -> Units_Dimensions: ... def Dump(self, ashift: int, alevel: int) -> None: ... def IsEqual(self, astring: str) -> bool: ... @@ -216,7 +251,9 @@ class Units_Token(Standard_Transient): @overload def __init__(self, aword: str, amean: str, avalue: float) -> None: ... @overload - def __init__(self, aword: str, amean: str, avalue: float, adimension: Units_Dimensions) -> None: ... + def __init__( + self, aword: str, amean: str, avalue: float, adimension: Units_Dimensions + ) -> None: ... @overload def Add(self, aninteger: int) -> Units_Token: ... @overload @@ -267,7 +304,9 @@ class Units_Token(Standard_Transient): class Units_Unit(Standard_Transient): @overload - def __init__(self, aname: str, asymbol: str, avalue: float, aquantity: Units_Quantity) -> None: ... + def __init__( + self, aname: str, asymbol: str, avalue: float, aquantity: Units_Quantity + ) -> None: ... @overload def __init__(self, aname: str, asymbol: str) -> None: ... @overload @@ -308,7 +347,9 @@ class Units_UnitsSystem(Standard_Transient): def ActiveUnitsSequence(self) -> TColStd_HSequenceOfInteger: ... def ConvertSIValueToUserSystem(self, aquantity: str, avalue: float) -> float: ... def ConvertUserSystemValueToSI(self, aquantity: str, avalue: float) -> float: ... - def ConvertValueToUserSystem(self, aquantity: str, avalue: float, aunit: str) -> float: ... + def ConvertValueToUserSystem( + self, aquantity: str, avalue: float, aunit: str + ) -> float: ... def Dump(self) -> None: ... def IsEmpty(self) -> bool: ... def QuantitiesSequence(self) -> Units_QuantitiesSequence: ... @@ -319,7 +360,14 @@ class Units_MathSentence(Units_Sentence): def __init__(self, astring: str) -> None: ... class Units_ShiftedToken(Units_Token): - def __init__(self, aword: str, amean: str, avalue: float, amove: float, adimensions: Units_Dimensions) -> None: ... + def __init__( + self, + aword: str, + amean: str, + avalue: float, + amove: float, + adimensions: Units_Dimensions, + ) -> None: ... def Creates(self) -> Units_Token: ... def Divided(self, avalue: float) -> float: ... def Dump(self, ashift: int, alevel: int) -> None: ... @@ -328,7 +376,14 @@ class Units_ShiftedToken(Units_Token): class Units_ShiftedUnit(Units_Unit): @overload - def __init__(self, aname: str, asymbol: str, avalue: float, amove: float, aquantity: Units_Quantity) -> None: ... + def __init__( + self, + aname: str, + asymbol: str, + avalue: float, + amove: float, + aquantity: Units_Quantity, + ) -> None: ... @overload def __init__(self, aname: str, asymbol: str) -> None: ... @overload @@ -344,7 +399,9 @@ class Units_UnitSentence(Units_Sentence): @overload def __init__(self, astring: str) -> None: ... @overload - def __init__(self, astring: str, aquantitiessequence: Units_QuantitiesSequence) -> None: ... + def __init__( + self, astring: str, aquantitiessequence: Units_QuantitiesSequence + ) -> None: ... def Analyse(self) -> None: ... def SetUnits(self, aquantitiessequence: Units_QuantitiesSequence) -> None: ... @@ -365,7 +422,6 @@ class Units_QuantitiesSequence(Units_QtsSequence, Standard_Transient): def Sequence(self) -> Units_QtsSequence: ... def Append(self, theSequence: Units_QtsSequence) -> None: ... - class Units_TokensSequence(Units_TksSequence, Standard_Transient): @overload def __init__(self) -> None: ... @@ -374,7 +430,6 @@ class Units_TokensSequence(Units_TksSequence, Standard_Transient): def Sequence(self) -> Units_TksSequence: ... def Append(self, theSequence: Units_TksSequence) -> None: ... - class Units_UnitsSequence(Units_UtsSequence, Standard_Transient): @overload def __init__(self) -> None: ... @@ -382,5 +437,3 @@ class Units_UnitsSequence(Units_UtsSequence, Standard_Transient): def __init__(self, other: Units_UtsSequence) -> None: ... def Sequence(self) -> Units_UtsSequence: ... def Append(self, theSequence: Units_UtsSequence) -> None: ... - - diff --git a/src/SWIG_files/wrapper/UnitsAPI.pyi b/src/SWIG_files/wrapper/UnitsAPI.pyi index 64c12f9d9..c31f061fa 100644 --- a/src/SWIG_files/wrapper/UnitsAPI.pyi +++ b/src/SWIG_files/wrapper/UnitsAPI.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.Units import * - class UnitsAPI_SystemUnits(IntEnum): UnitsAPI_DEFAULT: int = ... UnitsAPI_SI: int = ... @@ -85,9 +84,10 @@ class unitsapi: @staticmethod def SetCurrentUnit(aQuantity: str, aUnit: str) -> None: ... @staticmethod - def SetLocalSystem(aSystemUnit: Optional[UnitsAPI_SystemUnits] = UnitsAPI_SI) -> None: ... + def SetLocalSystem( + aSystemUnit: Optional[UnitsAPI_SystemUnits] = UnitsAPI_SI, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/UnitsMethods.pyi b/src/SWIG_files/wrapper/UnitsMethods.pyi index 677260b9d..d79fe7851 100644 --- a/src/SWIG_files/wrapper/UnitsMethods.pyi +++ b/src/SWIG_files/wrapper/UnitsMethods.pyi @@ -4,7 +4,6 @@ from typing import overload, NewType, Optional, Tuple from OCC.Core.Standard import * from OCC.Core.NCollection import * - class UnitsMethods_LengthUnit(IntEnum): UnitsMethods_LengthUnit_Undefined: int = ... UnitsMethods_LengthUnit_Inch: int = ... @@ -18,38 +17,71 @@ class UnitsMethods_LengthUnit(IntEnum): UnitsMethods_LengthUnit_Centimeter: int = ... UnitsMethods_LengthUnit_Microinch: int = ... -UnitsMethods_LengthUnit_Undefined = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Undefined +UnitsMethods_LengthUnit_Undefined = ( + UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Undefined +) UnitsMethods_LengthUnit_Inch = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Inch -UnitsMethods_LengthUnit_Millimeter = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Millimeter +UnitsMethods_LengthUnit_Millimeter = ( + UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Millimeter +) UnitsMethods_LengthUnit_Foot = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Foot UnitsMethods_LengthUnit_Mile = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Mile UnitsMethods_LengthUnit_Meter = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Meter -UnitsMethods_LengthUnit_Kilometer = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Kilometer +UnitsMethods_LengthUnit_Kilometer = ( + UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Kilometer +) UnitsMethods_LengthUnit_Mil = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Mil UnitsMethods_LengthUnit_Micron = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Micron -UnitsMethods_LengthUnit_Centimeter = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Centimeter -UnitsMethods_LengthUnit_Microinch = UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Microinch +UnitsMethods_LengthUnit_Centimeter = ( + UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Centimeter +) +UnitsMethods_LengthUnit_Microinch = ( + UnitsMethods_LengthUnit.UnitsMethods_LengthUnit_Microinch +) class unitsmethods: @overload @staticmethod - def DumpLengthUnit(theScaleFactor: float, theBaseUnit: Optional[UnitsMethods_LengthUnit] = UnitsMethods_LengthUnit_Millimeter) -> str: ... + def DumpLengthUnit( + theScaleFactor: float, + theBaseUnit: Optional[ + UnitsMethods_LengthUnit + ] = UnitsMethods_LengthUnit_Millimeter, + ) -> str: ... @overload @staticmethod def DumpLengthUnit(theUnit: UnitsMethods_LengthUnit) -> str: ... @staticmethod - def GetCasCadeLengthUnit(theBaseUnit: Optional[UnitsMethods_LengthUnit] = UnitsMethods_LengthUnit_Millimeter) -> float: ... + def GetCasCadeLengthUnit( + theBaseUnit: Optional[ + UnitsMethods_LengthUnit + ] = UnitsMethods_LengthUnit_Millimeter, + ) -> float: ... @staticmethod def GetLengthFactorValue(theUnit: int) -> float: ... @staticmethod - def GetLengthUnitByFactorValue(theFactorValue: float, theBaseUnit: Optional[UnitsMethods_LengthUnit] = UnitsMethods_LengthUnit_Millimeter) -> UnitsMethods_LengthUnit: ... + def GetLengthUnitByFactorValue( + theFactorValue: float, + theBaseUnit: Optional[ + UnitsMethods_LengthUnit + ] = UnitsMethods_LengthUnit_Millimeter, + ) -> UnitsMethods_LengthUnit: ... @staticmethod - def GetLengthUnitScale(theFromUnit: UnitsMethods_LengthUnit, theToUnit: UnitsMethods_LengthUnit) -> float: ... + def GetLengthUnitScale( + theFromUnit: UnitsMethods_LengthUnit, theToUnit: UnitsMethods_LengthUnit + ) -> float: ... @staticmethod - def LengthUnitFromString(theStr: str, theCaseSensitive: bool) -> UnitsMethods_LengthUnit: ... + def LengthUnitFromString( + theStr: str, theCaseSensitive: bool + ) -> UnitsMethods_LengthUnit: ... @overload @staticmethod - def SetCasCadeLengthUnit(theUnitValue: float, theBaseUnit: Optional[UnitsMethods_LengthUnit] = UnitsMethods_LengthUnit_Millimeter) -> None: ... + def SetCasCadeLengthUnit( + theUnitValue: float, + theBaseUnit: Optional[ + UnitsMethods_LengthUnit + ] = UnitsMethods_LengthUnit_Millimeter, + ) -> None: ... @overload @staticmethod def SetCasCadeLengthUnit(theUnit: int) -> None: ... @@ -57,4 +89,3 @@ class unitsmethods: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/V3d.i b/src/SWIG_files/wrapper/V3d.i index 75f3b2668..4261a1b86 100644 --- a/src/SWIG_files/wrapper/V3d.i +++ b/src/SWIG_files/wrapper/V3d.i @@ -300,6 +300,12 @@ V3d_ZBUFFER = V3d_TypeOfVisualization.V3d_ZBUFFER %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = V3d_ListIteratorOfListOfLight(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(V3d_ListOfView) NCollection_List>; @@ -308,6 +314,12 @@ V3d_ZBUFFER = V3d_TypeOfVisualization.V3d_ZBUFFER %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = V3d_ListIteratorOfListOfView(self.this) + while it.More(): + yield it.Value() + it.Next() } }; /* end templates declaration */ diff --git a/src/SWIG_files/wrapper/V3d.pyi b/src/SWIG_files/wrapper/V3d.pyi index f41f5b1ae..d0849904b 100644 --- a/src/SWIG_files/wrapper/V3d.pyi +++ b/src/SWIG_files/wrapper/V3d.pyi @@ -19,38 +19,40 @@ V3d_Light = NewType("V3d_Light", Graphic3d_CLight) V3d_ListOfLightIterator = NewType("V3d_ListOfLightIterator", Any) # the following typedef cannot be wrapped as is V3d_ListOfViewIterator = NewType("V3d_ListOfViewIterator", Any) -V3d_TypeOfBackfacingModel = NewType("V3d_TypeOfBackfacingModel", Graphic3d_TypeOfBackfacingModel) +V3d_TypeOfBackfacingModel = NewType( + "V3d_TypeOfBackfacingModel", Graphic3d_TypeOfBackfacingModel +) V3d_TypeOfLight = NewType("V3d_TypeOfLight", Graphic3d_TypeOfLightSource) V3d_TypeOfShadingModel = NewType("V3d_TypeOfShadingModel", Graphic3d_TypeOfShadingModel) V3d_ViewerPointer = NewType("V3d_ViewerPointer", V3d_Viewer) class V3d_ListOfLight: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: V3d_ListOfLight) -> V3d_ListOfLight: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class V3d_ListOfView: + def Size(self) -> int: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + def __iter__(self) -> False: ... + +class V3d_ListOfView: + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: V3d_ListOfView) -> V3d_ListOfView: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class V3d_StereoDumpOptions(IntEnum): V3d_SDO_MONO: int = ... @@ -142,20 +144,32 @@ V3d_XposYnegZneg = V3d_TypeOfOrientation.V3d_XposYnegZneg V3d_XnegYposZneg = V3d_TypeOfOrientation.V3d_XnegYposZneg V3d_XnegYnegZpos = V3d_TypeOfOrientation.V3d_XnegYnegZpos V3d_XnegYnegZneg = V3d_TypeOfOrientation.V3d_XnegYnegZneg -V3d_TypeOfOrientation_Zup_AxoLeft = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_AxoLeft -V3d_TypeOfOrientation_Zup_AxoRight = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_AxoRight +V3d_TypeOfOrientation_Zup_AxoLeft = ( + V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_AxoLeft +) +V3d_TypeOfOrientation_Zup_AxoRight = ( + V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_AxoRight +) V3d_TypeOfOrientation_Zup_Front = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_Front V3d_TypeOfOrientation_Zup_Back = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_Back V3d_TypeOfOrientation_Zup_Top = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_Top -V3d_TypeOfOrientation_Zup_Bottom = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_Bottom +V3d_TypeOfOrientation_Zup_Bottom = ( + V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_Bottom +) V3d_TypeOfOrientation_Zup_Left = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_Left V3d_TypeOfOrientation_Zup_Right = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Zup_Right -V3d_TypeOfOrientation_Yup_AxoLeft = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_AxoLeft -V3d_TypeOfOrientation_Yup_AxoRight = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_AxoRight +V3d_TypeOfOrientation_Yup_AxoLeft = ( + V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_AxoLeft +) +V3d_TypeOfOrientation_Yup_AxoRight = ( + V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_AxoRight +) V3d_TypeOfOrientation_Yup_Front = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_Front V3d_TypeOfOrientation_Yup_Back = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_Back V3d_TypeOfOrientation_Yup_Top = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_Top -V3d_TypeOfOrientation_Yup_Bottom = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_Bottom +V3d_TypeOfOrientation_Yup_Bottom = ( + V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_Bottom +) V3d_TypeOfOrientation_Yup_Left = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_Left V3d_TypeOfOrientation_Yup_Right = V3d_TypeOfOrientation.V3d_TypeOfOrientation_Yup_Right @@ -175,9 +189,28 @@ V3d_ZBUFFER = V3d_TypeOfVisualization.V3d_ZBUFFER class v3d: @staticmethod - def ArrowOfRadius(garrow: Graphic3d_Group, X0: float, Y0: float, Z0: float, DX: float, DY: float, DZ: float, Alpha: float, Lng: float) -> None: ... + def ArrowOfRadius( + garrow: Graphic3d_Group, + X0: float, + Y0: float, + Z0: float, + DX: float, + DY: float, + DZ: float, + Alpha: float, + Lng: float, + ) -> None: ... @staticmethod - def CircleInPlane(gcircle: Graphic3d_Group, X0: float, Y0: float, Z0: float, VX: float, VY: float, VZ: float, Radius: float) -> None: ... + def CircleInPlane( + gcircle: Graphic3d_Group, + X0: float, + Y0: float, + Z0: float, + VX: float, + VY: float, + VZ: float, + Radius: float, + ) -> None: ... @staticmethod def GetProjAxis(theOrientation: V3d_TypeOfOrientation) -> gp_Dir: ... @staticmethod @@ -187,27 +220,46 @@ class v3d: def TypeOfOrientationFromString(theTypeString: str) -> V3d_TypeOfOrientation: ... @overload @staticmethod - def TypeOfOrientationFromString(theTypeString: str) -> Tuple[bool, V3d_TypeOfOrientation]: ... + def TypeOfOrientationFromString( + theTypeString: str, + ) -> Tuple[bool, V3d_TypeOfOrientation]: ... @staticmethod def TypeOfOrientationToString(theType: V3d_TypeOfOrientation) -> str: ... class V3d_AmbientLight(Graphic3d_CLight): - def __init__(self, theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE) -> None: ... + def __init__( + self, theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE + ) -> None: ... class V3d_CircularGrid(Aspect_CircularGrid): - def __init__(self, aViewer: V3d_ViewerPointer, aColor: Quantity_Color, aTenthColor: Quantity_Color) -> None: ... + def __init__( + self, + aViewer: V3d_ViewerPointer, + aColor: Quantity_Color, + aTenthColor: Quantity_Color, + ) -> None: ... def Display(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Erase(self) -> None: ... def GraphicValues(self) -> Tuple[float, float]: ... def IsDisplayed(self) -> bool: ... - def SetColors(self, aColor: Quantity_Color, aTenthColor: Quantity_Color) -> None: ... + def SetColors( + self, aColor: Quantity_Color, aTenthColor: Quantity_Color + ) -> None: ... def SetGraphicValues(self, Radius: float, OffSet: float) -> None: ... class V3d_Plane(Standard_Transient): - def __init__(self, theA: Optional[float] = 0.0, theB: Optional[float] = 0.0, theC: Optional[float] = 1.0, theD: Optional[float] = 0.0) -> None: ... + def __init__( + self, + theA: Optional[float] = 0.0, + theB: Optional[float] = 0.0, + theC: Optional[float] = 1.0, + theD: Optional[float] = 0.0, + ) -> None: ... def ClipPlane(self) -> Graphic3d_ClipPlane: ... - def Display(self, theView: V3d_View, theColor: Optional[Quantity_Color] = Quantity_NOC_GRAY) -> None: ... + def Display( + self, theView: V3d_View, theColor: Optional[Quantity_Color] = Quantity_NOC_GRAY + ) -> None: ... def Erase(self) -> None: ... def IsDisplayed(self) -> bool: ... def Plane(self) -> Tuple[float, float, float, float]: ... @@ -217,13 +269,20 @@ class V3d_PositionLight(Graphic3d_CLight): pass class V3d_RectangularGrid(Aspect_RectangularGrid): - def __init__(self, aViewer: V3d_ViewerPointer, aColor: Quantity_Color, aTenthColor: Quantity_Color) -> None: ... + def __init__( + self, + aViewer: V3d_ViewerPointer, + aColor: Quantity_Color, + aTenthColor: Quantity_Color, + ) -> None: ... def Display(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Erase(self) -> None: ... def GraphicValues(self) -> Tuple[float, float, float]: ... def IsDisplayed(self) -> bool: ... - def SetColors(self, aColor: Quantity_Color, aTenthColor: Quantity_Color) -> None: ... + def SetColors( + self, aColor: Quantity_Color, aTenthColor: Quantity_Color + ) -> None: ... def SetGraphicValues(self, XSize: float, YSize: float, OffSet: float) -> None: ... class V3d_Trihedron(Standard_Transient): @@ -234,7 +293,7 @@ class V3d_Trihedron(Standard_Transient): def Display(self, theView: V3d_View) -> None: ... @overload def Display(self, theView: V3d_View) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Erase(self) -> None: ... def IsWireframe(self) -> bool: ... def Label(self, theAxis: V3d_TypeOfAxe) -> str: ... @@ -243,10 +302,20 @@ class V3d_Trihedron(Standard_Transient): def OriginAspect(self) -> Prs3d_ShadingAspect: ... def Scale(self) -> float: ... def SetArrowDiameter(self, theDiam: float) -> None: ... - def SetArrowsColor(self, theXColor: Quantity_Color, theYColor: Quantity_Color, theZColor: Quantity_Color) -> None: ... + def SetArrowsColor( + self, + theXColor: Quantity_Color, + theYColor: Quantity_Color, + theZColor: Quantity_Color, + ) -> None: ... def SetLabels(self, theX: str, theY: str, theZ: str) -> None: ... @overload - def SetLabelsColor(self, theXColor: Quantity_Color, theYColor: Quantity_Color, theZColor: Quantity_Color) -> None: ... + def SetLabelsColor( + self, + theXColor: Quantity_Color, + theYColor: Quantity_Color, + theZColor: Quantity_Color, + ) -> None: ... @overload def SetLabelsColor(self, theColor: Quantity_Color) -> None: ... def SetNbFacets(self, theNbFacets: int) -> None: ... @@ -259,7 +328,11 @@ class V3d_Trihedron(Standard_Transient): class V3d_View(Standard_Transient): @overload - def __init__(self, theViewer: V3d_Viewer, theType: Optional[V3d_TypeOfView] = V3d_ORTHOGRAPHIC) -> None: ... + def __init__( + self, + theViewer: V3d_Viewer, + theType: Optional[V3d_TypeOfView] = V3d_ORTHOGRAPHIC, + ) -> None: ... @overload def __init__(self, theViewer: V3d_Viewer, theView: V3d_View) -> None: ... def ActiveLight(self) -> V3d_Light: ... @@ -277,7 +350,9 @@ class V3d_View(Standard_Transient): def AxialScale(self, Dx: int, Dy: int, Axis: V3d_TypeOfAxe) -> None: ... def BackFacingModel(self) -> Graphic3d_TypeOfBackfacingModel: ... @overload - def BackgroundColor(self, Type: Quantity_TypeOfColor) -> Tuple[float, float, float]: ... + def BackgroundColor( + self, Type: Quantity_TypeOfColor + ) -> Tuple[float, float, float]: ... @overload def BackgroundColor(self) -> Quantity_Color: ... def BackgroundSkydome(self) -> Aspect_SkydomeBackground: ... @@ -301,30 +376,64 @@ class V3d_View(Standard_Transient): @overload def ConvertToGrid(self, Xp: int, Yp: int) -> Tuple[float, float, float]: ... @overload - def ConvertToGrid(self, X: float, Y: float, Z: float) -> Tuple[float, float, float]: ... - def ConvertWithProj(self, Xp: int, Yp: int) -> Tuple[float, float, float, float, float, float]: ... + def ConvertToGrid( + self, X: float, Y: float, Z: float + ) -> Tuple[float, float, float]: ... + def ConvertWithProj( + self, Xp: int, Yp: int + ) -> Tuple[float, float, float, float, float, float]: ... def DefaultCamera(self) -> Graphic3d_Camera: ... def Depth(self) -> float: ... - def DepthFitAll(self, Aspect: Optional[float] = 0.01, Margin: Optional[float] = 0.01) -> None: ... - def DiagnosticInformation(self, theDict: TColStd_IndexedDataMapOfStringString, theFlags: Graphic3d_DiagnosticInfo) -> None: ... + def DepthFitAll( + self, Aspect: Optional[float] = 0.01, Margin: Optional[float] = 0.01 + ) -> None: ... + def DiagnosticInformation( + self, + theDict: TColStd_IndexedDataMapOfStringString, + theFlags: Graphic3d_DiagnosticInfo, + ) -> None: ... def DoMapping(self) -> None: ... - def Dump(self, theFile: str, theBufferType: Optional[Graphic3d_BufferType] = Graphic3d_BT_RGB) -> bool: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def Dump( + self, + theFile: str, + theBufferType: Optional[Graphic3d_BufferType] = Graphic3d_BT_RGB, + ) -> bool: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Eye(self) -> Tuple[float, float, float]: ... @overload - def FitAll(self, theMargin: Optional[float] = 0.01, theToUpdate: Optional[bool] = True) -> None: ... - @overload - def FitAll(self, theBox: Bnd_Box, theMargin: Optional[float] = 0.01, theToUpdate: Optional[bool] = True) -> None: ... - @overload - def FitAll(self, theMinXv: float, theMinYv: float, theMaxXv: float, theMaxYv: float) -> None: ... - def FitMinMax(self, theCamera: Graphic3d_Camera, theBox: Bnd_Box, theMargin: float, theResolution: Optional[float] = 0.0, theToEnlargeIfLine: Optional[bool] = True) -> bool: ... + def FitAll( + self, theMargin: Optional[float] = 0.01, theToUpdate: Optional[bool] = True + ) -> None: ... + @overload + def FitAll( + self, + theBox: Bnd_Box, + theMargin: Optional[float] = 0.01, + theToUpdate: Optional[bool] = True, + ) -> None: ... + @overload + def FitAll( + self, theMinXv: float, theMinYv: float, theMaxXv: float, theMaxYv: float + ) -> None: ... + def FitMinMax( + self, + theCamera: Graphic3d_Camera, + theBox: Bnd_Box, + theMargin: float, + theResolution: Optional[float] = 0.0, + theToEnlargeIfLine: Optional[bool] = True, + ) -> bool: ... def FocalReferencePoint(self) -> Tuple[float, float, float]: ... def Focale(self) -> float: ... def GeneratePBREnvironment(self, theToUpdate: Optional[bool] = False) -> None: ... def GetGraduatedTrihedron(self) -> Graphic3d_GraduatedTrihedron: ... def GradientBackground(self) -> Aspect_GradientBackground: ... - def GradientBackgroundColors(self, theColor1: Quantity_Color, theColor2: Quantity_Color) -> None: ... - def GraduatedTrihedronDisplay(self, theTrihedronData: Graphic3d_GraduatedTrihedron) -> None: ... + def GradientBackgroundColors( + self, theColor1: Quantity_Color, theColor2: Quantity_Color + ) -> None: ... + def GraduatedTrihedronDisplay( + self, theTrihedronData: Graphic3d_GraduatedTrihedron + ) -> None: ... def GraduatedTrihedronErase(self) -> None: ... def GravityPoint(self) -> gp_Pnt: ... def IfMoreLights(self) -> bool: ... @@ -342,25 +451,47 @@ class V3d_View(Standard_Transient): def LightLimit(self) -> int: ... def MoreActiveLights(self) -> bool: ... @overload - def Move(self, Dx: float, Dy: float, Dz: float, Start: Optional[bool] = True) -> None: ... + def Move( + self, Dx: float, Dy: float, Dz: float, Start: Optional[bool] = True + ) -> None: ... @overload - def Move(self, Axe: V3d_TypeOfAxe, Length: float, Start: Optional[bool] = True) -> None: ... + def Move( + self, Axe: V3d_TypeOfAxe, Length: float, Start: Optional[bool] = True + ) -> None: ... @overload def Move(self, Length: float, Start: Optional[bool] = True) -> None: ... def MustBeResized(self) -> None: ... def NextActiveLights(self) -> None: ... - def Pan(self, theDXp: int, theDYp: int, theZoomFactor: Optional[float] = 1, theToStart: Optional[bool] = True) -> None: ... - def Panning(self, theDXv: float, theDYv: float, theZoomFactor: Optional[float] = 1, theToStart: Optional[bool] = True) -> None: ... + def Pan( + self, + theDXp: int, + theDYp: int, + theZoomFactor: Optional[float] = 1, + theToStart: Optional[bool] = True, + ) -> None: ... + def Panning( + self, + theDXv: float, + theDYv: float, + theZoomFactor: Optional[float] = 1, + theToStart: Optional[bool] = True, + ) -> None: ... def ParentView(self) -> V3d_View: ... def PickSubview(self, thePnt: Graphic3d_Vec2i) -> V3d_View: ... - def Place(self, theXp: int, theYp: int, theZoomFactor: Optional[float] = 1) -> None: ... + def Place( + self, theXp: int, theYp: int, theZoomFactor: Optional[float] = 1 + ) -> None: ... def PlaneLimit(self) -> int: ... def Proj(self) -> Tuple[float, float, float]: ... - def ProjReferenceAxe(self, Xpix: int, Ypix: int) -> Tuple[float, float, float, float, float, float]: ... + def ProjReferenceAxe( + self, Xpix: int, Ypix: int + ) -> Tuple[float, float, float, float, float, float]: ... @overload def Project(self, theX: float, theY: float, theZ: float) -> Tuple[float, float]: ... @overload - def Project(self, theX: float, theY: float, theZ: float) -> Tuple[float, float, float]: ... + def Project( + self, theX: float, theY: float, theZ: float + ) -> Tuple[float, float, float]: ... def Redraw(self) -> None: ... def RedrawImmediate(self) -> None: ... def Remove(self) -> None: ... @@ -371,35 +502,102 @@ class V3d_View(Standard_Transient): def ResetViewMapping(self) -> None: ... def ResetViewOrientation(self) -> None: ... @overload - def Rotate(self, Ax: float, Ay: float, Az: float, Start: Optional[bool] = True) -> None: ... - @overload - def Rotate(self, Ax: float, Ay: float, Az: float, X: float, Y: float, Z: float, Start: Optional[bool] = True) -> None: ... - @overload - def Rotate(self, Axe: V3d_TypeOfAxe, Angle: float, X: float, Y: float, Z: float, Start: Optional[bool] = True) -> None: ... - @overload - def Rotate(self, Axe: V3d_TypeOfAxe, Angle: float, Start: Optional[bool] = True) -> None: ... + def Rotate( + self, Ax: float, Ay: float, Az: float, Start: Optional[bool] = True + ) -> None: ... + @overload + def Rotate( + self, + Ax: float, + Ay: float, + Az: float, + X: float, + Y: float, + Z: float, + Start: Optional[bool] = True, + ) -> None: ... + @overload + def Rotate( + self, + Axe: V3d_TypeOfAxe, + Angle: float, + X: float, + Y: float, + Z: float, + Start: Optional[bool] = True, + ) -> None: ... + @overload + def Rotate( + self, Axe: V3d_TypeOfAxe, Angle: float, Start: Optional[bool] = True + ) -> None: ... @overload def Rotate(self, Angle: float, Start: Optional[bool] = True) -> None: ... def Rotation(self, X: int, Y: int) -> None: ... def Scale(self) -> float: ... def SetAt(self, X: float, Y: float, Z: float) -> None: ... - def SetAutoZFitMode(self, theIsOn: bool, theScaleFactor: Optional[float] = 1.0) -> None: ... + def SetAutoZFitMode( + self, theIsOn: bool, theScaleFactor: Optional[float] = 1.0 + ) -> None: ... def SetAxialScale(self, Sx: float, Sy: float, Sz: float) -> None: ... - def SetAxis(self, X: float, Y: float, Z: float, Vx: float, Vy: float, Vz: float) -> None: ... - def SetBackFacingModel(self, theModel: Optional[Graphic3d_TypeOfBackfacingModel] = Graphic3d_TypeOfBackfacingModel_Auto) -> None: ... - @overload - def SetBackgroundColor(self, theType: Quantity_TypeOfColor, theV1: float, theV2: float, theV3: float) -> None: ... + def SetAxis( + self, X: float, Y: float, Z: float, Vx: float, Vy: float, Vz: float + ) -> None: ... + def SetBackFacingModel( + self, + theModel: Optional[ + Graphic3d_TypeOfBackfacingModel + ] = Graphic3d_TypeOfBackfacingModel_Auto, + ) -> None: ... + @overload + def SetBackgroundColor( + self, theType: Quantity_TypeOfColor, theV1: float, theV2: float, theV3: float + ) -> None: ... @overload def SetBackgroundColor(self, theColor: Quantity_Color) -> None: ... - def SetBackgroundCubeMap(self, theCubeMap: Graphic3d_CubeMap, theToUpdatePBREnv: Optional[bool] = True, theToUpdate: Optional[bool] = False) -> None: ... - @overload - def SetBackgroundImage(self, theFileName: str, theFillStyle: Optional[Aspect_FillMethod] = Aspect_FM_CENTERED, theToUpdate: Optional[bool] = False) -> None: ... - @overload - def SetBackgroundImage(self, theTexture: Graphic3d_Texture2D, theFillStyle: Optional[Aspect_FillMethod] = Aspect_FM_CENTERED, theToUpdate: Optional[bool] = False) -> None: ... - def SetBackgroundSkydome(self, theAspect: Aspect_SkydomeBackground, theToUpdatePBREnv: Optional[bool] = True) -> None: ... - def SetBgGradientColors(self, theColor1: Quantity_Color, theColor2: Quantity_Color, theFillStyle: Optional[Aspect_GradientFillMethod] = Aspect_GradientFillMethod_Horizontal, theToUpdate: Optional[bool] = False) -> None: ... - def SetBgGradientStyle(self, theMethod: Optional[Aspect_GradientFillMethod] = Aspect_GradientFillMethod_Horizontal, theToUpdate: Optional[bool] = False) -> None: ... - def SetBgImageStyle(self, theFillStyle: Aspect_FillMethod, theToUpdate: Optional[bool] = False) -> None: ... + def SetBackgroundCubeMap( + self, + theCubeMap: Graphic3d_CubeMap, + theToUpdatePBREnv: Optional[bool] = True, + theToUpdate: Optional[bool] = False, + ) -> None: ... + @overload + def SetBackgroundImage( + self, + theFileName: str, + theFillStyle: Optional[Aspect_FillMethod] = Aspect_FM_CENTERED, + theToUpdate: Optional[bool] = False, + ) -> None: ... + @overload + def SetBackgroundImage( + self, + theTexture: Graphic3d_Texture2D, + theFillStyle: Optional[Aspect_FillMethod] = Aspect_FM_CENTERED, + theToUpdate: Optional[bool] = False, + ) -> None: ... + def SetBackgroundSkydome( + self, + theAspect: Aspect_SkydomeBackground, + theToUpdatePBREnv: Optional[bool] = True, + ) -> None: ... + def SetBgGradientColors( + self, + theColor1: Quantity_Color, + theColor2: Quantity_Color, + theFillStyle: Optional[ + Aspect_GradientFillMethod + ] = Aspect_GradientFillMethod_Horizontal, + theToUpdate: Optional[bool] = False, + ) -> None: ... + def SetBgGradientStyle( + self, + theMethod: Optional[ + Aspect_GradientFillMethod + ] = Aspect_GradientFillMethod_Horizontal, + theToUpdate: Optional[bool] = False, + ) -> None: ... + def SetBgImageStyle( + self, theFillStyle: Aspect_FillMethod, theToUpdate: Optional[bool] = False + ) -> None: ... def SetCamera(self, theCamera: Graphic3d_Camera) -> None: ... def SetCenter(self, theXp: int, theYp: int) -> None: ... def SetClipPlanes(self, thePlanes: Graphic3d_SequenceOfHClipPlane) -> None: ... @@ -411,7 +609,9 @@ class V3d_View(Standard_Transient): def SetFrustumCulling(self, theMode: bool) -> None: ... def SetGrid(self, aPlane: gp_Ax3, aGrid: Aspect_Grid) -> None: ... def SetGridActivity(self, aFlag: bool) -> None: ... - def SetImageBasedLighting(self, theToEnableIBL: bool, theToUpdate: Optional[bool] = False) -> None: ... + def SetImageBasedLighting( + self, theToEnableIBL: bool, theToUpdate: Optional[bool] = False + ) -> None: ... def SetImmediateUpdate(self, theImmediateUpdate: bool) -> bool: ... @overload def SetLightOff(self, theLight: V3d_Light) -> None: ... @@ -421,13 +621,25 @@ class V3d_View(Standard_Transient): def SetLightOn(self, theLight: V3d_Light) -> None: ... @overload def SetLightOn(self) -> None: ... - def SetMagnify(self, theWindow: Aspect_Window, thePreviousView: V3d_View, theX1: int, theY1: int, theX2: int, theY2: int) -> None: ... + def SetMagnify( + self, + theWindow: Aspect_Window, + thePreviousView: V3d_View, + theX1: int, + theY1: int, + theX2: int, + theY2: int, + ) -> None: ... @overload def SetProj(self, Vx: float, Vy: float, Vz: float) -> None: ... @overload - def SetProj(self, theOrientation: V3d_TypeOfOrientation, theIsYup: Optional[bool] = False) -> None: ... + def SetProj( + self, theOrientation: V3d_TypeOfOrientation, theIsYup: Optional[bool] = False + ) -> None: ... def SetScale(self, Coef: float) -> None: ... - def SetShadingModel(self, theShadingModel: Graphic3d_TypeOfShadingModel) -> None: ... + def SetShadingModel( + self, theShadingModel: Graphic3d_TypeOfShadingModel + ) -> None: ... def SetSize(self, theSize: float) -> None: ... def SetTextureEnv(self, theTexture: Graphic3d_TextureEnv) -> None: ... def SetTwist(self, Angle: float) -> None: ... @@ -439,38 +651,80 @@ class V3d_View(Standard_Transient): def SetViewOrientationDefault(self) -> None: ... def SetVisualization(self, theType: V3d_TypeOfVisualization) -> None: ... @overload - def SetWindow(self, theWindow: Aspect_Window, theContext: Optional[Aspect_RenderingContext] = None) -> None: ... - @overload - def SetWindow(self, theParentView: V3d_View, theSize: Graphic3d_Vec2d, theCorner: Optional[Aspect_TypeOfTriedronPosition] = Aspect_TOTP_LEFT_UPPER, theOffset: Optional[Graphic3d_Vec2d] = Graphic3d_Vec2d(), theMargins: Optional[Graphic3d_Vec2i] = Graphic3d_Vec2i()) -> None: ... + def SetWindow( + self, + theWindow: Aspect_Window, + theContext: Optional[Aspect_RenderingContext] = None, + ) -> None: ... + @overload + def SetWindow( + self, + theParentView: V3d_View, + theSize: Graphic3d_Vec2d, + theCorner: Optional[Aspect_TypeOfTriedronPosition] = Aspect_TOTP_LEFT_UPPER, + theOffset: Optional[Graphic3d_Vec2d] = Graphic3d_Vec2d(), + theMargins: Optional[Graphic3d_Vec2i] = Graphic3d_Vec2i(), + ) -> None: ... def SetZSize(self, SetZSize: float) -> None: ... def SetZoom(self, Coef: float, Start: Optional[bool] = True) -> None: ... def ShadingModel(self) -> Graphic3d_TypeOfShadingModel: ... def Size(self) -> Tuple[float, float]: ... - def StartRotation(self, X: int, Y: int, zRotationThreshold: Optional[float] = 0.0) -> None: ... + def StartRotation( + self, X: int, Y: int, zRotationThreshold: Optional[float] = 0.0 + ) -> None: ... def StartZoomAtPoint(self, theXp: int, theYp: int) -> None: ... @overload def StatisticInformation(self) -> str: ... @overload - def StatisticInformation(self, theDict: TColStd_IndexedDataMapOfStringString) -> None: ... + def StatisticInformation( + self, theDict: TColStd_IndexedDataMapOfStringString + ) -> None: ... def Subviews(self) -> False: ... def TextureEnv(self) -> Graphic3d_TextureEnv: ... @overload - def ToPixMap(self, theImage: Image_PixMap, theParams: V3d_ImageDumpOptions) -> bool: ... - @overload - def ToPixMap(self, theImage: Image_PixMap, theWidth: int, theHeight: int, theBufferType: Optional[Graphic3d_BufferType] = Graphic3d_BT_RGB, theToAdjustAspect: Optional[bool] = True, theTargetZLayerId: Optional[int] = Graphic3d_ZLayerId_BotOSD, theIsSingleLayer: Optional[int] = False, theStereoOptions: Optional[V3d_StereoDumpOptions] = V3d_SDO_MONO, theLightName: Optional[str] = "") -> bool: ... - @overload - def Translate(self, Dx: float, Dy: float, Dz: float, Start: Optional[bool] = True) -> None: ... - @overload - def Translate(self, Axe: V3d_TypeOfAxe, Length: float, Start: Optional[bool] = True) -> None: ... + def ToPixMap( + self, theImage: Image_PixMap, theParams: V3d_ImageDumpOptions + ) -> bool: ... + @overload + def ToPixMap( + self, + theImage: Image_PixMap, + theWidth: int, + theHeight: int, + theBufferType: Optional[Graphic3d_BufferType] = Graphic3d_BT_RGB, + theToAdjustAspect: Optional[bool] = True, + theTargetZLayerId: Optional[int] = Graphic3d_ZLayerId_BotOSD, + theIsSingleLayer: Optional[int] = False, + theStereoOptions: Optional[V3d_StereoDumpOptions] = V3d_SDO_MONO, + theLightName: Optional[str] = "", + ) -> bool: ... + @overload + def Translate( + self, Dx: float, Dy: float, Dz: float, Start: Optional[bool] = True + ) -> None: ... + @overload + def Translate( + self, Axe: V3d_TypeOfAxe, Length: float, Start: Optional[bool] = True + ) -> None: ... @overload def Translate(self, Length: float, Start: Optional[bool] = True) -> None: ... - def TriedronDisplay(self, thePosition: Optional[Aspect_TypeOfTriedronPosition] = Aspect_TOTP_CENTER, theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE, theScale: Optional[float] = 0.02, theMode: Optional[V3d_TypeOfVisualization] = V3d_WIREFRAME) -> None: ... + def TriedronDisplay( + self, + thePosition: Optional[Aspect_TypeOfTriedronPosition] = Aspect_TOTP_CENTER, + theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE, + theScale: Optional[float] = 0.02, + theMode: Optional[V3d_TypeOfVisualization] = V3d_WIREFRAME, + ) -> None: ... def TriedronErase(self) -> None: ... def Trihedron(self, theToCreate: Optional[bool] = true) -> V3d_Trihedron: ... @overload - def Turn(self, Ax: float, Ay: float, Az: float, Start: Optional[bool] = True) -> None: ... + def Turn( + self, Ax: float, Ay: float, Az: float, Start: Optional[bool] = True + ) -> None: ... @overload - def Turn(self, Axe: V3d_TypeOfAxe, Angle: float, Start: Optional[bool] = True) -> None: ... + def Turn( + self, Axe: V3d_TypeOfAxe, Angle: float, Start: Optional[bool] = True + ) -> None: ... @overload def Turn(self, Angle: float, Start: Optional[bool] = True) -> None: ... def Twist(self) -> float: ... @@ -482,17 +736,35 @@ class V3d_View(Standard_Transient): def Viewer(self) -> V3d_Viewer: ... def Visualization(self) -> V3d_TypeOfVisualization: ... def Window(self) -> Aspect_Window: ... - def WindowFit(self, theMinXp: int, theMinYp: int, theMaxXp: int, theMaxYp: int) -> None: ... + def WindowFit( + self, theMinXp: int, theMinYp: int, theMaxXp: int, theMaxYp: int + ) -> None: ... def WindowFitAll(self, Xmin: int, Ymin: int, Xmax: int, Ymax: int) -> None: ... - def ZBufferTriedronSetup(self, theXColor: Optional[Quantity_Color] = Quantity_NOC_RED, theYColor: Optional[Quantity_Color] = Quantity_NOC_GREEN, theZColor: Optional[Quantity_Color] = Quantity_NOC_BLUE1, theSizeRatio: Optional[float] = 0.8, theAxisDiametr: Optional[float] = 0.05, theNbFacettes: Optional[int] = 12) -> None: ... + def ZBufferTriedronSetup( + self, + theXColor: Optional[Quantity_Color] = Quantity_NOC_RED, + theYColor: Optional[Quantity_Color] = Quantity_NOC_GREEN, + theZColor: Optional[Quantity_Color] = Quantity_NOC_BLUE1, + theSizeRatio: Optional[float] = 0.8, + theAxisDiametr: Optional[float] = 0.05, + theNbFacettes: Optional[int] = 12, + ) -> None: ... def ZFitAll(self, theScaleFactor: Optional[float] = 1.0) -> None: ... def ZSize(self) -> float: ... def Zoom(self, theXp1: int, theYp1: int, theXp2: int, theYp2: int) -> None: ... - def ZoomAtPoint(self, theMouseStartX: int, theMouseStartY: int, theMouseEndX: int, theMouseEndY: int) -> None: ... + def ZoomAtPoint( + self, + theMouseStartX: int, + theMouseStartY: int, + theMouseEndX: int, + theMouseEndY: int, + ) -> None: ... class V3d_Viewer(Standard_Transient): def __init__(self, theDriver: Graphic3d_GraphicDriver) -> None: ... - def ActivateGrid(self, aGridType: Aspect_GridType, aGridDrawMode: Aspect_GridDrawMode) -> None: ... + def ActivateGrid( + self, aGridType: Aspect_GridType, aGridDrawMode: Aspect_GridDrawMode + ) -> None: ... def ActiveLight(self) -> V3d_Light: ... def ActiveLightIterator(self) -> V3d_ListOfLightIterator: ... def ActiveLights(self) -> V3d_ListOfLight: ... @@ -500,14 +772,19 @@ class V3d_Viewer(Standard_Transient): def ActiveViewIterator(self) -> V3d_ListOfViewIterator: ... def ActiveViews(self) -> V3d_ListOfView: ... def AddLight(self, theLight: V3d_Light) -> None: ... - def AddZLayer(self, theSettings: Optional[Graphic3d_ZLayerSettings] = Graphic3d_ZLayerSettings()) -> Tuple[bool, int]: ... + def AddZLayer( + self, + theSettings: Optional[Graphic3d_ZLayerSettings] = Graphic3d_ZLayerSettings(), + ) -> Tuple[bool, int]: ... def CircularGridGraphicValues(self) -> Tuple[float, float]: ... def CircularGridValues(self) -> Tuple[float, float, float, int, float]: ... def ComputedMode(self) -> bool: ... def CreateView(self) -> V3d_View: ... def DeactivateGrid(self) -> None: ... def DefaultBackgroundColor(self) -> Quantity_Color: ... - def DefaultBgGradientColors(self, theColor1: Quantity_Color, theColor2: Quantity_Color) -> None: ... + def DefaultBgGradientColors( + self, theColor1: Quantity_Color, theColor2: Quantity_Color + ) -> None: ... def DefaultComputedMode(self) -> bool: ... def DefaultRenderingParams(self) -> Graphic3d_RenderingParams: ... def DefaultShadingModel(self) -> Graphic3d_TypeOfShadingModel: ... @@ -522,16 +799,20 @@ class V3d_Viewer(Standard_Transient): def DefinedViewIterator(self) -> V3d_ListOfViewIterator: ... def DefinedViews(self) -> V3d_ListOfView: ... def DelLight(self, theLight: V3d_Light) -> None: ... - def DisplayPrivilegedPlane(self, theOnOff: bool, theSize: Optional[float] = 1) -> None: ... + def DisplayPrivilegedPlane( + self, theOnOff: bool, theSize: Optional[float] = 1 + ) -> None: ... def Driver(self) -> Graphic3d_GraphicDriver: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Erase(self) -> None: ... def GetAllZLayers(self, theLayerSeq: TColStd_SequenceOfInteger) -> None: ... def GetGradientBackground(self) -> Aspect_GradientBackground: ... @overload def Grid(self, theToCreate: Optional[bool] = true) -> Aspect_Grid: ... @overload - def Grid(self, theGridType: Aspect_GridType, theToCreate: Optional[bool] = true) -> Aspect_Grid: ... + def Grid( + self, theGridType: Aspect_GridType, theToCreate: Optional[bool] = true + ) -> Aspect_Grid: ... def GridDrawMode(self) -> Aspect_GridDrawMode: ... def GridEcho(self) -> bool: ... def GridType(self) -> Aspect_GridType: ... @@ -541,8 +822,12 @@ class V3d_Viewer(Standard_Transient): def InitActiveViews(self) -> None: ... def InitDefinedLights(self) -> None: ... def InitDefinedViews(self) -> None: ... - def InsertLayerAfter(self, theSettings: Graphic3d_ZLayerSettings, theLayerBefore: int) -> Tuple[bool, int]: ... - def InsertLayerBefore(self, theSettings: Graphic3d_ZLayerSettings, theLayerAfter: int) -> Tuple[bool, int]: ... + def InsertLayerAfter( + self, theSettings: Graphic3d_ZLayerSettings, theLayerBefore: int + ) -> Tuple[bool, int]: ... + def InsertLayerBefore( + self, theSettings: Graphic3d_ZLayerSettings, theLayerAfter: int + ) -> Tuple[bool, int]: ... def Invalidate(self) -> None: ... def IsActive(self) -> bool: ... def IsGlobalLight(self, TheLight: V3d_Light) -> bool: ... @@ -564,13 +849,29 @@ class V3d_Viewer(Standard_Transient): def Remove(self) -> None: ... def RemoveZLayer(self, theLayerId: int) -> bool: ... def SetCircularGridGraphicValues(self, Radius: float, OffSet: float) -> None: ... - def SetCircularGridValues(self, XOrigin: float, YOrigin: float, RadiusStep: float, DivisionNumber: int, RotationAngle: float) -> None: ... + def SetCircularGridValues( + self, + XOrigin: float, + YOrigin: float, + RadiusStep: float, + DivisionNumber: int, + RotationAngle: float, + ) -> None: ... def SetComputedMode(self, theMode: bool) -> None: ... def SetDefaultBackgroundColor(self, theColor: Quantity_Color) -> None: ... - def SetDefaultBgGradientColors(self, theColor1: Quantity_Color, theColor2: Quantity_Color, theFillStyle: Optional[Aspect_GradientFillMethod] = Aspect_GradientFillMethod_Horizontal) -> None: ... + def SetDefaultBgGradientColors( + self, + theColor1: Quantity_Color, + theColor2: Quantity_Color, + theFillStyle: Optional[ + Aspect_GradientFillMethod + ] = Aspect_GradientFillMethod_Horizontal, + ) -> None: ... def SetDefaultComputedMode(self, theMode: bool) -> None: ... def SetDefaultLights(self) -> None: ... - def SetDefaultRenderingParams(self, theParams: Graphic3d_RenderingParams) -> None: ... + def SetDefaultRenderingParams( + self, theParams: Graphic3d_RenderingParams + ) -> None: ... def SetDefaultShadingModel(self, theType: Graphic3d_TypeOfShadingModel) -> None: ... def SetDefaultTypeOfView(self, theType: V3d_TypeOfView) -> None: ... def SetDefaultViewProj(self, theOrientation: V3d_TypeOfOrientation) -> None: ... @@ -589,8 +890,17 @@ class V3d_Viewer(Standard_Transient): @overload def SetLightOn(self) -> None: ... def SetPrivilegedPlane(self, thePlane: gp_Ax3) -> None: ... - def SetRectangularGridGraphicValues(self, XSize: float, YSize: float, OffSet: float) -> None: ... - def SetRectangularGridValues(self, XOrigin: float, YOrigin: float, XStep: float, YStep: float, RotationAngle: float) -> None: ... + def SetRectangularGridGraphicValues( + self, XSize: float, YSize: float, OffSet: float + ) -> None: ... + def SetRectangularGridValues( + self, + XOrigin: float, + YOrigin: float, + XStep: float, + YStep: float, + RotationAngle: float, + ) -> None: ... @overload def SetViewOff(self) -> None: ... @overload @@ -599,7 +909,9 @@ class V3d_Viewer(Standard_Transient): def SetViewOn(self) -> None: ... @overload def SetViewOn(self, theView: V3d_View) -> None: ... - def SetZLayerSettings(self, theLayerId: int, theSettings: Graphic3d_ZLayerSettings) -> None: ... + def SetZLayerSettings( + self, theLayerId: int, theSettings: Graphic3d_ZLayerSettings + ) -> None: ... def ShowGridEcho(self, theView: V3d_View, thePoint: Graphic3d_Vertex) -> None: ... def StructureManager(self) -> Graphic3d_StructureManager: ... def UnHighlight(self) -> None: ... @@ -609,25 +921,46 @@ class V3d_Viewer(Standard_Transient): class V3d_DirectionalLight(V3d_PositionLight): @overload - def __init__(self, theDirection: Optional[V3d_TypeOfOrientation] = V3d_XposYposZpos, theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE, theIsHeadlight: Optional[bool] = False) -> None: ... - @overload - def __init__(self, theDirection: gp_Dir, theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE, theIsHeadlight: Optional[bool] = False) -> None: ... + def __init__( + self, + theDirection: Optional[V3d_TypeOfOrientation] = V3d_XposYposZpos, + theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE, + theIsHeadlight: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theDirection: gp_Dir, + theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE, + theIsHeadlight: Optional[bool] = False, + ) -> None: ... def SetDirection(self, theDirection: V3d_TypeOfOrientation) -> None: ... class V3d_PositionalLight(V3d_PositionLight): - def __init__(self, thePos: gp_Pnt, theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE) -> None: ... + def __init__( + self, thePos: gp_Pnt, theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE + ) -> None: ... class V3d_SpotLight(V3d_PositionLight): @overload - def __init__(self, thePos: gp_Pnt, theDirection: Optional[V3d_TypeOfOrientation] = V3d_XnegYnegZpos, theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE) -> None: ... - @overload - def __init__(self, thePos: gp_Pnt, theDirection: gp_Dir, theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE) -> None: ... + def __init__( + self, + thePos: gp_Pnt, + theDirection: Optional[V3d_TypeOfOrientation] = V3d_XnegYnegZpos, + theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE, + ) -> None: ... + @overload + def __init__( + self, + thePos: gp_Pnt, + theDirection: gp_Dir, + theColor: Optional[Quantity_Color] = Quantity_NOC_WHITE, + ) -> None: ... def SetDirection(self, theOrientation: V3d_TypeOfOrientation) -> None: ... -#classnotwrapped +# classnotwrapped class V3d_ImageDumpOptions: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/Vrml.pyi b/src/SWIG_files/wrapper/Vrml.pyi index 457eb63a1..d2ad51ee6 100644 --- a/src/SWIG_files/wrapper/Vrml.pyi +++ b/src/SWIG_files/wrapper/Vrml.pyi @@ -9,7 +9,6 @@ from OCC.Core.Quantity import * from OCC.Core.gp import * from OCC.Core.TCollection import * - class Vrml_AsciiTextJustification(IntEnum): Vrml_LEFT: int = ... Vrml_CENTER: int = ... @@ -145,7 +144,13 @@ class Vrml_AsciiText(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, aString: TColStd_HArray1OfAsciiString, aSpacing: float, aJustification: Vrml_AsciiTextJustification, aWidth: float) -> None: ... + def __init__( + self, + aString: TColStd_HArray1OfAsciiString, + aSpacing: float, + aJustification: Vrml_AsciiTextJustification, + aWidth: float, + ) -> None: ... def Justification(self) -> Vrml_AsciiTextJustification: ... def Print(self) -> Tuple[Standard_OStream, str]: ... def SetJustification(self, aJustification: Vrml_AsciiTextJustification) -> None: ... @@ -157,7 +162,12 @@ class Vrml_AsciiText(Standard_Transient): def Width(self) -> float: ... class Vrml_Cone: - def __init__(self, aParts: Optional[Vrml_ConeParts] = Vrml_ConeALL, aBottomRadius: Optional[float] = 1, aHeight: Optional[float] = 2) -> None: ... + def __init__( + self, + aParts: Optional[Vrml_ConeParts] = Vrml_ConeALL, + aBottomRadius: Optional[float] = 1, + aHeight: Optional[float] = 2, + ) -> None: ... def BottomRadius(self) -> float: ... def Height(self) -> float: ... def Parts(self) -> Vrml_ConeParts: ... @@ -176,7 +186,12 @@ class Vrml_Coordinate3(Standard_Transient): def SetPoint(self, aPoint: TColgp_HArray1OfVec) -> None: ... class Vrml_Cube: - def __init__(self, aWidth: Optional[float] = 2, aHeight: Optional[float] = 2, aDepth: Optional[float] = 2) -> None: ... + def __init__( + self, + aWidth: Optional[float] = 2, + aHeight: Optional[float] = 2, + aDepth: Optional[float] = 2, + ) -> None: ... def Depth(self) -> float: ... def Height(self) -> float: ... def Print(self) -> Tuple[Standard_OStream, str]: ... @@ -186,7 +201,12 @@ class Vrml_Cube: def Width(self) -> float: ... class Vrml_Cylinder: - def __init__(self, aParts: Optional[Vrml_CylinderParts] = Vrml_CylinderALL, aRadius: Optional[float] = 1, aHeight: Optional[float] = 2) -> None: ... + def __init__( + self, + aParts: Optional[Vrml_CylinderParts] = Vrml_CylinderALL, + aRadius: Optional[float] = 1, + aHeight: Optional[float] = 2, + ) -> None: ... def Height(self) -> float: ... def Parts(self) -> Vrml_CylinderParts: ... def Print(self) -> Tuple[Standard_OStream, str]: ... @@ -199,7 +219,13 @@ class Vrml_DirectionalLight: @overload def __init__(self) -> None: ... @overload - def __init__(self, aOnOff: bool, aIntensity: float, aColor: Quantity_Color, aDirection: gp_Vec) -> None: ... + def __init__( + self, + aOnOff: bool, + aIntensity: float, + aColor: Quantity_Color, + aDirection: gp_Vec, + ) -> None: ... def Color(self) -> Quantity_Color: ... def Direction(self) -> gp_Vec: ... def Intensity(self) -> float: ... @@ -211,7 +237,12 @@ class Vrml_DirectionalLight: def SetOnOff(self, aOnOff: bool) -> None: ... class Vrml_FontStyle: - def __init__(self, aSize: Optional[float] = 10, aFamily: Optional[Vrml_FontStyleFamily] = Vrml_SERIF, aStyle: Optional[Vrml_FontStyleStyle] = Vrml_NONE) -> None: ... + def __init__( + self, + aSize: Optional[float] = 10, + aFamily: Optional[Vrml_FontStyleFamily] = Vrml_SERIF, + aStyle: Optional[Vrml_FontStyleStyle] = Vrml_NONE, + ) -> None: ... def Family(self) -> Vrml_FontStyleFamily: ... def Print(self) -> Tuple[Standard_OStream, str]: ... def SetFamily(self, aFamily: Vrml_FontStyleFamily) -> None: ... @@ -226,7 +257,13 @@ class Vrml_Group: class Vrml_IndexedFaceSet(Standard_Transient): @overload - def __init__(self, aCoordIndex: TColStd_HArray1OfInteger, aMaterialIndex: TColStd_HArray1OfInteger, aNormalIndex: TColStd_HArray1OfInteger, aTextureCoordIndex: TColStd_HArray1OfInteger) -> None: ... + def __init__( + self, + aCoordIndex: TColStd_HArray1OfInteger, + aMaterialIndex: TColStd_HArray1OfInteger, + aNormalIndex: TColStd_HArray1OfInteger, + aTextureCoordIndex: TColStd_HArray1OfInteger, + ) -> None: ... @overload def __init__(self) -> None: ... def CoordIndex(self) -> TColStd_HArray1OfInteger: ... @@ -236,12 +273,20 @@ class Vrml_IndexedFaceSet(Standard_Transient): def SetCoordIndex(self, aCoordIndex: TColStd_HArray1OfInteger) -> None: ... def SetMaterialIndex(self, aMaterialIndex: TColStd_HArray1OfInteger) -> None: ... def SetNormalIndex(self, aNormalIndex: TColStd_HArray1OfInteger) -> None: ... - def SetTextureCoordIndex(self, aTextureCoordIndex: TColStd_HArray1OfInteger) -> None: ... + def SetTextureCoordIndex( + self, aTextureCoordIndex: TColStd_HArray1OfInteger + ) -> None: ... def TextureCoordIndex(self) -> TColStd_HArray1OfInteger: ... class Vrml_IndexedLineSet(Standard_Transient): @overload - def __init__(self, aCoordIndex: TColStd_HArray1OfInteger, aMaterialIndex: TColStd_HArray1OfInteger, aNormalIndex: TColStd_HArray1OfInteger, aTextureCoordIndex: TColStd_HArray1OfInteger) -> None: ... + def __init__( + self, + aCoordIndex: TColStd_HArray1OfInteger, + aMaterialIndex: TColStd_HArray1OfInteger, + aNormalIndex: TColStd_HArray1OfInteger, + aTextureCoordIndex: TColStd_HArray1OfInteger, + ) -> None: ... @overload def __init__(self) -> None: ... def CoordIndex(self) -> TColStd_HArray1OfInteger: ... @@ -251,7 +296,9 @@ class Vrml_IndexedLineSet(Standard_Transient): def SetCoordIndex(self, aCoordIndex: TColStd_HArray1OfInteger) -> None: ... def SetMaterialIndex(self, aMaterialIndex: TColStd_HArray1OfInteger) -> None: ... def SetNormalIndex(self, aNormalIndex: TColStd_HArray1OfInteger) -> None: ... - def SetTextureCoordIndex(self, aTextureCoordIndex: TColStd_HArray1OfInteger) -> None: ... + def SetTextureCoordIndex( + self, aTextureCoordIndex: TColStd_HArray1OfInteger + ) -> None: ... def TextureCoordIndex(self) -> TColStd_HArray1OfInteger: ... class Vrml_Info: @@ -278,7 +325,15 @@ class Vrml_LOD(Standard_Transient): class Vrml_Material(Standard_Transient): @overload - def __init__(self, aAmbientColor: Quantity_HArray1OfColor, aDiffuseColor: Quantity_HArray1OfColor, aSpecularColor: Quantity_HArray1OfColor, aEmissiveColor: Quantity_HArray1OfColor, aShininess: TColStd_HArray1OfReal, aTransparency: TColStd_HArray1OfReal) -> None: ... + def __init__( + self, + aAmbientColor: Quantity_HArray1OfColor, + aDiffuseColor: Quantity_HArray1OfColor, + aSpecularColor: Quantity_HArray1OfColor, + aEmissiveColor: Quantity_HArray1OfColor, + aShininess: TColStd_HArray1OfReal, + aTransparency: TColStd_HArray1OfReal, + ) -> None: ... @overload def __init__(self) -> None: ... def AmbientColor(self) -> Quantity_HArray1OfColor: ... @@ -335,7 +390,13 @@ class Vrml_OrthographicCamera: @overload def __init__(self) -> None: ... @overload - def __init__(self, aPosition: gp_Vec, aOrientation: Vrml_SFRotation, aFocalDistance: float, aHeight: float) -> None: ... + def __init__( + self, + aPosition: gp_Vec, + aOrientation: Vrml_SFRotation, + aFocalDistance: float, + aHeight: float, + ) -> None: ... def FocalDistance(self) -> float: ... def Height(self) -> float: ... def Orientation(self) -> Vrml_SFRotation: ... @@ -350,7 +411,13 @@ class Vrml_PerspectiveCamera: @overload def __init__(self) -> None: ... @overload - def __init__(self, aPosition: gp_Vec, aOrientation: Vrml_SFRotation, aFocalDistance: float, aHeightAngle: float) -> None: ... + def __init__( + self, + aPosition: gp_Vec, + aOrientation: Vrml_SFRotation, + aFocalDistance: float, + aHeightAngle: float, + ) -> None: ... def Angle(self) -> float: ... def FocalDistance(self) -> float: ... def Orientation(self) -> Vrml_SFRotation: ... @@ -365,7 +432,9 @@ class Vrml_PointLight: @overload def __init__(self) -> None: ... @overload - def __init__(self, aOnOff: bool, aIntensity: float, aColor: Quantity_Color, aLocation: gp_Vec) -> None: ... + def __init__( + self, aOnOff: bool, aIntensity: float, aColor: Quantity_Color, aLocation: gp_Vec + ) -> None: ... def Color(self) -> Quantity_Color: ... def Intensity(self) -> float: ... def Location(self) -> gp_Vec: ... @@ -377,7 +446,9 @@ class Vrml_PointLight: def SetOnOff(self, aOnOff: bool) -> None: ... class Vrml_PointSet: - def __init__(self, aStartIndex: Optional[int] = 0, aNumPoints: Optional[int] = -1) -> None: ... + def __init__( + self, aStartIndex: Optional[int] = 0, aNumPoints: Optional[int] = -1 + ) -> None: ... def NumPoints(self) -> int: ... def Print(self) -> Tuple[Standard_OStream, str]: ... def SetNumPoints(self, aNumPoints: int) -> None: ... @@ -397,7 +468,13 @@ class Vrml_SFImage(Standard_Transient): @overload def __init__(self) -> None: ... @overload - def __init__(self, aWidth: int, aHeight: int, aNumber: Vrml_SFImageNumber, anArray: TColStd_HArray1OfInteger) -> None: ... + def __init__( + self, + aWidth: int, + aHeight: int, + aNumber: Vrml_SFImageNumber, + anArray: TColStd_HArray1OfInteger, + ) -> None: ... def Array(self) -> TColStd_HArray1OfInteger: ... def ArrayFlag(self) -> bool: ... def Height(self) -> int: ... @@ -412,7 +489,9 @@ class Vrml_SFRotation: @overload def __init__(self) -> None: ... @overload - def __init__(self, aRotationX: float, aRotationY: float, aRotationZ: float, anAngle: float) -> None: ... + def __init__( + self, aRotationX: float, aRotationY: float, aRotationZ: float, anAngle: float + ) -> None: ... def Angle(self) -> float: ... def RotationX(self) -> float: ... def RotationY(self) -> float: ... @@ -441,7 +520,13 @@ class Vrml_Separator: def SetRenderCulling(self, aRenderCulling: Vrml_SeparatorRenderCulling) -> None: ... class Vrml_ShapeHints: - def __init__(self, aVertexOrdering: Optional[Vrml_VertexOrdering] = Vrml_UNKNOWN_ORDERING, aShapeType: Optional[Vrml_ShapeType] = Vrml_UNKNOWN_SHAPE_TYPE, aFaceType: Optional[Vrml_FaceType] = Vrml_CONVEX, aAngle: Optional[float] = 0.5) -> None: ... + def __init__( + self, + aVertexOrdering: Optional[Vrml_VertexOrdering] = Vrml_UNKNOWN_ORDERING, + aShapeType: Optional[Vrml_ShapeType] = Vrml_UNKNOWN_SHAPE_TYPE, + aFaceType: Optional[Vrml_FaceType] = Vrml_CONVEX, + aAngle: Optional[float] = 0.5, + ) -> None: ... def Angle(self) -> float: ... def FaceType(self) -> Vrml_FaceType: ... def Print(self) -> Tuple[Standard_OStream, str]: ... @@ -462,7 +547,16 @@ class Vrml_SpotLight: @overload def __init__(self) -> None: ... @overload - def __init__(self, aOnOff: bool, aIntensity: float, aColor: Quantity_Color, aLocation: gp_Vec, aDirection: gp_Vec, aDropOffRate: float, aCutOffAngle: float) -> None: ... + def __init__( + self, + aOnOff: bool, + aIntensity: float, + aColor: Quantity_Color, + aLocation: gp_Vec, + aDirection: gp_Vec, + aDropOffRate: float, + aCutOffAngle: float, + ) -> None: ... def Color(self) -> Quantity_Color: ... def CutOffAngle(self) -> float: ... def Direction(self) -> gp_Vec: ... @@ -489,7 +583,13 @@ class Vrml_Texture2: @overload def __init__(self) -> None: ... @overload - def __init__(self, aFilename: str, aImage: Vrml_SFImage, aWrapS: Vrml_Texture2Wrap, aWrapT: Vrml_Texture2Wrap) -> None: ... + def __init__( + self, + aFilename: str, + aImage: Vrml_SFImage, + aWrapS: Vrml_Texture2Wrap, + aWrapT: Vrml_Texture2Wrap, + ) -> None: ... def Filename(self) -> str: ... def Image(self) -> Vrml_SFImage: ... def Print(self) -> Tuple[Standard_OStream, str]: ... @@ -504,7 +604,13 @@ class Vrml_Texture2Transform: @overload def __init__(self) -> None: ... @overload - def __init__(self, aTranslation: gp_Vec2d, aRotation: float, aScaleFactor: gp_Vec2d, aCenter: gp_Vec2d) -> None: ... + def __init__( + self, + aTranslation: gp_Vec2d, + aRotation: float, + aScaleFactor: gp_Vec2d, + aCenter: gp_Vec2d, + ) -> None: ... def Center(self) -> gp_Vec2d: ... def Print(self) -> Tuple[Standard_OStream, str]: ... def Rotation(self) -> float: ... @@ -528,7 +634,14 @@ class Vrml_Transform: @overload def __init__(self) -> None: ... @overload - def __init__(self, aTranslation: gp_Vec, aRotation: Vrml_SFRotation, aScaleFactor: gp_Vec, aScaleOrientation: Vrml_SFRotation, aCenter: gp_Vec) -> None: ... + def __init__( + self, + aTranslation: gp_Vec, + aRotation: Vrml_SFRotation, + aScaleFactor: gp_Vec, + aScaleOrientation: Vrml_SFRotation, + aCenter: gp_Vec, + ) -> None: ... def Center(self) -> gp_Vec: ... def Print(self) -> Tuple[Standard_OStream, str]: ... def Rotation(self) -> Vrml_SFRotation: ... @@ -555,7 +668,12 @@ class Vrml_Translation: def Translation(self) -> gp_Vec: ... class Vrml_WWWAnchor: - def __init__(self, aName: Optional[str] = "", aDescription: Optional[str] = "", aMap: Optional[Vrml_WWWAnchorMap] = Vrml_MAP_NONE) -> None: ... + def __init__( + self, + aName: Optional[str] = "", + aDescription: Optional[str] = "", + aMap: Optional[Vrml_WWWAnchorMap] = Vrml_MAP_NONE, + ) -> None: ... def Description(self) -> str: ... def Map(self) -> Vrml_WWWAnchorMap: ... def Name(self) -> str: ... @@ -580,4 +698,3 @@ class Vrml_WWWInline: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/VrmlAPI.pyi b/src/SWIG_files/wrapper/VrmlAPI.pyi index 0ada196b5..258651c07 100644 --- a/src/SWIG_files/wrapper/VrmlAPI.pyi +++ b/src/SWIG_files/wrapper/VrmlAPI.pyi @@ -10,19 +10,24 @@ from OCC.Core.Vrml import * from OCC.Core.Quantity import * from OCC.Core.TDocStd import * - class VrmlAPI_RepresentationOfShape(IntEnum): VrmlAPI_ShadedRepresentation: int = ... VrmlAPI_WireFrameRepresentation: int = ... VrmlAPI_BothRepresentation: int = ... -VrmlAPI_ShadedRepresentation = VrmlAPI_RepresentationOfShape.VrmlAPI_ShadedRepresentation -VrmlAPI_WireFrameRepresentation = VrmlAPI_RepresentationOfShape.VrmlAPI_WireFrameRepresentation +VrmlAPI_ShadedRepresentation = ( + VrmlAPI_RepresentationOfShape.VrmlAPI_ShadedRepresentation +) +VrmlAPI_WireFrameRepresentation = ( + VrmlAPI_RepresentationOfShape.VrmlAPI_WireFrameRepresentation +) VrmlAPI_BothRepresentation = VrmlAPI_RepresentationOfShape.VrmlAPI_BothRepresentation class vrmlapi: @staticmethod - def Write(aShape: TopoDS_Shape, aFileName: str, aVersion: Optional[int] = 2) -> bool: ... + def Write( + aShape: TopoDS_Shape, aFileName: str, aVersion: Optional[int] = 2 + ) -> bool: ... class VrmlAPI_CafReader(RWMesh_CafReader): pass @@ -40,18 +45,33 @@ class VrmlAPI_Writer: def GetVisoMaterial(self) -> Vrml_Material: ... def GetWireMaterial(self) -> Vrml_Material: ... def ResetToDefaults(self) -> None: ... - def SetAmbientColorToMaterial(self, aMaterial: Vrml_Material, Color: Quantity_HArray1OfColor) -> None: ... + def SetAmbientColorToMaterial( + self, aMaterial: Vrml_Material, Color: Quantity_HArray1OfColor + ) -> None: ... def SetDeflection(self, aDef: float) -> None: ... - def SetDiffuseColorToMaterial(self, aMaterial: Vrml_Material, Color: Quantity_HArray1OfColor) -> None: ... - def SetEmissiveColorToMaterial(self, aMaterial: Vrml_Material, Color: Quantity_HArray1OfColor) -> None: ... + def SetDiffuseColorToMaterial( + self, aMaterial: Vrml_Material, Color: Quantity_HArray1OfColor + ) -> None: ... + def SetEmissiveColorToMaterial( + self, aMaterial: Vrml_Material, Color: Quantity_HArray1OfColor + ) -> None: ... def SetRepresentation(self, aRep: VrmlAPI_RepresentationOfShape) -> None: ... - def SetShininessToMaterial(self, aMaterial: Vrml_Material, aShininess: float) -> None: ... - def SetSpecularColorToMaterial(self, aMaterial: Vrml_Material, Color: Quantity_HArray1OfColor) -> None: ... - def SetTransparencyToMaterial(self, aMaterial: Vrml_Material, aTransparency: float) -> None: ... - def Write(self, aShape: TopoDS_Shape, aFile: str, aVersion: Optional[int] = 2) -> bool: ... - def WriteDoc(self, theDoc: TDocStd_Document, theFile: str, theScale: float) -> bool: ... + def SetShininessToMaterial( + self, aMaterial: Vrml_Material, aShininess: float + ) -> None: ... + def SetSpecularColorToMaterial( + self, aMaterial: Vrml_Material, Color: Quantity_HArray1OfColor + ) -> None: ... + def SetTransparencyToMaterial( + self, aMaterial: Vrml_Material, aTransparency: float + ) -> None: ... + def Write( + self, aShape: TopoDS_Shape, aFile: str, aVersion: Optional[int] = 2 + ) -> bool: ... + def WriteDoc( + self, theDoc: TDocStd_Document, theFile: str, theScale: float + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/VrmlConverter.pyi b/src/SWIG_files/wrapper/VrmlConverter.pyi index 9fd0b6b69..7f93a3f43 100644 --- a/src/SWIG_files/wrapper/VrmlConverter.pyi +++ b/src/SWIG_files/wrapper/VrmlConverter.pyi @@ -14,15 +14,18 @@ from OCC.Core.Poly import * from OCC.Core.TColgp import * from OCC.Core.BRepAdaptor import * - class VrmlConverter_TypeOfCamera(IntEnum): VrmlConverter_NoCamera: int = ... VrmlConverter_PerspectiveCamera: int = ... VrmlConverter_OrthographicCamera: int = ... VrmlConverter_NoCamera = VrmlConverter_TypeOfCamera.VrmlConverter_NoCamera -VrmlConverter_PerspectiveCamera = VrmlConverter_TypeOfCamera.VrmlConverter_PerspectiveCamera -VrmlConverter_OrthographicCamera = VrmlConverter_TypeOfCamera.VrmlConverter_OrthographicCamera +VrmlConverter_PerspectiveCamera = ( + VrmlConverter_TypeOfCamera.VrmlConverter_PerspectiveCamera +) +VrmlConverter_OrthographicCamera = ( + VrmlConverter_TypeOfCamera.VrmlConverter_OrthographicCamera +) class VrmlConverter_TypeOfLight(IntEnum): VrmlConverter_NoLight: int = ... @@ -41,7 +44,9 @@ class VrmlConverter_Curve: def Add(aCurve: Adaptor3d_Curve, aDrawer: VrmlConverter_Drawer) -> str: ... @overload @staticmethod - def Add(aCurve: Adaptor3d_Curve, U1: float, U2: float, aDrawer: VrmlConverter_Drawer) -> str: ... + def Add( + aCurve: Adaptor3d_Curve, U1: float, U2: float, aDrawer: VrmlConverter_Drawer + ) -> str: ... @overload @staticmethod def Add(aCurve: Adaptor3d_Curve, U1: float, U2: float, aNbPoints: int) -> str: ... @@ -52,19 +57,30 @@ class VrmlConverter_DeflectionCurve: def Add(aCurve: Adaptor3d_Curve, aDrawer: VrmlConverter_Drawer) -> str: ... @overload @staticmethod - def Add(aCurve: Adaptor3d_Curve, U1: float, U2: float, aDrawer: VrmlConverter_Drawer) -> str: ... + def Add( + aCurve: Adaptor3d_Curve, U1: float, U2: float, aDrawer: VrmlConverter_Drawer + ) -> str: ... @overload @staticmethod def Add(aCurve: Adaptor3d_Curve, aDeflection: float, aLimit: float) -> str: ... @overload @staticmethod - def Add(aCurve: Adaptor3d_Curve, aDeflection: float, aDrawer: VrmlConverter_Drawer) -> str: ... + def Add( + aCurve: Adaptor3d_Curve, aDeflection: float, aDrawer: VrmlConverter_Drawer + ) -> str: ... @overload @staticmethod - def Add(aCurve: Adaptor3d_Curve, U1: float, U2: float, aDeflection: float) -> str: ... + def Add( + aCurve: Adaptor3d_Curve, U1: float, U2: float, aDeflection: float + ) -> str: ... @overload @staticmethod - def Add(aCurve: Adaptor3d_Curve, aParams: TColStd_HArray1OfReal, aNbNodes: int, aDrawer: VrmlConverter_Drawer) -> str: ... + def Add( + aCurve: Adaptor3d_Curve, + aParams: TColStd_HArray1OfReal, + aNbNodes: int, + aDrawer: VrmlConverter_Drawer, + ) -> str: ... class VrmlConverter_Drawer(Standard_Transient): def __init__(self) -> None: ... @@ -94,7 +110,9 @@ class VrmlConverter_Drawer(Standard_Transient): def SetPointAspect(self, anAspect: VrmlConverter_PointAspect) -> None: ... def SetSeenLineAspect(self, anAspect: VrmlConverter_LineAspect) -> None: ... def SetShadingAspect(self, anAspect: VrmlConverter_ShadingAspect) -> None: ... - def SetTypeOfDeflection(self, aTypeOfDeflection: Aspect_TypeOfDeflection) -> None: ... + def SetTypeOfDeflection( + self, aTypeOfDeflection: Aspect_TypeOfDeflection + ) -> None: ... def SetUIsoAspect(self, anAspect: VrmlConverter_IsoAspect) -> None: ... def SetUnFreeBoundaryAspect(self, anAspect: VrmlConverter_LineAspect) -> None: ... def SetUnFreeBoundaryDraw(self, OnOff: bool) -> None: ... @@ -112,7 +130,11 @@ class VrmlConverter_Drawer(Standard_Transient): class VrmlConverter_HLRShape: @staticmethod - def Add(aShape: TopoDS_Shape, aDrawer: VrmlConverter_Drawer, aProjector: VrmlConverter_Projector) -> str: ... + def Add( + aShape: TopoDS_Shape, + aDrawer: VrmlConverter_Drawer, + aProjector: VrmlConverter_Projector, + ) -> str: ... class VrmlConverter_LineAspect(Standard_Transient): @overload @@ -135,7 +157,19 @@ class VrmlConverter_PointAspect(Standard_Transient): def SetMaterial(self, aMaterial: Vrml_Material) -> None: ... class VrmlConverter_Projector(Standard_Transient): - def __init__(self, Shapes: TopTools_Array1OfShape, Focus: float, DX: float, DY: float, DZ: float, XUp: float, YUp: float, ZUp: float, Camera: Optional[VrmlConverter_TypeOfCamera] = VrmlConverter_NoCamera, Light: Optional[VrmlConverter_TypeOfLight] = VrmlConverter_NoLight) -> None: ... + def __init__( + self, + Shapes: TopTools_Array1OfShape, + Focus: float, + DX: float, + DY: float, + DZ: float, + XUp: float, + YUp: float, + ZUp: float, + Camera: Optional[VrmlConverter_TypeOfCamera] = VrmlConverter_NoCamera, + Light: Optional[VrmlConverter_TypeOfLight] = VrmlConverter_NoLight, + ) -> None: ... def Add(self) -> str: ... def Camera(self) -> VrmlConverter_TypeOfCamera: ... def Light(self) -> VrmlConverter_TypeOfLight: ... @@ -147,7 +181,9 @@ class VrmlConverter_ShadedShape: @staticmethod def Add(aShape: TopoDS_Shape, aDrawer: VrmlConverter_Drawer) -> str: ... @staticmethod - def ComputeNormal(aFace: TopoDS_Face, pc: Poly_Connect, Nor: TColgp_Array1OfDir) -> None: ... + def ComputeNormal( + aFace: TopoDS_Face, pc: Poly_Connect, Nor: TColgp_Array1OfDir + ) -> None: ... class VrmlConverter_ShadingAspect(Standard_Transient): def __init__(self) -> None: ... @@ -166,7 +202,15 @@ class VrmlConverter_WFDeflectionRestrictedFace: def Add(aFace: BRepAdaptor_Surface, aDrawer: VrmlConverter_Drawer) -> str: ... @overload @staticmethod - def Add(aFace: BRepAdaptor_Surface, DrawUIso: bool, DrawVIso: bool, Deflection: float, NBUiso: int, NBViso: int, aDrawer: VrmlConverter_Drawer) -> str: ... + def Add( + aFace: BRepAdaptor_Surface, + DrawUIso: bool, + DrawVIso: bool, + Deflection: float, + NBUiso: int, + NBViso: int, + aDrawer: VrmlConverter_Drawer, + ) -> str: ... @staticmethod def AddUIso(aFace: BRepAdaptor_Surface, aDrawer: VrmlConverter_Drawer) -> str: ... @staticmethod @@ -182,7 +226,14 @@ class VrmlConverter_WFRestrictedFace: def Add(aFace: BRepAdaptor_Surface, aDrawer: VrmlConverter_Drawer) -> str: ... @overload @staticmethod - def Add(aFace: BRepAdaptor_Surface, DrawUIso: bool, DrawVIso: bool, NBUiso: int, NBViso: int, aDrawer: VrmlConverter_Drawer) -> str: ... + def Add( + aFace: BRepAdaptor_Surface, + DrawUIso: bool, + DrawVIso: bool, + NBUiso: int, + NBViso: int, + aDrawer: VrmlConverter_Drawer, + ) -> str: ... @staticmethod def AddUIso(aFace: BRepAdaptor_Surface, aDrawer: VrmlConverter_Drawer) -> str: ... @staticmethod @@ -203,4 +254,3 @@ class VrmlConverter_IsoAspect(VrmlConverter_LineAspect): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/VrmlData.i b/src/SWIG_files/wrapper/VrmlData.i index 525fc433d..c2b059731 100644 --- a/src/SWIG_files/wrapper/VrmlData.i +++ b/src/SWIG_files/wrapper/VrmlData.i @@ -171,6 +171,12 @@ VrmlData_NotImplemented = VrmlData_ErrorStatus.VrmlData_NotImplemented %pythoncode { def __len__(self): return self.Size() + + def __iter__(self): + it = VrmlData_ListIteratorOfListOfNode(self.this) + while it.More(): + yield it.Value() + it.Next() } }; %template(VrmlData_MapOfNode) NCollection_Map>; diff --git a/src/SWIG_files/wrapper/VrmlData.pyi b/src/SWIG_files/wrapper/VrmlData.pyi index b7fd79325..17527a7e5 100644 --- a/src/SWIG_files/wrapper/VrmlData.pyi +++ b/src/SWIG_files/wrapper/VrmlData.pyi @@ -14,18 +14,18 @@ from OCC.Core.Quantity import * VrmlData_MapOfNode = NewType("VrmlData_MapOfNode", Any) class VrmlData_ListOfNode: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: VrmlData_ListOfNode) -> VrmlData_ListOfNode: ... def Clear(self) -> None: ... def First(self) -> False: ... def Last(self) -> False: ... - def Append(self, theItem: False) -> False: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... - def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... class VrmlData_ErrorStatus(IntEnum): VrmlData_StatusOK: int = ... @@ -79,20 +79,33 @@ class VrmlData_Node(Standard_Transient): def OK(theStat: VrmlData_ErrorStatus) -> Tuple[bool, VrmlData_ErrorStatus]: ... def Read(self, theBuffer: VrmlData_InBuffer) -> VrmlData_ErrorStatus: ... @staticmethod - def ReadBoolean(theBuffer: VrmlData_InBuffer) -> Tuple[VrmlData_ErrorStatus, bool]: ... - def ReadNode(self, theBuffer: VrmlData_InBuffer, theNode: VrmlData_Node, Type: Optional[Standard_Type] = None) -> VrmlData_ErrorStatus: ... + def ReadBoolean( + theBuffer: VrmlData_InBuffer, + ) -> Tuple[VrmlData_ErrorStatus, bool]: ... + def ReadNode( + self, + theBuffer: VrmlData_InBuffer, + theNode: VrmlData_Node, + Type: Optional[Standard_Type] = None, + ) -> VrmlData_ErrorStatus: ... @staticmethod - def ReadString(theBuffer: VrmlData_InBuffer, theRes: str) -> VrmlData_ErrorStatus: ... + def ReadString( + theBuffer: VrmlData_InBuffer, theRes: str + ) -> VrmlData_ErrorStatus: ... def Scene(self) -> VrmlData_Scene: ... def Write(self, thePrefix: str) -> VrmlData_ErrorStatus: ... def WriteClosing(self) -> VrmlData_ErrorStatus: ... class VrmlData_Scene: - def AddNode(self, theN: VrmlData_Node, isTopLevel: Optional[bool] = True) -> VrmlData_Node: ... + def AddNode( + self, theN: VrmlData_Node, isTopLevel: Optional[bool] = True + ) -> VrmlData_Node: ... def Allocator(self) -> NCollection_IncAllocator: ... def Dump(self) -> str: ... @overload - def FindNode(self, theName: str, theType: Optional[Standard_Type] = 0) -> VrmlData_Node: ... + def FindNode( + self, theName: str, theType: Optional[Standard_Type] = 0 + ) -> VrmlData_Node: ... @overload def FindNode(self, theName: str, theLocation: gp_Trsf) -> VrmlData_Node: ... def GetIterator(self) -> False: ... @@ -100,27 +113,57 @@ class VrmlData_Scene: def GetShape(self, M: VrmlData_DataMapOfShapeAppearance) -> TopoDS_Shape: ... def IsDummyWrite(self) -> bool: ... def NamedNodesIterator(self) -> False: ... - def ReadArrIndex(self, theBuffer: VrmlData_InBuffer, theArr: int, theNBl: int) -> VrmlData_ErrorStatus: ... + def ReadArrIndex( + self, theBuffer: VrmlData_InBuffer, theArr: int, theNBl: int + ) -> VrmlData_ErrorStatus: ... @staticmethod def ReadLine(theBuffer: VrmlData_InBuffer) -> VrmlData_ErrorStatus: ... - def ReadReal(self, theBuffer: VrmlData_InBuffer, isApplyScale: bool, isOnlyPositive: bool) -> Tuple[VrmlData_ErrorStatus, float]: ... + def ReadReal( + self, theBuffer: VrmlData_InBuffer, isApplyScale: bool, isOnlyPositive: bool + ) -> Tuple[VrmlData_ErrorStatus, float]: ... @staticmethod def ReadWord(theBuffer: VrmlData_InBuffer, theStr: str) -> VrmlData_ErrorStatus: ... - def ReadXY(self, theBuffer: VrmlData_InBuffer, theXYZ: gp_XY, isApplyScale: bool, isOnlyPositive: bool) -> VrmlData_ErrorStatus: ... - def ReadXYZ(self, theBuffer: VrmlData_InBuffer, theXYZ: gp_XYZ, isApplyScale: bool, isOnlyPositive: bool) -> VrmlData_ErrorStatus: ... + def ReadXY( + self, + theBuffer: VrmlData_InBuffer, + theXYZ: gp_XY, + isApplyScale: bool, + isOnlyPositive: bool, + ) -> VrmlData_ErrorStatus: ... + def ReadXYZ( + self, + theBuffer: VrmlData_InBuffer, + theXYZ: gp_XYZ, + isApplyScale: bool, + isOnlyPositive: bool, + ) -> VrmlData_ErrorStatus: ... def SetIndent(self, nSpc: int) -> None: ... def SetLinearScale(self, theScale: float) -> None: ... def Status(self) -> VrmlData_ErrorStatus: ... def VrmlDirIterator(self) -> False: ... def WorldInfo(self) -> VrmlData_WorldInfo: ... - def WriteArrIndex(self, thePrefix: str, theArr: int, theNbBl: int) -> VrmlData_ErrorStatus: ... - def WriteLine(self, theLine0: str, theLine1: Optional[str] = 0, theIndent: Optional[int] = 0) -> VrmlData_ErrorStatus: ... - def WriteXYZ(self, theXYZ: gp_XYZ, isScale: bool, thePostfix: Optional[str] = 0) -> VrmlData_ErrorStatus: ... + def WriteArrIndex( + self, thePrefix: str, theArr: int, theNbBl: int + ) -> VrmlData_ErrorStatus: ... + def WriteLine( + self, theLine0: str, theLine1: Optional[str] = 0, theIndent: Optional[int] = 0 + ) -> VrmlData_ErrorStatus: ... + def WriteXYZ( + self, theXYZ: gp_XYZ, isScale: bool, thePostfix: Optional[str] = 0 + ) -> VrmlData_ErrorStatus: ... class VrmlData_ShapeConvert: - def __init__(self, theScene: VrmlData_Scene, theScale: Optional[float] = 1) -> None: ... + def __init__( + self, theScene: VrmlData_Scene, theScale: Optional[float] = 1 + ) -> None: ... def AddShape(self, theShape: TopoDS_Shape, theName: Optional[str] = 0) -> None: ... - def Convert(self, theExtractFaces: bool, theExtractEdges: bool, theDeflection: Optional[float] = 0.01, theDeflAngle: Optional[float] = 20*M_PI/180) -> None: ... + def Convert( + self, + theExtractFaces: bool, + theExtractEdges: bool, + theDeflection: Optional[float] = 0.01, + theDeflAngle: Optional[float] = 20 * M_PI / 180, + ) -> None: ... def ConvertDocument(self, theDoc: TDocStd_Document) -> None: ... class VrmlData_Appearance(VrmlData_Node): @@ -145,7 +188,12 @@ class VrmlData_Group(VrmlData_Node): @overload def __init__(self, isTransform: Optional[bool] = False) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: str, isTransform: Optional[bool] = False) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: str, + isTransform: Optional[bool] = False, + ) -> None: ... def AddNode(self, theNode: VrmlData_Node) -> VrmlData_Node: ... def Box(self) -> Bnd_B3f: ... def Clone(self, theOther: VrmlData_Node) -> VrmlData_Node: ... @@ -157,14 +205,23 @@ class VrmlData_Group(VrmlData_Node): def RemoveNode(self, theNode: VrmlData_Node) -> bool: ... def SetBox(self, theBox: Bnd_B3f) -> None: ... def SetTransform(self, theTrsf: gp_Trsf) -> bool: ... - def Shape(self, theShape: TopoDS_Shape, pMapApp: VrmlData_DataMapOfShapeAppearance) -> None: ... + def Shape( + self, theShape: TopoDS_Shape, pMapApp: VrmlData_DataMapOfShapeAppearance + ) -> None: ... def Write(self, thePrefix: str) -> VrmlData_ErrorStatus: ... class VrmlData_Material(VrmlData_Node): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: str, theAmbientIntensity: Optional[float] = -1, theShininess: Optional[float] = -1, theTransparency: Optional[float] = -1) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: str, + theAmbientIntensity: Optional[float] = -1, + theShininess: Optional[float] = -1, + theTransparency: Optional[float] = -1, + ) -> None: ... def AmbientColor(self) -> Quantity_Color: ... def AmbientIntensity(self) -> float: ... def Clone(self, theOther: VrmlData_Node) -> VrmlData_Node: ... @@ -211,7 +268,12 @@ class VrmlData_UnknownNode(VrmlData_Node): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: Optional[str] = 0, theTitle: Optional[str] = 0) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: Optional[str] = 0, + theTitle: Optional[str] = 0, + ) -> None: ... def GetTitle(self) -> str: ... def IsDefault(self) -> bool: ... def Read(self, theBuffer: VrmlData_InBuffer) -> VrmlData_ErrorStatus: ... @@ -220,7 +282,12 @@ class VrmlData_WorldInfo(VrmlData_Node): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: Optional[str] = 0, theTitle: Optional[str] = 0) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: Optional[str] = 0, + theTitle: Optional[str] = 0, + ) -> None: ... def AddInfo(self, theString: str) -> None: ... def Clone(self, theOther: VrmlData_Node) -> VrmlData_Node: ... def InfoIterator(self) -> str: ... @@ -234,7 +301,14 @@ class VrmlData_Box(VrmlData_Geometry): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: str, sizeX: Optional[float] = 2, sizeY: Optional[float] = 2, sizeZ: Optional[float] = 2) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: str, + sizeX: Optional[float] = 2, + sizeY: Optional[float] = 2, + sizeZ: Optional[float] = 2, + ) -> None: ... def Clone(self, theOther: VrmlData_Node) -> VrmlData_Node: ... def Read(self, theBuffer: VrmlData_InBuffer) -> VrmlData_ErrorStatus: ... def SetSize(self, theSize: gp_XYZ) -> None: ... @@ -254,7 +328,13 @@ class VrmlData_Cone(VrmlData_Geometry): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: str, theBottomRadius: Optional[float] = 1, theHeight: Optional[float] = 2) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: str, + theBottomRadius: Optional[float] = 1, + theHeight: Optional[float] = 2, + ) -> None: ... def BottomRadius(self) -> float: ... def Clone(self, theOther: VrmlData_Node) -> VrmlData_Node: ... def HasBottom(self) -> bool: ... @@ -279,7 +359,13 @@ class VrmlData_Cylinder(VrmlData_Geometry): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: str, theRadius: Optional[float] = 1, theHeight: Optional[float] = 2) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: str, + theRadius: Optional[float] = 1, + theHeight: Optional[float] = 2, + ) -> None: ... def Clone(self, theOther: VrmlData_Node) -> VrmlData_Node: ... def HasBottom(self) -> bool: ... def HasSide(self) -> bool: ... @@ -297,7 +383,14 @@ class VrmlData_ImageTexture(VrmlData_Texture): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: str, theURL: Optional[str] = 0, theRepS: Optional[bool] = False, theRepT: Optional[bool] = False) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: str, + theURL: Optional[str] = 0, + theRepS: Optional[bool] = False, + theRepT: Optional[bool] = False, + ) -> None: ... def Clone(self, theOther: VrmlData_Node) -> VrmlData_Node: ... def Read(self, theBuffer: VrmlData_InBuffer) -> VrmlData_ErrorStatus: ... def URL(self) -> False: ... @@ -307,7 +400,12 @@ class VrmlData_IndexedLineSet(VrmlData_Geometry): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: str, isColorPerVertex: Optional[bool] = True) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: str, + isColorPerVertex: Optional[bool] = True, + ) -> None: ... def ArrayColorInd(self, arrColorInd: int) -> False: ... def Clone(self, theOther: VrmlData_Node) -> VrmlData_Node: ... def Colors(self) -> VrmlData_Color: ... @@ -337,7 +435,9 @@ class VrmlData_Sphere(VrmlData_Geometry): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: str, theRadius: Optional[float] = 1) -> None: ... + def __init__( + self, theScene: VrmlData_Scene, theName: str, theRadius: Optional[float] = 1 + ) -> None: ... def Clone(self, theOther: VrmlData_Node) -> VrmlData_Node: ... def Radius(self) -> float: ... def Read(self, theBuffer: VrmlData_InBuffer) -> VrmlData_ErrorStatus: ... @@ -349,7 +449,15 @@ class VrmlData_IndexedFaceSet(VrmlData_Faceted): @overload def __init__(self) -> None: ... @overload - def __init__(self, theScene: VrmlData_Scene, theName: str, isCCW: Optional[bool] = True, isSolid: Optional[bool] = True, isConvex: Optional[bool] = True, theCreaseAngle: Optional[float] = 0) -> None: ... + def __init__( + self, + theScene: VrmlData_Scene, + theName: str, + isCCW: Optional[bool] = True, + isSolid: Optional[bool] = True, + isConvex: Optional[bool] = True, + theCreaseAngle: Optional[float] = 0, + ) -> None: ... def ArrayColorInd(self, arrColorInd: int) -> False: ... def ArrayNormalInd(self, arrNormalInd: int) -> False: ... def ArrayTextureCoordInd(self, arrTextureCoordInd: int) -> False: ... @@ -377,22 +485,21 @@ class VrmlData_IndexedFaceSet(VrmlData_Faceted): def TextureCoords(self) -> VrmlData_TextureCoordinate: ... def Write(self, thePrefix: str) -> VrmlData_ErrorStatus: ... -#classnotwrapped +# classnotwrapped class VrmlData_InBuffer: ... -#classnotwrapped +# classnotwrapped class VrmlData_ArrayVec3d: ... -#classnotwrapped +# classnotwrapped class VrmlData_Texture: ... -#classnotwrapped +# classnotwrapped class VrmlData_TextureTransform: ... -#classnotwrapped +# classnotwrapped class VrmlData_Faceted: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XBRepMesh.pyi b/src/SWIG_files/wrapper/XBRepMesh.pyi index a21014701..2da335201 100644 --- a/src/SWIG_files/wrapper/XBRepMesh.pyi +++ b/src/SWIG_files/wrapper/XBRepMesh.pyi @@ -6,12 +6,15 @@ from OCC.Core.NCollection import * from OCC.Core.TopoDS import * from OCC.Core.BRepMesh import * - class xbrepmesh: @staticmethod - def Discret(theShape: TopoDS_Shape, theDeflection: float, theAngle: float, theAlgo: BRepMesh_DiscretRoot) -> int: ... + def Discret( + theShape: TopoDS_Shape, + theDeflection: float, + theAngle: float, + theAlgo: BRepMesh_DiscretRoot, + ) -> int: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XCAFApp.pyi b/src/SWIG_files/wrapper/XCAFApp.pyi index d699479a6..3f6c04f6f 100644 --- a/src/SWIG_files/wrapper/XCAFApp.pyi +++ b/src/SWIG_files/wrapper/XCAFApp.pyi @@ -6,9 +6,8 @@ from OCC.Core.NCollection import * from OCC.Core.TDocStd import * from OCC.Core.CDM import * - class XCAFApp_Application(TDocStd_Application): - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def GetApplication() -> XCAFApp_Application: ... def InitDocument(self, aDoc: CDM_Document) -> None: ... @@ -17,4 +16,3 @@ class XCAFApp_Application(TDocStd_Application): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XCAFDimTolObjects.pyi b/src/SWIG_files/wrapper/XCAFDimTolObjects.pyi index 5b578482a..ab3caa8ac 100644 --- a/src/SWIG_files/wrapper/XCAFDimTolObjects.pyi +++ b/src/SWIG_files/wrapper/XCAFDimTolObjects.pyi @@ -9,96 +9,149 @@ from OCC.Core.TCollection import * from OCC.Core.TColStd import * from OCC.Core.TDocStd import * - class XCAFDimTolObjects_DatumModifiersSequence: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign( + self, theItem: XCAFDimTolObjects_DatumSingleModif + ) -> XCAFDimTolObjects_DatumSingleModif: ... def Clear(self) -> None: ... def First(self) -> XCAFDimTolObjects_DatumSingleModif: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> XCAFDimTolObjects_DatumSingleModif: ... def Length(self) -> int: ... - def Append(self, theItem: XCAFDimTolObjects_DatumSingleModif) -> XCAFDimTolObjects_DatumSingleModif: ... - def Prepend(self, theItem: XCAFDimTolObjects_DatumSingleModif) -> XCAFDimTolObjects_DatumSingleModif: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: XCAFDimTolObjects_DatumSingleModif + ) -> XCAFDimTolObjects_DatumSingleModif: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: XCAFDimTolObjects_DatumSingleModif + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> XCAFDimTolObjects_DatumSingleModif: ... - def SetValue(self, theIndex: int, theValue: XCAFDimTolObjects_DatumSingleModif) -> None: ... - -class XCAFDimTolObjects_DatumObjectSequence: def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class XCAFDimTolObjects_DatumObjectSequence: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class XCAFDimTolObjects_DimensionModifiersSequence: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class XCAFDimTolObjects_DimensionModifiersSequence: + def Assign( + self, theItem: XCAFDimTolObjects_DimensionModif + ) -> XCAFDimTolObjects_DimensionModif: ... def Clear(self) -> None: ... def First(self) -> XCAFDimTolObjects_DimensionModif: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> XCAFDimTolObjects_DimensionModif: ... def Length(self) -> int: ... - def Append(self, theItem: XCAFDimTolObjects_DimensionModif) -> XCAFDimTolObjects_DimensionModif: ... - def Prepend(self, theItem: XCAFDimTolObjects_DimensionModif) -> XCAFDimTolObjects_DimensionModif: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: XCAFDimTolObjects_DimensionModif + ) -> XCAFDimTolObjects_DimensionModif: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: XCAFDimTolObjects_DimensionModif + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> XCAFDimTolObjects_DimensionModif: ... - def SetValue(self, theIndex: int, theValue: XCAFDimTolObjects_DimensionModif) -> None: ... - -class XCAFDimTolObjects_DimensionObjectSequence: def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class XCAFDimTolObjects_DimensionObjectSequence: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... - -class XCAFDimTolObjects_GeomToleranceModifiersSequence: + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class XCAFDimTolObjects_GeomToleranceModifiersSequence: + def Assign( + self, theItem: XCAFDimTolObjects_GeomToleranceModif + ) -> XCAFDimTolObjects_GeomToleranceModif: ... def Clear(self) -> None: ... def First(self) -> XCAFDimTolObjects_GeomToleranceModif: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> XCAFDimTolObjects_GeomToleranceModif: ... def Length(self) -> int: ... - def Append(self, theItem: XCAFDimTolObjects_GeomToleranceModif) -> XCAFDimTolObjects_GeomToleranceModif: ... - def Prepend(self, theItem: XCAFDimTolObjects_GeomToleranceModif) -> XCAFDimTolObjects_GeomToleranceModif: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: XCAFDimTolObjects_GeomToleranceModif + ) -> XCAFDimTolObjects_GeomToleranceModif: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... + def SetValue( + self, theIndex: int, theValue: XCAFDimTolObjects_GeomToleranceModif + ) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... def Value(self, theIndex: int) -> XCAFDimTolObjects_GeomToleranceModif: ... - def SetValue(self, theIndex: int, theValue: XCAFDimTolObjects_GeomToleranceModif) -> None: ... - -class XCAFDimTolObjects_GeomToleranceObjectSequence: def __init__(self) -> None: ... def __len__(self) -> int: ... - def Size(self) -> int: ... + +class XCAFDimTolObjects_GeomToleranceObjectSequence: + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class XCAFDimTolObjects_AngularQualifier(IntEnum): XCAFDimTolObjects_AngularQualifier_None: int = ... @@ -106,10 +159,18 @@ class XCAFDimTolObjects_AngularQualifier(IntEnum): XCAFDimTolObjects_AngularQualifier_Large: int = ... XCAFDimTolObjects_AngularQualifier_Equal: int = ... -XCAFDimTolObjects_AngularQualifier_None = XCAFDimTolObjects_AngularQualifier.XCAFDimTolObjects_AngularQualifier_None -XCAFDimTolObjects_AngularQualifier_Small = XCAFDimTolObjects_AngularQualifier.XCAFDimTolObjects_AngularQualifier_Small -XCAFDimTolObjects_AngularQualifier_Large = XCAFDimTolObjects_AngularQualifier.XCAFDimTolObjects_AngularQualifier_Large -XCAFDimTolObjects_AngularQualifier_Equal = XCAFDimTolObjects_AngularQualifier.XCAFDimTolObjects_AngularQualifier_Equal +XCAFDimTolObjects_AngularQualifier_None = ( + XCAFDimTolObjects_AngularQualifier.XCAFDimTolObjects_AngularQualifier_None +) +XCAFDimTolObjects_AngularQualifier_Small = ( + XCAFDimTolObjects_AngularQualifier.XCAFDimTolObjects_AngularQualifier_Small +) +XCAFDimTolObjects_AngularQualifier_Large = ( + XCAFDimTolObjects_AngularQualifier.XCAFDimTolObjects_AngularQualifier_Large +) +XCAFDimTolObjects_AngularQualifier_Equal = ( + XCAFDimTolObjects_AngularQualifier.XCAFDimTolObjects_AngularQualifier_Equal +) class XCAFDimTolObjects_DatumModifWithValue(IntEnum): XCAFDimTolObjects_DatumModifWithValue_None: int = ... @@ -118,11 +179,21 @@ class XCAFDimTolObjects_DatumModifWithValue(IntEnum): XCAFDimTolObjects_DatumModifWithValue_Projected: int = ... XCAFDimTolObjects_DatumModifWithValue_Spherical: int = ... -XCAFDimTolObjects_DatumModifWithValue_None = XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_None -XCAFDimTolObjects_DatumModifWithValue_CircularOrCylindrical = XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_CircularOrCylindrical -XCAFDimTolObjects_DatumModifWithValue_Distance = XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_Distance -XCAFDimTolObjects_DatumModifWithValue_Projected = XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_Projected -XCAFDimTolObjects_DatumModifWithValue_Spherical = XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_Spherical +XCAFDimTolObjects_DatumModifWithValue_None = ( + XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_None +) +XCAFDimTolObjects_DatumModifWithValue_CircularOrCylindrical = ( + XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_CircularOrCylindrical +) +XCAFDimTolObjects_DatumModifWithValue_Distance = ( + XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_Distance +) +XCAFDimTolObjects_DatumModifWithValue_Projected = ( + XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_Projected +) +XCAFDimTolObjects_DatumModifWithValue_Spherical = ( + XCAFDimTolObjects_DatumModifWithValue.XCAFDimTolObjects_DatumModifWithValue_Spherical +) class XCAFDimTolObjects_DatumSingleModif(IntEnum): XCAFDimTolObjects_DatumSingleModif_AnyCrossSection: int = ... @@ -148,28 +219,72 @@ class XCAFDimTolObjects_DatumSingleModif(IntEnum): XCAFDimTolObjects_DatumSingleModif_Point: int = ... XCAFDimTolObjects_DatumSingleModif_Translation: int = ... -XCAFDimTolObjects_DatumSingleModif_AnyCrossSection = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_AnyCrossSection -XCAFDimTolObjects_DatumSingleModif_Any_LongitudinalSection = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Any_LongitudinalSection -XCAFDimTolObjects_DatumSingleModif_Basic = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Basic -XCAFDimTolObjects_DatumSingleModif_ContactingFeature = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_ContactingFeature -XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintU = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintU -XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintV = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintV -XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintW = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintW -XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintX = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintX -XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintY = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintY -XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintZ = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintZ -XCAFDimTolObjects_DatumSingleModif_DistanceVariable = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DistanceVariable -XCAFDimTolObjects_DatumSingleModif_FreeState = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_FreeState -XCAFDimTolObjects_DatumSingleModif_LeastMaterialRequirement = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_LeastMaterialRequirement -XCAFDimTolObjects_DatumSingleModif_Line = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Line -XCAFDimTolObjects_DatumSingleModif_MajorDiameter = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_MajorDiameter -XCAFDimTolObjects_DatumSingleModif_MaximumMaterialRequirement = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_MaximumMaterialRequirement -XCAFDimTolObjects_DatumSingleModif_MinorDiameter = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_MinorDiameter -XCAFDimTolObjects_DatumSingleModif_Orientation = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Orientation -XCAFDimTolObjects_DatumSingleModif_PitchDiameter = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_PitchDiameter -XCAFDimTolObjects_DatumSingleModif_Plane = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Plane -XCAFDimTolObjects_DatumSingleModif_Point = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Point -XCAFDimTolObjects_DatumSingleModif_Translation = XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Translation +XCAFDimTolObjects_DatumSingleModif_AnyCrossSection = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_AnyCrossSection +) +XCAFDimTolObjects_DatumSingleModif_Any_LongitudinalSection = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Any_LongitudinalSection +) +XCAFDimTolObjects_DatumSingleModif_Basic = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Basic +) +XCAFDimTolObjects_DatumSingleModif_ContactingFeature = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_ContactingFeature +) +XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintU = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintU +) +XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintV = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintV +) +XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintW = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintW +) +XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintX = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintX +) +XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintY = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintY +) +XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintZ = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DegreeOfFreedomConstraintZ +) +XCAFDimTolObjects_DatumSingleModif_DistanceVariable = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_DistanceVariable +) +XCAFDimTolObjects_DatumSingleModif_FreeState = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_FreeState +) +XCAFDimTolObjects_DatumSingleModif_LeastMaterialRequirement = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_LeastMaterialRequirement +) +XCAFDimTolObjects_DatumSingleModif_Line = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Line +) +XCAFDimTolObjects_DatumSingleModif_MajorDiameter = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_MajorDiameter +) +XCAFDimTolObjects_DatumSingleModif_MaximumMaterialRequirement = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_MaximumMaterialRequirement +) +XCAFDimTolObjects_DatumSingleModif_MinorDiameter = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_MinorDiameter +) +XCAFDimTolObjects_DatumSingleModif_Orientation = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Orientation +) +XCAFDimTolObjects_DatumSingleModif_PitchDiameter = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_PitchDiameter +) +XCAFDimTolObjects_DatumSingleModif_Plane = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Plane +) +XCAFDimTolObjects_DatumSingleModif_Point = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Point +) +XCAFDimTolObjects_DatumSingleModif_Translation = ( + XCAFDimTolObjects_DatumSingleModif.XCAFDimTolObjects_DatumSingleModif_Translation +) class XCAFDimTolObjects_DatumTargetType(IntEnum): XCAFDimTolObjects_DatumTargetType_Point: int = ... @@ -178,11 +293,21 @@ class XCAFDimTolObjects_DatumTargetType(IntEnum): XCAFDimTolObjects_DatumTargetType_Circle: int = ... XCAFDimTolObjects_DatumTargetType_Area: int = ... -XCAFDimTolObjects_DatumTargetType_Point = XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Point -XCAFDimTolObjects_DatumTargetType_Line = XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Line -XCAFDimTolObjects_DatumTargetType_Rectangle = XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Rectangle -XCAFDimTolObjects_DatumTargetType_Circle = XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Circle -XCAFDimTolObjects_DatumTargetType_Area = XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Area +XCAFDimTolObjects_DatumTargetType_Point = ( + XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Point +) +XCAFDimTolObjects_DatumTargetType_Line = ( + XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Line +) +XCAFDimTolObjects_DatumTargetType_Rectangle = ( + XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Rectangle +) +XCAFDimTolObjects_DatumTargetType_Circle = ( + XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Circle +) +XCAFDimTolObjects_DatumTargetType_Area = ( + XCAFDimTolObjects_DatumTargetType.XCAFDimTolObjects_DatumTargetType_Area +) class XCAFDimTolObjects_DimensionFormVariance(IntEnum): XCAFDimTolObjects_DimensionFormVariance_None: int = ... @@ -215,35 +340,93 @@ class XCAFDimTolObjects_DimensionFormVariance(IntEnum): XCAFDimTolObjects_DimensionFormVariance_ZB: int = ... XCAFDimTolObjects_DimensionFormVariance_ZC: int = ... -XCAFDimTolObjects_DimensionFormVariance_None = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_None -XCAFDimTolObjects_DimensionFormVariance_A = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_A -XCAFDimTolObjects_DimensionFormVariance_B = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_B -XCAFDimTolObjects_DimensionFormVariance_C = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_C -XCAFDimTolObjects_DimensionFormVariance_CD = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_CD -XCAFDimTolObjects_DimensionFormVariance_D = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_D -XCAFDimTolObjects_DimensionFormVariance_E = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_E -XCAFDimTolObjects_DimensionFormVariance_EF = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_EF -XCAFDimTolObjects_DimensionFormVariance_F = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_F -XCAFDimTolObjects_DimensionFormVariance_FG = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_FG -XCAFDimTolObjects_DimensionFormVariance_G = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_G -XCAFDimTolObjects_DimensionFormVariance_H = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_H -XCAFDimTolObjects_DimensionFormVariance_JS = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_JS -XCAFDimTolObjects_DimensionFormVariance_J = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_J -XCAFDimTolObjects_DimensionFormVariance_K = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_K -XCAFDimTolObjects_DimensionFormVariance_M = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_M -XCAFDimTolObjects_DimensionFormVariance_N = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_N -XCAFDimTolObjects_DimensionFormVariance_P = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_P -XCAFDimTolObjects_DimensionFormVariance_R = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_R -XCAFDimTolObjects_DimensionFormVariance_S = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_S -XCAFDimTolObjects_DimensionFormVariance_T = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_T -XCAFDimTolObjects_DimensionFormVariance_U = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_U -XCAFDimTolObjects_DimensionFormVariance_V = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_V -XCAFDimTolObjects_DimensionFormVariance_X = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_X -XCAFDimTolObjects_DimensionFormVariance_Y = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_Y -XCAFDimTolObjects_DimensionFormVariance_Z = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_Z -XCAFDimTolObjects_DimensionFormVariance_ZA = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_ZA -XCAFDimTolObjects_DimensionFormVariance_ZB = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_ZB -XCAFDimTolObjects_DimensionFormVariance_ZC = XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_ZC +XCAFDimTolObjects_DimensionFormVariance_None = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_None +) +XCAFDimTolObjects_DimensionFormVariance_A = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_A +) +XCAFDimTolObjects_DimensionFormVariance_B = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_B +) +XCAFDimTolObjects_DimensionFormVariance_C = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_C +) +XCAFDimTolObjects_DimensionFormVariance_CD = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_CD +) +XCAFDimTolObjects_DimensionFormVariance_D = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_D +) +XCAFDimTolObjects_DimensionFormVariance_E = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_E +) +XCAFDimTolObjects_DimensionFormVariance_EF = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_EF +) +XCAFDimTolObjects_DimensionFormVariance_F = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_F +) +XCAFDimTolObjects_DimensionFormVariance_FG = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_FG +) +XCAFDimTolObjects_DimensionFormVariance_G = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_G +) +XCAFDimTolObjects_DimensionFormVariance_H = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_H +) +XCAFDimTolObjects_DimensionFormVariance_JS = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_JS +) +XCAFDimTolObjects_DimensionFormVariance_J = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_J +) +XCAFDimTolObjects_DimensionFormVariance_K = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_K +) +XCAFDimTolObjects_DimensionFormVariance_M = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_M +) +XCAFDimTolObjects_DimensionFormVariance_N = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_N +) +XCAFDimTolObjects_DimensionFormVariance_P = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_P +) +XCAFDimTolObjects_DimensionFormVariance_R = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_R +) +XCAFDimTolObjects_DimensionFormVariance_S = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_S +) +XCAFDimTolObjects_DimensionFormVariance_T = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_T +) +XCAFDimTolObjects_DimensionFormVariance_U = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_U +) +XCAFDimTolObjects_DimensionFormVariance_V = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_V +) +XCAFDimTolObjects_DimensionFormVariance_X = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_X +) +XCAFDimTolObjects_DimensionFormVariance_Y = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_Y +) +XCAFDimTolObjects_DimensionFormVariance_Z = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_Z +) +XCAFDimTolObjects_DimensionFormVariance_ZA = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_ZA +) +XCAFDimTolObjects_DimensionFormVariance_ZB = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_ZB +) +XCAFDimTolObjects_DimensionFormVariance_ZC = ( + XCAFDimTolObjects_DimensionFormVariance.XCAFDimTolObjects_DimensionFormVariance_ZC +) class XCAFDimTolObjects_DimensionGrade(IntEnum): XCAFDimTolObjects_DimensionGrade_IT01: int = ... @@ -267,26 +450,66 @@ class XCAFDimTolObjects_DimensionGrade(IntEnum): XCAFDimTolObjects_DimensionGrade_IT17: int = ... XCAFDimTolObjects_DimensionGrade_IT18: int = ... -XCAFDimTolObjects_DimensionGrade_IT01 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT01 -XCAFDimTolObjects_DimensionGrade_IT0 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT0 -XCAFDimTolObjects_DimensionGrade_IT1 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT1 -XCAFDimTolObjects_DimensionGrade_IT2 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT2 -XCAFDimTolObjects_DimensionGrade_IT3 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT3 -XCAFDimTolObjects_DimensionGrade_IT4 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT4 -XCAFDimTolObjects_DimensionGrade_IT5 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT5 -XCAFDimTolObjects_DimensionGrade_IT6 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT6 -XCAFDimTolObjects_DimensionGrade_IT7 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT7 -XCAFDimTolObjects_DimensionGrade_IT8 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT8 -XCAFDimTolObjects_DimensionGrade_IT9 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT9 -XCAFDimTolObjects_DimensionGrade_IT10 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT10 -XCAFDimTolObjects_DimensionGrade_IT11 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT11 -XCAFDimTolObjects_DimensionGrade_IT12 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT12 -XCAFDimTolObjects_DimensionGrade_IT13 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT13 -XCAFDimTolObjects_DimensionGrade_IT14 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT14 -XCAFDimTolObjects_DimensionGrade_IT15 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT15 -XCAFDimTolObjects_DimensionGrade_IT16 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT16 -XCAFDimTolObjects_DimensionGrade_IT17 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT17 -XCAFDimTolObjects_DimensionGrade_IT18 = XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT18 +XCAFDimTolObjects_DimensionGrade_IT01 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT01 +) +XCAFDimTolObjects_DimensionGrade_IT0 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT0 +) +XCAFDimTolObjects_DimensionGrade_IT1 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT1 +) +XCAFDimTolObjects_DimensionGrade_IT2 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT2 +) +XCAFDimTolObjects_DimensionGrade_IT3 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT3 +) +XCAFDimTolObjects_DimensionGrade_IT4 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT4 +) +XCAFDimTolObjects_DimensionGrade_IT5 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT5 +) +XCAFDimTolObjects_DimensionGrade_IT6 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT6 +) +XCAFDimTolObjects_DimensionGrade_IT7 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT7 +) +XCAFDimTolObjects_DimensionGrade_IT8 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT8 +) +XCAFDimTolObjects_DimensionGrade_IT9 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT9 +) +XCAFDimTolObjects_DimensionGrade_IT10 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT10 +) +XCAFDimTolObjects_DimensionGrade_IT11 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT11 +) +XCAFDimTolObjects_DimensionGrade_IT12 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT12 +) +XCAFDimTolObjects_DimensionGrade_IT13 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT13 +) +XCAFDimTolObjects_DimensionGrade_IT14 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT14 +) +XCAFDimTolObjects_DimensionGrade_IT15 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT15 +) +XCAFDimTolObjects_DimensionGrade_IT16 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT16 +) +XCAFDimTolObjects_DimensionGrade_IT17 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT17 +) +XCAFDimTolObjects_DimensionGrade_IT18 = ( + XCAFDimTolObjects_DimensionGrade.XCAFDimTolObjects_DimensionGrade_IT18 +) class XCAFDimTolObjects_DimensionModif(IntEnum): XCAFDimTolObjects_DimensionModif_ControlledRadius: int = ... @@ -314,30 +537,78 @@ class XCAFDimTolObjects_DimensionModif(IntEnum): XCAFDimTolObjects_DimensionModif_FreeStateCondition: int = ... XCAFDimTolObjects_DimensionModif_Between: int = ... -XCAFDimTolObjects_DimensionModif_ControlledRadius = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_ControlledRadius -XCAFDimTolObjects_DimensionModif_Square = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_Square -XCAFDimTolObjects_DimensionModif_StatisticalTolerance = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_StatisticalTolerance -XCAFDimTolObjects_DimensionModif_ContinuousFeature = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_ContinuousFeature -XCAFDimTolObjects_DimensionModif_TwoPointSize = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_TwoPointSize -XCAFDimTolObjects_DimensionModif_LocalSizeDefinedBySphere = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_LocalSizeDefinedBySphere -XCAFDimTolObjects_DimensionModif_LeastSquaresAssociationCriterion = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_LeastSquaresAssociationCriterion -XCAFDimTolObjects_DimensionModif_MaximumInscribedAssociation = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MaximumInscribedAssociation -XCAFDimTolObjects_DimensionModif_MinimumCircumscribedAssociation = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MinimumCircumscribedAssociation -XCAFDimTolObjects_DimensionModif_CircumferenceDiameter = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_CircumferenceDiameter -XCAFDimTolObjects_DimensionModif_AreaDiameter = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_AreaDiameter -XCAFDimTolObjects_DimensionModif_VolumeDiameter = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_VolumeDiameter -XCAFDimTolObjects_DimensionModif_MaximumSize = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MaximumSize -XCAFDimTolObjects_DimensionModif_MinimumSize = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MinimumSize -XCAFDimTolObjects_DimensionModif_AverageSize = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_AverageSize -XCAFDimTolObjects_DimensionModif_MedianSize = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MedianSize -XCAFDimTolObjects_DimensionModif_MidRangeSize = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MidRangeSize -XCAFDimTolObjects_DimensionModif_RangeOfSizes = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_RangeOfSizes -XCAFDimTolObjects_DimensionModif_AnyRestrictedPortionOfFeature = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_AnyRestrictedPortionOfFeature -XCAFDimTolObjects_DimensionModif_AnyCrossSection = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_AnyCrossSection -XCAFDimTolObjects_DimensionModif_SpecificFixedCrossSection = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_SpecificFixedCrossSection -XCAFDimTolObjects_DimensionModif_CommonTolerance = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_CommonTolerance -XCAFDimTolObjects_DimensionModif_FreeStateCondition = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_FreeStateCondition -XCAFDimTolObjects_DimensionModif_Between = XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_Between +XCAFDimTolObjects_DimensionModif_ControlledRadius = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_ControlledRadius +) +XCAFDimTolObjects_DimensionModif_Square = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_Square +) +XCAFDimTolObjects_DimensionModif_StatisticalTolerance = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_StatisticalTolerance +) +XCAFDimTolObjects_DimensionModif_ContinuousFeature = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_ContinuousFeature +) +XCAFDimTolObjects_DimensionModif_TwoPointSize = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_TwoPointSize +) +XCAFDimTolObjects_DimensionModif_LocalSizeDefinedBySphere = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_LocalSizeDefinedBySphere +) +XCAFDimTolObjects_DimensionModif_LeastSquaresAssociationCriterion = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_LeastSquaresAssociationCriterion +) +XCAFDimTolObjects_DimensionModif_MaximumInscribedAssociation = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MaximumInscribedAssociation +) +XCAFDimTolObjects_DimensionModif_MinimumCircumscribedAssociation = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MinimumCircumscribedAssociation +) +XCAFDimTolObjects_DimensionModif_CircumferenceDiameter = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_CircumferenceDiameter +) +XCAFDimTolObjects_DimensionModif_AreaDiameter = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_AreaDiameter +) +XCAFDimTolObjects_DimensionModif_VolumeDiameter = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_VolumeDiameter +) +XCAFDimTolObjects_DimensionModif_MaximumSize = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MaximumSize +) +XCAFDimTolObjects_DimensionModif_MinimumSize = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MinimumSize +) +XCAFDimTolObjects_DimensionModif_AverageSize = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_AverageSize +) +XCAFDimTolObjects_DimensionModif_MedianSize = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MedianSize +) +XCAFDimTolObjects_DimensionModif_MidRangeSize = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_MidRangeSize +) +XCAFDimTolObjects_DimensionModif_RangeOfSizes = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_RangeOfSizes +) +XCAFDimTolObjects_DimensionModif_AnyRestrictedPortionOfFeature = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_AnyRestrictedPortionOfFeature +) +XCAFDimTolObjects_DimensionModif_AnyCrossSection = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_AnyCrossSection +) +XCAFDimTolObjects_DimensionModif_SpecificFixedCrossSection = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_SpecificFixedCrossSection +) +XCAFDimTolObjects_DimensionModif_CommonTolerance = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_CommonTolerance +) +XCAFDimTolObjects_DimensionModif_FreeStateCondition = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_FreeStateCondition +) +XCAFDimTolObjects_DimensionModif_Between = ( + XCAFDimTolObjects_DimensionModif.XCAFDimTolObjects_DimensionModif_Between +) class XCAFDimTolObjects_DimensionQualifier(IntEnum): XCAFDimTolObjects_DimensionQualifier_None: int = ... @@ -345,10 +616,18 @@ class XCAFDimTolObjects_DimensionQualifier(IntEnum): XCAFDimTolObjects_DimensionQualifier_Max: int = ... XCAFDimTolObjects_DimensionQualifier_Avg: int = ... -XCAFDimTolObjects_DimensionQualifier_None = XCAFDimTolObjects_DimensionQualifier.XCAFDimTolObjects_DimensionQualifier_None -XCAFDimTolObjects_DimensionQualifier_Min = XCAFDimTolObjects_DimensionQualifier.XCAFDimTolObjects_DimensionQualifier_Min -XCAFDimTolObjects_DimensionQualifier_Max = XCAFDimTolObjects_DimensionQualifier.XCAFDimTolObjects_DimensionQualifier_Max -XCAFDimTolObjects_DimensionQualifier_Avg = XCAFDimTolObjects_DimensionQualifier.XCAFDimTolObjects_DimensionQualifier_Avg +XCAFDimTolObjects_DimensionQualifier_None = ( + XCAFDimTolObjects_DimensionQualifier.XCAFDimTolObjects_DimensionQualifier_None +) +XCAFDimTolObjects_DimensionQualifier_Min = ( + XCAFDimTolObjects_DimensionQualifier.XCAFDimTolObjects_DimensionQualifier_Min +) +XCAFDimTolObjects_DimensionQualifier_Max = ( + XCAFDimTolObjects_DimensionQualifier.XCAFDimTolObjects_DimensionQualifier_Max +) +XCAFDimTolObjects_DimensionQualifier_Avg = ( + XCAFDimTolObjects_DimensionQualifier.XCAFDimTolObjects_DimensionQualifier_Avg +) class XCAFDimTolObjects_DimensionType(IntEnum): XCAFDimTolObjects_DimensionType_Location_None: int = ... @@ -384,47 +663,117 @@ class XCAFDimTolObjects_DimensionType(IntEnum): XCAFDimTolObjects_DimensionType_CommonLabel: int = ... XCAFDimTolObjects_DimensionType_DimensionPresentation: int = ... -XCAFDimTolObjects_DimensionType_Location_None = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_None -XCAFDimTolObjects_DimensionType_Location_CurvedDistance = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_CurvedDistance -XCAFDimTolObjects_DimensionType_Location_LinearDistance = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance -XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromCenterToOuter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromCenterToOuter -XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromCenterToInner = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromCenterToInner -XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToCenter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToCenter -XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToOuter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToOuter -XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToInner = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToInner -XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToCenter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToCenter -XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToOuter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToOuter -XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToInner = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToInner -XCAFDimTolObjects_DimensionType_Location_Angular = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_Angular -XCAFDimTolObjects_DimensionType_Location_Oriented = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_Oriented -XCAFDimTolObjects_DimensionType_Location_WithPath = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_WithPath -XCAFDimTolObjects_DimensionType_Size_CurveLength = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_CurveLength -XCAFDimTolObjects_DimensionType_Size_Diameter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_Diameter -XCAFDimTolObjects_DimensionType_Size_SphericalDiameter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_SphericalDiameter -XCAFDimTolObjects_DimensionType_Size_Radius = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_Radius -XCAFDimTolObjects_DimensionType_Size_SphericalRadius = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_SphericalRadius -XCAFDimTolObjects_DimensionType_Size_ToroidalMinorDiameter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalMinorDiameter -XCAFDimTolObjects_DimensionType_Size_ToroidalMajorDiameter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalMajorDiameter -XCAFDimTolObjects_DimensionType_Size_ToroidalMinorRadius = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalMinorRadius -XCAFDimTolObjects_DimensionType_Size_ToroidalMajorRadius = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalMajorRadius -XCAFDimTolObjects_DimensionType_Size_ToroidalHighMajorDiameter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalHighMajorDiameter -XCAFDimTolObjects_DimensionType_Size_ToroidalLowMajorDiameter = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalLowMajorDiameter -XCAFDimTolObjects_DimensionType_Size_ToroidalHighMajorRadius = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalHighMajorRadius -XCAFDimTolObjects_DimensionType_Size_ToroidalLowMajorRadius = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalLowMajorRadius -XCAFDimTolObjects_DimensionType_Size_Thickness = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_Thickness -XCAFDimTolObjects_DimensionType_Size_Angular = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_Angular -XCAFDimTolObjects_DimensionType_Size_WithPath = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_WithPath -XCAFDimTolObjects_DimensionType_CommonLabel = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_CommonLabel -XCAFDimTolObjects_DimensionType_DimensionPresentation = XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_DimensionPresentation +XCAFDimTolObjects_DimensionType_Location_None = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_None +) +XCAFDimTolObjects_DimensionType_Location_CurvedDistance = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_CurvedDistance +) +XCAFDimTolObjects_DimensionType_Location_LinearDistance = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance +) +XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromCenterToOuter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromCenterToOuter +) +XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromCenterToInner = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromCenterToInner +) +XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToCenter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToCenter +) +XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToOuter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToOuter +) +XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToInner = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromOuterToInner +) +XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToCenter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToCenter +) +XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToOuter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToOuter +) +XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToInner = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_LinearDistance_FromInnerToInner +) +XCAFDimTolObjects_DimensionType_Location_Angular = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_Angular +) +XCAFDimTolObjects_DimensionType_Location_Oriented = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_Oriented +) +XCAFDimTolObjects_DimensionType_Location_WithPath = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Location_WithPath +) +XCAFDimTolObjects_DimensionType_Size_CurveLength = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_CurveLength +) +XCAFDimTolObjects_DimensionType_Size_Diameter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_Diameter +) +XCAFDimTolObjects_DimensionType_Size_SphericalDiameter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_SphericalDiameter +) +XCAFDimTolObjects_DimensionType_Size_Radius = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_Radius +) +XCAFDimTolObjects_DimensionType_Size_SphericalRadius = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_SphericalRadius +) +XCAFDimTolObjects_DimensionType_Size_ToroidalMinorDiameter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalMinorDiameter +) +XCAFDimTolObjects_DimensionType_Size_ToroidalMajorDiameter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalMajorDiameter +) +XCAFDimTolObjects_DimensionType_Size_ToroidalMinorRadius = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalMinorRadius +) +XCAFDimTolObjects_DimensionType_Size_ToroidalMajorRadius = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalMajorRadius +) +XCAFDimTolObjects_DimensionType_Size_ToroidalHighMajorDiameter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalHighMajorDiameter +) +XCAFDimTolObjects_DimensionType_Size_ToroidalLowMajorDiameter = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalLowMajorDiameter +) +XCAFDimTolObjects_DimensionType_Size_ToroidalHighMajorRadius = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalHighMajorRadius +) +XCAFDimTolObjects_DimensionType_Size_ToroidalLowMajorRadius = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_ToroidalLowMajorRadius +) +XCAFDimTolObjects_DimensionType_Size_Thickness = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_Thickness +) +XCAFDimTolObjects_DimensionType_Size_Angular = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_Angular +) +XCAFDimTolObjects_DimensionType_Size_WithPath = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_Size_WithPath +) +XCAFDimTolObjects_DimensionType_CommonLabel = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_CommonLabel +) +XCAFDimTolObjects_DimensionType_DimensionPresentation = ( + XCAFDimTolObjects_DimensionType.XCAFDimTolObjects_DimensionType_DimensionPresentation +) class XCAFDimTolObjects_GeomToleranceMatReqModif(IntEnum): XCAFDimTolObjects_GeomToleranceMatReqModif_None: int = ... XCAFDimTolObjects_GeomToleranceMatReqModif_M: int = ... XCAFDimTolObjects_GeomToleranceMatReqModif_L: int = ... -XCAFDimTolObjects_GeomToleranceMatReqModif_None = XCAFDimTolObjects_GeomToleranceMatReqModif.XCAFDimTolObjects_GeomToleranceMatReqModif_None -XCAFDimTolObjects_GeomToleranceMatReqModif_M = XCAFDimTolObjects_GeomToleranceMatReqModif.XCAFDimTolObjects_GeomToleranceMatReqModif_M -XCAFDimTolObjects_GeomToleranceMatReqModif_L = XCAFDimTolObjects_GeomToleranceMatReqModif.XCAFDimTolObjects_GeomToleranceMatReqModif_L +XCAFDimTolObjects_GeomToleranceMatReqModif_None = ( + XCAFDimTolObjects_GeomToleranceMatReqModif.XCAFDimTolObjects_GeomToleranceMatReqModif_None +) +XCAFDimTolObjects_GeomToleranceMatReqModif_M = ( + XCAFDimTolObjects_GeomToleranceMatReqModif.XCAFDimTolObjects_GeomToleranceMatReqModif_M +) +XCAFDimTolObjects_GeomToleranceMatReqModif_L = ( + XCAFDimTolObjects_GeomToleranceMatReqModif.XCAFDimTolObjects_GeomToleranceMatReqModif_L +) class XCAFDimTolObjects_GeomToleranceModif(IntEnum): XCAFDimTolObjects_GeomToleranceModif_Any_Cross_Section: int = ... @@ -445,23 +794,57 @@ class XCAFDimTolObjects_GeomToleranceModif(IntEnum): XCAFDimTolObjects_GeomToleranceModif_All_Around: int = ... XCAFDimTolObjects_GeomToleranceModif_All_Over: int = ... -XCAFDimTolObjects_GeomToleranceModif_Any_Cross_Section = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Any_Cross_Section -XCAFDimTolObjects_GeomToleranceModif_Common_Zone = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Common_Zone -XCAFDimTolObjects_GeomToleranceModif_Each_Radial_Element = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Each_Radial_Element -XCAFDimTolObjects_GeomToleranceModif_Free_State = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Free_State -XCAFDimTolObjects_GeomToleranceModif_Least_Material_Requirement = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Least_Material_Requirement -XCAFDimTolObjects_GeomToleranceModif_Line_Element = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Line_Element -XCAFDimTolObjects_GeomToleranceModif_Major_Diameter = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Major_Diameter -XCAFDimTolObjects_GeomToleranceModif_Maximum_Material_Requirement = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Maximum_Material_Requirement -XCAFDimTolObjects_GeomToleranceModif_Minor_Diameter = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Minor_Diameter -XCAFDimTolObjects_GeomToleranceModif_Not_Convex = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Not_Convex -XCAFDimTolObjects_GeomToleranceModif_Pitch_Diameter = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Pitch_Diameter -XCAFDimTolObjects_GeomToleranceModif_Reciprocity_Requirement = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Reciprocity_Requirement -XCAFDimTolObjects_GeomToleranceModif_Separate_Requirement = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Separate_Requirement -XCAFDimTolObjects_GeomToleranceModif_Statistical_Tolerance = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Statistical_Tolerance -XCAFDimTolObjects_GeomToleranceModif_Tangent_Plane = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Tangent_Plane -XCAFDimTolObjects_GeomToleranceModif_All_Around = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_All_Around -XCAFDimTolObjects_GeomToleranceModif_All_Over = XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_All_Over +XCAFDimTolObjects_GeomToleranceModif_Any_Cross_Section = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Any_Cross_Section +) +XCAFDimTolObjects_GeomToleranceModif_Common_Zone = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Common_Zone +) +XCAFDimTolObjects_GeomToleranceModif_Each_Radial_Element = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Each_Radial_Element +) +XCAFDimTolObjects_GeomToleranceModif_Free_State = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Free_State +) +XCAFDimTolObjects_GeomToleranceModif_Least_Material_Requirement = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Least_Material_Requirement +) +XCAFDimTolObjects_GeomToleranceModif_Line_Element = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Line_Element +) +XCAFDimTolObjects_GeomToleranceModif_Major_Diameter = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Major_Diameter +) +XCAFDimTolObjects_GeomToleranceModif_Maximum_Material_Requirement = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Maximum_Material_Requirement +) +XCAFDimTolObjects_GeomToleranceModif_Minor_Diameter = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Minor_Diameter +) +XCAFDimTolObjects_GeomToleranceModif_Not_Convex = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Not_Convex +) +XCAFDimTolObjects_GeomToleranceModif_Pitch_Diameter = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Pitch_Diameter +) +XCAFDimTolObjects_GeomToleranceModif_Reciprocity_Requirement = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Reciprocity_Requirement +) +XCAFDimTolObjects_GeomToleranceModif_Separate_Requirement = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Separate_Requirement +) +XCAFDimTolObjects_GeomToleranceModif_Statistical_Tolerance = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Statistical_Tolerance +) +XCAFDimTolObjects_GeomToleranceModif_Tangent_Plane = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_Tangent_Plane +) +XCAFDimTolObjects_GeomToleranceModif_All_Around = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_All_Around +) +XCAFDimTolObjects_GeomToleranceModif_All_Over = ( + XCAFDimTolObjects_GeomToleranceModif.XCAFDimTolObjects_GeomToleranceModif_All_Over +) class XCAFDimTolObjects_GeomToleranceType(IntEnum): XCAFDimTolObjects_GeomToleranceType_None: int = ... @@ -481,31 +864,69 @@ class XCAFDimTolObjects_GeomToleranceType(IntEnum): XCAFDimTolObjects_GeomToleranceType_Symmetry: int = ... XCAFDimTolObjects_GeomToleranceType_TotalRunout: int = ... -XCAFDimTolObjects_GeomToleranceType_None = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_None -XCAFDimTolObjects_GeomToleranceType_Angularity = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Angularity -XCAFDimTolObjects_GeomToleranceType_CircularRunout = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_CircularRunout -XCAFDimTolObjects_GeomToleranceType_CircularityOrRoundness = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_CircularityOrRoundness -XCAFDimTolObjects_GeomToleranceType_Coaxiality = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Coaxiality -XCAFDimTolObjects_GeomToleranceType_Concentricity = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Concentricity -XCAFDimTolObjects_GeomToleranceType_Cylindricity = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Cylindricity -XCAFDimTolObjects_GeomToleranceType_Flatness = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Flatness -XCAFDimTolObjects_GeomToleranceType_Parallelism = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Parallelism -XCAFDimTolObjects_GeomToleranceType_Perpendicularity = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Perpendicularity -XCAFDimTolObjects_GeomToleranceType_Position = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Position -XCAFDimTolObjects_GeomToleranceType_ProfileOfLine = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_ProfileOfLine -XCAFDimTolObjects_GeomToleranceType_ProfileOfSurface = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_ProfileOfSurface -XCAFDimTolObjects_GeomToleranceType_Straightness = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Straightness -XCAFDimTolObjects_GeomToleranceType_Symmetry = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Symmetry -XCAFDimTolObjects_GeomToleranceType_TotalRunout = XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_TotalRunout +XCAFDimTolObjects_GeomToleranceType_None = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_None +) +XCAFDimTolObjects_GeomToleranceType_Angularity = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Angularity +) +XCAFDimTolObjects_GeomToleranceType_CircularRunout = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_CircularRunout +) +XCAFDimTolObjects_GeomToleranceType_CircularityOrRoundness = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_CircularityOrRoundness +) +XCAFDimTolObjects_GeomToleranceType_Coaxiality = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Coaxiality +) +XCAFDimTolObjects_GeomToleranceType_Concentricity = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Concentricity +) +XCAFDimTolObjects_GeomToleranceType_Cylindricity = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Cylindricity +) +XCAFDimTolObjects_GeomToleranceType_Flatness = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Flatness +) +XCAFDimTolObjects_GeomToleranceType_Parallelism = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Parallelism +) +XCAFDimTolObjects_GeomToleranceType_Perpendicularity = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Perpendicularity +) +XCAFDimTolObjects_GeomToleranceType_Position = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Position +) +XCAFDimTolObjects_GeomToleranceType_ProfileOfLine = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_ProfileOfLine +) +XCAFDimTolObjects_GeomToleranceType_ProfileOfSurface = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_ProfileOfSurface +) +XCAFDimTolObjects_GeomToleranceType_Straightness = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Straightness +) +XCAFDimTolObjects_GeomToleranceType_Symmetry = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_Symmetry +) +XCAFDimTolObjects_GeomToleranceType_TotalRunout = ( + XCAFDimTolObjects_GeomToleranceType.XCAFDimTolObjects_GeomToleranceType_TotalRunout +) class XCAFDimTolObjects_GeomToleranceTypeValue(IntEnum): XCAFDimTolObjects_GeomToleranceTypeValue_None: int = ... XCAFDimTolObjects_GeomToleranceTypeValue_Diameter: int = ... XCAFDimTolObjects_GeomToleranceTypeValue_SphericalDiameter: int = ... -XCAFDimTolObjects_GeomToleranceTypeValue_None = XCAFDimTolObjects_GeomToleranceTypeValue.XCAFDimTolObjects_GeomToleranceTypeValue_None -XCAFDimTolObjects_GeomToleranceTypeValue_Diameter = XCAFDimTolObjects_GeomToleranceTypeValue.XCAFDimTolObjects_GeomToleranceTypeValue_Diameter -XCAFDimTolObjects_GeomToleranceTypeValue_SphericalDiameter = XCAFDimTolObjects_GeomToleranceTypeValue.XCAFDimTolObjects_GeomToleranceTypeValue_SphericalDiameter +XCAFDimTolObjects_GeomToleranceTypeValue_None = ( + XCAFDimTolObjects_GeomToleranceTypeValue.XCAFDimTolObjects_GeomToleranceTypeValue_None +) +XCAFDimTolObjects_GeomToleranceTypeValue_Diameter = ( + XCAFDimTolObjects_GeomToleranceTypeValue.XCAFDimTolObjects_GeomToleranceTypeValue_Diameter +) +XCAFDimTolObjects_GeomToleranceTypeValue_SphericalDiameter = ( + XCAFDimTolObjects_GeomToleranceTypeValue.XCAFDimTolObjects_GeomToleranceTypeValue_SphericalDiameter +) class XCAFDimTolObjects_GeomToleranceZoneModif(IntEnum): XCAFDimTolObjects_GeomToleranceZoneModif_None: int = ... @@ -513,19 +934,33 @@ class XCAFDimTolObjects_GeomToleranceZoneModif(IntEnum): XCAFDimTolObjects_GeomToleranceZoneModif_Runout: int = ... XCAFDimTolObjects_GeomToleranceZoneModif_NonUniform: int = ... -XCAFDimTolObjects_GeomToleranceZoneModif_None = XCAFDimTolObjects_GeomToleranceZoneModif.XCAFDimTolObjects_GeomToleranceZoneModif_None -XCAFDimTolObjects_GeomToleranceZoneModif_Projected = XCAFDimTolObjects_GeomToleranceZoneModif.XCAFDimTolObjects_GeomToleranceZoneModif_Projected -XCAFDimTolObjects_GeomToleranceZoneModif_Runout = XCAFDimTolObjects_GeomToleranceZoneModif.XCAFDimTolObjects_GeomToleranceZoneModif_Runout -XCAFDimTolObjects_GeomToleranceZoneModif_NonUniform = XCAFDimTolObjects_GeomToleranceZoneModif.XCAFDimTolObjects_GeomToleranceZoneModif_NonUniform +XCAFDimTolObjects_GeomToleranceZoneModif_None = ( + XCAFDimTolObjects_GeomToleranceZoneModif.XCAFDimTolObjects_GeomToleranceZoneModif_None +) +XCAFDimTolObjects_GeomToleranceZoneModif_Projected = ( + XCAFDimTolObjects_GeomToleranceZoneModif.XCAFDimTolObjects_GeomToleranceZoneModif_Projected +) +XCAFDimTolObjects_GeomToleranceZoneModif_Runout = ( + XCAFDimTolObjects_GeomToleranceZoneModif.XCAFDimTolObjects_GeomToleranceZoneModif_Runout +) +XCAFDimTolObjects_GeomToleranceZoneModif_NonUniform = ( + XCAFDimTolObjects_GeomToleranceZoneModif.XCAFDimTolObjects_GeomToleranceZoneModif_NonUniform +) class XCAFDimTolObjects_ToleranceZoneAffectedPlane(IntEnum): XCAFDimTolObjects_ToleranceZoneAffectedPlane_None: int = ... XCAFDimTolObjects_ToleranceZoneAffectedPlane_Intersection: int = ... XCAFDimTolObjects_ToleranceZoneAffectedPlane_Orientation: int = ... -XCAFDimTolObjects_ToleranceZoneAffectedPlane_None = XCAFDimTolObjects_ToleranceZoneAffectedPlane.XCAFDimTolObjects_ToleranceZoneAffectedPlane_None -XCAFDimTolObjects_ToleranceZoneAffectedPlane_Intersection = XCAFDimTolObjects_ToleranceZoneAffectedPlane.XCAFDimTolObjects_ToleranceZoneAffectedPlane_Intersection -XCAFDimTolObjects_ToleranceZoneAffectedPlane_Orientation = XCAFDimTolObjects_ToleranceZoneAffectedPlane.XCAFDimTolObjects_ToleranceZoneAffectedPlane_Orientation +XCAFDimTolObjects_ToleranceZoneAffectedPlane_None = ( + XCAFDimTolObjects_ToleranceZoneAffectedPlane.XCAFDimTolObjects_ToleranceZoneAffectedPlane_None +) +XCAFDimTolObjects_ToleranceZoneAffectedPlane_Intersection = ( + XCAFDimTolObjects_ToleranceZoneAffectedPlane.XCAFDimTolObjects_ToleranceZoneAffectedPlane_Intersection +) +XCAFDimTolObjects_ToleranceZoneAffectedPlane_Orientation = ( + XCAFDimTolObjects_ToleranceZoneAffectedPlane.XCAFDimTolObjects_ToleranceZoneAffectedPlane_Orientation +) class XCAFDimTolObjects_DatumObject(Standard_Transient): @overload @@ -533,14 +968,16 @@ class XCAFDimTolObjects_DatumObject(Standard_Transient): @overload def __init__(self, theObj: XCAFDimTolObjects_DatumObject) -> None: ... def AddModifier(self, theModifier: XCAFDimTolObjects_DatumSingleModif) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetDatumTarget(self) -> TopoDS_Shape: ... def GetDatumTargetAxis(self) -> gp_Ax2: ... def GetDatumTargetLength(self) -> float: ... def GetDatumTargetNumber(self) -> int: ... def GetDatumTargetType(self) -> XCAFDimTolObjects_DatumTargetType: ... def GetDatumTargetWidth(self) -> float: ... - def GetModifierWithValue(self) -> Tuple[XCAFDimTolObjects_DatumModifWithValue, float]: ... + def GetModifierWithValue( + self, + ) -> Tuple[XCAFDimTolObjects_DatumModifWithValue, float]: ... def GetModifiers(self) -> XCAFDimTolObjects_DatumModifiersSequence: ... def GetName(self) -> TCollection_HAsciiString: ... def GetPlane(self) -> gp_Ax2: ... @@ -562,16 +999,26 @@ class XCAFDimTolObjects_DatumObject(Standard_Transient): def SetDatumTargetAxis(self, theAxis: gp_Ax2) -> None: ... def SetDatumTargetLength(self, theLength: float) -> None: ... def SetDatumTargetNumber(self, theNumber: int) -> None: ... - def SetDatumTargetType(self, theType: XCAFDimTolObjects_DatumTargetType) -> None: ... + def SetDatumTargetType( + self, theType: XCAFDimTolObjects_DatumTargetType + ) -> None: ... def SetDatumTargetWidth(self, theWidth: float) -> None: ... - def SetModifierWithValue(self, theModifier: XCAFDimTolObjects_DatumModifWithValue, theValue: float) -> None: ... - def SetModifiers(self, theModifiers: XCAFDimTolObjects_DatumModifiersSequence) -> None: ... + def SetModifierWithValue( + self, theModifier: XCAFDimTolObjects_DatumModifWithValue, theValue: float + ) -> None: ... + def SetModifiers( + self, theModifiers: XCAFDimTolObjects_DatumModifiersSequence + ) -> None: ... def SetName(self, theTag: TCollection_HAsciiString) -> None: ... def SetPlane(self, thePlane: gp_Ax2) -> None: ... def SetPoint(self, thePnt: gp_Pnt) -> None: ... def SetPointTextAttach(self, thePntText: gp_Pnt) -> None: ... def SetPosition(self, thePosition: int) -> None: ... - def SetPresentation(self, thePresentation: TopoDS_Shape, thePresentationName: TCollection_HAsciiString) -> None: ... + def SetPresentation( + self, + thePresentation: TopoDS_Shape, + thePresentationName: TCollection_HAsciiString, + ) -> None: ... def SetSemanticName(self, theName: TCollection_HAsciiString) -> None: ... class XCAFDimTolObjects_DimensionObject(Standard_Transient): @@ -579,11 +1026,22 @@ class XCAFDimTolObjects_DimensionObject(Standard_Transient): def __init__(self) -> None: ... @overload def __init__(self, theObj: XCAFDimTolObjects_DimensionObject) -> None: ... - def AddDescription(self, theDescription: TCollection_HAsciiString, theName: TCollection_HAsciiString) -> None: ... + def AddDescription( + self, + theDescription: TCollection_HAsciiString, + theName: TCollection_HAsciiString, + ) -> None: ... def AddModifier(self, theModifier: XCAFDimTolObjects_DimensionModif) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetAngularQualifier(self) -> XCAFDimTolObjects_AngularQualifier: ... - def GetClassOfTolerance(self) -> Tuple[bool, bool, XCAFDimTolObjects_DimensionFormVariance, XCAFDimTolObjects_DimensionGrade]: ... + def GetClassOfTolerance( + self, + ) -> Tuple[ + bool, + bool, + XCAFDimTolObjects_DimensionFormVariance, + XCAFDimTolObjects_DimensionGrade, + ]: ... def GetDescription(self, theNumber: int) -> TCollection_HAsciiString: ... def GetDescriptionName(self, theNumber: int) -> TCollection_HAsciiString: ... def GetDirection(self, theDir: gp_Dir) -> bool: ... @@ -617,20 +1075,35 @@ class XCAFDimTolObjects_DimensionObject(Standard_Transient): def IsDimWithRange(self) -> bool: ... def NbDescriptions(self) -> int: ... def RemoveDescription(self, theNumber: int) -> None: ... - def SetAngularQualifier(self, theAngularQualifier: XCAFDimTolObjects_AngularQualifier) -> None: ... - def SetClassOfTolerance(self, theHole: bool, theFormVariance: XCAFDimTolObjects_DimensionFormVariance, theGrade: XCAFDimTolObjects_DimensionGrade) -> None: ... + def SetAngularQualifier( + self, theAngularQualifier: XCAFDimTolObjects_AngularQualifier + ) -> None: ... + def SetClassOfTolerance( + self, + theHole: bool, + theFormVariance: XCAFDimTolObjects_DimensionFormVariance, + theGrade: XCAFDimTolObjects_DimensionGrade, + ) -> None: ... def SetDirection(self, theDir: gp_Dir) -> bool: ... def SetLowerBound(self, theLowerBound: float) -> None: ... def SetLowerTolValue(self, theLowerTolValue: float) -> bool: ... - def SetModifiers(self, theModifiers: XCAFDimTolObjects_DimensionModifiersSequence) -> None: ... + def SetModifiers( + self, theModifiers: XCAFDimTolObjects_DimensionModifiersSequence + ) -> None: ... def SetNbOfDecimalPlaces(self, theL: int, theR: int) -> None: ... def SetPath(self, thePath: TopoDS_Edge) -> None: ... def SetPlane(self, thePlane: gp_Ax2) -> None: ... def SetPoint(self, thePnt: gp_Pnt) -> None: ... def SetPoint2(self, thePnt: gp_Pnt) -> None: ... def SetPointTextAttach(self, thePntText: gp_Pnt) -> None: ... - def SetPresentation(self, thePresentation: TopoDS_Shape, thePresentationName: TCollection_HAsciiString) -> None: ... - def SetQualifier(self, theQualifier: XCAFDimTolObjects_DimensionQualifier) -> None: ... + def SetPresentation( + self, + thePresentation: TopoDS_Shape, + thePresentationName: TCollection_HAsciiString, + ) -> None: ... + def SetQualifier( + self, theQualifier: XCAFDimTolObjects_DimensionQualifier + ) -> None: ... def SetSemanticName(self, theName: TCollection_HAsciiString) -> None: ... def SetType(self, theTyupe: XCAFDimTolObjects_DimensionType) -> None: ... def SetUpperBound(self, theUpperBound: float) -> None: ... @@ -643,12 +1116,16 @@ class XCAFDimTolObjects_GeomToleranceObject(Standard_Transient): def __init__(self) -> None: ... @overload def __init__(self, theObj: XCAFDimTolObjects_GeomToleranceObject) -> None: ... - def AddModifier(self, theModifier: XCAFDimTolObjects_GeomToleranceModif) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def AddModifier( + self, theModifier: XCAFDimTolObjects_GeomToleranceModif + ) -> None: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetAffectedPlane(self) -> gp_Pln: ... def GetAffectedPlaneType(self) -> XCAFDimTolObjects_ToleranceZoneAffectedPlane: ... def GetAxis(self) -> gp_Ax2: ... - def GetMaterialRequirementModifier(self) -> XCAFDimTolObjects_GeomToleranceMatReqModif: ... + def GetMaterialRequirementModifier( + self, + ) -> XCAFDimTolObjects_GeomToleranceMatReqModif: ... def GetMaxValueModifier(self) -> float: ... def GetModifiers(self) -> XCAFDimTolObjects_GeomToleranceModifiersSequence: ... def GetPlane(self) -> gp_Ax2: ... @@ -670,32 +1147,66 @@ class XCAFDimTolObjects_GeomToleranceObject(Standard_Transient): @overload def SetAffectedPlane(self, thePlane: gp_Pln) -> None: ... @overload - def SetAffectedPlane(self, thePlane: gp_Pln, theType: XCAFDimTolObjects_ToleranceZoneAffectedPlane) -> None: ... - def SetAffectedPlaneType(self, theType: XCAFDimTolObjects_ToleranceZoneAffectedPlane) -> None: ... + def SetAffectedPlane( + self, thePlane: gp_Pln, theType: XCAFDimTolObjects_ToleranceZoneAffectedPlane + ) -> None: ... + def SetAffectedPlaneType( + self, theType: XCAFDimTolObjects_ToleranceZoneAffectedPlane + ) -> None: ... def SetAxis(self, theAxis: gp_Ax2) -> None: ... - def SetMaterialRequirementModifier(self, theMatReqModif: XCAFDimTolObjects_GeomToleranceMatReqModif) -> None: ... + def SetMaterialRequirementModifier( + self, theMatReqModif: XCAFDimTolObjects_GeomToleranceMatReqModif + ) -> None: ... def SetMaxValueModifier(self, theModifier: float) -> None: ... - def SetModifiers(self, theModifiers: XCAFDimTolObjects_GeomToleranceModifiersSequence) -> None: ... + def SetModifiers( + self, theModifiers: XCAFDimTolObjects_GeomToleranceModifiersSequence + ) -> None: ... def SetPlane(self, thePlane: gp_Ax2) -> None: ... def SetPoint(self, thePnt: gp_Pnt) -> None: ... def SetPointTextAttach(self, thePntText: gp_Pnt) -> None: ... - def SetPresentation(self, thePresentation: TopoDS_Shape, thePresentationName: TCollection_HAsciiString) -> None: ... + def SetPresentation( + self, + thePresentation: TopoDS_Shape, + thePresentationName: TCollection_HAsciiString, + ) -> None: ... def SetSemanticName(self, theName: TCollection_HAsciiString) -> None: ... def SetType(self, theType: XCAFDimTolObjects_GeomToleranceType) -> None: ... - def SetTypeOfValue(self, theTypeOfValue: XCAFDimTolObjects_GeomToleranceTypeValue) -> None: ... + def SetTypeOfValue( + self, theTypeOfValue: XCAFDimTolObjects_GeomToleranceTypeValue + ) -> None: ... def SetValue(self, theValue: float) -> None: ... def SetValueOfZoneModifier(self, theValue: float) -> None: ... - def SetZoneModifier(self, theZoneModif: XCAFDimTolObjects_GeomToleranceZoneModif) -> None: ... + def SetZoneModifier( + self, theZoneModif: XCAFDimTolObjects_GeomToleranceZoneModif + ) -> None: ... class XCAFDimTolObjects_Tool: def __init__(self, theDoc: TDocStd_Document) -> None: ... - def GetDimensions(self, theDimensionObjectSequence: XCAFDimTolObjects_DimensionObjectSequence) -> None: ... - def GetGeomTolerances(self, theGeomToleranceObjectSequence: XCAFDimTolObjects_GeomToleranceObjectSequence, theDatumObjectSequence: XCAFDimTolObjects_DatumObjectSequence, theMap: XCAFDimTolObjects_DataMapOfToleranceDatum) -> None: ... - def GetRefDatum(self, theShape: TopoDS_Shape, theDatum: XCAFDimTolObjects_DatumObject) -> bool: ... - def GetRefDimensions(self, theShape: TopoDS_Shape, theDimensions: XCAFDimTolObjects_DimensionObjectSequence) -> bool: ... - def GetRefGeomTolerances(self, theShape: TopoDS_Shape, theGeomToleranceObjectSequence: XCAFDimTolObjects_GeomToleranceObjectSequence, theDatumObjectSequence: XCAFDimTolObjects_DatumObjectSequence, theMap: XCAFDimTolObjects_DataMapOfToleranceDatum) -> bool: ... + def GetDimensions( + self, theDimensionObjectSequence: XCAFDimTolObjects_DimensionObjectSequence + ) -> None: ... + def GetGeomTolerances( + self, + theGeomToleranceObjectSequence: XCAFDimTolObjects_GeomToleranceObjectSequence, + theDatumObjectSequence: XCAFDimTolObjects_DatumObjectSequence, + theMap: XCAFDimTolObjects_DataMapOfToleranceDatum, + ) -> None: ... + def GetRefDatum( + self, theShape: TopoDS_Shape, theDatum: XCAFDimTolObjects_DatumObject + ) -> bool: ... + def GetRefDimensions( + self, + theShape: TopoDS_Shape, + theDimensions: XCAFDimTolObjects_DimensionObjectSequence, + ) -> bool: ... + def GetRefGeomTolerances( + self, + theShape: TopoDS_Shape, + theGeomToleranceObjectSequence: XCAFDimTolObjects_GeomToleranceObjectSequence, + theDatumObjectSequence: XCAFDimTolObjects_DatumObjectSequence, + theMap: XCAFDimTolObjects_DataMapOfToleranceDatum, + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XCAFDoc.pyi b/src/SWIG_files/wrapper/XCAFDoc.pyi index f247b3836..6b9f575ae 100644 --- a/src/SWIG_files/wrapper/XCAFDoc.pyi +++ b/src/SWIG_files/wrapper/XCAFDoc.pyi @@ -23,19 +23,25 @@ from OCC.Core.Graphic3d import * XCAFDoc_PartId = NewType("XCAFDoc_PartId", TCollection_AsciiString) class XCAFDoc_GraphNodeSequence: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: False) -> False: ... def Clear(self) -> None: ... def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> False: ... def Length(self) -> int: ... - def Append(self, theItem: False) -> False: ... + def Lower(self) -> int: ... def Prepend(self, theItem: False) -> False: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> False: ... def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class XCAFDoc_ColorType(IntEnum): XCAFDoc_ColorGen: int = ... @@ -101,7 +107,7 @@ class xcafdoc: class XCAFDoc_Area(TDataStd_Real): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Get(self) -> float: ... @overload @@ -141,7 +147,7 @@ class XCAFDoc_AssemblyItemId: def __init__(self, thePath: TColStd_ListOfAsciiString) -> None: ... @overload def __init__(self, theString: str) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetPath(self) -> TColStd_ListOfAsciiString: ... @overload def Init(self, thePath: TColStd_ListOfAsciiString) -> None: ... @@ -158,7 +164,7 @@ class XCAFDoc_AssemblyItemRef(TDF_Attribute): def __init__(self) -> None: ... def ClearExtraRef(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def Get(theLabel: TDF_Label) -> XCAFDoc_AssemblyItemRef: ... def GetGUID(self) -> Standard_GUID: ... @@ -176,13 +182,19 @@ class XCAFDoc_AssemblyItemRef(TDF_Attribute): def Restore(self, theAttrFrom: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId) -> XCAFDoc_AssemblyItemRef: ... + def Set( + theLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId + ) -> XCAFDoc_AssemblyItemRef: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId, theGUID: Standard_GUID) -> XCAFDoc_AssemblyItemRef: ... + def Set( + theLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId, theGUID: Standard_GUID + ) -> XCAFDoc_AssemblyItemRef: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId, theShapeIndex: int) -> XCAFDoc_AssemblyItemRef: ... + def Set( + theLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId, theShapeIndex: int + ) -> XCAFDoc_AssemblyItemRef: ... def SetGUID(self, theAttrGUID: Standard_GUID) -> None: ... @overload def SetItem(self, theItemId: XCAFDoc_AssemblyItemId) -> None: ... @@ -194,9 +206,16 @@ class XCAFDoc_AssemblyItemRef(TDF_Attribute): class XCAFDoc_AssemblyIterator: @overload - def __init__(self, theDoc: TDocStd_Document, theLevel: Optional[int] = INT_MAX) -> None: ... + def __init__( + self, theDoc: TDocStd_Document, theLevel: Optional[int] = INT_MAX + ) -> None: ... @overload - def __init__(self, theDoc: TDocStd_Document, theRoot: XCAFDoc_AssemblyItemId, theLevel: Optional[int] = INT_MAX) -> None: ... + def __init__( + self, + theDoc: TDocStd_Document, + theRoot: XCAFDoc_AssemblyItemId, + theLevel: Optional[int] = INT_MAX, + ) -> None: ... def Current(self) -> XCAFDoc_AssemblyItemId: ... def More(self) -> bool: ... def Next(self) -> None: ... @@ -207,7 +226,7 @@ class XCAFDoc_AssemblyTool: class XCAFDoc_Centroid(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Get(self) -> gp_Pnt: ... @overload @@ -228,22 +247,32 @@ class XCAFDoc_Centroid(TDF_Attribute): class XCAFDoc_ClippingPlaneTool(TDataStd_GenericEmpty): def __init__(self) -> None: ... @overload - def AddClippingPlane(self, thePlane: gp_Pln, theName: str, theCapping: bool) -> TDF_Label: ... + def AddClippingPlane( + self, thePlane: gp_Pln, theName: str, theCapping: bool + ) -> TDF_Label: ... @overload - def AddClippingPlane(self, thePlane: gp_Pln, theName: TCollection_HAsciiString, theCapping: bool) -> TDF_Label: ... + def AddClippingPlane( + self, thePlane: gp_Pln, theName: TCollection_HAsciiString, theCapping: bool + ) -> TDF_Label: ... @overload def AddClippingPlane(self, thePlane: gp_Pln, theName: str) -> TDF_Label: ... @overload - def AddClippingPlane(self, thePlane: gp_Pln, theName: TCollection_HAsciiString) -> TDF_Label: ... + def AddClippingPlane( + self, thePlane: gp_Pln, theName: TCollection_HAsciiString + ) -> TDF_Label: ... def BaseLabel(self) -> TDF_Label: ... @overload def GetCapping(self, theClippingPlaneL: TDF_Label) -> bool: ... @overload def GetCapping(self, theClippingPlaneL: TDF_Label) -> Tuple[bool, bool]: ... @overload - def GetClippingPlane(self, theLabel: TDF_Label, thePlane: gp_Pln, theName: str) -> Tuple[bool, bool]: ... + def GetClippingPlane( + self, theLabel: TDF_Label, thePlane: gp_Pln, theName: str + ) -> Tuple[bool, bool]: ... @overload - def GetClippingPlane(self, theLabel: TDF_Label, thePlane: gp_Pln) -> Tuple[bool, str, bool]: ... + def GetClippingPlane( + self, theLabel: TDF_Label, thePlane: gp_Pln + ) -> Tuple[bool, str, bool]: ... def GetClippingPlanes(self, Labels: TDF_LabelSequence) -> None: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -253,11 +282,13 @@ class XCAFDoc_ClippingPlaneTool(TDataStd_GenericEmpty): @staticmethod def Set(theLabel: TDF_Label) -> XCAFDoc_ClippingPlaneTool: ... def SetCapping(self, theClippingPlaneL: TDF_Label, theCapping: bool) -> None: ... - def UpdateClippingPlane(self, theLabelL: TDF_Label, thePlane: gp_Pln, theName: str) -> None: ... + def UpdateClippingPlane( + self, theLabelL: TDF_Label, thePlane: gp_Pln, theName: str + ) -> None: ... class XCAFDoc_Color(TDF_Attribute): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetAlpha(self) -> float: ... def GetColor(self) -> Quantity_Color: ... def GetColorRGBA(self) -> Quantity_ColorRGBA: ... @@ -280,7 +311,9 @@ class XCAFDoc_Color(TDF_Attribute): def Set(label: TDF_Label, C: Quantity_NameOfColor) -> XCAFDoc_Color: ... @overload @staticmethod - def Set(label: TDF_Label, R: float, G: float, B: float, alpha: Optional[float] = 1.0) -> XCAFDoc_Color: ... + def Set( + label: TDF_Label, R: float, G: float, B: float, alpha: Optional[float] = 1.0 + ) -> XCAFDoc_Color: ... @overload def Set(self, C: Quantity_Color) -> None: ... @overload @@ -288,7 +321,9 @@ class XCAFDoc_Color(TDF_Attribute): @overload def Set(self, C: Quantity_NameOfColor) -> None: ... @overload - def Set(self, R: float, G: float, B: float, alpha: Optional[float] = 1.0) -> None: ... + def Set( + self, R: float, G: float, B: float, alpha: Optional[float] = 1.0 + ) -> None: ... class XCAFDoc_ColorTool(TDataStd_GenericEmpty): def __init__(self) -> None: ... @@ -299,7 +334,7 @@ class XCAFDoc_ColorTool(TDataStd_GenericEmpty): @staticmethod def AutoNaming() -> bool: ... def BaseLabel(self) -> TDF_Label: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def FindColor(self, col: Quantity_Color, lab: TDF_Label) -> bool: ... @overload @@ -319,23 +354,37 @@ class XCAFDoc_ColorTool(TDataStd_GenericEmpty): def GetColor(L: TDF_Label, type: XCAFDoc_ColorType, colorL: TDF_Label) -> bool: ... @overload @staticmethod - def GetColor(L: TDF_Label, type: XCAFDoc_ColorType, color: Quantity_Color) -> bool: ... + def GetColor( + L: TDF_Label, type: XCAFDoc_ColorType, color: Quantity_Color + ) -> bool: ... @overload @staticmethod - def GetColor(L: TDF_Label, type: XCAFDoc_ColorType, color: Quantity_ColorRGBA) -> bool: ... + def GetColor( + L: TDF_Label, type: XCAFDoc_ColorType, color: Quantity_ColorRGBA + ) -> bool: ... @overload - def GetColor(self, S: TopoDS_Shape, type: XCAFDoc_ColorType, colorL: TDF_Label) -> bool: ... + def GetColor( + self, S: TopoDS_Shape, type: XCAFDoc_ColorType, colorL: TDF_Label + ) -> bool: ... @overload - def GetColor(self, S: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_Color) -> bool: ... + def GetColor( + self, S: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_Color + ) -> bool: ... @overload - def GetColor(self, S: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_ColorRGBA) -> bool: ... + def GetColor( + self, S: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_ColorRGBA + ) -> bool: ... def GetColors(self, Labels: TDF_LabelSequence) -> None: ... @staticmethod def GetID() -> Standard_GUID: ... @overload - def GetInstanceColor(self, theShape: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_Color) -> bool: ... + def GetInstanceColor( + self, theShape: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_Color + ) -> bool: ... @overload - def GetInstanceColor(self, theShape: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_ColorRGBA) -> bool: ... + def GetInstanceColor( + self, theShape: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_ColorRGBA + ) -> bool: ... def ID(self) -> Standard_GUID: ... def IsColor(self, lab: TDF_Label) -> bool: ... def IsColorByLayer(self, L: TDF_Label) -> bool: ... @@ -353,23 +402,51 @@ class XCAFDoc_ColorTool(TDataStd_GenericEmpty): @staticmethod def SetAutoNaming(theIsAutoNaming: bool) -> None: ... @overload - def SetColor(self, L: TDF_Label, colorL: TDF_Label, type: XCAFDoc_ColorType) -> None: ... - @overload - def SetColor(self, L: TDF_Label, Color: Quantity_Color, type: XCAFDoc_ColorType) -> None: ... - @overload - def SetColor(self, L: TDF_Label, Color: Quantity_ColorRGBA, type: XCAFDoc_ColorType) -> None: ... - @overload - def SetColor(self, S: TopoDS_Shape, colorL: TDF_Label, type: XCAFDoc_ColorType) -> bool: ... - @overload - def SetColor(self, S: TopoDS_Shape, Color: Quantity_Color, type: XCAFDoc_ColorType) -> bool: ... - @overload - def SetColor(self, S: TopoDS_Shape, Color: Quantity_ColorRGBA, type: XCAFDoc_ColorType) -> bool: ... - def SetColorByLayer(self, shapeLabel: TDF_Label, isColorByLayer: Optional[bool] = False) -> None: ... - @overload - def SetInstanceColor(self, theShape: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_Color, isCreateSHUO: Optional[bool] = True) -> bool: ... - @overload - def SetInstanceColor(self, theShape: TopoDS_Shape, type: XCAFDoc_ColorType, color: Quantity_ColorRGBA, isCreateSHUO: Optional[bool] = True) -> bool: ... - def SetVisibility(self, shapeLabel: TDF_Label, isvisible: Optional[bool] = True) -> None: ... + def SetColor( + self, L: TDF_Label, colorL: TDF_Label, type: XCAFDoc_ColorType + ) -> None: ... + @overload + def SetColor( + self, L: TDF_Label, Color: Quantity_Color, type: XCAFDoc_ColorType + ) -> None: ... + @overload + def SetColor( + self, L: TDF_Label, Color: Quantity_ColorRGBA, type: XCAFDoc_ColorType + ) -> None: ... + @overload + def SetColor( + self, S: TopoDS_Shape, colorL: TDF_Label, type: XCAFDoc_ColorType + ) -> bool: ... + @overload + def SetColor( + self, S: TopoDS_Shape, Color: Quantity_Color, type: XCAFDoc_ColorType + ) -> bool: ... + @overload + def SetColor( + self, S: TopoDS_Shape, Color: Quantity_ColorRGBA, type: XCAFDoc_ColorType + ) -> bool: ... + def SetColorByLayer( + self, shapeLabel: TDF_Label, isColorByLayer: Optional[bool] = False + ) -> None: ... + @overload + def SetInstanceColor( + self, + theShape: TopoDS_Shape, + type: XCAFDoc_ColorType, + color: Quantity_Color, + isCreateSHUO: Optional[bool] = True, + ) -> bool: ... + @overload + def SetInstanceColor( + self, + theShape: TopoDS_Shape, + type: XCAFDoc_ColorType, + color: Quantity_ColorRGBA, + isCreateSHUO: Optional[bool] = True, + ) -> bool: ... + def SetVisibility( + self, shapeLabel: TDF_Label, isvisible: Optional[bool] = True + ) -> None: ... def ShapeTool(self) -> XCAFDoc_ShapeTool: ... @overload def UnSetColor(self, L: TDF_Label, type: XCAFDoc_ColorType) -> None: ... @@ -378,7 +455,7 @@ class XCAFDoc_ColorTool(TDataStd_GenericEmpty): class XCAFDoc_Datum(TDF_Attribute): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetDescription(self) -> TCollection_HAsciiString: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -391,17 +468,27 @@ class XCAFDoc_Datum(TDF_Attribute): def Restore(self, With: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(label: TDF_Label, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, anIdentification: TCollection_HAsciiString) -> XCAFDoc_Datum: ... + def Set( + label: TDF_Label, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + anIdentification: TCollection_HAsciiString, + ) -> XCAFDoc_Datum: ... @overload @staticmethod def Set(theLabel: TDF_Label) -> XCAFDoc_Datum: ... @overload - def Set(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, anIdentification: TCollection_HAsciiString) -> None: ... + def Set( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + anIdentification: TCollection_HAsciiString, + ) -> None: ... def SetObject(self, theDatumObject: XCAFDimTolObjects_DatumObject) -> None: ... class XCAFDoc_DimTol(TDF_Attribute): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetDescription(self) -> TCollection_HAsciiString: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -414,44 +501,104 @@ class XCAFDoc_DimTol(TDF_Attribute): def Restore(self, With: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(label: TDF_Label, kind: int, aVal: TColStd_HArray1OfReal, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString) -> XCAFDoc_DimTol: ... - @overload - def Set(self, kind: int, aVal: TColStd_HArray1OfReal, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString) -> None: ... + def Set( + label: TDF_Label, + kind: int, + aVal: TColStd_HArray1OfReal, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + ) -> XCAFDoc_DimTol: ... + @overload + def Set( + self, + kind: int, + aVal: TColStd_HArray1OfReal, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + ) -> None: ... class XCAFDoc_DimTolTool(TDataStd_GenericEmpty): def __init__(self) -> None: ... @overload - def AddDatum(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theIdentification: TCollection_HAsciiString) -> TDF_Label: ... + def AddDatum( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theIdentification: TCollection_HAsciiString, + ) -> TDF_Label: ... @overload def AddDatum(self) -> TDF_Label: ... - def AddDimTol(self, theKind: int, theVal: TColStd_HArray1OfReal, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString) -> TDF_Label: ... + def AddDimTol( + self, + theKind: int, + theVal: TColStd_HArray1OfReal, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + ) -> TDF_Label: ... def AddDimension(self) -> TDF_Label: ... def AddGeomTolerance(self) -> TDF_Label: ... def BaseLabel(self) -> TDF_Label: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - def FindDatum(self, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theIdentification: TCollection_HAsciiString, lab: TDF_Label) -> bool: ... - @overload - def FindDimTol(self, theKind: int, theVal: TColStd_HArray1OfReal, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, lab: TDF_Label) -> bool: ... - @overload - def FindDimTol(self, theKind: int, theVal: TColStd_HArray1OfReal, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString) -> TDF_Label: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + def FindDatum( + self, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theIdentification: TCollection_HAsciiString, + lab: TDF_Label, + ) -> bool: ... + @overload + def FindDimTol( + self, + theKind: int, + theVal: TColStd_HArray1OfReal, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + lab: TDF_Label, + ) -> bool: ... + @overload + def FindDimTol( + self, + theKind: int, + theVal: TColStd_HArray1OfReal, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + ) -> TDF_Label: ... def GetDatum(self, theDatumL: TDF_Label) -> Tuple[bool, str, str, str]: ... def GetDatumLabels(self, Labels: TDF_LabelSequence) -> None: ... @staticmethod - def GetDatumOfTolerLabels(theDimTolL: TDF_Label, theDatums: TDF_LabelSequence) -> bool: ... + def GetDatumOfTolerLabels( + theDimTolL: TDF_Label, theDatums: TDF_LabelSequence + ) -> bool: ... @staticmethod - def GetDatumWithObjectOfTolerLabels(theDimTolL: TDF_Label, theDatums: TDF_LabelSequence) -> bool: ... - def GetDimTol(self, theDimTolL: TDF_Label, theVal: TColStd_HArray1OfReal) -> Tuple[bool, int, str, str]: ... + def GetDatumWithObjectOfTolerLabels( + theDimTolL: TDF_Label, theDatums: TDF_LabelSequence + ) -> bool: ... + def GetDimTol( + self, theDimTolL: TDF_Label, theVal: TColStd_HArray1OfReal + ) -> Tuple[bool, int, str, str]: ... def GetDimTolLabels(self, Labels: TDF_LabelSequence) -> None: ... def GetDimensionLabels(self, theLabels: TDF_LabelSequence) -> None: ... def GetGeomToleranceLabels(self, theLabels: TDF_LabelSequence) -> None: ... @staticmethod def GetID() -> Standard_GUID: ... - def GetRefDatumLabel(self, theShapeL: TDF_Label, theDatum: TDF_LabelSequence) -> bool: ... - def GetRefDimensionLabels(self, theShapeL: TDF_Label, theDimensions: TDF_LabelSequence) -> bool: ... - def GetRefGeomToleranceLabels(self, theShapeL: TDF_Label, theDimTols: TDF_LabelSequence) -> bool: ... - @staticmethod - def GetRefShapeLabel(theL: TDF_Label, theShapeLFirst: TDF_LabelSequence, theShapeLSecond: TDF_LabelSequence) -> bool: ... - def GetTolerOfDatumLabels(self, theDatumL: TDF_Label, theTols: TDF_LabelSequence) -> bool: ... + def GetRefDatumLabel( + self, theShapeL: TDF_Label, theDatum: TDF_LabelSequence + ) -> bool: ... + def GetRefDimensionLabels( + self, theShapeL: TDF_Label, theDimensions: TDF_LabelSequence + ) -> bool: ... + def GetRefGeomToleranceLabels( + self, theShapeL: TDF_Label, theDimTols: TDF_LabelSequence + ) -> bool: ... + @staticmethod + def GetRefShapeLabel( + theL: TDF_Label, + theShapeLFirst: TDF_LabelSequence, + theShapeLSecond: TDF_LabelSequence, + ) -> bool: ... + def GetTolerOfDatumLabels( + self, theDatumL: TDF_Label, theTols: TDF_LabelSequence + ) -> bool: ... def ID(self) -> Standard_GUID: ... def IsDatum(self, lab: TDF_Label) -> bool: ... def IsDimTol(self, theLab: TDF_Label) -> bool: ... @@ -462,37 +609,64 @@ class XCAFDoc_DimTolTool(TDataStd_GenericEmpty): @staticmethod def Set(L: TDF_Label) -> XCAFDoc_DimTolTool: ... @overload - def SetDatum(self, theShapeLabels: TDF_LabelSequence, theDatumL: TDF_Label) -> None: ... - @overload - def SetDatum(self, theL: TDF_Label, theTolerL: TDF_Label, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString, theIdentification: TCollection_HAsciiString) -> None: ... + def SetDatum( + self, theShapeLabels: TDF_LabelSequence, theDatumL: TDF_Label + ) -> None: ... + @overload + def SetDatum( + self, + theL: TDF_Label, + theTolerL: TDF_Label, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + theIdentification: TCollection_HAsciiString, + ) -> None: ... def SetDatumToGeomTol(self, theDatumL: TDF_Label, theTolerL: TDF_Label) -> None: ... @overload def SetDimTol(self, theL: TDF_Label, theDimTolL: TDF_Label) -> None: ... @overload - def SetDimTol(self, theL: TDF_Label, theKind: int, theVal: TColStd_HArray1OfReal, theName: TCollection_HAsciiString, theDescription: TCollection_HAsciiString) -> TDF_Label: ... - @overload - def SetDimension(self, theFirstLS: TDF_LabelSequence, theSecondLS: TDF_LabelSequence, theDimL: TDF_Label) -> None: ... - @overload - def SetDimension(self, theFirstL: TDF_Label, theSecondL: TDF_Label, theDimL: TDF_Label) -> None: ... + def SetDimTol( + self, + theL: TDF_Label, + theKind: int, + theVal: TColStd_HArray1OfReal, + theName: TCollection_HAsciiString, + theDescription: TCollection_HAsciiString, + ) -> TDF_Label: ... + @overload + def SetDimension( + self, + theFirstLS: TDF_LabelSequence, + theSecondLS: TDF_LabelSequence, + theDimL: TDF_Label, + ) -> None: ... + @overload + def SetDimension( + self, theFirstL: TDF_Label, theSecondL: TDF_Label, theDimL: TDF_Label + ) -> None: ... @overload def SetDimension(self, theL: TDF_Label, theDimL: TDF_Label) -> None: ... @overload def SetGeomTolerance(self, theL: TDF_Label, theGeomTolL: TDF_Label) -> None: ... @overload - def SetGeomTolerance(self, theL: TDF_LabelSequence, theGeomTolL: TDF_Label) -> None: ... + def SetGeomTolerance( + self, theL: TDF_LabelSequence, theGeomTolL: TDF_Label + ) -> None: ... def ShapeTool(self) -> XCAFDoc_ShapeTool: ... def Unlock(self, theViewL: TDF_Label) -> None: ... class XCAFDoc_Dimension(TDataStd_GenericEmpty): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... def GetObject(self) -> XCAFDimTolObjects_DimensionObject: ... def ID(self) -> Standard_GUID: ... @staticmethod def Set(theLabel: TDF_Label) -> XCAFDoc_Dimension: ... - def SetObject(self, theDimensionObject: XCAFDimTolObjects_DimensionObject) -> None: ... + def SetObject( + self, theDimensionObject: XCAFDimTolObjects_DimensionObject + ) -> None: ... class XCAFDoc_DocumentTool(TDataStd_GenericEmpty): def __init__(self) -> None: ... @@ -533,7 +707,9 @@ class XCAFDoc_DocumentTool(TDataStd_GenericEmpty): def GetID() -> Standard_GUID: ... @overload @staticmethod - def GetLengthUnit(theDoc: TDocStd_Document, theBaseUnit: UnitsMethods_LengthUnit) -> Tuple[bool, float]: ... + def GetLengthUnit( + theDoc: TDocStd_Document, theBaseUnit: UnitsMethods_LengthUnit + ) -> Tuple[bool, float]: ... @overload @staticmethod def GetLengthUnit(theDoc: TDocStd_Document) -> Tuple[bool, float]: ... @@ -560,7 +736,11 @@ class XCAFDoc_DocumentTool(TDataStd_GenericEmpty): def SetLengthUnit(theDoc: TDocStd_Document, theUnitValue: float) -> None: ... @overload @staticmethod - def SetLengthUnit(theDoc: TDocStd_Document, theUnitValue: float, theBaseUnit: UnitsMethods_LengthUnit) -> None: ... + def SetLengthUnit( + theDoc: TDocStd_Document, + theUnitValue: float, + theBaseUnit: UnitsMethods_LengthUnit, + ) -> None: ... @staticmethod def ShapeTool(acces: TDF_Label) -> XCAFDoc_ShapeTool: ... @staticmethod @@ -576,34 +756,59 @@ class XCAFDoc_DocumentTool(TDataStd_GenericEmpty): class XCAFDoc_Editor: @staticmethod - def CloneShapeLabel(theSrcLabel: TDF_Label, theSrcShapeTool: XCAFDoc_ShapeTool, theDstShapeTool: XCAFDoc_ShapeTool, theMap: TDF_LabelDataMap) -> TDF_Label: ... + def CloneShapeLabel( + theSrcLabel: TDF_Label, + theSrcShapeTool: XCAFDoc_ShapeTool, + theDstShapeTool: XCAFDoc_ShapeTool, + theMap: TDF_LabelDataMap, + ) -> TDF_Label: ... @overload @staticmethod - def Expand(theDoc: TDF_Label, theShape: TDF_Label, theRecursively: Optional[bool] = True) -> bool: ... + def Expand( + theDoc: TDF_Label, theShape: TDF_Label, theRecursively: Optional[bool] = True + ) -> bool: ... @overload @staticmethod def Expand(theDoc: TDF_Label, theRecursively: Optional[bool] = True) -> bool: ... @overload @staticmethod - def Extract(theSrcLabels: TDF_LabelSequence, theDstLabel: TDF_Label, theIsNoVisMat: Optional[bool] = False) -> bool: ... + def Extract( + theSrcLabels: TDF_LabelSequence, + theDstLabel: TDF_Label, + theIsNoVisMat: Optional[bool] = False, + ) -> bool: ... @overload @staticmethod - def Extract(theSrcLabel: TDF_Label, theDstLabel: TDF_Label, theIsNoVisMat: Optional[bool] = False) -> bool: ... + def Extract( + theSrcLabel: TDF_Label, + theDstLabel: TDF_Label, + theIsNoVisMat: Optional[bool] = False, + ) -> bool: ... @staticmethod - def FilterShapeTree(theShapeTool: XCAFDoc_ShapeTool, theLabelsToKeep: TDF_LabelMap) -> bool: ... + def FilterShapeTree( + theShapeTool: XCAFDoc_ShapeTool, theLabelsToKeep: TDF_LabelMap + ) -> bool: ... @staticmethod - def GetChildShapeLabels(theLabel: TDF_Label, theRelatedLabels: TDF_LabelMap) -> None: ... + def GetChildShapeLabels( + theLabel: TDF_Label, theRelatedLabels: TDF_LabelMap + ) -> None: ... @staticmethod - def GetParentShapeLabels(theLabel: TDF_Label, theRelatedLabels: TDF_LabelMap) -> None: ... + def GetParentShapeLabels( + theLabel: TDF_Label, theRelatedLabels: TDF_LabelMap + ) -> None: ... @staticmethod - def RescaleGeometry(theLabel: TDF_Label, theScaleFactor: float, theForceIfNotRoot: Optional[bool] = False) -> bool: ... + def RescaleGeometry( + theLabel: TDF_Label, + theScaleFactor: float, + theForceIfNotRoot: Optional[bool] = False, + ) -> bool: ... class XCAFDoc_GraphNode(TDF_Attribute): def __init__(self) -> None: ... def BeforeForget(self) -> None: ... def ChildIndex(self, Ch: XCAFDoc_GraphNode) -> int: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FatherIndex(self, F: XCAFDoc_GraphNode) -> int: ... @staticmethod def Find(L: TDF_Label, G: XCAFDoc_GraphNode) -> bool: ... @@ -645,29 +850,40 @@ class XCAFDoc_LayerTool(TDataStd_GenericEmpty): @overload def AddLayer(self, theLayer: str, theToFindVisible: bool) -> TDF_Label: ... def BaseLabel(self) -> TDF_Label: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def FindLayer(self, aLayer: str, lab: TDF_Label) -> bool: ... @overload - def FindLayer(self, aLayer: str, theToFindWithProperty: Optional[bool] = False, theToFindVisible: Optional[bool] = True) -> TDF_Label: ... + def FindLayer( + self, + aLayer: str, + theToFindWithProperty: Optional[bool] = False, + theToFindVisible: Optional[bool] = True, + ) -> TDF_Label: ... @staticmethod def GetID() -> Standard_GUID: ... def GetLayer(self, lab: TDF_Label, aLayer: str) -> bool: ... def GetLayerLabels(self, Labels: TDF_LabelSequence) -> None: ... @overload - def GetLayers(self, L: TDF_Label, aLayerS: TColStd_HSequenceOfExtendedString) -> bool: ... + def GetLayers( + self, L: TDF_Label, aLayerS: TColStd_HSequenceOfExtendedString + ) -> bool: ... @overload def GetLayers(self, L: TDF_Label, aLayerLS: TDF_LabelSequence) -> bool: ... @overload def GetLayers(self, L: TDF_Label) -> TColStd_HSequenceOfExtendedString: ... @overload - def GetLayers(self, Sh: TopoDS_Shape, aLayerS: TColStd_HSequenceOfExtendedString) -> bool: ... + def GetLayers( + self, Sh: TopoDS_Shape, aLayerS: TColStd_HSequenceOfExtendedString + ) -> bool: ... @overload def GetLayers(self, Sh: TopoDS_Shape, aLayerLS: TDF_LabelSequence) -> bool: ... @overload def GetLayers(self, Sh: TopoDS_Shape) -> TColStd_HSequenceOfExtendedString: ... @staticmethod - def GetShapesOfLayer(theLayerL: TDF_Label, theShLabels: TDF_LabelSequence) -> None: ... + def GetShapesOfLayer( + theLayerL: TDF_Label, theShLabels: TDF_LabelSequence + ) -> None: ... def ID(self) -> Standard_GUID: ... def IsLayer(self, lab: TDF_Label) -> bool: ... @overload @@ -683,14 +899,27 @@ class XCAFDoc_LayerTool(TDataStd_GenericEmpty): @staticmethod def Set(L: TDF_Label) -> XCAFDoc_LayerTool: ... @overload - def SetLayer(self, L: TDF_Label, LayerL: TDF_Label, shapeInOneLayer: Optional[bool] = False) -> None: ... - @overload - def SetLayer(self, L: TDF_Label, aLayer: str, shapeInOneLayer: Optional[bool] = False) -> None: ... - @overload - def SetLayer(self, Sh: TopoDS_Shape, LayerL: TDF_Label, shapeInOneLayer: Optional[bool] = False) -> bool: ... - @overload - def SetLayer(self, Sh: TopoDS_Shape, aLayer: str, shapeInOneLayer: Optional[bool] = False) -> bool: ... - def SetVisibility(self, layerL: TDF_Label, isvisible: Optional[bool] = True) -> None: ... + def SetLayer( + self, L: TDF_Label, LayerL: TDF_Label, shapeInOneLayer: Optional[bool] = False + ) -> None: ... + @overload + def SetLayer( + self, L: TDF_Label, aLayer: str, shapeInOneLayer: Optional[bool] = False + ) -> None: ... + @overload + def SetLayer( + self, + Sh: TopoDS_Shape, + LayerL: TDF_Label, + shapeInOneLayer: Optional[bool] = False, + ) -> bool: ... + @overload + def SetLayer( + self, Sh: TopoDS_Shape, aLayer: str, shapeInOneLayer: Optional[bool] = False + ) -> bool: ... + def SetVisibility( + self, layerL: TDF_Label, isvisible: Optional[bool] = True + ) -> None: ... def ShapeTool(self) -> XCAFDoc_ShapeTool: ... @overload def UnSetLayers(self, L: TDF_Label) -> None: ... @@ -708,7 +937,7 @@ class XCAFDoc_LayerTool(TDataStd_GenericEmpty): class XCAFDoc_LengthUnit(TDF_Attribute): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... def GetUnitName(self) -> str: ... @@ -719,19 +948,26 @@ class XCAFDoc_LengthUnit(TDF_Attribute): def Restore(self, theWith: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theUnitName: str, theUnitValue: float) -> XCAFDoc_LengthUnit: ... + def Set( + theLabel: TDF_Label, theUnitName: str, theUnitValue: float + ) -> XCAFDoc_LengthUnit: ... @overload @staticmethod def Set(theLabel: TDF_Label, theUnitValue: float) -> XCAFDoc_LengthUnit: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theGUID: Standard_GUID, theUnitName: str, theUnitValue: float) -> XCAFDoc_LengthUnit: ... + def Set( + theLabel: TDF_Label, + theGUID: Standard_GUID, + theUnitName: str, + theUnitValue: float, + ) -> XCAFDoc_LengthUnit: ... @overload def Set(self, theUnitName: str, theUnitValue: float) -> None: ... class XCAFDoc_Location(TDF_Attribute): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Get(self) -> TopLoc_Location: ... @staticmethod def GetID() -> Standard_GUID: ... @@ -747,7 +983,7 @@ class XCAFDoc_Location(TDF_Attribute): class XCAFDoc_Material(TDF_Attribute): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetDensName(self) -> TCollection_HAsciiString: ... def GetDensValType(self) -> TCollection_HAsciiString: ... def GetDensity(self) -> float: ... @@ -761,15 +997,36 @@ class XCAFDoc_Material(TDF_Attribute): def Restore(self, With: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(label: TDF_Label, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aDensity: float, aDensName: TCollection_HAsciiString, aDensValType: TCollection_HAsciiString) -> XCAFDoc_Material: ... - @overload - def Set(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aDensity: float, aDensName: TCollection_HAsciiString, aDensValType: TCollection_HAsciiString) -> None: ... + def Set( + label: TDF_Label, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aDensity: float, + aDensName: TCollection_HAsciiString, + aDensValType: TCollection_HAsciiString, + ) -> XCAFDoc_Material: ... + @overload + def Set( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aDensity: float, + aDensName: TCollection_HAsciiString, + aDensValType: TCollection_HAsciiString, + ) -> None: ... class XCAFDoc_MaterialTool(TDataStd_GenericEmpty): def __init__(self) -> None: ... - def AddMaterial(self, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aDensity: float, aDensName: TCollection_HAsciiString, aDensValType: TCollection_HAsciiString) -> TDF_Label: ... + def AddMaterial( + self, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aDensity: float, + aDensName: TCollection_HAsciiString, + aDensValType: TCollection_HAsciiString, + ) -> TDF_Label: ... def BaseLabel(self) -> TDF_Label: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def GetDensityForShape(ShapeL: TDF_Label) -> float: ... @staticmethod @@ -784,12 +1041,20 @@ class XCAFDoc_MaterialTool(TDataStd_GenericEmpty): @overload def SetMaterial(self, L: TDF_Label, MatL: TDF_Label) -> None: ... @overload - def SetMaterial(self, L: TDF_Label, aName: TCollection_HAsciiString, aDescription: TCollection_HAsciiString, aDensity: float, aDensName: TCollection_HAsciiString, aDensValType: TCollection_HAsciiString) -> None: ... + def SetMaterial( + self, + L: TDF_Label, + aName: TCollection_HAsciiString, + aDescription: TCollection_HAsciiString, + aDensity: float, + aDensName: TCollection_HAsciiString, + aDensValType: TCollection_HAsciiString, + ) -> None: ... def ShapeTool(self) -> XCAFDoc_ShapeTool: ... class XCAFDoc_Note(TDF_Attribute): def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def Get(theLabel: TDF_Label) -> XCAFDoc_Note: ... def GetObject(self) -> XCAFNoteObjects_NoteObject: ... @@ -806,23 +1071,59 @@ class XCAFDoc_Note(TDF_Attribute): class XCAFDoc_NotesTool(TDataStd_GenericEmpty): def __init__(self) -> None: ... @overload - def AddNote(self, theNoteLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId) -> XCAFDoc_AssemblyItemRef: ... - @overload - def AddNote(self, theNoteLabel: TDF_Label, theItemLabel: TDF_Label) -> XCAFDoc_AssemblyItemRef: ... - @overload - def AddNoteToAttr(self, theNoteLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId, theGUID: Standard_GUID) -> XCAFDoc_AssemblyItemRef: ... - @overload - def AddNoteToAttr(self, theNoteLabel: TDF_Label, theItemLabel: TDF_Label, theGUID: Standard_GUID) -> XCAFDoc_AssemblyItemRef: ... - @overload - def AddNoteToSubshape(self, theNoteLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId, theSubshapeIndex: int) -> XCAFDoc_AssemblyItemRef: ... - @overload - def AddNoteToSubshape(self, theNoteLabel: TDF_Label, theItemLabel: TDF_Label, theSubshapeIndex: int) -> XCAFDoc_AssemblyItemRef: ... - def CreateBalloon(self, theUserName: str, theTimeStamp: str, theComment: str) -> XCAFDoc_Note: ... - @overload - def CreateBinData(self, theUserName: str, theTimeStamp: str, theTitle: str, theMIMEtype: str, theFile: OSD_File) -> XCAFDoc_Note: ... - @overload - def CreateBinData(self, theUserName: str, theTimeStamp: str, theTitle: str, theMIMEtype: str, theData: TColStd_HArray1OfByte) -> XCAFDoc_Note: ... - def CreateComment(self, theUserName: str, theTimeStamp: str, theComment: str) -> XCAFDoc_Note: ... + def AddNote( + self, theNoteLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId + ) -> XCAFDoc_AssemblyItemRef: ... + @overload + def AddNote( + self, theNoteLabel: TDF_Label, theItemLabel: TDF_Label + ) -> XCAFDoc_AssemblyItemRef: ... + @overload + def AddNoteToAttr( + self, + theNoteLabel: TDF_Label, + theItemId: XCAFDoc_AssemblyItemId, + theGUID: Standard_GUID, + ) -> XCAFDoc_AssemblyItemRef: ... + @overload + def AddNoteToAttr( + self, theNoteLabel: TDF_Label, theItemLabel: TDF_Label, theGUID: Standard_GUID + ) -> XCAFDoc_AssemblyItemRef: ... + @overload + def AddNoteToSubshape( + self, + theNoteLabel: TDF_Label, + theItemId: XCAFDoc_AssemblyItemId, + theSubshapeIndex: int, + ) -> XCAFDoc_AssemblyItemRef: ... + @overload + def AddNoteToSubshape( + self, theNoteLabel: TDF_Label, theItemLabel: TDF_Label, theSubshapeIndex: int + ) -> XCAFDoc_AssemblyItemRef: ... + def CreateBalloon( + self, theUserName: str, theTimeStamp: str, theComment: str + ) -> XCAFDoc_Note: ... + @overload + def CreateBinData( + self, + theUserName: str, + theTimeStamp: str, + theTitle: str, + theMIMEtype: str, + theFile: OSD_File, + ) -> XCAFDoc_Note: ... + @overload + def CreateBinData( + self, + theUserName: str, + theTimeStamp: str, + theTitle: str, + theMIMEtype: str, + theData: TColStd_HArray1OfByte, + ) -> XCAFDoc_Note: ... + def CreateComment( + self, theUserName: str, theTimeStamp: str, theComment: str + ) -> XCAFDoc_Note: ... def DeleteAllNotes(self) -> int: ... def DeleteNote(self, theNoteLabel: TDF_Label) -> bool: ... def DeleteNotes(self, theNoteLabels: TDF_LabelSequence) -> int: ... @@ -833,30 +1134,57 @@ class XCAFDoc_NotesTool(TDataStd_GenericEmpty): @overload def FindAnnotatedItem(self, theItemLabel: TDF_Label) -> TDF_Label: ... @overload - def FindAnnotatedItemAttr(self, theItemId: XCAFDoc_AssemblyItemId, theGUID: Standard_GUID) -> TDF_Label: ... + def FindAnnotatedItemAttr( + self, theItemId: XCAFDoc_AssemblyItemId, theGUID: Standard_GUID + ) -> TDF_Label: ... @overload - def FindAnnotatedItemAttr(self, theItemLabel: TDF_Label, theGUID: Standard_GUID) -> TDF_Label: ... + def FindAnnotatedItemAttr( + self, theItemLabel: TDF_Label, theGUID: Standard_GUID + ) -> TDF_Label: ... @overload - def FindAnnotatedItemSubshape(self, theItemId: XCAFDoc_AssemblyItemId, theSubshapeIndex: int) -> TDF_Label: ... + def FindAnnotatedItemSubshape( + self, theItemId: XCAFDoc_AssemblyItemId, theSubshapeIndex: int + ) -> TDF_Label: ... @overload - def FindAnnotatedItemSubshape(self, theItemLabel: TDF_Label, theSubshapeIndex: int) -> TDF_Label: ... + def FindAnnotatedItemSubshape( + self, theItemLabel: TDF_Label, theSubshapeIndex: int + ) -> TDF_Label: ... def GetAnnotatedItems(self, theLabels: TDF_LabelSequence) -> None: ... def GetAnnotatedItemsLabel(self) -> TDF_Label: ... @overload - def GetAttrNotes(self, theItemId: XCAFDoc_AssemblyItemId, theGUID: Standard_GUID, theNoteLabels: TDF_LabelSequence) -> int: ... + def GetAttrNotes( + self, + theItemId: XCAFDoc_AssemblyItemId, + theGUID: Standard_GUID, + theNoteLabels: TDF_LabelSequence, + ) -> int: ... @overload - def GetAttrNotes(self, theItemLabel: TDF_Label, theGUID: Standard_GUID, theNoteLabels: TDF_LabelSequence) -> int: ... + def GetAttrNotes( + self, + theItemLabel: TDF_Label, + theGUID: Standard_GUID, + theNoteLabels: TDF_LabelSequence, + ) -> int: ... @staticmethod def GetID() -> Standard_GUID: ... @overload def GetNotes(self, theNoteLabels: TDF_LabelSequence) -> None: ... @overload - def GetNotes(self, theItemId: XCAFDoc_AssemblyItemId, theNoteLabels: TDF_LabelSequence) -> int: ... + def GetNotes( + self, theItemId: XCAFDoc_AssemblyItemId, theNoteLabels: TDF_LabelSequence + ) -> int: ... @overload - def GetNotes(self, theItemLabel: TDF_Label, theNoteLabels: TDF_LabelSequence) -> int: ... + def GetNotes( + self, theItemLabel: TDF_Label, theNoteLabels: TDF_LabelSequence + ) -> int: ... def GetNotesLabel(self) -> TDF_Label: ... def GetOrphanNotes(self, theNoteLabels: TDF_LabelSequence) -> None: ... - def GetSubshapeNotes(self, theItemId: XCAFDoc_AssemblyItemId, theSubshapeIndex: int, theNoteLabels: TDF_LabelSequence) -> int: ... + def GetSubshapeNotes( + self, + theItemId: XCAFDoc_AssemblyItemId, + theSubshapeIndex: int, + theNoteLabels: TDF_LabelSequence, + ) -> int: ... def ID(self) -> Standard_GUID: ... @overload def IsAnnotatedItem(self, theItemId: XCAFDoc_AssemblyItemId) -> bool: ... @@ -866,32 +1194,85 @@ class XCAFDoc_NotesTool(TDataStd_GenericEmpty): def NbNotes(self) -> int: ... def NbOrphanNotes(self) -> int: ... @overload - def RemoveAllAttrNotes(self, theItemId: XCAFDoc_AssemblyItemId, theGUID: Standard_GUID, theDelIfOrphan: Optional[bool] = False) -> bool: ... - @overload - def RemoveAllAttrNotes(self, theItemLabel: TDF_Label, theGUID: Standard_GUID, theDelIfOrphan: Optional[bool] = False) -> bool: ... - @overload - def RemoveAllNotes(self, theItemId: XCAFDoc_AssemblyItemId, theDelIfOrphan: Optional[bool] = False) -> bool: ... - @overload - def RemoveAllNotes(self, theItemLabel: TDF_Label, theDelIfOrphan: Optional[bool] = False) -> bool: ... - def RemoveAllSubshapeNotes(self, theItemId: XCAFDoc_AssemblyItemId, theSubshapeIndex: int, theDelIfOrphan: Optional[bool] = False) -> bool: ... - @overload - def RemoveAttrNote(self, theNoteLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId, theGUID: Standard_GUID, theDelIfOrphan: Optional[bool] = False) -> bool: ... - @overload - def RemoveAttrNote(self, theNoteLabel: TDF_Label, theItemLabel: TDF_Label, theGUID: Standard_GUID, theDelIfOrphan: Optional[bool] = False) -> bool: ... - @overload - def RemoveNote(self, theNoteLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId, theDelIfOrphan: Optional[bool] = False) -> bool: ... - @overload - def RemoveNote(self, theNoteLabel: TDF_Label, theItemLabel: TDF_Label, theDelIfOrphan: Optional[bool] = False) -> bool: ... - @overload - def RemoveSubshapeNote(self, theNoteLabel: TDF_Label, theItemId: XCAFDoc_AssemblyItemId, theSubshapeIndex: int, theDelIfOrphan: Optional[bool] = False) -> bool: ... - @overload - def RemoveSubshapeNote(self, theNoteLabel: TDF_Label, theItemLabel: TDF_Label, theSubshapeIndex: int, theDelIfOrphan: Optional[bool] = False) -> bool: ... + def RemoveAllAttrNotes( + self, + theItemId: XCAFDoc_AssemblyItemId, + theGUID: Standard_GUID, + theDelIfOrphan: Optional[bool] = False, + ) -> bool: ... + @overload + def RemoveAllAttrNotes( + self, + theItemLabel: TDF_Label, + theGUID: Standard_GUID, + theDelIfOrphan: Optional[bool] = False, + ) -> bool: ... + @overload + def RemoveAllNotes( + self, theItemId: XCAFDoc_AssemblyItemId, theDelIfOrphan: Optional[bool] = False + ) -> bool: ... + @overload + def RemoveAllNotes( + self, theItemLabel: TDF_Label, theDelIfOrphan: Optional[bool] = False + ) -> bool: ... + def RemoveAllSubshapeNotes( + self, + theItemId: XCAFDoc_AssemblyItemId, + theSubshapeIndex: int, + theDelIfOrphan: Optional[bool] = False, + ) -> bool: ... + @overload + def RemoveAttrNote( + self, + theNoteLabel: TDF_Label, + theItemId: XCAFDoc_AssemblyItemId, + theGUID: Standard_GUID, + theDelIfOrphan: Optional[bool] = False, + ) -> bool: ... + @overload + def RemoveAttrNote( + self, + theNoteLabel: TDF_Label, + theItemLabel: TDF_Label, + theGUID: Standard_GUID, + theDelIfOrphan: Optional[bool] = False, + ) -> bool: ... + @overload + def RemoveNote( + self, + theNoteLabel: TDF_Label, + theItemId: XCAFDoc_AssemblyItemId, + theDelIfOrphan: Optional[bool] = False, + ) -> bool: ... + @overload + def RemoveNote( + self, + theNoteLabel: TDF_Label, + theItemLabel: TDF_Label, + theDelIfOrphan: Optional[bool] = False, + ) -> bool: ... + @overload + def RemoveSubshapeNote( + self, + theNoteLabel: TDF_Label, + theItemId: XCAFDoc_AssemblyItemId, + theSubshapeIndex: int, + theDelIfOrphan: Optional[bool] = False, + ) -> bool: ... + @overload + def RemoveSubshapeNote( + self, + theNoteLabel: TDF_Label, + theItemLabel: TDF_Label, + theSubshapeIndex: int, + theDelIfOrphan: Optional[bool] = False, + ) -> bool: ... @staticmethod def Set(theLabel: TDF_Label) -> XCAFDoc_NotesTool: ... class XCAFDoc_ShapeMapTool(TDF_Attribute): def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod def GetID() -> Standard_GUID: ... def GetMap(self) -> TopTools_IndexedMapOfShape: ... @@ -907,14 +1288,25 @@ class XCAFDoc_ShapeMapTool(TDF_Attribute): class XCAFDoc_ShapeTool(TDataStd_GenericEmpty): def __init__(self) -> None: ... @overload - def AddComponent(self, assembly: TDF_Label, comp: TDF_Label, Loc: TopLoc_Location) -> TDF_Label: ... + def AddComponent( + self, assembly: TDF_Label, comp: TDF_Label, Loc: TopLoc_Location + ) -> TDF_Label: ... @overload - def AddComponent(self, assembly: TDF_Label, comp: TopoDS_Shape, expand: Optional[bool] = False) -> TDF_Label: ... - def AddShape(self, S: TopoDS_Shape, makeAssembly: Optional[bool] = True, makePrepare: Optional[bool] = True) -> TDF_Label: ... + def AddComponent( + self, assembly: TDF_Label, comp: TopoDS_Shape, expand: Optional[bool] = False + ) -> TDF_Label: ... + def AddShape( + self, + S: TopoDS_Shape, + makeAssembly: Optional[bool] = True, + makePrepare: Optional[bool] = True, + ) -> TDF_Label: ... @overload def AddSubShape(self, shapeL: TDF_Label, sub: TopoDS_Shape) -> TDF_Label: ... @overload - def AddSubShape(self, shapeL: TDF_Label, sub: TopoDS_Shape, addedSubShapeL: TDF_Label) -> bool: ... + def AddSubShape( + self, shapeL: TDF_Label, sub: TopoDS_Shape, addedSubShapeL: TDF_Label + ) -> bool: ... @staticmethod def AutoNaming() -> bool: ... def BaseLabel(self) -> TDF_Label: ... @@ -924,25 +1316,41 @@ class XCAFDoc_ShapeTool(TDataStd_GenericEmpty): def Dump(self, deep: bool) -> Tuple[Standard_OStream, str]: ... @overload def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @staticmethod - def DumpShape(L: TDF_Label, level: Optional[int] = 0, deep: Optional[bool] = False) -> str: ... + def DumpShape( + L: TDF_Label, level: Optional[int] = 0, deep: Optional[bool] = False + ) -> str: ... def Expand(self, Shape: TDF_Label) -> bool: ... - def FindComponent(self, theShape: TopoDS_Shape, Labels: TDF_LabelSequence) -> bool: ... + def FindComponent( + self, theShape: TopoDS_Shape, Labels: TDF_LabelSequence + ) -> bool: ... def FindMainShape(self, sub: TopoDS_Shape) -> TDF_Label: ... def FindMainShapeUsingMap(self, sub: TopoDS_Shape) -> TDF_Label: ... @staticmethod def FindSHUO(Labels: TDF_LabelSequence, theSHUOAttr: XCAFDoc_GraphNode) -> bool: ... @overload - def FindShape(self, S: TopoDS_Shape, L: TDF_Label, findInstance: Optional[bool] = False) -> bool: ... + def FindShape( + self, S: TopoDS_Shape, L: TDF_Label, findInstance: Optional[bool] = False + ) -> bool: ... @overload - def FindShape(self, S: TopoDS_Shape, findInstance: Optional[bool] = False) -> TDF_Label: ... - def FindSubShape(self, shapeL: TDF_Label, sub: TopoDS_Shape, L: TDF_Label) -> bool: ... + def FindShape( + self, S: TopoDS_Shape, findInstance: Optional[bool] = False + ) -> TDF_Label: ... + def FindSubShape( + self, shapeL: TDF_Label, sub: TopoDS_Shape, L: TDF_Label + ) -> bool: ... @staticmethod - def GetAllComponentSHUO(CompLabel: TDF_Label, SHUOAttrs: TDF_AttributeSequence) -> bool: ... - def GetAllSHUOInstances(self, theSHUO: XCAFDoc_GraphNode, theSHUOShapeSeq: TopTools_SequenceOfShape) -> bool: ... + def GetAllComponentSHUO( + CompLabel: TDF_Label, SHUOAttrs: TDF_AttributeSequence + ) -> bool: ... + def GetAllSHUOInstances( + self, theSHUO: XCAFDoc_GraphNode, theSHUOShapeSeq: TopTools_SequenceOfShape + ) -> bool: ... @staticmethod - def GetComponents(L: TDF_Label, Labels: TDF_LabelSequence, getsubchilds: Optional[bool] = False) -> bool: ... + def GetComponents( + L: TDF_Label, Labels: TDF_LabelSequence, getsubchilds: Optional[bool] = False + ) -> bool: ... @staticmethod def GetExternRefs(L: TDF_Label, SHAS: TColStd_SequenceOfHAsciiString) -> None: ... def GetFreeShapes(self, FreeLabels: TDF_LabelSequence) -> None: ... @@ -951,9 +1359,13 @@ class XCAFDoc_ShapeTool(TDataStd_GenericEmpty): @staticmethod def GetLocation(L: TDF_Label) -> TopLoc_Location: ... @overload - def GetNamedProperties(self, theLabel: TDF_Label, theToCreate: Optional[bool] = False) -> TDataStd_NamedData: ... + def GetNamedProperties( + self, theLabel: TDF_Label, theToCreate: Optional[bool] = False + ) -> TDataStd_NamedData: ... @overload - def GetNamedProperties(self, theShape: TopoDS_Shape, theToCreate: Optional[bool] = False) -> TDataStd_NamedData: ... + def GetNamedProperties( + self, theShape: TopoDS_Shape, theToCreate: Optional[bool] = False + ) -> TDataStd_NamedData: ... @overload @staticmethod def GetOneShape(theLabels: TDF_LabelSequence) -> TopoDS_Shape: ... @@ -978,7 +1390,9 @@ class XCAFDoc_ShapeTool(TDataStd_GenericEmpty): @staticmethod def GetSubShapes(L: TDF_Label, Labels: TDF_LabelSequence) -> bool: ... @staticmethod - def GetUsers(L: TDF_Label, Labels: TDF_LabelSequence, getsubchilds: Optional[bool] = False) -> int: ... + def GetUsers( + L: TDF_Label, Labels: TDF_LabelSequence, getsubchilds: Optional[bool] = False + ) -> int: ... def ID(self) -> Standard_GUID: ... def Init(self) -> None: ... @staticmethod @@ -1008,9 +1422,20 @@ class XCAFDoc_ShapeTool(TDataStd_GenericEmpty): def NewShape(self) -> TDF_Label: ... def RemoveComponent(self, comp: TDF_Label) -> None: ... def RemoveSHUO(self, SHUOLabel: TDF_Label) -> bool: ... - def RemoveShape(self, L: TDF_Label, removeCompletely: Optional[bool] = True) -> bool: ... - def Search(self, S: TopoDS_Shape, L: TDF_Label, findInstance: Optional[bool] = True, findComponent: Optional[bool] = True, findSubshape: Optional[bool] = True) -> bool: ... - def SearchUsingMap(self, S: TopoDS_Shape, L: TDF_Label, findWithoutLoc: bool, findSubshape: bool) -> bool: ... + def RemoveShape( + self, L: TDF_Label, removeCompletely: Optional[bool] = True + ) -> bool: ... + def Search( + self, + S: TopoDS_Shape, + L: TDF_Label, + findInstance: Optional[bool] = True, + findComponent: Optional[bool] = True, + findSubshape: Optional[bool] = True, + ) -> bool: ... + def SearchUsingMap( + self, S: TopoDS_Shape, L: TDF_Label, findWithoutLoc: bool, findSubshape: bool + ) -> bool: ... @staticmethod def Set(L: TDF_Label) -> XCAFDoc_ShapeTool: ... @staticmethod @@ -1018,10 +1443,16 @@ class XCAFDoc_ShapeTool(TDataStd_GenericEmpty): @overload def SetExternRefs(self, SHAS: TColStd_SequenceOfHAsciiString) -> TDF_Label: ... @overload - def SetExternRefs(self, L: TDF_Label, SHAS: TColStd_SequenceOfHAsciiString) -> None: ... + def SetExternRefs( + self, L: TDF_Label, SHAS: TColStd_SequenceOfHAsciiString + ) -> None: ... def SetInstanceSHUO(self, theShape: TopoDS_Shape) -> XCAFDoc_GraphNode: ... - def SetLocation(self, theShapeLabel: TDF_Label, theLoc: TopLoc_Location, theRefLabel: TDF_Label) -> bool: ... - def SetSHUO(self, Labels: TDF_LabelSequence, MainSHUOAttr: XCAFDoc_GraphNode) -> bool: ... + def SetLocation( + self, theShapeLabel: TDF_Label, theLoc: TopLoc_Location, theRefLabel: TDF_Label + ) -> bool: ... + def SetSHUO( + self, Labels: TDF_LabelSequence, MainSHUOAttr: XCAFDoc_GraphNode + ) -> bool: ... def SetShape(self, L: TDF_Label, S: TopoDS_Shape) -> None: ... def UpdateAssemblies(self) -> None: ... @@ -1041,17 +1472,37 @@ class XCAFDoc_ViewTool(TDataStd_GenericEmpty): def BaseLabel(self) -> TDF_Label: ... @staticmethod def GetID() -> Standard_GUID: ... - def GetRefAnnotationLabel(self, theViewL: TDF_Label, theAnnotationLabels: TDF_LabelSequence) -> bool: ... - def GetRefClippingPlaneLabel(self, theViewL: TDF_Label, theClippingPlaneLabels: TDF_LabelSequence) -> bool: ... - def GetRefGDTLabel(self, theViewL: TDF_Label, theGDTLabels: TDF_LabelSequence) -> bool: ... - def GetRefNoteLabel(self, theViewL: TDF_Label, theNoteLabels: TDF_LabelSequence) -> bool: ... - def GetRefShapeLabel(self, theViewL: TDF_Label, theShapeLabels: TDF_LabelSequence) -> bool: ... + def GetRefAnnotationLabel( + self, theViewL: TDF_Label, theAnnotationLabels: TDF_LabelSequence + ) -> bool: ... + def GetRefClippingPlaneLabel( + self, theViewL: TDF_Label, theClippingPlaneLabels: TDF_LabelSequence + ) -> bool: ... + def GetRefGDTLabel( + self, theViewL: TDF_Label, theGDTLabels: TDF_LabelSequence + ) -> bool: ... + def GetRefNoteLabel( + self, theViewL: TDF_Label, theNoteLabels: TDF_LabelSequence + ) -> bool: ... + def GetRefShapeLabel( + self, theViewL: TDF_Label, theShapeLabels: TDF_LabelSequence + ) -> bool: ... def GetViewLabels(self, theLabels: TDF_LabelSequence) -> None: ... - def GetViewLabelsForAnnotation(self, theAnnotationL: TDF_Label, theViews: TDF_LabelSequence) -> bool: ... - def GetViewLabelsForClippingPlane(self, theClippingPlaneL: TDF_Label, theViews: TDF_LabelSequence) -> bool: ... - def GetViewLabelsForGDT(self, theGDTL: TDF_Label, theViews: TDF_LabelSequence) -> bool: ... - def GetViewLabelsForNote(self, theNoteL: TDF_Label, theViews: TDF_LabelSequence) -> bool: ... - def GetViewLabelsForShape(self, theShapeL: TDF_Label, theViews: TDF_LabelSequence) -> bool: ... + def GetViewLabelsForAnnotation( + self, theAnnotationL: TDF_Label, theViews: TDF_LabelSequence + ) -> bool: ... + def GetViewLabelsForClippingPlane( + self, theClippingPlaneL: TDF_Label, theViews: TDF_LabelSequence + ) -> bool: ... + def GetViewLabelsForGDT( + self, theGDTL: TDF_Label, theViews: TDF_LabelSequence + ) -> bool: ... + def GetViewLabelsForNote( + self, theNoteL: TDF_Label, theViews: TDF_LabelSequence + ) -> bool: ... + def GetViewLabelsForShape( + self, theShapeL: TDF_Label, theViews: TDF_LabelSequence + ) -> bool: ... def ID(self) -> Standard_GUID: ... def IsLocked(self, theViewL: TDF_Label) -> bool: ... def IsView(self, theLabel: TDF_Label) -> bool: ... @@ -1059,13 +1510,34 @@ class XCAFDoc_ViewTool(TDataStd_GenericEmpty): def RemoveView(self, theViewL: TDF_Label) -> None: ... @staticmethod def Set(L: TDF_Label) -> XCAFDoc_ViewTool: ... - def SetClippingPlanes(self, theClippingPlaneLabels: TDF_LabelSequence, theViewL: TDF_Label) -> None: ... - @overload - def SetView(self, theShapes: TDF_LabelSequence, theGDTs: TDF_LabelSequence, theClippingPlanes: TDF_LabelSequence, theNotes: TDF_LabelSequence, theAnnotations: TDF_LabelSequence, theViewL: TDF_Label) -> None: ... - @overload - def SetView(self, theShapes: TDF_LabelSequence, theGDTs: TDF_LabelSequence, theClippingPlanes: TDF_LabelSequence, theViewL: TDF_Label) -> None: ... - @overload - def SetView(self, theShapes: TDF_LabelSequence, theGDTs: TDF_LabelSequence, theViewL: TDF_Label) -> None: ... + def SetClippingPlanes( + self, theClippingPlaneLabels: TDF_LabelSequence, theViewL: TDF_Label + ) -> None: ... + @overload + def SetView( + self, + theShapes: TDF_LabelSequence, + theGDTs: TDF_LabelSequence, + theClippingPlanes: TDF_LabelSequence, + theNotes: TDF_LabelSequence, + theAnnotations: TDF_LabelSequence, + theViewL: TDF_Label, + ) -> None: ... + @overload + def SetView( + self, + theShapes: TDF_LabelSequence, + theGDTs: TDF_LabelSequence, + theClippingPlanes: TDF_LabelSequence, + theViewL: TDF_Label, + ) -> None: ... + @overload + def SetView( + self, + theShapes: TDF_LabelSequence, + theGDTs: TDF_LabelSequence, + theViewL: TDF_Label, + ) -> None: ... def Unlock(self, theViewL: TDF_Label) -> None: ... class XCAFDoc_VisMaterial(TDF_Attribute): @@ -1076,7 +1548,7 @@ class XCAFDoc_VisMaterial(TDF_Attribute): def CommonMaterial(self) -> XCAFDoc_VisMaterialCommon: ... def ConvertToCommonMaterial(self) -> XCAFDoc_VisMaterialCommon: ... def ConvertToPbrMaterial(self) -> XCAFDoc_VisMaterialPBR: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def FaceCulling(self) -> Graphic3d_TypeOfBackfacingModel: ... def FillAspect(self, theAspect: Graphic3d_Aspects) -> None: ... def FillMaterialAspect(self, theAspect: Graphic3d_MaterialAspect) -> None: ... @@ -1089,14 +1561,20 @@ class XCAFDoc_VisMaterial(TDF_Attribute): def IsEmpty(self) -> bool: ... def IsEqual(self, theOther: XCAFDoc_VisMaterial) -> bool: ... def NewEmpty(self) -> TDF_Attribute: ... - def Paste(self, theInto: TDF_Attribute, theRelTable: TDF_RelocationTable) -> None: ... + def Paste( + self, theInto: TDF_Attribute, theRelTable: TDF_RelocationTable + ) -> None: ... def PbrMaterial(self) -> XCAFDoc_VisMaterialPBR: ... def RawName(self) -> TCollection_HAsciiString: ... def Restore(self, theWith: TDF_Attribute) -> None: ... - def SetAlphaMode(self, theMode: Graphic3d_AlphaMode, theCutOff: Optional[float] = 0.5) -> None: ... + def SetAlphaMode( + self, theMode: Graphic3d_AlphaMode, theCutOff: Optional[float] = 0.5 + ) -> None: ... def SetCommonMaterial(self, theMaterial: XCAFDoc_VisMaterialCommon) -> None: ... def SetDoubleSided(self, theIsDoubleSided: bool) -> None: ... - def SetFaceCulling(self, theFaceCulling: Graphic3d_TypeOfBackfacingModel) -> None: ... + def SetFaceCulling( + self, theFaceCulling: Graphic3d_TypeOfBackfacingModel + ) -> None: ... def SetPbrMaterial(self, theMaterial: XCAFDoc_VisMaterialPBR) -> None: ... def SetRawName(self, theName: TCollection_HAsciiString) -> None: ... def UnsetCommonMaterial(self) -> None: ... @@ -1104,12 +1582,12 @@ class XCAFDoc_VisMaterial(TDF_Attribute): class XCAFDoc_VisMaterialCommon: def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsEqual(self, theOther: XCAFDoc_VisMaterialCommon) -> bool: ... class XCAFDoc_VisMaterialPBR: def __init__(self) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsEqual(self, theOther: XCAFDoc_VisMaterialPBR) -> bool: ... class XCAFDoc_VisMaterialTool(TDF_Attribute): @@ -1126,12 +1604,16 @@ class XCAFDoc_VisMaterialTool(TDF_Attribute): def GetMaterials(self, Labels: TDF_LabelSequence) -> None: ... @overload @staticmethod - def GetShapeMaterial(theShapeLabel: TDF_Label, theMaterialLabel: TDF_Label) -> bool: ... + def GetShapeMaterial( + theShapeLabel: TDF_Label, theMaterialLabel: TDF_Label + ) -> bool: ... @overload @staticmethod def GetShapeMaterial(theShapeLabel: TDF_Label) -> XCAFDoc_VisMaterial: ... @overload - def GetShapeMaterial(self, theShape: TopoDS_Shape, theMaterialLabel: TDF_Label) -> bool: ... + def GetShapeMaterial( + self, theShape: TopoDS_Shape, theMaterialLabel: TDF_Label + ) -> bool: ... @overload def GetShapeMaterial(self, theShape: TopoDS_Shape) -> XCAFDoc_VisMaterial: ... def ID(self) -> Standard_GUID: ... @@ -1145,9 +1627,13 @@ class XCAFDoc_VisMaterialTool(TDF_Attribute): @staticmethod def Set(L: TDF_Label) -> XCAFDoc_VisMaterialTool: ... @overload - def SetShapeMaterial(self, theShapeLabel: TDF_Label, theMaterialLabel: TDF_Label) -> None: ... + def SetShapeMaterial( + self, theShapeLabel: TDF_Label, theMaterialLabel: TDF_Label + ) -> None: ... @overload - def SetShapeMaterial(self, theShape: TopoDS_Shape, theMaterialLabel: TDF_Label) -> bool: ... + def SetShapeMaterial( + self, theShape: TopoDS_Shape, theMaterialLabel: TDF_Label + ) -> bool: ... def ShapeTool(self) -> XCAFDoc_ShapeTool: ... @overload def UnSetShapeMaterial(self, theShapeLabel: TDF_Label) -> None: ... @@ -1157,7 +1643,7 @@ class XCAFDoc_VisMaterialTool(TDF_Attribute): class XCAFDoc_Volume(TDataStd_Real): def __init__(self) -> None: ... def Dump(self) -> Tuple[Standard_OStream, str]: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... @overload def Get(self) -> float: ... @overload @@ -1187,14 +1673,30 @@ class XCAFDoc_NoteBinData(XCAFDoc_Note): def Restore(self, theAttrFrom: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theUserName: str, theTimeStamp: str, theTitle: str, theMIMEtype: str, theFile: OSD_File) -> XCAFDoc_NoteBinData: ... + def Set( + theLabel: TDF_Label, + theUserName: str, + theTimeStamp: str, + theTitle: str, + theMIMEtype: str, + theFile: OSD_File, + ) -> XCAFDoc_NoteBinData: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theUserName: str, theTimeStamp: str, theTitle: str, theMIMEtype: str, theData: TColStd_HArray1OfByte) -> XCAFDoc_NoteBinData: ... + def Set( + theLabel: TDF_Label, + theUserName: str, + theTimeStamp: str, + theTitle: str, + theMIMEtype: str, + theData: TColStd_HArray1OfByte, + ) -> XCAFDoc_NoteBinData: ... @overload def Set(self, theTitle: str, theMIMEtype: str, theFile: OSD_File) -> bool: ... @overload - def Set(self, theTitle: str, theMIMEtype: str, theData: TColStd_HArray1OfByte) -> None: ... + def Set( + self, theTitle: str, theMIMEtype: str, theData: TColStd_HArray1OfByte + ) -> None: ... def Size(self) -> int: ... def Title(self) -> str: ... @@ -1212,7 +1714,9 @@ class XCAFDoc_NoteComment(XCAFDoc_Note): def Restore(self, theAttrFrom: TDF_Attribute) -> None: ... @overload @staticmethod - def Set(theLabel: TDF_Label, theUserName: str, theTimeStamp: str, theComment: str) -> XCAFDoc_NoteComment: ... + def Set( + theLabel: TDF_Label, theUserName: str, theTimeStamp: str, theComment: str + ) -> XCAFDoc_NoteComment: ... @overload def Set(self, theComment: str) -> None: ... @@ -1224,12 +1728,13 @@ class XCAFDoc_NoteBalloon(XCAFDoc_NoteComment): def GetID() -> Standard_GUID: ... def ID(self) -> Standard_GUID: ... @staticmethod - def Set(theLabel: TDF_Label, theUserName: str, theTimeStamp: str, theComment: str) -> XCAFDoc_NoteBalloon: ... + def Set( + theLabel: TDF_Label, theUserName: str, theTimeStamp: str, theComment: str + ) -> XCAFDoc_NoteBalloon: ... -#classnotwrapped +# classnotwrapped class XCAFDoc_GeomTolerance: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XCAFNoteObjects.pyi b/src/SWIG_files/wrapper/XCAFNoteObjects.pyi index f461b3f5c..e3770e436 100644 --- a/src/SWIG_files/wrapper/XCAFNoteObjects.pyi +++ b/src/SWIG_files/wrapper/XCAFNoteObjects.pyi @@ -6,7 +6,6 @@ from OCC.Core.NCollection import * from OCC.Core.gp import * from OCC.Core.TopoDS import * - class XCAFNoteObjects_NoteObject(Standard_Transient): @overload def __init__(self) -> None: ... @@ -28,4 +27,3 @@ class XCAFNoteObjects_NoteObject(Standard_Transient): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XCAFPrs.pyi b/src/SWIG_files/wrapper/XCAFPrs.pyi index d43d7b7b7..cdfeb8453 100644 --- a/src/SWIG_files/wrapper/XCAFPrs.pyi +++ b/src/SWIG_files/wrapper/XCAFPrs.pyi @@ -16,15 +16,25 @@ from OCC.Core.TPrsStd import * from OCC.Core.Image import * # the following typedef cannot be wrapped as is -XCAFPrs_DataMapIteratorOfIndexedDataMapOfShapeStyle = NewType("XCAFPrs_DataMapIteratorOfIndexedDataMapOfShapeStyle", Any) -XCAFPrs_DocumentExplorerFlags = NewType("XCAFPrs_DocumentExplorerFlags", Standard_Integer) +XCAFPrs_DataMapIteratorOfIndexedDataMapOfShapeStyle = NewType( + "XCAFPrs_DataMapIteratorOfIndexedDataMapOfShapeStyle", Any +) +XCAFPrs_DocumentExplorerFlags = NewType( + "XCAFPrs_DocumentExplorerFlags", Standard_Integer +) # the following typedef cannot be wrapped as is XCAFPrs_IndexedDataMapOfShapeStyle = NewType("XCAFPrs_IndexedDataMapOfShapeStyle", Any) - class xcafprs: @staticmethod - def CollectStyleSettings(L: TDF_Label, loc: TopLoc_Location, settings: XCAFPrs_IndexedDataMapOfShapeStyle, theLayerColor: Optional[Quantity_ColorRGBA] = Quantity_ColorRGBA(Quantity_NOC_WHITE)) -> None: ... + def CollectStyleSettings( + L: TDF_Label, + loc: TopLoc_Location, + settings: XCAFPrs_IndexedDataMapOfShapeStyle, + theLayerColor: Optional[Quantity_ColorRGBA] = Quantity_ColorRGBA( + Quantity_NOC_WHITE + ), + ) -> None: ... @staticmethod def GetViewNameMode() -> bool: ... @staticmethod @@ -41,9 +51,20 @@ class XCAFPrs_DocumentExplorer: @overload def __init__(self) -> None: ... @overload - def __init__(self, theDocument: TDocStd_Document, theFlags: int, theDefStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def __init__( + self, + theDocument: TDocStd_Document, + theFlags: int, + theDefStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... @overload - def __init__(self, theDocument: TDocStd_Document, theRoots: TDF_LabelSequence, theFlags: int, theDefStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def __init__( + self, + theDocument: TDocStd_Document, + theRoots: TDF_LabelSequence, + theFlags: int, + theDefStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... def ChangeCurrent(self) -> XCAFPrs_DocumentNode: ... def ColorTool(self) -> XCAFDoc_ColorTool: ... @overload @@ -55,16 +76,37 @@ class XCAFPrs_DocumentExplorer: def DefineChildId(theLabel: TDF_Label, theParentId: str) -> str: ... @overload @staticmethod - def FindLabelFromPathId(theDocument: TDocStd_Document, theId: str, theParentLocation: TopLoc_Location, theLocation: TopLoc_Location) -> TDF_Label: ... + def FindLabelFromPathId( + theDocument: TDocStd_Document, + theId: str, + theParentLocation: TopLoc_Location, + theLocation: TopLoc_Location, + ) -> TDF_Label: ... @overload @staticmethod - def FindLabelFromPathId(theDocument: TDocStd_Document, theId: str, theLocation: TopLoc_Location) -> TDF_Label: ... + def FindLabelFromPathId( + theDocument: TDocStd_Document, theId: str, theLocation: TopLoc_Location + ) -> TDF_Label: ... @staticmethod - def FindShapeFromPathId(theDocument: TDocStd_Document, theId: str) -> TopoDS_Shape: ... + def FindShapeFromPathId( + theDocument: TDocStd_Document, theId: str + ) -> TopoDS_Shape: ... @overload - def Init(self, theDocument: TDocStd_Document, theRoot: TDF_Label, theFlags: int, theDefStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def Init( + self, + theDocument: TDocStd_Document, + theRoot: TDF_Label, + theFlags: int, + theDefStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... @overload - def Init(self, theDocument: TDocStd_Document, theRoots: TDF_LabelSequence, theFlags: int, theDefStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style()) -> None: ... + def Init( + self, + theDocument: TDocStd_Document, + theRoots: TDF_LabelSequence, + theFlags: int, + theDefStyle: Optional[XCAFPrs_Style] = XCAFPrs_Style(), + ) -> None: ... def More(self) -> bool: ... def Next(self) -> None: ... def VisMaterialTool(self) -> XCAFDoc_VisMaterialTool: ... @@ -86,7 +128,7 @@ class XCAFPrs_Driver(TPrsStd_Driver): class XCAFPrs_Style: def __init__(self) -> None: ... def BaseColorTexture(self) -> Image_Texture: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetColorCurv(self) -> Quantity_Color: ... def GetColorSurf(self) -> Quantity_Color: ... def GetColorSurfRGBA(self) -> Quantity_ColorRGBA: ... @@ -107,12 +149,15 @@ class XCAFPrs_Style: def UnSetColorSurf(self) -> None: ... class XCAFPrs_Texture(Graphic3d_Texture2D): - def __init__(self, theImageSource: Image_Texture, theUnit: Graphic3d_TextureUnit) -> None: ... - def GetCompressedImage(self, theSupported: Image_SupportedFormats) -> Image_CompressedPixMap: ... + def __init__( + self, theImageSource: Image_Texture, theUnit: Graphic3d_TextureUnit + ) -> None: ... + def GetCompressedImage( + self, theSupported: Image_SupportedFormats + ) -> Image_CompressedPixMap: ... def GetImage(self, theSupported: Image_SupportedFormats) -> Image_PixMap: ... def GetImageSource(self) -> Image_Texture: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XCAFView.pyi b/src/SWIG_files/wrapper/XCAFView.pyi index aca4466ac..385596daf 100644 --- a/src/SWIG_files/wrapper/XCAFView.pyi +++ b/src/SWIG_files/wrapper/XCAFView.pyi @@ -6,15 +6,20 @@ from OCC.Core.NCollection import * from OCC.Core.TCollection import * from OCC.Core.gp import * - class XCAFView_ProjectionType(IntEnum): XCAFView_ProjectionType_NoCamera: int = ... XCAFView_ProjectionType_Parallel: int = ... XCAFView_ProjectionType_Central: int = ... -XCAFView_ProjectionType_NoCamera = XCAFView_ProjectionType.XCAFView_ProjectionType_NoCamera -XCAFView_ProjectionType_Parallel = XCAFView_ProjectionType.XCAFView_ProjectionType_Parallel -XCAFView_ProjectionType_Central = XCAFView_ProjectionType.XCAFView_ProjectionType_Central +XCAFView_ProjectionType_NoCamera = ( + XCAFView_ProjectionType.XCAFView_ProjectionType_NoCamera +) +XCAFView_ProjectionType_Parallel = ( + XCAFView_ProjectionType.XCAFView_ProjectionType_Parallel +) +XCAFView_ProjectionType_Central = ( + XCAFView_ProjectionType.XCAFView_ProjectionType_Central +) class XCAFView_Object(Standard_Transient): @overload @@ -34,7 +39,9 @@ class XCAFView_Object(Standard_Transient): def NbGDTPoints(self) -> int: ... def ProjectionPoint(self) -> gp_Pnt: ... def SetBackPlaneDistance(self, theDistance: float) -> None: ... - def SetClippingExpression(self, theExpression: TCollection_HAsciiString) -> None: ... + def SetClippingExpression( + self, theExpression: TCollection_HAsciiString + ) -> None: ... def SetFrontPlaneDistance(self, theDistance: float) -> None: ... def SetGDTPoint(self, theIndex: int, thePoint: gp_Pnt) -> None: ... def SetName(self, theName: TCollection_HAsciiString) -> None: ... @@ -58,4 +65,3 @@ class XCAFView_Object(Standard_Transient): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XSControl.pyi b/src/SWIG_files/wrapper/XSControl.pyi index 6fc2648ca..1bf8f5553 100644 --- a/src/SWIG_files/wrapper/XSControl.pyi +++ b/src/SWIG_files/wrapper/XSControl.pyi @@ -17,7 +17,6 @@ from OCC.Core.Geom import * from OCC.Core.Geom2d import * from OCC.Core.gp import * - class xscontrol: @staticmethod def Session(pilot: IFSelect_SessionPilot) -> XSControl_WorkSession: ... @@ -30,44 +29,89 @@ class XSControl_ConnectedShapes(IFSelect_SelectExplore): @overload def __init__(self, TR: XSControl_TransferReader) -> None: ... @staticmethod - def AdjacentEntities(ashape: TopoDS_Shape, TP: Transfer_TransientProcess, type: TopAbs_ShapeEnum) -> TColStd_HSequenceOfTransient: ... - def Explore(self, level: int, ent: Standard_Transient, G: Interface_Graph, explored: Interface_EntityIterator) -> bool: ... + def AdjacentEntities( + ashape: TopoDS_Shape, TP: Transfer_TransientProcess, type: TopAbs_ShapeEnum + ) -> TColStd_HSequenceOfTransient: ... + def Explore( + self, + level: int, + ent: Standard_Transient, + G: Interface_Graph, + explored: Interface_EntityIterator, + ) -> bool: ... def ExploreLabel(self) -> str: ... def SetReader(self, TR: XSControl_TransferReader) -> None: ... class XSControl_Controller(Standard_Transient): - def ActorRead(self, model: Interface_InterfaceModel) -> Transfer_ActorOfTransientProcess: ... + def ActorRead( + self, model: Interface_InterfaceModel + ) -> Transfer_ActorOfTransientProcess: ... def ActorWrite(self) -> Transfer_ActorOfFinderProcess: ... def AdaptorSession(self) -> False: ... - def AddSessionItem(self, theItem: Standard_Transient, theName: str, toApply: Optional[bool] = False) -> None: ... + def AddSessionItem( + self, theItem: Standard_Transient, theName: str, toApply: Optional[bool] = False + ) -> None: ... def AutoRecord(self) -> None: ... def Customise(self, WS: XSControl_WorkSession) -> None: ... def IsModeWrite(self, modetrans: int, shape: Optional[bool] = True) -> bool: ... - def ModeWriteBounds(self, shape: Optional[bool] = True) -> Tuple[bool, int, int]: ... + def ModeWriteBounds( + self, shape: Optional[bool] = True + ) -> Tuple[bool, int, int]: ... def ModeWriteHelp(self, modetrans: int, shape: Optional[bool] = True) -> str: ... def Name(self, rsc: Optional[bool] = False) -> str: ... def NewModel(self) -> Interface_InterfaceModel: ... def Protocol(self) -> Interface_Protocol: ... - def RecognizeWriteShape(self, shape: TopoDS_Shape, modetrans: Optional[int] = 0) -> bool: ... - def RecognizeWriteTransient(self, obj: Standard_Transient, modetrans: Optional[int] = 0) -> bool: ... + def RecognizeWriteShape( + self, shape: TopoDS_Shape, modetrans: Optional[int] = 0 + ) -> bool: ... + def RecognizeWriteTransient( + self, obj: Standard_Transient, modetrans: Optional[int] = 0 + ) -> bool: ... def Record(self, name: str) -> None: ... @staticmethod def Recorded(name: str) -> XSControl_Controller: ... def SessionItem(self, theName: str) -> Standard_Transient: ... - def SetModeWrite(self, modemin: int, modemax: int, shape: Optional[bool] = True) -> None: ... - def SetModeWriteHelp(self, modetrans: int, help: str, shape: Optional[bool] = True) -> None: ... + def SetModeWrite( + self, modemin: int, modemax: int, shape: Optional[bool] = True + ) -> None: ... + def SetModeWriteHelp( + self, modetrans: int, help: str, shape: Optional[bool] = True + ) -> None: ... def SetNames(self, theLongName: str, theShortName: str) -> None: ... - def TransferWriteShape(self, shape: TopoDS_Shape, FP: Transfer_FinderProcess, model: Interface_InterfaceModel, modetrans: Optional[int] = 0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> IFSelect_ReturnStatus: ... - def TransferWriteTransient(self, obj: Standard_Transient, FP: Transfer_FinderProcess, model: Interface_InterfaceModel, modetrans: Optional[int] = 0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> IFSelect_ReturnStatus: ... + def TransferWriteShape( + self, + shape: TopoDS_Shape, + FP: Transfer_FinderProcess, + model: Interface_InterfaceModel, + modetrans: Optional[int] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... + def TransferWriteTransient( + self, + obj: Standard_Transient, + FP: Transfer_FinderProcess, + model: Interface_InterfaceModel, + modetrans: Optional[int] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... def WorkLibrary(self) -> IFSelect_WorkLibrary: ... class XSControl_FuncShape: @staticmethod - def FileAndVar(session: XSControl_WorkSession, file: str, var: str, def_: str, resfile: str, resvar: str) -> bool: ... + def FileAndVar( + session: XSControl_WorkSession, + file: str, + var: str, + def_: str, + resfile: str, + resvar: str, + ) -> bool: ... @staticmethod def Init() -> None: ... @staticmethod - def MoreShapes(session: XSControl_WorkSession, list: TopTools_HSequenceOfShape, name: str) -> int: ... + def MoreShapes( + session: XSControl_WorkSession, list: TopTools_HSequenceOfShape, name: str + ) -> int: ... class XSControl_Functions: @staticmethod @@ -79,15 +123,23 @@ class XSControl_Reader: @overload def __init__(self, norm: str) -> None: ... @overload - def __init__(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... + def __init__( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... def ClearShapes(self) -> None: ... def GetShapeFixParameters(self) -> False: ... def GetShapeProcessFlags(self) -> False: ... - def GetStatsTransfer(self, list: TColStd_HSequenceOfTransient) -> Tuple[int, int, int]: ... + def GetStatsTransfer( + self, list: TColStd_HSequenceOfTransient + ) -> Tuple[int, int, int]: ... @overload - def GiveList(self, first: Optional[str] = "", second: Optional[str] = "") -> TColStd_HSequenceOfTransient: ... + def GiveList( + self, first: Optional[str] = "", second: Optional[str] = "" + ) -> TColStd_HSequenceOfTransient: ... @overload - def GiveList(self, first: str, ent: Standard_Transient) -> TColStd_HSequenceOfTransient: ... + def GiveList( + self, first: str, ent: Standard_Transient + ) -> TColStd_HSequenceOfTransient: ... def Model(self) -> Interface_InterfaceModel: ... def NbRootsForTransfer(self) -> int: ... def NbShapes(self) -> int: ... @@ -97,7 +149,9 @@ class XSControl_Reader: @overload def PrintCheckLoad(self, failsonly: bool, mode: IFSelect_PrintCount) -> str: ... @overload - def PrintCheckTransfer(self, failsonly: bool, mode: IFSelect_PrintCount) -> None: ... + def PrintCheckTransfer( + self, failsonly: bool, mode: IFSelect_PrintCount + ) -> None: ... @overload def PrintCheckTransfer(self, failsonly: bool, mode: IFSelect_PrintCount) -> str: ... @overload @@ -108,13 +162,33 @@ class XSControl_Reader: def ReadStream(self, theName: str, theIStream: str) -> IFSelect_ReturnStatus: ... def RootForTransfer(self, num: Optional[int] = 1) -> Standard_Transient: ... def SetNorm(self, norm: str) -> bool: ... - def SetWS(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... + def SetWS( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... def Shape(self, num: Optional[int] = 1) -> TopoDS_Shape: ... - def TransferEntity(self, start: Standard_Transient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... - def TransferList(self, list: TColStd_HSequenceOfTransient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> int: ... - def TransferOne(self, num: int, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... - def TransferOneRoot(self, num: Optional[int] = 1, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... - def TransferRoots(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> int: ... + def TransferEntity( + self, + start: Standard_Transient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def TransferList( + self, + list: TColStd_HSequenceOfTransient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... + def TransferOne( + self, + num: int, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def TransferOneRoot( + self, + num: Optional[int] = 1, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def TransferRoots( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> int: ... def WS(self) -> XSControl_WorkSession: ... class XSControl_SelectForTransfer(IFSelect_SelectExtract): @@ -127,7 +201,9 @@ class XSControl_SelectForTransfer(IFSelect_SelectExtract): def Reader(self) -> XSControl_TransferReader: ... def SetActor(self, act: Transfer_ActorOfTransientProcess) -> None: ... def SetReader(self, TR: XSControl_TransferReader) -> None: ... - def Sort(self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel) -> bool: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... class XSControl_SignTransferStatus(IFSelect_Signature): @overload @@ -138,25 +214,42 @@ class XSControl_SignTransferStatus(IFSelect_Signature): def Reader(self) -> XSControl_TransferReader: ... def SetMap(self, TP: Transfer_TransientProcess) -> None: ... def SetReader(self, TR: XSControl_TransferReader) -> None: ... - def Value(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> str: ... + def Value( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> str: ... class XSControl_TransferReader(Standard_Transient): def __init__(self) -> None: ... def Actor(self) -> Transfer_ActorOfTransientProcess: ... def BeginTransfer(self) -> bool: ... - def CheckList(self, theEnt: Standard_Transient, theLevel: Optional[int] = 0) -> Interface_CheckIterator: ... - def CheckedList(self, theEnt: Standard_Transient, WithCheck: Optional[Interface_CheckStatus] = Interface_CheckAny, theResult: Optional[bool] = True) -> TColStd_HSequenceOfTransient: ... + def CheckList( + self, theEnt: Standard_Transient, theLevel: Optional[int] = 0 + ) -> Interface_CheckIterator: ... + def CheckedList( + self, + theEnt: Standard_Transient, + WithCheck: Optional[Interface_CheckStatus] = Interface_CheckAny, + theResult: Optional[bool] = True, + ) -> TColStd_HSequenceOfTransient: ... def Clear(self, theMode: int) -> None: ... def ClearResult(self, theEnt: Standard_Transient, theMode: int) -> bool: ... def Context(self) -> False: ... - def EntitiesFromShapeList(self, theRes: TopTools_HSequenceOfShape, theMode: Optional[int] = 0) -> TColStd_HSequenceOfTransient: ... - def EntityFromResult(self, theRes: Standard_Transient, theMode: Optional[int] = 0) -> Standard_Transient: ... - def EntityFromShapeResult(self, theRes: TopoDS_Shape, theMode: Optional[int] = 0) -> Standard_Transient: ... + def EntitiesFromShapeList( + self, theRes: TopTools_HSequenceOfShape, theMode: Optional[int] = 0 + ) -> TColStd_HSequenceOfTransient: ... + def EntityFromResult( + self, theRes: Standard_Transient, theMode: Optional[int] = 0 + ) -> Standard_Transient: ... + def EntityFromShapeResult( + self, theRes: TopoDS_Shape, theMode: Optional[int] = 0 + ) -> Standard_Transient: ... def FileName(self) -> str: ... def FinalEntityLabel(self, theEnt: Standard_Transient) -> str: ... def FinalEntityNumber(self, theEnt: Standard_Transient) -> int: ... def FinalResult(self, theEnt: Standard_Transient) -> Transfer_ResultFromModel: ... - def GetContext(self, theName: str, theType: Standard_Type, theCtx: Standard_Transient) -> bool: ... + def GetContext( + self, theName: str, theType: Standard_Type, theCtx: Standard_Transient + ) -> bool: ... def HasChecks(self, theEnt: Standard_Transient, FailsOnly: bool) -> bool: ... def HasResult(self, theEnt: Standard_Transient) -> bool: ... def IsMarked(self, theEnt: Standard_Transient) -> bool: ... @@ -167,9 +260,16 @@ class XSControl_TransferReader(Standard_Transient): def Model(self) -> Interface_InterfaceModel: ... def PrintStats(self, theWhat: int, theMode: Optional[int] = 0) -> str: ... @staticmethod - def PrintStatsOnList(theTP: Transfer_TransientProcess, theList: TColStd_HSequenceOfTransient, theWhat: int, theMode: Optional[int] = 0) -> None: ... + def PrintStatsOnList( + theTP: Transfer_TransientProcess, + theList: TColStd_HSequenceOfTransient, + theWhat: int, + theMode: Optional[int] = 0, + ) -> None: ... @staticmethod - def PrintStatsProcess(theTP: Transfer_TransientProcess, theWhat: int, theMode: Optional[int] = 0) -> None: ... + def PrintStatsProcess( + theTP: Transfer_TransientProcess, theWhat: int, theMode: Optional[int] = 0 + ) -> None: ... def Recognize(self, theEnt: Standard_Transient) -> bool: ... def RecordResult(self, theEnt: Standard_Transient) -> bool: ... def RecordedList(self) -> TColStd_HSequenceOfTransient: ... @@ -184,10 +284,26 @@ class XSControl_TransferReader(Standard_Transient): def ShapeResult(self, theEnt: Standard_Transient) -> TopoDS_Shape: ... def ShapeResultList(self, theRec: bool) -> TopTools_HSequenceOfShape: ... def Skip(self, theEnt: Standard_Transient) -> bool: ... - def TransferClear(self, theEnt: Standard_Transient, theLevel: Optional[int] = 0) -> None: ... - def TransferList(self, theList: TColStd_HSequenceOfTransient, theRec: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> int: ... - def TransferOne(self, theEnt: Standard_Transient, theRec: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> int: ... - def TransferRoots(self, theGraph: Interface_Graph, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> int: ... + def TransferClear( + self, theEnt: Standard_Transient, theLevel: Optional[int] = 0 + ) -> None: ... + def TransferList( + self, + theList: TColStd_HSequenceOfTransient, + theRec: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... + def TransferOne( + self, + theEnt: Standard_Transient, + theRec: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... + def TransferRoots( + self, + theGraph: Interface_Graph, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... def TransientProcess(self) -> Transfer_TransientProcess: ... def TransientResult(self, theEnt: Standard_Transient) -> Standard_Transient: ... @@ -200,26 +316,48 @@ class XSControl_TransferWriter(Standard_Transient): def PrintStats(self, theWhat: int, theMode: Optional[int] = 0) -> None: ... def RecognizeShape(self, theShape: TopoDS_Shape) -> bool: ... def RecognizeTransient(self, theObj: Standard_Transient) -> bool: ... - def ResultCheckList(self, theModel: Interface_InterfaceModel) -> Interface_CheckIterator: ... + def ResultCheckList( + self, theModel: Interface_InterfaceModel + ) -> Interface_CheckIterator: ... def SetController(self, theCtl: XSControl_Controller) -> None: ... def SetFinderProcess(self, theFP: Transfer_FinderProcess) -> None: ... def SetTransferMode(self, theMode: int) -> None: ... def TransferMode(self) -> int: ... - def TransferWriteShape(self, theModel: Interface_InterfaceModel, theShape: TopoDS_Shape, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> IFSelect_ReturnStatus: ... - def TransferWriteTransient(self, theModel: Interface_InterfaceModel, theObj: Standard_Transient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> IFSelect_ReturnStatus: ... + def TransferWriteShape( + self, + theModel: Interface_InterfaceModel, + theShape: TopoDS_Shape, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... + def TransferWriteTransient( + self, + theModel: Interface_InterfaceModel, + theObj: Standard_Transient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... class XSControl_Utils: def __init__(self) -> None: ... - def AppendCStr(self, seqval: TColStd_HSequenceOfHAsciiString, strval: str) -> None: ... - def AppendEStr(self, seqval: TColStd_HSequenceOfHExtendedString, strval: Standard_ExtString) -> None: ... - def AppendShape(self, seqv: TopTools_HSequenceOfShape, shape: TopoDS_Shape) -> None: ... - def AppendTra(self, seqval: TColStd_HSequenceOfTransient, traval: Standard_Transient) -> None: ... + def AppendCStr( + self, seqval: TColStd_HSequenceOfHAsciiString, strval: str + ) -> None: ... + def AppendEStr( + self, seqval: TColStd_HSequenceOfHExtendedString, strval: Standard_ExtString + ) -> None: ... + def AppendShape( + self, seqv: TopTools_HSequenceOfShape, shape: TopoDS_Shape + ) -> None: ... + def AppendTra( + self, seqval: TColStd_HSequenceOfTransient, traval: Standard_Transient + ) -> None: ... def ArrToSeq(self, arr: Standard_Transient) -> Standard_Transient: ... def AsciiToExtended(self, str: str) -> Standard_ExtString: ... def BinderShape(self, tr: Standard_Transient) -> TopoDS_Shape: ... def CStrValue(self, list: Standard_Transient, num: int) -> str: ... def CompoundFromSeq(self, seqval: TopTools_HSequenceOfShape) -> TopoDS_Shape: ... - def DateString(self, yy: int, mm: int, dd: int, hh: int, mn: int, ss: int) -> str: ... + def DateString( + self, yy: int, mm: int, dd: int, hh: int, mn: int, ss: int + ) -> str: ... def DateValues(self, text: str) -> Tuple[int, int, int, int, int, int]: ... def EStrValue(self, list: Standard_Transient, num: int) -> Standard_ExtString: ... def ExtendedToAscii(self, str: Standard_ExtString) -> str: ... @@ -231,11 +369,17 @@ class XSControl_Utils: def NewSeqTra(self) -> TColStd_HSequenceOfTransient: ... def SeqIntValue(self, list: TColStd_HSequenceOfInteger, num: int) -> int: ... def SeqLength(self, list: Standard_Transient) -> int: ... - def SeqToArr(self, seq: Standard_Transient, first: Optional[int] = 1) -> Standard_Transient: ... - def ShapeBinder(self, shape: TopoDS_Shape, hs: Optional[bool] = True) -> Standard_Transient: ... + def SeqToArr( + self, seq: Standard_Transient, first: Optional[int] = 1 + ) -> Standard_Transient: ... + def ShapeBinder( + self, shape: TopoDS_Shape, hs: Optional[bool] = True + ) -> Standard_Transient: ... def ShapeType(self, shape: TopoDS_Shape, compound: bool) -> TopAbs_ShapeEnum: ... def ShapeValue(self, seqv: TopTools_HSequenceOfShape, num: int) -> TopoDS_Shape: ... - def SortedCompound(self, shape: TopoDS_Shape, type: TopAbs_ShapeEnum, explore: bool, compound: bool) -> TopoDS_Shape: ... + def SortedCompound( + self, shape: TopoDS_Shape, type: TopAbs_ShapeEnum, explore: bool, compound: bool + ) -> TopoDS_Shape: ... def ToAString(self, strcon: str) -> str: ... @overload def ToCString(self, strval: TCollection_HAsciiString) -> str: ... @@ -253,7 +397,9 @@ class XSControl_Utils: def TraValue(self, list: Standard_Transient, num: int) -> Standard_Transient: ... def TraceLine(self, line: str) -> None: ... def TraceLines(self, lines: Standard_Transient) -> None: ... - def TypeName(self, item: Standard_Transient, nopk: Optional[bool] = False) -> str: ... + def TypeName( + self, item: Standard_Transient, nopk: Optional[bool] = False + ) -> str: ... class XSControl_Vars(Standard_Transient): def __init__(self) -> None: ... @@ -280,7 +426,9 @@ class XSControl_WorkSession(IFSelect_WorkSession): def NewModel(self) -> Interface_InterfaceModel: ... def NormAdaptor(self) -> XSControl_Controller: ... def PrintTransferStatus(self, theNum: int, theWri: bool) -> Tuple[bool, str]: ... - def Result(self, theEnt: Standard_Transient, theMode: int) -> Standard_Transient: ... + def Result( + self, theEnt: Standard_Transient, theMode: int + ) -> Standard_Transient: ... def SelectNorm(self, theNormName: str) -> bool: ... def SelectedNorm(self, theRsc: Optional[bool] = False) -> str: ... def SetController(self, theCtl: XSControl_Controller) -> None: ... @@ -288,11 +436,22 @@ class XSControl_WorkSession(IFSelect_WorkSession): def SetMapWriter(self, theFP: Transfer_FinderProcess) -> bool: ... def SetTransferReader(self, theTR: XSControl_TransferReader) -> None: ... def SetVars(self, theVars: XSControl_Vars) -> None: ... - def TransferReadOne(self, theEnts: Standard_Transient, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> int: ... - def TransferReadRoots(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> int: ... + def TransferReadOne( + self, + theEnts: Standard_Transient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... + def TransferReadRoots( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> int: ... def TransferReader(self) -> XSControl_TransferReader: ... def TransferWriteCheckList(self) -> Interface_CheckIterator: ... - def TransferWriteShape(self, theShape: TopoDS_Shape, theCompGraph: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> IFSelect_ReturnStatus: ... + def TransferWriteShape( + self, + theShape: TopoDS_Shape, + theCompGraph: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... def TransferWriter(self) -> XSControl_TransferWriter: ... def Vars(self) -> XSControl_Vars: ... @@ -302,16 +461,24 @@ class XSControl_Writer: @overload def __init__(self, norm: str) -> None: ... @overload - def __init__(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... + def __init__( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... def Model(self, newone: Optional[bool] = False) -> Interface_InterfaceModel: ... def PrintStatsTransfer(self, what: int, mode: Optional[int] = 0) -> None: ... def SetNorm(self, norm: str) -> bool: ... - def SetWS(self, WS: XSControl_WorkSession, scratch: Optional[bool] = True) -> None: ... - def TransferShape(self, sh: TopoDS_Shape, mode: Optional[int] = 0, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> IFSelect_ReturnStatus: ... + def SetWS( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... + def TransferShape( + self, + sh: TopoDS_Shape, + mode: Optional[int] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... def WS(self) -> XSControl_WorkSession: ... def WriteFile(self, filename: str) -> IFSelect_ReturnStatus: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlDrivers.pyi b/src/SWIG_files/wrapper/XmlDrivers.pyi index 75e7665d4..33451b310 100644 --- a/src/SWIG_files/wrapper/XmlDrivers.pyi +++ b/src/SWIG_files/wrapper/XmlDrivers.pyi @@ -10,7 +10,6 @@ from OCC.Core.XmlLDrivers import * from OCC.Core.XmlObjMgt import * from OCC.Core.TCollection import * - class xmldrivers: @staticmethod def AttributeDrivers(theMsgDriver: Message_Messenger) -> XmlMDF_ADriverTable: ... @@ -21,16 +20,29 @@ class xmldrivers: class XmlDrivers_DocumentRetrievalDriver(XmlLDrivers_DocumentRetrievalDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> XmlMDF_ADriverTable: ... - def ReadShapeSection(self, thePDoc: XmlObjMgt_Element, theMsgDriver: Message_Messenger, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> XmlMDF_ADriver: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... + def ReadShapeSection( + self, + thePDoc: XmlObjMgt_Element, + theMsgDriver: Message_Messenger, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> XmlMDF_ADriver: ... def ShapeSetCleaning(self, theDriver: XmlMDF_ADriver) -> None: ... class XmlDrivers_DocumentStorageDriver(XmlLDrivers_DocumentStorageDriver): def __init__(self, theCopyright: str) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> XmlMDF_ADriverTable: ... - def WriteShapeSection(self, thePDoc: XmlObjMgt_Element, theStorageFormatVersion: TDocStd_FormatVersion, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... + def WriteShapeSection( + self, + thePDoc: XmlObjMgt_Element, + theStorageFormatVersion: TDocStd_FormatVersion, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlLDrivers.pyi b/src/SWIG_files/wrapper/XmlLDrivers.pyi index 5a41b7765..3b7d616ee 100644 --- a/src/SWIG_files/wrapper/XmlLDrivers.pyi +++ b/src/SWIG_files/wrapper/XmlLDrivers.pyi @@ -11,21 +11,28 @@ from OCC.Core.PCDM import * from OCC.Core.CDM import * from OCC.Core.Storage import * - class XmlLDrivers_SequenceOfNamespaceDef: - def __init__(self) -> None: ... - def __len__(self) -> int: ... - def Size(self) -> int: ... + def Assign(self, theItem: XmlLDrivers_NamespaceDef) -> XmlLDrivers_NamespaceDef: ... def Clear(self) -> None: ... def First(self) -> XmlLDrivers_NamespaceDef: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... def Last(self) -> XmlLDrivers_NamespaceDef: ... def Length(self) -> int: ... - def Append(self, theItem: XmlLDrivers_NamespaceDef) -> XmlLDrivers_NamespaceDef: ... - def Prepend(self, theItem: XmlLDrivers_NamespaceDef) -> XmlLDrivers_NamespaceDef: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: XmlLDrivers_NamespaceDef + ) -> XmlLDrivers_NamespaceDef: ... def RemoveFirst(self) -> None: ... def Reverse(self) -> None: ... - def Value(self, theIndex: int) -> XmlLDrivers_NamespaceDef: ... def SetValue(self, theIndex: int, theValue: XmlLDrivers_NamespaceDef) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> XmlLDrivers_NamespaceDef: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... class xmlldrivers: @staticmethod @@ -39,19 +46,47 @@ class xmlldrivers: class XmlLDrivers_DocumentRetrievalDriver(PCDM_RetrievalDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> XmlMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... @overload - def Read(self, theFileName: str, theNewDocument: CDM_Document, theApplication: CDM_Application, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + theFileName: str, + theNewDocument: CDM_Document, + theApplication: CDM_Application, + theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def Read(self, theIStream: str, theStorageData: Storage_Data, theDoc: CDM_Document, theApplication: CDM_Application, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Read( + self, + theIStream: str, + theStorageData: Storage_Data, + theDoc: CDM_Document, + theApplication: CDM_Application, + theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... class XmlLDrivers_DocumentStorageDriver(PCDM_StorageDriver): def __init__(self, theCopyright: str) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> XmlMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... @overload - def Write(self, theDocument: CDM_Document, theFileName: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Write( + self, + theDocument: CDM_Document, + theFileName: str, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload - def Write(self, theDocument: CDM_Document, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ... + def Write( + self, + theDocument: CDM_Document, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... class XmlLDrivers_NamespaceDef: @overload @@ -64,4 +99,3 @@ class XmlLDrivers_NamespaceDef: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlMDF.pyi b/src/SWIG_files/wrapper/XmlMDF.pyi index 3146d4ba8..a1f518444 100644 --- a/src/SWIG_files/wrapper/XmlMDF.pyi +++ b/src/SWIG_files/wrapper/XmlMDF.pyi @@ -8,25 +8,48 @@ from OCC.Core.TDF import * from OCC.Core.XmlObjMgt import * from OCC.Core.TCollection import * - class xmlmdf: @staticmethod - def AddDrivers(aDriverTable: XmlMDF_ADriverTable, theMessageDriver: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: XmlMDF_ADriverTable, theMessageDriver: Message_Messenger + ) -> None: ... @overload @staticmethod - def FromTo(aSource: TDF_Data, aTarget: XmlObjMgt_Element, aReloc: XmlObjMgt_SRelocationTable, aDrivers: XmlMDF_ADriverTable, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def FromTo( + aSource: TDF_Data, + aTarget: XmlObjMgt_Element, + aReloc: XmlObjMgt_SRelocationTable, + aDrivers: XmlMDF_ADriverTable, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... @overload @staticmethod - def FromTo(aSource: XmlObjMgt_Element, aTarget: TDF_Data, aReloc: XmlObjMgt_RRelocationTable, aDrivers: XmlMDF_ADriverTable, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ... + def FromTo( + aSource: XmlObjMgt_Element, + aTarget: TDF_Data, + aReloc: XmlObjMgt_RRelocationTable, + aDrivers: XmlMDF_ADriverTable, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... class XmlMDF_ADriver(Standard_Transient): def MessageDriver(self) -> Message_Messenger: ... def Namespace(self) -> str: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, aSource: XmlObjMgt_Persistent, aTarget: TDF_Attribute, aRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + aSource: XmlObjMgt_Persistent, + aTarget: TDF_Attribute, + aRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, aSource: TDF_Attribute, aTarget: XmlObjMgt_Persistent, aRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + aSource: TDF_Attribute, + aTarget: XmlObjMgt_Persistent, + aRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... def SourceType(self) -> Standard_Type: ... def TypeName(self) -> str: ... def VersionNumber(self) -> int: ... @@ -42,31 +65,62 @@ class XmlMDF_ADriverTable(Standard_Transient): def GetDriver(self, theType: Standard_Type, theDriver: XmlMDF_ADriver) -> bool: ... class XmlMDF_DerivedDriver(XmlMDF_ADriver): - def __init__(self, theDerivative: TDF_Attribute, theBaseDriver: XmlMDF_ADriver) -> None: ... + def __init__( + self, theDerivative: TDF_Attribute, theBaseDriver: XmlMDF_ADriver + ) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... def TypeName(self) -> str: ... class XmlMDF_ReferenceDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDF_TagSourceDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlMDataStd.pyi b/src/SWIG_files/wrapper/XmlMDataStd.pyi index 639353f63..8785ea393 100644 --- a/src/SWIG_files/wrapper/XmlMDataStd.pyi +++ b/src/SWIG_files/wrapper/XmlMDataStd.pyi @@ -8,190 +8,410 @@ from OCC.Core.Message import * from OCC.Core.TDF import * from OCC.Core.XmlObjMgt import * - class xmlmdatastd: @staticmethod - def AddDrivers(aDriverTable: XmlMDF_ADriverTable, anMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: XmlMDF_ADriverTable, anMsgDrv: Message_Messenger + ) -> None: ... class XmlMDataStd_AsciiStringDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_BooleanArrayDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_BooleanListDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_ByteArrayDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_ExpressionDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_ExtStringArrayDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_ExtStringListDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_GenericEmptyDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... def SourceType(self) -> Standard_Type: ... class XmlMDataStd_GenericExtStringDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... def SourceType(self) -> Standard_Type: ... class XmlMDataStd_IntPackedMapDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_IntegerArrayDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_IntegerDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_IntegerListDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_NamedDataDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_RealArrayDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_RealDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_RealListDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_ReferenceArrayDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_ReferenceListDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_TreeNodeDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_UAttributeDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataStd_VariableDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... - @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlMDataXtd.pyi b/src/SWIG_files/wrapper/XmlMDataXtd.pyi index 43577cbfe..4248d97d9 100644 --- a/src/SWIG_files/wrapper/XmlMDataXtd.pyi +++ b/src/SWIG_files/wrapper/XmlMDataXtd.pyi @@ -8,10 +8,11 @@ from OCC.Core.Message import * from OCC.Core.TDF import * from OCC.Core.XmlObjMgt import * - class xmlmdataxtd: @staticmethod - def AddDrivers(aDriverTable: XmlMDF_ADriverTable, anMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: XmlMDF_ADriverTable, anMsgDrv: Message_Messenger + ) -> None: ... @staticmethod def DocumentVersion() -> int: ... @staticmethod @@ -21,51 +22,110 @@ class XmlMDataXtd_ConstraintDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataXtd_GeometryDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataXtd_PatternStdDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataXtd_PositionDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataXtd_PresentationDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMDataXtd_TriangulationDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlMDocStd.pyi b/src/SWIG_files/wrapper/XmlMDocStd.pyi index 6e74be63c..c89d9e605 100644 --- a/src/SWIG_files/wrapper/XmlMDocStd.pyi +++ b/src/SWIG_files/wrapper/XmlMDocStd.pyi @@ -8,20 +8,30 @@ from OCC.Core.Message import * from OCC.Core.TDF import * from OCC.Core.XmlObjMgt import * - class xmlmdocstd: @staticmethod - def AddDrivers(aDriverTable: XmlMDF_ADriverTable, theMessageDriver: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: XmlMDF_ADriverTable, theMessageDriver: Message_Messenger + ) -> None: ... class XmlMDocStd_XLinkDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlMFunction.pyi b/src/SWIG_files/wrapper/XmlMFunction.pyi index 52d08b4f0..73849e7e2 100644 --- a/src/SWIG_files/wrapper/XmlMFunction.pyi +++ b/src/SWIG_files/wrapper/XmlMFunction.pyi @@ -8,36 +8,66 @@ from OCC.Core.Message import * from OCC.Core.TDF import * from OCC.Core.XmlObjMgt import * - class xmlmfunction: @staticmethod - def AddDrivers(aDriverTable: XmlMDF_ADriverTable, theMessageDriver: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: XmlMDF_ADriverTable, theMessageDriver: Message_Messenger + ) -> None: ... class XmlMFunction_FunctionDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMFunction_GraphNodeDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMFunction_ScopeDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlMNaming.pyi b/src/SWIG_files/wrapper/XmlMNaming.pyi index b8f36611e..708c808df 100644 --- a/src/SWIG_files/wrapper/XmlMNaming.pyi +++ b/src/SWIG_files/wrapper/XmlMNaming.pyi @@ -12,10 +12,11 @@ from OCC.Core.TDocStd import * from OCC.Core.TopAbs import * from OCC.Core.TopoDS import * - class xmlmnaming: @staticmethod - def AddDrivers(aDriverTable: XmlMDF_ADriverTable, aMessageDriver: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: XmlMDF_ADriverTable, aMessageDriver: Message_Messenger + ) -> None: ... class XmlMNaming_NamedShapeDriver(XmlMDF_ADriver): def __init__(self, aMessageDriver: Message_Messenger) -> None: ... @@ -23,19 +24,48 @@ class XmlMNaming_NamedShapeDriver(XmlMDF_ADriver): def GetShapesLocations(self) -> TopTools_LocationSet: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... - def ReadShapeSection(self, anElement: XmlObjMgt_Element, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... - def WriteShapeSection(self, anElement: XmlObjMgt_Element, theStorageFormatVersion: TDocStd_FormatVersion, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... + def ReadShapeSection( + self, + anElement: XmlObjMgt_Element, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def WriteShapeSection( + self, + anElement: XmlObjMgt_Element, + theStorageFormatVersion: TDocStd_FormatVersion, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... class XmlMNaming_NamingDriver(XmlMDF_ADriver): def __init__(self, aMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMNaming_Shape1: @overload @@ -55,4 +85,3 @@ class XmlMNaming_Shape1: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlMXCAFDoc.pyi b/src/SWIG_files/wrapper/XmlMXCAFDoc.pyi index b8230be4e..4306e9e26 100644 --- a/src/SWIG_files/wrapper/XmlMXCAFDoc.pyi +++ b/src/SWIG_files/wrapper/XmlMXCAFDoc.pyi @@ -10,127 +10,277 @@ from OCC.Core.XmlObjMgt import * from OCC.Core.TopTools import * from OCC.Core.TopLoc import * - class xmlmxcafdoc: @staticmethod - def AddDrivers(aDriverTable: XmlMDF_ADriverTable, anMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: XmlMDF_ADriverTable, anMsgDrv: Message_Messenger + ) -> None: ... class XmlMXCAFDoc_AssemblyItemRefDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_CentroidDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_ColorDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_DatumDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_DimTolDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_GraphNodeDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_LengthUnitDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_LocationDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... def SetSharedLocations(self, theLocations: TopTools_LocationSetPtr) -> None: ... @overload - def Translate(self, theLoc: TopLoc_Location, theParent: XmlObjMgt_Element, theMap: XmlObjMgt_SRelocationTable) -> None: ... + def Translate( + self, + theLoc: TopLoc_Location, + theParent: XmlObjMgt_Element, + theMap: XmlObjMgt_SRelocationTable, + ) -> None: ... @overload - def Translate(self, theParent: XmlObjMgt_Element, theLoc: TopLoc_Location, theMap: XmlObjMgt_RRelocationTable) -> bool: ... + def Translate( + self, + theParent: XmlObjMgt_Element, + theLoc: TopLoc_Location, + theMap: XmlObjMgt_RRelocationTable, + ) -> bool: ... class XmlMXCAFDoc_MaterialDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_NoteDriver(XmlMDF_ADriver): @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_VisMaterialDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_VisMaterialToolDriver(XmlMDF_ADriver): def __init__(self, theMsgDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_NoteBinDataDriver(XmlMXCAFDoc_NoteDriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlMXCAFDoc_NoteCommentDriver(XmlMXCAFDoc_NoteDriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlObjMgt.pyi b/src/SWIG_files/wrapper/XmlObjMgt.pyi index e918695ce..35e20dfa9 100644 --- a/src/SWIG_files/wrapper/XmlObjMgt.pyi +++ b/src/SWIG_files/wrapper/XmlObjMgt.pyi @@ -15,11 +15,17 @@ XmlObjMgt_Element = NewType("XmlObjMgt_Element", LDOM_Element) class xmlobjmgt: @staticmethod - def FindChildByName(theSource: XmlObjMgt_Element, theName: XmlObjMgt_DOMString) -> XmlObjMgt_Element: ... + def FindChildByName( + theSource: XmlObjMgt_Element, theName: XmlObjMgt_DOMString + ) -> XmlObjMgt_Element: ... @staticmethod - def FindChildByRef(theSource: XmlObjMgt_Element, theRefName: XmlObjMgt_DOMString) -> XmlObjMgt_Element: ... + def FindChildByRef( + theSource: XmlObjMgt_Element, theRefName: XmlObjMgt_DOMString + ) -> XmlObjMgt_Element: ... @staticmethod - def FindChildElement(theSource: XmlObjMgt_Element, theObjId: int) -> XmlObjMgt_Element: ... + def FindChildElement( + theSource: XmlObjMgt_Element, theObjId: int + ) -> XmlObjMgt_Element: ... @staticmethod def GetExtendedString(theElement: XmlObjMgt_Element, theString: str) -> bool: ... @overload @@ -37,7 +43,11 @@ class xmlobjmgt: @staticmethod def SetExtendedString(theElement: XmlObjMgt_Element, theString: str) -> bool: ... @staticmethod - def SetStringValue(theElement: XmlObjMgt_Element, theData: XmlObjMgt_DOMString, isClearText: Optional[bool] = False) -> None: ... + def SetStringValue( + theElement: XmlObjMgt_Element, + theData: XmlObjMgt_DOMString, + isClearText: Optional[bool] = False, + ) -> None: ... @staticmethod def SetTagEntryString(theSource: XmlObjMgt_DOMString, theTagEntry: str) -> None: ... @@ -45,8 +55,12 @@ class XmlObjMgt_Array1: @overload def __init__(self, Low: int, Up: int) -> None: ... @overload - def __init__(self, theParent: XmlObjMgt_Element, theName: XmlObjMgt_DOMString) -> None: ... - def CreateArrayElement(self, theParent: XmlObjMgt_Element, theName: XmlObjMgt_DOMString) -> None: ... + def __init__( + self, theParent: XmlObjMgt_Element, theName: XmlObjMgt_DOMString + ) -> None: ... + def CreateArrayElement( + self, theParent: XmlObjMgt_Element, theName: XmlObjMgt_DOMString + ) -> None: ... def Element(self) -> XmlObjMgt_Element: ... def Length(self) -> int: ... def Lower(self) -> int: ... @@ -80,8 +94,12 @@ class XmlObjMgt_Persistent: @overload def __init__(self, theElement: XmlObjMgt_Element) -> None: ... @overload - def __init__(self, theElement: XmlObjMgt_Element, theRef: XmlObjMgt_DOMString) -> None: ... - def CreateElement(self, theParent: XmlObjMgt_Element, theType: XmlObjMgt_DOMString, theID: int) -> None: ... + def __init__( + self, theElement: XmlObjMgt_Element, theRef: XmlObjMgt_DOMString + ) -> None: ... + def CreateElement( + self, theParent: XmlObjMgt_Element, theType: XmlObjMgt_DOMString, theID: int + ) -> None: ... @overload def Element(self) -> XmlObjMgt_Element: ... @overload @@ -102,4 +120,3 @@ class XmlObjMgt_SRelocationTable(TColStd_IndexedMapOfTransient): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlTObjDrivers.pyi b/src/SWIG_files/wrapper/XmlTObjDrivers.pyi index 01549329a..87ca036d2 100644 --- a/src/SWIG_files/wrapper/XmlTObjDrivers.pyi +++ b/src/SWIG_files/wrapper/XmlTObjDrivers.pyi @@ -11,10 +11,11 @@ from OCC.Core.TCollection import * from OCC.Core.TDF import * from OCC.Core.XmlObjMgt import * - class xmltobjdrivers: @staticmethod - def AddDrivers(aDriverTable: XmlMDF_ADriverTable, anMsgDrv: Message_Messenger) -> None: ... + def AddDrivers( + aDriverTable: XmlMDF_ADriverTable, anMsgDrv: Message_Messenger + ) -> None: ... @staticmethod def DefineFormat(theApp: TDocStd_Application) -> None: ... @staticmethod @@ -22,53 +23,106 @@ class xmltobjdrivers: class XmlTObjDrivers_DocumentRetrievalDriver(XmlLDrivers_DocumentRetrievalDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> XmlMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... class XmlTObjDrivers_DocumentStorageDriver(XmlLDrivers_DocumentStorageDriver): def __init__(self, theCopyright: str) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> XmlMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... class XmlTObjDrivers_IntSparseArrayDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, theSource: XmlObjMgt_Persistent, theTarget: TDF_Attribute, theRelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + theSource: XmlObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, theSource: TDF_Attribute, theTarget: XmlObjMgt_Persistent, theRelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + theSource: TDF_Attribute, + theTarget: XmlObjMgt_Persistent, + theRelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlTObjDrivers_ModelDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlTObjDrivers_ObjectDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlTObjDrivers_ReferenceDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... class XmlTObjDrivers_XYZDriver(XmlMDF_ADriver): def __init__(self, theMessageDriver: Message_Messenger) -> None: ... def NewEmpty(self) -> TDF_Attribute: ... @overload - def Paste(self, Source: XmlObjMgt_Persistent, Target: TDF_Attribute, RelocTable: XmlObjMgt_RRelocationTable) -> bool: ... + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... @overload - def Paste(self, Source: TDF_Attribute, Target: XmlObjMgt_Persistent, RelocTable: XmlObjMgt_SRelocationTable) -> None: ... + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/XmlXCAFDrivers.pyi b/src/SWIG_files/wrapper/XmlXCAFDrivers.pyi index 5d508df4e..447dc574f 100644 --- a/src/SWIG_files/wrapper/XmlXCAFDrivers.pyi +++ b/src/SWIG_files/wrapper/XmlXCAFDrivers.pyi @@ -9,7 +9,6 @@ from OCC.Core.Message import * from OCC.Core.XmlMDF import * from OCC.Core.TCollection import * - class xmlxcafdrivers: @staticmethod def DefineFormat(theApp: TDocStd_Application) -> None: ... @@ -18,13 +17,16 @@ class xmlxcafdrivers: class XmlXCAFDrivers_DocumentRetrievalDriver(XmlDrivers_DocumentRetrievalDriver): def __init__(self) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> XmlMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... class XmlXCAFDrivers_DocumentStorageDriver(XmlDrivers_DocumentStorageDriver): def __init__(self, theCopyright: str) -> None: ... - def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> XmlMDF_ADriverTable: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/gce.pyi b/src/SWIG_files/wrapper/gce.pyi index 24fec404e..3781fbee1 100644 --- a/src/SWIG_files/wrapper/gce.pyi +++ b/src/SWIG_files/wrapper/gce.pyi @@ -5,7 +5,6 @@ from OCC.Core.Standard import * from OCC.Core.NCollection import * from OCC.Core.gp import * - class gce_ErrorType(IntEnum): gce_Done: int = ... gce_ConfusedPoints: int = ... @@ -135,7 +134,9 @@ class gce_MakeCirc(gce_Root): class gce_MakeCirc2d(gce_Root): @overload - def __init__(self, XAxis: gp_Ax2d, Radius: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, XAxis: gp_Ax2d, Radius: float, Sense: Optional[bool] = True + ) -> None: ... @overload def __init__(self, Axis: gp_Ax22d, Radius: float) -> None: ... @overload @@ -145,9 +146,13 @@ class gce_MakeCirc2d(gce_Root): @overload def __init__(self, P1: gp_Pnt2d, P2: gp_Pnt2d, P3: gp_Pnt2d) -> None: ... @overload - def __init__(self, Center: gp_Pnt2d, Radius: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, Center: gp_Pnt2d, Radius: float, Sense: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, Center: gp_Pnt2d, Point: gp_Pnt2d, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, Center: gp_Pnt2d, Point: gp_Pnt2d, Sense: Optional[bool] = True + ) -> None: ... def Operator(self) -> gp_Circ2d: ... def Value(self) -> gp_Circ2d: ... @@ -219,7 +224,13 @@ class gce_MakeElips(gce_Root): class gce_MakeElips2d(gce_Root): @overload - def __init__(self, MajorAxis: gp_Ax2d, MajorRadius: float, MinorRadius: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, + MajorAxis: gp_Ax2d, + MajorRadius: float, + MinorRadius: float, + Sense: Optional[bool] = True, + ) -> None: ... @overload def __init__(self, A: gp_Ax22d, MajorRadius: float, MinorRadius: float) -> None: ... @overload @@ -239,7 +250,9 @@ class gce_MakeHypr2d(gce_Root): @overload def __init__(self, S1: gp_Pnt2d, S2: gp_Pnt2d, Center: gp_Pnt2d) -> None: ... @overload - def __init__(self, MajorAxis: gp_Ax2d, MajorRadius: float, MinorRadius: float, Sense: bool) -> None: ... + def __init__( + self, MajorAxis: gp_Ax2d, MajorRadius: float, MinorRadius: float, Sense: bool + ) -> None: ... @overload def __init__(self, A: gp_Ax22d, MajorRadius: float, MinorRadius: float) -> None: ... def Operator(self) -> gp_Hypr2d: ... @@ -283,13 +296,19 @@ class gce_MakeParab(gce_Root): class gce_MakeParab2d(gce_Root): @overload - def __init__(self, MirrorAxis: gp_Ax2d, Focal: float, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, MirrorAxis: gp_Ax2d, Focal: float, Sense: Optional[bool] = True + ) -> None: ... @overload def __init__(self, A: gp_Ax22d, Focal: float) -> None: ... @overload - def __init__(self, D: gp_Ax2d, F: gp_Pnt2d, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, D: gp_Ax2d, F: gp_Pnt2d, Sense: Optional[bool] = True + ) -> None: ... @overload - def __init__(self, S1: gp_Pnt2d, Center: gp_Pnt2d, Sense: Optional[bool] = True) -> None: ... + def __init__( + self, S1: gp_Pnt2d, Center: gp_Pnt2d, Sense: Optional[bool] = True + ) -> None: ... def Operator(self) -> gp_Parab2d: ... def Value(self) -> gp_Parab2d: ... @@ -316,4 +335,3 @@ class gce_MakePln(gce_Root): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/generator.log b/src/SWIG_files/wrapper/generator.log index 653410262..466714f52 100644 --- a/src/SWIG_files/wrapper/generator.log +++ b/src/SWIG_files/wrapper/generator.log @@ -4,11 +4,11 @@ Running pythonocc-generator. ############################ git revision : 8a3c288 -operating system : Linux 64bit 6.8.0-57-generic +operating system : Linux 64bit 6.14.0-29-generic -occt version targeted : 7.9.0 +occt version targeted : 7.9.1 -date : 2025-04-11 09:07:55.296872 +date : 2025-09-19 05:32:20.498282 ############################ [INFO ] Processing toolkit TKernel === @@ -8849,7 +8849,7 @@ date : 2025-04-11 09:07:55.296872 [WARNI] No file for module IVtkVTK. Please check that the module name is part of occt. [INFO ] ################################################# -SWIG interface file generation completed in 16.89s +SWIG interface file generation completed in 8.96s ################################################# [INFO ] Number of classes: 3986 diff --git a/src/SWIG_files/wrapper/gp.pyi b/src/SWIG_files/wrapper/gp.pyi index c255ace94..d97b1c615 100644 --- a/src/SWIG_files/wrapper/gp.pyi +++ b/src/SWIG_files/wrapper/gp.pyi @@ -127,9 +127,11 @@ class gp_Ax1: def __init__(self, theP: gp_Pnt, theV: gp_Dir) -> None: ... def Angle(self, theOther: gp_Ax1) -> float: ... def Direction(self) -> gp_Dir: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def InitFromJson(self, json_string: str) -> bool: ... - def IsCoaxial(self, Other: gp_Ax1, AngularTolerance: float, LinearTolerance: float) -> bool: ... + def IsCoaxial( + self, Other: gp_Ax1, AngularTolerance: float, LinearTolerance: float + ) -> bool: ... def IsNormal(self, theOther: gp_Ax1, theAngularTolerance: float) -> bool: ... def IsOpposite(self, theOther: gp_Ax1, theAngularTolerance: float) -> bool: ... def IsParallel(self, theOther: gp_Ax1, theAngularTolerance: float) -> bool: ... @@ -175,12 +177,16 @@ class gp_Ax2: def Angle(self, theOther: gp_Ax2) -> float: ... def Axis(self) -> gp_Ax1: ... def Direction(self) -> gp_Dir: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def InitFromJson(self, json_string: str) -> bool: ... @overload - def IsCoplanar(self, Other: gp_Ax2, LinearTolerance: float, AngularTolerance: float) -> bool: ... + def IsCoplanar( + self, Other: gp_Ax2, LinearTolerance: float, AngularTolerance: float + ) -> bool: ... @overload - def IsCoplanar(self, A1: gp_Ax1, LinearTolerance: float, AngularTolerance: float) -> bool: ... + def IsCoplanar( + self, A1: gp_Ax1, LinearTolerance: float, AngularTolerance: float + ) -> bool: ... def Location(self) -> gp_Pnt: ... @overload def Mirror(self, P: gp_Pnt) -> None: ... @@ -222,10 +228,12 @@ class gp_Ax22d: @overload def __init__(self, theP: gp_Pnt2d, theVx: gp_Dir2d, theVy: gp_Dir2d) -> None: ... @overload - def __init__(self, theP: gp_Pnt2d, theV: gp_Dir2d, theIsSense: Optional[bool] = True) -> None: ... + def __init__( + self, theP: gp_Pnt2d, theV: gp_Dir2d, theIsSense: Optional[bool] = True + ) -> None: ... @overload def __init__(self, theA: gp_Ax2d, theIsSense: Optional[bool] = True) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Location(self) -> gp_Pnt2d: ... @overload def Mirror(self, theP: gp_Pnt2d) -> None: ... @@ -267,8 +275,10 @@ class gp_Ax2d: def __init__(self, theP: gp_Pnt2d, theV: gp_Dir2d) -> None: ... def Angle(self, theOther: gp_Ax2d) -> float: ... def Direction(self) -> gp_Dir2d: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - def IsCoaxial(self, Other: gp_Ax2d, AngularTolerance: float, LinearTolerance: float) -> bool: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + def IsCoaxial( + self, Other: gp_Ax2d, AngularTolerance: float, LinearTolerance: float + ) -> bool: ... def IsNormal(self, theOther: gp_Ax2d, theAngularTolerance: float) -> bool: ... def IsOpposite(self, theOther: gp_Ax2d, theAngularTolerance: float) -> bool: ... def IsParallel(self, theOther: gp_Ax2d, theAngularTolerance: float) -> bool: ... @@ -314,12 +324,16 @@ class gp_Ax3: def Axis(self) -> gp_Ax1: ... def Direct(self) -> bool: ... def Direction(self) -> gp_Dir: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def InitFromJson(self, json_string: str) -> bool: ... @overload - def IsCoplanar(self, theOther: gp_Ax3, theLinearTolerance: float, theAngularTolerance: float) -> bool: ... + def IsCoplanar( + self, theOther: gp_Ax3, theLinearTolerance: float, theAngularTolerance: float + ) -> bool: ... @overload - def IsCoplanar(self, theA1: gp_Ax1, theLinearTolerance: float, theAngularTolerance: float) -> bool: ... + def IsCoplanar( + self, theA1: gp_Ax1, theLinearTolerance: float, theAngularTolerance: float + ) -> bool: ... def Location(self) -> gp_Pnt: ... @overload def Mirror(self, theP: gp_Pnt) -> None: ... @@ -409,7 +423,9 @@ class gp_Circ2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, theXAxis: gp_Ax2d, theRadius: float, theIsSense: Optional[bool] = True) -> None: ... + def __init__( + self, theXAxis: gp_Ax2d, theRadius: float, theIsSense: Optional[bool] = True + ) -> None: ... @overload def __init__(self, theAxis: gp_Ax22d, theRadius: float) -> None: ... def Area(self) -> float: ... @@ -462,7 +478,11 @@ class gp_Cone: def __init__(self, theA3: gp_Ax3, theAng: float, theRadius: float) -> None: ... def Apex(self) -> gp_Pnt: ... def Axis(self) -> gp_Ax1: ... - def Coefficients(self) -> Tuple[float, float, float, float, float, float, float, float, float, float]: ... + def Coefficients( + self, + ) -> Tuple[ + float, float, float, float, float, float, float, float, float, float + ]: ... def Direct(self) -> bool: ... def Location(self) -> gp_Pnt: ... @overload @@ -510,7 +530,11 @@ class gp_Cylinder: @overload def __init__(self, theA3: gp_Ax3, theRadius: float) -> None: ... def Axis(self) -> gp_Ax1: ... - def Coefficients(self) -> Tuple[float, float, float, float, float, float, float, float, float, float]: ... + def Coefficients( + self, + ) -> Tuple[ + float, float, float, float, float, float, float, float, float, float + ]: ... def Direct(self) -> bool: ... def Location(self) -> gp_Pnt: ... @overload @@ -571,7 +595,7 @@ class gp_Dir: def Crossed(self, theRight: gp_Dir) -> gp_Dir: ... def Dot(self, theOther: gp_Dir) -> float: ... def DotCross(self, theV1: gp_Dir, theV2: gp_Dir) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def InitFromJson(self, json_string: str) -> bool: ... def IsEqual(self, theOther: gp_Dir, theAngularTolerance: float) -> bool: ... def IsNormal(self, theOther: gp_Dir, theAngularTolerance: float) -> bool: ... @@ -624,7 +648,7 @@ class gp_Dir2d: def Coord(self) -> Tuple[float, float]: ... def Crossed(self, theRight: gp_Dir2d) -> float: ... def Dot(self, theOther: gp_Dir2d) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsEqual(self, theOther: gp_Dir2d, theAngularTolerance: float) -> bool: ... def IsNormal(self, theOther: gp_Dir2d, theAngularTolerance: float) -> bool: ... def IsOpposite(self, theOther: gp_Dir2d, theAngularTolerance: float) -> bool: ... @@ -658,7 +682,9 @@ class gp_Elips: @overload def __init__(self) -> None: ... @overload - def __init__(self, theA2: gp_Ax2, theMajorRadius: float, theMinorRadius: float) -> None: ... + def __init__( + self, theA2: gp_Ax2, theMajorRadius: float, theMinorRadius: float + ) -> None: ... def Area(self) -> float: ... def Axis(self) -> gp_Ax1: ... def Directrix1(self) -> gp_Ax1: ... @@ -710,9 +736,17 @@ class gp_Elips2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, theMajorAxis: gp_Ax2d, theMajorRadius: float, theMinorRadius: float, theIsSense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, theA: gp_Ax22d, theMajorRadius: float, theMinorRadius: float) -> None: ... + def __init__( + self, + theMajorAxis: gp_Ax2d, + theMajorRadius: float, + theMinorRadius: float, + theIsSense: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, theA: gp_Ax22d, theMajorRadius: float, theMinorRadius: float + ) -> None: ... def Area(self) -> float: ... def Axis(self) -> gp_Ax22d: ... def Coefficients(self) -> Tuple[float, float, float, float, float, float]: ... @@ -767,7 +801,7 @@ class gp_GTrsf: def __init__(self, theT: gp_Trsf) -> None: ... @overload def __init__(self, theM: gp_Mat, theV: gp_XYZ) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Form(self) -> gp_TrsfForm: ... def Invert(self) -> None: ... def Inverted(self) -> gp_GTrsf: ... @@ -832,7 +866,9 @@ class gp_Hypr: @overload def __init__(self) -> None: ... @overload - def __init__(self, theA2: gp_Ax2, theMajorRadius: float, theMinorRadius: float) -> None: ... + def __init__( + self, theA2: gp_Ax2, theMajorRadius: float, theMinorRadius: float + ) -> None: ... def Asymptote1(self) -> gp_Ax1: ... def Asymptote2(self) -> gp_Ax1: ... def Axis(self) -> gp_Ax1: ... @@ -888,9 +924,17 @@ class gp_Hypr2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, theMajorAxis: gp_Ax2d, theMajorRadius: float, theMinorRadius: float, theIsSense: Optional[bool] = True) -> None: ... - @overload - def __init__(self, theA: gp_Ax22d, theMajorRadius: float, theMinorRadius: float) -> None: ... + def __init__( + self, + theMajorAxis: gp_Ax2d, + theMajorRadius: float, + theMinorRadius: float, + theIsSense: Optional[bool] = True, + ) -> None: ... + @overload + def __init__( + self, theA: gp_Ax22d, theMajorRadius: float, theMinorRadius: float + ) -> None: ... def Asymptote1(self) -> gp_Ax2d: ... def Asymptote2(self) -> gp_Ax2d: ... def Axis(self) -> gp_Ax22d: ... @@ -1051,7 +1095,18 @@ class gp_Mat: @overload def __init__(self) -> None: ... @overload - def __init__(self, theA11: float, theA12: float, theA13: float, theA21: float, theA22: float, theA23: float, theA31: float, theA32: float, theA33: float) -> None: ... + def __init__( + self, + theA11: float, + theA12: float, + theA13: float, + theA21: float, + theA22: float, + theA23: float, + theA31: float, + theA32: float, + theA33: float, + ) -> None: ... @overload def __init__(self, theCol1: gp_XYZ, theCol2: gp_XYZ, theCol3: gp_XYZ) -> None: ... def Add(self, theOther: gp_Mat) -> None: ... @@ -1063,7 +1118,7 @@ class gp_Mat: def Diagonal(self) -> gp_XYZ: ... def Divide(self, theScalar: float) -> None: ... def Divided(self, theScalar: float) -> gp_Mat: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Invert(self) -> None: ... def Inverted(self) -> gp_Mat: ... def IsSingular(self) -> bool: ... @@ -1191,11 +1246,18 @@ class gp_Parab2d: @overload def __init__(self) -> None: ... @overload - def __init__(self, theMirrorAxis: gp_Ax2d, theFocalLength: float, theSense: Optional[bool] = True) -> None: ... + def __init__( + self, + theMirrorAxis: gp_Ax2d, + theFocalLength: float, + theSense: Optional[bool] = True, + ) -> None: ... @overload def __init__(self, theAxes: gp_Ax22d, theFocalLength: float) -> None: ... @overload - def __init__(self, theDirectrix: gp_Ax2d, theFocus: gp_Pnt2d, theSense: Optional[bool] = True) -> None: ... + def __init__( + self, theDirectrix: gp_Ax2d, theFocus: gp_Pnt2d, theSense: Optional[bool] = True + ) -> None: ... def Axis(self) -> gp_Ax22d: ... def Coefficients(self) -> Tuple[float, float, float, float, float, float]: ... def Directrix(self) -> gp_Ax2d: ... @@ -1248,7 +1310,9 @@ class gp_Pln: @overload def Contains(self, theP: gp_Pnt, theLinearTolerance: float) -> bool: ... @overload - def Contains(self, theL: gp_Lin, theLinearTolerance: float, theAngularTolerance: float) -> bool: ... + def Contains( + self, theL: gp_Lin, theLinearTolerance: float, theAngularTolerance: float + ) -> bool: ... def Direct(self) -> bool: ... @overload def Distance(self, theP: gp_Pnt) -> float: ... @@ -1256,7 +1320,7 @@ class gp_Pln: def Distance(self, theL: gp_Lin) -> float: ... @overload def Distance(self, theOther: gp_Pln) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Location(self) -> gp_Pnt: ... @overload def Mirror(self, theP: gp_Pnt) -> None: ... @@ -1315,7 +1379,7 @@ class gp_Pnt: @overload def Coord(self) -> gp_XYZ: ... def Distance(self, theOther: gp_Pnt) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def InitFromJson(self, json_string: str) -> bool: ... def IsEqual(self, theOther: gp_Pnt, theLinearTolerance: float) -> bool: ... @overload @@ -1373,7 +1437,7 @@ class gp_Pnt2d: @overload def Coord(self) -> gp_XY: ... def Distance(self, theOther: gp_Pnt2d) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def IsEqual(self, theOther: gp_Pnt2d, theLinearTolerance: float) -> bool: ... @overload def Mirror(self, theP: gp_Pnt2d) -> None: ... @@ -1417,7 +1481,9 @@ class gp_Quaternion: @overload def __init__(self, theVecFrom: gp_Vec, theVecTo: gp_Vec) -> None: ... @overload - def __init__(self, theVecFrom: gp_Vec, theVecTo: gp_Vec, theHelpCrossVec: gp_Vec) -> None: ... + def __init__( + self, theVecFrom: gp_Vec, theVecTo: gp_Vec, theHelpCrossVec: gp_Vec + ) -> None: ... @overload def __init__(self, theAxis: gp_Vec, theAngle: float) -> None: ... @overload @@ -1425,7 +1491,9 @@ class gp_Quaternion: def Add(self, theOther: gp_Quaternion) -> None: ... def Added(self, theOther: gp_Quaternion) -> gp_Quaternion: ... def Dot(self, theOther: gp_Quaternion) -> float: ... - def GetEulerAngles(self, theOrder: gp_EulerSequence) -> Tuple[float, float, float]: ... + def GetEulerAngles( + self, theOrder: gp_EulerSequence + ) -> Tuple[float, float, float]: ... def GetMatrix(self) -> gp_Mat: ... def GetRotationAngle(self) -> float: ... def GetVectorAndAngle(self, theAxis: gp_Vec) -> float: ... @@ -1449,13 +1517,21 @@ class gp_Quaternion: def Set(self, theX: float, theY: float, theZ: float, theW: float) -> None: ... @overload def Set(self, theQuaternion: gp_Quaternion) -> None: ... - def SetEulerAngles(self, theOrder: gp_EulerSequence, theAlpha: float, theBeta: float, theGamma: float) -> None: ... + def SetEulerAngles( + self, + theOrder: gp_EulerSequence, + theAlpha: float, + theBeta: float, + theGamma: float, + ) -> None: ... def SetIdent(self) -> None: ... def SetMatrix(self, theMat: gp_Mat) -> None: ... @overload def SetRotation(self, theVecFrom: gp_Vec, theVecTo: gp_Vec) -> None: ... @overload - def SetRotation(self, theVecFrom: gp_Vec, theVecTo: gp_Vec, theHelpCrossVec: gp_Vec) -> None: ... + def SetRotation( + self, theVecFrom: gp_Vec, theVecTo: gp_Vec, theHelpCrossVec: gp_Vec + ) -> None: ... def SetVectorAndAngle(self, theAxis: gp_Vec, theAngle: float) -> None: ... def SquareNorm(self) -> float: ... def StabilizeLength(self) -> None: ... @@ -1472,10 +1548,14 @@ class gp_QuaternionNLerp: @overload def __init__(self, theQStart: gp_Quaternion, theQEnd: gp_Quaternion) -> None: ... def Init(self, theQStart: gp_Quaternion, theQEnd: gp_Quaternion) -> None: ... - def InitFromUnit(self, theQStart: gp_Quaternion, theQEnd: gp_Quaternion) -> None: ... + def InitFromUnit( + self, theQStart: gp_Quaternion, theQEnd: gp_Quaternion + ) -> None: ... @overload @staticmethod - def Interpolate(theQStart: gp_Quaternion, theQEnd: gp_Quaternion, theT: float) -> gp_Quaternion: ... + def Interpolate( + theQStart: gp_Quaternion, theQEnd: gp_Quaternion, theT: float + ) -> gp_Quaternion: ... @overload def Interpolate(self, theT: float, theResultQ: gp_Quaternion) -> None: ... @@ -1485,10 +1565,14 @@ class gp_QuaternionSLerp: @overload def __init__(self, theQStart: gp_Quaternion, theQEnd: gp_Quaternion) -> None: ... def Init(self, theQStart: gp_Quaternion, theQEnd: gp_Quaternion) -> None: ... - def InitFromUnit(self, theQStart: gp_Quaternion, theQEnd: gp_Quaternion) -> None: ... + def InitFromUnit( + self, theQStart: gp_Quaternion, theQEnd: gp_Quaternion + ) -> None: ... @overload @staticmethod - def Interpolate(theQStart: gp_Quaternion, theQEnd: gp_Quaternion, theT: float) -> gp_Quaternion: ... + def Interpolate( + theQStart: gp_Quaternion, theQEnd: gp_Quaternion, theT: float + ) -> gp_Quaternion: ... @overload def Interpolate(self, theT: float, theResultQ: gp_Quaternion) -> None: ... @@ -1498,7 +1582,11 @@ class gp_Sphere: @overload def __init__(self, theA3: gp_Ax3, theRadius: float) -> None: ... def Area(self) -> float: ... - def Coefficients(self) -> Tuple[float, float, float, float, float, float, float, float, float, float]: ... + def Coefficients( + self, + ) -> Tuple[ + float, float, float, float, float, float, float, float, float, float + ]: ... def Direct(self) -> bool: ... def Location(self) -> gp_Pnt: ... @overload @@ -1542,7 +1630,9 @@ class gp_Torus: @overload def __init__(self) -> None: ... @overload - def __init__(self, theA3: gp_Ax3, theMajorRadius: float, theMinorRadius: float) -> None: ... + def __init__( + self, theA3: gp_Ax3, theMajorRadius: float, theMinorRadius: float + ) -> None: ... def Area(self) -> float: ... def Axis(self) -> gp_Ax1: ... def Coefficients(self, theCoef: TColStd_Array1OfReal) -> None: ... @@ -1593,7 +1683,7 @@ class gp_Trsf: def __init__(self) -> None: ... @overload def __init__(self, theT: gp_Trsf2d) -> None: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def Form(self) -> gp_TrsfForm: ... @overload def GetRotation(self, theAxis: gp_XYZ) -> Tuple[bool, float]: ... @@ -1626,7 +1716,9 @@ class gp_Trsf: def SetScale(self, theP: gp_Pnt, theS: float) -> None: ... def SetScaleFactor(self, theS: float) -> None: ... @overload - def SetTransformation(self, theFromSystem1: gp_Ax3, theToSystem2: gp_Ax3) -> None: ... + def SetTransformation( + self, theFromSystem1: gp_Ax3, theToSystem2: gp_Ax3 + ) -> None: ... @overload def SetTransformation(self, theToSystem: gp_Ax3) -> None: ... @overload @@ -1636,7 +1728,21 @@ class gp_Trsf: @overload def SetTranslation(self, theP1: gp_Pnt, theP2: gp_Pnt) -> None: ... def SetTranslationPart(self, theV: gp_Vec) -> None: ... - def SetValues(self, a11: float, a12: float, a13: float, a14: float, a21: float, a22: float, a23: float, a24: float, a31: float, a32: float, a33: float, a34: float) -> None: ... + def SetValues( + self, + a11: float, + a12: float, + a13: float, + a14: float, + a21: float, + a22: float, + a23: float, + a24: float, + a31: float, + a32: float, + a33: float, + a34: float, + ) -> None: ... @overload def Transforms(self) -> Tuple[float, float, float]: ... @overload @@ -1670,7 +1776,9 @@ class gp_Trsf2d: def SetScale(self, theP: gp_Pnt2d, theS: float) -> None: ... def SetScaleFactor(self, theS: float) -> None: ... @overload - def SetTransformation(self, theFromSystem1: gp_Ax2d, theToSystem2: gp_Ax2d) -> None: ... + def SetTransformation( + self, theFromSystem1: gp_Ax2d, theToSystem2: gp_Ax2d + ) -> None: ... @overload def SetTransformation(self, theToSystem: gp_Ax2d) -> None: ... @overload @@ -1678,7 +1786,9 @@ class gp_Trsf2d: @overload def SetTranslation(self, theP1: gp_Pnt2d, theP2: gp_Pnt2d) -> None: ... def SetTranslationPart(self, theV: gp_Vec2d) -> None: ... - def SetValues(self, a11: float, a12: float, a13: float, a21: float, a22: float, a23: float) -> None: ... + def SetValues( + self, a11: float, a12: float, a13: float, a21: float, a22: float, a23: float + ) -> None: ... @overload def Transforms(self) -> Tuple[float, float]: ... @overload @@ -1716,8 +1826,10 @@ class gp_Vec: def Divided(self, theScalar: float) -> gp_Vec: ... def Dot(self, theOther: gp_Vec) -> float: ... def DotCross(self, theV1: gp_Vec, theV2: gp_Vec) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... - def IsEqual(self, theOther: gp_Vec, theLinearTolerance: float, theAngularTolerance: float) -> bool: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... + def IsEqual( + self, theOther: gp_Vec, theLinearTolerance: float, theAngularTolerance: float + ) -> bool: ... def IsNormal(self, theOther: gp_Vec, theAngularTolerance: float) -> bool: ... def IsOpposite(self, theOther: gp_Vec, theAngularTolerance: float) -> bool: ... def IsParallel(self, theOther: gp_Vec, theAngularTolerance: float) -> bool: ... @@ -1749,13 +1861,34 @@ class gp_Vec: @overload def SetCoord(self, theXv: float, theYv: float, theZv: float) -> None: ... @overload - def SetLinearForm(self, theA1: float, theV1: gp_Vec, theA2: float, theV2: gp_Vec, theA3: float, theV3: gp_Vec, theV4: gp_Vec) -> None: ... - @overload - def SetLinearForm(self, theA1: float, theV1: gp_Vec, theA2: float, theV2: gp_Vec, theA3: float, theV3: gp_Vec) -> None: ... - @overload - def SetLinearForm(self, theA1: float, theV1: gp_Vec, theA2: float, theV2: gp_Vec, theV3: gp_Vec) -> None: ... - @overload - def SetLinearForm(self, theA1: float, theV1: gp_Vec, theA2: float, theV2: gp_Vec) -> None: ... + def SetLinearForm( + self, + theA1: float, + theV1: gp_Vec, + theA2: float, + theV2: gp_Vec, + theA3: float, + theV3: gp_Vec, + theV4: gp_Vec, + ) -> None: ... + @overload + def SetLinearForm( + self, + theA1: float, + theV1: gp_Vec, + theA2: float, + theV2: gp_Vec, + theA3: float, + theV3: gp_Vec, + ) -> None: ... + @overload + def SetLinearForm( + self, theA1: float, theV1: gp_Vec, theA2: float, theV2: gp_Vec, theV3: gp_Vec + ) -> None: ... + @overload + def SetLinearForm( + self, theA1: float, theV1: gp_Vec, theA2: float, theV2: gp_Vec + ) -> None: ... @overload def SetLinearForm(self, theA1: float, theV1: gp_Vec, theV2: gp_Vec) -> None: ... @overload @@ -1799,7 +1932,9 @@ class gp_Vec2d: def Divided(self, theScalar: float) -> gp_Vec2d: ... def Dot(self, theOther: gp_Vec2d) -> float: ... def GetNormal(self) -> gp_Vec2d: ... - def IsEqual(self, theOther: gp_Vec2d, theLinearTolerance: float, theAngularTolerance: float) -> bool: ... + def IsEqual( + self, theOther: gp_Vec2d, theLinearTolerance: float, theAngularTolerance: float + ) -> bool: ... def IsNormal(self, theOther: gp_Vec2d, theAngularTolerance: float) -> bool: ... def IsOpposite(self, theOther: gp_Vec2d, theAngularTolerance: float) -> bool: ... def IsParallel(self, theOther: gp_Vec2d, theAngularTolerance: float) -> bool: ... @@ -1827,9 +1962,18 @@ class gp_Vec2d: @overload def SetCoord(self, theXv: float, theYv: float) -> None: ... @overload - def SetLinearForm(self, theA1: float, theV1: gp_Vec2d, theA2: float, theV2: gp_Vec2d, theV3: gp_Vec2d) -> None: ... + def SetLinearForm( + self, + theA1: float, + theV1: gp_Vec2d, + theA2: float, + theV2: gp_Vec2d, + theV3: gp_Vec2d, + ) -> None: ... @overload - def SetLinearForm(self, theA1: float, theV1: gp_Vec2d, theA2: float, theV2: gp_Vec2d) -> None: ... + def SetLinearForm( + self, theA1: float, theV1: gp_Vec2d, theA2: float, theV2: gp_Vec2d + ) -> None: ... @overload def SetLinearForm(self, theA1: float, theV1: gp_Vec2d, theV2: gp_Vec2d) -> None: ... @overload @@ -1888,9 +2032,13 @@ class gp_XY: @overload def SetCoord(self, theX: float, theY: float) -> None: ... @overload - def SetLinearForm(self, theA1: float, theXY1: gp_XY, theA2: float, theXY2: gp_XY) -> None: ... + def SetLinearForm( + self, theA1: float, theXY1: gp_XY, theA2: float, theXY2: gp_XY + ) -> None: ... @overload - def SetLinearForm(self, theA1: float, theXY1: gp_XY, theA2: float, theXY2: gp_XY, theXY3: gp_XY) -> None: ... + def SetLinearForm( + self, theA1: float, theXY1: gp_XY, theA2: float, theXY2: gp_XY, theXY3: gp_XY + ) -> None: ... @overload def SetLinearForm(self, theA1: float, theXY1: gp_XY, theXY2: gp_XY) -> None: ... @overload @@ -1927,7 +2075,7 @@ class gp_XYZ: def Divided(self, theScalar: float) -> gp_XYZ: ... def Dot(self, theOther: gp_XYZ) -> float: ... def DotCross(self, theCoord1: gp_XYZ, theCoord2: gp_XYZ) -> float: ... - def DumpJson(self, depth: Optional[int]=-1) -> str: ... + def DumpJson(self, depth: Optional[int] = -1) -> str: ... def GetData(self) -> float: ... def InitFromJson(self, json_string: str) -> bool: ... def IsEqual(self, theOther: gp_XYZ, theTolerance: float) -> bool: ... @@ -1953,13 +2101,39 @@ class gp_XYZ: @overload def SetCoord(self, theIndex: int, theXi: float) -> None: ... @overload - def SetLinearForm(self, theA1: float, theXYZ1: gp_XYZ, theA2: float, theXYZ2: gp_XYZ, theA3: float, theXYZ3: gp_XYZ, theXYZ4: gp_XYZ) -> None: ... - @overload - def SetLinearForm(self, theA1: float, theXYZ1: gp_XYZ, theA2: float, theXYZ2: gp_XYZ, theA3: float, theXYZ3: gp_XYZ) -> None: ... - @overload - def SetLinearForm(self, theA1: float, theXYZ1: gp_XYZ, theA2: float, theXYZ2: gp_XYZ, theXYZ3: gp_XYZ) -> None: ... - @overload - def SetLinearForm(self, theA1: float, theXYZ1: gp_XYZ, theA2: float, theXYZ2: gp_XYZ) -> None: ... + def SetLinearForm( + self, + theA1: float, + theXYZ1: gp_XYZ, + theA2: float, + theXYZ2: gp_XYZ, + theA3: float, + theXYZ3: gp_XYZ, + theXYZ4: gp_XYZ, + ) -> None: ... + @overload + def SetLinearForm( + self, + theA1: float, + theXYZ1: gp_XYZ, + theA2: float, + theXYZ2: gp_XYZ, + theA3: float, + theXYZ3: gp_XYZ, + ) -> None: ... + @overload + def SetLinearForm( + self, + theA1: float, + theXYZ1: gp_XYZ, + theA2: float, + theXYZ2: gp_XYZ, + theXYZ3: gp_XYZ, + ) -> None: ... + @overload + def SetLinearForm( + self, theA1: float, theXYZ1: gp_XYZ, theA2: float, theXYZ2: gp_XYZ + ) -> None: ... @overload def SetLinearForm(self, theA1: float, theXYZ1: gp_XYZ, theXYZ2: gp_XYZ) -> None: ... @overload @@ -1977,4 +2151,3 @@ class gp_XYZ: # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/SWIG_files/wrapper/math.pyi b/src/SWIG_files/wrapper/math.pyi index 275083942..da92c101b 100644 --- a/src/SWIG_files/wrapper/math.pyi +++ b/src/SWIG_files/wrapper/math.pyi @@ -7,7 +7,6 @@ from OCC.Core.TColStd import * from OCC.Core.Message import * from OCC.Core.gp import * - class math_Array1OfValueAndWeight: @overload def __init__(self) -> None: ... @@ -53,14 +52,24 @@ class math: @staticmethod def GaussWeights(Index: int, Weights: math_Vector) -> None: ... @staticmethod - def KronrodPointsAndWeights(Index: int, Points: math_Vector, Weights: math_Vector) -> bool: ... + def KronrodPointsAndWeights( + Index: int, Points: math_Vector, Weights: math_Vector + ) -> bool: ... @staticmethod def KronrodPointsMax() -> int: ... @staticmethod - def OrderedGaussPointsAndWeights(Index: int, Points: math_Vector, Weights: math_Vector) -> bool: ... + def OrderedGaussPointsAndWeights( + Index: int, Points: math_Vector, Weights: math_Vector + ) -> bool: ... class math_BFGS: - def __init__(self, NbVariables: int, Tolerance: Optional[float] = 1.0e-8, NbIterations: Optional[int] = 200, ZEPS: Optional[float] = 1.0e-12) -> None: ... + def __init__( + self, + NbVariables: int, + Tolerance: Optional[float] = 1.0e-8, + NbIterations: Optional[int] = 200, + ZEPS: Optional[float] = 1.0e-12, + ) -> None: ... def Dump(self) -> str: ... @overload def Gradient(self) -> math_Vector: ... @@ -74,8 +83,12 @@ class math_BFGS: def Location(self, Loc: math_Vector) -> None: ... def Minimum(self) -> float: ... def NbIterations(self) -> int: ... - def Perform(self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector) -> None: ... - def SetBoundary(self, theLeftBorder: math_Vector, theRightBorder: math_Vector) -> None: ... + def Perform( + self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector + ) -> None: ... + def SetBoundary( + self, theLeftBorder: math_Vector, theRightBorder: math_Vector + ) -> None: ... class math_BissecNewton: def __init__(self, theXTolerance: float) -> None: ... @@ -83,7 +96,13 @@ class math_BissecNewton: def Dump(self) -> str: ... def IsDone(self) -> bool: ... def IsSolutionReached(self, theFunction: math_FunctionWithDerivative) -> bool: ... - def Perform(self, F: math_FunctionWithDerivative, Bound1: float, Bound2: float, NbIterations: Optional[int] = 100) -> None: ... + def Perform( + self, + F: math_FunctionWithDerivative, + Bound1: float, + Bound2: float, + NbIterations: Optional[int] = 100, + ) -> None: ... def Root(self) -> float: ... def Value(self) -> float: ... @@ -95,7 +114,9 @@ class math_BracketMinimum: @overload def __init__(self, F: math_Function, A: float, B: float, FA: float) -> None: ... @overload - def __init__(self, F: math_Function, A: float, B: float, FA: float, FB: float) -> None: ... + def __init__( + self, F: math_Function, A: float, B: float, FA: float, FB: float + ) -> None: ... def Dump(self) -> str: ... def FunctionValues(self) -> Tuple[float, float, float]: ... def IsDone(self) -> bool: ... @@ -106,7 +127,15 @@ class math_BracketMinimum: def Values(self) -> Tuple[float, float, float]: ... class math_BracketedRoot: - def __init__(self, F: math_Function, Bound1: float, Bound2: float, Tolerance: float, NbIterations: Optional[int] = 100, ZEPS: Optional[float] = 1.0e-12) -> None: ... + def __init__( + self, + F: math_Function, + Bound1: float, + Bound2: float, + Tolerance: float, + NbIterations: Optional[int] = 100, + ZEPS: Optional[float] = 1.0e-12, + ) -> None: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... def NbIterations(self) -> int: ... @@ -115,9 +144,20 @@ class math_BracketedRoot: class math_BrentMinimum: @overload - def __init__(self, TolX: float, NbIterations: Optional[int] = 100, ZEPS: Optional[float] = 1.0e-12) -> None: ... - @overload - def __init__(self, TolX: float, Fbx: float, NbIterations: Optional[int] = 100, ZEPS: Optional[float] = 1.0e-12) -> None: ... + def __init__( + self, + TolX: float, + NbIterations: Optional[int] = 100, + ZEPS: Optional[float] = 1.0e-12, + ) -> None: ... + @overload + def __init__( + self, + TolX: float, + Fbx: float, + NbIterations: Optional[int] = 100, + ZEPS: Optional[float] = 1.0e-12, + ) -> None: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... def IsSolutionReached(self, theFunction: math_Function) -> bool: ... @@ -170,9 +210,13 @@ class math_DirectPolynomialRoots: class math_DoubleTab: @overload - def __init__(self, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int) -> None: ... + def __init__( + self, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int + ) -> None: ... @overload - def __init__(self, Tab: None, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int) -> None: ... + def __init__( + self, Tab: None, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int + ) -> None: ... @overload def __init__(self, Other: math_DoubleTab) -> None: ... def Copy(self, Other: math_DoubleTab) -> None: ... @@ -184,35 +228,56 @@ class math_DoubleTab: def SetValue(self, RowIndex: int, ColIndex: int, value: float) -> None: ... class math_EigenValuesSearcher: - def __init__(self, Diagonal: TColStd_Array1OfReal, Subdiagonal: TColStd_Array1OfReal) -> None: ... + def __init__( + self, Diagonal: TColStd_Array1OfReal, Subdiagonal: TColStd_Array1OfReal + ) -> None: ... def Dimension(self) -> int: ... def EigenValue(self, Index: int) -> float: ... def EigenVector(self, Index: int) -> math_Vector: ... def IsDone(self) -> bool: ... class math_FRPR: - def __init__(self, theFunction: math_MultipleVarFunctionWithGradient, theTolerance: float, theNbIterations: Optional[int] = 200, theZEPS: Optional[float] = 1.0e-12) -> None: ... + def __init__( + self, + theFunction: math_MultipleVarFunctionWithGradient, + theTolerance: float, + theNbIterations: Optional[int] = 200, + theZEPS: Optional[float] = 1.0e-12, + ) -> None: ... def Dump(self) -> str: ... @overload def Gradient(self) -> math_Vector: ... @overload def Gradient(self, Grad: math_Vector) -> None: ... def IsDone(self) -> bool: ... - def IsSolutionReached(self, theFunction: math_MultipleVarFunctionWithGradient) -> bool: ... + def IsSolutionReached( + self, theFunction: math_MultipleVarFunctionWithGradient + ) -> bool: ... @overload def Location(self) -> math_Vector: ... @overload def Location(self, Loc: math_Vector) -> None: ... def Minimum(self) -> float: ... def NbIterations(self) -> int: ... - def Perform(self, theFunction: math_MultipleVarFunctionWithGradient, theStartingPoint: math_Vector) -> None: ... + def Perform( + self, + theFunction: math_MultipleVarFunctionWithGradient, + theStartingPoint: math_Vector, + ) -> None: ... class math_Function: def GetStateNumber(self) -> int: ... def Value(self, X: float) -> Tuple[bool, float]: ... class math_FunctionAllRoots: - def __init__(self, F: math_FunctionWithDerivative, S: math_FunctionSample, EpsX: float, EpsF: float, EpsNul: float) -> None: ... + def __init__( + self, + F: math_FunctionWithDerivative, + S: math_FunctionSample, + EpsX: float, + EpsF: float, + EpsNul: float, + ) -> None: ... def Dump(self) -> str: ... def GetInterval(self, Index: int) -> Tuple[float, float]: ... def GetIntervalState(self, Index: int) -> Tuple[int, int]: ... @@ -224,9 +289,23 @@ class math_FunctionAllRoots: class math_FunctionRoot: @overload - def __init__(self, F: math_FunctionWithDerivative, Guess: float, Tolerance: float, NbIterations: Optional[int] = 100) -> None: ... - @overload - def __init__(self, F: math_FunctionWithDerivative, Guess: float, Tolerance: float, A: float, B: float, NbIterations: Optional[int] = 100) -> None: ... + def __init__( + self, + F: math_FunctionWithDerivative, + Guess: float, + Tolerance: float, + NbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def __init__( + self, + F: math_FunctionWithDerivative, + Guess: float, + Tolerance: float, + A: float, + B: float, + NbIterations: Optional[int] = 100, + ) -> None: ... def Derivative(self) -> float: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... @@ -235,7 +314,17 @@ class math_FunctionRoot: def Value(self) -> float: ... class math_FunctionRoots: - def __init__(self, F: math_FunctionWithDerivative, A: float, B: float, NbSample: int, EpsX: Optional[float] = 0.0, EpsF: Optional[float] = 0.0, EpsNull: Optional[float] = 0.0, K: Optional[float] = 0.0) -> None: ... + def __init__( + self, + F: math_FunctionWithDerivative, + A: float, + B: float, + NbSample: int, + EpsX: Optional[float] = 0.0, + EpsF: Optional[float] = 0.0, + EpsNull: Optional[float] = 0.0, + K: Optional[float] = 0.0, + ) -> None: ... def Dump(self) -> str: ... def IsAllNull(self) -> bool: ... def IsDone(self) -> bool: ... @@ -257,9 +346,16 @@ class math_FunctionSet: class math_FunctionSetRoot: @overload - def __init__(self, F: math_FunctionSetWithDerivatives, Tolerance: math_Vector, NbIterations: Optional[int] = 100) -> None: ... + def __init__( + self, + F: math_FunctionSetWithDerivatives, + Tolerance: math_Vector, + NbIterations: Optional[int] = 100, + ) -> None: ... @overload - def __init__(self, F: math_FunctionSetWithDerivatives, NbIterations: Optional[int] = 100) -> None: ... + def __init__( + self, F: math_FunctionSetWithDerivatives, NbIterations: Optional[int] = 100 + ) -> None: ... @overload def Derivative(self) -> math_Matrix: ... @overload @@ -273,9 +369,21 @@ class math_FunctionSetRoot: def IsDone(self) -> bool: ... def NbIterations(self) -> int: ... @overload - def Perform(self, theFunction: math_FunctionSetWithDerivatives, theStartingPoint: math_Vector, theStopOnDivergent: Optional[bool] = False) -> None: ... - @overload - def Perform(self, theFunction: math_FunctionSetWithDerivatives, theStartingPoint: math_Vector, theInfBound: math_Vector, theSupBound: math_Vector, theStopOnDivergent: Optional[bool] = False) -> None: ... + def Perform( + self, + theFunction: math_FunctionSetWithDerivatives, + theStartingPoint: math_Vector, + theStopOnDivergent: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + theFunction: math_FunctionSetWithDerivatives, + theStartingPoint: math_Vector, + theInfBound: math_Vector, + theSupBound: math_Vector, + theStopOnDivergent: Optional[bool] = False, + ) -> None: ... @overload def Root(self) -> math_Vector: ... @overload @@ -284,7 +392,12 @@ class math_FunctionSetRoot: def StateNumber(self) -> int: ... class math_Gauss: - def __init__(self, A: math_Matrix, MinPivot: Optional[float] = 1.0e-20, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ... + def __init__( + self, + A: math_Matrix, + MinPivot: Optional[float] = 1.0e-20, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... def Determinant(self) -> float: ... def Dump(self) -> str: ... def Invert(self, Inv: math_Matrix) -> None: ... @@ -301,13 +414,25 @@ class math_GaussLeastSquare: def Solve(self, B: math_Vector, X: math_Vector) -> None: ... class math_GaussMultipleIntegration: - def __init__(self, F: math_MultipleVarFunction, Lower: math_Vector, Upper: math_Vector, Order: math_IntegerVector) -> None: ... + def __init__( + self, + F: math_MultipleVarFunction, + Lower: math_Vector, + Upper: math_Vector, + Order: math_IntegerVector, + ) -> None: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... def Value(self) -> float: ... class math_GaussSetIntegration: - def __init__(self, F: math_FunctionSet, Lower: math_Vector, Upper: math_Vector, Order: math_IntegerVector) -> None: ... + def __init__( + self, + F: math_FunctionSet, + Lower: math_Vector, + Upper: math_Vector, + Order: math_IntegerVector, + ) -> None: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... def Value(self) -> math_Vector: ... @@ -316,15 +441,27 @@ class math_GaussSingleIntegration: @overload def __init__(self) -> None: ... @overload - def __init__(self, F: math_Function, Lower: float, Upper: float, Order: int) -> None: ... + def __init__( + self, F: math_Function, Lower: float, Upper: float, Order: int + ) -> None: ... @overload - def __init__(self, F: math_Function, Lower: float, Upper: float, Order: int, Tol: float) -> None: ... + def __init__( + self, F: math_Function, Lower: float, Upper: float, Order: int, Tol: float + ) -> None: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... def Value(self) -> float: ... class math_GlobOptMin: - def __init__(self, theFunc: math_MultipleVarFunction, theLowerBorder: math_Vector, theUpperBorder: math_Vector, theC: Optional[float] = 9, theDiscretizationTol: Optional[float] = 1.0e-2, theSameTol: Optional[float] = 1.0e-7) -> None: ... + def __init__( + self, + theFunc: math_MultipleVarFunction, + theLowerBorder: math_Vector, + theUpperBorder: math_Vector, + theC: Optional[float] = 9, + theDiscretizationTol: Optional[float] = 1.0e-2, + theSameTol: Optional[float] = 1.0e-7, + ) -> None: ... def GetContinuity(self) -> int: ... def GetF(self) -> float: ... def GetFunctionalMinimalValue(self) -> float: ... @@ -335,19 +472,42 @@ class math_GlobOptMin: def Points(self, theIndex: int, theSol: math_Vector) -> None: ... def SetContinuity(self, theCont: int) -> None: ... def SetFunctionalMinimalValue(self, theMinimalValue: float) -> None: ... - def SetGlobalParams(self, theFunc: math_MultipleVarFunction, theLowerBorder: math_Vector, theUpperBorder: math_Vector, theC: Optional[float] = 9, theDiscretizationTol: Optional[float] = 1.0e-2, theSameTol: Optional[float] = 1.0e-7) -> None: ... + def SetGlobalParams( + self, + theFunc: math_MultipleVarFunction, + theLowerBorder: math_Vector, + theUpperBorder: math_Vector, + theC: Optional[float] = 9, + theDiscretizationTol: Optional[float] = 1.0e-2, + theSameTol: Optional[float] = 1.0e-7, + ) -> None: ... def SetLipConstState(self, theFlag: bool) -> None: ... - def SetLocalParams(self, theLocalA: math_Vector, theLocalB: math_Vector) -> None: ... + def SetLocalParams( + self, theLocalA: math_Vector, theLocalB: math_Vector + ) -> None: ... def SetTol(self, theDiscretizationTol: float, theSameTol: float) -> None: ... def isDone(self) -> bool: ... class math_Householder: @overload - def __init__(self, A: math_Matrix, B: math_Matrix, EPS: Optional[float] = 1.0e-20) -> None: ... - @overload - def __init__(self, A: math_Matrix, B: math_Matrix, lowerArow: int, upperArow: int, lowerAcol: int, upperAcol: int, EPS: Optional[float] = 1.0e-20) -> None: ... - @overload - def __init__(self, A: math_Matrix, B: math_Vector, EPS: Optional[float] = 1.0e-20) -> None: ... + def __init__( + self, A: math_Matrix, B: math_Matrix, EPS: Optional[float] = 1.0e-20 + ) -> None: ... + @overload + def __init__( + self, + A: math_Matrix, + B: math_Matrix, + lowerArow: int, + upperArow: int, + lowerAcol: int, + upperAcol: int, + EPS: Optional[float] = 1.0e-20, + ) -> None: ... + @overload + def __init__( + self, A: math_Matrix, B: math_Vector, EPS: Optional[float] = 1.0e-20 + ) -> None: ... def AllValues(self) -> math_Matrix: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... @@ -366,29 +526,76 @@ class math_KronrodSingleIntegration: @overload def __init__(self) -> None: ... @overload - def __init__(self, theFunction: math_Function, theLower: float, theUpper: float, theNbPnts: int) -> None: ... - @overload - def __init__(self, theFunction: math_Function, theLower: float, theUpper: float, theNbPnts: int, theTolerance: float, theMaxNbIter: int) -> None: ... + def __init__( + self, + theFunction: math_Function, + theLower: float, + theUpper: float, + theNbPnts: int, + ) -> None: ... + @overload + def __init__( + self, + theFunction: math_Function, + theLower: float, + theUpper: float, + theNbPnts: int, + theTolerance: float, + theMaxNbIter: int, + ) -> None: ... def AbsolutError(self) -> float: ... def ErrorReached(self) -> float: ... @staticmethod - def GKRule(theFunction: math_Function, theLower: float, theUpper: float, theGaussP: math_Vector, theGaussW: math_Vector, theKronrodP: math_Vector, theKronrodW: math_Vector) -> Tuple[bool, float, float]: ... + def GKRule( + theFunction: math_Function, + theLower: float, + theUpper: float, + theGaussP: math_Vector, + theGaussW: math_Vector, + theKronrodP: math_Vector, + theKronrodW: math_Vector, + ) -> Tuple[bool, float, float]: ... def IsDone(self) -> bool: ... def NbIterReached(self) -> int: ... def OrderReached(self) -> int: ... @overload - def Perform(self, theFunction: math_Function, theLower: float, theUpper: float, theNbPnts: int) -> None: ... - @overload - def Perform(self, theFunction: math_Function, theLower: float, theUpper: float, theNbPnts: int, theTolerance: float, theMaxNbIter: int) -> None: ... + def Perform( + self, + theFunction: math_Function, + theLower: float, + theUpper: float, + theNbPnts: int, + ) -> None: ... + @overload + def Perform( + self, + theFunction: math_Function, + theLower: float, + theUpper: float, + theNbPnts: int, + theTolerance: float, + theMaxNbIter: int, + ) -> None: ... def Value(self) -> float: ... class math_Matrix: @overload - def __init__(self, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int) -> None: ... + def __init__( + self, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int + ) -> None: ... @overload - def __init__(self, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int, InitialValue: float) -> None: ... + def __init__( + self, + LowerRow: int, + UpperRow: int, + LowerCol: int, + UpperCol: int, + InitialValue: float, + ) -> None: ... @overload - def __init__(self, Tab: None, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int) -> None: ... + def __init__( + self, Tab: None, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int + ) -> None: ... @overload def __init__(self, Other: math_Matrix) -> None: ... @overload @@ -449,11 +656,34 @@ class math_MultipleVarFunction: class math_NewtonFunctionRoot: @overload - def __init__(self, F: math_FunctionWithDerivative, Guess: float, EpsX: float, EpsF: float, NbIterations: Optional[int] = 100) -> None: ... - @overload - def __init__(self, F: math_FunctionWithDerivative, Guess: float, EpsX: float, EpsF: float, A: float, B: float, NbIterations: Optional[int] = 100) -> None: ... - @overload - def __init__(self, A: float, B: float, EpsX: float, EpsF: float, NbIterations: Optional[int] = 100) -> None: ... + def __init__( + self, + F: math_FunctionWithDerivative, + Guess: float, + EpsX: float, + EpsF: float, + NbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def __init__( + self, + F: math_FunctionWithDerivative, + Guess: float, + EpsX: float, + EpsF: float, + A: float, + B: float, + NbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def __init__( + self, + A: float, + B: float, + EpsX: float, + EpsF: float, + NbIterations: Optional[int] = 100, + ) -> None: ... def Derivative(self) -> float: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... @@ -464,9 +694,20 @@ class math_NewtonFunctionRoot: class math_NewtonFunctionSetRoot: @overload - def __init__(self, theFunction: math_FunctionSetWithDerivatives, theXTolerance: math_Vector, theFTolerance: float, tehNbIterations: Optional[int] = 100) -> None: ... - @overload - def __init__(self, theFunction: math_FunctionSetWithDerivatives, theFTolerance: float, theNbIterations: Optional[int] = 100) -> None: ... + def __init__( + self, + theFunction: math_FunctionSetWithDerivatives, + theXTolerance: math_Vector, + theFTolerance: float, + tehNbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def __init__( + self, + theFunction: math_FunctionSetWithDerivatives, + theFTolerance: float, + theNbIterations: Optional[int] = 100, + ) -> None: ... @overload def Derivative(self) -> math_Matrix: ... @overload @@ -480,9 +721,19 @@ class math_NewtonFunctionSetRoot: def IsSolutionReached(self, F: math_FunctionSetWithDerivatives) -> bool: ... def NbIterations(self) -> int: ... @overload - def Perform(self, theFunction: math_FunctionSetWithDerivatives, theStartingPoint: math_Vector) -> None: ... + def Perform( + self, + theFunction: math_FunctionSetWithDerivatives, + theStartingPoint: math_Vector, + ) -> None: ... @overload - def Perform(self, theFunction: math_FunctionSetWithDerivatives, theStartingPoint: math_Vector, theInfBound: math_Vector, theSupBound: math_Vector) -> None: ... + def Perform( + self, + theFunction: math_FunctionSetWithDerivatives, + theStartingPoint: math_Vector, + theInfBound: math_Vector, + theSupBound: math_Vector, + ) -> None: ... @overload def Root(self) -> math_Vector: ... @overload @@ -490,7 +741,14 @@ class math_NewtonFunctionSetRoot: def SetTolerance(self, XTol: math_Vector) -> None: ... class math_NewtonMinimum: - def __init__(self, theFunction: math_MultipleVarFunctionWithHessian, theTolerance: Optional[float] = Precision.Confusion(), theNbIterations: Optional[int] = 40, theConvexity: Optional[float] = 1.0e-6, theWithSingularity: Optional[bool] = True) -> None: ... + def __init__( + self, + theFunction: math_MultipleVarFunctionWithHessian, + theTolerance: Optional[float] = Precision.Confusion(), + theNbIterations: Optional[int] = 40, + theConvexity: Optional[float] = 1.0e-6, + theWithSingularity: Optional[bool] = True, + ) -> None: ... def Dump(self) -> str: ... def GetStatus(self) -> math_Status: ... @overload @@ -505,15 +763,40 @@ class math_NewtonMinimum: def Location(self, Loc: math_Vector) -> None: ... def Minimum(self) -> float: ... def NbIterations(self) -> int: ... - def Perform(self, theFunction: math_MultipleVarFunctionWithHessian, theStartingPoint: math_Vector) -> None: ... - def SetBoundary(self, theLeftBorder: math_Vector, theRightBorder: math_Vector) -> None: ... + def Perform( + self, + theFunction: math_MultipleVarFunctionWithHessian, + theStartingPoint: math_Vector, + ) -> None: ... + def SetBoundary( + self, theLeftBorder: math_Vector, theRightBorder: math_Vector + ) -> None: ... class math_PSO: - def __init__(self, theFunc: math_MultipleVarFunction, theLowBorder: math_Vector, theUppBorder: math_Vector, theSteps: math_Vector, theNbParticles: Optional[int] = 32, theNbIter: Optional[int] = 100) -> None: ... - @overload - def Perform(self, theSteps: math_Vector, theOutPnt: math_Vector, theNbIter: Optional[int] = 100) -> float: ... - @overload - def Perform(self, theParticles: math_PSOParticlesPool, theNbParticles: int, theOutPnt: math_Vector, theNbIter: Optional[int] = 100) -> float: ... + def __init__( + self, + theFunc: math_MultipleVarFunction, + theLowBorder: math_Vector, + theUppBorder: math_Vector, + theSteps: math_Vector, + theNbParticles: Optional[int] = 32, + theNbIter: Optional[int] = 100, + ) -> None: ... + @overload + def Perform( + self, + theSteps: math_Vector, + theOutPnt: math_Vector, + theNbIter: Optional[int] = 100, + ) -> float: ... + @overload + def Perform( + self, + theParticles: math_PSOParticlesPool, + theNbParticles: int, + theOutPnt: math_Vector, + theNbIter: Optional[int] = 100, + ) -> float: ... class math_PSOParticlesPool: def __init__(self, theParticlesCount: int, theDimensionCount: int) -> None: ... @@ -522,7 +805,13 @@ class math_PSOParticlesPool: def GetWorstParticle(self) -> False: ... class math_Powell: - def __init__(self, theFunction: math_MultipleVarFunction, theTolerance: float, theNbIterations: Optional[int] = 200, theZEPS: Optional[float] = 1.0e-12) -> None: ... + def __init__( + self, + theFunction: math_MultipleVarFunction, + theTolerance: float, + theNbIterations: Optional[int] = 200, + theZEPS: Optional[float] = 1.0e-12, + ) -> None: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... def IsSolutionReached(self, theFunction: math_MultipleVarFunction) -> bool: ... @@ -532,22 +821,44 @@ class math_Powell: def Location(self, Loc: math_Vector) -> None: ... def Minimum(self) -> float: ... def NbIterations(self) -> int: ... - def Perform(self, theFunction: math_MultipleVarFunction, theStartingPoint: math_Vector, theStartingDirections: math_Matrix) -> None: ... + def Perform( + self, + theFunction: math_MultipleVarFunction, + theStartingPoint: math_Vector, + theStartingDirections: math_Matrix, + ) -> None: ... class math_SVD: def __init__(self, A: math_Matrix) -> None: ... def Dump(self) -> str: ... def IsDone(self) -> bool: ... - def PseudoInverse(self, Inv: math_Matrix, Eps: Optional[float] = 1.0e-6) -> None: ... - def Solve(self, B: math_Vector, X: math_Vector, Eps: Optional[float] = 1.0e-6) -> None: ... + def PseudoInverse( + self, Inv: math_Matrix, Eps: Optional[float] = 1.0e-6 + ) -> None: ... + def Solve( + self, B: math_Vector, X: math_Vector, Eps: Optional[float] = 1.0e-6 + ) -> None: ... class math_TrigonometricFunctionRoots: @overload - def __init__(self, A: float, B: float, C: float, D: float, E: float, InfBound: float, SupBound: float) -> None: ... - @overload - def __init__(self, D: float, E: float, InfBound: float, SupBound: float) -> None: ... - @overload - def __init__(self, C: float, D: float, E: float, InfBound: float, SupBound: float) -> None: ... + def __init__( + self, + A: float, + B: float, + C: float, + D: float, + E: float, + InfBound: float, + SupBound: float, + ) -> None: ... + @overload + def __init__( + self, D: float, E: float, InfBound: float, SupBound: float + ) -> None: ... + @overload + def __init__( + self, C: float, D: float, E: float, InfBound: float, SupBound: float + ) -> None: ... def Dump(self) -> str: ... def InfiniteRoots(self) -> bool: ... def IsDone(self) -> bool: ... @@ -556,9 +867,27 @@ class math_TrigonometricFunctionRoots: class math_Uzawa: @overload - def __init__(self, Cont: math_Matrix, Secont: math_Vector, StartingPoint: math_Vector, EpsLix: Optional[float] = 1.0e-06, EpsLic: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 500) -> None: ... - @overload - def __init__(self, Cont: math_Matrix, Secont: math_Vector, StartingPoint: math_Vector, Nci: int, Nce: int, EpsLix: Optional[float] = 1.0e-06, EpsLic: Optional[float] = 1.0e-06, NbIterations: Optional[int] = 500) -> None: ... + def __init__( + self, + Cont: math_Matrix, + Secont: math_Vector, + StartingPoint: math_Vector, + EpsLix: Optional[float] = 1.0e-06, + EpsLic: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 500, + ) -> None: ... + @overload + def __init__( + self, + Cont: math_Matrix, + Secont: math_Vector, + StartingPoint: math_Vector, + Nci: int, + Nce: int, + EpsLix: Optional[float] = 1.0e-06, + EpsLic: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 500, + ) -> None: ... def Duale(self, V: math_Vector) -> None: ... def Dump(self) -> str: ... def Error(self) -> math_Vector: ... @@ -653,7 +982,9 @@ class math_MultipleVarFunctionWithHessian(math_MultipleVarFunctionWithGradient): @overload def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... @overload - def Values(self, X: math_Vector, G: math_Vector, H: math_Matrix) -> Tuple[bool, float]: ... + def Values( + self, X: math_Vector, G: math_Vector, H: math_Matrix + ) -> Tuple[bool, float]: ... class math_TrigonometricEquationFunction(math_FunctionWithDerivative): def __init__(self, A: float, B: float, C: float, D: float, E: float) -> None: ... @@ -664,4 +995,3 @@ class math_TrigonometricEquationFunction(math_FunctionWithDerivative): # harray1 classes # harray2 classes # hsequence classes - diff --git a/src/Tesselator/ShapeTesselator.cpp b/src/Tesselator/ShapeTesselator.cpp index 8b23f9538..754757260 100644 --- a/src/Tesselator/ShapeTesselator.cpp +++ b/src/Tesselator/ShapeTesselator.cpp @@ -15,14 +15,23 @@ //You should have received a copy of the GNU Lesser General Public License //along with pythonOCC. If not, see . -//--------------------------------------------------------------------------- #include "ShapeTesselator.h" -#include + #include #include -#include +#include +#include +#include +#include #include -//--------------------------------------------------------------------------- +#include +#include + +#ifdef _OPENMP +#include +#endif + +// OpenCASCADE includes #include #include #include @@ -33,693 +42,741 @@ #include #include #include +#include #include #include #include #include #include #include -#include +#include +#include +#include + +// ======================================================================== +// Fast float-to-string helpers +// ======================================================================== + +namespace { + //! Append a float to a string using snprintf (portable across all platforms) + inline void appendFloat(std::string& out, float f) { + char buf[32]; + int len = std::snprintf(buf, sizeof(buf), "%g", f); + out.append(buf, static_cast(len)); + } + + //! Append a float with epsilon clamping (for X3D export compatibility) + inline void appendFloatWithEpsilon(std::string& out, float f) { + constexpr float epsilon = 1e-3f; + if (std::abs(f) < epsilon) { + out.push_back('0'); + } else { + appendFloat(out, f); + } + } +} + +// ======================================================================== +// Edge structure implementation +// ======================================================================== + +Standard_Integer ShapeTesselator::Edge::size() const noexcept { + return static_cast(vertex_coords.size() / 3); +} -//--------------------------------------------------------------------------- -ShapeTesselator::ShapeTesselator(const TopoDS_Shape& aShape): - computed(false), - locVertexcoord(nullptr), - locNormalcoord(nullptr), - locTriIndices(nullptr), - myShape(aShape) -{ +// ======================================================================== +// ShapeTesselator implementation +// ======================================================================== + +ShapeTesselator::ShapeTesselator(const TopoDS_Shape& aShape) + : computed(false), use_parallel(false), myShape(aShape) { ComputeDefaultDeviation(); } -void ShapeTesselator::Compute(bool compute_edges, float mesh_quality, bool parallel) -{ +void ShapeTesselator::Compute(bool compute_edges, float mesh_quality, bool parallel) { if (!computed) { - Tesselate(compute_edges, mesh_quality, parallel); + Tessellate(compute_edges, mesh_quality, parallel); + computed = true; } +} - computed=true; +void ShapeTesselator::SetDeviation(Standard_Real aDeviation) noexcept { + myDeviation = aDeviation; } -ShapeTesselator::~ShapeTesselator() -{ +Standard_Real ShapeTesselator::GetDeviation() const noexcept { + return myDeviation; +} - delete [] locVertexcoord; - delete [] locNormalcoord; - delete [] locTriIndices; +void ShapeTesselator::ComputeDefaultDeviation() { + Bnd_Box aBox; + BRepBndLib::Add(myShape, aBox); - for (std::vector::iterator edgeit = edgelist.begin(); edgeit != edgelist.end(); ++edgeit) { - aedge* edge = *edgeit; - if (edge) { - delete[] edge->vertex_coord; - delete edge; - *edgeit = nullptr; - } + if (aBox.IsVoid()) { + myDeviation = 0; + return; } - edgelist.clear(); -} -//--------------------------------------------------------------------------- -void ShapeTesselator::SetDeviation(Standard_Real aDeviation) -{ - myDeviation = aDeviation; -} + aBox.Get(aXmin, aYmin, aZmin, aXmax, aYmax, aZmax); -Standard_Real ShapeTesselator::GetDeviation() const -{ - return myDeviation; + const auto max_dimension = std::max({aXmax - aXmin, aYmax - aYmin, aZmax - aZmin}); + myDeviation = max_dimension * 2e-2; } -//--------------------------------------------------------------------------- -void ShapeTesselator::Tesselate(bool compute_edges, float mesh_quality, bool parallel) -{ - TopExp_Explorer ExpFace; - // clean shape to remove any previous triangulation +void ShapeTesselator::Tessellate(bool compute_edges, float mesh_quality, bool parallel) { + if (myDeviation <= 0) { + throw std::invalid_argument("The deviation must be greater than 0"); + } + if (mesh_quality <= 0) { + throw std::invalid_argument("The mesh quality must be greater than 0"); + } + + use_parallel = parallel; + + // Clean and tessellate the shape BRepTools::Clean(myShape); + BRepMesh_IncrementalMesh(myShape, myDeviation * mesh_quality, false, 0.5f * mesh_quality, parallel); - if (myDeviation <= 0){ - throw std::invalid_argument("The deviation must be greater than 0"); - }; + // Collect faces for processing + std::vector faces; + for (TopExp_Explorer exp(myShape, TopAbs_FACE); exp.More(); exp.Next()) { + faces.push_back(TopoDS::Face(exp.Current())); + } + face_list.reserve(faces.size()); - if (mesh_quality <= 0){ - throw std::invalid_argument("The mesh quality must be greater than 0"); - }; + ProcessFaces(faces); + JoinPrimitives(); - //Triangulate - BRepMesh_IncrementalMesh(myShape, myDeviation*mesh_quality, false, 0.5*mesh_quality, parallel); + if (compute_edges) { + ComputeEdges(); + } +} - for (ExpFace.Init(myShape, TopAbs_FACE); ExpFace.More(); ExpFace.Next()) { - Standard_Integer validFaceTriCount = 0; - Standard_Integer invalidFaceTriCount = 0; - Standard_Integer invalidNormalCount = 0; - TopLoc_Location aLocation; +void ShapeTesselator::ProcessFaces(const std::vector& faces) { + const auto num_faces = static_cast(faces.size()); - const TopoDS_Face& myFace = TopoDS::Face(ExpFace.Current()); - Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, aLocation); +#ifdef _OPENMP + if (use_parallel && num_faces > 1) { + // Parallel processing: create face data in parallel, then collect results + std::vector local_results(num_faces); - if (myT.IsNull()) { - continue; - } + #pragma omp parallel for schedule(dynamic) + for (Standard_Integer i = 0; i < num_faces; ++i) { + TopLoc_Location location; + const auto& face = faces[i]; + auto triangulation = BRep_Tool::Triangulation(face, location); - aface *this_face = new aface; + if (triangulation.IsNull()) { + continue; + } - //write vertex buffer - this_face->vertex_coord = new Standard_Real[myT->NbNodes() * 3]; - this_face->number_of_coords = myT->NbNodes(); - for (int i = 1; i <= myT->NbNodes(); i++) { - gp_Pnt p = myT->Node(i).Transformed(aLocation).XYZ(); + Face face_data; + ProcessSingleFace(face, triangulation, location, face_data); - int idx = (i - 1) * 3; - this_face->vertex_coord[idx] = p.X(); - this_face->vertex_coord[idx + 1] = p.Y(); - this_face->vertex_coord[idx + 2] = p.Z(); - } - // compute normals and write normal buffer, using the uv nodes - if (myT->HasUVNodes()) { - BRepGProp_Face prop(myFace); - this_face->normal_coord = new Standard_Real[myT->NbNodes() * 3]; - this_face->number_of_normals = myT->NbNodes(); - - for (int i = 1; i <= myT->NbNodes(); ++i) { - const gp_Pnt2d& uv_pnt = myT->UVNode(i); - gp_Pnt p; gp_Vec n; - prop.Normal(uv_pnt.X(),uv_pnt.Y(),p,n); - if (n.SquareMagnitude() > Precision::SquareConfusion()) { - n.Normalize(); - } - else { - n.SetCoord(0., 0., 0.); - } - if (myFace.Orientation() == TopAbs_INTERNAL) { - n.Reverse(); - } - int idx = (i - 1) * 3; - this_face->normal_coord[idx] = n.X(); - this_face->normal_coord[idx + 1] = n.Y(); - this_face->normal_coord[idx + 2] = n.Z(); + if (face_data.number_of_triangles > 0) { + local_results[i] = std::move(face_data); } } - else { - invalidNormalCount++; + + // Collect non-empty results + for (auto& result : local_results) { + if (result.number_of_triangles > 0) { + face_list.push_back(std::move(result)); + } } - - //write triangle buffer - TopAbs_Orientation orient = myFace.Orientation(); - const Standard_Integer trianglesNb = myT->NbTriangles(); - this_face->tri_indexes = new int[trianglesNb * 3]; - for (Standard_Integer nt = 1; nt <= trianglesNb; nt++) { - Standard_Integer n0 , n1 , n2; - myT->Triangle(nt).Get(n0, n1, n2); - if (orient == TopAbs_REVERSED) { - Standard_Integer tmp=n1; - n1 = n2; - n2 = tmp; + } else +#endif + { + // Sequential processing + for (const auto& face : faces) { + TopLoc_Location location; + auto triangulation = BRep_Tool::Triangulation(face, location); + + if (triangulation.IsNull()) { + continue; + } + + Face face_data; + ProcessSingleFace(face, triangulation, location, face_data); + + if (face_data.number_of_triangles > 0) { + face_list.push_back(std::move(face_data)); } - this_face->tri_indexes[validFaceTriCount * 3 + 0] = n0; - this_face->tri_indexes[validFaceTriCount * 3 + 1] = n1; - this_face->tri_indexes[validFaceTriCount * 3 + 2] = n2; - validFaceTriCount++; } + } +} - this_face->number_of_triangles = validFaceTriCount; - this_face->number_of_invalid_triangles = invalidFaceTriCount; - this_face->number_of_invalid_normals = invalidNormalCount; - facelist.push_back(this_face); +void ShapeTesselator::ProcessSingleFace(const TopoDS_Face& face, + const Handle(Poly_Triangulation)& triangulation, + const TopLoc_Location& location, + Face& face_data) { + + const auto nb_nodes = triangulation->NbNodes(); + const auto nb_triangles = triangulation->NbTriangles(); + + // Process vertices - skip transform when location is identity + face_data.vertex_coords.resize(nb_nodes * 3); + + if (location.IsIdentity()) { + for (Standard_Integer i = 1; i <= nb_nodes; ++i) { + const auto& point = triangulation->Node(i); + const auto idx = (i - 1) * 3; + face_data.vertex_coords[idx] = static_cast(point.X()); + face_data.vertex_coords[idx + 1] = static_cast(point.Y()); + face_data.vertex_coords[idx + 2] = static_cast(point.Z()); + } + } else { + const auto& trsf = location.Transformation(); + for (Standard_Integer i = 1; i <= nb_nodes; ++i) { + auto point = triangulation->Node(i); + point.Transform(trsf); + const auto idx = (i - 1) * 3; + face_data.vertex_coords[idx] = static_cast(point.X()); + face_data.vertex_coords[idx + 1] = static_cast(point.Y()); + face_data.vertex_coords[idx + 2] = static_cast(point.Z()); + } } - JoinPrimitives(); - if (compute_edges) ComputeEdges(); + // Process normals - prefer pre-computed normals, fallback to UV computation + if (triangulation->HasNormals() || triangulation->HasUVNodes()) { + ProcessNormals(face, triangulation, face_data); + } else { + ++face_data.number_of_invalid_normals; + } + + // Process triangles + ProcessTriangles(face, triangulation, face_data); } +void ShapeTesselator::ProcessNormals(const TopoDS_Face& face, + const Handle(Poly_Triangulation)& triangulation, + Face& face_data) { -//---------------------------INTERFACE--------------------------------------- -void ShapeTesselator::ComputeDefaultDeviation() -{ - // This method automatically computes precision from the bounding box of the shape - Bnd_Box aBox; - BRepBndLib::Add(myShape, aBox); + const auto nb_nodes = triangulation->NbNodes(); + face_data.normal_coords.resize(nb_nodes * 3); + face_data.number_of_normals = nb_nodes; - if (aBox.IsVoid()) { // there is no shape - myDeviation = 0; + const bool reverse_orientation = (face.Orientation() == TopAbs_INTERNAL); + + // Use pre-computed normals from triangulation when available (OCC 7.6+) + // This is much faster than recomputing via BRepGProp_Face::Normal() + if (triangulation->HasNormals()) { + for (Standard_Integer i = 1; i <= nb_nodes; ++i) { + auto normal = triangulation->Normal(i); + + if (reverse_orientation) { + normal.Reverse(); + } + + const auto idx = (i - 1) * 3; + face_data.normal_coords[idx] = static_cast(normal.X()); + face_data.normal_coords[idx + 1] = static_cast(normal.Y()); + face_data.normal_coords[idx + 2] = static_cast(normal.Z()); + } return; } - //calculate the bounding box - aBox.Get(aXmin, aYmin, aZmin, aXmax, aYmax, aZmax); + // Fallback: compute normals from UV coordinates (slower path) + if (!triangulation->HasUVNodes()) { + ++face_data.number_of_invalid_normals; + return; + } - myDeviation = std::max(aXmax-aXmin, std::max(aYmax-aYmin, aZmax-aZmin)) * 2e-2; + BRepGProp_Face prop(face); + + for (Standard_Integer i = 1; i <= nb_nodes; ++i) { + const auto& uv_point = triangulation->UVNode(i); + gp_Pnt point; + gp_Vec normal; + + prop.Normal(uv_point.X(), uv_point.Y(), point, normal); + + if (normal.SquareMagnitude() > Precision::SquareConfusion()) { + normal.Normalize(); + if (reverse_orientation) { + normal.Reverse(); + } + } else { + normal.SetCoord(0., 0., 0.); + } + + const auto idx = (i - 1) * 3; + face_data.normal_coords[idx] = static_cast(normal.X()); + face_data.normal_coords[idx + 1] = static_cast(normal.Y()); + face_data.normal_coords[idx + 2] = static_cast(normal.Z()); + } } -void ShapeTesselator::ComputeEdges() -{ - TopLoc_Location aTrsf; +void ShapeTesselator::ProcessTriangles(const TopoDS_Face& face, + const Handle(Poly_Triangulation)& triangulation, + Face& face_data) { + + const auto nb_triangles = triangulation->NbTriangles(); + const auto is_reversed = (face.Orientation() == TopAbs_REVERSED); + + face_data.triangle_indices.resize(nb_triangles * 3); + face_data.number_of_triangles = nb_triangles; + + for (Standard_Integer i = 1; i <= nb_triangles; ++i) { + Standard_Integer n1, n2, n3; + triangulation->Triangle(i).Get(n1, n2, n3); + + if (is_reversed) { + std::swap(n2, n3); + } - // clear current data - std::vector::iterator it; - for (it = edgelist.begin(); it != edgelist.end(); ++it) { - if (*it) { - delete[] (*it)->vertex_coord; - delete *it; - *it = nullptr; + const auto base_idx = (i - 1) * 3; + face_data.triangle_indices[base_idx] = n1; + face_data.triangle_indices[base_idx + 1] = n2; + face_data.triangle_indices[base_idx + 2] = n3; + } +} + +void ShapeTesselator::JoinPrimitives() { + // Calculate totals in a single pass + tot_triangle_count = 0; + tot_invalid_triangle_count = 0; + tot_vertex_count = 0; + tot_normal_count = 0; + tot_invalid_normal_count = 0; + + for (const auto& face : face_list) { + tot_triangle_count += face.number_of_triangles; + tot_invalid_triangle_count += face.number_of_invalid_triangles; + tot_vertex_count += static_cast(face.vertex_coords.size() / 3); + tot_normal_count += static_cast(face.normal_coords.size() / 3); + tot_invalid_normal_count += face.number_of_invalid_normals; } - } - edgelist.clear(); - // get indexed map of edges - TopTools_IndexedMapOfShape M; - TopExp::MapShapes(myShape, TopAbs_EDGE, M); - // explore all boundary edges - TopTools_IndexedDataMapOfShapeListOfShape edgeMap; - TopExp::MapShapesAndAncestors(myShape, TopAbs_EDGE, TopAbs_FACE, edgeMap); + // Single allocation of consolidated arrays (resize, not reserve, for memcpy) + consolidated_vertices.resize(tot_vertex_count * 3); + consolidated_normals.resize(tot_normal_count * 3); + consolidated_triangle_indices.resize(tot_triangle_count * 3); + + // Consolidate using memcpy for contiguous POD data + size_t vertex_offset = 0; + size_t normal_offset = 0; + size_t tri_offset = 0; + Standard_Integer index_offset = 0; + + for (auto& face : face_list) { + // Bulk-copy vertex coordinates + const auto vert_count = face.vertex_coords.size(); + if (vert_count > 0) { + std::memcpy(consolidated_vertices.data() + vertex_offset, + face.vertex_coords.data(), + vert_count * sizeof(float)); + } - for (int iEdge = 1 ; iEdge <= edgeMap.Extent (); iEdge++) { + // Bulk-copy normal coordinates + const auto norm_count = face.normal_coords.size(); + if (norm_count > 0) { + std::memcpy(consolidated_normals.data() + normal_offset, + face.normal_coords.data(), + norm_count * sizeof(float)); + } - // skip free edges, might be the case if the shape passed to - // the tesselator is a Compound - const TopTools_ListOfShape& faceList = edgeMap.FindFromIndex(iEdge); + // Adjust triangle indices (1-based per-face → 0-based global) + const auto tri_count = face.triangle_indices.size(); + for (size_t k = 0; k < tri_count; ++k) { + consolidated_triangle_indices[tri_offset + k] = + face.triangle_indices[k] + index_offset - 1; + } - if (faceList.Extent() == 0) { - //printf("Skipped free edge during shape tesselation/edges computation.\n"); - continue; + vertex_offset += vert_count; + normal_offset += norm_count; + tri_offset += tri_count; + index_offset += static_cast(vert_count / 3); } - // take one of the shared edges and get edge triangulation - const TopoDS_Edge& anEdge = TopoDS::Edge(M(iEdge)); - gp_Trsf myTransf; - TopLoc_Location aLoc; + // Release memory from individual faces + face_list.clear(); + face_list.shrink_to_fit(); +} + +void ShapeTesselator::ComputeEdges() { + edge_list.clear(); + + TopTools_IndexedMapOfShape edge_map; + TopExp::MapShapes(myShape, TopAbs_EDGE, edge_map); - // triangulate the edge - Handle(Poly_Polygon3D) aPoly = BRep_Tool::Polygon3D(anEdge, aLoc); + TopTools_IndexedDataMapOfShapeListOfShape edge_face_map; + TopExp::MapShapesAndAncestors(myShape, TopAbs_EDGE, TopAbs_FACE, edge_face_map); + edge_list.reserve(edge_map.Extent()); - aedge* theEdge = new aedge; - Standard_Integer nbNodesInFace; + for (Standard_Integer i = 1; i <= edge_face_map.Extent(); ++i) { + const auto& face_list_for_edge = edge_face_map.FindFromIndex(i); - // edge triangulation successful - if (!aPoly.IsNull ()) { - if (!aLoc.IsIdentity()) myTransf = aLoc.Transformation(); - nbNodesInFace = aPoly->NbNodes(); - theEdge->number_of_coords = nbNodesInFace; - theEdge->vertex_coord = new Standard_Real[nbNodesInFace * 3 * sizeof(Standard_Real)]; + if (face_list_for_edge.IsEmpty()) { + continue; // Skip free edges + } + + const auto& edge = TopoDS::Edge(edge_map(i)); + Edge edge_data; - const TColgp_Array1OfPnt& Nodes = aPoly->Nodes(); - for (Standard_Integer i=0;i < nbNodesInFace;i++) { - gp_Pnt V = Nodes(i+1); - V.Transform(myTransf); - theEdge->vertex_coord[i*3 + 0] = V.X(); - theEdge->vertex_coord[i*3 + 1] = V.Y(); - theEdge->vertex_coord[i*3 + 2] = V.Z(); + if (ProcessSingleEdge(edge, edge_face_map, i, edge_data)) { + edge_list.push_back(std::move(edge_data)); } } +} - // edge triangulation failed - else { - const TopoDS_Face& aFace = TopoDS::Face(edgeMap.FindFromIndex(iEdge).First()); - // take the face's triangulation instead - Handle(Poly_Triangulation) aPolyTria = BRep_Tool::Triangulation(aFace, aLoc); - if (!aLoc.IsIdentity()) myTransf = aLoc.Transformation(); - // this holds the indices of the edge's triangulation to the actual points - Handle(Poly_PolygonOnTriangulation) aPoly2 = BRep_Tool::PolygonOnTriangulation(anEdge, aPolyTria, aLoc); - if (aPoly2.IsNull()) continue; // polygon does not exist - - // getting size and create the array - nbNodesInFace = aPoly2->NbNodes(); - theEdge->number_of_coords = nbNodesInFace; - theEdge->vertex_coord = new Standard_Real[nbNodesInFace * 3 * sizeof(Standard_Real)]; - - const TColStd_Array1OfInteger& indices = aPoly2->Nodes(); - - // go through the index array - for (Standard_Integer i=1;i <= aPoly2->NbNodes();i++) { - gp_Pnt V = aPolyTria->Node(indices(i)).Transformed(myTransf).XYZ(); - int idx = (i - 1) * 3; - theEdge->vertex_coord[idx] = V.X(); - theEdge->vertex_coord[idx + 1] = V.Y(); - theEdge->vertex_coord[idx + 2] = V.Z(); - } - } - edgelist.push_back(theEdge); - } -} - -void ShapeTesselator::EnsureMeshIsComputed() -{ - // this method ensures that the mesh is computed before returning any - // related data - if (!computed) { - printf("The mesh is not computed. Currently computing with default parameters ..."); - Compute(true, 1.0, false); - printf("done\n"); - printf("Call explicitly the Compute method to set the parameters value.\n"); - } -} - -std::string formatFloatNumber(float f) -{ - // returns string representation of the float number f. - // set epsilon to 1e-3 - float epsilon = 1e-3; - std::stringstream formatted_float; - if (std::abs(f) < epsilon) { - f = 0.; - } - formatted_float << f; - return formatted_float.str(); -} - -std::vector ShapeTesselator::GetVerticesPositionAsTuple() -{ - EnsureMeshIsComputed(); - // create the vector and allocate memory - std::vector vertices_position; - vertices_position.reserve(tot_triangle_count); - // loop over tertices - for (int i=0;i ShapeTesselator::GetNormalsAsTuple() -{ - EnsureMeshIsComputed(); - // create the vector and allocate memory - std::vector normals; - normals.reserve(tot_triangle_count); - // loop over normals - for (int i=0;i\n"; - // write points coordinates - str_ifs << "\n"; - // write normals - str_ifs << "\n"; - // close all markups - str_ifs << "\n"; - - delete [] vertices_idx; - delete [] normals_idx; - - return str_ifs.str(); -} - -void ShapeTesselator::ExportShapeToX3D(const char * filename, int diffR, int diffG, int diffB) -{ - EnsureMeshIsComputed(); - std::ofstream X3Dfile; - X3Dfile.open (filename); - // write header - X3Dfile << "" ; - X3Dfile << ""; - X3Dfile << ""; - X3Dfile << ""; - X3Dfile << ""; - X3Dfile << ""; - X3Dfile << ""; - // write tesselation - X3Dfile << ExportShapeToX3DTriangleSet(); - X3Dfile << "\n"; - X3Dfile.close(); - -} - -std::string ShapeTesselator::ExportShapeToThreejsJSONString(char *shape_function_name) -{ - EnsureMeshIsComputed(); - // a method that export a shape to a JSON BufferGeometry object - std::stringstream str_3js, str_vertices, str_normals; - int *vertices_idx = new int[3]; - int *normals_idx = new int[3]; - // loop over triangles and write vertices and normals - for (int i=0;iNodes(); + const auto nb_nodes = poly_3d->NbNodes(); + + edge_data.vertex_coords.resize(nb_nodes * 3); + + for (Standard_Integer i = 1; i <= nb_nodes; ++i) { + auto vertex = nodes(i); + vertex.Transform(transform); + + const auto idx = (i - 1) * 3; + edge_data.vertex_coords[idx] = static_cast(vertex.X()); + edge_data.vertex_coords[idx + 1] = static_cast(vertex.Y()); + edge_data.vertex_coords[idx + 2] = static_cast(vertex.Z()); } + return true; + } + + // Fallback to face triangulation + const auto& first_face = TopoDS::Face(edge_face_map.FindFromIndex(edge_index).First()); + auto face_triangulation = BRep_Tool::Triangulation(first_face, location); + + if (face_triangulation.IsNull()) { + return false; } - str_3js << "{\n"; - str_3js << "\t\"metadata\": {\n"; - str_3js << "\t\t\"version\": 4.4,\n"; - str_3js << "\t\t\"type\": \"BufferGeometry\",\n"; - str_3js << "\t\t\"generator\": \"pythonOCC\"\n"; - str_3js << "\t},\n"; - str_3js << "\t\"uuid\": \"" << shape_function_name << "\",\n"; - str_3js << "\t\"type\": \"BufferGeometry\",\n"; - str_3js << "\t\"data\": {\n"; - str_3js << "\t\"attributes\": {\n"; - str_3js << "\t\t\t\"position\": {\n"; - str_3js << "\t\t\t\t\"itemSize\": 3,\n"; - str_3js << "\t\t\t\t\"type\": \"Float32Array\",\n"; - str_3js << "\t\t\t\t\"array\": ["; - // write vertices - str_3js << str_vertices.str(); - str_3js << "]\n"; - str_3js << "\t\t\t},\n"; - str_3js << "\t\t\t\"normal\": {\n"; - str_3js << "\t\t\t\t\"itemSize\": 3,\n"; - str_3js << "\t\t\t\t\"type\": \"Float32Array\",\n"; - str_3js << "\t\t\t\t\"array\": ["; - // write normals - str_3js << str_normals.str(); - str_3js << "]\n"; - str_3js << "\t\t\t}\n"; - // close all brackets - str_3js << "\t\t}\n"; - str_3js << "\t}\n"; - str_3js << "}\n"; - - delete [] vertices_idx; - delete [] normals_idx; - - return str_3js.str(); -} - -//--------------------------------------------------------------------------- -Standard_Real* ShapeTesselator::VerticesList() -{ - EnsureMeshIsComputed(); - return locVertexcoord; -} -//--------------------------------------------------------------------------- -Standard_Real* ShapeTesselator::NormalsList() -{ - EnsureMeshIsComputed(); - return locNormalcoord; -} -//--------------------------------------------------------------------------- -Standard_Integer ShapeTesselator::ObjGetInvalidTriangleCount() -{ - EnsureMeshIsComputed(); - return tot_invalid_triangle_count; -} -//--------------------------------------------------------------------------- -Standard_Integer ShapeTesselator::ObjGetTriangleCount() -{ - EnsureMeshIsComputed(); - return tot_triangle_count; -} -//--------------------------------------------------------------------------- -Standard_Integer ShapeTesselator::ObjGetVertexCount() -{ - EnsureMeshIsComputed(); - return tot_vertex_count; -} -//--------------------------------------------------------------------------- -Standard_Integer ShapeTesselator::ObjGetNormalCount() -{ - EnsureMeshIsComputed(); - return tot_normal_count; -} -//--------------------------------------------------------------------------- -Standard_Integer ShapeTesselator::ObjGetInvalidNormalCount() -{ - EnsureMeshIsComputed(); - return tot_invalid_normal_count; -} -//--------------------------------------------------------------------------- -Standard_Integer ShapeTesselator::ObjGetEdgeCount() -{ - EnsureMeshIsComputed(); - return edgelist.size(); -} -//--------------------------------------------------------------------------- -Standard_Integer ShapeTesselator::ObjEdgeGetVertexCount(int iEdge) -{ - EnsureMeshIsComputed(); - aedge* edge = edgelist.at(iEdge); - if (!edge) { - return 0; - } - return edge->number_of_coords; -} -//--------------------------------------------------------------------------- -void ShapeTesselator::GetVertex(int ivert, float& x, float& y, float& z) -{ - EnsureMeshIsComputed(); - x = locVertexcoord[ivert*3 + 0]; - y = locVertexcoord[ivert*3 + 1]; - z = locVertexcoord[ivert*3 + 2]; -} -//--------------------------------------------------------------------------- -void ShapeTesselator::GetNormal(int ivert, float& x, float& y, float& z) -{ - EnsureMeshIsComputed(); - x = locNormalcoord[ivert*3 + 0]; - y = locNormalcoord[ivert*3 + 1]; - z = locNormalcoord[ivert*3 + 2]; -} -//--------------------------------------------------------------------------- -void ShapeTesselator::GetTriangleIndex(int triangleIdx, int &v1, int &v2, int &v3) -{ - EnsureMeshIsComputed(); - v1 = locTriIndices[3*triangleIdx + 0]; - v2 = locTriIndices[3*triangleIdx + 1]; - v3 = locTriIndices[3*triangleIdx + 2]; -} -//--------------------------------------------------------------------------- -void ShapeTesselator::GetEdgeVertex(int iEdge, int ivert, float &x, float &y, float &z) -{ - EnsureMeshIsComputed(); - aedge* e = edgelist.at(iEdge); - if (!e) { - return; - } - - x = e->vertex_coord[3*ivert + 0]; - y = e->vertex_coord[3*ivert + 1]; - z = e->vertex_coord[3*ivert + 2]; -} -//--------------------------------------------------------------------------- -void ShapeTesselator::ObjGetTriangle(int trianglenum, int *vertices, int *normals) -{ - EnsureMeshIsComputed(); - int pID = locTriIndices[(trianglenum * 3) + 0] * 3; - int qID = locTriIndices[(trianglenum * 3) + 1] * 3; - int rID = locTriIndices[(trianglenum * 3) + 2] * 3; - - vertices[0] = pID; - vertices[1] = qID; - vertices[2] = rID; - - normals[0] = pID; - normals[1] = qID; - normals[2] = rID; -} -//--------------------------------------------------------------------------- -//---------------------------------HELPERS----------------------------------- -//--------------------------------------------------------------------------- -void ShapeTesselator::JoinPrimitives() -{ - int obP = 0; - int obN = 0; - int obTR = 0; - - int advance = 0; - - tot_triangle_count = 0; - tot_invalid_triangle_count = 0; - tot_vertex_count = 0; - tot_normal_count = 0; - tot_invalid_normal_count = 0; - - std::vector::iterator anIterator = facelist.begin(); - - while (anIterator != facelist.end()) { - - aface* myface = *anIterator; - - tot_triangle_count = tot_triangle_count + myface->number_of_triangles; - tot_invalid_triangle_count = tot_invalid_triangle_count + myface->number_of_invalid_triangles; - tot_vertex_count = tot_vertex_count + myface->number_of_coords; - tot_normal_count = tot_normal_count + myface->number_of_normals; - tot_invalid_normal_count = tot_invalid_normal_count + myface->number_of_invalid_normals; - - ++anIterator; - } - - locTriIndices= new Standard_Integer[tot_triangle_count * 3 ]; - locVertexcoord = new Standard_Real[tot_vertex_count * 3 ]; - locNormalcoord = new Standard_Real[tot_normal_count * 3 ]; - - anIterator = facelist.begin(); - while (anIterator != facelist.end()) { - aface* myface = *anIterator; - for (int x = 0; x < myface->number_of_coords; x++) { - locVertexcoord[(obP * 3) + 0] = myface->vertex_coord[(x * 3) + 0]; - locVertexcoord[(obP * 3) + 1] = myface->vertex_coord[(x * 3) + 1]; - locVertexcoord[(obP * 3) + 2] = myface->vertex_coord[(x * 3) + 2]; - obP++; - } - - for (int x = 0; x < myface->number_of_normals; x++) { - locNormalcoord[(obN * 3) + 0] = myface->normal_coord[(x * 3) + 0]; - locNormalcoord[(obN * 3) + 1] = myface->normal_coord[(x * 3) + 1]; - locNormalcoord[(obN * 3) + 2] = myface->normal_coord[(x * 3) + 2]; - obN++; - } - - for (int x = 0; x < myface->number_of_triangles; x++) { - locTriIndices[(obTR * 3) + 0] = myface->tri_indexes[(x * 3) + 0] + advance - 1; - locTriIndices[(obTR * 3) + 1] = myface->tri_indexes[(x * 3) + 1] + advance - 1; - locTriIndices[(obTR * 3) + 2] = myface->tri_indexes[(x * 3) + 2] + advance - 1; - obTR++; - } - - advance = obP; - - delete [] myface->vertex_coord; - myface->vertex_coord = nullptr; - - delete [] myface->normal_coord; - myface->normal_coord = nullptr; - - delete [] myface->tri_indexes; - myface->tri_indexes = nullptr; - delete myface; + auto poly_on_tri = BRep_Tool::PolygonOnTriangulation(edge, face_triangulation, location); + if (poly_on_tri.IsNull()) { + return false; + } + + if (!location.IsIdentity()) { + transform = location.Transformation(); + } + + const auto& indices = poly_on_tri->Nodes(); + const auto nb_nodes = poly_on_tri->NbNodes(); + + edge_data.vertex_coords.resize(nb_nodes * 3); + + for (Standard_Integer i = 1; i <= nb_nodes; ++i) { + auto vertex = face_triangulation->Node(indices(i)); + vertex.Transform(transform); + + const auto idx = (i - 1) * 3; + edge_data.vertex_coords[idx] = static_cast(vertex.X()); + edge_data.vertex_coords[idx + 1] = static_cast(vertex.Y()); + edge_data.vertex_coords[idx + 2] = static_cast(vertex.Z()); + } + + return true; +} + +// ======================================================================== +// Public interface implementation +// ======================================================================== + +void ShapeTesselator::EnsureMeshIsComputed() { + if (!computed) { + std::cout << "The mesh is not computed. Currently computing with default parameters..." << std::endl; + Compute(true, 1.0f, false); + std::cout << "done" << std::endl; + std::cout << "Call explicitly the Compute method to set the parameters value." << std::endl; + } +} + +Standard_Integer ShapeTesselator::ObjGetTriangleCount() const noexcept { + return tot_triangle_count; +} + +Standard_Integer ShapeTesselator::ObjGetVertexCount() const noexcept { + return tot_vertex_count; +} + +Standard_Integer ShapeTesselator::ObjGetNormalCount() const noexcept { + return tot_normal_count; +} + +Standard_Integer ShapeTesselator::ObjGetInvalidTriangleCount() const noexcept { + return tot_invalid_triangle_count; +} + +Standard_Integer ShapeTesselator::ObjGetInvalidNormalCount() const noexcept { + return tot_invalid_normal_count; +} + +Standard_Integer ShapeTesselator::ObjGetEdgeCount() const noexcept { + return static_cast(edge_list.size()); +} + +Standard_Integer ShapeTesselator::ObjEdgeGetVertexCount(Standard_Integer iEdge) const { + if (iEdge < 0 || iEdge >= static_cast(edge_list.size())) { + return 0; + } + return edge_list[iEdge].size(); +} + +const float* ShapeTesselator::VerticesList() const { + return computed ? consolidated_vertices.data() : nullptr; +} + +const float* ShapeTesselator::NormalsList() const { + return computed ? consolidated_normals.data() : nullptr; +} + +std::vector ShapeTesselator::GetVerticesPositionAsTuple() const { + if (!computed) return {}; + + const auto total_floats = tot_triangle_count * 9; // 3 vertices * 3 coords + std::vector result(total_floats); + + float* out = result.data(); + for (Standard_Integer i = 0; i < tot_triangle_count; ++i) { + const auto base_idx = i * 3; + for (int j = 0; j < 3; ++j) { + const auto vertex_idx = consolidated_triangle_indices[base_idx + j] * 3; + std::memcpy(out, &consolidated_vertices[vertex_idx], 3 * sizeof(float)); + out += 3; + } + } + + return result; +} + +std::vector ShapeTesselator::GetNormalsAsTuple() const { + if (!computed) return {}; + + const auto total_floats = tot_triangle_count * 9; + std::vector result(total_floats); + + float* out = result.data(); + for (Standard_Integer i = 0; i < tot_triangle_count; ++i) { + const auto base_idx = i * 3; + for (int j = 0; j < 3; ++j) { + const auto normal_idx = consolidated_triangle_indices[base_idx + j] * 3; + std::memcpy(out, &consolidated_normals[normal_idx], 3 * sizeof(float)); + out += 3; + } + } + + return result; +} + +void ShapeTesselator::GetVertex(Standard_Integer index, float& x, float& y, float& z) const { + if (!computed || index < 0 || index >= tot_vertex_count) { + throw std::out_of_range("Vertex index out of range"); + } + + const auto base_idx = index * 3; + x = consolidated_vertices[base_idx]; + y = consolidated_vertices[base_idx + 1]; + z = consolidated_vertices[base_idx + 2]; +} + +void ShapeTesselator::GetNormal(Standard_Integer index, float& x, float& y, float& z) const { + if (!computed || index < 0 || index >= tot_normal_count) { + throw std::out_of_range("Normal index out of range"); + } + + const auto base_idx = index * 3; + x = consolidated_normals[base_idx]; + y = consolidated_normals[base_idx + 1]; + z = consolidated_normals[base_idx + 2]; +} + +void ShapeTesselator::GetTriangleIndex(Standard_Integer triangle_idx, + Standard_Integer& v1, Standard_Integer& v2, Standard_Integer& v3) const { + if (!computed || triangle_idx < 0 || triangle_idx >= tot_triangle_count) { + throw std::out_of_range("Triangle index out of range"); + } + + const auto base_idx = triangle_idx * 3; + v1 = consolidated_triangle_indices[base_idx]; + v2 = consolidated_triangle_indices[base_idx + 1]; + v3 = consolidated_triangle_indices[base_idx + 2]; +} + +void ShapeTesselator::GetEdgeVertex(Standard_Integer iEdge, Standard_Integer ivert, + float& x, float& y, float& z) const { + if (!computed || iEdge < 0 || iEdge >= static_cast(edge_list.size())) { + throw std::out_of_range("Edge index out of range"); + } + + const auto& edge = edge_list[iEdge]; + if (ivert < 0 || ivert >= edge.size()) { + throw std::out_of_range("Edge vertex index out of range"); + } + + const auto base_idx = ivert * 3; + x = edge.vertex_coords[base_idx]; + y = edge.vertex_coords[base_idx + 1]; + z = edge.vertex_coords[base_idx + 2]; +} + +void ShapeTesselator::ObjGetTriangle(Standard_Integer trianglenum, Standard_Integer* vertices, Standard_Integer* normals) const { + if (!computed || trianglenum < 0 || trianglenum >= tot_triangle_count) { + return; + } + + const auto base_idx = trianglenum * 3; + const auto pID = consolidated_triangle_indices[base_idx] * 3; + const auto qID = consolidated_triangle_indices[base_idx + 1] * 3; + const auto rID = consolidated_triangle_indices[base_idx + 2] * 3; + + vertices[0] = pID; + vertices[1] = qID; + vertices[2] = rID; + + normals[0] = pID; + normals[1] = qID; + normals[2] = rID; +} + +// ======================================================================== +// Export functionality +// ======================================================================== + +std::string ShapeTesselator::ExportShapeToThreejsJSONString(const char* shape_function_name) const { + if (!computed) return "{}"; + + // Pre-allocate: ~15 chars per float, 9 floats per triangle, x2 for verts+normals + const size_t estimated_size = 512 + static_cast(tot_triangle_count) * 9 * 15 * 2; + + std::string json; + json.reserve(estimated_size); + + json.append("{\n\t\"metadata\": {\n\t\t\"version\": 4.4,\n\t\t\"type\": \"BufferGeometry\",\n" + "\t\t\"generator\": \"pythonOCC-optimized\"\n\t},\n\t\"uuid\": \""); + json.append(shape_function_name); + json.append("\",\n\t\"type\": \"BufferGeometry\",\n\t\"data\": {\n\t\t\"attributes\": {\n" + "\t\t\t\"position\": {\n\t\t\t\t\"itemSize\": 3,\n\t\t\t\t\"type\": \"Float32Array\",\n" + "\t\t\t\t\"array\": ["); + + // Export vertices using fast to_chars + for (Standard_Integer i = 0; i < tot_triangle_count; ++i) { + const auto base_idx = i * 3; + for (int j = 0; j < 3; ++j) { + if (i > 0 || j > 0) json.push_back(','); + + const auto vertex_idx = consolidated_triangle_indices[base_idx + j] * 3; + appendFloat(json, consolidated_vertices[vertex_idx]); + json.push_back(','); + appendFloat(json, consolidated_vertices[vertex_idx + 1]); + json.push_back(','); + appendFloat(json, consolidated_vertices[vertex_idx + 2]); + } + } + + json.append("]\n\t\t\t},\n\t\t\t\"normal\": {\n\t\t\t\t\"itemSize\": 3,\n" + "\t\t\t\t\"type\": \"Float32Array\",\n\t\t\t\t\"array\": ["); + + // Export normals using fast to_chars + for (Standard_Integer i = 0; i < tot_triangle_count; ++i) { + const auto base_idx = i * 3; + for (int j = 0; j < 3; ++j) { + if (i > 0 || j > 0) json.push_back(','); + + const auto normal_idx = consolidated_triangle_indices[base_idx + j] * 3; + appendFloat(json, consolidated_normals[normal_idx]); + json.push_back(','); + appendFloat(json, consolidated_normals[normal_idx + 1]); + json.push_back(','); + appendFloat(json, consolidated_normals[normal_idx + 2]); + } + } + + json.append("]\n\t\t\t}\n\t\t}\n\t}\n}"); + + return json; +} + +std::string ShapeTesselator::ExportShapeToX3DTriangleSet() const { + if (!computed) return ""; + + // Pre-allocate: ~12 chars per float, 9 floats per triangle, x2 for verts+normals + const size_t estimated_floats = static_cast(tot_triangle_count) * 9; + const size_t estimated_per_string = estimated_floats * 12; + + std::string str_vertices, str_normals; + str_vertices.reserve(estimated_per_string); + str_normals.reserve(estimated_per_string); + + for (Standard_Integer i = 0; i < tot_triangle_count; ++i) { + const auto base_idx = i * 3; + + for (int j = 0; j < 3; ++j) { + const auto vertex_idx = consolidated_triangle_indices[base_idx + j] * 3; + + appendFloatWithEpsilon(str_vertices, consolidated_vertices[vertex_idx]); + str_vertices.push_back(' '); + appendFloatWithEpsilon(str_vertices, consolidated_vertices[vertex_idx + 1]); + str_vertices.push_back(' '); + appendFloatWithEpsilon(str_vertices, consolidated_vertices[vertex_idx + 2]); + str_vertices.push_back(' '); + + appendFloatWithEpsilon(str_normals, consolidated_normals[vertex_idx]); + str_normals.push_back(' '); + appendFloatWithEpsilon(str_normals, consolidated_normals[vertex_idx + 1]); + str_normals.push_back(' '); + appendFloatWithEpsilon(str_normals, consolidated_normals[vertex_idx + 2]); + str_normals.push_back(' '); + } + } + + std::string result; + result.reserve(str_vertices.size() + str_normals.size() + 128); + result.append("\n\n\n\n"); + + return result; +} + +void ShapeTesselator::ExportShapeToX3D(const char* filename, int diffR, int diffG, int diffB) { + EnsureMeshIsComputed(); + + std::ofstream x3d_file(filename); + if (!x3d_file.is_open()) { + throw std::runtime_error("Cannot open file for writing"); + } - ++anIterator; - } + // Write X3D header + x3d_file << ""; + x3d_file << ""; + x3d_file << ""; + x3d_file << ""; + x3d_file << ""; + x3d_file << ""; + x3d_file << "(diffR) / 255.0f; + const auto g = static_cast(diffG) / 255.0f; + const auto b = static_cast(diffB) / 255.0f; + + x3d_file << "diffuseColor='" << r << " " << g << " " << b << "' "; + x3d_file << "specularColor='0.2 0.2 0.2'>"; + + // Write tessellation + x3d_file << ExportShapeToX3DTriangleSet(); + x3d_file << "\n"; } diff --git a/src/Tesselator/ShapeTesselator.h b/src/Tesselator/ShapeTesselator.h index 721194e64..174204308 100644 --- a/src/Tesselator/ShapeTesselator.h +++ b/src/Tesselator/ShapeTesselator.h @@ -15,82 +15,227 @@ //You should have received a copy of the GNU Lesser General Public License //along with pythonOCC. If not, see . -//--------------------------------------------------------------------------- #ifndef TesselatorH #define TesselatorH -//--------------------------------------------------------------------------- + +#pragma once + #include #include -//--------------------------------------------------------------------------- -#include + +// OpenCASCADE includes +#include +#include #include -#include -//--------------------------------------------------------------------------- -struct aface { - Standard_Real *vertex_coord; - Standard_Real *normal_coord; - Standard_Integer *tri_indexes; - Standard_Integer number_of_coords; - Standard_Integer number_of_normals; - Standard_Integer number_of_invalid_normals; - Standard_Integer number_of_triangles; - Standard_Integer number_of_invalid_triangles; -}; +#include +#include +#include +#include +#include -struct aedge { - Standard_Real *vertex_coord; - Standard_Integer number_of_coords; -}; +class ShapeTesselator { +public: + struct Face { + std::vector vertex_coords; //!< Vertex coordinates (x,y,z)*n + std::vector normal_coords; //!< Normal vectors (nx,ny,nz)*n + std::vector triangle_indices; //!< Triangle vertex indices + Standard_Integer number_of_triangles = 0; //!< Number of valid triangles + Standard_Integer number_of_invalid_triangles = 0; //!< Number of invalid triangles + Standard_Integer number_of_invalid_normals = 0; //!< Number of invalid normals + Standard_Integer number_of_normals = 0; //!< Number of normal vectors + }; + + struct Edge { + std::vector vertex_coords; //!< Edge vertex coordinates + + //! Get number of vertices in this edge + //! @return Number of vertices + [[nodiscard]] Standard_Integer size() const noexcept; + }; + +private: + // Internal state + bool computed; //!< Whether tessellation has been computed + bool use_parallel; //!< Whether to use parallel processing + TopoDS_Shape myShape; //!< The shape to tessellate + Standard_Real myDeviation; //!< Tessellation deviation parameter + + // Face and edge collections stored by value (no heap indirection) + std::vector face_list; //!< Collection of tessellated faces + std::vector edge_list; //!< Collection of tessellated edges + + // Consolidated mesh data for efficient access + std::vector consolidated_vertices; //!< All vertex coordinates + std::vector consolidated_normals; //!< All normal vectors + std::vector consolidated_triangle_indices; //!< All triangle indices + + // Statistics counters + Standard_Integer tot_triangle_count = 0; //!< Total number of triangles + Standard_Integer tot_invalid_triangle_count = 0; //!< Total invalid triangles + Standard_Integer tot_vertex_count = 0; //!< Total number of vertices + Standard_Integer tot_normal_count = 0; //!< Total number of normals + Standard_Integer tot_invalid_normal_count = 0; //!< Total invalid normals + + // Shape bounding box + Standard_Real aXmin=0., aYmin=0., aZmin=0., aXmax=0., aYmax=0., aZmax=0.; + +public: + //! Constructor + //! @param aShape The OpenCASCADE shape to tessellate + explicit ShapeTesselator(const TopoDS_Shape& aShape); + + //! Destructor - automatic cleanup thanks to RAII + ~ShapeTesselator() = default; + + //! Disable copy operations to prevent expensive copies + ShapeTesselator(const ShapeTesselator&) = delete; + ShapeTesselator& operator=(const ShapeTesselator&) = delete; + + //! Enable move operations for efficient transfers + ShapeTesselator(ShapeTesselator&&) = default; + ShapeTesselator& operator=(ShapeTesselator&&) = default; + + //! Compute the tessellation + //! @param compute_edges Whether to compute edge tessellation + //! @param mesh_quality Mesh quality factor (higher = finer mesh) + //! @param parallel Whether to use parallel computation + void Compute(bool compute_edges = true, float mesh_quality = 1.0f, bool parallel = false); + + //! Set the deviation parameter for tessellation + //! @param aDeviation The deviation value (must be > 0) + void SetDeviation(Standard_Real aDeviation) noexcept; + + //! Get the current deviation parameter + //! @return The deviation value + [[nodiscard]] Standard_Real GetDeviation() const noexcept; + + //! Ensure that mesh computation has been performed + void EnsureMeshIsComputed(); + + // Mesh statistics getters + [[nodiscard]] Standard_Integer ObjGetTriangleCount() const noexcept; + [[nodiscard]] Standard_Integer ObjGetVertexCount() const noexcept; + [[nodiscard]] Standard_Integer ObjGetNormalCount() const noexcept; + [[nodiscard]] Standard_Integer ObjGetInvalidTriangleCount() const noexcept; + [[nodiscard]] Standard_Integer ObjGetInvalidNormalCount() const noexcept; + [[nodiscard]] Standard_Integer ObjGetEdgeCount() const noexcept; + + //! Get number of vertices in a specific edge + //! @param iEdge Edge index + //! @return Number of vertices in the edge + [[nodiscard]] Standard_Integer ObjEdgeGetVertexCount(Standard_Integer iEdge) const; + + // Direct data access + [[nodiscard]] const float* VerticesList() const; + [[nodiscard]] const float* NormalsList() const; + + //! Get vertices as a flat array suitable for rendering + //! @return Vector of vertex positions for all triangles + [[nodiscard]] std::vector GetVerticesPositionAsTuple() const; + + //! Get normals as a flat array suitable for rendering + //! @return Vector of normal vectors for all triangles + [[nodiscard]] std::vector GetNormalsAsTuple() const; -class ShapeTesselator -{ - protected: - Standard_Boolean computed; - Standard_Real *locVertexcoord; - Standard_Real *locNormalcoord; - Standard_Integer *locTriIndices; - Standard_Integer tot_vertex_count=0; - Standard_Integer tot_normal_count=0; - Standard_Integer tot_invalid_normal_count=0; - Standard_Integer tot_triangle_count=0; - Standard_Integer tot_invalid_triangle_count=0; - std::vector facelist; - std::vector edgelist; - Standard_Real myDeviation=0.; - TopoDS_Shape myShape; - Standard_Real aXmin=0., aYmin=0., aZmin=0., aXmax=0., aYmax=0., aZmax=0.; - Standard_Real aBndBoxSz=0.; - - void ComputeDefaultDeviation(); - void ComputeEdges(); - void EnsureMeshIsComputed(); - - public: - explicit ShapeTesselator(const TopoDS_Shape& aShape); - ~ShapeTesselator(); - void Compute(bool compute_edges=false, float mesh_quality=1.0, bool parallel=false); - void Tesselate(bool compute_edges, float mesh_quality, bool parallel); - void JoinPrimitives(); - void SetDeviation(Standard_Real aDeviation); - void GetVertex(int ivert, float& x, float& y, float& z); - void GetNormal(int inorm, float& x, float& y, float& z); - void GetTriangleIndex(int triangleIdx, int& v1, int& v2, int& v3); - void GetEdgeVertex(int iEdge, int ivert, float& x, float& y, float& z); - Standard_Real GetDeviation() const; - Standard_Real* VerticesList(); - Standard_Real* NormalsList(); - std::string ExportShapeToThreejsJSONString(char *shape_function_name); - std::string ExportShapeToX3DTriangleSet(); - void ExportShapeToX3D(const char *filename, int diffR=1, int diffG=0, int diffB=0); - Standard_Integer ObjGetTriangleCount(); - Standard_Integer ObjGetInvalidTriangleCount(); - Standard_Integer ObjGetVertexCount(); - Standard_Integer ObjGetNormalCount(); - Standard_Integer ObjGetInvalidNormalCount(); - Standard_Integer ObjGetEdgeCount(); - Standard_Integer ObjEdgeGetVertexCount(int iEdge); - void ObjGetTriangle(int trianglenum, int *vertices, int *normals); - std::vector GetVerticesPositionAsTuple(); - std::vector GetNormalsAsTuple(); + //! Get vertex coordinates by index + //! @param index Vertex index + //! @param x,y,z Output coordinates + void GetVertex(Standard_Integer index, float& x, float& y, float& z) const; + + //! Get normal vector by index + //! @param index Normal index + //! @param x,y,z Output normal components + void GetNormal(Standard_Integer index, float& x, float& y, float& z) const; + + //! Get triangle vertex indices + //! @param triangle_idx Triangle index + //! @param v1,v2,v3 Output vertex indices + void GetTriangleIndex(Standard_Integer triangle_idx, + Standard_Integer& v1, Standard_Integer& v2, Standard_Integer& v3) const; + + //! Get edge vertex coordinates + //! @param iEdge Edge index + //! @param ivert Vertex index within edge + //! @param x,y,z Output coordinates + void GetEdgeVertex(Standard_Integer iEdge, Standard_Integer ivert, + float& x, float& y, float& z) const; + + //! Export shape as Three.js JSON BufferGeometry + //! @param shape_function_name Name/UUID for the geometry + //! @return JSON string representation + [[nodiscard]] std::string ExportShapeToThreejsJSONString(const char* shape_function_name) const; + + //! Export shape as X3D TriangleSet + //! @return X3D string representation + [[nodiscard]] std::string ExportShapeToX3DTriangleSet() const; + + //! Export complete X3D file + //! @param filename Output filename + //! @param diffR,diffG,diffB Diffuse color components (0-255) + void ExportShapeToX3D(const char* filename, int diffR = 165, int diffG = 165, int diffB = 178); + +private: + //! Compute default deviation based on shape bounding box + void ComputeDefaultDeviation(); + + //! Perform the actual tessellation + //! @param compute_edges Whether to compute edges + //! @param mesh_quality Quality factor + //! @param parallel Use parallel computation + void Tessellate(bool compute_edges, float mesh_quality, bool parallel); + + //! Process all faces in the shape + //! @param faces Vector of faces to process + void ProcessFaces(const std::vector& faces); + + //! Process a single face + //! @param face The face to process + //! @param triangulation Face triangulation data + //! @param location Transformation location + //! @param face_data Output face data + void ProcessSingleFace(const TopoDS_Face& face, + const Handle(Poly_Triangulation)& triangulation, + const TopLoc_Location& location, + Face& face_data); + + //! Process normals for a face + //! @param face The face + //! @param triangulation Triangulation data + //! @param face_data Face data to update + void ProcessNormals(const TopoDS_Face& face, + const Handle(Poly_Triangulation)& triangulation, + Face& face_data); + + //! Process triangles for a face + //! @param face The face + //! @param triangulation Triangulation data + //! @param face_data Face data to update + void ProcessTriangles(const TopoDS_Face& face, + const Handle(Poly_Triangulation)& triangulation, + Face& face_data); + + //! Join all face primitives into consolidated arrays + void JoinPrimitives(); + + //! Compute edge tessellation + void ComputeEdges(); + + //! Process a single edge + //! @param edge The edge to process + //! @param edge_face_map Map of edges to faces + //! @param edge_index Index of the edge + //! @param edge_data Output edge data + //! @return True if successful + bool ProcessSingleEdge(const TopoDS_Edge& edge, + const TopTools_IndexedDataMapOfShapeListOfShape& edge_face_map, + Standard_Integer edge_index, + Edge& edge_data); + + //! Get triangle data for OBJ export format + //! @param trianglenum Triangle index + //! @param vertices Output vertex indices + //! @param normals Output normal indices + void ObjGetTriangle(Standard_Integer trianglenum, Standard_Integer* vertices, Standard_Integer* normals) const; }; + #endif diff --git a/src/Tesselator/Tesselator.i b/src/Tesselator/Tesselator.i index 2bcaa7cb7..b1d827fff 100644 --- a/src/Tesselator/Tesselator.i +++ b/src/Tesselator/Tesselator.i @@ -1,74 +1,74 @@ -/* -##Copyright 2008-2016 Thomas Paviot (tpaviot@gmail.com) -## -##This file is part of pythonOCC. -## -##pythonOCC 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 3 of the License, or -##(at your option) any later version. -## -##pythonOCC is distributed in the hope that it will be useful, -##but WITHOUT ANY WARRANTY; without even the implied warranty of -##MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -##GNU General Public License for more details. -## -##You should have received a copy of the GNU Lesser General Public License -##along with pythonOCC. If not, see . -*/ -%module Tesselator; - -%{ -#include -#include -%} - -%include ../SWIG_files/common/ExceptionCatcher.i -%include ../SWIG_files/common/OccHandle.i -%include "python/std_string.i" -%include "std_vector.i" -%include "typemaps.i" - -%template(vector_float) std::vector; - -%typemap(out) float [ANY] { - int i; - $result = PyList_New($1_dim0); - for (i = 0; i < $1_dim0; i++) { - PyObject *o = PyFloat_FromFloat((float) $1[i]); - PyList_SetItem($result,i,o); - } -} - -%apply int& OUTPUT {int& v1, int& v2, int& v3} -%apply float& OUTPUT {float& x, float& y, float& z} - -class ShapeTesselator { - public: - %feature("autodoc", "1"); - ShapeTesselator(TopoDS_Shape aShape); - %feature("autodoc", "1"); - ~ShapeTesselator(); - %feature("kwargs") Compute; - void Compute(bool compute_edges=false, float mesh_quality=1.0, bool parallel=false); - void GetVertex(int ivert, float& x, float& y, float& z); - void GetNormal(int inorm, float& x, float& y, float& z); - void GetTriangleIndex(int triangleIdx, int& v1, int& v2, int& v3); - void GetEdgeVertex(int iEdge, int ivert, float& x, float& y, float& z); - void SetDeviation(double aDeviation); - double GetDeviation(); - double* VerticesList(); - double* NormalsList(); - int ObjGetTriangleCount(); - int ObjGetInvalidTriangleCount(); - int ObjGetVertexCount(); - int ObjGetNormalCount(); - int ObjGetEdgeCount(); - int ObjEdgeGetVertexCount(int iEdge); - std::string ExportShapeToX3DTriangleSet(); - std::string ExportShapeToThreejsJSONString(char *shape_function_name); - %feature("kwargs") ExportShapeToX3D; - void ExportShapeToX3D(char *filename, int diffR=1, int diffG=0, int diffB=0); - std::vector GetVerticesPositionAsTuple(); - std::vector GetNormalsAsTuple(); -}; +/* +##Copyright 2008-2016 Thomas Paviot (tpaviot@gmail.com) +## +##This file is part of pythonOCC. +## +##pythonOCC 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 3 of the License, or +##(at your option) any later version. +## +##pythonOCC is distributed in the hope that it will be useful, +##but WITHOUT ANY WARRANTY; without even the implied warranty of +##MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +##GNU General Public License for more details. +## +##You should have received a copy of the GNU Lesser General Public License +##along with pythonOCC. If not, see . +*/ +%module Tesselator; + +%{ +#include +#include +%} + +%include ../SWIG_files/common/ExceptionCatcher.i +%include ../SWIG_files/common/OccHandle.i +%include "python/std_string.i" +%include "std_vector.i" +%include "typemaps.i" + +%template(vector_float) std::vector; + +%typemap(out) float [ANY] { + int i; + $result = PyList_New($1_dim0); + for (i = 0; i < $1_dim0; i++) { + PyObject *o = PyFloat_FromFloat((float) $1[i]); + PyList_SetItem($result,i,o); + } +} + +%apply int& OUTPUT {int& v1, int& v2, int& v3} +%apply float& OUTPUT {float& x, float& y, float& z} + +class ShapeTesselator { + public: + %feature("autodoc", "1"); + ShapeTesselator(TopoDS_Shape aShape); + %feature("autodoc", "1"); + ~ShapeTesselator(); + %feature("kwargs") Compute; + void Compute(bool compute_edges=false, float mesh_quality=1.0, bool parallel=false); + void GetVertex(int ivert, float& x, float& y, float& z); + void GetNormal(int inorm, float& x, float& y, float& z); + void GetTriangleIndex(int triangleIdx, int& v1, int& v2, int& v3); + void GetEdgeVertex(int iEdge, int ivert, float& x, float& y, float& z); + void SetDeviation(double aDeviation); + double GetDeviation(); + const float* VerticesList(); + const float* NormalsList(); + int ObjGetTriangleCount(); + int ObjGetInvalidTriangleCount(); + int ObjGetVertexCount(); + int ObjGetNormalCount(); + int ObjGetEdgeCount(); + int ObjEdgeGetVertexCount(int iEdge); + std::string ExportShapeToX3DTriangleSet(); + std::string ExportShapeToThreejsJSONString(char *shape_function_name); + %feature("kwargs") ExportShapeToX3D; + void ExportShapeToX3D(char *filename, int diffR=1, int diffG=0, int diffB=0); + std::vector GetVerticesPositionAsTuple(); + std::vector GetNormalsAsTuple(); +}; diff --git a/src/Visualization/Display3d.cpp b/src/Visualization/Display3d.cpp index c4eb8c180..693e7cf15 100644 --- a/src/Visualization/Display3d.cpp +++ b/src/Visualization/Display3d.cpp @@ -283,3 +283,48 @@ void Display3d::Test() myV3dView->ZFitAll(); myV3dView->FitAll(); } + +void Display3d::SetCoreProfileEnabled(Standard_Boolean theEnabled) +{ + // Request OpenGL Core Profile instead of compatibility profile. + // On macOS, compatibility profile is limited to OpenGL 2.1 / GLSL 1.20. + // Core Profile enables OpenGL 3.2+ / GLSL 1.50+ which is required for + // Qt6 scene graph integration and modern shader features. + // Must be called BEFORE Init() to take effect. + GetGraphicDriver()->ChangeOptions().contextCompatible = !theEnabled; + GetGraphicDriver()->ChangeOptions().ffpEnable = !theEnabled; +} + +void Display3d::SetContextCompatible(Standard_Boolean theCompatible) +{ + // Set whether to request backward-compatible OpenGL context. + // When false, requests Core Profile (OpenGL 3.2+). + // Must be called BEFORE Init() to take effect. + GetGraphicDriver()->ChangeOptions().contextCompatible = theCompatible; +} + +void Display3d::SetFfpEnable(Standard_Boolean theEnabled) +{ + // Enable/disable fixed-function pipeline. + // Should be disabled when using Core Profile. + // Must be called BEFORE Init() to take effect. + GetGraphicDriver()->ChangeOptions().ffpEnable = theEnabled; +} + +void Display3d::SetBuffersNoSwap(Standard_Boolean theNoSwap) +{ + // Set whether to skip buffer swapping (for external GL context management). + // Useful when integrating with Qt Quick or other frameworks that manage + // their own buffer swapping. + GetGraphicDriver()->ChangeOptions().buffersNoSwap = theNoSwap; +} + +void Display3d::SetSRGBDisabled(Standard_Boolean theDisabled) +{ + // Disable sRGB rendering (OFF by default in OCCT). + // When enabled, OCCT won't attempt to create sRGB framebuffers. + // Useful for macOS where GL_SRGB8_ALPHA8 format may not be supported + // in certain contexts. + // Must be called BEFORE Init()/InitOffscreen() to take effect. + GetGraphicDriver()->ChangeOptions().sRGBDisable = theDisabled; +} diff --git a/src/Visualization/Visualization.h b/src/Visualization/Visualization.h index 3f6756777..35e91699f 100644 --- a/src/Visualization/Visualization.h +++ b/src/Visualization/Visualization.h @@ -68,6 +68,14 @@ class Display3d Standard_Boolean ToReverseStereo); Standard_EXPORT void EnableVBO(); Standard_EXPORT void DisableVBO(); + + // OpenGL context configuration - must be called BEFORE Init() + Standard_EXPORT void SetCoreProfileEnabled(Standard_Boolean theEnabled); + Standard_EXPORT void SetContextCompatible(Standard_Boolean theCompatible); + Standard_EXPORT void SetFfpEnable(Standard_Boolean theEnabled); + Standard_EXPORT void SetBuffersNoSwap(Standard_Boolean theNoSwap); + Standard_EXPORT void SetSRGBDisabled(Standard_Boolean theDisabled); + Standard_EXPORT Handle_V3d_View& GetView() {return myV3dView;}; Standard_EXPORT Handle_V3d_Viewer& GetViewer() {return myV3dViewer;}; Standard_EXPORT Handle_Graphic3d_Camera& GetCamera() {return myGraphic3dCamera;}; diff --git a/src/Visualization/Visualization.i b/src/Visualization/Visualization.i index bb11c712b..b36dfe334 100644 --- a/src/Visualization/Visualization.i +++ b/src/Visualization/Visualization.i @@ -81,6 +81,16 @@ class Display3d { bool SetSize(int size_x, int size_y); %feature("autodoc", "1"); bool IsOffscreen(); + %feature("autodoc", "1"); + void SetCoreProfileEnabled(bool theEnabled); + %feature("autodoc", "1"); + void SetContextCompatible(bool theCompatible); + %feature("autodoc", "1"); + void SetFfpEnable(bool theEnabled); + %feature("autodoc", "1"); + void SetBuffersNoSwap(bool theNoSwap); + %feature("autodoc", "1"); + void SetSRGBDisabled(bool theDisabled); }; %extend Display3d { diff --git a/test/test_core_exception.py b/test/test_core_exception.py new file mode 100644 index 000000000..cdd4e7660 --- /dev/null +++ b/test/test_core_exception.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python + +##Copyright 2009-2016 Thomas Paviot (tpaviot@gmail.com) +## +##This file is part of pythonOCC. +## +##pythonOCC 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 3 of the License, or +##(at your option) any later version. +## +##pythonOCC 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 pythonOCC. If not, see . + +from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox +from OCC.Core.BRepBuilderAPI import ( + BRepBuilderAPI_MakeEdge, + BRepBuilderAPI_Sewing, +) +from OCC.Core.gp import gp_Dir, gp_Pnt + +import pytest + + +def test_standard_out_of_range() -> None: + """asserts that handling of OCC exceptions is handled correctly caught + Standard_OutOfRange mapped to IndexError + """ + with pytest.raises(IndexError): + gp_Dir(0, 0, 1).Coord(-1) + + with pytest.raises(IndexError): + BRepBuilderAPI_Sewing().FreeEdge(-1) + + +def test_standard_fail_not_done() -> None: + with pytest.raises(RuntimeError): + BRepBuilderAPI_MakeEdge(gp_Pnt(0, 0, 0), gp_Pnt(0, 0, 0)).Edge() + + +def test_standard_domain() -> None: + with pytest.raises(ValueError): + BRepPrimAPI_MakeBox(0, 0, 0).Shape() diff --git a/test/test_core_extend_topology.py b/test/test_core_extend_topology.py index b81c5a9e5..678c2ac97 100644 --- a/test/test_core_extend_topology.py +++ b/test/test_core_extend_topology.py @@ -198,3 +198,16 @@ def test_list_of_shapes_to_compound(): result, all_shape_converted = list_of_shapes_to_compound([box_shp, sph_shp]) assert all_shape_converted assert get_type_as_string(result) == "Compound" + + +def test_topology_summary(): + assert topo.get_topology_summary() == { + "number_of_vertices": 8, + "number_of_edges": 12, + "number_of_wires": 6, + "number_of_faces": 6, + "number_of_shells": 1, + "number_of_solids": 1, + "number_of_compounds": 0, + "number_of_comp_solids": 0, + } diff --git a/test/test_core_meshdatasource.py b/test/test_core_meshdatasource.py index 7ea2cb2c5..5b4376eb8 100644 --- a/test/test_core_meshdatasource.py +++ b/test/test_core_meshdatasource.py @@ -37,7 +37,7 @@ def test_stl_file_check_bounding_box(): a_stl_mesh = rwstl.ReadFile(STL_BOTTLE_FILENAME) a_ds = MeshDS_DataSource(a_stl_mesh) bb = a_ds.GetBoundingBox().Get() - assert bb == (-26.5748, 4.426, -13.6694, 26.5269, 90.2, 13.5885) + assert bb == [-26.5748, 4.426, -13.6694, 26.5269, 90.2, 13.5885] def test_create_mesh_datasource(): diff --git a/test/test_core_wrapper_features.py b/test/test_core_wrapper_features.py index e6e7cb882..9ce2b52e5 100644 --- a/test/test_core_wrapper_features.py +++ b/test/test_core_wrapper_features.py @@ -82,7 +82,7 @@ TopoDS_Shape, ) from OCC.Core.TColStd import TColStd_Array1OfReal, TColStd_Array1OfInteger -from OCC.Core.TColgp import TColgp_Array1OfPnt +from OCC.Core.TColgp import TColgp_Array1OfPnt, TColgp_HArray1OfPnt from OCC.Core.TDF import TDF_LabelSequence from OCC.Core.TopExp import TopExp_Explorer from OCC.Core.TopAbs import TopAbs_FACE, TopAbs_Orientation @@ -99,7 +99,9 @@ BRepCheck_Multiple3DCurve, BRepCheck_EmptyWire, ) -from OCC.Core.Geom import Geom_Curve, Geom_Line, Geom_BSplineCurve +from OCC.Core.Geom import Geom_Curve, Geom_Line, Geom_BSplineCurve, Geom_BoundedCurve +from OCC.Core.GeomAPI import GeomAPI_Interpolate +from OCC.Core.GeomLib import geomlib from OCC.Core.BRep import BRep_Tool from OCC.Core.HLRBRep import HLRBRep_Algo, HLRBRep_HLRToShape from OCC.Core.HLRAlgo import HLRAlgo_EdgeIterator, HLRAlgo_EdgeStatus, HLRAlgo_Projector @@ -427,7 +429,7 @@ def test_Standard_Boolean_byref() -> None: """ cs = ChFiDS_ChamfSpine() cs.SetDistAngle(1.0, 45) - assert cs.GetDistAngle() == (1.0, 45.0) + assert cs.GetDistAngle() == [1.0, 45.0] def test_pickle_topods_shape_to_from() -> None: @@ -608,26 +610,6 @@ def test_default_constructor_DEFINE_STANDARD_ALLOC() -> None: assert isinstance(s, ShapeAnalysis_Curve) -def test_handling_exceptions() -> None: - """asserts that handling of OCC exceptions is handled correctly caught - see issue #259 -- Standard errors like Standard_OutOfRange not caught - """ - # Standard_OutOfRange - with pytest.raises(RuntimeError): - gp_Dir(0, 0, 1).Coord(-1) - # StdFail_NotDone - with pytest.raises(RuntimeError): - BRepBuilderAPI_MakeEdge(gp_Pnt(0, 0, 0), gp_Pnt(0, 0, 0)).Edge() - # Standard_DomainError - with pytest.raises(RuntimeError): - BRepPrimAPI_MakeBox(0, 0, 0).Shape() - # Standard_OutOfRange, related to specific issue in #778 - # Note: the exception is raised if and only if OCCT is compiled - # using -D BUILD_RELEASE_DISABLE_EXCEPTIONS=OFF - with pytest.raises(RuntimeError): - BRepBuilderAPI_Sewing().FreeEdge(-1) - - def test_memory_handle_getobject() -> None: """ See https://github.com/tpaviot/pythonocc-generator/pull/24 @@ -701,6 +683,15 @@ def test_return_enum() -> None: it.Next() +def test_ncollection_list_iterator() -> None: + """Each NCollection_List wrapper comes with a generator implementing the related iterator""" + los1 = BRepCheck_ListOfStatus() + los1.Append(BRepCheck_Multiple3DCurve) + los1.Append(BRepCheck_EmptyWire) + + assert list(los1) == [BRepCheck_Multiple3DCurve, BRepCheck_EmptyWire] + + def test_array_iterator() -> None: P0 = gp_Pnt(1, 2, 3) list_of_points = TColgp_Array1OfPnt(5, 8) @@ -710,7 +701,7 @@ def test_array_iterator() -> None: list_of_points[1] = P0 # then get item - assert list_of_points[1].Coord() == (1.0, 2.0, 3.0) + assert list_of_points[1].Coord() == [1.0, 2.0, 3.0] with pytest.raises(IndexError): list_of_points[4] # iterator creation @@ -1050,7 +1041,7 @@ def test_Standard_ShortReal_and_Standard_Real_returned_by_reference(): hlr_edg_it.InitVisible(hlralgo_edge_status) # visible should return both 4 floats and doubles - assert hlr_edg_it.Visible() == (start, tol_start, end, tol_end) + assert hlr_edg_it.Visible() == [start, tol_start, end, tol_end] def test_deprecated_static_functions(): @@ -1141,7 +1132,10 @@ def test_shape_analysis_free_bounds(): edges.Append(e1) edges.Append(e2) - result = ShapeAnalysis_FreeBounds.ConnectEdgesToWires(edges, 1.0e-7, False) + wires = TopTools_HSequenceOfShape() + + result = ShapeAnalysis_FreeBounds.ConnectEdgesToWires(edges, 1.0e-7, False, wires) + assert result.Length() == 1 @@ -1233,3 +1227,28 @@ def test_topods_readfromstring_extension(): # create a new shape each time for i in range(10): breptools.ReadFromString(string, topods_shape) + + +def test_non_const_handle_reference(): + points = TColgp_HArray1OfPnt(1, 3) + points.SetValue(1, gp_Pnt(0, 0, 0)) + points.SetValue(2, gp_Pnt(1, 1, 0)) + points.SetValue(3, gp_Pnt(2, 3, 4)) + interpolator = GeomAPI_Interpolate(points, False, 1e-6) + interpolator.Perform() + curve_to_extend = interpolator.Curve() + # Display the curve + # display.DisplayShape(curve_to_extend, update=True) + + # Extend the curve to another point + new_pnt = gp_Pnt(2.5, 6, -1) + # Display this new point + + # Extend the curve + CONTINUITY = 1 # degree of continuity 1, 2 or 3 + AFTER = True # insert the new point at the end of the curve + modified_curve = geomlib.ExtendCurveToPoint( + curve_to_extend, new_pnt, CONTINUITY, AFTER + ) + + assert isinstance(modified_curve, Geom_BoundedCurve)