FUNCTION REFERENCE

isonormals

Compute unit vertex normals from the interpolated gradient of a volume.

Compute unit vertex normals from the interpolated gradient of a volume.

Syntax

n = isonormals(V,vertices)

Syntax

n = isonormals(X,Y,Z,V,vertices,'negate')

Syntax

isonormals(V,p)

Normals point toward lower values of V. Use 'negate' to reverse them. Coordinates may be vectors or rectilinear meshgrid arrays. A call without an output sets the VertexNormals of the indexed patch p.

Example

[x,y,z] = meshgrid(1:4,1:4,1:4); V = x+y+z; [f,v] = isosurface(V,7.5); n = isonormals(V,v);

Differences from MATLAB: Nonzero normals are normalized to unit length. The renderer does not use VertexNormals for lighting.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.