示例#1
0
文件: joint.py 项目: behnam/cgkit
    def __init__(self, joint, radius=0.05):
        """Constructor.

        \param joint (\c Joint) The joint that uses this geom
        \param radius (\c float) Radius of the wire sphere at the joint position
        """
        GeomObject.__init__(self)
        self.joint = joint
        self.radius = radius

        self.spheregeom = SphereGeom(radius=self.radius, segmentsu=8, segmentsv=4)
示例#2
0
文件: joint.py 项目: Princu/Imagica
    def __init__(self, joint, radius=0.05):
        """Constructor.

        \param joint (\c Joint) The joint that uses this geom
        \param radius (\c float) Radius of the wire sphere at the joint position
        """
        GeomObject.__init__(self)
        self.joint = joint
        self.radius = radius

        self.spheregeom = SphereGeom(radius=self.radius,
                                     segmentsu=8,
                                     segmentsv=4)
示例#3
0
 def __init__(self, filename):
     GeomObject.__init__(self)
     self.filename = filename