draftgeoutils.arcs Namespace Reference

Functions

def arcFrom2Pts (firstPt, lastPt, center, axis=None)
 
def arcFromSpline (edge)
 
def isClockwise (edge, ref=None)
 
def isWideAngle (edge)
 

Variables

 Part = lz.LazyLoader("Part", globals(), "Part")
 

Function Documentation

◆ arcFrom2Pts()

def draftgeoutils.arcs.arcFrom2Pts (   firstPt,
  lastPt,
  center,
  axis = None 
)
Build an arc with center and 2 points, can be oriented with axis.

◆ arcFromSpline()

def draftgeoutils.arcs.arcFromSpline (   edge)
Turn given edge into a circular arc from three points.

Takes its first point, midpoint and endpoint. It works best with bspline
segments such as those from imported svg files. Use this only
if you are sure your edge is really an arc.

It returns None if there is a problem, including passing straight edges.

◆ isClockwise()

def draftgeoutils.arcs.isClockwise (   edge,
  ref = None 
)
Return True if a circle-based edge has a clockwise direction.

References DraftVecUtils.angle(), and DraftVecUtils.isNull().

◆ isWideAngle()

def draftgeoutils.arcs.isWideAngle (   edge)
Return True if the given edge is an arc with angle > 180 degrees.

Variable Documentation

◆ Part

draftgeoutils.arcs.Part = lz.LazyLoader("Part", globals(), "Part")