[openscad] mirror mesh feature -- rename OpenSCADUtils.mirror() to OpenSCADUtils.mirrormesh(), and provide some better interactive help information when typing OpenSCADUtils.mirrormesh() into the python console

This commit is contained in:
mwganson
2020-07-19 17:30:52 -05:00
committed by Yorik van Havre
parent 2c0b49ea46
commit 5b56ce4d11
2 changed files with 3 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ class MirrorMeshFeature:
y = float(splits[3])
z = float(splits[5])
vec = FreeCAD.Base.Vector(x,y,z)
newmesh=OpenSCADUtils.mirror(msh, vec)
newmesh=OpenSCADUtils.mirrormesh(msh, vec)
newobj.Mesh=newmesh
selobj.Object.ViewObject.hide()
else:

View File

@@ -298,7 +298,8 @@ def vec2householder(nv):
nv.z*nv.x*l,nv.z*nv.y*l,nv.z*nv.z*l,0,0,0,0,0)
return FreeCAD.Matrix()-hh
def mirror(msh,vec):
def mirrormesh(msh,vec):
"""mirrormesh(mesh,vector) where mesh is a mesh object and vector is a Base.Vector"""
from exportCSG import mesh2polyhedron
from PySide import QtGui
poly = mesh2polyhedron(msh)