openalea / plantgl

An open-source graphic toolkit for the creation, simulation and analysis of 3D virtual plants.
Other
59 stars 23 forks source link

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

Open Sirix1995 opened 3 years ago

Sirix1995 commented 3 years ago

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::RefCountPtr primitive=None)