GeezerVison is showing github.com — Codacy fixes · hovedguy/pythonocc-demos@068ec15
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: examples/core_2d_fillet.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 25 | 25 | display,start_display, add_menu,add_functionto_menu = init_display() | 26 | 26 |
| 27 | 27 | # Defining the points | 28 | | -p1 = gp_Pnt(0, 0, 0) | | 28 | +p1 = gp_Pnt(0, 0, 0) | 29 | 29 | p2 = gp_Pnt(5, 5, 0) | 30 | 30 | p3 = gp_Pnt(-5,5, 0) | 31 | 31 |
| |
Collapse file Copy file name to clipboardExpand all lines: examples/core_classic_occ_bottle.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 23 | 23 | from OCC.Core.GC import GC_MakeArcOfCircle, GC_MakeSegment | 24 | 24 | from OCC.Core.GCE2d import GCE2d_MakeSegment | 25 | 25 | from OCC.Core.Geom import Geom_Plane, Geom_CylindricalSurface, Geom_Plane | 26 | | -from OCC.Core.Geom2d import Geom2d_Ellipse, Geom2d_TrimmedCurve, Geom2d_Ellipse | | 26 | +from OCC.Core.Geom2d import Geom2d_Ellipse, Geom2d_TrimmedCurve | 27 | 27 | from OCC.Core.BRepBuilderAPI import (BRepBuilderAPI_MakeEdge, BRepBuilderAPI_MakeWire, | 28 | 28 | BRepBuilderAPI_MakeFace, BRepBuilderAPI_Transform) | 29 | 29 | from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakePrism, BRepPrimAPI_MakeCylinder | |
Collapse file Copy file name to clipboardExpand all lines: examples/core_display_point_cloud.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -68,7 +68,7 @@ def tabletop(event=None): | 68 | 68 | pcd_file = open(os.path.join('..', 'assets', 'models', 'tabletop.pcd'), 'r').readlines()[11:] | 69 | 69 | # create the point_cloud | 70 | 70 | pc = Graphic3d_ArrayOfPoints(len(pcd_file), True) | 71 | | - for idx, line in enumerate(pcd_file): | | 71 | + for line in pcd_file: | 72 | 72 | x, y, z, rgb = map(float, line.split()) | 73 | 73 | r, g, b = unpackRGB(rgb) | 74 | 74 | color = Quantity_Color(r/float(255), g/float(255), b/float(255), Quantity_TOC_RGB) | |
Collapse file Copy file name to clipboardExpand all lines: examples/core_visualization_overpaint_viewer.py -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -552,8 +552,6 @@ def showEvent(self, event): | 552 | 552 | """ | 553 | 553 | self.createBubbles(20 - len(self.bubbles)) | 554 | 554 |
| 555 | | - def sizeHint(self): | 556 | | - return QtCore.QSize(800, 600) | 557 | 555 |
| 558 | 556 | def createBubbles(self, number): | 559 | 557 | """ instantiate a `number` of bubbles to be painted on top of | |
|