Classes | |
class OpenSCADError | |
Functions | |
def angneg (d) | |
def applyPlacement (shape) | |
def callopenscad (inputfilename, outputfilename=None, outputext='csg', keepname=False) | |
def callopenscadmeshstring (scadstr) | |
def callopenscadstring (scadstr, outputext='csg') | |
def comparerotations (r1, r2) | |
def decomposerotoinversion (m, precision=4) | |
def detsubmatrix (s) | |
def fcsubmatrix (m) | |
def findbestmatchingrotation (r1) | |
def getopenscadexe (osfilename=None) | |
def getopenscadversion (osfilename=None) | |
def isorthogonal (submatrix, precision=4) | |
def isrotoinversionpython (submat, precision=4) | |
def isspecialorthogonal (mat, precision=4) | |
def isspecialorthogonalpython (submat, precision=4) | |
def meshopinline (opname, iterable1) | |
def meshoponobjs (opname, inobjs) | |
def meshoptempfile (opname, iterable1) | |
def mirror2mat (nv, bv) | |
def multiplymat (l, r) | |
def newtempfilename () | |
def process2D_ObjectsViaOpenSCAD (ObjList, Operation, doc=None) | |
def process2D_ObjectsViaOpenSCADShape (ObjList, Operation, doc) | |
def process3D_ObjectsViaOpenSCAD (doc, ObjList, Operation) | |
def process3D_ObjectsViaOpenSCADShape (ObjList, Operation, maxmeshpoints=None) | |
def process_ObjectsViaOpenSCAD (doc, children, name) | |
def process_ObjectsViaOpenSCADShape (doc, children, name, maxmeshpoints=None) | |
def removesubtree (objs) | |
def reverseimporttypes () | |
def roundrotation (rot, maxangulardistance=1e-5) | |
def searchforopenscadexe () | |
def shorthexfloat (f) | |
def translate (context, text) | |
def vec2householder (nv) | |
def workaroundforissue128needed () | |
Variables | |
BaseError = FreeCAD.Base.FreeCADError | |
Function Documentation
◆ angneg()
def OpenSCADUtils.angneg | ( | d | ) |
◆ applyPlacement()
def OpenSCADUtils.applyPlacement | ( | shape | ) |
◆ callopenscad()
def OpenSCADUtils.callopenscad | ( | inputfilename, | |
outputfilename = None , |
|||
outputext = 'csg' , |
|||
keepname = False |
|||
) |
Referenced by callopenscadstring().
◆ callopenscadmeshstring()
def OpenSCADUtils.callopenscadmeshstring | ( | scadstr | ) |
References callopenscadstring().
Referenced by meshopinline(), and meshoptempfile().
◆ callopenscadstring()
def OpenSCADUtils.callopenscadstring | ( | scadstr, | |
outputext = 'csg' |
|||
) |
References callopenscad().
Referenced by OpenSCADCommands.AddSCADTask.addelement(), callopenscadmeshstring(), prototype.openscadmesh(), and process2D_ObjectsViaOpenSCADShape().
◆ comparerotations()
def OpenSCADUtils.comparerotations | ( | r1, | |
r2 | |||
) |
Referenced by findbestmatchingrotation(), and roundrotation().
◆ decomposerotoinversion()
def OpenSCADUtils.decomposerotoinversion | ( | m, | |
precision = 4 |
|||
) |
References fcsubmatrix().
◆ detsubmatrix()
def OpenSCADUtils.detsubmatrix | ( | s | ) |
Referenced by isrotoinversionpython(), and isspecialorthogonalpython().
◆ fcsubmatrix()
def OpenSCADUtils.fcsubmatrix | ( | m | ) |
Referenced by decomposerotoinversion().
◆ findbestmatchingrotation()
def OpenSCADUtils.findbestmatchingrotation | ( | r1 | ) |
References comparerotations().
Referenced by roundrotation().
◆ getopenscadexe()
def OpenSCADUtils.getopenscadexe | ( | osfilename = None | ) |
References searchforopenscadexe().
◆ getopenscadversion()
def OpenSCADUtils.getopenscadversion | ( | osfilename = None | ) |
Referenced by workaroundforissue128needed().
◆ isorthogonal()
def OpenSCADUtils.isorthogonal | ( | submatrix, | |
precision = 4 |
|||
) |
References multiplymat().
Referenced by isrotoinversionpython(), and isspecialorthogonalpython().
◆ isrotoinversionpython()
def OpenSCADUtils.isrotoinversionpython | ( | submat, | |
precision = 4 |
|||
) |
References detsubmatrix(), and isorthogonal().
◆ isspecialorthogonal()
def OpenSCADUtils.isspecialorthogonal | ( | mat, | |
precision = 4 |
|||
) |
◆ isspecialorthogonalpython()
def OpenSCADUtils.isspecialorthogonalpython | ( | submat, | |
precision = 4 |
|||
) |
References detsubmatrix(), and isorthogonal().
◆ meshopinline()
def OpenSCADUtils.meshopinline | ( | opname, | |
iterable1 | |||
) |
References callopenscadmeshstring().
◆ meshoponobjs()
def OpenSCADUtils.meshoponobjs | ( | opname, | |
inobjs | |||
) |
References meshoptempfile().
◆ meshoptempfile()
def OpenSCADUtils.meshoptempfile | ( | opname, | |
iterable1 | |||
) |
References callopenscadmeshstring().
Referenced by meshoponobjs(), and process3D_ObjectsViaOpenSCADShape().
◆ mirror2mat()
def OpenSCADUtils.mirror2mat | ( | nv, | |
bv | |||
) |
References vec2householder().
Referenced by expandplacements.expandplacements().
◆ multiplymat()
def OpenSCADUtils.multiplymat | ( | l, | |
r | |||
) |
Referenced by isorthogonal().
◆ newtempfilename()
def OpenSCADUtils.newtempfilename | ( | ) |
◆ process2D_ObjectsViaOpenSCAD()
def OpenSCADUtils.process2D_ObjectsViaOpenSCAD | ( | ObjList, | |
Operation, | |||
doc = None |
|||
) |
References process2D_ObjectsViaOpenSCADShape().
Referenced by process_ObjectsViaOpenSCAD().
◆ process2D_ObjectsViaOpenSCADShape()
def OpenSCADUtils.process2D_ObjectsViaOpenSCADShape | ( | ObjList, | |
Operation, | |||
doc | |||
) |
References callopenscadstring(), and importDXF.export().
Referenced by process2D_ObjectsViaOpenSCAD(), and process_ObjectsViaOpenSCADShape().
◆ process3D_ObjectsViaOpenSCAD()
def OpenSCADUtils.process3D_ObjectsViaOpenSCAD | ( | doc, | |
ObjList, | |||
Operation | |||
) |
References process3D_ObjectsViaOpenSCADShape().
Referenced by process_ObjectsViaOpenSCAD().
◆ process3D_ObjectsViaOpenSCADShape()
def OpenSCADUtils.process3D_ObjectsViaOpenSCADShape | ( | ObjList, | |
Operation, | |||
maxmeshpoints = None |
|||
) |
References meshoptempfile().
Referenced by process3D_ObjectsViaOpenSCAD(), and process_ObjectsViaOpenSCADShape().
◆ process_ObjectsViaOpenSCAD()
def OpenSCADUtils.process_ObjectsViaOpenSCAD | ( | doc, | |
children, | |||
name | |||
) |
References process2D_ObjectsViaOpenSCAD(), and process3D_ObjectsViaOpenSCAD().
◆ process_ObjectsViaOpenSCADShape()
def OpenSCADUtils.process_ObjectsViaOpenSCADShape | ( | doc, | |
children, | |||
name, | |||
maxmeshpoints = None |
|||
) |
References process2D_ObjectsViaOpenSCADShape(), and process3D_ObjectsViaOpenSCADShape().
◆ removesubtree()
def OpenSCADUtils.removesubtree | ( | objs | ) |
Referenced by OpenSCADCommands.RemoveSubtree.Activated().
◆ reverseimporttypes()
def OpenSCADUtils.reverseimporttypes | ( | ) |
◆ roundrotation()
def OpenSCADUtils.roundrotation | ( | rot, | |
maxangulardistance = 1e-5 |
|||
) |
References comparerotations(), and findbestmatchingrotation().
◆ searchforopenscadexe()
def OpenSCADUtils.searchforopenscadexe | ( | ) |
Referenced by getopenscadexe(), and InitGui.OpenSCADWorkbench.Initialize().
◆ shorthexfloat()
def OpenSCADUtils.shorthexfloat | ( | f | ) |
◆ translate()
def OpenSCADUtils.translate | ( | context, | |
text | |||
) |
◆ vec2householder()
def OpenSCADUtils.vec2householder | ( | nv | ) |
Referenced by mirror2mat().
◆ workaroundforissue128needed()
def OpenSCADUtils.workaroundforissue128needed | ( | ) |
References getopenscadversion().
Referenced by prototype.readfile().
Variable Documentation
◆ BaseError
OpenSCADUtils.BaseError = FreeCAD.Base.FreeCADError |