Skip to content

XCAFDoc_VisMaterialPBR is missing properties in OCP 8.0.1 #228

Description

@bernhard-42

I have built materials support for build123d with PBR support. In order to convert it to OCCT, I need XCAFDoc_VisMaterialPBR.
Unfortunately, the OCP 8 bindings for XCAFDoc_VisMaterialPBR are not complete. Missing properties:

  • BaseColorTexture
  • MetallicRoughnessTexture
  • EmissiveTexture
  • OcclusionTexture
  • NormalTexture
  • EmissiveFactor

Official Anaconda OCP 8.0.1 package:

ipython
Python 3.13.15 | packaged by conda-forge | (main, Sep  2 2026, 21:53:23) [Clang 21.1.8 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 9.17.1 -- An enhanced Interactive Python. Type '?' for help.
Tip: Put a ';' at the end of a line to suppress the printing of output.

In [1]: import OCP

In [2]: OCP.__version__
Out[2]: '8.0.1.0'

In [3]: from OCP.XCAFDoc import XCAFDoc_VisMaterialPBR

In [4]: pbr = XCAFDoc_VisMaterialPBR()

In [5]: dir(pbr)
Out[5]:
['BaseColor',
 'DumpJson',
 'IsDefined',
 'IsEqual',
 'Metallic',
 'RefractionIndex',
 'Roughness',
 '__class__',
 '__delattr__',
 '__dir__',
 '__doc__',
 '__eq__',
...

see https://occt3d.com/dev/doc/refman/html/struct_x_c_a_f_doc___vis_material_p_b_r.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions