From f6de7ad3f3307579cfc44f53d5617e8e41d3855a Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Wed, 11 Sep 2024 16:51:27 +0200 Subject: [PATCH] set proper tolerance in model component --- CHANGELOG.md | 2 ++ src/compas_timber/ghpython/components/CT_Model/code.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb30d68ca..d2470d230 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +* Implemented a workaround for https://github.com/gramaziokohler/compas_timber/issues/280. + ### Removed diff --git a/src/compas_timber/ghpython/components/CT_Model/code.py b/src/compas_timber/ghpython/components/CT_Model/code.py index 3ebc28648..1cc48733c 100644 --- a/src/compas_timber/ghpython/components/CT_Model/code.py +++ b/src/compas_timber/ghpython/components/CT_Model/code.py @@ -23,6 +23,10 @@ } +# workaround for https://github.com/gramaziokohler/compas_timber/issues/280 +TOL.absolute = 1e-6 + + class ModelComponent(component): def get_joints_from_rules(self, beams, rules, topologies): if not isinstance(rules, list):