Python package for 3D geometry CAD/BIM/CAM
Repo tpaviot/pythonocc-core, read from GitHub 15 min ago. tpaviot has not joined Take My Repo.
This release requires opencascade-8.0.1
Tesselator: TopologyTesselator, a mesh that keeps the topology. Face i,
edge i and vertex i are the sub-shapes of index i in TopologyExplorer
order, with the range of the triangles of each face and of the polyline
nodes of each edge, as numpy arrays. Compute releases the GIL
wrapper: non-const references to scalars are returned by value, e.g.
TColStd_ListOfInteger.Append and the ChangeValue accessors of the scalar
containers returned an opaque SWIG 'int *' object
wrapper: TDocStd_Application.NewDocument returns a TDocStd_Document, the
CDM_Document overload was always chosen
wrapper: type stubs: HSequence Append(theItem) overload, Sequence Append and
Prepend return None, scalar reference returns typed int or float
wrapper: an object returned by reference keeps its owner alive:
triangulation.MapNormalArray().Array1() or
GeomAPI_PointsToBSpline(points).Curve().Poles() read freed memory once
the temporary owner was collected (#1499)
wrapper: add the GeomGridEval, Geom2dGridEval, HelixGeom, HelixBRep and
BRepPreviewAPI modules, new in OCCT 8: grid evaluation of curves and
surfaces, helices, preview boxes degenerating to faces, edges or vertices
wrapper: add the DE provider modules DEBREP, DEXCAF, DESTEP, DEIGES,
DESTL, DEVRML, DEOBJ, DEPLY and DEGLTF, dispatched by DE_Wrapper from the
file extension
wrapper: the parameters of the DE providers can be set from python:
DESTEP_Parameters, DEIGES_Parameters, the InternalParameters of the
configuration nodes, their GlobalParameters and ShapeFixParameters
wrapper: the string fields of the wrapped structs are converted to str,
e.g. the Description of the BRepGraph issues
wrapper: the NCollection_Sequence instances are iterable, e.g.
for label in TDF_LabelSequence
wrapper: iterating over an Array2 yields the items row after row, it
raised a TypeError
wrapper: a module imports the modules of its template arguments and of
the types returned as a copy: the items of a TColgp array were opaque
pointers until OCC.Core.gp was imported, HelixGeom_BuilderHelix.Curves()
returned an opaque pointer
wrapper: type stubs regenerated: operators, DownCast, Array2 classes,
numpy members, template instantiations typed with their typedef
wrapper: Geom_Curve.eval_numpy_array evaluates the BSpline, Bezier and
offset curves on a grid, up to 8 times faster
Extend: discretize_edge evaluates the points on a grid, about 2 times
faster for a fine deflection
Extend: write_step_file no longer changes the global write.step.schema
parameter, the schema is passed to the writer with DESTEP_Parameters
Display, Extend: annotations fixed, ruff and ty quality pass
Bugfix release. This release requires opencascade-8.0.1
wrapper: non-const handle references are appended to the returned values
instead of replacing them. Breaking change for the non-void functions with
a handle output, e.g. TDocStd_Application.Open now returns [status, doc]
wrapper: ShapeAnalysis_FreeBounds.ConnectEdgesToWires returns the wires, #1497
wrapper: regenerate the SWIG files with a stable dependency order
wrapper: type stubs regenerated
display: WebGl renderers review and bug fixes (shape removal, selection,
pick color, edges visibility, fit to scene, shaders and transparency)
display: JupyterRenderer BoundingBox, Display, topo_level and ExportToHTML fixes
display: pin the three.js and x3dom releases, ship the x3dom axes files
ci: Azure Windows builds use the MSVC 2022 conda activation
test: tests runnable from any directory, add test_optimized_tesselator
This release requires opencascade-8.0.1
Highlights:
wrapper: upgrade to OpenCASCADE 8.0.1, bump SWIG to 4.5.1
wrapper: add the BRepGraph module, new in OCCT 8
wrapper: add GeomEval, Geom2dEval and GeomBndLib modules
wrapper: wrap the OCCT 8 template aliases
wrapper: wrap OSD_ThreadPool and OSD_Parallel, #1479
wrapper: math_Vector element accessors and sequence protocol, #1426
wrapper: return container values by copy from the const accessors, #1482
wrapper: FindAttribute returns None or the attribute with its type, #1487
wrapper: str() for TCollection strings, #1487
wrapper: accept wrapped TCollection strings in the string typemaps, #1494
wrapper: SWIG common files, smaller modules, faster calls and array indexing, robustness fixes
wrapper: SWIG common files, binary stream output, shape and string conversions
wrapper: regenerate SWIG files without circular module imports, remove empty modules
wrapper: update numpy.i to the current upstream revision
wrapper: regenerate .pyi stubs (valid python syntax), complete OCC.Display and OCC.Extend stubs
tesselator: faster export, parallel faces processing, fixes
tesselator: one normal per triangle at the singular points, #1470
display: review, bug fixes and modernization
display: fix shift modifier detection in qtDisplay, #1491
extend: fix bugs, speed up topology exploration, ruff and pylint pass
data exchange: STEP export of mesh faces, protocol set at first call, #1476
MeshDS: validate input, fix quadrangles from numpy, OCCT 8 API
build: numpy is always required, #1457
build: PYTHONOCC_WRAP_VISU option defaults to OPENGL_FOUND
build: fix OpenGL fallback and config.py install, remove dead code and unused IVtk interface files
build: hide SWIG warnings 303 and 476
conda: raise macOS deployment target to 11.0
ci: windows-2025 and ubuntu-26.04 images for python 3.14
tests: skip offscreen renderer tests when no display is available
This release requires opencascade-7.9.3
Highlights:
Details
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
This release requires opencascade-7.9.0
wrapper: upgrade to OpenCASCADE 7.9.0
wrapper: add ReadFromString method prototype for memory increase protection
display: fix x3dom renderer material id
display: fix threejs renderer, json formatting
data exchange: add binary/ascii option to gltf export
data echange: fix return type when as_compound = False and there is a single shape
wrapper: add SetDeviation and GetDeviation methods to ShapeTesselator class
tesselator: fix constructor and return types
tesselator: fix 'Standard_ConstructionError' when a shape has no geometry
tesselator: tesselator: multiple coding improvements using Clang-Tidy recommendations
Bugfix release. This release requires opencascade-7.8.1
wrapper: add support for SWIG-4.3.0
wrapper: add numpy interface for curve and surfaces, #1381 #1396
wrapper: add missing SelectMegr methods, #1387
wrapper: add hash eq and neq methods to TShape, #1375
wrapper: fix BRepTools.Merge, #1342
wrapper: fix NCollection, #1332
wrapper: fix TopTools_ListIteratorOfListOfShape import, #1355
display: fix deprecation warning, #1386
test: move test suite to pytest, #1335
data exchange: fix gtlf importer