isocolors
Calculate isosurface and patch colors
Syntax
nc = isocolors(X,Y,Z,C,vertices)
nc = isocolors(X,Y,Z,R,G,B,vertices)
nc = isocolors(C,vertices)
nc = isocolors(R,G,B,vertices)
nc = isocolors(...,PatchHandle)
isocolors(...,PatchHandle)
Description
nc = isocolors(X,Y,Z,C,vertices)
computes
the colors of isosurface (patch object) vertices (vertices
)
using color values C
. Arrays X
, Y
, Z
define
the coordinates for the color data in C
and must
be monotonic vectors that represent a Cartesian, axis-aligned grid
(as if produced by meshgrid
).
The colors are returned in nc
. C
must
be 3-D (index colors).
nc = isocolors(X,Y,Z,R,G,B,vertices)
uses R
, G
, B
as
the red, green, and blue color arrays (true colors).
nc = isocolors(C,vertices)
,
and nc = isocolors(R,G,B,vertices)
assume X
, Y
,
and Z
are determined by the expression
[X Y Z] = meshgrid(1:n,1:m,1:p)
where [m n p] = size(C)
.
nc = isocolors(...,PatchHandle)
uses
the vertices from the patch identified by PatchHandle
.
isocolors(...,PatchHandle)
sets
the FaceVertexCData
property
of the patch specified by PatchHandle
to the computed
colors.
Examples
Extended Capabilities
Version History
Introduced before R2006a
See Also
isosurface
| subvolume
| isocaps
| reducepatch
| smooth3
| reducevolume
| isonormals