Wildmeshing Toolkit
Loading...
Searching...
No Matches
Common.h
1// This file is part of TetWild, a software for generating tetrahedral meshes.
2//
3// Copyright (C) 2018 Jeremie Dumas <jeremie.dumas@ens-lyon.org>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8//
9// Created by Jeremie Dumas on 09/04/18.
10//
11
12#pragma once
13
14#include "ForwardDecls.h"
15
16#include <unordered_set>
17#include <vector>
18
19namespace wmtk::components::tetwild::orig {
20
21bool isHaveCommonEle(const std::unordered_set<int>& v1, const std::unordered_set<int>& v2);
22void setIntersection(
23 const std::unordered_set<int>& s1,
24 const std::unordered_set<int>& s2,
25 std::unordered_set<int>& s);
26void setIntersection(
27 const std::unordered_set<int>& s1,
28 const std::unordered_set<int>& s2,
29 std::vector<int>& s);
30
31} // namespace wmtk::components::tetwild::orig