prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Improve VTK.js 3D Viewer
  After #406 is merged, we should improve the 3D viewer. Basically, use [this example](https://kitware.github.io/vtk-js/examples/GeometryViewer.html)
  
  Things we should have:
  
  - [x] drop-down menu to change the scalar array
  - [x] Scalar bar
  - [x] Representation style
  - [x] Better background color choice (likely black)
  - [x] Point size slider
  - [x] Support RGB colors
  
  </issue>
  <code>
  [start of example_project/rgd_example/settings.py]
  1 from rgd_testing_utils.settings import *  # noqa
  2 
  3 INSTALLED_APPS += [  # noqa
  4     'rgd_3d',
  5     'rgd_fmv',
  6     'rgd_geometry',
  7     'rgd_imagery',
  8     # Swagger
  9     'drf_yasg',
  10     'django_extensions',
  11 ]
  12 
  13 ROOT_URLCONF = 'rgd_example.urls'
  14 WSGI_APPLICATION = 'rgd_example.wsgi.application'
  15 
  16 
  17 # Swagger
  18 REFETCH_SCHEMA_WITH_AUTH = True
  19 REFETCH_SCHEMA_ON_LOGOUT = True
  20 OPERATIONS_SORTER = 'alpha'
  21 DEEP_LINKING = True
  22
  [end of example_project/rgd_example/settings.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/example_project/rgd_example/settings.py b/example_project/rgd_example/settings.py
  --- a/example_project/rgd_example/settings.py
  +++ b/example_project/rgd_example/settings.py
  @@ -19,3 +19,5 @@
   REFETCH_SCHEMA_ON_LOGOUT = True
   OPERATIONS_SORTER = 'alpha'
   DEEP_LINKING = True
  +
  +STATIC_URL = '/static/'
  
verification_info: {"golden_diff": "diff --git a/example_project/rgd_example/settings.py b/example_project/rgd_example/settings.py\n--- a/example_project/rgd_example/settings.py\n+++ b/example_project/rgd_example/settings.py\n@@ -19,3 +19,5 @@\n REFETCH_SCHEMA_ON_LOGOUT = True\n OPERATIONS_SORTER = 'alpha'\n DEEP_LINKING = True\n+\n+STATIC_URL = '/static/'\n", "issue": "Improve VTK.js 3D Viewer\nAfter #406 is merged, we should improve the 3D viewer. Basically, use [this example](https://kitware.github.io/vtk-js/examples/GeometryViewer.html)\r\n\r\nThings we should have:\r\n\r\n- [x] drop-down menu to change the scalar array\r\n- [x] Scalar bar\r\n- [x] Representation style\r\n- [x] Better background color choice (likely black)\r\n- [x] Point size slider\r\n- [x] Support RGB colors\n", "before_files": [{"content": "from rgd_testing_utils.settings import *  # noqa\n\nINSTALLED_APPS += [  # noqa\n    'rgd_3d',\n    'rgd_fmv',\n    'rgd_geometry',\n    'rgd_imagery',\n    # Swagger\n    'drf_yasg',\n    'django_extensions',\n]\n\nROOT_URLCONF = 'rgd_example.urls'\nWSGI_APPLICATION = 'rgd_example.wsgi.application'\n\n\n# Swagger\nREFETCH_SCHEMA_WITH_AUTH = True\nREFETCH_SCHEMA_ON_LOGOUT = True\nOPERATIONS_SORTER = 'alpha'\nDEEP_LINKING = True\n", "path": "example_project/rgd_example/settings.py"}]}