SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_session_polygon_internal_Region_h
11 #define smtk_session_polygon_internal_Region_h
13 #include "smtk/session/polygon/Operation.h"
14 #include "smtk/session/polygon/internal/Fragment.h"
16 #include "smtk/common/UnionFind.h"
35 class SMTKPOLYGONSESSION_EXPORT
Region
38 FragmentId m_seedFragment;
39 bool m_seedSense{
true };
41 std::set<int> m_innerLoops;
44 Region(FragmentId seedFrag,
bool seedSense);
46 void merge(
const Region* other);
50 typedef std::map<RegionIdSet::value_type, smtk::shared_ptr<Region>>
RegionDefinitions;
56 #endif // smtk_session_polygon_internal_Region_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
A disjoint-set structure for fast union-find operations.
Definition: UnionFind.h:53
std::map< RegionId, smtk::shared_ptr< Region > > RegionDefinitions
A map to hold each region's definition indexed by its UF region ID.
Definition: Fragment.h:39
A structure to hold chains of coedges bounding regions of space.
Definition: Region.h:35
smtk::common::UnionFind< RegionId > RegionIdSet
The set of all regions is a UnionFind (UF) data structure.
Definition: Fragment.h:38