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
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_VisMaterialPBRare not complete. Missing properties:BaseColorTextureMetallicRoughnessTextureEmissiveTextureOcclusionTextureNormalTextureEmissiveFactorOfficial Anaconda OCP 8.0.1 package:
see https://occt3d.com/dev/doc/refman/html/struct_x_c_a_f_doc___vis_material_p_b_r.html