NCollection_UBTree/EBTree: - Add move constructor and move assignment operators - Replace recursive Select() and delNode() with iterative stack-based traversal to avoid stack overflow on deeply unbalanced trees - Optimize EBTree::Add() and Remove() to use single-lookup TryEmplaced() instead of double-lookup UnBind()+Bind() / Contains()+operator() - Remove unused DEFINE_HUBTREE / DEFINE_HEBTREE / IMPLEMENT_HUBTREE / IMPLEMENT_HEBTREE macros - Remove unused includes from EBTree (Standard_Type, Standard_Transient, NCollection_List, Standard_Integer, NCollection_Sequence) - Fix doxygen @param tags and comment style NCollection_LocalArray: - Add move constructor and move assignment operators with optimized three-way branching (stack-stack copy, heap-heap swap, stack-heap steal) - Add Reallocate() method supporting grow-with-copy for use as a dynamically growable stack - Add static_assert enforcing trivially copyable element type NCollection_CellFilter: - Replace const_cast destructive-copy hack in Cell with proper move semantics; delete copy constructor and copy assignment - Add Cell constructor from CellIndex for lightweight lookup keys - Refactor add()/iterateAdd() to accept CellIndex instead of Cell, use TryEmplaced() for single-lookup cell insertion - Refactor remove()/inspect() to use Contained() API with const_cast instead of C-style cast on Seek() - Change ListNode default constructor from runtime throw to = delete - Use size_t for dimension loops and add dimension size guard in IsEqual - Remove SUN WorkShop 5.3 workaround - Fix typo "usially" -> "usually" in class documentation NCollection map API unification (Contained, TryEmplace, TryBind): - Add Contained() to all map types returning std::optional with std::reference_wrapper; key-only maps return const key ref, data maps return std::pair of const key ref + value ref - Add TryEmplace()/TryEmplaced() to NCollection_FlatMap and NCollection_IndexedMap for parity with NCollection_Map - Add TryBind() to NCollection_IndexedDataMap for parity with NCollection_DataMap and NCollection_FlatDataMap - Remove Seek()/ChangeSeek() from NCollection_Map (replaced by Contained()) Dead compiler workaround removal: - NCollection_DefineAlloc: remove Borland/SUN #if branch, keep only the version with placement delete - NCollection_SparseArrayBase: remove SUN WorkShop 5.3 workaround GTests: - Add move constructor/assignment tests for LocalArray, UBTree, EBTree - Add Contained tests for NCollection_Map - Add CellFilter tests and UBTree deep-unbalanced-tree stress test
Open CASCADE Technology
Open CASCADE Technology (OCCT) is a software development platform providing services for 3D surface and solid modeling, CAD data exchange, and visualization. Most of OCCT functionality is available in the form of C++ libraries. OCCT is ideal for developing software dealing with 3D modeling (CAD), manufacturing/measuring (CAM), or numerical simulation (CAE).
License
Open CASCADE Technology is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation, with a special exception defined in the file OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in the OCCT distribution for the complete text of the license.
Alternatively, Open CASCADE Technology may be used under the terms of the Open CASCADE commercial license or a contractual agreement.
Note: Open CASCADE Technology is provided on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND. The entire risk related to any use of the OCCT code and materials is on you. See the license text for a formal disclaimer.
Packaging
You can receive certified versions of OCCT code in different packages:
- Snapshot of Git repository: Contains C++ header and source files of OCCT, documentation sources, build scripts, and CMake project files.
- Complete source archive: Contains all sources of OCCT, generated HTML and PDF documentation, and ready-to-use projects for building on all officially supported platforms.
- Binary package (platform-specific): In addition to the complete source archive, it includes binaries of OCCT and third-party libraries built on one platform. This package allows using OCCT immediately after installation.
Certified versions of OCCT can be downloaded from:
You can also find OCCT pre-installed on your system or install it from packages provided by a third party. Note that packaging and functionality of such versions can be different from certified releases. Please consult the documentation accompanying your version for details.
Documentation
Documentation is available at the following links:
Documentation can be part of the package. To preview documentation as part of the package, open the file doc/html/index.html to browse HTML documentation.
If HTML documentation is not available in your package, you can:
- Generate it from sources: You need to have Tcl and Doxygen 1.8.4 (or above) installed on your system and accessible in your environment (check the environment variable PATH). Use the batch file
adm/gendoc.baton Windows or the Bash scriptadm/gendocon Linux or OS X to (re)generate documentation. - Generate together with sources: You need to have CMake and 1.8.4 (or above) installed on your system. Enable
BUILD_DOC_OverviewCMake parameter and set the path to Doxygen3RDPARTY_DOXYGEN_EXECUTABLE. Then build ALL or onlyOverview. - Read documentation in source plain text (Markdown) format found in the subfolder
doxor GitHub Wiki.
See dox/build/build_documentation/building_documentation.md or Building Documentation for details.
Building
In most cases, you need to rebuild OCCT on your platform (OS, compiler) before using it in your project to ensure binary compatibility.
Consult the file dox/build/build_occt/building_occt.md or Building OCCT or Building OCCT Wiki for instructions on building OCCT from sources on supported platforms.
Version
The current version of OCCT can be found in the file adm/cmake/version.cmake.
Development
Bug Tracker
For information regarding OCCT code development, please consult the official OCCT Collaborative Development Portal: