DirectRule.try_create_joint

DirectRule.try_create_joint(model, cluster, max_distance=None)[source]

Returns a Joint if the given cluster’s elements comply with this DirectRule.

Parameters:
modelTimberModel

The model to which the elements and this joint belong.

clusterCluster

The cluster of elements attemped to be joined.

max_distancefloat, optional

The maximum distance to consider two elements as intersecting. Defaults to TOL.absolute. This is the general model.max_distance and will be overriden if the rule has a max_distance.

Returns:
Joint

The joint created from the elements and the joint type.

BeamJoiningError or None

Error that occurred during joint creation.