« Return to Thread: Getting a writable polyhedron in Python

Re: Getting a writable polyhedron in Python

by Timothy M. Shead :: Rate this Message:

Reply to Author | View in Thread

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


[tshead.vcf]

begin:vcard
fn:Timothy Shead
n:Shead;Timothy
org:www.k-3d.org
email;internet:tshead@...
title:Founder
x-mozilla-html:FALSE
url:www.k-3d.org
version:2.1
end:vcard



------------------------------------------------------------------------------

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

 « Return to Thread: Getting a writable polyhedron in Python