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)
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)