createh3dlayer
Creates a layer to be added to the H3D file.
Syntax
layerid = createh3dlayer(fid, layer)
Inputs
- fid
- Integer representing the file ID, returned from createh3dfile().
- layer
- Layer name.
Outputs
- layerid
- Integer representing the ID of the layer.
Example
% Create a file
idx =createh3dfile(resultFile, 'append')
% Create a layer
lidx1 =createh3dlayer(idx, 'Layer 1');