Skip to content

isocaps

plot · scripts/plot/draw/isocaps.m

: fvc = isocaps (x, y, z, v, iso)
: fvc = isocaps (v, iso)
: fvc = isocaps (…, enclose)
: fvc = isocaps (…, plane)
: [f, v, c] = isocaps (…)
: isocaps (…)

Compute end caps that close an isosurface at the volume boundary.

The volume and its grid are given as for isosurface. On each selected face of the data box the cap is the part of the face where the data lie on the enclose side of iso: "above" (the default) or "below". The plane option is "all" (the default) or one of "xmin", "xmax", "ymin", "ymax", "zmin", "zmax". The caps are triangulated with vertices at the interpolated crossings of the isovalue.

The result is a structure with the fields faces, vertices and facevertexcdata (the data value at each vertex); with several outputs f, v and c are returned. Without an output a patch is drawn. An empty result gives a warning.