geth3ddatatypebind
Gets data binding in a datatype.
Syntax
R = geth3ddatatypebind(fid, [, datatype])
Inputs
- fid
- Integer representing the file ID, returned from createh3dfile().
- datatype
- A datatype name or index.
Outputs
- R
- Data binding as the datatype was defined. For example, "node", "elem".
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');
% datattypes
datatypes = geth3ddatatypes(idx)
for it = 1:length(datatypes)
bind = geth3ddatatypebind(idx, it)
end
closeh3dfile(idx);
Comments
It returns “undefined” if an existing datatype is not supported for writing using the OMLH3D Toolbox. This can be true for some datatypes coming from a solver.