PathScripts.PathOpTools Namespace Reference

Functions

def debugEdge (label, e)
 
def debugWire (label, w)
 
def isWireClockwise (w)
 
def offsetWire (wire, base, offset, forward, Side=None)
 
def orientWire (w, forward=True)
 
def translate (context, text, disambig=None)
 

Variables

 Part
 
 PrintWireDebug
 

Function Documentation

◆ debugEdge()

def PathScripts.PathOpTools.debugEdge (   label,
  e 
)
debugEdge(label, e) ... prints a python statement to create e
Currently lines and arcs are supported.

Referenced by PathScripts.PathOpTools.debugWire().

◆ debugWire()

def PathScripts.PathOpTools.debugWire (   label,
  w 
)
debugWire(label, w) ... prints python statements for all edges of w to be added to the object tree in a group.

References PathScripts.PathOpTools.debugEdge().

Referenced by PathScripts.PathOpTools.offsetWire().

◆ isWireClockwise()

def PathScripts.PathOpTools.isWireClockwise (   w)
isWireClockwise(w) ... returns True if the wire winds clockwise. 

◆ offsetWire()

def PathScripts.PathOpTools.offsetWire (   wire,
  base,
  offset,
  forward,
  Side = None 
)
offsetWire(wire, base, offset, forward) ... offsets the wire away from base and orients the wire accordingly.
The function tries to avoid most of the pitfalls of Part.makeOffset2D which is possible because all offsetting
happens in the XY plane.

References PathScripts.PathOpTools.debugWire(), and PathScripts.PathOpTools.orientWire().

◆ orientWire()

def PathScripts.PathOpTools.orientWire (   w,
  forward = True 
)
orientWire(w, forward=True) ... orients given wire in a specific direction.
If forward = True (the default) the wire is oriented clockwise, looking down the negative Z axis.
If forward = False the wire is oriented counter clockwise.
If forward = None the orientation is determined by the order in which the edges appear in the wire.

Referenced by PathScripts.PathOpTools.offsetWire().

◆ translate()

def PathScripts.PathOpTools.translate (   context,
  text,
  disambig = None 
)

Variable Documentation

◆ Part

PathScripts.PathOpTools.Part

◆ PrintWireDebug

PathScripts.PathOpTools.PrintWireDebug