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:
- model
TimberModel The model to which the elements and this joint belong.
- cluster
Cluster 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.
- model
- Returns:
JointThe joint created from the elements and the joint type.
BeamJoiningErroror NoneError that occurred during joint creation.