Functions

def join_two_wires (wire1, wire2)
 
def join_wires (wires, joinAttempts=0)
 

Variables

def joinTwoWires = join_two_wires
 
def joinWires = join_wires
 

Function Documentation

◆ join_two_wires()

def draftfunctions.join.join_two_wires (   wire1,
  wire2 
)
joinTwoWires(object, object): joins two wires if they share a common point as a start or an end. BUG: it occasionally fails to join lines even if the lines visually share a point. This is a rounding error in the comparison of the shared point; a small difference will result in the points being considered different and thus the lines not joining. Test properly using `DraftVecUtils.equals` because then it will consider the precision set in the Draft preferences.

◆ join_wires()

def draftfunctions.join.join_wires (   wires,
  joinAttempts = 0 
)
joinWires(objects): merges a set of wires where possible, if any of those wires have a coincident start and end point

References draftfunctions.join.joinTwoWires, and draftfunctions.join.joinWires.

Variable Documentation

◆ joinTwoWires

def draftfunctions.join.joinTwoWires = join_two_wires

◆ joinWires

def draftfunctions.join.joinWires = join_wires