geth3dlayers
Gets defined pools inside an open instance.
Syntax
R = geth3dlayers(fid, [, datatype])
Inputs
- fid
 - Integer representing the file ID, returned from createh3dfile().
 - datatype
 - A datatype name or index.
 
Outputs
- R
 - Cell containing all layer names in an H3D file with correct indexing, or layers names in a datatype if name/index was given.
 
Example
% File : test.oml
clear all; close all; clc;
cd(fileparts(omlfilename('fullpath')));
modelFile = 'test1.h3d';
resultFile = 'test1_query.h3d';
delete(resultFile); 
copyfile(modelFile, resultFile, 'f');
idx = createh3dfile(resultFile, 'append');
layers = geth3dlayers(idx)
closeh3dfile(idx);