HappyDoc Generated Documentation ./Mask/depthmask.py

. / Mask / depthmask.py 

Functions   
  clamp 
clamp (
        v,
        vmin,
        vmax,
        )
  masked_volume 
masked_volume (
        volume,
        surfaces,
        projection_axis=None,
        full_map=None,
        sandwich=None,
        )
  copy_slab 
copy_slab (
        depth,
        depth2,
        mijk_to_dijk,
        vol,
        mvol,
        dlimit,
        )
  offset_surface 
offset_surface ( p,  pad )
  apply_transform 
apply_transform ( tf,  v )
  surface_z_depth 
surface_z_depth (
        varray,
        triangles,
        depth,
        beyond=None,
        )

Compute a 2-dimensional depth array from a list of triangles. The vertex y and x coordinates are indices into the depth array and the z coordinate is the depth. The depth array should be initialized to a desired maximum depth before being passed to this routine. If a "beyond" array is passed it should be the same size as depth and only depths beyond its values will be recorded in the depth array. This can be used to get the second layer surface depth by passing in a "beyond" array that is the depth calculated for the first layer.

Math needs to be done 64-bit to minimize round-off errors leading to multiple nearly identical depths at single grid points where there is only one surface point coincident with edge or vertex shared by multiple triangles.

  slab_surface 
slab_surface ( p,  pad )
  bounding_box 
bounding_box ( surfaces,  tf=None )
  mask_volume_using_selected_surfaces 
mask_volume_using_selected_surfaces ( axis=None,  pad=None )

Mask active volume using selected surfaces.

  surfaces_z_depth 
surfaces_z_depth (
        surfaces,
        depth,
        triangle_num,
        beyond,
        beyond_triangle_num,
        )
  orthonormal_frame 
orthonormal_frame ( zaxis )
  surface_geometry 
surface_geometry (
        plist,
        tf,
        pad,
        )

Pad can be one or two values. If two values then a slab is formed by stitching offset copies of the surface at the boundary.

Classes   

This document was automatically generated Fri May 30 21:13:45 2008 by HappyDoc version 3.1