| Trees | Indices | Help |
|
|---|
|
|
object --+
|
common.Primitive --+
|
Polyhedron --+
|
MaestroPolyhedronCore --+
|
MaestroTetrahedron
Class to draw a 3D tetrahedron in Maestro's Workspace.
See doc string for __init__ for details on instantiation.
Tetrahedrons should be added to a graphics3d.common.Group,
or TetrahedronGroup, and drawing done via the Group.
See the L{graphics3d.common.Group} documentation.
API Example
-----------
import schrodinger.maestro.maestro as maestro
import schrodinger.graphics3d.polyhedron as polyhedron
tetrahedron_grp = polyhedron.Group()
st = maestro.workspace_get() # Here, st is methane.
for atom in st.atom:
if atom.element == 'C':
center = atoms.xyz
tetra = polyhedron.Tetrahedron(
center = center,
length = 1.828, # length between Hs
color = 'goldenrod',
opacity = 1.0,
style = tetrahedron.LINE
)
# Add the primative to the container.
tetrahedron_grp.add(tetra)
# Add the draw callback.
maestro.workspace_draw_function_add(tetrahedron_grp.draw)
# Hide the markers.
tetrahedron_grp.hide()
# Remove the markers and the callback.
tetrahedron_grp.clear()
maestro.workspace_draw_function_remove(tetrahedron_grp.draw)
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|||
Create a polyhedron centered at
See Also: MaestroPolyhedronCore.__init__ |
Get a list of vertices. If the center coordinates are considered the
origin the vertices will have a base on the y-plane, a vertex on the
x-axis and a vertex directly in the +z-axis from the
|
@return The indices of the faces
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 3 07:59:54 2016 | http://epydoc.sourceforge.net |