exportDRAWEXE Namespace Reference

Classes

class  Drawexporter
 

Functions

def ax2_xdir (normal)
 
def export (exportList, filename)
 
def f2s (n, angle=False, axis=False)
 
def formatobjtype (ob)
 
def isDeform (ob)
 
def isDraftCircle (ob)
 
def isDraftClone (ob)
 
def isDraftEllipse (ob)
 
def isDraftFeature (ob)
 
def isDraftPoint (ob)
 
def isDraftPolygon (ob)
 
def isDraftShape2DView (ob)
 
def isDraftWire (ob)
 
def isOpenSCADFeature (ob)
 
def isOpenSCADMultMatrixFeature (ob)
 
def occversiontuple ()
 
def placement2draw (placement, name='object')
 
def polygonstr (r, pcount)
 
def quaternionToString (rot)
 
def saveShape (csg, filename, shape, name, hasplacement=True, cleanshape=False)
 

Variables

 pythonopen = open
 

Function Documentation

◆ ax2_xdir()

def exportDRAWEXE.ax2_xdir (   normal)

◆ export()

def exportDRAWEXE.export (   exportList,
  filename 
)

◆ f2s()

def exportDRAWEXE.f2s (   n,
  angle = False,
  axis = False 
)
convert to numerical value to string
try to remove no significant digits, by guessing a former rounding

Referenced by exportDRAWEXE.Drawexporter.export_annotations(), placement2draw(), polygonstr(), and exportDRAWEXE.Drawexporter.process_object().

◆ formatobjtype()

def exportDRAWEXE.formatobjtype (   ob)

◆ isDeform()

def exportDRAWEXE.isDeform (   ob)
tests whether the object is a Matrix transformation
that does a non-uniform scaling

References isOpenSCADMultMatrixFeature().

Referenced by exportDRAWEXE.Drawexporter.process_object().

◆ isDraftCircle()

def exportDRAWEXE.isDraftCircle (   ob)

◆ isDraftClone()

def exportDRAWEXE.isDraftClone (   ob)

◆ isDraftEllipse()

def exportDRAWEXE.isDraftEllipse (   ob)

◆ isDraftFeature()

def exportDRAWEXE.isDraftFeature (   ob)

◆ isDraftPoint()

def exportDRAWEXE.isDraftPoint (   ob)

◆ isDraftPolygon()

def exportDRAWEXE.isDraftPolygon (   ob)

◆ isDraftShape2DView()

def exportDRAWEXE.isDraftShape2DView (   ob)

◆ isDraftWire()

def exportDRAWEXE.isDraftWire (   ob)

◆ isOpenSCADFeature()

def exportDRAWEXE.isOpenSCADFeature (   ob)

◆ isOpenSCADMultMatrixFeature()

def exportDRAWEXE.isOpenSCADMultMatrixFeature (   ob)

Referenced by isDeform().

◆ occversiontuple()

def exportDRAWEXE.occversiontuple ( )

◆ placement2draw()

def exportDRAWEXE.placement2draw (   placement,
  name = 'object' 
)
converts a FreeCAD Placement to trotate and ttranslate commands

References f2s().

Referenced by exportDRAWEXE.Drawexporter.process_object().

◆ polygonstr()

def exportDRAWEXE.polygonstr (   r,
  pcount 
)

◆ quaternionToString()

def exportDRAWEXE.quaternionToString (   rot)

◆ saveShape()

def exportDRAWEXE.saveShape (   csg,
  filename,
  shape,
  name,
  hasplacement = True,
  cleanshape = False 
)

Variable Documentation

◆ pythonopen

exportDRAWEXE.pythonopen = open