« Return to Thread: Getting a writable polyhedron in Python

Getting a writable polyhedron in Python

by bART Janssens-2 :: Rate this Message:

Reply to Author | View in Thread

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?

Cheers,

--
Bart

------------------------------------------------------------------------------
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

 « Return to Thread: Getting a writable polyhedron in Python