Hi
The isocaps function in MATLAB is used to generate isosurface patch data from volume data. It creates a triangulated representation of the surface defined by a specified isovalue within a 3D volume. This function is too derived from the Marching Cubes algorithm, which is a widely used algorithm for generating isosurfaces from volumetric data.
The isocaps function specifically generates isosurface patch data by first applying the Marching Cubes algorithm to extract the surface triangles. It then identifies the boundary edges of these triangles and connects them to form closed loops. These closed loops are used to create the isosurface patches.
For more visualization about this topic, you can refer Isocaps Add Context to Visualizations - MATLAB & Simulink (mathworks.com)