Skip to content
Snippets Groups Projects
  1. Jan 12, 2025
    • David Gobbi's avatar
      Hide the Python module implementation init function · 17380f6f
      David Gobbi authored
      Python extension modules only need to export the PyInit function.
      Any other C functions are merely part of the module implementation,
      and can therefore be kept private.
      17380f6f
    • David Gobbi's avatar
      Hide the Python wrapper ClassNew, TypeNew functions · 0eae306f
      David Gobbi authored
      In older versions of VTK, these type-generation functions were
      be exported so that subclasses in other modules could access them.
      But since VTK 8.1, subclasses look up their superclasses via the
      Python interpreter, so the exports are superfluous.
      0eae306f
    • David Gobbi's avatar
      Hide the Python wrapper AddFile functions · 332bad11
      David Gobbi authored
      It is not necessary to export these functions, since they are only
      called from the Init.cxx file within the same module.  Hiding them
      results in a tidier DLL interface.
      332bad11
  2. Jan 09, 2025
  3. Jan 07, 2025
    • Sean McBride's avatar
      Fixed out of bounds string access found by ASan · aeeb3225
      Sean McBride authored and Lucas Givord's avatar Lucas Givord committed
      Check length of offset before taking adrees of a range like `&string[n - 8]`.
      
      Looked for similar cases and also reordered another case to check length first, may or may not have been a problem, but safer this way.
      
      ASan would catch this *during* VTK builds, while generating the wrappings.
      
      (cherry picked from commit ccbda30c)
      aeeb3225
  4. Jan 02, 2025
    • Vicente Bolea's avatar
      java: require JAVA SDK 11 · a88ed692
      Vicente Bolea authored
      
      I am bumping the required JAVA SDK to 11 since it simplifies its usage
      which results in improved maintanability. It also eliminates the need to
      use bootclasspath.
      
      - Merge VTK_JAVA_TARGET_VERSION and VTK_JAVA_SOURCE_VERSION to
        VTK_JAVA_RELEASE_VERSION.
      - RENAME VTK_JAVA_INSTALL to VTK_JAVA_BUILD_MAVEN_PKG.
      - Update Java build instructions
      
      Co-authored-by: default avatarBen Boeckel <ben.boeckel@kitware.com>
      a88ed692
  5. Dec 26, 2024
  6. Dec 19, 2024
  7. Dec 16, 2024
  8. Dec 13, 2024
    • Vicente Bolea's avatar
      java: add versioned libs to jar · 9821ebf5
      Vicente Bolea authored
      This is needed since VTK-m libs in our CI builds are versioned. In
      general is unreasonable to except thirparty libs  to support unversioned
      builds. For that reason include versioned libs in the generated
      native JAR.
      9821ebf5
  9. Dec 12, 2024
  10. Dec 11, 2024
  11. Dec 08, 2024
  12. Dec 06, 2024
  13. Dec 05, 2024
    • Jaswant Panchumarti (Kitware)'s avatar
      Fix deserialization when number of items in collection have not changed · 5d49f7b5
      Jaswant Panchumarti (Kitware) authored and Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware) committed
      - This commit fixes a bug in deserialization of vtkCollection in situation where the item pointers have changed but the total number of items in a collection has not changed since the last time the collection was deserialized.
      - Previously, the generated code removed all previous items only when the number of items have changed and added the new items once again. Such a design worked only when the item identifiers remained the same. For example, if the state of a prop collection had a different actor, it would be serialized but never added into the collection.
      - Now, the generated code will always remove all previous items and deserialize each individual item from the state before adding it into the collection.
      
      (cherry picked from commit 817d8f41)
      5d49f7b5
  14. Dec 02, 2024
  15. Dec 01, 2024
    • David Gobbi's avatar
      Warn when default __init__() modifies C++ attributes · 8ed0c03e
      David Gobbi authored
      If the C++ object already existed within VTK, and the Python object
      is being created because it is being returned by a method, then we
      don't want the creation of the Python object to cause changes to
      C++ object attributes that were already set by the C++ VTK code.
      
      For example, if we are getting the output dataset from a C++ VTK
      filter, we don't want any C++ attributes of the dataset to change
      when the Python part of this pre-existing dataset object is created.
      8ed0c03e
  16. Nov 27, 2024
  17. Nov 16, 2024
  18. Nov 15, 2024
    • Christos Tsolakis's avatar
    • Jaswant Panchumarti (Kitware)'s avatar
      Fix deserialization when number of items in collection have not changed · 817d8f41
      Jaswant Panchumarti (Kitware) authored
      - This commit fixes a bug in deserialization of vtkCollection in situation where the item pointers have changed but the total number of items in a collection has not changed since the last time the collection was deserialized.
      - Previously, the generated code removed all previous items only when the number of items have changed and added the new items once again. Such a design worked only when the item identifiers remained the same. For example, if the state of a prop collection had a different actor, it would be serialized but never added into the collection.
      - Now, the generated code will always remove all previous items and deserialize each individual item from the state before adding it into the collection.
      817d8f41
  19. Nov 14, 2024
  20. Oct 31, 2024
  21. Oct 30, 2024
  22. Oct 29, 2024
    • Sean McBride's avatar
      Fixed out of bounds string access found by ASan · ccbda30c
      Sean McBride authored
      Check length of offset before taking adrees of a range like `&string[n - 8]`.
      
      Looked for similar cases and also reordered another case to check length first, may or may not have been a problem, but safer this way.
      
      ASan would catch this *during* VTK builds, while generating the wrappings.
      ccbda30c
  23. Oct 28, 2024
  24. Oct 27, 2024
  25. Oct 08, 2024
  26. Oct 07, 2024
  27. Oct 06, 2024
  28. Oct 04, 2024
Loading