home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hackers Magazine 57
/
CdHackersMagazineNr57.iso
/
Software
/
Multimedia
/
k3d-setup-0.7.11.0.exe
/
share
/
k3d
/
scripts
/
MeshSourceScript
/
simple_polyhedron.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2008-11-24
|
402 b
|
13 lines
#python
import k3d
k3d.check_node_environment(locals(), "MeshSourceScript")
# Create two triangles, arranged to form a square ...
vertices = [k3d.point3(-3, -3, 0), k3d.point3(3, -3, 0), k3d.point3(3, 3, 0), k3d.point3(-3, 3, 0)]
vertex_counts = [3, 3]
vertex_indices = [0, 1, 3, 1, 2, 3]
material = None
polyhedron = k3d.polyhedron.create(Output, vertices, vertex_counts, vertex_indices, material)