write_data_block_header

subsurface.writer.to_rex.common.write_data_block_header(size_data, data_id=1, data_type=3, version_data=1)[source]

Function to write a DATA BLOCK header.

Parameters
  • size_data – data block size (without header)

  • data_id – id which is used in the database

  • data_type (int) – Type of data the data block contains: * 0 LineSet A list of vertices which get connected by line segments * 1 Text A position information and the actual text * 2 PointList A list of 3D points with color information (e.g. point cloud) * 3 Mesh A triangle mesh datastructure️ * 4 Image A single of arbitrary format can be stored in this block * 5 MaterialStandard A standard (mesh) material definition * 6 SceneNode A wrapper around a data block which can be used in the scenegraph * 7 Track A track is a tracked position and orientation of an AR device

  • version_data – version for this data block

Returns: