[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:
committed by
Yorik van Havre
parent
2c0b49ea46
commit
5b56ce4d11
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user