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

Error when creating a Tapered from a Shape geometry. #37

Open
Sirix1995 opened this issue Mar 31, 2021 · 0 comments
Open

Error when creating a Tapered from a Shape geometry. #37

Sirix1995 opened this issue Mar 31, 2021 · 0 comments

Comments

@Sirix1995
Copy link

As the title say. When creating a Tapered from the geometry from a Shape, there's an argument error. But the types are correct...

In [9]: from openalea.plantgl.all import *

In [10]: s = Sphere()

In [11]: t = Tapered(1,1,s)

In [12]: m = Material(Color3(127,72,0))

In [13]: f = Shape(s,m)

In [14]: t2 = Tapered(1,1,f.geometry)

ArgumentError Traceback (most recent call last)
in
----> 1 t2 = Tapered(1,1,f.geometry)

ArgumentError: Python argument types in
Tapered.init(Tapered, int, int, Sphere)
did not match C++ signature:
init(_object*, double baseRadius=0.5, double topRadius=0.5, PGL::RefCountPtrPGL::Primitive primitive=None)

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