HappyDoc Generated Documentation ./SurfaceDistance/surfdist.py

. / SurfaceDistance / surfdist.py 

Functions   
  normalize 
normalize ( v )
  distance 
distance ( u,  v )
  triangle_distance 
triangle_distance ( xyz,  triangle_vertices )

Returns distance, triangle point, and side (1 or -1) of triangle.

  distance_to_surface 
distance_to_surface ( xyz,  smodel )
  surface_distance 
surface_distance (
        xyz,
        surf_vertex_xyz,
        surf_triangles,
        dist=None,
        )

Compute the closest distance from a point to a surface. The surface is represented as a list of triangles. The distance, closest point, and side of the closest triangle that the given point lies on is returned. Side +1 is the right-handed normal clockwise vertex traversal, while -1 indicates the opposite side. This is for determining if the given point is inside or outside the surface.

  cross 
cross ( u,  v )
  add 
add ( u,  v )
  write_surface_distances 
write_surface_distances ( atoms,  surfaces )
  show_distances 
show_distances ( xyz,  dist )
  dot 
dot ( u,  v )
  atom_coordinates 
atom_coordinates ( atoms,  xform )
  multiply 
multiply ( a,  v )
  sign 
sign ( x )
  subtract 
subtract ( u,  v )
  selection_surface_distance 
selection_surface_distance ()
Classes   

This document was automatically generated Wed Jul 9 15:49:38 2008 by HappyDoc version 3.1