Re: [K3d-development] Getting a writable polyhedron in Python
Brought to you by:
barche
From: Timothy M. S. <ts...@k-...> - 2009-06-25 04:43:56
|
Bart Janssens wrote: > Hi, > > While trying to update share/scripts/scripted_plugins/random_colors.py > to generic primitives, I couldn't find a way to get a writable > polyhedron. I get const data using this: > for primitive in Output.primitives(): > polyhedron = k3d.polyhedron.validate(primitive) > print polyhedron.uniform_data() > > Is there a similar way giving a writable polyhedron? This is an error-of-omission. If you want to tackle it, the real solution is to have separate Python wrappings for const_mesh and mesh. Cheers, Tim |