3
"""polyhedrons.py - plots some polyhedrons
5
Copyright (C) 2009 Thomas J. Duck
8
Thomas J. Duck <tom.duck@dal.ca>
9
Department of Physics and Atmospheric Science,
10
Dalhousie University, Halifax, Nova Scotia, Canada, B3H 3J5
14
This library is free software; you can redistribute it and/or
15
modify it under the terms of the GNU Library General Public
16
License as published by the Free Software Foundation; either
17
version 2 of the License, or (at your option) any later version.
19
This library is distributed in the hope that it will be useful,
20
but WITHOUT ANY WARRANTY; without even the implied warranty of
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22
Library General Public License for more details.
24
You should have received a copy of the GNU Library General Public
25
License along with this library; if not, write to the
26
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
27
Boston, MA 02111-1307, USA.
31
from enthought.mayavi import mlab
33
s1 = gts.tetrahedron()
44
x,y,z,t = gts.get_coords_and_face_indices(s,True)
45
mlab.triangular_mesh(x,y,z,t,color=(0.8,0.8,0.8))
46
mlab.triangular_mesh(x,y,z,t,color=(0,0,1),representation='fancymesh',