EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
EBGeometry::FaceGroups Struct Reference

Named groups of a mesh's faces: an OBJ file's g and o groups, or the named solids of an ASCII STL file, as the readers keep them (PolygonSoup::getFaceGroups()). More...

#include <EBGeometry_FaceGroups.hpp>

Collaboration diagram for EBGeometry::FaceGroups:
Collaboration graph
[legend]

Public Member Functions

bool empty () const noexcept
 Whether any face is in a group.
 

Public Attributes

std::vector< std::string > m_names
 The groups' names, in the order they first appear in the file.
 
std::vector< uint32_t > m_group
 Each face's group, or None; empty when the file names no groups.
 

Static Public Attributes

static constexpr uint32_t None = 0xFFFFFFFFU
 A face in no group.
 

Detailed Description

Named groups of a mesh's faces: an OBJ file's g and o groups, or the named solids of an ASCII STL file, as the readers keep them (PolygonSoup::getFaceGroups()).

Face i is in group m_group[i], whose name is m_names[m_group[i]], or in none (None). A face belongs to one group at most: in an OBJ file the last g or o line before it. SurfaceLabel(shape, groups) turns the groups into labels of the mesh's parts, its faces (see hasParts).

Member Function Documentation

◆ empty()

bool EBGeometry::FaceGroups::empty ( ) const
inlinenoexcept

Whether any face is in a group.

Returns
True if the file named groups.

The documentation for this struct was generated from the following file: