• [^] # Re: le code correspondant aux images

    Posté par . En réponse au journal Pycao version 0.9. Évalué à 7.

    Le code pour le petit meuble Ici

    Le code pour la piece entiere ici

    Le code pour un objet tres simple, un tiroir

     g=plane(Z,origin).colored("Grey")
     boardThickness=.02
     drawer=Cube(.4,.4,.1).colored("Brown")
     # We define two points which are the opposite corners of the cube toCut
     firstPoint=drawer.point(boardThickness,boardThickness,boardThickness,"aaa")
     secondPoint=drawer.point(boardThickness,boardThickness,1.1,"nnp")
     toCut=Cube(firstPoint,secondPoint).colored("Yellow")
     drawer.amputed_by(toCut,keepTexture=False)
     button=Sphere(drawer.point(.5,0,.5,"pap"),.01).colored("Yellow").glued_on(drawer)

    qui fait ca: Titre de l'image