isonormals
- :
n =isonormals(v, p)¶ - :
n =isonormals(x, y, z, v, p)¶ - :
n =isonormals(…, "negate")¶ - : isonormals
(…, hp)¶ Compute unit normals of an isosurface of the volume data v.
v is an m-by-n-by-p array (rows are y, columns x, pages z) and the optional x, y, z are its coordinates (arrays or vectors; the default is the index). p is a k-by-3 list of vertices. Each normal is the normalised gradient of v at the vertex, interpolated trilinearly, and points towards decreasing v; a zero gradient gives a zero vector.
"negate"reverses all normals.If a patch handle is given instead of the vertex list, its
VertexNormalsare set from the patch vertices (and the normals are also returned when an output is requested).