HappyDoc Generated Documentation ./SurfaceDistance/surfdist.py

. / SurfaceDistance / surfdist.py 

Functions   
  normalize 
normalize ( v )
  distance 
distance ( u,  v )
  distance_to_msms_surface 
distance_to_msms_surface ( atoms,  msms_model )
  triangle_distance 
triangle_distance ( xyz,  triangle_vertices )

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

  distance_to_surface 
distance_to_surface ( atoms,  smodel )
  surface_distance 
surface_distance (
        xyz,
        surf_vertex_xyz,
        surf_triangles,
        )

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 )
  dot 
dot ( u,  v )
  multiply 
multiply ( a,  v )
  sign 
sign ( x )
  subtract 
subtract ( u,  v )
  selection_surface_distance 
selection_surface_distance ()
Classes   

This document was automatically generated Thu Nov 15 14:11:30 2007 by HappyDoc version 3.0.a1