https://github.com/NSchertler/GeneralizedMotorcycleGraph
Tip revision: a34738fe34a051760b4042dc9d740231e511fec1 authored by Nico Schertler on 31 October 2020, 07:04:57 UTC
Updated access token
Updated access token
Tip revision: a34738f
PatchSet.h
#pragma once
#include "common.h"
#include "FencedRegion.h"
#include <map>
#include <vector>
struct EnteringEdge
{
size_t patchIdx;
int enteringViaEdgeColor;
EnteringEdge() { }
EnteringEdge(size_t patchIdx, int enteringViaEdgeColor)
: patchIdx(patchIdx), enteringViaEdgeColor(enteringViaEdgeColor)
{ }
};
struct PatchSet
{
std::map<HEMesh::HalfedgeHandle, EnteringEdge> enteringEdgeToPatch;
std::vector<FencedRegion> patches;
void clear()
{
patches.clear();
enteringEdgeToPatch.clear();
}
};