Skip to content

Importing issue: OCC.Core.Graphic3d.Graphic3d_Vec3 #1391

Open
@Bill-XU

Description

@Bill-XU

Hi,

I am trying to push some variable to shader program.
But while importing Graphic3d_Vec3 (which is the data type of the variable I am using),
the following error occurred.

Traceback (most recent call last):
  File "C:\test_shader.py", line 5, in <module>
    from OCC.Core.Graphic3d import (
ImportError: cannot import name 'Graphic3d_Vec3' from 'OCC.Core.Graphic3d' (C:\Program Files\Python311\Lib\site-packages\OCC\Core\Graphic3d.py)

I have checked Graphic3d.py, in which there are the following.

# the following typedef cannot be wrapped as is
Graphic3d_Vec3 = NewType("Graphic3d_Vec3", Any)

Does this mean that Graphic3d_Vec3 cannot be used in PythonOCC?
If then, how could I push variable to shader program?
Please kindly give your help~~
Thank you in advance!

Best regards,
Bill

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions