CategoryRule.comply

CategoryRule.comply(elements, model_max_distance=1e-09)[source]

Checks if the given elements comply with this CategoryRule. It checks:

that the elements have the expected category attribute, that the max_distance is not exceeded, that the joint supports the topology of the elements.

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.

Returns:
bool

True if the elements comply with the rule, False otherwise.