| | 31 | Za izdelavo cilindra smo uporabili API ukaze iz nabora OCC.BRepPrimAPI, ki |
| | 32 | poenostavljajo gradnjo osnovnih primitivov brez gradnje topologije. Prav tako |
| | 33 | je potrebno poudariti, da zaradi objektnega programiranja uporabimo različne |
| | 34 | izpeljanke iste funkcije. Tako je {{{BRepPrimAPI_MakeCylinder}}} možno klicati |
| | 35 | v naslednjih oblikah: |
| | 36 | {{{ |
| | 37 | #!python |
| | 38 | BRepPrimAPI_MakeCylinder(Standard_Real R, Standard_Real H) |
| | 39 | BRepPrimAPI_MakeCylinder(Standard_Real R, Standard_Real H, Standard_Real Angle) |
| | 40 | BRepPrimAPI_MakeCylinder(gp_Ax2 Axes, Standard_Real R, Standard_Real H) |
| | 41 | BRepPrimAPI_MakeCylinder(gp_Ax2 Axes, Standard_Real R, Standard_Real H, Standard_Real Angle) |
| | 42 | }}} |
| | 43 | kar lahko preverimo, če v ''Python Shell'' napišemo |
| | 44 | {{{ |
| | 45 | #!python |
| | 46 | >>> from OCC.BRepPrimAPI import * |
| | 47 | >>> help(BRepPrimAPI_MakeCylinder) |
| | 48 | }}} |
| | 49 | ali si ogledamo spletna navodila za |
| | 50 | [http://api.pythonocc.org/OCC.BRepPrimAPI.BRepPrimAPI_MakeCylinder-class.html BRepPrimAPI_MakeCylinder]. |