GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Codacy fixes · hovedguy/pythonocc-demos@068ec15

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • examples
    • core_2d_fillet.py
    • core_classic_occ_bottle.py
    • core_display_point_cloud.py
    • core_visualization_overpaint_viewer.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎examples/core_2d_fillet.py‎

Copy file name to clipboardExpand all lines: examples/core_2d_fillet.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
display,start_display, add_menu,add_functionto_menu = init_display()
2626

2727
# Defining the points
28-
p1 = gp_Pnt(0, 0, 0)
28+
p1 = gp_Pnt(0, 0, 0)
2929
p2 = gp_Pnt(5, 5, 0)
3030
p3 = gp_Pnt(-5,5, 0)
3131

Collapse file

‎examples/core_classic_occ_bottle.py‎

Copy file name to clipboardExpand all lines: examples/core_classic_occ_bottle.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from OCC.Core.GC import GC_MakeArcOfCircle, GC_MakeSegment
2424
from OCC.Core.GCE2d import GCE2d_MakeSegment
2525
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
2727
from OCC.Core.BRepBuilderAPI import (BRepBuilderAPI_MakeEdge, BRepBuilderAPI_MakeWire,
2828
BRepBuilderAPI_MakeFace, BRepBuilderAPI_Transform)
2929
from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakePrism, BRepPrimAPI_MakeCylinder
Collapse file

‎examples/core_display_point_cloud.py‎

Copy file name to clipboardExpand all lines: examples/core_display_point_cloud.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def tabletop(event=None):
6868
pcd_file = open(os.path.join('..', 'assets', 'models', 'tabletop.pcd'), 'r').readlines()[11:]
6969
# create the point_cloud
7070
pc = Graphic3d_ArrayOfPoints(len(pcd_file), True)
71-
for idx, line in enumerate(pcd_file):
71+
for line in pcd_file:
7272
x, y, z, rgb = map(float, line.split())
7373
r, g, b = unpackRGB(rgb)
7474
color = Quantity_Color(r/float(255), g/float(255), b/float(255), Quantity_TOC_RGB)
Collapse file

‎examples/core_visualization_overpaint_viewer.py‎

Copy file name to clipboardExpand all lines: examples/core_visualization_overpaint_viewer.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,6 @@ def showEvent(self, event):
552552
"""
553553
self.createBubbles(20 - len(self.bubbles))
554554

555-
def sizeHint(self):
556-
return QtCore.QSize(800, 600)
557555

558556
def createBubbles(self, number):
559557
""" instantiate a `number` of bubbles to be painted on top of

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.