Skip to content

Commit e7c6770

Browse files
Merge pull request #178 from vpython/improve_compound
Allow 4.2e9 vertex objects
2 parents 2a73f41 + 393cb02 commit e7c6770

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vpython/vpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ def __init__(self, **args):
15931593
cv = args['canvas']
15941594
else:
15951595
cv = canvas.get_selected()
1596-
if cv.vertexCount > canvas.maxVertices-1:
1596+
if cv.vertexCount >= canvas.maxVertices:
15971597
raise ValueError('too many vertex objects in use for this canvas')
15981598
args['_default_size'] = None
15991599
args['_objName'] = "vertex"
@@ -2813,7 +2813,7 @@ def selected(self, value):
28132813
class canvas(baseObj):
28142814
selected = None
28152815
hasmouse = None
2816-
maxVertices = 65535 ## 2^16 - 1 due to GS weirdness
2816+
maxVertices = 4.2e9 ## 2^32
28172817

28182818
def __init__(self, **args):
28192819
baseObj._canvas_constructing = True

vpython/vpython_libraries/glow.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)