mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 20:00:02 +00:00
arrange_poly: Refactor into logical blocks; add timing
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -2,8 +2,10 @@
|
|||||||
#define GRAPH_2D_H
|
#define GRAPH_2D_H
|
||||||
|
|
||||||
#ifdef SVGFILL_DEBUG
|
#ifdef SVGFILL_DEBUG
|
||||||
|
#if 0
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
template <typename Kernel>
|
template <typename Kernel>
|
||||||
class Graph2D {
|
class Graph2D {
|
||||||
@@ -334,6 +336,16 @@ public:
|
|||||||
return Graph2D(input_adjacency_list);
|
return Graph2D(input_adjacency_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
void to_arrangement(T& arr) {
|
||||||
|
for (auto it = edges_begin(); it != edges_end(); ++it) {
|
||||||
|
if (it->first == it->second) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
CGAL::insert(arr, CGAL::Segment_2<Kernel>(it->first, it->second));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void assert_symmetric() {
|
void assert_symmetric() {
|
||||||
#ifdef SVGFILL_DEBUG
|
#ifdef SVGFILL_DEBUG
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
Reference in New Issue
Block a user