/ . / 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.
|
|
write_surface_distances
|
write_surface_distances ( atoms, surfaces )
|
|
show_distances
|
show_distances ( xyz, dist )
|
|
atom_coordinates
|
atom_coordinates ( atoms, xform )
|
|
multiply
|
multiply ( a, v )
|
|
subtract
|
subtract ( u, v )
|
|
selection_surface_distance
|
selection_surface_distance ()
|
|
|