Blender V4.3
stl_data.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9#include <cstdint>
10
11namespace blender::io::stl {
12
13#pragma pack(push, 1)
19#pragma pack(pop)
20
21inline constexpr size_t BINARY_HEADER_SIZE = 80;
22inline constexpr size_t BINARY_STRIDE = sizeof(PackedTriangle);
23
24static_assert(sizeof(PackedTriangle) == 12 + (12 * 3) + 2,
25 "PackedTriangle expected size mismatch");
26
27} // namespace blender::io::stl
constexpr size_t BINARY_STRIDE
Definition stl_data.hh:22
constexpr size_t BINARY_HEADER_SIZE
Definition stl_data.hh:21
unsigned short uint16_t
Definition stdint.h:79