View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Export multiple Matlab surfaces to a single Avizo© (VSG) compatible surface

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 2.25 KB File ID: #33962 Version: 1.0
image thumbnail

Export multiple Matlab surfaces to a single Avizo© (VSG) compatible surface



Export multiple Matlab surfaces to a single Avizo© (VSG) compatible surface ((HyperSurface 0.1 ASCII

| Watch this File

File Information

writeAvizoSurfMulti save several surfaces defined by vertices and triangular
faces to a single Avizo?(VSG) compatible surface (HyperSurface 0.1 ASCII).

writeAvizoSurfMulti(faceList,vertexList,filename,idList, colourList,colourExterior);
writeAvizoSurfMulti(faceList,vertexList,filename,idList, colourList);

faceList- A cell array of triangular faces, each cell is a n by 3
vertexList- A cell array of vertices, each cell is a n by 3
filename- the filename for exported surface
- Default value:
idList- A cell array of surface labels.
colourList- A cell array of surface colour;
colourExterior- the colour of the background
- Default value: [0.8 0.8 0.8];
[xx yy zz] = ellipsoid(0,0,0,50,40,30,30);
Tissue01 = surf2patch(xx,yy,zz,'triangles');
Tissue02 = Tissue01;
Tissue02.vertices = Tissue02.vertices*1.6 + 100;
Tissue03 = Tissue01;
Tissue03.vertices = Tissue03.vertices*0.8 -50;
vertexList = {Tissue01.vertices; Tissue02.vertices; Tissue03.vertices}
faceList = {Tissue01.faces; Tissue02.faces; Tissue03.faces}
idList = {'Tissue01'; 'Tissue02'; 'Tissue03'}
colourList = {[1 0 0]; [ 0 1 0]; [ 0 1 1]}
filename = '';
colourExterior = [1 0.8 0.4];
writeAvizoSurfMulti(faceList,vertexList,filename,idList, colourList,colourExterior)

Author: Sheng Yue
Created:24 November 2011


Export A Matlab Surface To An Avizo© (Vsg) Compatible Surface inspired this file.

MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us