From 8478eb9aa0547b4213e03a33078a6b61c1fd89ea Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 21 Apr 2023 16:29:04 +0200 Subject: [PATCH] Update draw.py --- src/ifcopenshell-python/ifcopenshell/draw.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/draw.py b/src/ifcopenshell-python/ifcopenshell/draw.py index 3b3c76d4a0..04f1b3a39d 100644 --- a/src/ifcopenshell-python/ifcopenshell/draw.py +++ b/src/ifcopenshell-python/ifcopenshell/draw.py @@ -201,6 +201,10 @@ def main(settings, files, iterators=None, merge_projection=True, progress_functi projection, g1 = g1, g1.parentNode svgfill_context = W.context(W.FILTERED_CARTESIAN_QUOTIENT, 1.0e-3) + + # remove duplicates (without tolerance) + ls = list(map(tuple, set(map(frozenset, ls)))) + svgfill_context.add(ls) if settings.merge_cells: