Skip to content

Commit

Permalink
fixed topo detection tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Mar 17, 2024
1 parent 2133a58 commit 63153c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compas_timber/ghpython/components/CT_Assembly/code.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from compas.tolerance import TOL
from compas.scene import Scene
from ghpythonlib.componentbase import executingcomponent as component
from Grasshopper.Kernel.GH_RuntimeMessageLevel import Warning
Expand Down Expand Up @@ -89,11 +90,12 @@ def RunScript(self, Beams, JointRules, Features, MaxDistance, CreateGeometry):
if not (Beams): # shows beams even if no joints are found
return
if MaxDistance is None:
MaxDistance = 0.0
MaxDistance = TOL.ABSOLUTE # compared to calculted distance, so shouldn't be just 0.0

Assembly = TimberModel()
debug_info = DebugInfomation()
for beam in Beams:
# prepare beams for downstream processing
beam.remove_features()
beam.remove_blank_extension()
beam.debug_infos = []
Expand Down

0 comments on commit 63153c1

Please sign in to comment.