EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
EBGeometry_FaceGroups.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Robert Marskar <robert.marskar@sintef.no>
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
11#ifndef EBGEOMETRY_FACEGROUPS_HPP
12#define EBGEOMETRY_FACEGROUPS_HPP
13
14// Std includes
15#include <cstdint>
16#include <string>
17#include <vector>
18
19namespace EBGeometry {
20
29{
33 static constexpr uint32_t None = 0xFFFFFFFFU;
34
38 std::vector<std::string> m_names;
39
43 std::vector<uint32_t> m_group;
44
49 [[nodiscard]] bool
50 empty() const noexcept
51 {
52 return m_names.empty();
53 }
54};
55
56} // namespace EBGeometry
57
58#endif
Namespace containing all of EBGeometry's functionality.
Definition EBGeometry_Affine.hpp:26
Named groups of a mesh's faces: an OBJ file's g and o groups, or the named solids of an ASCII STL fil...
Definition EBGeometry_FaceGroups.hpp:29
std::vector< uint32_t > m_group
Each face's group, or None; empty when the file names no groups.
Definition EBGeometry_FaceGroups.hpp:43
bool empty() const noexcept
Whether any face is in a group.
Definition EBGeometry_FaceGroups.hpp:50
std::vector< std::string > m_names
The groups' names, in the order they first appear in the file.
Definition EBGeometry_FaceGroups.hpp:38
static constexpr uint32_t None
A face in no group.
Definition EBGeometry_FaceGroups.hpp:33