1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#python
import k3d
import sys
document = k3d.new_document()
frozen_mesh = k3d.plugin.create("FrozenMesh", document)
mesh = frozen_mesh.create_mesh()
polyhedron = k3d.polyhedron.create(mesh)
named_array_types = [ "k3d::bool_t", "k3d::color", "k3d::double_t", "k3d::inode*", "k3d::int16_t", "k3d::int32_t", "k3d::int64_t", "k3d::int8_t", "k3d::matrix4", "k3d::normal3", "k3d::point2", "k3d::point3", "k3d::point4", "k3d::string_t", "k3d::texture3", "k3d::uint16_t", "k3d::uint32_t", "k3d::uint64_t", "k3d::uint8_t", "k3d::vector2", "k3d::vector3", "k3d::uint_t" ]
for type in named_array_types:
array = polyhedron.edge_attributes().create(type, type)
for type in named_array_types:
array = polyhedron.edge_attributes()[type]
for type in named_array_types:
const_array = polyhedron.edge_attributes()[type]
|