12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

isosurfacePurpose2isosurfaceExtract isosurface data from volume dataSyntaxDescriptionRemarksfv = isosurface(X,Y,Z,V,isovalue)fv = isosurface(V,isovalue)fv = isosurface(X,Y,Z,V), fv = isosurface(X,Y,Z,V)fv = isosurface(...,'noshare')fv = isosurface(...,'verbose')[f,v] = isosurface(...)isosurface(...)fv = isosurface(X,Y,Z,V,isovalue) computes isosurface data from thevolume data V at the isosurface value specified in isovalue. The arrays X, Y,and Z define the coordinates for the volume V. The struct fv contains the facesand vertices of the isosurface, which you can pass directly to the patchcommand.fv = isosurface(V,isovalue) 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).fv = isosurface(...,'noshare') does not create shared vertices. This isfaster, but produces a larger set of vertices.fv = isosurface(...,'verbose') prints progress messages to the commandwindow as the computation progresses.[f,v] = isosurface(...) returns the faces and vertices in two arrays insteadof a struct.isosurface(...) with no output arguments creates a patch using thecomputed faces and vertices.You can pass the fv structure created by isosurface directly to the patchcommand, but you cannot pass the individual faces and vertices arrays (f, v) topatch without specifying property names. For example,patch(isosurface(X,Y,Z,V,isovalue))or[f,v] = isosurface(X,Y,Z,V,isovalue);patch('Faces',f,'Vertices',v)2-255

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!