Files
OCCT/dox/samples/samples.md
Pasukhin Dmitry bec9558832 Documentation - Modernize for OCCT 8.0.0, GitHub workflow, and vcpkg build system (#1256)
- Migration from dev.opencascade.org/Mantis/Gitolite infrastructure to GitHub-native
  workflow (Pull Requests, Issues, GitHub Actions CI/CD).
- OCCT 8.0.0 upgrade guide with detailed notes on TCol* typedef deprecation, BSpline
  weight accessors, evaluation hierarchy refactoring (EvalD0/D1/D2/D3/DN), Handle
  out-parameter deprecation, Standard_Mutex → std::mutex, PLib value types, BRepGraph,
  TopoDS_TShape redesign, math wrapper deprecation, mesh factory registry, and more.
- Build system modernization: C++17 requirement, VS2022/GCC8+/Clang7+ compilers,
  vcpkg integration, CMake-driven documentation targets replacing legacy gendoc.
- Removed obsolete documentation: Mantis workflow, access levels, issue lifecycle,
  pre-7.1.0 upgrade history (archived at dev.opencascade.org/doc), in-tree Inspector
  and DFBrowser documentation, 3rd-party build guide (outsourced to vcpkg/upstream).
- INSTALL_DIR_RESOURCE directory now correctly described in the install tree layout.
- Obsolete BUILD_PATCH CMake option removed from documentation.
- Code examples modernized: occ::handle<> syntax, NCollection_*<T> templates, BRepAdaptor_Curve,
  IsDone() checks, null-handle guards, native C++ types over Standard_* typedefs,
  Append() over Appends(), correct variable names.
- Code block language tags: .php → .tcl for Tcl scripts, .glsl for shader listings.
- IGES translator: deprecated API calls updated (SetReadVisible + TransferRoots),
  IDT_ message API replaced with Message_Messenger, thread-safety warning added.
- DE_Wrapper: STEP thread-safety note (per-reader), IGES unsupported for concurrency.
- Removed Mantis tracker link from GitHub issue template config.
- Removed DFBROWSER and INSPECTOR entries from DrawPlugin resource file.
- Tcl reference URL updated (tcl.tk → tcl-lang.org).
2026-05-03 09:15:03 +01:00

1.8 KiB

Tutorials and Samples

  • @subpage samples__tutorials
    • @ref samples__novice_guide
      A document providing an introductory information to newcomers.
    • @ref samples__draw_scripts
      A set of demo scripts demonstrating OCCT functionality from DRAW. These scripts can be also considered as a tutorials on Tcl usage within @ref occt_user_guides__test_harness "Draw Harness".
    • @ref occt__tutorial
      A programming tutorial teaching how to use OCCT services to model a 3D object.
    • @ref samples__ocaf
      A set of code snippets performing typical actions with @ref occt_user_guides__ocaf "OCAF" services for newcomers.
    • @ref samples__ocaf_func
      A simple example dedicated to the usage of "Function Mechanism" of @ref occt_user_guides__ocaf "OCCT Application Framework".
    • @ref tutorials__ais_object
      A programming tutorial teaching how to compute presentation within AIS_InteractiveObject subclass for displaying in @ref occt_user_guides__visualization "OCCT 3D Viewer".
  • @subpage samples__projects Additional demo scripts are provided in the OCCT repository under the resources/samples/tcl directory.

@page samples__tutorials Tutorials and Demos

  • @subpage samples__novice_guide
  • @subpage samples__draw_scripts
  • @subpage occt__tutorial
  • @subpage samples__ocaf
  • @subpage samples__ocaf_func
  • @subpage tutorials__ais_object

@page samples__projects Additional Demo Scripts

Additional DRAW demo scripts are available in the OCCT repository under the resources/samples/tcl directory. They can be run from DRAW as described in @ref samples__draw_scripts.

C++ project samples (Qt, MFC, C#, WebGL, Java/Android, iOS, GLFW, QML) are available separately from the OCCT organization's GitHub repositories.