geth3dpools

Gets defined pools inside an open instance.

Syntax

R = geth3dpools(fid, [, datatype])

Inputs

fid
Integer representing the file ID, returned from createh3dfile().
Type: double | integer
datatype
A datatype name or index.
Type: string | int

Outputs

R
Cell containing all pool names in an H3D file with correct indexing or pool names in a datatype if name/index was given.
Type: double | cell

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');

pools = geth3dpools(idx)
closeh3dfile(idx);