Advertisement
danfalck

part for reprapper

Feb 4th, 2012
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import Part
  2. from FreeCAD import Base
  3.  
  4. V1 = Base.Vector(0,10,0)
  5. V2 = Base.Vector(30,10,0)
  6. V3 = Base.Vector(30,-10,0)
  7. V4 = Base.Vector(0,-10,0)
  8.  
  9. VC1 = Base.Vector(-10,0,0)
  10. C1 = Part.Arc(V1,VC1,V4)
  11.  
  12. VC2 = Base.Vector(40,0,0)
  13. C2 = Part.Arc(V2,VC2,V3)
  14.  
  15. L1 = Part.Line(V1,V2)
  16. L2 = Part.Line(V4,V3)
  17.  
  18. S1 = Part.Shape([L1,L2,C1,C2])
  19.  
  20. W = Part.Wire(S1.Edges)
  21. P = W.extrude(Base.Vector(0,0,10))
  22.  
  23. Part.show(P)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement