Skip to content

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

Description

@Sirix1995

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions