python library, a decoraton style 3d design python lib
thingiverse
Those solids are the demo object generated by this Python library. It's a new Python library in development that enables declaration-style solid model design, reducing code size and making it readable, with elementary parts ready to use. This library requires SolidPython (>=0.1.2): https://github.com/SolidCode/SolidPython Change Log ======================= decscad.tar.gz: A fairly stable library version, most of the features are completed, and lots of examples including OpenRC truggy modifications. 1. Decbox.rar: An old library version By heyongli@gmail.com Example: class BallScrewCap(bp.Part): h = 6 ch = 2.5 def __init__(self): super(BallScrewCap, self).__init__() self.rotate(y=180).up(self.h) @bp.bases def cylinder(self): return st.Cylinder(r=12/2.0,h=self.h) @bp.holes def ball_hole(self): return [st.Cylinder(r=5.7/2.0,h=self.h+0.2,segments=64).up(-0.1), st.Sphere(r=6.1/2.0, segments=64), # locker st.Cylinder(r=9.5/2.0, h=self.ch, segments=64).up(-0.1) -st.Cylinder(r=8.5/2.0,h=self.ch,segments=64).up(-0.1), st.Cube([3,9,self.ch]).up(-0.1)] class Steering_Pin(bp.Part): @bp.bases def caps(self): return BallScrewCap(),BallScrewCap().translate(x=50) @bp.bases def arm(self): len = 49.0 - 8.0 return st.Cube(size=[len,8,5]).translate(x=len/2).translate(x=4.5)
With this file you will be able to print python library, a decoraton style 3d design python lib with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on python library, a decoraton style 3d design python lib.