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 55a26e7b5..dba47ad2b 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" @@ -1449,7 +1449,7 @@ class Adaptor3d_Surface; [Attributes] - __version__ = "8.0.0.0" + __version__ = "8.0.0.1" [Modules] 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