From fc14346828f772a4fd9475bf38f609cb79aeab71 Mon Sep 17 00:00:00 2001 From: AU Date: Fri, 28 Aug 2026 18:19:08 +0200 Subject: [PATCH 1/3] Wrap float fields --- ocp.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocp.toml b/ocp.toml index 55a26e7b5..d1060f136 100644 --- a/ocp.toml +++ b/ocp.toml @@ -1389,7 +1389,7 @@ class OpenGl_ShaderProgram; module_mapping = "lambda x: Path(x).splitpath()[-1].split('.')[0].split('_')[0]" -byref_types = ["Standard_Real","Standard_Integer","Standard_Boolean","int","double","bool"] +byref_types = ["Standard_Real","Standard_Integer","Standard_Boolean","int","double","bool","float"] byref_types_smart_ptr = ["opencascade::handle", "handle", "Handle"] parsing_header = '''#pragma clang diagnostic ignored "-Wmacro-redefined" From e5f799a562c280d2be4859c2988716f46fdaa2ca Mon Sep 17 00:00:00 2001 From: adam-urbanczyk <13981538+adam-urbanczyk@users.noreply.github.com> Date: Sat, 29 Aug 2026 10:29:06 +0200 Subject: [PATCH 2/3] Add a PBR attrs test --- tests/test_ocp.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test_ocp.py b/tests/test_ocp.py index 91b93a632..cdde05aa9 100644 --- a/tests/test_ocp.py +++ b/tests/test_ocp.py @@ -186,3 +186,21 @@ def test_bounds(surf): u2 == approx(2.0 * math.pi) v1 == approx(-0.5 * math.pi) v2 == approx(0.5 * math.pi) + + +# %% attributes based on from OCP.XCAFDoc import XCAFDoc_VisMaterialPBR + +from OCP.XCAFDoc import XCAFDoc_VisMaterialPBR +from OCP.Quantity import Quantity_ColorRGBA + + +def test_attributes(): + + pbr = XCAFDoc_VisMaterialPBR() + + assert isinstance(pbr.BaseColor, Quantity_ColorRGBA) + assert isinstance(pbr.Metallic, float) + + assert pbr.Metallic == 1.0 + pbr.Metallic = 0.0 + assert pbr.Metallic == 0.0 From a581fdd070c45cab0bc308bbcc3f82506305b43d Mon Sep 17 00:00:00 2001 From: adam-urbanczyk <13981538+adam-urbanczyk@users.noreply.github.com> Date: Sat, 29 Aug 2026 10:30:14 +0200 Subject: [PATCH 3/3] Update tweak --- conda/meta.yaml | 2 +- ocp.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index e9203408c..6514215c4 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,5 +1,5 @@ {% set OCCT_VER = "8.0.0" %} -{% set OCP_TWEAK = "0" %} +{% set OCP_TWEAK = "1" %} package: name: ocp diff --git a/ocp.toml b/ocp.toml index d1060f136..dba47ad2b 100644 --- a/ocp.toml +++ b/ocp.toml @@ -1449,7 +1449,7 @@ class Adaptor3d_Surface; [Attributes] - __version__ = "8.0.0.0" + __version__ = "8.0.0.1" [Modules]