Be the first to rate this file! 1 Download (last 30 days) File Size: 2.25 KB File ID: #33962
image thumbnail

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

by

 

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

| Watch this File

File Information
Description

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

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

Parameters:
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: ExportedAvizoSurface.surf
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];
Example:
[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 = 'ExportedSurfaces.surf';
colourExterior = [1 0.8 0.4];
writeAvizoSurfMulti(faceList,vertexList,filename,idList, colourList,colourExterior)

Author: Sheng Yue
Email:sheng.yue.84@gmail.com
Created:24 November 2011
Version:1.0

Acknowledgements

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