/ . / Mask / depthmask.py
Functions
|
|
|
clamp
|
clamp (
v,
vmin,
vmax,
)
|
|
masked_volume
|
masked_volume (
volume,
surfaces,
projection_axis=( 0, 0, 1 ),
full_map=False,
sandwich=False,
)
|
|
copy_slab
|
copy_slab (
depth,
depth2,
mijk_to_dijk,
vol,
mvol,
dlimit,
)
|
|
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.
|
|
bounding_box
|
bounding_box ( surfaces, tf=None )
|
|
surface_geometry
|
surface_geometry (
glist,
tf,
pad,
)
|
|
surfaces_z_depth
|
surfaces_z_depth (
surfaces,
depth,
triangle_num,
beyond,
beyond_triangle_num,
)
|
|
orthonormal_frame
|
orthonormal_frame ( zaxis )
|
|
show_contour_masked_volume
|
show_contour_masked_volume ( axis=( 0, 0, 1 ), pad=None )
|
|
|