Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG about core_display_pbr.py #49

Open
zhsunsea opened this issue Oct 27, 2021 · 0 comments
Open

BUG about core_display_pbr.py #49

zhsunsea opened this issue Oct 27, 2021 · 0 comments

Comments

@zhsunsea
Copy link

When run this program, a bug appears:

File "C:/workspaces/python/pythonocc-demos/examples/core_display_pbr.py", line 81, in <module>
    display.DisplayShape(bottle, material=alu_pbr_aspect)

  File "C:\ProgramData\Anaconda3\envs\OCCT751\lib\site-packages\OCC\Core\Graphic3d.py", line 14867, in __init__
    _Graphic3d.Graphic3d_MaterialAspect_swiginit(self, _Graphic3d.new_Graphic3d_MaterialAspect(*args))
TypeError: Wrong number or type of arguments for overloaded function 'new_Graphic3d_MaterialAspect'.
  Possible C/C++ prototypes are:
    Graphic3d_MaterialAspect::Graphic3d_MaterialAspect()
    Graphic3d_MaterialAspect::Graphic3d_MaterialAspect(Graphic3d_NameOfMaterial const)

Hope u can give the answer.
Env:

  • pythonocc-core 7.5.1
  • OS: win10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant