mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +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
|
||||
|
||||
#ifdef SVGFILL_DEBUG
|
||||
#if 0
|
||||
#include <nlohmann/json.hpp>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
template <typename Kernel>
|
||||
class Graph2D {
|
||||
@@ -334,6 +336,16 @@ public:
|
||||
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() {
|
||||
#ifdef SVGFILL_DEBUG
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user