智慧水务管理系统 - 精河县供水工程综合管理平台

VoxelMetadataOrder.js 660B

1234567891011121314151617181920212223242526272829
  1. // @ts-check
  2. /**
  3. * Metadata ordering for voxel content.
  4. * In all cases, x data is contiguous in strides along the y axis,
  5. * and each group of y strides represents a z slice.
  6. * However, the orientation of the axes follows different conventions.
  7. *
  8. * @enum {number}
  9. * @private
  10. */
  11. const VoxelMetadataOrder = {
  12. /**
  13. * The default ordering following the 3D Tiles convention. Z-axis points upward.
  14. * @type {number}
  15. * @constant
  16. */
  17. Z_UP: 0,
  18. /**
  19. * The ordering following the glTF convention. Y-axis points upward.
  20. * @type {number}
  21. * @constant
  22. */
  23. Y_UP: 1,
  24. };
  25. Object.freeze(VoxelMetadataOrder);
  26. export default VoxelMetadataOrder;