Wildmeshing Toolkit
Loading...
Searching...
No Matches
SurfaceTagAttributes.h
1#pragma once
2
3namespace wmtk {
4
15{
16public:
18 bool m_is_surface_fs = false;
20 int m_is_bbox_fs = -1;
21
38
39 void reset()
40 {
41 m_is_surface_fs = false;
42 m_is_bbox_fs = -1;
44 }
45
46 void merge(const SurfaceTagAttributes& attr)
47 {
49 if (attr.m_is_bbox_fs >= 0) m_is_bbox_fs = attr.m_is_bbox_fs;
51 }
52};
53
54} // namespace wmtk
Whether a codimension-1 simplex is tracked surface, and which bbox side it lies on.
Definition SurfaceTagAttributes.h:15
int m_is_bbox_fs
Which bbox side this simplex is on; -1 for none.
Definition SurfaceTagAttributes.h:20
int m_surface_class
Which tracked surface this simplex belongs to, for applications that track more than one.
Definition SurfaceTagAttributes.h:37
bool m_is_surface_fs
Is this simplex part of the tracked surface.
Definition SurfaceTagAttributes.h:18