Blender V5.0
stl_export_writer.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <cstdint>
12#include <cstdio>
13
14namespace blender::io::stl {
15
16struct PackedTriangle;
17
19 public:
20 FileWriter(const char *filepath, bool ascii);
23
24 private:
25 FILE *file_;
26 uint32_t tris_num_;
27 bool ascii_;
28};
29
30} // namespace blender::io::stl
BMesh const char void * data
FileWriter(const char *filepath, bool ascii)
void write_triangle(const PackedTriangle &data)