Welcome to mirror list, hosted at ThFree Co, Russian Federation.

stl_import_ascii_reader.hh « importer « stl « io « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e8aed911bf1012adb852e971c9a5972f3641a71c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* SPDX-License-Identifier: GPL-2.0-or-later */

/** \file
 * \ingroup stl
 */

#pragma once

#include <cstdio>

#include "BKE_mesh.h"

#include "stl_import.hh"

/**
 * ASCII STL spec:
 * <pre>
 * solid name
 *   facet normal ni nj nk
 *     outer loop
 *       vertex v1x v1y v1z
 *       vertex v2x v2y v2z
 *       vertex v3x v3y v3z
 *     endloop
 *   endfacet
 *   ...
 * endsolid name
 * </pre>
 */

namespace blender::io::stl {

Mesh *read_stl_ascii(const char *filepath, Main *bmain, char *mesh_name, bool use_custom_normals);

}  // namespace blender::io::stl