Skip to content
Snippets Groups Projects
Commit cdf8cccb authored by Marco Biasini's avatar Marco Biasini
Browse files

added converter to initialize std::vectors from iterable

In Python, it's now possible to do:

a=geom.Vec3(1,0,0)
b=geom.Vec3(0,1,0)
c=geom.Vec3(0,0,1)
print geom.Vec3List((a,b,c,))
print geom.Vec3List([a,b,c,])

def f(*args):
  for a in args:
    yield a

print geom.Vec3List(f(a,b,c))
parent 0418e3e3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment