Skip to content

Instantly share code, notes, and snippets.

@sparr
Created November 30, 2011 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sparr/1407460 to your computer and use it in GitHub Desktop.
Save sparr/1407460 to your computer and use it in GitHub Desktop.
freecad mirror rotate bug test case
from FreeCAD import Base
box1 = Part.makeBox(1,4,9)
Part.show(box1)
box2 = Part.makeBox(1,4,9)
box2.rotate(Base.Vector(0,0,0),Base.Vector(0,0,1),60) # this line changes the behavior of the mirror
Part.show(box2)
box2 = box2.mirror(Base.Vector(2,4,9),Base.Vector(1,0,0)) # this mirror doesn't work correctly after the part has been rotated
Part.show(box2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment