python library, a decoraton style 3d design python lib
par hylpro
36
Téléchargements
26
Likes
0
Makes
those solids are the demo object generated by this python library.
it is a new python library in developing which enable declaration style solid model design, reduce code size, readable, and elementary parts ready to use.
this library need solidpython (>=0.1.2):
https://github.com/SolidCode/SolidPython
change log
==============
2. decscad.tar.gz: a fairly stable library version, most of feature completed, and lot's of examples inlcuding openRC truggy modification.
1 . decbox.rar: old version library,
By [email protected]
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
it is a new python library in developing which enable declaration style solid model design, reduce code size, readable, and elementary parts ready to use.
this library need solidpython (>=0.1.2):
https://github.com/SolidCode/SolidPython
change log
==============
2. decscad.tar.gz: a fairly stable library version, most of feature completed, and lot's of examples inlcuding openRC truggy modification.
1 . decbox.rar: old version library,
By [email protected]
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
Vous avez imprimé ce modèle ? Connectez-vous et partagez votre make !
Connectez-vous pour laisser un commentaire
Se connecterPas encore de commentaires – soyez le premier !