DirectRule.comply
- DirectRule.comply(elements, model_max_distance=1e-09)[source]
Returns True if the given elements comply with this DirectRule. Checks if the distance between the centerlines of the elements is less than the max_distance. Does not check for JointTopology compliance.
- Parameters:
- elementstuple(
TimberElement
,TimberElement
) A tuple containing two elements to check.
- model_max_distancefloat, optional
The maximum distance to consider two elements as intersecting. Defaults to TOL.absolute. This is only used if the rule does not already have a max_distance set.
- elementstuple(
- Returns:
- bool
True if the elements comply with the rule, False otherwise.