datah3dtypehascorners
Queries if a datatype may accept corner data at writing.
Syntax
R = datah3dtypehascorners(fid, [, datatype])
Inputs
- fid
- Integer representing the file ID, returned from createh3dfile().
- datatype
- A datatype name or index.
Outputs
- R
- It can be 1 or 0, depending on if a datatype can accept corner data or not.
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)
% datah3dtypehascorners
for it = 1:length(datatypes)
corner = datah3dtypehascorners(idx, it)
end
closeh3dfile(idx);