isonormals
Compute normals of isosurface vertices
Syntax
n = isonormals(X,Y,Z,V,vertices)
n = isonormals(V,vertices)
n = isonormals(V,p)
n = isonormals(X,Y,Z,V,p)
n = isonormals(...,'negate')
isonormals(V,p)
isonormals(X,Y,Z,V,p)
Description
n = isonormals(X,Y,Z,V,vertices)
computes
the normals of the isosurface vertices from the vertex list, vertices
,
using the gradient of the data V
. The arrays X
, Y
,
and Z
define the coordinates for the volume V
.
The computed normals are returned in n
.
n = isonormals(V,vertices)
assumes
the arrays X
, Y
, and Z
are
defined as [X,Y,Z] = meshgrid(1:n,1:m,1:p)
where [m,n,p]
= size(V)
.
n = isonormals(V,p)
and n = isonormals(X,Y,Z,V,p)
compute normals
from the vertices of the patch identified by the handle p
.
n = isonormals(...,'negate')
negates
(reverses the direction of) the normals.
isonormals(V,p)
and isonormals(X,Y,Z,V,p)
set the VertexNormals
property
of the patch identified by the handle p
to the
computed normals rather than returning the values.
Examples
Extended Capabilities
Version History
Introduced before R2006a
See Also
interp3
| isosurface
| isocaps
| smooth3
| subvolume
| reducevolume
| reducepatch